]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blame - crypto/testmgr.h
mm, dax: change pmd_fault() to take only vmf parameter
[mirror_ubuntu-artful-kernel.git] / crypto / testmgr.h
CommitLineData
da7f033d
HX
1/*
2 * Algorithm testing framework and tests.
3 *
4 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
5 * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
6 * Copyright (c) 2007 Nokia Siemens Networks
7 * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
8 *
69435b94
AH
9 * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
10 * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
11 * gcm/gcm-test-vectors.tar.gz
12 * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
13 * Adrian Hoban <adrian.hoban@intel.com>
14 * Gabriele Paoloni <gabriele.paoloni@intel.com>
15 * Tadeusz Struk (tadeusz.struk@intel.com)
16 * Copyright (c) 2010, Intel Corporation.
17 *
da7f033d
HX
18 * This program is free software; you can redistribute it and/or modify it
19 * under the terms of the GNU General Public License as published by the Free
20 * Software Foundation; either version 2 of the License, or (at your option)
21 * any later version.
22 *
23 */
24#ifndef _CRYPTO_TESTMGR_H
25#define _CRYPTO_TESTMGR_H
26
0c01aed5 27#include <linux/netlink.h>
8064efb8 28
da7f033d
HX
29#define MAX_DIGEST_SIZE 64
30#define MAX_TAP 8
31
29b77e5d 32#define MAX_KEYLEN 160
da7f033d
HX
33#define MAX_IVLEN 32
34
35struct hash_testvec {
36 /* only used with keyed hash algorithms */
37 char *key;
38 char *plaintext;
39 char *digest;
40 unsigned char tap[MAX_TAP];
6726ec42 41 unsigned short psize;
da7f033d
HX
42 unsigned char np;
43 unsigned char ksize;
44};
45
a7eed156
LC
46/*
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
10faa8c0 62 * @fips_skip: Skip the test vector in FIPS mode
a7eed156
LC
63 */
64
da7f033d
HX
65struct cipher_testvec {
66 char *key;
67 char *iv;
8a826a34 68 char *iv_out;
da7f033d
HX
69 char *input;
70 char *result;
71 unsigned short tap[MAX_TAP];
72 int np;
f44d83d1 73 unsigned char also_non_np;
09e21784 74 bool fail;
da7f033d
HX
75 unsigned char wk; /* weak key flag */
76 unsigned char klen;
77 unsigned short ilen;
78 unsigned short rlen;
10faa8c0 79 bool fips_skip;
da7f033d
HX
80};
81
82struct aead_testvec {
83 char *key;
84 char *iv;
85 char *input;
86 char *assoc;
87 char *result;
88 unsigned char tap[MAX_TAP];
89 unsigned char atap[MAX_TAP];
90 int np;
91 int anp;
09e21784 92 bool fail;
e44a1b44 93 unsigned char novrfy; /* ccm dec verification failure expected */
da7f033d
HX
94 unsigned char wk; /* weak key flag */
95 unsigned char klen;
96 unsigned short ilen;
97 unsigned short alen;
98 unsigned short rlen;
99};
100
7647d6ce
JW
101struct cprng_testvec {
102 char *key;
103 char *dt;
104 char *v;
105 char *result;
106 unsigned char klen;
107 unsigned short dtlen;
108 unsigned short vlen;
109 unsigned short rlen;
110 unsigned short loops;
111};
112
3332ee2a
SM
113struct drbg_testvec {
114 unsigned char *entropy;
115 size_t entropylen;
116 unsigned char *entpra;
117 unsigned char *entprb;
118 size_t entprlen;
119 unsigned char *addtla;
120 unsigned char *addtlb;
121 size_t addtllen;
122 unsigned char *pers;
123 size_t perslen;
124 unsigned char *expected;
125 size_t expectedlen;
126};
127
946cc463
TS
128struct akcipher_testvec {
129 unsigned char *key;
130 unsigned char *m;
131 unsigned char *c;
132 unsigned int key_len;
133 unsigned int m_size;
134 unsigned int c_size;
135 bool public_key_vec;
136};
137
802c7f1c
SB
138struct kpp_testvec {
139 unsigned char *secret;
140 unsigned char *b_public;
141 unsigned char *expected_a_public;
142 unsigned char *expected_ss;
143 unsigned short secret_size;
144 unsigned short b_public_size;
145 unsigned short expected_a_public_size;
146 unsigned short expected_ss_size;
147};
148
da7f033d
HX
149static char zeroed_string[48];
150
946cc463
TS
151/*
152 * RSA test vectors. Borrowed from openSSL.
153 */
154#ifdef CONFIG_CRYPTO_FIPS
155#define RSA_TEST_VECTORS 2
156#else
c8afbc84 157#define RSA_TEST_VECTORS 5
946cc463
TS
158#endif
159static struct akcipher_testvec rsa_tv_template[] = {
160 {
161#ifndef CONFIG_CRYPTO_FIPS
162 .key =
22287b0b
TS
163 "\x30\x81\x9A" /* sequence of 154 bytes */
164 "\x02\x01\x01" /* version - integer of 1 byte */
946cc463
TS
165 "\x02\x41" /* modulus - integer of 65 bytes */
166 "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F"
167 "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5"
168 "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93"
169 "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1"
170 "\xF5"
171 "\x02\x01\x11" /* public key - integer of 1 byte */
172 "\x02\x40" /* private key - integer of 64 bytes */
173 "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44"
174 "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64"
175 "\x79\x7C\x3F\xA7\xA2\xCD\xCB\x3C\xD1\xE0\xBD\xBA\x26\x54\xB4\xF9"
22287b0b
TS
176 "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51"
177 "\x02\x01\x00" /* prime1 - integer of 1 byte */
178 "\x02\x01\x00" /* prime2 - integer of 1 byte */
179 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
180 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
181 "\x02\x01\x00", /* coefficient - integer of 1 byte */
946cc463
TS
182 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
183 .c =
184 "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63"
185 "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a"
186 "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53"
187 "\x9f\x6e\xbd\x4c\x55\x84\x0c\x9b\xcf\x1a\x4b\x51\x1e\x9e\x0c\x06",
22287b0b 188 .key_len = 157,
946cc463
TS
189 .m_size = 8,
190 .c_size = 64,
191 }, {
192 .key =
22287b0b
TS
193 "\x30\x82\x01\x1D" /* sequence of 285 bytes */
194 "\x02\x01\x01" /* version - integer of 1 byte */
946cc463
TS
195 "\x02\x81\x81" /* modulus - integer of 129 bytes */
196 "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
197 "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5"
198 "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD"
199 "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80"
200 "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25"
201 "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39"
202 "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68"
203 "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD"
204 "\xCB"
205 "\x02\x01\x11" /* public key - integer of 1 byte */
206 "\x02\x81\x81" /* private key - integer of 129 bytes */
207 "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD"
208 "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41"
209 "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69"
210 "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA"
211 "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94"
212 "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A"
213 "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94"
214 "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3"
22287b0b
TS
215 "\xC1"
216 "\x02\x01\x00" /* prime1 - integer of 1 byte */
217 "\x02\x01\x00" /* prime2 - integer of 1 byte */
218 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
219 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
220 "\x02\x01\x00", /* coefficient - integer of 1 byte */
221 .key_len = 289,
946cc463
TS
222 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
223 .c =
224 "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95"
225 "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72"
226 "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f"
227 "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34"
228 "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7"
229 "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13"
230 "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75"
231 "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b",
232 .m_size = 8,
233 .c_size = 128,
234 }, {
235#endif
236 .key =
22287b0b
TS
237 "\x30\x82\x02\x1F" /* sequence of 543 bytes */
238 "\x02\x01\x01" /* version - integer of 1 byte */
946cc463
TS
239 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
240 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
241 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
242 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
243 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
244 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
245 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
246 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
247 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
248 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
249 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
250 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
251 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
252 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
253 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
254 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
255 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
256 "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */
257 "\x02\x82\x01\x00" /* private key - integer of 256 bytes */
258 "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D"
259 "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92"
260 "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12"
261 "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A"
262 "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D"
263 "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33"
264 "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43"
265 "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B"
266 "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC"
267 "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33"
268 "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A"
269 "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D"
270 "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04"
271 "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82"
272 "\xD6\xBF\x7A\x0B\x64\x21\x6D\x88\x7E\x5B\x45\x12\x1E\x63\x8D\x49"
22287b0b
TS
273 "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71"
274 "\x02\x01\x00" /* prime1 - integer of 1 byte */
275 "\x02\x01\x00" /* prime2 - integer of 1 byte */
276 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
277 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
278 "\x02\x01\x00", /* coefficient - integer of 1 byte */
279 .key_len = 547,
946cc463
TS
280 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
281 .c =
282 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
283 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
284 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
285 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
286 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
287 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
288 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
289 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
290 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
291 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
292 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
293 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
294 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
295 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
296 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
297 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
298 .m_size = 8,
299 .c_size = 256,
300 }, {
301 .key =
302 "\x30\x82\x01\x09" /* sequence of 265 bytes */
303 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
304 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
305 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
306 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
307 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
308 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
309 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
310 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
311 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
312 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
313 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
314 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
315 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
316 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
317 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
318 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
319 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
320 "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */
321 .key_len = 269,
322 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
323 .c =
324 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
325 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
326 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
327 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
328 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
329 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
330 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
331 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
332 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
333 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
334 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
335 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
336 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
337 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
338 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
339 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
340 .m_size = 8,
341 .c_size = 256,
342 .public_key_vec = true,
c8afbc84
SB
343 }, {
344 .key =
345 "\x30\x82\x09\x29" /* sequence of 2345 bytes */
346 "\x02\x01\x00" /* version integer of 1 byte */
347 "\x02\x82\x02\x01" /* modulus - integer of 513 bytes */
348 "\x00\xC3\x8B\x55\x7B\x73\x4D\xFF\xE9\x9B\xC6\xDC\x67\x3C\xB4\x8E"
349 "\xA0\x86\xED\xF2\xB9\x50\x5C\x54\x5C\xBA\xE4\xA1\xB2\xA7\xAE\x2F"
350 "\x1B\x7D\xF1\xFB\xAC\x79\xC5\xDF\x1A\x00\xC9\xB2\xC1\x61\x25\x33"
351 "\xE6\x9C\xE9\xCF\xD6\x27\xC4\x4E\x44\x30\x44\x5E\x08\xA1\x87\x52"
352 "\xCC\x6B\x97\x70\x8C\xBC\xA5\x06\x31\x0C\xD4\x2F\xD5\x7D\x26\x24"
353 "\xA2\xE2\xAC\x78\xF4\x53\x14\xCE\xF7\x19\x2E\xD7\xF7\xE6\x0C\xB9"
354 "\x56\x7F\x0B\xF1\xB1\xE2\x43\x70\xBD\x86\x1D\xA1\xCC\x2B\x19\x08"
355 "\x76\xEF\x91\xAC\xBF\x20\x24\x0D\x38\xC0\x89\xB8\x9A\x70\xB3\x64"
356 "\xD9\x8F\x80\x41\x10\x5B\x9F\xB1\xCB\x76\x43\x00\x21\x25\x36\xD4"
357 "\x19\xFC\x55\x95\x10\xE4\x26\x74\x98\x2C\xD9\xBD\x0B\x2B\x04\xC2"
358 "\xAC\x82\x38\xB4\xDD\x4C\x04\x7E\x51\x36\x40\x1E\x0B\xC4\x7C\x25"
359 "\xDD\x4B\xB2\xE7\x20\x0A\x57\xF9\xB4\x94\xC3\x08\x33\x22\x6F\x8B"
360 "\x48\xDB\x03\x68\x5A\x5B\xBA\xAE\xF3\xAD\xCF\xC3\x6D\xBA\xF1\x28"
361 "\x67\x7E\x6C\x79\x07\xDE\xFC\xED\xE7\x96\xE3\x6C\xE0\x2C\x87\xF8"
362 "\x02\x01\x28\x38\x43\x21\x53\x84\x69\x75\x78\x15\x7E\xEE\xD2\x1B"
363 "\xB9\x23\x40\xA8\x86\x1E\x38\x83\xB2\x73\x1D\x53\xFB\x9E\x2A\x8A"
364 "\xB2\x75\x35\x01\xC3\xC3\xC4\x94\xE8\x84\x86\x64\x81\xF4\x42\xAA"
365 "\x3C\x0E\xD6\x4F\xBC\x0A\x09\x2D\xE7\x1B\xD4\x10\xA8\x54\xEA\x89"
366 "\x84\x8A\xCB\xF7\x5A\x3C\xCA\x76\x08\x29\x62\xB4\x6A\x22\xDF\x14"
367 "\x95\x71\xFD\xB6\x86\x39\xB8\x8B\xF8\x91\x7F\x38\xAA\x14\xCD\xE5"
368 "\xF5\x1D\xC2\x6D\x53\x69\x52\x84\x7F\xA3\x1A\x5E\x26\x04\x83\x06"
369 "\x73\x52\x56\xCF\x76\x26\xC9\xDD\x75\xD7\xFC\xF4\x69\xD8\x7B\x55"
370 "\xB7\x68\x13\x53\xB9\xE7\x89\xC3\xE8\xD6\x6E\xA7\x6D\xEA\x81\xFD"
371 "\xC4\xB7\x05\x5A\xB7\x41\x0A\x23\x8E\x03\x8A\x1C\xAE\xD3\x1E\xCE"
372 "\xE3\x5E\xFC\x19\x4A\xEE\x61\x9B\x8E\xE5\xE5\xDD\x85\xF9\x41\xEC"
373 "\x14\x53\x92\xF7\xDD\x06\x85\x02\x91\xE3\xEB\x6C\x43\x03\xB1\x36"
374 "\x7B\x89\x5A\xA8\xEB\xFC\xD5\xA8\x35\xDC\x81\xD9\x5C\xBD\xCA\xDC"
375 "\x9B\x98\x0B\x06\x5D\x0C\x5B\xEE\xF3\xD5\xCC\x57\xC9\x71\x2F\x90"
376 "\x3B\x3C\xF0\x8E\x4E\x35\x48\xAE\x63\x74\xA9\xFC\x72\x75\x8E\x34"
377 "\xA8\xF2\x1F\xEA\xDF\x3A\x37\x2D\xE5\x39\x39\xF8\x57\x58\x3C\x04"
378 "\xFE\x87\x06\x98\xBC\x7B\xD3\x21\x36\x60\x25\x54\xA7\x3D\xFA\x91"
379 "\xCC\xA8\x0B\x92\x8E\xB4\xF7\x06\xFF\x1E\x95\xCB\x07\x76\x97\x3B"
380 "\x9D"
381 "\x02\x03\x01\x00\x01" /* public key integer of 3 bytes */
382 "\x02\x82\x02\x00" /* private key integer of 512 bytes */
383 "\x74\xA9\xE0\x6A\x32\xB4\xCA\x85\xD9\x86\x9F\x60\x88\x7B\x40\xCC"
384 "\xCD\x33\x91\xA8\xB6\x25\x1F\xBF\xE3\x51\x1C\x97\xB6\x2A\xD9\xB8"
385 "\x11\x40\x19\xE3\x21\x13\xC8\xB3\x7E\xDC\xD7\x65\x40\x4C\x2D\xD6"
386 "\xDC\xAF\x32\x6C\x96\x75\x2C\x2C\xCA\x8F\x3F\x7A\xEE\xC4\x09\xC6"
387 "\x24\x3A\xC9\xCF\x6D\x8D\x17\x50\x94\x52\xD3\xE7\x0F\x2F\x7E\x94"
388 "\x1F\xA0\xBE\xD9\x25\xE8\x38\x42\x7C\x27\xD2\x79\xF8\x2A\x87\x38"
389 "\xEF\xBB\x74\x8B\xA8\x6E\x8C\x08\xC6\xC7\x4F\x0C\xBC\x79\xC6\xEF"
390 "\x0E\xA7\x5E\xE4\xF8\x8C\x09\xC7\x5E\x37\xCC\x87\x77\xCD\xCF\xD1"
391 "\x6D\x28\x1B\xA9\x62\xC0\xB8\x16\xA7\x8B\xF9\xBB\xCC\xB4\x15\x7F"
392 "\x1B\x69\x03\xF2\x7B\xEB\xE5\x8C\x14\xD6\x23\x4F\x52\x6F\x18\xA6"
393 "\x4B\x5B\x01\xAD\x35\xF9\x48\x53\xB3\x86\x35\x66\xD7\xE7\x29\xC0"
394 "\x09\xB5\xC6\xE6\xFA\xC4\xDA\x19\xBE\xD7\x4D\x41\x14\xBE\x6F\xDF"
395 "\x1B\xAB\xC0\xCA\x88\x07\xAC\xF1\x7D\x35\x83\x67\x28\x2D\x50\xE9"
396 "\xCE\x27\x71\x5E\x1C\xCF\xD2\x30\x65\x79\x72\x2F\x9C\xE1\xD2\x39"
397 "\x7F\xEF\x3B\x01\xF2\x14\x1D\xDF\xBD\x51\xD3\xA1\x53\x62\xCF\x5F"
398 "\x79\x84\xCE\x06\x96\x69\x29\x49\x82\x1C\x71\x4A\xA1\x66\xC8\x2F"
399 "\xFD\x7B\x96\x7B\xFC\xC4\x26\x58\xC4\xFC\x7C\xAF\xB5\xE8\x95\x83"
400 "\x87\xCB\x46\xDE\x97\xA7\xB3\xA2\x54\x5B\xD7\xAF\xAB\xEB\xC8\xF3"
401 "\x55\x9D\x48\x2B\x30\x9C\xDC\x26\x4B\xC2\x89\x45\x13\xB2\x01\x9A"
402 "\xA4\x65\xC3\xEC\x24\x2D\x26\x97\xEB\x80\x8A\x9D\x03\xBC\x59\x66"
403 "\x9E\xE2\xBB\xBB\x63\x19\x64\x93\x11\x7B\x25\x65\x30\xCD\x5B\x4B"
404 "\x2C\xFF\xDC\x2D\x30\x87\x1F\x3C\x88\x07\xD0\xFC\x48\xCC\x05\x8A"
405 "\xA2\xC8\x39\x3E\xD5\x51\xBC\x0A\xBE\x6D\xA8\xA0\xF6\x88\x06\x79"
406 "\x13\xFF\x1B\x45\xDA\x54\xC9\x24\x25\x8A\x75\x0A\x26\xD1\x69\x81"
407 "\x14\x14\xD1\x79\x7D\x8E\x76\xF2\xE0\xEB\xDD\x0F\xDE\xC2\xEC\x80"
408 "\xD7\xDC\x16\x99\x92\xBE\xCB\x40\x0C\xCE\x7C\x3B\x46\xA2\x5B\x5D"
409 "\x0C\x45\xEB\xE1\x00\xDE\x72\x50\xB1\xA6\x0B\x76\xC5\x8D\xFC\x82"
410 "\x38\x6D\x99\x14\x1D\x1A\x4A\xD3\x7C\x53\xB8\x12\x46\xA2\x30\x38"
411 "\x82\xF4\x96\x6E\x8C\xCE\x47\x0D\xAF\x0A\x3B\x45\xB7\x43\x95\x43"
412 "\x9E\x02\x2C\x44\x07\x6D\x1F\x3C\x66\x89\x09\xB6\x1F\x06\x30\xCC"
413 "\xAD\xCE\x7D\x9A\xDE\x3E\xFB\x6C\xE4\x58\x43\xD2\x4F\xA5\x9E\x5E"
414 "\xA7\x7B\xAE\x3A\xF6\x7E\xD9\xDB\xD3\xF5\xC5\x41\xAF\xE6\x9C\x91"
415 "\x02\x82\x01\x01" /* prime1 - integer of 257 bytes */
416 "\x00\xE0\xA6\x6C\xF0\xA2\xF8\x81\x85\x36\x43\xD0\x13\x0B\x33\x8B"
417 "\x8F\x78\x3D\xAC\xC7\x5E\x46\x6A\x7F\x05\xAE\x3E\x26\x0A\xA6\xD0"
418 "\x51\xF3\xC8\x61\xF5\x77\x22\x48\x10\x87\x4C\xD5\xA4\xD5\xAE\x2D"
419 "\x4E\x7A\xFE\x1C\x31\xE7\x6B\xFF\xA4\x69\x20\xF9\x2A\x0B\x99\xBE"
420 "\x7C\x32\x68\xAD\xB0\xC6\x94\x81\x41\x75\xDC\x06\x78\x0A\xB4\xCF"
421 "\xCD\x1B\x2D\x31\xE4\x7B\xEA\xA8\x35\x99\x75\x57\xC6\x0E\xF6\x78"
422 "\x4F\xA0\x92\x4A\x00\x1B\xE7\x96\xF2\x5B\xFD\x2C\x0A\x0A\x13\x81"
423 "\xAF\xCB\x59\x87\x31\xD9\x83\x65\xF2\x22\x48\xD0\x03\x67\x39\xF6"
424 "\xFF\xA8\x36\x07\x3A\x68\xE3\x7B\xA9\x64\xFD\x9C\xF7\xB1\x3D\xBF"
425 "\x26\x5C\xCC\x7A\xFC\xA2\x8F\x51\xD1\xE1\xE2\x3C\xEC\x06\x75\x7C"
426 "\x34\xF9\xA9\x33\x70\x11\xAD\x5A\xDC\x5F\xCF\x50\xF6\x23\x2F\x39"
427 "\xAC\x92\x48\x53\x4D\x01\x96\x3C\xD8\xDC\x1F\x23\x23\x78\x80\x34"
428 "\x54\x14\x76\x8B\xB6\xBB\xFB\x88\x78\x31\x59\x28\xD2\xB1\x75\x17"
429 "\x88\x04\x4A\x78\x62\x18\x2E\xF5\xFB\x9B\xEF\x15\xD8\x16\x47\xC6"
430 "\x42\xB1\x02\xDA\x9E\xE3\x84\x90\xB4\x2D\xC3\xCE\x13\xC9\x12\x7D"
431 "\x3E\xCD\x39\x39\xC9\xAD\xA1\x1A\xE6\xD5\xAD\x5A\x09\x4D\x1B\x0C"
432 "\xAB"
433 "\x02\x82\x01\x01" /* prime 2 - integer of 257 bytes */
434 "\x00\xDE\xD5\x1B\xF6\xCD\x83\xB1\xC6\x47\x7E\xB9\xC0\x6B\xA9\xB8"
435 "\x02\xF3\xAE\x40\x5D\xFC\xD3\xE5\x4E\xF1\xE3\x39\x04\x52\x84\x89"
436 "\x40\x37\xBB\xC2\xCD\x7F\x71\x77\x17\xDF\x6A\x4C\x31\x24\x7F\xB9"
437 "\x7E\x7F\xC8\x43\x4A\x3C\xEB\x8D\x1B\x7F\x21\x51\x67\x45\x8F\xA0"
438 "\x36\x29\x3A\x18\x45\xA5\x32\xEC\x74\x88\x3C\x98\x5D\x67\x3B\xD7"
439 "\x51\x1F\xE9\xAE\x09\x01\xDE\xDE\x7C\xFB\x60\xD1\xA5\x6C\xE9\x6A"
440 "\x93\x04\x02\x3A\xBB\x67\x02\xB9\xFD\x23\xF0\x02\x2B\x49\x85\xC9"
441 "\x5B\xE7\x4B\xDF\xA3\xF4\xEE\x59\x4C\x45\xEF\x8B\xC1\x6B\xDE\xDE"
442 "\xBC\x1A\xFC\xD2\x76\x3F\x33\x74\xA9\x8E\xA3\x7E\x0C\xC6\xCE\x70"
443 "\xA1\x5B\xA6\x77\xEA\x76\xEB\x18\xCE\xB9\xD7\x78\x8D\xAE\x06\xBB"
444 "\xD3\x1F\x16\x0D\x05\xAB\x4F\xC6\x52\xC8\x6B\x36\x51\x7D\x1D\x27"
445 "\xAF\x88\x9A\x6F\xCC\x25\x2E\x74\x06\x72\xCE\x9E\xDB\xE0\x9D\x30"
446 "\xEF\x55\xA5\x58\x21\xA7\x42\x12\x2C\x2C\x23\x87\xC1\x0F\xE8\x51"
447 "\xDA\x53\xDA\xFC\x05\x36\xDF\x08\x0E\x08\x36\xBE\x5C\x86\x9E\xCA"
448 "\x68\x90\x33\x12\x0B\x14\x82\xAB\x90\x1A\xD4\x49\x32\x9C\xBD\xAA"
449 "\xAB\x4E\x38\xF1\xEE\xED\x3D\x3F\xE8\xBD\x48\x56\xA6\x64\xEE\xC8"
450 "\xD7"
451 "\x02\x82\x01\x01" /* exponent 1 - integer of 257 bytes */
452 "\x00\x96\x5E\x6F\x8F\x06\xD6\xE6\x03\x1F\x96\x76\x81\x38\xBF\x30"
453 "\xCC\x40\x84\xAF\xD0\xE7\x06\xA5\x24\x0E\xCE\x59\xA5\x26\xFE\x0F"
454 "\x74\xBB\x83\xC6\x26\x02\xAF\x3C\xA3\x6B\x9C\xFF\x68\x0C\xEB\x40"
455 "\x42\x46\xCB\x2E\x5E\x2C\xF4\x3A\x32\x77\x77\xED\xAF\xBA\x02\x17"
456 "\xE1\x93\xF0\x43\x4A\x8F\x31\x39\xEF\x72\x0F\x6B\x79\x10\x59\x84"
457 "\xBA\x5A\x55\x7F\x0E\xDB\xEE\xEE\xD6\xA9\xB8\x44\x9F\x3A\xC6\xB9"
458 "\x33\x3B\x5C\x90\x11\xD0\x9B\xCC\x8A\xBF\x0E\x10\x5B\x4B\xF1\x50"
459 "\x9E\x35\xB3\xE0\x6D\x7A\x95\x9C\x38\x5D\xC0\x75\x13\xC2\x15\xA7"
460 "\x81\xEA\xBA\xF7\x4D\x9E\x85\x9D\xF1\x7D\xBA\xD0\x45\x6F\x2A\xD0"
461 "\x76\xC2\x28\xD0\xAD\xA7\xB5\xDC\xE3\x6A\x99\xFF\x83\x50\xB3\x75"
462 "\x07\x14\x91\xAF\xEF\x74\xB5\x9F\x9A\xE0\xBA\xA9\x0B\x87\xF3\x85"
463 "\x5C\x40\xB2\x0E\xA7\xFD\xC6\xED\x45\x8E\xD9\x7C\xB0\xB2\x68\xC6"
464 "\x1D\xFD\x70\x78\x06\x41\x7F\x95\x12\x36\x9D\xE2\x58\x5D\x15\xEE"
465 "\x41\x49\xF5\xFA\xEC\x56\x19\xA0\xE6\xE0\xB2\x40\xE1\xD9\xD0\x03"
466 "\x22\x02\xCF\xD1\x3C\x07\x38\x65\x8F\x65\x0E\xAA\x32\xCE\x25\x05"
467 "\x16\x73\x51\xB9\x9F\x88\x0B\xCD\x30\xF3\x97\xCC\x2B\x6B\xA4\x0E"
468 "\x6F"
469 "\x02\x82\x01\x00" /* exponent 2 - integer of 256 bytes */
470 "\x2A\x5F\x3F\xB8\x08\x90\x58\x47\xA9\xE4\xB1\x11\xA3\xE7\x5B\xF4"
471 "\x43\xBE\x08\xC3\x56\x86\x3C\x7E\x6C\x84\x96\x9C\xF9\xCB\xF6\x05"
472 "\x5E\x13\xB8\x11\x37\x80\xAD\xF2\xBE\x2B\x0A\x5D\xF5\xE0\xCB\xB7"
473 "\x00\x39\x66\x82\x41\x5F\x51\x2F\xBF\x56\xE8\x91\xC8\xAA\x6C\xFE"
474 "\x9F\x8C\x4A\x7D\x43\xD2\x91\x1F\xFF\x9F\xF6\x21\x1C\xB6\x46\x55"
475 "\x48\xCA\x38\xAB\xC1\xCD\x4D\x65\x5A\xAF\xA8\x6D\xDA\x6D\xF0\x34"
476 "\x10\x79\x14\x0D\xFA\xA2\x8C\x17\x54\xB4\x18\xD5\x7E\x5F\x90\x50"
477 "\x87\x84\xE7\xFB\xD7\x61\x53\x5D\xAB\x96\xC7\x6E\x7A\x42\xA0\xFC"
478 "\x07\xED\xB7\x5F\x80\xD9\x19\xFF\xFB\xFD\x9E\xC4\x73\x31\x62\x3D"
479 "\x6C\x9E\x15\x03\x62\xA5\x85\xCC\x19\x8E\x9D\x7F\xE3\x6D\xA8\x5D"
480 "\x96\xF5\xAC\x78\x3D\x81\x27\xE7\x29\xF1\x29\x1D\x09\xBB\x77\x86"
481 "\x6B\x65\x62\x88\xE1\x31\x1A\x22\xF7\xC5\xCE\x73\x65\x1C\xBE\xE7"
482 "\x63\xD3\xD3\x14\x63\x27\xAF\x28\xF3\x23\xB6\x76\xC1\xBD\x9D\x82"
483 "\xF4\x9B\x19\x7D\x2C\x57\xF0\xC2\x2A\x51\xAE\x95\x0D\x8C\x38\x54"
484 "\xF5\xC6\xA0\x51\xB7\x0E\xB9\xEC\xE7\x0D\x22\xF6\x1A\xD3\xFE\x16"
485 "\x21\x03\xB7\x0D\x85\xD3\x35\xC9\xDD\xE4\x59\x85\xBE\x7F\xA1\x75"
486 "\x02\x82\x01\x01" /* coefficient - integer of 257 bytes */
487 "\x00\xB9\x48\xD2\x54\x2F\x19\x54\x64\xAE\x62\x80\x61\x89\x80\xB4"
488 "\x48\x0B\x8D\x7E\x1B\x0F\x50\x08\x82\x3F\xED\x75\x84\xB7\x13\xE4"
489 "\xF8\x8D\xA8\xBB\x54\x21\x4C\x5A\x54\x07\x16\x4B\xB4\xA4\x9E\x30"
490 "\xBF\x7A\x30\x1B\x39\x60\xA3\x21\x53\xFB\xB0\xDC\x0F\x7C\x2C\xFB"
491 "\xAA\x95\x7D\x51\x39\x28\x33\x1F\x25\x31\x53\xF5\xD2\x64\x2B\xF2"
492 "\x1E\xB3\xC0\x6A\x0B\xC9\xA4\x42\x64\x5C\xFB\x15\xA3\xE8\x4C\x3A"
493 "\x9C\x3C\xBE\xA3\x39\x83\x23\xE3\x6D\x18\xCC\xC2\xDC\x63\x8D\xBA"
494 "\x98\xE0\xE0\x31\x4A\x2B\x37\x9C\x4D\x6B\xF3\x9F\x51\xE4\x43\x5C"
495 "\x83\x5F\xBF\x5C\xFE\x92\x45\x01\xAF\xF5\xC2\xF4\xB7\x56\x93\xA5"
496 "\xF4\xAA\x67\x3C\x48\x37\xBD\x9A\x3C\xFE\xA5\x9A\xB0\xD1\x6B\x85"
497 "\xDD\x81\xD4\xFA\xAD\x31\x83\xA8\x22\x9B\xFD\xB4\x61\xDC\x7A\x51"
498 "\x59\x62\x10\x1B\x7E\x44\xA3\xFE\x90\x51\x5A\x3E\x02\x87\xAD\xFA"
499 "\xDD\x0B\x1F\x3D\x35\xAF\xEE\x13\x85\x51\xA7\x42\xC0\xEE\x9E\x20"
500 "\xE9\xD0\x29\xB2\xE4\x21\xE4\x6D\x62\xB9\xF4\x48\x4A\xD8\x46\x8E"
501 "\x61\xA6\x2C\x5D\xDF\x8F\x97\x2B\x3A\x75\x1D\x83\x17\x6F\xC6\xB0"
502 "\xDE\xFC\x14\x25\x06\x5A\x60\xBB\xB8\x21\x89\xD1\xEF\x57\xF1\x71"
503 "\x3D",
504 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
505 .c =
506 "\x5c\xce\x9c\xd7\x9a\x9e\xa1\xfe\x7a\x82\x3c\x68\x27\x98\xe3\x5d"
507 "\xd5\xd7\x07\x29\xf5\xfb\xc3\x1a\x7f\x63\x1e\x62\x31\x3b\x19\x87"
508 "\x79\x4f\xec\x7b\xf3\xcb\xea\x9b\x95\x52\x3a\x40\xe5\x87\x7b\x72"
509 "\xd1\x72\xc9\xfb\x54\x63\xd8\xc9\xd7\x2c\xfc\x7b\xc3\x14\x1e\xbc"
510 "\x18\xb4\x34\xa1\xbf\x14\xb1\x37\x31\x6e\xf0\x1b\x35\x19\x54\x07"
511 "\xf7\x99\xec\x3e\x63\xe2\xcd\x61\x28\x65\xc3\xcd\xb1\x38\x36\xa5"
512 "\xb2\xd7\xb0\xdc\x1f\xf5\xef\x19\xc7\x53\x32\x2d\x1c\x26\xda\xe4"
513 "\x0d\xd6\x90\x7e\x28\xd8\xdc\xe4\x61\x05\xd2\x25\x90\x01\xd3\x96"
514 "\x6d\xa6\xcf\x58\x20\xbb\x03\xf4\x01\xbc\x79\xb9\x18\xd8\xb8\xba"
515 "\xbd\x93\xfc\xf2\x62\x5d\x8c\x66\x1e\x0e\x84\x59\x93\xdd\xe2\x93"
516 "\xa2\x62\x7d\x08\x82\x7a\xdd\xfc\xb8\xbc\xc5\x4f\x9c\x4e\xbf\xb4"
517 "\xfc\xf4\xc5\x01\xe8\x00\x70\x4d\x28\x26\xcc\x2e\xfe\x0e\x58\x41"
518 "\x8b\xec\xaf\x7c\x4b\x54\xd0\xa0\x64\xf9\x32\xf4\x2e\x47\x65\x0a"
519 "\x67\x88\x39\x3a\xdb\xb2\xdb\x7b\xb5\xf6\x17\xa8\xd9\xc6\x5e\x28"
520 "\x13\x82\x8a\x99\xdb\x60\x08\xa5\x23\x37\xfa\x88\x90\x31\xc8\x9d"
521 "\x8f\xec\xfb\x85\x9f\xb1\xce\xa6\x24\x50\x46\x44\x47\xcb\x65\xd1"
522 "\xdf\xc0\xb1\x6c\x90\x1f\x99\x8e\x4d\xd5\x9e\x31\x07\x66\x87\xdf"
523 "\x01\xaa\x56\x3c\x71\xe0\x2b\x6f\x67\x3b\x23\xed\xc2\xbd\x03\x30"
524 "\x79\x76\x02\x10\x10\x98\x85\x8a\xff\xfd\x0b\xda\xa5\xd9\x32\x48"
525 "\x02\xa0\x0b\xb9\x2a\x8a\x18\xca\xc6\x8f\x3f\xbb\x16\xb2\xaa\x98"
526 "\x27\xe3\x60\x43\xed\x15\x70\xd4\x57\x15\xfe\x19\xd4\x9b\x13\x78"
527 "\x8a\xf7\x21\xf1\xa2\xa2\x2d\xb3\x09\xcf\x44\x91\x6e\x08\x3a\x30"
528 "\x81\x3e\x90\x93\x8a\x67\x33\x00\x59\x54\x9a\x25\xd3\x49\x8e\x9f"
529 "\xc1\x4b\xe5\x86\xf3\x50\x4c\xbc\xc5\xd3\xf5\x3a\x54\xe1\x36\x3f"
530 "\xe2\x5a\xb4\x37\xc0\xeb\x70\x35\xec\xf6\xb7\xe8\x44\x3b\x7b\xf3"
531 "\xf1\xf2\x1e\xdb\x60\x7d\xd5\xbe\xf0\x71\x34\x90\x4c\xcb\xd4\x35"
532 "\x51\xc7\xdd\xd8\xc9\x81\xf5\x5d\x57\x46\x2c\xb1\x7b\x9b\xaa\xcb"
533 "\xd1\x22\x25\x49\x44\xa3\xd4\x6b\x29\x7b\xd8\xb2\x07\x93\xbf\x3d"
534 "\x52\x49\x84\x79\xef\xb8\xe5\xc4\xad\xca\xa8\xc6\xf6\xa6\x76\x70"
535 "\x5b\x0b\xe5\x83\xc6\x0e\xef\x55\xf2\xe7\xff\x04\xea\xe6\x13\xbe"
536 "\x40\xe1\x40\x45\x48\x66\x75\x31\xae\x35\x64\x91\x11\x6f\xda\xee"
537 "\x26\x86\x45\x6f\x0b\xd5\x9f\x03\xb1\x65\x5b\xdb\xa4\xe4\xf9\x45",
538 .key_len = 2349,
539 .m_size = 8,
540 .c_size = 512,
946cc463
TS
541 }
542};
543
802c7f1c
SB
544#define DH_TEST_VECTORS 2
545
546struct kpp_testvec dh_tv_template[] = {
547 {
548 .secret =
549#ifdef __LITTLE_ENDIAN
550 "\x01\x00" /* type */
551 "\x11\x02" /* len */
552 "\x00\x01\x00\x00" /* key_size */
553 "\x00\x01\x00\x00" /* p_size */
554 "\x01\x00\x00\x00" /* g_size */
555#else
556 "\x00\x01" /* type */
557 "\x02\x11" /* len */
558 "\x00\x00\x01\x00" /* key_size */
559 "\x00\x00\x01\x00" /* p_size */
560 "\x00\x00\x00\x01" /* g_size */
561#endif
562 /* xa */
563 "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3"
564 "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15"
565 "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e"
566 "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74"
567 "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a"
568 "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22"
569 "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a"
570 "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8"
571 "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4"
572 "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29"
573 "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29"
574 "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5"
575 "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18"
576 "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6"
577 "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0"
578 "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63"
579 /* p */
580 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
581 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
582 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
583 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
584 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
585 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
586 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
587 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
588 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
589 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
590 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
591 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
592 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
593 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
594 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
595 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
596 /* g */
597 "\x02",
598 .b_public =
599 "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54"
600 "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79"
601 "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f"
602 "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3"
603 "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa"
604 "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea"
605 "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37"
606 "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39"
607 "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6"
608 "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60"
609 "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21"
610 "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63"
611 "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e"
612 "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67"
613 "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40"
614 "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f",
615 .expected_a_public =
616 "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee"
617 "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85"
618 "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4"
619 "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6"
620 "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23"
621 "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd"
622 "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e"
623 "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a"
624 "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a"
625 "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb"
626 "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93"
627 "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26"
628 "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7"
629 "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f"
630 "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62"
631 "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39",
632 .expected_ss =
633 "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46"
634 "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24"
635 "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22"
636 "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75"
637 "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb"
638 "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a"
639 "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc"
640 "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4"
641 "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09"
642 "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c"
643 "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44"
644 "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4"
645 "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82"
646 "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11"
647 "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50"
648 "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17",
649 .secret_size = 529,
650 .b_public_size = 256,
651 .expected_a_public_size = 256,
652 .expected_ss_size = 256,
653 },
654 {
655 .secret =
656#ifdef __LITTLE_ENDIAN
657 "\x01\x00" /* type */
658 "\x11\x02" /* len */
659 "\x00\x01\x00\x00" /* key_size */
660 "\x00\x01\x00\x00" /* p_size */
661 "\x01\x00\x00\x00" /* g_size */
662#else
663 "\x00\x01" /* type */
664 "\x02\x11" /* len */
665 "\x00\x00\x01\x00" /* key_size */
666 "\x00\x00\x01\x00" /* p_size */
667 "\x00\x00\x00\x01" /* g_size */
668#endif
669 /* xa */
670 "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e"
671 "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5"
672 "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80"
673 "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67"
674 "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04"
675 "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4"
676 "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d"
677 "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9"
678 "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a"
679 "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97"
680 "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1"
681 "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a"
682 "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e"
683 "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21"
684 "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f"
685 "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26"
686 /* p */
687 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
688 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
689 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
690 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
691 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
692 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
693 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
694 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
695 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
696 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
697 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
698 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
699 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
700 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
701 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
702 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
703 /* g */
704 "\x02",
705 .b_public =
706 "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e"
707 "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e"
708 "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94"
709 "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77"
710 "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55"
711 "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f"
712 "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97"
713 "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1"
714 "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5"
715 "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf"
716 "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37"
717 "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25"
718 "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77"
719 "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0"
720 "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96"
721 "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f",
722 .expected_a_public =
723 "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18"
724 "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28"
725 "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d"
726 "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4"
727 "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1"
728 "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3"
729 "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83"
730 "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c"
731 "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62"
732 "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf"
733 "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e"
734 "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a"
735 "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66"
736 "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a"
737 "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f"
738 "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd",
739 .expected_ss =
740 "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47"
741 "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58"
742 "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81"
743 "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb"
744 "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b"
745 "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f"
746 "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76"
747 "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc"
748 "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0"
749 "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad"
750 "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93"
751 "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94"
752 "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8"
753 "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a"
754 "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee"
755 "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd",
756 .secret_size = 529,
757 .b_public_size = 256,
758 .expected_a_public_size = 256,
759 .expected_ss_size = 256,
760 }
761};
762
3c4b2390
SB
763#ifdef CONFIG_CRYPTO_FIPS
764#define ECDH_TEST_VECTORS 1
765#else
766#define ECDH_TEST_VECTORS 2
767#endif
768struct kpp_testvec ecdh_tv_template[] = {
769 {
770#ifndef CONFIG_CRYPTO_FIPS
771 .secret =
772#ifdef __LITTLE_ENDIAN
773 "\x02\x00" /* type */
774 "\x20\x00" /* len */
775 "\x01\x00" /* curve_id */
776 "\x18\x00" /* key_size */
777#else
778 "\x00\x02" /* type */
779 "\x00\x20" /* len */
780 "\x00\x01" /* curve_id */
781 "\x00\x18" /* key_size */
782#endif
783 "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda"
784 "\x4e\x19\x1e\x62\x1f\x23\x23\x31"
785 "\x36\x1e\xd3\x84\x2f\xcc\x21\x72",
786 .b_public =
787 "\xc3\xba\x67\x4b\x71\xec\xd0\x76"
788 "\x7a\x99\x75\x64\x36\x13\x9a\x94"
789 "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f"
790 "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e"
791 "\x83\x87\xdd\x67\x09\xf8\x8d\x96"
792 "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67",
793 .expected_a_public =
794 "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79"
795 "\xa3\xe6\xef\x0e\x5c\x80\x49\x85"
796 "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c"
797 "\x22\x90\x21\x02\xf9\x1b\x81\x5d"
798 "\x0c\x8a\xa8\x98\xd6\x27\x69\x88"
799 "\x5e\xbc\x94\xd8\x15\x9e\x21\xce",
800 .expected_ss =
801 "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc"
802 "\xe3\x40\x60\xc8\x06\x93\xc6\x2e"
803 "\x99\x80\x81\x28\xaf\xc5\x51\x74",
804 .secret_size = 32,
805 .b_public_size = 48,
806 .expected_a_public_size = 48,
807 .expected_ss_size = 24
808 }, {
809#endif
810 .secret =
811#ifdef __LITTLE_ENDIAN
812 "\x02\x00" /* type */
813 "\x28\x00" /* len */
814 "\x02\x00" /* curve_id */
815 "\x20\x00" /* key_size */
816#else
817 "\x00\x02" /* type */
818 "\x00\x28" /* len */
819 "\x00\x02" /* curve_id */
820 "\x00\x20" /* key_size */
821#endif
822 "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
823 "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
824 "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
825 "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
826 .expected_a_public =
827 "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
828 "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
829 "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
830 "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
831 "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
832 "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
833 "\x6a\x02\x6e\x41\x87\x68\x38\x77"
834 "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
835 .expected_ss =
836 "\xea\x17\x6f\x7e\x6e\x57\x26\x38"
837 "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5"
838 "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa"
839 "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9",
840 .b_public =
841 "\xcc\xb4\xda\x74\xb1\x47\x3f\xea"
842 "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7"
843 "\x29\xb2\x47\x03\x19\xab\xdd\x34"
844 "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9"
845 "\x64\x63\xf7\x70\x20\x2f\xa4\xe6"
846 "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f"
847 "\xb1\x32\xbb\xaf\x22\x61\xda\xcb"
848 "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3",
849 .secret_size = 40,
850 .b_public_size = 64,
851 .expected_a_public_size = 64,
852 .expected_ss_size = 32
853 }
854};
855
da7f033d
HX
856/*
857 * MD4 test vectors from RFC1320
858 */
859#define MD4_TEST_VECTORS 7
860
861static struct hash_testvec md4_tv_template [] = {
862 {
863 .plaintext = "",
864 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
865 "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
866 }, {
867 .plaintext = "a",
868 .psize = 1,
869 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
870 "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
871 }, {
872 .plaintext = "abc",
873 .psize = 3,
874 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
875 "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
876 }, {
877 .plaintext = "message digest",
878 .psize = 14,
879 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
880 "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
881 }, {
882 .plaintext = "abcdefghijklmnopqrstuvwxyz",
883 .psize = 26,
884 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
885 "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
886 .np = 2,
887 .tap = { 13, 13 },
888 }, {
889 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
890 .psize = 62,
891 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
892 "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
893 }, {
894 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
895 "45678901234567890",
896 .psize = 80,
897 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
898 "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
899 },
900};
901
79cc6ab8 902#define SHA3_224_TEST_VECTORS 3
903static struct hash_testvec sha3_224_tv_template[] = {
904 {
905 .plaintext = "",
906 .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7"
907 "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab"
908 "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f"
909 "\x5b\x5a\x6b\xc7",
910 }, {
911 .plaintext = "a",
912 .psize = 1,
913 .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f"
914 "\x40\x5f\x08\x12\x69\x68\x5b\x38"
915 "\xe3\xa8\x19\xb3\x09\xee\x94\x2f"
916 "\x48\x2b\x6a\x8b",
917 }, {
918 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
919 "jklmklmnlmnomnopnopq",
920 .psize = 56,
921 .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21"
922 "\xc9\xfd\x55\x74\x49\x44\x79\xba"
923 "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea"
924 "\xd0\xfc\xce\x33",
925 },
926};
927
928#define SHA3_256_TEST_VECTORS 3
929static struct hash_testvec sha3_256_tv_template[] = {
930 {
931 .plaintext = "",
932 .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66"
933 "\x51\xc1\x47\x56\xa0\x61\xd6\x62"
934 "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa"
935 "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a",
936 }, {
937 .plaintext = "a",
938 .psize = 1,
939 .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75"
940 "\x72\x6f\xeb\x2c\xab\x2d\x82\x15"
941 "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2"
942 "\xc8\x15\x12\x57\x03\x2e\xcd\x8b",
943 }, {
944 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
945 "jklmklmnlmnomnopnopq",
946 .psize = 56,
947 .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08"
948 "\x49\x10\x03\x76\xa8\x23\x5e\x2c"
949 "\x82\xe1\xb9\x99\x8a\x99\x9e\x21"
950 "\xdb\x32\xdd\x97\x49\x6d\x33\x76",
951 },
952};
953
954
955#define SHA3_384_TEST_VECTORS 3
956static struct hash_testvec sha3_384_tv_template[] = {
957 {
958 .plaintext = "",
959 .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d"
960 "\x01\x10\x7d\x85\x2e\x4c\x24\x85"
961 "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61"
962 "\x99\x5e\x71\xbb\xee\x98\x3a\x2a"
963 "\xc3\x71\x38\x31\x26\x4a\xdb\x47"
964 "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04",
965 }, {
966 .plaintext = "a",
967 .psize = 1,
968 .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b"
969 "\x48\x56\x9e\xfe\xc7\x94\xd2\x49"
970 "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7"
971 "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7"
972 "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8"
973 "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9",
974 }, {
975 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
976 "jklmklmnlmnomnopnopq",
977 .psize = 56,
978 .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b"
979 "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e"
980 "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42"
981 "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a"
982 "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1"
983 "\x9e\xef\x51\xac\xd0\x65\x7c\x22",
984 },
985};
986
987
988#define SHA3_512_TEST_VECTORS 3
989static struct hash_testvec sha3_512_tv_template[] = {
990 {
991 .plaintext = "",
992 .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5"
993 "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e"
994 "\x97\xc9\x82\x16\x4f\xe2\x58\x59"
995 "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6"
996 "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c"
997 "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58"
998 "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3"
999 "\x01\x75\x85\x86\x28\x1d\xcd\x26",
1000 }, {
1001 .plaintext = "a",
1002 .psize = 1,
1003 .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83"
1004 "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3"
1005 "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf"
1006 "\xb4\x96\x2d\x86\x98\xb7\xfa\x80"
1007 "\x3f\x4f\x93\xff\x24\x39\x35\x86"
1008 "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3"
1009 "\x69\x42\x0c\xe5\x33\x32\x71\x2f"
1010 "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a",
1011 }, {
1012 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1013 "jklmklmnlmnomnopnopq",
1014 .psize = 56,
1015 .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8"
1016 "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18"
1017 "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f"
1018 "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d"
1019 "\xee\x69\x1f\xbe\x0c\x98\x53\x02"
1020 "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63"
1021 "\x46\xb5\x33\xb4\x9c\x03\x0d\x99"
1022 "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e",
1023 },
1024};
1025
1026
da7f033d
HX
1027/*
1028 * MD5 test vectors from RFC1321
1029 */
1030#define MD5_TEST_VECTORS 7
1031
1032static struct hash_testvec md5_tv_template[] = {
1033 {
1034 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
1035 "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
1036 }, {
1037 .plaintext = "a",
1038 .psize = 1,
1039 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
1040 "\x31\xc3\x99\xe2\x69\x77\x26\x61",
1041 }, {
1042 .plaintext = "abc",
1043 .psize = 3,
1044 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
1045 "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
1046 }, {
1047 .plaintext = "message digest",
1048 .psize = 14,
1049 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
1050 "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
1051 }, {
1052 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1053 .psize = 26,
1054 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
1055 "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
1056 .np = 2,
1057 .tap = {13, 13}
1058 }, {
1059 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1060 .psize = 62,
1061 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
1062 "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
1063 }, {
1064 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
1065 "345678901234567890",
1066 .psize = 80,
1067 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
1068 "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
1069 }
1070
1071};
1072
1073/*
1074 * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
1075 */
1076#define RMD128_TEST_VECTORS 10
1077
1078static struct hash_testvec rmd128_tv_template[] = {
1079 {
1080 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
1081 "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
1082 }, {
1083 .plaintext = "a",
1084 .psize = 1,
1085 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
1086 "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
1087 }, {
1088 .plaintext = "abc",
1089 .psize = 3,
1090 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
1091 "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
1092 }, {
1093 .plaintext = "message digest",
1094 .psize = 14,
1095 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
1096 "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
1097 }, {
1098 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1099 .psize = 26,
1100 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
1101 "\x10\x71\x49\x22\xb3\x71\x83\x4e",
1102 }, {
1103 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1104 "fghijklmnopqrstuvwxyz0123456789",
1105 .psize = 62,
1106 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
1107 "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
1108 }, {
1109 .plaintext = "1234567890123456789012345678901234567890"
1110 "1234567890123456789012345678901234567890",
1111 .psize = 80,
1112 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
1113 "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
1114 }, {
1115 .plaintext = "abcdbcdecdefdefgefghfghighij"
1116 "hijkijkljklmklmnlmnomnopnopq",
1117 .psize = 56,
1118 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
1119 "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
1120 .np = 2,
1121 .tap = { 28, 28 },
1122 }, {
1123 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1124 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1125 "lmnopqrsmnopqrstnopqrstu",
1126 .psize = 112,
1127 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
1128 "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
1129 }, {
1130 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1131 .psize = 32,
1132 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
1133 "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
1134 }
1135};
1136
1137/*
1138 * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
1139 */
1140#define RMD160_TEST_VECTORS 10
1141
1142static struct hash_testvec rmd160_tv_template[] = {
1143 {
1144 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
1145 "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
1146 }, {
1147 .plaintext = "a",
1148 .psize = 1,
1149 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
1150 "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
1151 }, {
1152 .plaintext = "abc",
1153 .psize = 3,
1154 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
1155 "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
1156 }, {
1157 .plaintext = "message digest",
1158 .psize = 14,
1159 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
1160 "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
1161 }, {
1162 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1163 .psize = 26,
1164 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
1165 "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
1166 }, {
1167 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1168 "fghijklmnopqrstuvwxyz0123456789",
1169 .psize = 62,
1170 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
1171 "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
1172 }, {
1173 .plaintext = "1234567890123456789012345678901234567890"
1174 "1234567890123456789012345678901234567890",
1175 .psize = 80,
1176 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
1177 "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
1178 }, {
1179 .plaintext = "abcdbcdecdefdefgefghfghighij"
1180 "hijkijkljklmklmnlmnomnopnopq",
1181 .psize = 56,
1182 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
1183 "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
1184 .np = 2,
1185 .tap = { 28, 28 },
1186 }, {
1187 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1188 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1189 "lmnopqrsmnopqrstnopqrstu",
1190 .psize = 112,
1191 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
1192 "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
1193 }, {
1194 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1195 .psize = 32,
1196 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
1197 "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
1198 }
1199};
1200
1201/*
1202 * RIPEMD-256 test vectors
1203 */
1204#define RMD256_TEST_VECTORS 8
1205
1206static struct hash_testvec rmd256_tv_template[] = {
1207 {
1208 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
1209 "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
1210 "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
1211 "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
1212 }, {
1213 .plaintext = "a",
1214 .psize = 1,
1215 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
1216 "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
1217 "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
1218 "\xcd\x88\x3a\x91\x34\x69\x29\x25",
1219 }, {
1220 .plaintext = "abc",
1221 .psize = 3,
1222 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
1223 "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
1224 "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
1225 "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
1226 }, {
1227 .plaintext = "message digest",
1228 .psize = 14,
1229 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
1230 "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
1231 "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
1232 "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
1233 }, {
1234 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1235 .psize = 26,
1236 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
1237 "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
1238 "\x78\x96\x11\x8a\x51\x97\x96\x87"
1239 "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
1240 }, {
1241 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1242 "fghijklmnopqrstuvwxyz0123456789",
1243 .psize = 62,
1244 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
1245 "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
1246 "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
1247 "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
1248 }, {
1249 .plaintext = "1234567890123456789012345678901234567890"
1250 "1234567890123456789012345678901234567890",
1251 .psize = 80,
1252 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
1253 "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
1254 "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
1255 "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
1256 }, {
1257 .plaintext = "abcdbcdecdefdefgefghfghighij"
1258 "hijkijkljklmklmnlmnomnopnopq",
1259 .psize = 56,
1260 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
1261 "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
1262 "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
1263 "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
1264 .np = 2,
1265 .tap = { 28, 28 },
1266 }
1267};
1268
1269/*
1270 * RIPEMD-320 test vectors
1271 */
1272#define RMD320_TEST_VECTORS 8
1273
1274static struct hash_testvec rmd320_tv_template[] = {
1275 {
1276 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
1277 "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
1278 "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
1279 "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
1280 }, {
1281 .plaintext = "a",
1282 .psize = 1,
1283 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
1284 "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
1285 "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
1286 "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
1287 }, {
1288 .plaintext = "abc",
1289 .psize = 3,
1290 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
1291 "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
1292 "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
1293 "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
1294 }, {
1295 .plaintext = "message digest",
1296 .psize = 14,
1297 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
1298 "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
1299 "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
1300 "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
1301 }, {
1302 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1303 .psize = 26,
1304 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
1305 "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
1306 "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
1307 "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
1308 }, {
1309 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1310 "fghijklmnopqrstuvwxyz0123456789",
1311 .psize = 62,
1312 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
1313 "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
1314 "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
1315 "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
1316 }, {
1317 .plaintext = "1234567890123456789012345678901234567890"
1318 "1234567890123456789012345678901234567890",
1319 .psize = 80,
1320 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
1321 "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
1322 "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
1323 "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
1324 }, {
1325 .plaintext = "abcdbcdecdefdefgefghfghighij"
1326 "hijkijkljklmklmnlmnomnopnopq",
1327 .psize = 56,
1328 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
1329 "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
1330 "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
1331 "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
1332 .np = 2,
1333 .tap = { 28, 28 },
1334 }
1335};
1336
d31de187 1337#define CRCT10DIF_TEST_VECTORS ARRAY_SIZE(crct10dif_tv_template)
68411521
HX
1338static struct hash_testvec crct10dif_tv_template[] = {
1339 {
d31de187
AB
1340 .plaintext = "abc",
1341 .psize = 3,
1342 .digest = (u8 *)(u16 []){ 0x443b },
68411521 1343 }, {
d31de187
AB
1344 .plaintext = "1234567890123456789012345678901234567890"
1345 "123456789012345678901234567890123456789",
1346 .psize = 79,
1347 .digest = (u8 *)(u16 []){ 0x4b70 },
1348 .np = 2,
1349 .tap = { 63, 16 },
68411521 1350 }, {
d31de187
AB
1351 .plaintext = "abcdddddddddddddddddddddddddddddddddddddddd"
1352 "ddddddddddddd",
1353 .psize = 56,
1354 .digest = (u8 *)(u16 []){ 0x9ce3 },
1355 .np = 8,
1356 .tap = { 1, 2, 28, 7, 6, 5, 4, 3 },
1357 }, {
1358 .plaintext = "1234567890123456789012345678901234567890"
1359 "1234567890123456789012345678901234567890"
1360 "1234567890123456789012345678901234567890"
1361 "1234567890123456789012345678901234567890"
1362 "1234567890123456789012345678901234567890"
1363 "1234567890123456789012345678901234567890"
1364 "1234567890123456789012345678901234567890"
1365 "123456789012345678901234567890123456789",
1366 .psize = 319,
1367 .digest = (u8 *)(u16 []){ 0x44c6 },
1368 }, {
1369 .plaintext = "1234567890123456789012345678901234567890"
1370 "1234567890123456789012345678901234567890"
1371 "1234567890123456789012345678901234567890"
1372 "1234567890123456789012345678901234567890"
1373 "1234567890123456789012345678901234567890"
1374 "1234567890123456789012345678901234567890"
1375 "1234567890123456789012345678901234567890"
1376 "123456789012345678901234567890123456789",
1377 .psize = 319,
1378 .digest = (u8 *)(u16 []){ 0x44c6 },
1379 .np = 4,
1380 .tap = { 1, 255, 57, 6 },
68411521
HX
1381 }
1382};
1383
da7f033d
HX
1384/*
1385 * SHA1 test vectors from from FIPS PUB 180-1
bd1f2996 1386 * Long vector from CAVS 5.0
da7f033d 1387 */
950e4e1c 1388#define SHA1_TEST_VECTORS 6
da7f033d
HX
1389
1390static struct hash_testvec sha1_tv_template[] = {
1391 {
950e4e1c
JK
1392 .plaintext = "",
1393 .psize = 0,
1394 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
1395 "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
1396 }, {
da7f033d
HX
1397 .plaintext = "abc",
1398 .psize = 3,
1399 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
1400 "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
1401 }, {
1402 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1403 .psize = 56,
1404 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
1405 "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
1406 .np = 2,
1407 .tap = { 28, 28 }
bd1f2996
HX
1408 }, {
1409 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
1410 "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
1411 "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
1412 "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
1413 "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
1414 "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
1415 "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
1416 "\x72\x28\x26\xc0\x66\x86\x9e\xda"
1417 "\xcd\x73\xb2\x54\x80\x35\x18\x58"
1418 "\x13\xe2\x26\x34\xa9\xda\x44\x00"
1419 "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
1420 "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
1421 "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
1422 "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
1423 "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
1424 "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
1425 "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
1426 "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
1427 "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
1428 "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
1429 "\x5a\x90\x11",
1430 .psize = 163,
1431 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
1432 "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
1433 .np = 4,
1434 .tap = { 63, 64, 31, 5 }
4585988f
AB
1435 }, {
1436 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1437 .psize = 64,
1438 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
1439 "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
950e4e1c
JK
1440 }, {
1441 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1442 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1443 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1444 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1445 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1446 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1447 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1448 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1449 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1450 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1451 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1452 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1453 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1454 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1455 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1456 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1457 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1458 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1459 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1460 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1461 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1462 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1463 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1464 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1465 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1466 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1467 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1468 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1469 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1470 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1471 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1472 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1473 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1474 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1475 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1476 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1477 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1478 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1479 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1480 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1481 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1482 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1483 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1484 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1485 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1486 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1487 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1488 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1489 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1490 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1491 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1492 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1493 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1494 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1495 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1496 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1497 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1498 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1499 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1500 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1501 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1502 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1503 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1504 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1505 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1506 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1507 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1508 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1509 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1510 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1511 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1512 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1513 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1514 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1515 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1516 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1517 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1518 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1519 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1520 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1521 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1522 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1523 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1524 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1525 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1526 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1527 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1528 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1529 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1530 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1531 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1532 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1533 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1534 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1535 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1536 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1537 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1538 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1539 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1540 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1541 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1542 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1543 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1544 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1545 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1546 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1547 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1548 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1549 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1550 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1551 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1552 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1553 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1554 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1555 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1556 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1557 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1558 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1559 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1560 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1561 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1562 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1563 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1564 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1565 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1566 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1567 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1568 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1569 .psize = 1023,
1570 .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
1571 "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
1572 "\x30\xd6\xc9\x85",
da7f033d
HX
1573 }
1574};
1575
1576
1577/*
1578 * SHA224 test vectors from from FIPS PUB 180-2
1579 */
950e4e1c 1580#define SHA224_TEST_VECTORS 5
da7f033d
HX
1581
1582static struct hash_testvec sha224_tv_template[] = {
1583 {
950e4e1c
JK
1584 .plaintext = "",
1585 .psize = 0,
1586 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
1587 "\x47\x61\x02\xbb\x28\x82\x34\xc4"
1588 "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
1589 "\xc5\xb3\xe4\x2f",
1590 }, {
da7f033d
HX
1591 .plaintext = "abc",
1592 .psize = 3,
1593 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
1594 "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
1595 "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
1596 "\xE3\x6C\x9D\xA7",
1597 }, {
1598 .plaintext =
1599 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1600 .psize = 56,
1601 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
1602 "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
1603 "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
1604 "\x52\x52\x25\x25",
1605 .np = 2,
1606 .tap = { 28, 28 }
4585988f
AB
1607 }, {
1608 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1609 .psize = 64,
1610 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
1611 "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
1612 "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
1613 "\xef\x3b\xcb\x0e",
950e4e1c
JK
1614 }, {
1615 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1616 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1617 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1618 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1619 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1620 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1621 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1622 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1623 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1624 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1625 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1626 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1627 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1628 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1629 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1630 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1631 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1632 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1633 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1634 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1635 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1636 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1637 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1638 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1639 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1640 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1641 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1642 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1643 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1644 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1645 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1646 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1647 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1648 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1649 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1650 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1651 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1652 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1653 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1654 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1655 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1656 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1657 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1658 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1659 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1660 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1661 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1662 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1663 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1664 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1665 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1666 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1667 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1668 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1669 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1670 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1671 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1672 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1673 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1674 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1675 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1676 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1677 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1678 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1679 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1680 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1681 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1682 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1683 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1684 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1685 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1686 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1687 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1688 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1689 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1690 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1691 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1692 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1693 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1694 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1695 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1696 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1697 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1698 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1699 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1700 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1701 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1702 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1703 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1704 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1705 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1706 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1707 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1708 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1709 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1710 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1711 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1712 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1713 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1714 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1715 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1716 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1717 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1718 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1719 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1720 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1721 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1722 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1723 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1724 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1725 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1726 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1727 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1728 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1729 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1730 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1731 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1732 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1733 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1734 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1735 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1736 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1737 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1738 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1739 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1740 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1741 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1742 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1743 .psize = 1023,
1744 .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
1745 "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
1746 "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
1747 "\xe6\xf9\x4f\xcc",
da7f033d
HX
1748 }
1749};
1750
1751/*
1752 * SHA256 test vectors from from NIST
1753 */
950e4e1c 1754#define SHA256_TEST_VECTORS 5
da7f033d
HX
1755
1756static struct hash_testvec sha256_tv_template[] = {
1757 {
950e4e1c
JK
1758 .plaintext = "",
1759 .psize = 0,
1760 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
1761 "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
1762 "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
1763 "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
1764 }, {
da7f033d
HX
1765 .plaintext = "abc",
1766 .psize = 3,
1767 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
1768 "\x41\x41\x40\xde\x5d\xae\x22\x23"
1769 "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
1770 "\xb4\x10\xff\x61\xf2\x00\x15\xad",
1771 }, {
1772 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1773 .psize = 56,
1774 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
1775 "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
1776 "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
1777 "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
1778 .np = 2,
1779 .tap = { 28, 28 }
4585988f
AB
1780 }, {
1781 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
1782 .psize = 64,
1783 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
1784 "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
1785 "\xd6\xff\x94\xa3\x72\x91\x85\x66"
1786 "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
950e4e1c
JK
1787 }, {
1788 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1789 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1790 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1791 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1792 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1793 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1794 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1795 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1796 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1797 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1798 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1799 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1800 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1801 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1802 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1803 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1804 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1805 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1806 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1807 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1808 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1809 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1810 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1811 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1812 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1813 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1814 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1815 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1816 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1817 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1818 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1819 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1820 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1821 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1822 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1823 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1824 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1825 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1826 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1827 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1828 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1829 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1830 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1831 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1832 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1833 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1834 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1835 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1836 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1837 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1838 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1839 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1840 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1841 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1842 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1843 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1844 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1845 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1846 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1847 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1848 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1849 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1850 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1851 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1852 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1853 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1854 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1855 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1856 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1857 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1858 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1859 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1860 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1861 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1862 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1863 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1864 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1865 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1866 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1867 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1868 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1869 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1870 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1871 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1872 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1873 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1874 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1875 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1876 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1877 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1878 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1879 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1880 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1881 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1882 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1883 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1884 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1885 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1886 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1887 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1888 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1889 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1890 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1891 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1892 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1893 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1894 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1895 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1896 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1897 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1898 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1899 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1900 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1901 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1902 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1903 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1904 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1905 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1906 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1907 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1908 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1909 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1910 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1911 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1912 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1913 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1914 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1915 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1916 .psize = 1023,
1917 .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
1918 "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
1919 "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
1920 "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
4585988f 1921 }
da7f033d
HX
1922};
1923
1924/*
1925 * SHA384 test vectors from from NIST and kerneli
1926 */
950e4e1c 1927#define SHA384_TEST_VECTORS 6
da7f033d
HX
1928
1929static struct hash_testvec sha384_tv_template[] = {
1930 {
950e4e1c
JK
1931 .plaintext = "",
1932 .psize = 0,
1933 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
1934 "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
1935 "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
1936 "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
1937 "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
1938 "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
1939 }, {
da7f033d
HX
1940 .plaintext= "abc",
1941 .psize = 3,
1942 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
1943 "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
1944 "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
1945 "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
1946 "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
1947 "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
1948 }, {
1949 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
1950 .psize = 56,
1951 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
1952 "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
1953 "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
1954 "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
1955 "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
1956 "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
1957 }, {
1958 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
1959 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
1960 .psize = 112,
1961 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
1962 "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
1963 "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
1964 "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
1965 "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
1966 "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
1967 }, {
1968 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
1969 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
1970 .psize = 104,
1971 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
1972 "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
1973 "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
1974 "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
1975 "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
1976 "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
1977 .np = 4,
1978 .tap = { 26, 26, 26, 26 }
950e4e1c
JK
1979 }, {
1980 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1981 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1982 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1983 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1984 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1985 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1986 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1987 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1988 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1989 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1990 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1991 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1992 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1993 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1994 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1995 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1996 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1997 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1998 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1999 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2000 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2001 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2002 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2003 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2004 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2005 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2006 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2007 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2008 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2009 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2010 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2011 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2012 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2013 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2014 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2015 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2016 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2017 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2018 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2019 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2020 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2021 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2022 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2023 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2024 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2025 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2026 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2027 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2028 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2029 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2030 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2031 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2032 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2033 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2034 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2035 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2036 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2037 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2038 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2039 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2040 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2041 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2042 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2043 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2044 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2045 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2046 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2047 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2048 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2049 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2050 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2051 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2052 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2053 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2054 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2055 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2056 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2057 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2058 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2059 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2060 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2061 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2062 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2063 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2064 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2065 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2066 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2067 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2068 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2069 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2070 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2071 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2072 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2073 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2074 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2075 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2076 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2077 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2078 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2079 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2080 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2081 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2082 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2083 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2084 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2085 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2086 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2087 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2088 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2089 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2090 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2091 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2092 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2093 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2094 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2095 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2096 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2097 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2098 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2099 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2100 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2101 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2102 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2103 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2104 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2105 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2106 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2107 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2108 .psize = 1023,
2109 .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
2110 "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
2111 "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
2112 "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
2113 "\x75\x29\x62\x83\xae\x3f\x17\xab"
2114 "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
2115 }
da7f033d
HX
2116};
2117
2118/*
2119 * SHA512 test vectors from from NIST and kerneli
2120 */
950e4e1c 2121#define SHA512_TEST_VECTORS 6
da7f033d
HX
2122
2123static struct hash_testvec sha512_tv_template[] = {
2124 {
950e4e1c
JK
2125 .plaintext = "",
2126 .psize = 0,
2127 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
2128 "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
2129 "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
2130 "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
2131 "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
2132 "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
2133 "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
2134 "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
2135 }, {
da7f033d
HX
2136 .plaintext = "abc",
2137 .psize = 3,
2138 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
2139 "\xcc\x41\x73\x49\xae\x20\x41\x31"
2140 "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
2141 "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
2142 "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
2143 "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
2144 "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
2145 "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
2146 }, {
2147 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2148 .psize = 56,
2149 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
2150 "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
2151 "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
2152 "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
2153 "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
2154 "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
2155 "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
2156 "\x54\xec\x63\x12\x38\xca\x34\x45",
2157 }, {
2158 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
2159 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
2160 .psize = 112,
2161 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
2162 "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
2163 "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
2164 "\x72\x99\xae\xad\xb6\x88\x90\x18"
2165 "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
2166 "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
2167 "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
2168 "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
2169 }, {
2170 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
2171 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
2172 .psize = 104,
2173 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
2174 "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
2175 "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
2176 "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
2177 "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
2178 "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
2179 "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
2180 "\xed\xb4\x19\x87\x23\x28\x50\xc9",
2181 .np = 4,
2182 .tap = { 26, 26, 26, 26 }
950e4e1c
JK
2183 }, {
2184 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2185 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2186 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2187 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2188 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2189 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2190 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2191 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2192 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2193 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2194 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2195 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2196 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2197 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2198 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2199 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2200 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2201 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2202 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2203 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2204 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2205 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2206 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2207 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2208 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2209 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2210 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2211 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2212 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2213 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2214 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2215 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2216 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2217 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2218 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2219 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2220 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2221 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2222 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2223 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2224 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2225 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2226 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2227 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2228 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2229 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2230 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2231 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2232 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2233 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2234 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2235 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2236 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2237 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2238 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2239 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2240 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2241 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2242 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2243 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2244 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2245 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2246 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2247 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2248 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2249 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2250 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2251 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2252 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2253 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2254 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2255 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2256 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2257 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2258 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2259 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2260 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2261 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2262 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2263 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2264 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2265 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2266 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2267 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2268 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2269 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2270 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2271 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2272 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2273 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2274 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2275 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2276 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2277 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2278 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2279 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2280 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2281 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2282 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2283 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2284 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2285 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2286 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2287 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2288 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2289 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2290 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2291 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2292 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2293 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2294 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2295 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2296 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2297 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2298 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2299 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2300 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2301 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2302 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2303 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2304 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2305 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2306 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2307 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2308 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2309 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2310 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2311 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2312 .psize = 1023,
2313 .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
2314 "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
2315 "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
2316 "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
2317 "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
2318 "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
2319 "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
2320 "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
2321 }
da7f033d
HX
2322};
2323
2324
2325/*
2326 * WHIRLPOOL test vectors from Whirlpool package
2327 * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
2328 * submission
2329 */
2330#define WP512_TEST_VECTORS 8
2331
2332static struct hash_testvec wp512_tv_template[] = {
2333 {
2334 .plaintext = "",
2335 .psize = 0,
2336 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2337 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2338 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2339 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
2340 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
2341 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
2342 "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
2343 "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
2344
2345
2346 }, {
2347 .plaintext = "a",
2348 .psize = 1,
2349 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2350 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2351 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2352 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
2353 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
2354 "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
2355 "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
2356 "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
2357 }, {
2358 .plaintext = "abc",
2359 .psize = 3,
2360 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2361 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2362 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2363 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
2364 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
2365 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
2366 "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
2367 "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
2368 }, {
2369 .plaintext = "message digest",
2370 .psize = 14,
2371 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2372 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2373 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2374 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
2375 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
2376 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
2377 "\x92\xED\x92\x00\x52\x83\x8F\x33"
2378 "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
2379 }, {
2380 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2381 .psize = 26,
2382 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2383 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2384 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2385 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
2386 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
2387 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
2388 "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
2389 "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
2390 }, {
2391 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2392 "abcdefghijklmnopqrstuvwxyz0123456789",
2393 .psize = 62,
2394 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2395 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2396 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2397 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
2398 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
2399 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
2400 "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
2401 "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
2402 }, {
2403 .plaintext = "1234567890123456789012345678901234567890"
2404 "1234567890123456789012345678901234567890",
2405 .psize = 80,
2406 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2407 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2408 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2409 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
2410 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
2411 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
2412 "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
2413 "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
2414 }, {
2415 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2416 .psize = 32,
2417 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2418 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2419 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2420 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
2421 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
2422 "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
2423 "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
2424 "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
2425 },
2426};
2427
2428#define WP384_TEST_VECTORS 8
2429
2430static struct hash_testvec wp384_tv_template[] = {
2431 {
2432 .plaintext = "",
2433 .psize = 0,
2434 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2435 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2436 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2437 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
2438 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
2439 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
2440
2441
2442 }, {
2443 .plaintext = "a",
2444 .psize = 1,
2445 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2446 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2447 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2448 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
2449 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
2450 "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
2451 }, {
2452 .plaintext = "abc",
2453 .psize = 3,
2454 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2455 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2456 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2457 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
2458 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
2459 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
2460 }, {
2461 .plaintext = "message digest",
2462 .psize = 14,
2463 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2464 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2465 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2466 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
2467 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
2468 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
2469 }, {
2470 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2471 .psize = 26,
2472 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2473 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2474 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2475 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
2476 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
2477 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
2478 }, {
2479 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2480 "abcdefghijklmnopqrstuvwxyz0123456789",
2481 .psize = 62,
2482 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2483 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2484 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2485 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
2486 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
2487 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
2488 }, {
2489 .plaintext = "1234567890123456789012345678901234567890"
2490 "1234567890123456789012345678901234567890",
2491 .psize = 80,
2492 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2493 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2494 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2495 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
2496 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
2497 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
2498 }, {
2499 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2500 .psize = 32,
2501 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2502 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2503 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2504 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
2505 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
2506 "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
2507 },
2508};
2509
2510#define WP256_TEST_VECTORS 8
2511
2512static struct hash_testvec wp256_tv_template[] = {
2513 {
2514 .plaintext = "",
2515 .psize = 0,
2516 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
2517 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
2518 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
2519 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
2520
2521
2522 }, {
2523 .plaintext = "a",
2524 .psize = 1,
2525 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
2526 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
2527 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
2528 "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
2529 }, {
2530 .plaintext = "abc",
2531 .psize = 3,
2532 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
2533 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
2534 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
2535 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
2536 }, {
2537 .plaintext = "message digest",
2538 .psize = 14,
2539 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
2540 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
2541 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
2542 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
2543 }, {
2544 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2545 .psize = 26,
2546 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
2547 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
2548 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
2549 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
2550 }, {
2551 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
2552 "abcdefghijklmnopqrstuvwxyz0123456789",
2553 .psize = 62,
2554 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
2555 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
2556 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
2557 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
2558 }, {
2559 .plaintext = "1234567890123456789012345678901234567890"
2560 "1234567890123456789012345678901234567890",
2561 .psize = 80,
2562 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
2563 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
2564 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
2565 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
2566 }, {
2567 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2568 .psize = 32,
2569 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
2570 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
2571 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
2572 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
2573 },
2574};
2575
2576/*
2577 * TIGER test vectors from Tiger website
2578 */
2579#define TGR192_TEST_VECTORS 6
2580
2581static struct hash_testvec tgr192_tv_template[] = {
2582 {
2583 .plaintext = "",
2584 .psize = 0,
2585 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2586 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
2587 "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
2588 }, {
2589 .plaintext = "abc",
2590 .psize = 3,
2591 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2592 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
2593 "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
2594 }, {
2595 .plaintext = "Tiger",
2596 .psize = 5,
2597 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2598 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
2599 "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
2600 }, {
2601 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2602 .psize = 64,
2603 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2604 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
2605 "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
2606 }, {
2607 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2608 .psize = 64,
2609 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2610 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
2611 "\x57\x89\x65\x65\x97\x5f\x91\x97",
2612 }, {
2613 .plaintext = "Tiger - A Fast New Hash Function, "
2614 "by Ross Anderson and Eli Biham, "
2615 "proceedings of Fast Software Encryption 3, "
2616 "Cambridge, 1996.",
2617 .psize = 125,
2618 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2619 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
2620 "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
2621 },
2622};
2623
2624#define TGR160_TEST_VECTORS 6
2625
2626static struct hash_testvec tgr160_tv_template[] = {
2627 {
2628 .plaintext = "",
2629 .psize = 0,
2630 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2631 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
2632 "\xf3\x73\xde\x2d",
2633 }, {
2634 .plaintext = "abc",
2635 .psize = 3,
2636 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2637 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
2638 "\x93\x5f\x7b\x95",
2639 }, {
2640 .plaintext = "Tiger",
2641 .psize = 5,
2642 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2643 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
2644 "\x37\x79\x0c\x11",
2645 }, {
2646 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2647 .psize = 64,
2648 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2649 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
2650 "\xb5\x86\x44\x50",
2651 }, {
2652 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2653 .psize = 64,
2654 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2655 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
2656 "\x57\x89\x65\x65",
2657 }, {
2658 .plaintext = "Tiger - A Fast New Hash Function, "
2659 "by Ross Anderson and Eli Biham, "
2660 "proceedings of Fast Software Encryption 3, "
2661 "Cambridge, 1996.",
2662 .psize = 125,
2663 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2664 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
2665 "\xdd\x68\x15\x1d",
2666 },
2667};
2668
2669#define TGR128_TEST_VECTORS 6
2670
2671static struct hash_testvec tgr128_tv_template[] = {
2672 {
2673 .plaintext = "",
2674 .psize = 0,
2675 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
2676 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
2677 }, {
2678 .plaintext = "abc",
2679 .psize = 3,
2680 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
2681 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
2682 }, {
2683 .plaintext = "Tiger",
2684 .psize = 5,
2685 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
2686 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
2687 }, {
2688 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2689 .psize = 64,
2690 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
2691 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
2692 }, {
2693 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
2694 .psize = 64,
2695 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
2696 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
2697 }, {
2698 .plaintext = "Tiger - A Fast New Hash Function, "
2699 "by Ross Anderson and Eli Biham, "
2700 "proceedings of Fast Software Encryption 3, "
2701 "Cambridge, 1996.",
2702 .psize = 125,
2703 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
2704 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
2705 },
2706};
2707
445a8e0d 2708#define GHASH_TEST_VECTORS 6
507069c9
YS
2709
2710static struct hash_testvec ghash_tv_template[] =
2711{
2712 {
6c9e3dcd
AB
2713 .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
2714 "\xff\xca\xff\x95\xf8\x30\xf0\x61",
507069c9 2715 .ksize = 16,
6c9e3dcd
AB
2716 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
2717 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
507069c9
YS
2718 .psize = 16,
2719 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
2720 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
6c9e3dcd
AB
2721 }, {
2722 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2723 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2724 .ksize = 16,
2725 .plaintext = "what do ya want for nothing?",
2726 .psize = 28,
2727 .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
2728 "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
2729 .np = 2,
2730 .tap = {14, 14}
2731 }, {
2732 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2733 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2734 .ksize = 16,
2735 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2736 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2737 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2738 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2739 .psize = 50,
2740 .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
2741 "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
2742 }, {
2743 .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
2744 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
2745 .ksize = 16,
2746 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2747 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2748 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2749 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2750 .psize = 50,
2751 .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
2752 "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
2753 }, {
2754 .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
2755 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
2756 .ksize = 16,
2757 .plaintext = "Test With Truncation",
2758 .psize = 20,
2759 .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
2760 "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
445a8e0d
HF
2761 }, {
2762 .key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
2763 "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
2764 .ksize = 16,
2765 .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
2766 "\x65\x72\x20\x4c\x61\x75\x73\x63"
2767 "\x68\x65\x6e\x20\x75\x6e\x64\x20"
2768 "\x53\x74\x61\x75\x6e\x65\x6e\x20"
2769 "\x73\x65\x69\x20\x73\x74\x69\x6c"
2770 "\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
2771 "\x69\x6e\x20\x74\x69\x65\x66\x74"
2772 "\x69\x65\x66\x65\x73\x20\x4c\x65"
2773 "\x62\x65\x6e\x3b\x0a\x64\x61\x73"
2774 "\x73\x20\x64\x75\x20\x77\x65\x69"
2775 "\xc3\x9f\x74\x20\x77\x61\x73\x20"
2776 "\x64\x65\x72\x20\x57\x69\x6e\x64"
2777 "\x20\x64\x69\x72\x20\x77\x69\x6c"
2778 "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
2779 "\x63\x68\x20\x64\x69\x65\x20\x42"
2780 "\x69\x72\x6b\x65\x6e\x20\x62\x65"
2781 "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
2782 "\x64\x20\x77\x65\x6e\x6e\x20\x64"
2783 "\x69\x72\x20\x65\x69\x6e\x6d\x61"
2784 "\x6c\x20\x64\x61\x73\x20\x53\x63"
2785 "\x68\x77\x65\x69\x67\x65\x6e\x20"
2786 "\x73\x70\x72\x61\x63\x68\x2c\x0a"
2787 "\x6c\x61\x73\x73\x20\x64\x65\x69"
2788 "\x6e\x65\x20\x53\x69\x6e\x6e\x65"
2789 "\x20\x62\x65\x73\x69\x65\x67\x65"
2790 "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
2791 "\x20\x48\x61\x75\x63\x68\x65\x20"
2792 "\x67\x69\x62\x74\x20\x64\x69\x63"
2793 "\x68\x2c\x20\x67\x69\x62\x20\x6e"
2794 "\x61\x63\x68\x2c\x0a\x65\x72\x20"
2795 "\x77\x69\x72\x64\x20\x64\x69\x63"
2796 "\x68\x20\x6c\x69\x65\x62\x65\x6e"
2797 "\x20\x75\x6e\x64\x20\x77\x69\x65"
2798 "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
2799 "\x64\x20\x64\x61\x6e\x6e\x20\x6d"
2800 "\x65\x69\x6e\x65\x20\x53\x65\x65"
2801 "\x6c\x65\x20\x73\x65\x69\x74\x20"
2802 "\x77\x65\x69\x74\x2c\x20\x73\x65"
2803 "\x69\x20\x77\x65\x69\x74\x2c\x0a"
2804 "\x64\x61\x73\x73\x20\x64\x69\x72"
2805 "\x20\x64\x61\x73\x20\x4c\x65\x62"
2806 "\x65\x6e\x20\x67\x65\x6c\x69\x6e"
2807 "\x67\x65\x2c\x0a\x62\x72\x65\x69"
2808 "\x74\x65\x20\x64\x69\x63\x68\x20"
2809 "\x77\x69\x65\x20\x65\x69\x6e\x20"
2810 "\x46\x65\x69\x65\x72\x6b\x6c\x65"
2811 "\x69\x64\x0a\xc3\xbc\x62\x65\x72"
2812 "\x20\x64\x69\x65\x20\x73\x69\x6e"
2813 "\x6e\x65\x6e\x64\x65\x6e\x20\x44"
2814 "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
2815 .psize = 400,
2816 .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
2817 "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
507069c9
YS
2818 },
2819};
2820
da7f033d
HX
2821/*
2822 * HMAC-MD5 test vectors from RFC2202
2823 * (These need to be fixed to not use strlen).
2824 */
2825#define HMAC_MD5_TEST_VECTORS 7
2826
2827static struct hash_testvec hmac_md5_tv_template[] =
2828{
2829 {
2830 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2831 .ksize = 16,
2832 .plaintext = "Hi There",
2833 .psize = 8,
2834 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
2835 "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
2836 }, {
2837 .key = "Jefe",
2838 .ksize = 4,
2839 .plaintext = "what do ya want for nothing?",
2840 .psize = 28,
2841 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
2842 "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
2843 .np = 2,
2844 .tap = {14, 14}
2845 }, {
2846 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2847 .ksize = 16,
2848 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2849 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2850 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2851 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2852 .psize = 50,
2853 .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
2854 "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
2855 }, {
2856 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2857 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2858 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2859 .ksize = 25,
2860 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2861 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2862 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2863 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2864 .psize = 50,
2865 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
2866 "\x3a\x75\x16\x47\x46\xff\xaa\x79",
2867 }, {
2868 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2869 .ksize = 16,
2870 .plaintext = "Test With Truncation",
2871 .psize = 20,
2872 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
2873 "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
2874 }, {
2875 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2876 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2877 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2878 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2879 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2880 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2881 "\xaa\xaa",
2882 .ksize = 80,
2883 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2884 .psize = 54,
2885 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
2886 "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
2887 }, {
2888 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2889 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2890 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2891 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2892 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2893 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2894 "\xaa\xaa",
2895 .ksize = 80,
2896 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2897 "Block-Size Data",
2898 .psize = 73,
2899 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
2900 "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
2901 },
2902};
2903
2904/*
2905 * HMAC-RIPEMD128 test vectors from RFC2286
2906 */
2907#define HMAC_RMD128_TEST_VECTORS 7
2908
2909static struct hash_testvec hmac_rmd128_tv_template[] = {
2910 {
2911 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2912 .ksize = 16,
2913 .plaintext = "Hi There",
2914 .psize = 8,
2915 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
2916 "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
2917 }, {
2918 .key = "Jefe",
2919 .ksize = 4,
2920 .plaintext = "what do ya want for nothing?",
2921 .psize = 28,
2922 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
2923 "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
2924 .np = 2,
2925 .tap = { 14, 14 },
2926 }, {
2927 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
2928 .ksize = 16,
2929 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2930 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2931 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
2932 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
2933 .psize = 50,
2934 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
2935 "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
2936 }, {
2937 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2938 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2939 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
2940 .ksize = 25,
2941 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2942 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2943 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2944 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2945 .psize = 50,
2946 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
2947 "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
2948 }, {
2949 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
2950 .ksize = 16,
2951 .plaintext = "Test With Truncation",
2952 .psize = 20,
2953 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
2954 "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
2955 }, {
2956 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2957 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2958 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2959 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2960 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2961 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2962 "\xaa\xaa",
2963 .ksize = 80,
2964 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
2965 .psize = 54,
2966 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
2967 "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
2968 }, {
2969 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2970 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2971 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2972 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2973 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2974 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
2975 "\xaa\xaa",
2976 .ksize = 80,
2977 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
2978 "Block-Size Data",
2979 .psize = 73,
2980 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
2981 "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
2982 },
2983};
2984
2985/*
2986 * HMAC-RIPEMD160 test vectors from RFC2286
2987 */
2988#define HMAC_RMD160_TEST_VECTORS 7
2989
2990static struct hash_testvec hmac_rmd160_tv_template[] = {
2991 {
2992 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
2993 .ksize = 20,
2994 .plaintext = "Hi There",
2995 .psize = 8,
2996 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
2997 "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
2998 }, {
2999 .key = "Jefe",
3000 .ksize = 4,
3001 .plaintext = "what do ya want for nothing?",
3002 .psize = 28,
3003 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
3004 "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
3005 .np = 2,
3006 .tap = { 14, 14 },
3007 }, {
3008 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3009 .ksize = 20,
3010 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3011 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3012 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3013 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3014 .psize = 50,
3015 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
3016 "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
3017 }, {
3018 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3019 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3020 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3021 .ksize = 25,
3022 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3023 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3024 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3025 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3026 .psize = 50,
3027 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
3028 "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
3029 }, {
3030 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3031 .ksize = 20,
3032 .plaintext = "Test With Truncation",
3033 .psize = 20,
3034 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
3035 "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
3036 }, {
3037 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3038 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3039 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3040 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3041 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3042 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3043 "\xaa\xaa",
3044 .ksize = 80,
3045 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3046 .psize = 54,
3047 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
3048 "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
3049 }, {
3050 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3051 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3052 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3053 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3054 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3055 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3056 "\xaa\xaa",
3057 .ksize = 80,
3058 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3059 "Block-Size Data",
3060 .psize = 73,
3061 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
3062 "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
3063 },
3064};
3065
3066/*
3067 * HMAC-SHA1 test vectors from RFC2202
3068 */
3069#define HMAC_SHA1_TEST_VECTORS 7
3070
3071static struct hash_testvec hmac_sha1_tv_template[] = {
3072 {
3073 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3074 .ksize = 20,
3075 .plaintext = "Hi There",
3076 .psize = 8,
3077 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
3078 "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
3079 "\x46\xbe",
3080 }, {
3081 .key = "Jefe",
3082 .ksize = 4,
3083 .plaintext = "what do ya want for nothing?",
3084 .psize = 28,
3085 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
3086 "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
3087 .np = 2,
3088 .tap = { 14, 14 }
3089 }, {
3090 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3091 .ksize = 20,
3092 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3093 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3094 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3095 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3096 .psize = 50,
3097 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
3098 "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
3099 }, {
3100 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3101 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3102 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3103 .ksize = 25,
3104 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3105 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3106 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3107 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3108 .psize = 50,
3109 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
3110 "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
3111 }, {
3112 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3113 .ksize = 20,
3114 .plaintext = "Test With Truncation",
3115 .psize = 20,
3116 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
3117 "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
3118 }, {
3119 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3120 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3121 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3122 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3123 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3124 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3125 "\xaa\xaa",
3126 .ksize = 80,
3127 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3128 .psize = 54,
3129 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
3130 "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
3131 }, {
3132 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3133 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3134 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3135 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3136 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3137 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3138 "\xaa\xaa",
3139 .ksize = 80,
3140 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3141 "Block-Size Data",
3142 .psize = 73,
3143 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
3144 "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
3145 },
3146};
3147
3148
3149/*
3150 * SHA224 HMAC test vectors from RFC4231
3151 */
3152#define HMAC_SHA224_TEST_VECTORS 4
3153
3154static struct hash_testvec hmac_sha224_tv_template[] = {
3155 {
3156 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3157 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3158 "\x0b\x0b\x0b\x0b",
3159 .ksize = 20,
3160 /* ("Hi There") */
3161 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
3162 .psize = 8,
3163 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
3164 "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
3165 "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
3166 "\x53\x68\x4b\x22",
3167 }, {
3168 .key = "Jefe",
3169 .ksize = 4,
3170 /* ("what do ya want for nothing?") */
3171 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
3172 "\x79\x61\x20\x77\x61\x6e\x74\x20"
3173 "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
3174 "\x69\x6e\x67\x3f",
3175 .psize = 28,
3176 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
3177 "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
3178 "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
3179 "\x8f\xd0\x5e\x44",
3180 .np = 4,
3181 .tap = { 7, 7, 7, 7 }
3182 }, {
3183 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3184 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3185 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3186 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3187 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3188 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3189 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3190 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3191 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3192 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3193 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3194 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3195 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3196 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3197 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3198 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3199 "\xaa\xaa\xaa",
3200 .ksize = 131,
3201 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
3202 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
3203 "\x6e\x67\x20\x4c\x61\x72\x67\x65"
3204 "\x72\x20\x54\x68\x61\x6e\x20\x42"
3205 "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
3206 "\x65\x20\x4b\x65\x79\x20\x2d\x20"
3207 "\x48\x61\x73\x68\x20\x4b\x65\x79"
3208 "\x20\x46\x69\x72\x73\x74",
3209 .psize = 54,
3210 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
3211 "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
3212 "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
3213 "\x3f\xa6\x87\x0e",
3214 }, {
3215 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3216 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3217 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3218 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3219 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3220 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3221 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3222 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3223 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3224 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3225 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3226 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3227 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3228 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3229 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3230 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3231 "\xaa\xaa\xaa",
3232 .ksize = 131,
3233 /* ("This is a test using a larger than block-size key and a")
3234 (" larger than block-size data. The key needs to be")
3235 (" hashed before being used by the HMAC algorithm.") */
3236 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
3237 "\x61\x20\x74\x65\x73\x74\x20\x75"
3238 "\x73\x69\x6e\x67\x20\x61\x20\x6c"
3239 "\x61\x72\x67\x65\x72\x20\x74\x68"
3240 "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
3241 "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
3242 "\x79\x20\x61\x6e\x64\x20\x61\x20"
3243 "\x6c\x61\x72\x67\x65\x72\x20\x74"
3244 "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
3245 "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
3246 "\x61\x74\x61\x2e\x20\x54\x68\x65"
3247 "\x20\x6b\x65\x79\x20\x6e\x65\x65"
3248 "\x64\x73\x20\x74\x6f\x20\x62\x65"
3249 "\x20\x68\x61\x73\x68\x65\x64\x20"
3250 "\x62\x65\x66\x6f\x72\x65\x20\x62"
3251 "\x65\x69\x6e\x67\x20\x75\x73\x65"
3252 "\x64\x20\x62\x79\x20\x74\x68\x65"
3253 "\x20\x48\x4d\x41\x43\x20\x61\x6c"
3254 "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
3255 .psize = 152,
3256 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
3257 "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
3258 "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
3259 "\xf6\xf5\x65\xd1",
3260 },
3261};
3262
3263/*
3264 * HMAC-SHA256 test vectors from
3265 * draft-ietf-ipsec-ciph-sha-256-01.txt
3266 */
3267#define HMAC_SHA256_TEST_VECTORS 10
3268
3269static struct hash_testvec hmac_sha256_tv_template[] = {
3270 {
3271 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3272 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3273 "\x11\x12\x13\x14\x15\x16\x17\x18"
3274 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3275 .ksize = 32,
3276 .plaintext = "abc",
3277 .psize = 3,
3278 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
3279 "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
3280 "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
3281 "\x92\x75\x90\x21\xcf\xab\x81\x81",
3282 }, {
3283 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3284 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3285 "\x11\x12\x13\x14\x15\x16\x17\x18"
3286 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3287 .ksize = 32,
3288 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3289 .psize = 56,
3290 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
3291 "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
3292 "\xe6\x98\xe3\x61\x19\x42\x11\x49"
3293 "\xea\x8c\x71\x24\x56\x69\x7d\x30",
3294 }, {
3295 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3296 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3297 "\x11\x12\x13\x14\x15\x16\x17\x18"
3298 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
3299 .ksize = 32,
3300 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
3301 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3302 .psize = 112,
3303 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
3304 "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
3305 "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
3306 "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
3307 }, {
3308 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3309 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3310 "\x0b\x0b\x0b\x0b\x0b\x0b",
3311 .ksize = 32,
3312 .plaintext = "Hi There",
3313 .psize = 8,
3314 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
3315 "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
3316 "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
3317 "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
3318 }, {
3319 .key = "Jefe",
3320 .ksize = 4,
3321 .plaintext = "what do ya want for nothing?",
3322 .psize = 28,
3323 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
3324 "\x6a\x04\x24\x26\x08\x95\x75\xc7"
3325 "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
3326 "\x9d\xec\x58\xb9\x64\xec\x38\x43",
3327 .np = 2,
3328 .tap = { 14, 14 }
3329 }, {
3330 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3331 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3332 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3333 .ksize = 32,
3334 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3335 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3336 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3337 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3338 .psize = 50,
3339 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
3340 "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
3341 "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
3342 "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
3343 }, {
3344 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3345 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3346 "\x11\x12\x13\x14\x15\x16\x17\x18"
3347 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
3348 "\x21\x22\x23\x24\x25",
3349 .ksize = 37,
3350 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3351 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3352 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3353 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3354 .psize = 50,
3355 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
3356 "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
3357 "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
3358 "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
3359 }, {
3360 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
3361 "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
3362 "\x0c\x0c\x0c\x0c\x0c\x0c",
3363 .ksize = 32,
3364 .plaintext = "Test With Truncation",
3365 .psize = 20,
3366 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
3367 "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
3368 "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
3369 "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
3370 }, {
3371 .key = "\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\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3377 "\xaa\xaa",
3378 .ksize = 80,
3379 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3380 .psize = 54,
3381 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
3382 "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
3383 "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
3384 "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
3385 }, {
3386 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3387 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3388 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3389 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3390 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3391 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3392 "\xaa\xaa",
3393 .ksize = 80,
3394 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
3395 "One Block-Size Data",
3396 .psize = 73,
3397 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
3398 "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
3399 "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
3400 "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
3401 },
3402};
3403
93b5e86a
JK
3404#define CMAC_AES_TEST_VECTORS 6
3405
3406static struct hash_testvec aes_cmac128_tv_template[] = {
3407 { /* From NIST Special Publication 800-38B, AES-128 */
3408 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3409 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3410 .plaintext = zeroed_string,
3411 .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
3412 "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
3413 .psize = 0,
3414 .ksize = 16,
3415 }, {
3416 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3417 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3418 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3419 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
3420 .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
3421 "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
3422 .psize = 16,
3423 .ksize = 16,
3424 }, {
3425 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3426 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3427 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3428 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3429 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3430 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3431 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
3432 .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
3433 "\x30\xca\x32\x61\x14\x97\xc8\x27",
3434 .psize = 40,
3435 .ksize = 16,
3436 }, {
3437 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
3438 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
3439 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3440 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3441 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3442 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3443 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3444 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3445 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3446 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
3447 .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
3448 "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
3449 .psize = 64,
3450 .ksize = 16,
3451 }, { /* From NIST Special Publication 800-38B, AES-256 */
3452 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
3453 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
3454 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
3455 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
3456 .plaintext = zeroed_string,
3457 .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
3458 "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
3459 .psize = 0,
3460 .ksize = 32,
3461 }, {
3462 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
3463 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
3464 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
3465 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
3466 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3467 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3468 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3469 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
3470 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
3471 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
3472 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
3473 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
3474 .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
3475 "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
3476 .psize = 64,
3477 .ksize = 32,
3478 }
3479};
3480
3481#define CMAC_DES3_EDE_TEST_VECTORS 4
3482
3483static struct hash_testvec des3_ede_cmac64_tv_template[] = {
3484/*
3485 * From NIST Special Publication 800-38B, Three Key TDEA
3486 * Corrected test vectors from:
3487 * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
3488 */
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 = zeroed_string,
3494 .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
3495 .psize = 0,
3496 .ksize = 24,
3497 }, {
3498 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3499 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3500 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3501 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
3502 .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
3503 .psize = 8,
3504 .ksize = 24,
3505 }, {
3506 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3507 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3508 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3509 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3510 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3511 "\xae\x2d\x8a\x57",
3512 .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
3513 .psize = 20,
3514 .ksize = 24,
3515 }, {
3516 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
3517 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
3518 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
3519 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
3520 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
3521 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
3522 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
3523 .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
3524 .psize = 32,
3525 .ksize = 24,
3526 }
3527};
3528
da7f033d
HX
3529#define XCBC_AES_TEST_VECTORS 6
3530
3531static struct hash_testvec aes_xcbc128_tv_template[] = {
3532 {
3533 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3534 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3535 .plaintext = zeroed_string,
3536 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
3537 "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
3538 .psize = 0,
3539 .ksize = 16,
3540 }, {
3541 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3542 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3543 .plaintext = "\x00\x01\x02",
3544 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
3545 "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
3546 .psize = 3,
3547 .ksize = 16,
3548 } , {
3549 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3550 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3551 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3552 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3553 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
3554 "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
3555 .psize = 16,
3556 .ksize = 16,
3557 }, {
3558 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3559 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3560 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3561 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3562 "\x10\x11\x12\x13",
3563 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
3564 "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
3565 .tap = { 10, 10 },
3566 .psize = 20,
3567 .np = 2,
3568 .ksize = 16,
3569 }, {
3570 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3571 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3572 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3573 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3574 "\x10\x11\x12\x13\x14\x15\x16\x17"
3575 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
3576 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
3577 "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
3578 .psize = 32,
3579 .ksize = 16,
3580 }, {
3581 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3582 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3583 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
3584 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
3585 "\x10\x11\x12\x13\x14\x15\x16\x17"
3586 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
3587 "\x20\x21",
3588 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
3589 "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
3590 .tap = { 17, 17 },
3591 .psize = 34,
3592 .np = 2,
3593 .ksize = 16,
3594 }
3595};
3596
ba1ee070 3597#define VMAC_AES_TEST_VECTORS 11
304a204e 3598static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01',
f1939f7c
SW
3599 '\x02', '\x03', '\x02', '\x02',
3600 '\x02', '\x04', '\x01', '\x07',
3601 '\x04', '\x01', '\x04', '\x03',};
304a204e
SW
3602static char vmac_string2[128] = {'a', 'b', 'c',};
3603static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c',
3604 'a', 'b', 'c', 'a', 'b', 'c',
3605 'a', 'b', 'c', 'a', 'b', 'c',
3606 'a', 'b', 'c', 'a', 'b', 'c',
3607 'a', 'b', 'c', 'a', 'b', 'c',
3608 'a', 'b', 'c', 'a', 'b', 'c',
3609 'a', 'b', 'c', 'a', 'b', 'c',
3610 'a', 'b', 'c', 'a', 'b', 'c',
3611 };
3612
ba1ee070
SQ
3613static char vmac_string4[17] = {'b', 'c', 'e', 'f',
3614 'i', 'j', 'l', 'm',
3615 'o', 'p', 'r', 's',
3616 't', 'u', 'w', 'x', 'z'};
3617
3618static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c',
3619 'o', 'l', 'k', ']', '%',
3620 '9', '2', '7', '!', 'A'};
3621
3622static char vmac_string6[129] = {'p', 't', '*', '7', 'l',
3623 'i', '!', '#', 'w', '0',
3624 'z', '/', '4', 'A', 'n'};
3625
f1939f7c
SW
3626static struct hash_testvec aes_vmac128_tv_template[] = {
3627 {
304a204e
SW
3628 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3629 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3630 .plaintext = NULL,
3631 .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54",
3632 .psize = 0,
3633 .ksize = 16,
3634 }, {
3635 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3636 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3637 .plaintext = vmac_string1,
3638 .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1",
3639 .psize = 128,
3640 .ksize = 16,
3641 }, {
3642 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3643 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
3644 .plaintext = vmac_string2,
3645 .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d",
3646 .psize = 128,
3647 .ksize = 16,
3648 }, {
f1939f7c
SW
3649 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
3650 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
304a204e
SW
3651 .plaintext = vmac_string3,
3652 .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19",
3653 .psize = 128,
3654 .ksize = 16,
3655 }, {
3656 .key = "abcdefghijklmnop",
3657 .plaintext = NULL,
3658 .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84",
3659 .psize = 0,
3660 .ksize = 16,
3661 }, {
3662 .key = "abcdefghijklmnop",
3663 .plaintext = vmac_string1,
3664 .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2",
3665 .psize = 128,
3666 .ksize = 16,
3667 }, {
3668 .key = "abcdefghijklmnop",
3669 .plaintext = vmac_string2,
3670 .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf",
3671 .psize = 128,
3672 .ksize = 16,
3673 }, {
3674 .key = "abcdefghijklmnop",
3675 .plaintext = vmac_string3,
3676 .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4",
f1939f7c
SW
3677 .psize = 128,
3678 .ksize = 16,
ba1ee070
SQ
3679 }, {
3680 .key = "a09b5cd!f#07K\x00\x00\x00",
3681 .plaintext = vmac_string4,
3682 .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f",
3683 .psize = sizeof(vmac_string4),
3684 .ksize = 16,
3685 }, {
3686 .key = "a09b5cd!f#07K\x00\x00\x00",
3687 .plaintext = vmac_string5,
3688 .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60",
3689 .psize = sizeof(vmac_string5),
3690 .ksize = 16,
3691 }, {
3692 .key = "a09b5cd!f#07K\x00\x00\x00",
3693 .plaintext = vmac_string6,
3694 .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41",
3695 .psize = sizeof(vmac_string6),
3696 .ksize = 16,
f1939f7c
SW
3697 },
3698};
3699
da7f033d
HX
3700/*
3701 * SHA384 HMAC test vectors from RFC4231
3702 */
3703
3704#define HMAC_SHA384_TEST_VECTORS 4
3705
3706static struct hash_testvec hmac_sha384_tv_template[] = {
3707 {
3708 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3709 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3710 "\x0b\x0b\x0b\x0b",
3711 .ksize = 20,
3712 .plaintext = "Hi There",
3713 .psize = 8,
3714 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
3715 "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
3716 "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
3717 "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
3718 "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
3719 "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
3720 }, {
3721 .key = "Jefe",
3722 .ksize = 4,
3723 .plaintext = "what do ya want for nothing?",
3724 .psize = 28,
3725 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
3726 "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
3727 "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
3728 "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
3729 "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
3730 "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
3731 .np = 4,
3732 .tap = { 7, 7, 7, 7 }
3733 }, {
3734 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3735 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3736 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3737 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3738 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3739 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3740 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3741 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3742 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3743 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3744 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3745 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3746 "\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",
3751 .ksize = 131,
3752 .plaintext = "Test Using Larger Than Block-Siz"
3753 "e Key - Hash Key First",
3754 .psize = 54,
3755 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
3756 "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
3757 "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
3758 "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
3759 "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
3760 "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
3761 }, {
3762 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3763 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3764 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3765 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3766 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3767 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3768 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3769 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3770 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3771 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3772 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3773 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3774 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3775 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3776 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3777 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3778 "\xaa\xaa\xaa",
3779 .ksize = 131,
3780 .plaintext = "This is a test u"
3781 "sing a larger th"
3782 "an block-size ke"
3783 "y and a larger t"
3784 "han block-size d"
3785 "ata. The key nee"
3786 "ds to be hashed "
3787 "before being use"
3788 "d by the HMAC al"
3789 "gorithm.",
3790 .psize = 152,
3791 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
3792 "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
3793 "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
3794 "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
3795 "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
3796 "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
3797 },
3798};
3799
3800/*
3801 * SHA512 HMAC test vectors from RFC4231
3802 */
3803
3804#define HMAC_SHA512_TEST_VECTORS 4
3805
3806static struct hash_testvec hmac_sha512_tv_template[] = {
3807 {
3808 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3809 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3810 "\x0b\x0b\x0b\x0b",
3811 .ksize = 20,
3812 .plaintext = "Hi There",
3813 .psize = 8,
3814 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
3815 "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
3816 "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
3817 "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
3818 "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
3819 "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
3820 "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
3821 "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
3822 }, {
3823 .key = "Jefe",
3824 .ksize = 4,
3825 .plaintext = "what do ya want for nothing?",
3826 .psize = 28,
3827 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
3828 "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
3829 "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
3830 "\x10\x27\x0c\xd7\xea\x25\x05\x54"
3831 "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
3832 "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
3833 "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
3834 "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
3835 .np = 4,
3836 .tap = { 7, 7, 7, 7 }
3837 }, {
3838 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3839 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3840 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3841 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3842 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3843 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3844 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3845 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3846 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3847 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3848 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3849 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3850 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3851 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3852 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3853 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3854 "\xaa\xaa\xaa",
3855 .ksize = 131,
3856 .plaintext = "Test Using Large"
3857 "r Than Block-Siz"
3858 "e Key - Hash Key"
3859 " First",
3860 .psize = 54,
3861 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
3862 "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
3863 "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
3864 "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
3865 "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
3866 "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
3867 "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
3868 "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
3869 }, {
3870 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3871 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3872 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3873 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3874 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3875 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3876 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3877 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3878 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3879 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3880 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3881 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3882 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3883 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3884 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3885 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3886 "\xaa\xaa\xaa",
3887 .ksize = 131,
3888 .plaintext =
3889 "This is a test u"
3890 "sing a larger th"
3891 "an block-size ke"
3892 "y and a larger t"
3893 "han block-size d"
3894 "ata. The key nee"
3895 "ds to be hashed "
3896 "before being use"
3897 "d by the HMAC al"
3898 "gorithm.",
3899 .psize = 152,
3900 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
3901 "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
3902 "\xde\xbd\x71\xf8\x86\x72\x89\x86"
3903 "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
3904 "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
3905 "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
3906 "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
3907 "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
3908 },
3909};
3910
98eca72f 3911#define HMAC_SHA3_224_TEST_VECTORS 4
3912
3913static struct hash_testvec hmac_sha3_224_tv_template[] = {
3914 {
3915 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3916 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3917 "\x0b\x0b\x0b\x0b",
3918 .ksize = 20,
3919 .plaintext = "Hi There",
3920 .psize = 8,
3921 .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70"
3922 "\x6a\x03\x1d\xca\xfd\x56\x37\x3d"
3923 "\x98\x84\x36\x76\x41\xd8\xc5\x9a"
3924 "\xf3\xc8\x60\xf7",
3925 }, {
3926 .key = "Jefe",
3927 .ksize = 4,
3928 .plaintext = "what do ya want for nothing?",
3929 .psize = 28,
3930 .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d"
3931 "\x1b\x79\x86\x34\xad\x38\x68\x11"
3932 "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b"
3933 "\xba\xce\x5e\x66",
3934 .np = 4,
3935 .tap = { 7, 7, 7, 7 }
3936 }, {
3937 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3938 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3939 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3940 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3941 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3942 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3943 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3944 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3945 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3946 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3947 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3948 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3949 "\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",
3954 .ksize = 131,
3955 .plaintext = "Test Using Large"
3956 "r Than Block-Siz"
3957 "e Key - Hash Key"
3958 " First",
3959 .psize = 54,
3960 .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b"
3961 "\x7f\x60\x75\xb3\x13\xd2\x79\xb8"
3962 "\x33\xbc\x8f\x75\x12\x43\x52\xd0"
3963 "\x5f\xb9\x99\x5f",
3964 }, {
3965 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3966 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3967 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3968 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3969 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3970 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3971 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3972 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3973 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3974 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3975 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3976 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3977 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3978 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3979 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3980 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3981 "\xaa\xaa\xaa",
3982 .ksize = 131,
3983 .plaintext =
3984 "This is a test u"
3985 "sing a larger th"
3986 "an block-size ke"
3987 "y and a larger t"
3988 "han block-size d"
3989 "ata. The key nee"
3990 "ds to be hashed "
3991 "before being use"
3992 "d by the HMAC al"
3993 "gorithm.",
3994 .psize = 152,
3995 .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d"
3996 "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd"
3997 "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b"
3998 "\x29\xcd\x62\xa0",
3999 },
4000};
4001
4002#define HMAC_SHA3_256_TEST_VECTORS 4
4003
4004static struct hash_testvec hmac_sha3_256_tv_template[] = {
4005 {
4006 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4007 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4008 "\x0b\x0b\x0b\x0b",
4009 .ksize = 20,
4010 .plaintext = "Hi There",
4011 .psize = 8,
4012 .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96"
4013 "\xe2\xa3\xa4\x0e\x69\x77\x43\x51"
4014 "\x14\x0b\xb7\x18\x5e\x12\x02\xcd"
4015 "\xcc\x91\x75\x89\xf9\x5e\x16\xbb",
4016 }, {
4017 .key = "Jefe",
4018 .ksize = 4,
4019 .plaintext = "what do ya want for nothing?",
4020 .psize = 28,
4021 .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae"
4022 "\x35\x96\xbb\xb0\xda\x73\xb8\x87"
4023 "\xc9\x17\x1f\x93\x09\x5b\x29\x4a"
4024 "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5",
4025 .np = 4,
4026 .tap = { 7, 7, 7, 7 }
4027 }, {
4028 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4029 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4030 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4031 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4032 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4033 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4034 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4035 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4036 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4037 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4038 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4039 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4040 "\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",
4045 .ksize = 131,
4046 .plaintext = "Test Using Large"
4047 "r Than Block-Siz"
4048 "e Key - Hash Key"
4049 " First",
4050 .psize = 54,
4051 .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52"
4052 "\x35\xf9\x48\x03\x2f\x09\x67\x4a"
4053 "\x58\xc0\xce\x55\x5c\xfc\x1f\x22"
4054 "\x3b\x02\x35\x65\x60\x31\x2c\x3b",
4055 }, {
4056 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4057 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4058 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4059 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4060 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4061 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4062 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4063 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4064 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4065 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4066 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4067 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4068 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4069 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4070 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4071 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4072 "\xaa\xaa\xaa",
4073 .ksize = 131,
4074 .plaintext =
4075 "This is a test u"
4076 "sing a larger th"
4077 "an block-size ke"
4078 "y and a larger t"
4079 "han block-size d"
4080 "ata. The key nee"
4081 "ds to be hashed "
4082 "before being use"
4083 "d by the HMAC al"
4084 "gorithm.",
4085 .psize = 152,
4086 .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a"
4087 "\x7a\xef\x87\x63\x26\x1e\x49\xad"
4088 "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e"
4089 "\x8d\xe6\x17\x01\xfc\x63\xe1\x23",
4090 },
4091};
4092
4093#define HMAC_SHA3_384_TEST_VECTORS 4
4094
4095static struct hash_testvec hmac_sha3_384_tv_template[] = {
4096 {
4097 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4098 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4099 "\x0b\x0b\x0b\x0b",
4100 .ksize = 20,
4101 .plaintext = "Hi There",
4102 .psize = 8,
4103 .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a"
4104 "\x22\x40\xc8\xa4\x37\x30\x5f\x61"
4105 "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e"
4106 "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a"
4107 "\x20\xd3\x70\xb4\x77\x43\x13\x0e"
4108 "\x26\xac\x7e\x3d\x53\x28\x86\xbd",
4109 }, {
4110 .key = "Jefe",
4111 .ksize = 4,
4112 .plaintext = "what do ya want for nothing?",
4113 .psize = 28,
4114 .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd"
4115 "\x67\x64\xd2\xed\x61\x90\x3f\x21"
4116 "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2"
4117 "\x3c\xa1\x35\x08\xa9\x32\x43\xce"
4118 "\x48\xc0\x45\xdc\x00\x7f\x26\xa2"
4119 "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a",
4120 .np = 4,
4121 .tap = { 7, 7, 7, 7 }
4122 }, {
4123 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4124 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4125 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4126 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4127 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4128 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4129 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4130 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4131 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4132 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4133 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4134 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4135 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4136 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4137 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4138 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4139 "\xaa\xaa\xaa",
4140 .ksize = 131,
4141 .plaintext = "Test Using Large"
4142 "r Than Block-Siz"
4143 "e Key - Hash Key"
4144 " First",
4145 .psize = 54,
4146 .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78"
4147 "\x03\x70\x16\x70\x6a\x0e\x57\xbc"
4148 "\x52\x81\x39\x83\x6b\x9a\x42\xc3"
4149 "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96"
4150 "\x16\xfd\x66\x91\x38\xd3\x3a\x11"
4151 "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc",
4152 }, {
4153 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4154 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4155 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4156 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4157 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4158 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4159 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4160 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4161 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4162 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4163 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4164 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4165 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4166 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4167 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4168 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4169 "\xaa\xaa\xaa",
4170 .ksize = 131,
4171 .plaintext =
4172 "This is a test u"
4173 "sing a larger th"
4174 "an block-size ke"
4175 "y and a larger t"
4176 "han block-size d"
4177 "ata. The key nee"
4178 "ds to be hashed "
4179 "before being use"
4180 "d by the HMAC al"
4181 "gorithm.",
4182 .psize = 152,
4183 .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37"
4184 "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e"
4185 "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a"
4186 "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5"
4187 "\xa9\x00\xed\xce\x01\xf5\xf6\x1e"
4188 "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8",
4189 },
4190};
4191
4192#define HMAC_SHA3_512_TEST_VECTORS 4
4193
4194static struct hash_testvec hmac_sha3_512_tv_template[] = {
4195 {
4196 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4197 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4198 "\x0b\x0b\x0b\x0b",
4199 .ksize = 20,
4200 .plaintext = "Hi There",
4201 .psize = 8,
4202 .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5"
4203 "\xc5\x04\xbd\x3a\x41\x46\x5a\xac"
4204 "\xec\x15\x77\x0a\x7c\xab\xac\x53"
4205 "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba"
4206 "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f"
4207 "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2"
4208 "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05"
4209 "\x37\xc0\xa0\xb8\x64\x07\x68\x9e",
4210 }, {
4211 .key = "Jefe",
4212 .ksize = 4,
4213 .plaintext = "what do ya want for nothing?",
4214 .psize = 28,
4215 .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c"
4216 "\x7a\x36\x47\xb7\x47\x29\x2b\x83"
4217 "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf"
4218 "\x56\x65\xe4\xc5\xe7\x09\x35\x0b"
4219 "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0"
4220 "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e"
4221 "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83"
4222 "\x96\x02\x75\xbe\xb4\xe6\x20\x24",
4223 .np = 4,
4224 .tap = { 7, 7, 7, 7 }
4225 }, {
4226 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4227 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4228 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4229 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4230 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4231 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4232 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4233 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4234 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4235 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4236 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4237 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4238 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4239 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4240 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4241 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4242 "\xaa\xaa\xaa",
4243 .ksize = 131,
4244 .plaintext = "Test Using Large"
4245 "r Than Block-Siz"
4246 "e Key - Hash Key"
4247 " First",
4248 .psize = 54,
4249 .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0"
4250 "\x90\xed\x69\x11\xa4\xb6\x55\x24"
4251 "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58"
4252 "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a"
4253 "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab"
4254 "\x27\xe8\x3f\xde\x9e\x11\xf6\x34"
4255 "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2"
4256 "\xee\xe7\xfc\x87\x24\x26\xc3\xa4",
4257 }, {
4258 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4259 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4260 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4261 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4262 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4263 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4264 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4265 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4266 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4267 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4268 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4269 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4270 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4271 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4272 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4273 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4274 "\xaa\xaa\xaa",
4275 .ksize = 131,
4276 .plaintext =
4277 "This is a test u"
4278 "sing a larger th"
4279 "an block-size ke"
4280 "y and a larger t"
4281 "han block-size d"
4282 "ata. The key nee"
4283 "ds to be hashed "
4284 "before being use"
4285 "d by the HMAC al"
4286 "gorithm.",
4287 .psize = 152,
4288 .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3"
4289 "\x2c\x9a\xb8\x33\x66\x84\x11\x28"
4290 "\x62\xc3\xdb\x61\xad\xcc\xa3\x18"
4291 "\x29\x35\x5e\xaf\x46\xfd\x5c\x73"
4292 "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6"
4293 "\x52\xfb\x38\x11\xb5\x77\xb1\xb1"
4294 "\xd1\xb9\x78\x9f\x97\xae\x5b\x83"
4295 "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba",
4296 },
4297};
4298
eee9dc61
MW
4299/*
4300 * Poly1305 test vectors from RFC7539 A.3.
4301 */
4302
4303#define POLY1305_TEST_VECTORS 11
4304
4305static struct hash_testvec poly1305_tv_template[] = {
4306 { /* Test Vector #1 */
c2b7b20a
MW
4307 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4308 "\x00\x00\x00\x00\x00\x00\x00\x00"
4309 "\x00\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4310 "\x00\x00\x00\x00\x00\x00\x00\x00"
4311 "\x00\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4312 "\x00\x00\x00\x00\x00\x00\x00\x00"
4313 "\x00\x00\x00\x00\x00\x00\x00\x00"
4314 "\x00\x00\x00\x00\x00\x00\x00\x00"
4315 "\x00\x00\x00\x00\x00\x00\x00\x00"
4316 "\x00\x00\x00\x00\x00\x00\x00\x00"
4317 "\x00\x00\x00\x00\x00\x00\x00\x00"
4318 "\x00\x00\x00\x00\x00\x00\x00\x00",
c2b7b20a 4319 .psize = 96,
eee9dc61
MW
4320 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
4321 "\x00\x00\x00\x00\x00\x00\x00\x00",
4322 }, { /* Test Vector #2 */
c2b7b20a 4323 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4324 "\x00\x00\x00\x00\x00\x00\x00\x00"
4325 "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
c2b7b20a
MW
4326 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
4327 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
eee9dc61
MW
4328 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
4329 "\x6f\x20\x74\x68\x65\x20\x49\x45"
4330 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
4331 "\x64\x65\x64\x20\x62\x79\x20\x74"
4332 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
4333 "\x69\x62\x75\x74\x6f\x72\x20\x66"
4334 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
4335 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
4336 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
4337 "\x20\x70\x61\x72\x74\x20\x6f\x66"
4338 "\x20\x61\x6e\x20\x49\x45\x54\x46"
4339 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
4340 "\x74\x2d\x44\x72\x61\x66\x74\x20"
4341 "\x6f\x72\x20\x52\x46\x43\x20\x61"
4342 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
4343 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
4344 "\x20\x6d\x61\x64\x65\x20\x77\x69"
4345 "\x74\x68\x69\x6e\x20\x74\x68\x65"
4346 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
4347 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
4348 "\x45\x54\x46\x20\x61\x63\x74\x69"
4349 "\x76\x69\x74\x79\x20\x69\x73\x20"
4350 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
4351 "\x65\x64\x20\x61\x6e\x20\x22\x49"
4352 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
4353 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
4354 "\x22\x2e\x20\x53\x75\x63\x68\x20"
4355 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4356 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
4357 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
4358 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4359 "\x74\x73\x20\x69\x6e\x20\x49\x45"
4360 "\x54\x46\x20\x73\x65\x73\x73\x69"
4361 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
4362 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
4363 "\x77\x72\x69\x74\x74\x65\x6e\x20"
4364 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
4365 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
4366 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
4367 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
4368 "\x64\x65\x20\x61\x74\x20\x61\x6e"
4369 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
4370 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
4371 "\x20\x77\x68\x69\x63\x68\x20\x61"
4372 "\x72\x65\x20\x61\x64\x64\x72\x65"
4373 "\x73\x73\x65\x64\x20\x74\x6f",
c2b7b20a 4374 .psize = 407,
eee9dc61
MW
4375 .digest = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
4376 "\xf0\xef\xca\x96\x22\x7a\x86\x3e",
4377 }, { /* Test Vector #3 */
c2b7b20a 4378 .plaintext = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
eee9dc61
MW
4379 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
4380 "\x00\x00\x00\x00\x00\x00\x00\x00"
c2b7b20a
MW
4381 "\x00\x00\x00\x00\x00\x00\x00\x00"
4382 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
eee9dc61
MW
4383 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
4384 "\x6f\x20\x74\x68\x65\x20\x49\x45"
4385 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
4386 "\x64\x65\x64\x20\x62\x79\x20\x74"
4387 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
4388 "\x69\x62\x75\x74\x6f\x72\x20\x66"
4389 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
4390 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
4391 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
4392 "\x20\x70\x61\x72\x74\x20\x6f\x66"
4393 "\x20\x61\x6e\x20\x49\x45\x54\x46"
4394 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
4395 "\x74\x2d\x44\x72\x61\x66\x74\x20"
4396 "\x6f\x72\x20\x52\x46\x43\x20\x61"
4397 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
4398 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
4399 "\x20\x6d\x61\x64\x65\x20\x77\x69"
4400 "\x74\x68\x69\x6e\x20\x74\x68\x65"
4401 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
4402 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
4403 "\x45\x54\x46\x20\x61\x63\x74\x69"
4404 "\x76\x69\x74\x79\x20\x69\x73\x20"
4405 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
4406 "\x65\x64\x20\x61\x6e\x20\x22\x49"
4407 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
4408 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
4409 "\x22\x2e\x20\x53\x75\x63\x68\x20"
4410 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4411 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
4412 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
4413 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
4414 "\x74\x73\x20\x69\x6e\x20\x49\x45"
4415 "\x54\x46\x20\x73\x65\x73\x73\x69"
4416 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
4417 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
4418 "\x77\x72\x69\x74\x74\x65\x6e\x20"
4419 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
4420 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
4421 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
4422 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
4423 "\x64\x65\x20\x61\x74\x20\x61\x6e"
4424 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
4425 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
4426 "\x20\x77\x68\x69\x63\x68\x20\x61"
4427 "\x72\x65\x20\x61\x64\x64\x72\x65"
4428 "\x73\x73\x65\x64\x20\x74\x6f",
c2b7b20a 4429 .psize = 407,
eee9dc61
MW
4430 .digest = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf"
4431 "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0",
4432 }, { /* Test Vector #4 */
c2b7b20a 4433 .plaintext = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
eee9dc61
MW
4434 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
4435 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
c2b7b20a
MW
4436 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
4437 "\x27\x54\x77\x61\x73\x20\x62\x72"
eee9dc61
MW
4438 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
4439 "\x6e\x64\x20\x74\x68\x65\x20\x73"
4440 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
4441 "\x76\x65\x73\x0a\x44\x69\x64\x20"
4442 "\x67\x79\x72\x65\x20\x61\x6e\x64"
4443 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
4444 "\x69\x6e\x20\x74\x68\x65\x20\x77"
4445 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
4446 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
4447 "\x65\x72\x65\x20\x74\x68\x65\x20"
4448 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
4449 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
4450 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
4451 "\x72\x61\x74\x68\x73\x20\x6f\x75"
4452 "\x74\x67\x72\x61\x62\x65\x2e",
c2b7b20a 4453 .psize = 159,
eee9dc61
MW
4454 .digest = "\x45\x41\x66\x9a\x7e\xaa\xee\x61"
4455 "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62",
4456 }, { /* Test Vector #5 */
c2b7b20a 4457 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4458 "\x00\x00\x00\x00\x00\x00\x00\x00"
4459 "\x00\x00\x00\x00\x00\x00\x00\x00"
c2b7b20a
MW
4460 "\x00\x00\x00\x00\x00\x00\x00\x00"
4461 "\xff\xff\xff\xff\xff\xff\xff\xff"
eee9dc61 4462 "\xff\xff\xff\xff\xff\xff\xff\xff",
c2b7b20a 4463 .psize = 48,
eee9dc61
MW
4464 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
4465 "\x00\x00\x00\x00\x00\x00\x00\x00",
4466 }, { /* Test Vector #6 */
c2b7b20a 4467 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4468 "\x00\x00\x00\x00\x00\x00\x00\x00"
4469 "\xff\xff\xff\xff\xff\xff\xff\xff"
c2b7b20a
MW
4470 "\xff\xff\xff\xff\xff\xff\xff\xff"
4471 "\x02\x00\x00\x00\x00\x00\x00\x00"
eee9dc61 4472 "\x00\x00\x00\x00\x00\x00\x00\x00",
c2b7b20a 4473 .psize = 48,
eee9dc61
MW
4474 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
4475 "\x00\x00\x00\x00\x00\x00\x00\x00",
4476 }, { /* Test Vector #7 */
c2b7b20a 4477 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4478 "\x00\x00\x00\x00\x00\x00\x00\x00"
4479 "\x00\x00\x00\x00\x00\x00\x00\x00"
c2b7b20a
MW
4480 "\x00\x00\x00\x00\x00\x00\x00\x00"
4481 "\xff\xff\xff\xff\xff\xff\xff\xff"
eee9dc61
MW
4482 "\xff\xff\xff\xff\xff\xff\xff\xff"
4483 "\xf0\xff\xff\xff\xff\xff\xff\xff"
4484 "\xff\xff\xff\xff\xff\xff\xff\xff"
4485 "\x11\x00\x00\x00\x00\x00\x00\x00"
4486 "\x00\x00\x00\x00\x00\x00\x00\x00",
c2b7b20a 4487 .psize = 80,
eee9dc61
MW
4488 .digest = "\x05\x00\x00\x00\x00\x00\x00\x00"
4489 "\x00\x00\x00\x00\x00\x00\x00\x00",
4490 }, { /* Test Vector #8 */
c2b7b20a
MW
4491 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
4492 "\x00\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4493 "\x00\x00\x00\x00\x00\x00\x00\x00"
4494 "\x00\x00\x00\x00\x00\x00\x00\x00"
c2b7b20a 4495 "\xff\xff\xff\xff\xff\xff\xff\xff"
eee9dc61
MW
4496 "\xff\xff\xff\xff\xff\xff\xff\xff"
4497 "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
4498 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
4499 "\x01\x01\x01\x01\x01\x01\x01\x01"
4500 "\x01\x01\x01\x01\x01\x01\x01\x01",
c2b7b20a 4501 .psize = 80,
eee9dc61
MW
4502 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
4503 "\x00\x00\x00\x00\x00\x00\x00\x00",
4504 }, { /* Test Vector #9 */
c2b7b20a 4505 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4506 "\x00\x00\x00\x00\x00\x00\x00\x00"
4507 "\x00\x00\x00\x00\x00\x00\x00\x00"
c2b7b20a
MW
4508 "\x00\x00\x00\x00\x00\x00\x00\x00"
4509 "\xfd\xff\xff\xff\xff\xff\xff\xff"
eee9dc61 4510 "\xff\xff\xff\xff\xff\xff\xff\xff",
c2b7b20a 4511 .psize = 48,
eee9dc61
MW
4512 .digest = "\xfa\xff\xff\xff\xff\xff\xff\xff"
4513 "\xff\xff\xff\xff\xff\xff\xff\xff",
4514 }, { /* Test Vector #10 */
c2b7b20a 4515 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4516 "\x04\x00\x00\x00\x00\x00\x00\x00"
4517 "\x00\x00\x00\x00\x00\x00\x00\x00"
c2b7b20a
MW
4518 "\x00\x00\x00\x00\x00\x00\x00\x00"
4519 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
eee9dc61
MW
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 "\x01\x00\x00\x00\x00\x00\x00\x00"
4526 "\x00\x00\x00\x00\x00\x00\x00\x00",
c2b7b20a 4527 .psize = 96,
eee9dc61
MW
4528 .digest = "\x14\x00\x00\x00\x00\x00\x00\x00"
4529 "\x55\x00\x00\x00\x00\x00\x00\x00",
4530 }, { /* Test Vector #11 */
c2b7b20a 4531 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
eee9dc61
MW
4532 "\x04\x00\x00\x00\x00\x00\x00\x00"
4533 "\x00\x00\x00\x00\x00\x00\x00\x00"
c2b7b20a
MW
4534 "\x00\x00\x00\x00\x00\x00\x00\x00"
4535 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
eee9dc61
MW
4536 "\x00\x00\x00\x00\x00\x00\x00\x00"
4537 "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
4538 "\x01\x00\x00\x00\x00\x00\x00\x00"
4539 "\x00\x00\x00\x00\x00\x00\x00\x00"
4540 "\x00\x00\x00\x00\x00\x00\x00\x00",
c2b7b20a 4541 .psize = 80,
eee9dc61
MW
4542 .digest = "\x13\x00\x00\x00\x00\x00\x00\x00"
4543 "\x00\x00\x00\x00\x00\x00\x00\x00",
4544 },
4545};
4546
da7f033d
HX
4547/*
4548 * DES test vectors.
4549 */
8163fc30
JK
4550#define DES_ENC_TEST_VECTORS 11
4551#define DES_DEC_TEST_VECTORS 5
4552#define DES_CBC_ENC_TEST_VECTORS 6
4553#define DES_CBC_DEC_TEST_VECTORS 5
4554#define DES_CTR_ENC_TEST_VECTORS 2
4555#define DES_CTR_DEC_TEST_VECTORS 2
e080b17a
JK
4556#define DES3_EDE_ENC_TEST_VECTORS 4
4557#define DES3_EDE_DEC_TEST_VECTORS 4
4558#define DES3_EDE_CBC_ENC_TEST_VECTORS 2
4559#define DES3_EDE_CBC_DEC_TEST_VECTORS 2
4560#define DES3_EDE_CTR_ENC_TEST_VECTORS 2
4561#define DES3_EDE_CTR_DEC_TEST_VECTORS 2
da7f033d
HX
4562
4563static struct cipher_testvec des_enc_tv_template[] = {
4564 { /* From Applied Cryptography */
4565 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4566 .klen = 8,
4567 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4568 .ilen = 8,
4569 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4570 .rlen = 8,
4571 }, { /* Same key, different plaintext block */
4572 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4573 .klen = 8,
4574 .input = "\x22\x33\x44\x55\x66\x77\x88\x99",
4575 .ilen = 8,
4576 .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4577 .rlen = 8,
4578 }, { /* Sbox test from NBS */
4579 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
4580 .klen = 8,
4581 .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
4582 .ilen = 8,
4583 .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4584 .rlen = 8,
4585 }, { /* Three blocks */
4586 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4587 .klen = 8,
4588 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4589 "\x22\x33\x44\x55\x66\x77\x88\x99"
4590 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
4591 .ilen = 24,
4592 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4593 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4594 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
4595 .rlen = 24,
4596 }, { /* Weak key */
09e21784 4597 .fail = true,
da7f033d
HX
4598 .wk = 1,
4599 .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
4600 .klen = 8,
4601 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4602 .ilen = 8,
4603 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4604 .rlen = 8,
4605 }, { /* Two blocks -- for testing encryption across pages */
4606 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4607 .klen = 8,
4608 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4609 "\x22\x33\x44\x55\x66\x77\x88\x99",
4610 .ilen = 16,
4611 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4612 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4613 .rlen = 16,
4614 .np = 2,
4615 .tap = { 8, 8 }
4616 }, { /* Four blocks -- for testing encryption with chunking */
4617 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4618 .klen = 8,
4619 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4620 "\x22\x33\x44\x55\x66\x77\x88\x99"
4621 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
4622 "\x22\x33\x44\x55\x66\x77\x88\x99",
4623 .ilen = 32,
4624 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4625 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4626 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
4627 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4628 .rlen = 32,
4629 .np = 3,
4630 .tap = { 14, 10, 8 }
4631 }, {
4632 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4633 .klen = 8,
4634 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4635 "\x22\x33\x44\x55\x66\x77\x88\x99"
4636 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
4637 .ilen = 24,
4638 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4639 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
4640 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
4641 .rlen = 24,
4642 .np = 4,
4643 .tap = { 2, 1, 3, 18 }
4644 }, {
4645 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4646 .klen = 8,
4647 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4648 "\x22\x33\x44\x55\x66\x77\x88\x99",
4649 .ilen = 16,
4650 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4651 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
4652 .rlen = 16,
4653 .np = 5,
4654 .tap = { 2, 2, 2, 2, 8 }
4655 }, {
4656 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4657 .klen = 8,
4658 .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4659 .ilen = 8,
4660 .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4661 .rlen = 8,
4662 .np = 8,
4663 .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
8163fc30
JK
4664 }, { /* Generated with Crypto++ */
4665 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4666 .klen = 8,
4667 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4668 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4669 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4670 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4671 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4672 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4673 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4674 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4675 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4676 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4677 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4678 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4679 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4680 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4681 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4682 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4683 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4684 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4685 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4686 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4687 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4688 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4689 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4690 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4691 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4692 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4693 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4694 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4695 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4696 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4697 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4698 .ilen = 248,
4699 .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
4700 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
4701 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
4702 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
4703 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
4704 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
4705 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
4706 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
4707 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
4708 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
4709 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
4710 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
4711 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
4712 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
4713 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
4714 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
4715 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
4716 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
4717 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
4718 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
4719 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
4720 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
4721 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
4722 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
4723 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
4724 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
4725 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
4726 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
4727 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
4728 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
4729 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
4730 .rlen = 248,
4731 .also_non_np = 1,
3b9b8fe0
AB
4732 .np = 3,
4733 .tap = { 248 - 10, 2, 8 },
da7f033d
HX
4734 },
4735};
4736
4737static struct cipher_testvec des_dec_tv_template[] = {
4738 { /* From Applied Cryptography */
4739 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4740 .klen = 8,
4741 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
4742 .ilen = 8,
4743 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
4744 .rlen = 8,
4745 }, { /* Sbox test from NBS */
4746 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
4747 .klen = 8,
4748 .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4749 .ilen = 8,
4750 .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
4751 .rlen = 8,
4752 }, { /* Two blocks, for chunking test */
4753 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4754 .klen = 8,
4755 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4756 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4757 .ilen = 16,
4758 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4759 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
4760 .rlen = 16,
4761 .np = 2,
4762 .tap = { 8, 8 }
4763 }, {
4764 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4765 .klen = 8,
4766 .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
4767 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
4768 .ilen = 16,
4769 .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
4770 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
4771 .rlen = 16,
4772 .np = 3,
4773 .tap = { 3, 12, 1 }
8163fc30
JK
4774 }, { /* Generated with Crypto++ */
4775 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4776 .klen = 8,
4777 .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
4778 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
4779 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
4780 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
4781 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
4782 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
4783 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
4784 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
4785 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
4786 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
4787 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
4788 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
4789 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
4790 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
4791 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
4792 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
4793 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
4794 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
4795 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
4796 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
4797 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
4798 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
4799 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
4800 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
4801 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
4802 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
4803 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
4804 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
4805 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
4806 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
4807 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
4808 .ilen = 248,
4809 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4810 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4811 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4812 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4813 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4814 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4815 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4816 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4817 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4818 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4819 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4820 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4821 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4822 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4823 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4824 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4825 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4826 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4827 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4828 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4829 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4830 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4831 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4832 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4833 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4834 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4835 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4836 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4837 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4838 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4839 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4840 .rlen = 248,
4841 .also_non_np = 1,
3b9b8fe0
AB
4842 .np = 3,
4843 .tap = { 248 - 10, 2, 8 },
da7f033d
HX
4844 },
4845};
4846
4847static struct cipher_testvec des_cbc_enc_tv_template[] = {
4848 { /* From OpenSSL */
4849 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4850 .klen = 8,
4851 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4852 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
4853 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
4854 "\x68\x65\x20\x74\x69\x6d\x65\x20",
4855 .ilen = 24,
4856 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
4857 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
4858 "\x46\x8e\x91\x15\x78\x88\xba\x68",
4859 .rlen = 24,
4860 }, { /* FIPS Pub 81 */
4861 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4862 .klen = 8,
4863 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
4864 .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
4865 .ilen = 8,
4866 .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4867 .rlen = 8,
4868 }, {
4869 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4870 .klen = 8,
4871 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4872 .input = "\x68\x65\x20\x74\x69\x6d\x65\x20",
4873 .ilen = 8,
4874 .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4875 .rlen = 8,
4876 }, {
4877 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4878 .klen = 8,
4879 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4880 .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
4881 .ilen = 8,
4882 .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
4883 .rlen = 8,
4884 }, { /* Copy of openssl vector for chunk testing */
4885 /* From OpenSSL */
4886 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4887 .klen = 8,
4888 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
4889 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
4890 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
4891 "\x68\x65\x20\x74\x69\x6d\x65\x20",
4892 .ilen = 24,
4893 .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
4894 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
4895 "\x46\x8e\x91\x15\x78\x88\xba\x68",
4896 .rlen = 24,
4897 .np = 2,
4898 .tap = { 13, 11 }
8163fc30
JK
4899 }, { /* Generated with Crypto++ */
4900 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
4901 .klen = 8,
4902 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
4903 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
4904 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
4905 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
4906 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
4907 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
4908 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
4909 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
4910 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
4911 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
4912 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
4913 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
4914 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
4915 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
4916 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
4917 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
4918 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
4919 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
4920 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
4921 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
4922 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
4923 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
4924 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
4925 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
4926 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
4927 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
4928 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
4929 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
4930 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
4931 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
4932 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
4933 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
4934 .ilen = 248,
4935 .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
4936 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
4937 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
4938 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
4939 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
4940 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
4941 "\x81\x72\x74\xDE\x30\x19\x69\x49"
4942 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
4943 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
4944 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
4945 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
4946 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
4947 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
4948 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
4949 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
4950 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
4951 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
4952 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
4953 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
4954 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
4955 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
4956 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
4957 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
4958 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
4959 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
4960 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
4961 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
4962 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
4963 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
4964 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
4965 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
4966 .rlen = 248,
4967 .also_non_np = 1,
3b9b8fe0
AB
4968 .np = 3,
4969 .tap = { 248 - 10, 2, 8 },
da7f033d
HX
4970 },
4971};
4972
4973static struct cipher_testvec des_cbc_dec_tv_template[] = {
4974 { /* FIPS Pub 81 */
4975 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4976 .klen = 8,
4977 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
4978 .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4979 .ilen = 8,
4980 .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
4981 .rlen = 8,
4982 }, {
4983 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4984 .klen = 8,
4985 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
4986 .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4987 .ilen = 8,
4988 .result = "\x68\x65\x20\x74\x69\x6d\x65\x20",
4989 .rlen = 8,
4990 }, {
4991 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
4992 .klen = 8,
4993 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
4994 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
4995 .ilen = 8,
4996 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
4997 .rlen = 8,
4998 }, { /* Copy of above, for chunk testing */
4999 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5000 .klen = 8,
5001 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5002 .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5003 .ilen = 8,
5004 .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5005 .rlen = 8,
5006 .np = 2,
5007 .tap = { 4, 4 }
8163fc30
JK
5008 }, { /* Generated with Crypto++ */
5009 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5010 .klen = 8,
5011 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5012 .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
5013 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
5014 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
5015 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
5016 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
5017 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
5018 "\x81\x72\x74\xDE\x30\x19\x69\x49"
5019 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
5020 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
5021 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
5022 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
5023 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
5024 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
5025 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
5026 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
5027 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
5028 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
5029 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
5030 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
5031 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
5032 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
5033 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
5034 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
5035 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
5036 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
5037 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
5038 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
5039 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
5040 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
5041 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
5042 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
5043 .ilen = 248,
5044 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5045 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5046 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5047 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5048 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5049 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5050 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5051 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5052 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5053 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5054 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5055 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5056 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5057 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5058 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5059 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5060 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5061 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5062 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5063 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5064 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5065 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5066 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5067 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5068 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5069 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5070 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5071 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5072 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5073 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5074 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5075 .rlen = 248,
5076 .also_non_np = 1,
3b9b8fe0
AB
5077 .np = 3,
5078 .tap = { 248 - 10, 2, 8 },
8163fc30
JK
5079 },
5080};
5081
5082static struct cipher_testvec des_ctr_enc_tv_template[] = {
5083 { /* Generated with Crypto++ */
5084 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5085 .klen = 8,
5086 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5087 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5088 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5089 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5090 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5091 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5092 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5093 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5094 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5095 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5096 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5097 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5098 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5099 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5100 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5101 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5102 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5103 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5104 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5105 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5106 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5107 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5108 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5109 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5110 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5111 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5112 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5113 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5114 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5115 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5116 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5117 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5118 .ilen = 248,
5119 .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5120 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5121 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5122 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5123 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5124 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5125 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5126 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5127 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5128 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5129 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5130 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5131 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5132 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5133 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5134 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5135 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5136 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5137 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5138 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5139 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5140 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5141 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5142 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5143 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5144 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5145 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5146 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5147 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5148 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5149 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5150 .rlen = 248,
5151 .also_non_np = 1,
3b9b8fe0
AB
5152 .np = 3,
5153 .tap = { 248 - 10, 2, 8 },
8163fc30
JK
5154 }, { /* Generated with Crypto++ */
5155 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5156 .klen = 8,
5157 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5158 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5159 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5160 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5161 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5162 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5163 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5164 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5165 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5166 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5167 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5168 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5169 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5170 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5171 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5172 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5173 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5174 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5175 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5176 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5177 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5178 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5179 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5180 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5181 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5182 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5183 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5184 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5185 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5186 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5187 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5188 "\xC6\x2F\xBB\x24\x8D\x19\x82",
5189 .ilen = 247,
5190 .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
5191 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
5192 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
5193 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
5194 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
5195 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
5196 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
5197 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
5198 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
5199 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
5200 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
5201 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
5202 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
5203 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
5204 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
5205 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
5206 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
5207 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
5208 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
5209 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
5210 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
5211 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
5212 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
5213 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
5214 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
5215 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
5216 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
5217 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
5218 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
5219 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
5220 "\x91\x45\x05\x3E\x58\xBF\x32",
5221 .rlen = 247,
5222 .also_non_np = 1,
5223 .np = 2,
5224 .tap = { 247 - 8, 8 },
5225 },
5226};
5227
5228static struct cipher_testvec des_ctr_dec_tv_template[] = {
5229 { /* Generated with Crypto++ */
5230 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5231 .klen = 8,
5232 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
5233 .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
5234 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
5235 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
5236 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
5237 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
5238 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
5239 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
5240 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
5241 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
5242 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
5243 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
5244 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
5245 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
5246 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
5247 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
5248 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
5249 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
5250 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
5251 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
5252 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
5253 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
5254 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
5255 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
5256 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
5257 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
5258 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
5259 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
5260 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
5261 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
5262 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
5263 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
5264 .ilen = 248,
5265 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5266 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5267 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5268 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5269 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5270 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5271 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5272 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5273 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5274 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5275 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5276 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5277 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5278 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5279 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5280 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5281 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5282 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5283 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5284 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5285 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5286 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5287 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5288 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5289 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5290 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5291 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5292 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5293 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5294 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5295 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
5296 .rlen = 248,
5297 .also_non_np = 1,
3b9b8fe0
AB
5298 .np = 3,
5299 .tap = { 248 - 10, 2, 8 },
8163fc30
JK
5300 }, { /* Generated with Crypto++ */
5301 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5302 .klen = 8,
5303 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
5304 .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
5305 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
5306 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
5307 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
5308 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
5309 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
5310 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
5311 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
5312 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
5313 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
5314 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
5315 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
5316 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
5317 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
5318 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
5319 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
5320 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
5321 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
5322 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
5323 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
5324 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
5325 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
5326 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
5327 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
5328 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
5329 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
5330 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
5331 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
5332 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
5333 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
5334 "\x91\x45\x05\x3E\x58\xBF\x32",
5335 .ilen = 247,
5336 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
5337 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5338 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5339 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5340 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5341 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5342 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5343 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5344 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5345 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5346 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5347 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5348 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5349 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5350 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5351 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5352 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5353 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5354 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5355 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5356 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5357 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5358 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5359 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5360 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5361 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5362 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5363 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5364 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5365 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5366 "\xC6\x2F\xBB\x24\x8D\x19\x82",
5367 .rlen = 247,
5368 .also_non_np = 1,
5369 .np = 2,
5370 .tap = { 247 - 8, 8 },
da7f033d
HX
5371 },
5372};
5373
5374static struct cipher_testvec des3_ede_enc_tv_template[] = {
5375 { /* These are from openssl */
5376 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5377 "\x55\x55\x55\x55\x55\x55\x55\x55"
5378 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5379 .klen = 24,
5380 .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
5381 .ilen = 8,
5382 .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
5383 .rlen = 8,
5384 }, {
5385 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
5386 "\x86\x02\x87\x66\x59\x08\x21\x98"
5387 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
5388 .klen = 24,
5389 .input = "\x73\x71\x75\x69\x67\x67\x6c\x65",
5390 .ilen = 8,
5391 .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
5392 .rlen = 8,
5393 }, {
5394 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
5395 "\x91\x07\xd0\x15\x89\x19\x01\x01"
5396 "\x19\x07\x92\x10\x98\x1a\x01\x01",
5397 .klen = 24,
5398 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
5399 .ilen = 8,
5400 .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
5401 .rlen = 8,
e080b17a
JK
5402 }, { /* Generated with Crypto++ */
5403 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
5404 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
5405 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
5406 .klen = 24,
5407 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5408 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5409 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5410 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5411 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5412 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5413 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5414 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5415 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5416 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5417 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5418 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5419 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5420 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5421 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5422 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5423 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5424 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5425 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5426 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5427 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5428 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5429 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5430 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5431 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5432 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5433 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5434 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5435 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5436 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5437 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5438 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5439 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5440 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5441 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5442 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5443 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5444 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5445 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5446 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5447 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5448 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5449 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5450 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5451 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5452 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5453 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5454 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5455 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5456 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5457 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5458 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5459 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5460 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5461 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5462 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5463 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5464 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5465 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5466 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5467 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5468 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5469 .ilen = 496,
5470 .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
5471 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
5472 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
5473 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
5474 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
5475 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
5476 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
5477 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
5478 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
5479 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
5480 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
5481 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
5482 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
5483 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
5484 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
5485 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
5486 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
5487 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
5488 "\x45\x86\x50\x01\x70\x35\x99\x92"
5489 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
5490 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
5491 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
5492 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
5493 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
5494 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
5495 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
5496 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
5497 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
5498 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
5499 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
5500 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
5501 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
5502 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
5503 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
5504 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
5505 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
5506 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
5507 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
5508 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
5509 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
5510 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
5511 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
5512 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
5513 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
5514 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
5515 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
5516 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
5517 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
5518 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
5519 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
5520 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
5521 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
5522 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
5523 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
5524 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
5525 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
5526 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
5527 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
5528 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
5529 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
5530 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
5531 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
5532 .rlen = 496,
5533 .also_non_np = 1,
3b9b8fe0
AB
5534 .np = 3,
5535 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
5536 },
5537};
5538
5539static struct cipher_testvec des3_ede_dec_tv_template[] = {
5540 { /* These are from openssl */
5541 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
5542 "\x55\x55\x55\x55\x55\x55\x55\x55"
5543 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
5544 .klen = 24,
5545 .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
5546 .ilen = 8,
5547 .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
5548 .rlen = 8,
5549 }, {
5550 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
5551 "\x86\x02\x87\x66\x59\x08\x21\x98"
5552 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
5553 .klen = 24,
5554 .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
5555 .ilen = 8,
5556 .result = "\x73\x71\x75\x69\x67\x67\x6c\x65",
5557 .rlen = 8,
5558 }, {
5559 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
5560 "\x91\x07\xd0\x15\x89\x19\x01\x01"
5561 "\x19\x07\x92\x10\x98\x1a\x01\x01",
5562 .klen = 24,
5563 .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
5564 .ilen = 8,
5565 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
5566 .rlen = 8,
e080b17a
JK
5567 }, { /* Generated with Crypto++ */
5568 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
5569 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
5570 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
5571 .klen = 24,
5572 .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
5573 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
5574 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
5575 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
5576 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
5577 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
5578 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
5579 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
5580 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
5581 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
5582 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
5583 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
5584 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
5585 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
5586 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
5587 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
5588 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
5589 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
5590 "\x45\x86\x50\x01\x70\x35\x99\x92"
5591 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
5592 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
5593 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
5594 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
5595 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
5596 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
5597 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
5598 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
5599 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
5600 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
5601 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
5602 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
5603 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
5604 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
5605 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
5606 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
5607 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
5608 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
5609 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
5610 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
5611 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
5612 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
5613 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
5614 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
5615 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
5616 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
5617 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
5618 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
5619 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
5620 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
5621 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
5622 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
5623 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
5624 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
5625 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
5626 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
5627 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
5628 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
5629 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
5630 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
5631 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
5632 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
5633 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
5634 .ilen = 496,
5635 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5636 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5637 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5638 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5639 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5640 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5641 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5642 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5643 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5644 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5645 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5646 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5647 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5648 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5649 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5650 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5651 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5652 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5653 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5654 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5655 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5656 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5657 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5658 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5659 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5660 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5661 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5662 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5663 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5664 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5665 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5666 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5667 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5668 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5669 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5670 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5671 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5672 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5673 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5674 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5675 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5676 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5677 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5678 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5679 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5680 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5681 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5682 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5683 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5684 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5685 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5686 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5687 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5688 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5689 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5690 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5691 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5692 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5693 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5694 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5695 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5696 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5697 .rlen = 496,
5698 .also_non_np = 1,
3b9b8fe0
AB
5699 .np = 3,
5700 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
5701 },
5702};
5703
5704static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = {
5705 { /* Generated from openssl */
5706 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
5707 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
5708 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
5709 .klen = 24,
5710 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
5711 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
5712 "\x53\x20\x63\x65\x65\x72\x73\x74"
5713 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
5714 "\x20\x79\x65\x53\x72\x63\x74\x65"
5715 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
5716 "\x79\x6e\x53\x20\x63\x65\x65\x72"
5717 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
5718 "\x6e\x61\x20\x79\x65\x53\x72\x63"
5719 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
5720 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
5721 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
5722 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
5723 "\x72\x63\x74\x65\x20\x73\x6f\x54"
5724 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
5725 "\x63\x65\x65\x72\x73\x74\x54\x20"
5726 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
5727 .ilen = 128,
5728 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
5729 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
5730 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
5731 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
5732 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
5733 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
5734 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
5735 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
5736 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
5737 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
5738 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
5739 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
5740 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
5741 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
5742 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
5743 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
5744 .rlen = 128,
e080b17a
JK
5745 }, { /* Generated with Crypto++ */
5746 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
5747 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
5748 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
5749 .klen = 24,
5750 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
5751 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
5752 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5753 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5754 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5755 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5756 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
5757 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
5758 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
5759 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
5760 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
5761 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
5762 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
5763 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
5764 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
5765 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
5766 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
5767 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
5768 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
5769 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
5770 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
5771 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
5772 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
5773 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
5774 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
5775 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
5776 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
5777 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
5778 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
5779 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
5780 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
5781 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
5782 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
5783 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
5784 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
5785 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
5786 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
5787 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
5788 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
5789 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
5790 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
5791 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
5792 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
5793 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
5794 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
5795 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
5796 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
5797 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
5798 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
5799 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
5800 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
5801 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
5802 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
5803 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
5804 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
5805 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
5806 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
5807 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
5808 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
5809 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
5810 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
5811 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
5812 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
5813 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
5814 .ilen = 496,
5815 .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
5816 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
5817 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
5818 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
5819 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
5820 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
5821 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
5822 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
5823 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
5824 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
5825 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
5826 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
5827 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
5828 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
5829 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
5830 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
5831 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
5832 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
5833 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
5834 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
5835 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
5836 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
5837 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
5838 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
5839 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
5840 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
5841 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
5842 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
5843 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
5844 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
5845 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
5846 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
5847 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
5848 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
5849 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
5850 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
5851 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
5852 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
5853 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
5854 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
5855 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
5856 "\x73\x50\x08\x56\x20\x9B\x94\x23"
5857 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
5858 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
5859 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
5860 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
5861 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
5862 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
5863 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
5864 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
5865 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
5866 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
5867 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
5868 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
5869 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
5870 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
5871 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
5872 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
5873 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
5874 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
5875 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
5876 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
5877 .rlen = 496,
5878 .also_non_np = 1,
3b9b8fe0
AB
5879 .np = 3,
5880 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
5881 },
5882};
5883
5884static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = {
5885 { /* Generated from openssl */
5886 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
5887 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
5888 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
5889 .klen = 24,
5890 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
5891 .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
5892 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
5893 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
5894 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
5895 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
5896 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
5897 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
5898 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
5899 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
5900 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
5901 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
5902 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
5903 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
5904 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
5905 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
5906 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
5907 .ilen = 128,
5908 .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
5909 "\x53\x20\x63\x65\x65\x72\x73\x74"
5910 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
5911 "\x20\x79\x65\x53\x72\x63\x74\x65"
5912 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
5913 "\x79\x6e\x53\x20\x63\x65\x65\x72"
5914 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
5915 "\x6e\x61\x20\x79\x65\x53\x72\x63"
5916 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
5917 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
5918 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
5919 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
5920 "\x72\x63\x74\x65\x20\x73\x6f\x54"
5921 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
5922 "\x63\x65\x65\x72\x73\x74\x54\x20"
5923 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
5924 .rlen = 128,
e080b17a
JK
5925 }, { /* Generated with Crypto++ */
5926 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
5927 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
5928 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
5929 .klen = 24,
5930 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
5931 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
5932 .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
5933 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
5934 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
5935 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
5936 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
5937 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
5938 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
5939 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
5940 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
5941 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
5942 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
5943 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
5944 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
5945 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
5946 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
5947 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
5948 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
5949 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
5950 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
5951 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
5952 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
5953 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
5954 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
5955 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
5956 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
5957 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
5958 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
5959 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
5960 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
5961 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
5962 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
5963 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
5964 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
5965 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
5966 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
5967 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
5968 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
5969 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
5970 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
5971 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
5972 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
5973 "\x73\x50\x08\x56\x20\x9B\x94\x23"
5974 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
5975 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
5976 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
5977 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
5978 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
5979 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
5980 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
5981 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
5982 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
5983 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
5984 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
5985 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
5986 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
5987 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
5988 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
5989 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
5990 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
5991 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
5992 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
5993 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
5994 .ilen = 496,
5995 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
5996 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
5997 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
5998 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
5999 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6000 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6001 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6002 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6003 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6004 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6005 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6006 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6007 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6008 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6009 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6010 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6011 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6012 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6013 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6014 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6015 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6016 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6017 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6018 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6019 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6020 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6021 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6022 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6023 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6024 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6025 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6026 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6027 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6028 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6029 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6030 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6031 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6032 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6033 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6034 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6035 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6036 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6037 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6038 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6039 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6040 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6041 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6042 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6043 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6044 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6045 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6046 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6047 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6048 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6049 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6050 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6051 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6052 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6053 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6054 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6055 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6056 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6057 .rlen = 496,
6058 .also_non_np = 1,
3b9b8fe0
AB
6059 .np = 3,
6060 .tap = { 496 - 20, 4, 16 },
e080b17a
JK
6061 },
6062};
6063
6064static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = {
6065 { /* Generated with Crypto++ */
6066 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6067 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6068 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6069 .klen = 24,
6070 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6071 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6072 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6073 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6074 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6075 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6076 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6077 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6078 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6079 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6080 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6081 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6082 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6083 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6084 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6085 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6086 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6087 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6088 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6089 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6090 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6091 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6092 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6093 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6094 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6095 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6096 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6097 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6098 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6099 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6100 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6101 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6102 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6103 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6104 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6105 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6106 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6107 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6108 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6109 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6110 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6111 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6112 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6113 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6114 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6115 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6116 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6117 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6118 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6119 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6120 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6121 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6122 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6123 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6124 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6125 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6126 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6127 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6128 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6129 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6130 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6131 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6132 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6133 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6134 .ilen = 496,
6135 .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6136 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6137 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6138 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6139 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6140 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6141 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6142 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6143 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6144 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6145 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6146 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6147 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6148 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6149 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6150 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6151 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6152 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6153 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6154 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6155 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6156 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6157 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6158 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6159 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6160 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6161 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6162 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6163 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6164 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6165 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6166 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6167 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6168 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6169 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6170 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6171 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6172 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6173 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6174 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6175 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6176 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6177 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6178 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6179 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6180 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6181 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6182 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6183 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6184 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6185 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6186 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6187 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6188 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6189 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6190 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6191 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6192 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6193 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6194 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6195 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6196 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6197 .rlen = 496,
6198 .also_non_np = 1,
3b9b8fe0
AB
6199 .np = 3,
6200 .tap = { 496 - 20, 4, 16 },
e080b17a
JK
6201 }, { /* Generated with Crypto++ */
6202 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6203 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6204 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6205 .klen = 24,
6206 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6207 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6208 .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6209 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6210 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6211 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6212 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6213 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6214 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6215 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6216 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6217 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6218 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6219 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6220 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6221 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6222 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6223 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6224 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6225 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6226 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6227 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6228 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6229 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6230 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6231 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6232 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6233 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6234 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6235 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6236 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6237 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6238 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6239 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6240 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6241 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6242 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6243 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6244 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6245 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6246 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6247 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6248 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6249 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6250 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6251 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6252 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6253 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6254 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6255 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6256 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6257 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6258 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6259 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6260 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6261 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6262 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6263 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6264 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6265 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6266 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6267 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6268 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6269 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6270 "\x2E\xB1\x18",
6271 .ilen = 499,
6272 .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6273 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6274 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6275 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6276 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6277 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6278 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6279 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6280 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6281 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6282 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6283 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6284 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6285 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6286 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6287 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6288 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6289 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6290 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6291 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6292 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6293 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6294 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6295 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6296 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6297 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6298 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6299 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6300 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6301 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6302 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6303 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6304 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6305 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6306 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6307 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6308 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6309 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6310 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6311 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6312 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6313 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6314 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6315 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6316 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6317 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6318 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6319 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6320 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6321 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6322 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6323 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6324 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6325 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6326 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6327 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6328 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6329 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6330 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6331 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6332 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6333 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6334 "\xF2\x79\xD9",
6335 .rlen = 499,
6336 .also_non_np = 1,
6337 .np = 2,
6338 .tap = { 499 - 16, 16 },
6339 },
6340};
6341
6342static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = {
6343 { /* Generated with Crypto++ */
6344 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6345 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6346 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6347 .klen = 24,
6348 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6349 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
6350 .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
6351 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6352 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6353 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6354 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6355 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6356 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6357 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6358 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6359 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6360 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6361 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6362 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6363 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6364 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6365 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6366 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6367 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6368 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6369 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6370 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6371 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6372 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6373 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6374 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6375 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6376 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6377 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6378 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6379 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6380 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6381 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6382 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6383 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6384 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6385 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6386 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6387 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6388 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6389 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6390 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6391 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6392 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6393 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6394 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6395 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6396 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6397 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6398 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6399 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6400 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6401 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6402 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6403 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6404 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6405 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6406 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6407 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6408 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6409 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6410 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6411 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
6412 .ilen = 496,
6413 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6414 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6415 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6416 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6417 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6418 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6419 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6420 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6421 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6422 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6423 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6424 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6425 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6426 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6427 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6428 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6429 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6430 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6431 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6432 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6433 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6434 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6435 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6436 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6437 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6438 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6439 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6440 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6441 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6442 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6443 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6444 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6445 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6446 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6447 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6448 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6449 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6450 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6451 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6452 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6453 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6454 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6455 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6456 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6457 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6458 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6459 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6460 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6461 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6462 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6463 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6464 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6465 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6466 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6467 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6468 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6469 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6470 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6471 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6472 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6473 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6474 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
6475 .rlen = 496,
6476 .also_non_np = 1,
3b9b8fe0
AB
6477 .np = 3,
6478 .tap = { 496 - 20, 4, 16 },
e080b17a
JK
6479 }, { /* Generated with Crypto++ */
6480 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6481 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6482 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6483 .klen = 24,
6484 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6485 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
6486 .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
6487 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6488 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6489 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6490 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6491 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6492 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6493 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6494 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6495 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6496 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6497 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6498 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6499 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6500 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6501 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6502 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6503 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6504 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6505 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6506 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6507 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6508 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6509 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6510 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6511 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6512 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6513 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6514 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6515 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6516 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6517 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6518 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6519 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6520 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6521 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6522 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6523 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6524 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6525 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6526 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6527 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6528 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6529 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6530 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6531 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6532 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6533 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6534 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6535 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6536 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6537 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6538 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6539 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6540 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6541 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6542 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6543 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6544 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6545 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6546 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6547 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6548 "\xF2\x79\xD9",
6549 .ilen = 499,
6550 .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
6551 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6552 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6553 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6554 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6555 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6556 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6557 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6558 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6559 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6560 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6561 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6562 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6563 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6564 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6565 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6566 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6567 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6568 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6569 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6570 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6571 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6572 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6573 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6574 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6575 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6576 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6577 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6578 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6579 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6580 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6581 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6582 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6583 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6584 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6585 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6586 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6587 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6588 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6589 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6590 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6591 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6592 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6593 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6594 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6595 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6596 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6597 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6598 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6599 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6600 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6601 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6602 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6603 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6604 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6605 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6606 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6607 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6608 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6609 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6610 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6611 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6612 "\x2E\xB1\x18",
6613 .rlen = 499,
6614 .also_non_np = 1,
6615 .np = 2,
6616 .tap = { 499 - 16, 16 },
da7f033d
HX
6617 },
6618};
6619
6620/*
6621 * Blowfish test vectors.
6622 */
85b63e34
JK
6623#define BF_ENC_TEST_VECTORS 7
6624#define BF_DEC_TEST_VECTORS 7
6625#define BF_CBC_ENC_TEST_VECTORS 2
6626#define BF_CBC_DEC_TEST_VECTORS 2
6627#define BF_CTR_ENC_TEST_VECTORS 2
6628#define BF_CTR_DEC_TEST_VECTORS 2
da7f033d
HX
6629
6630static struct cipher_testvec bf_enc_tv_template[] = {
6631 { /* DES test vectors from OpenSSL */
6632 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
6633 .klen = 8,
6634 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
6635 .ilen = 8,
6636 .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6637 .rlen = 8,
6638 }, {
6639 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6640 .klen = 8,
6641 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6642 .ilen = 8,
6643 .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6644 .rlen = 8,
6645 }, {
6646 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6647 .klen = 8,
6648 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6649 .ilen = 8,
6650 .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6651 .rlen = 8,
6652 }, { /* Vary the keylength... */
6653 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6654 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6655 .klen = 16,
6656 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6657 .ilen = 8,
6658 .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6659 .rlen = 8,
6660 }, {
6661 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6662 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6663 "\x00\x11\x22\x33\x44",
6664 .klen = 21,
6665 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6666 .ilen = 8,
6667 .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6668 .rlen = 8,
6669 }, { /* Generated with bf488 */
6670 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6671 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6672 "\x00\x11\x22\x33\x44\x55\x66\x77"
6673 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6674 "\x58\x40\x23\x64\x1a\xba\x61\x76"
6675 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6676 "\xff\xff\xff\xff\xff\xff\xff\xff",
6677 .klen = 56,
6678 .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6679 .ilen = 8,
6680 .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6681 .rlen = 8,
85b63e34
JK
6682 }, { /* Generated with Crypto++ */
6683 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6684 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6685 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6686 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6687 .klen = 32,
6688 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6689 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6690 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6691 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
6692 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6693 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6694 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6695 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6696 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6697 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6698 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6699 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6700 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6701 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6702 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6703 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6704 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6705 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6706 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6707 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6708 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6709 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6710 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6711 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6712 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6713 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6714 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6715 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6716 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6717 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6718 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6719 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6720 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6721 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6722 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6723 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6724 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6725 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6726 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6727 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6728 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6729 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6730 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6731 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6732 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6733 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6734 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6735 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6736 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6737 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6738 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6739 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6740 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6741 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6742 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6743 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6744 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6745 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6746 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6747 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6748 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6749 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6750 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
6751 .ilen = 504,
85b63e34
JK
6752 .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6753 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6754 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6755 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
963ae397
JK
6756 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6757 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6758 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6759 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6760 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6761 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6762 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6763 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6764 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6765 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6766 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6767 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6768 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6769 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6770 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6771 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6772 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6773 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6774 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6775 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6776 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6777 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6778 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6779 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6780 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6781 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6782 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6783 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6784 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6785 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6786 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6787 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6788 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6789 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6790 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6791 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6792 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6793 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6794 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6795 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6796 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6797 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6798 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6799 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6800 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6801 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6802 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6803 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6804 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6805 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6806 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6807 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6808 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6809 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6810 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6811 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6812 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6813 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6814 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6815 .rlen = 504,
f44d83d1 6816 .also_non_np = 1,
3b9b8fe0
AB
6817 .np = 3,
6818 .tap = { 504 - 10, 2, 8 },
da7f033d
HX
6819 },
6820};
6821
6822static struct cipher_testvec bf_dec_tv_template[] = {
6823 { /* DES test vectors from OpenSSL */
6824 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
6825 .klen = 8,
6826 .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6827 .ilen = 8,
6828 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
6829 .rlen = 8,
6830 }, {
6831 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6832 .klen = 8,
6833 .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6834 .ilen = 8,
6835 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6836 .rlen = 8,
6837 }, {
6838 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6839 .klen = 8,
6840 .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6841 .ilen = 8,
6842 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6843 .rlen = 8,
6844 }, { /* Vary the keylength... */
6845 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6846 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6847 .klen = 16,
6848 .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6849 .ilen = 8,
6850 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6851 .rlen = 8,
6852 }, {
6853 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6854 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6855 "\x00\x11\x22\x33\x44",
6856 .klen = 21,
6857 .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6858 .ilen = 8,
6859 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6860 .rlen = 8,
6861 }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */
6862 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6863 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6864 "\x00\x11\x22\x33\x44\x55\x66\x77"
6865 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6866 "\x58\x40\x23\x64\x1a\xba\x61\x76"
6867 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6868 "\xff\xff\xff\xff\xff\xff\xff\xff",
6869 .klen = 56,
6870 .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6871 .ilen = 8,
6872 .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6873 .rlen = 8,
85b63e34
JK
6874 }, { /* Generated with Crypto++ */
6875 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6876 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6877 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6878 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6879 .klen = 32,
6880 .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
6881 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6882 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6883 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
963ae397
JK
6884 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6885 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6886 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6887 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6888 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6889 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6890 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6891 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6892 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6893 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6894 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6895 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6896 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6897 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6898 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6899 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6900 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6901 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6902 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6903 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6904 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6905 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6906 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6907 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6908 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6909 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6910 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6911 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6912 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6913 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6914 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6915 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6916 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6917 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6918 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6919 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6920 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6921 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6922 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6923 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6924 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6925 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6926 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6927 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6928 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6929 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6930 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6931 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6932 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6933 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6934 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6935 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6936 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6937 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6938 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6939 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6940 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6941 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6942 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
6943 .ilen = 504,
85b63e34
JK
6944 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
6945 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6946 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6947 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
6948 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6949 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6950 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6951 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6952 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6953 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6954 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6955 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6956 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6957 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6958 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6959 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6960 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6961 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6962 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6963 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6964 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6965 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6966 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6967 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6968 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6969 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6970 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6971 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6972 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6973 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6974 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6975 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6976 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6977 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6978 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6979 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6980 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6981 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6982 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6983 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6984 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6985 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6986 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6987 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6988 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6989 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6990 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6991 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6992 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6993 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6994 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6995 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6996 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6997 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6998 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6999 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7000 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7001 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7002 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7003 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7004 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7005 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7006 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7007 .rlen = 504,
f44d83d1 7008 .also_non_np = 1,
3b9b8fe0
AB
7009 .np = 3,
7010 .tap = { 504 - 10, 2, 8 },
da7f033d
HX
7011 },
7012};
7013
7014static struct cipher_testvec bf_cbc_enc_tv_template[] = {
7015 { /* From OpenSSL */
7016 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7017 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
7018 .klen = 16,
7019 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7020 .input = "\x37\x36\x35\x34\x33\x32\x31\x20"
7021 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7022 "\x68\x65\x20\x74\x69\x6d\x65\x20"
7023 "\x66\x6f\x72\x20\x00\x00\x00\x00",
7024 .ilen = 32,
7025 .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
7026 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
7027 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
7028 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
7029 .rlen = 32,
85b63e34
JK
7030 }, { /* Generated with Crypto++ */
7031 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7032 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7033 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7034 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7035 .klen = 32,
7036 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7037 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7038 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7039 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7040 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
7041 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7042 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7043 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7044 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7045 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7046 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7047 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7048 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7049 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7050 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7051 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7052 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7053 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7054 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7055 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7056 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7057 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7058 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7059 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7060 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7061 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7062 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7063 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7064 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7065 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7066 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7067 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7068 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7069 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7070 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7071 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7072 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7073 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7074 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7075 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7076 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7077 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7078 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7079 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7080 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7081 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7082 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7083 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7084 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7085 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7086 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7087 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7088 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7089 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7090 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7091 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7092 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7093 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7094 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7095 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7096 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7097 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7098 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7099 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7100 .ilen = 504,
85b63e34
JK
7101 .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
7102 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
7103 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
7104 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
963ae397
JK
7105 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
7106 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
7107 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
7108 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
7109 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
7110 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
7111 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
7112 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
7113 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
7114 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
7115 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
7116 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
7117 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
7118 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
7119 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7120 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7121 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7122 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7123 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7124 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7125 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7126 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7127 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7128 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7129 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7130 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7131 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7132 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7133 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7134 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7135 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7136 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7137 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7138 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7139 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7140 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7141 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7142 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7143 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7144 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7145 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7146 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7147 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7148 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7149 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7150 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7151 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7152 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7153 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7154 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7155 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7156 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7157 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7158 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7159 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7160 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7161 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7162 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7163 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7164 .rlen = 504,
f44d83d1 7165 .also_non_np = 1,
3b9b8fe0
AB
7166 .np = 3,
7167 .tap = { 504 - 10, 2, 8 },
da7f033d
HX
7168 },
7169};
7170
7171static struct cipher_testvec bf_cbc_dec_tv_template[] = {
7172 { /* From OpenSSL */
7173 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7174 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
7175 .klen = 16,
7176 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7177 .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
7178 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
7179 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
7180 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
7181 .ilen = 32,
7182 .result = "\x37\x36\x35\x34\x33\x32\x31\x20"
7183 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7184 "\x68\x65\x20\x74\x69\x6d\x65\x20"
7185 "\x66\x6f\x72\x20\x00\x00\x00\x00",
7186 .rlen = 32,
85b63e34
JK
7187 }, { /* Generated with Crypto++ */
7188 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7189 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7190 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7191 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7192 .klen = 32,
7193 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7194 .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
7195 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
7196 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
7197 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
963ae397
JK
7198 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
7199 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
7200 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
7201 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
7202 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
7203 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
7204 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
7205 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
7206 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
7207 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
7208 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
7209 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
7210 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
7211 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
7212 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7213 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7214 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7215 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7216 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7217 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7218 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7219 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7220 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7221 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7222 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7223 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7224 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7225 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7226 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7227 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7228 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7229 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7230 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7231 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7232 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7233 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7234 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7235 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7236 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7237 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7238 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7239 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7240 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7241 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7242 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7243 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7244 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7245 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7246 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7247 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7248 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7249 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7250 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7251 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7252 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7253 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7254 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7255 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7256 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
7257 .ilen = 504,
85b63e34
JK
7258 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7259 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7260 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7261 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
7262 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7263 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7264 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7265 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7266 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7267 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7268 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7269 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7270 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7271 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7272 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7273 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7274 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7275 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7276 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7277 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7278 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7279 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7280 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7281 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7282 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7283 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7284 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7285 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7286 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7287 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7288 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7289 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7290 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7291 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7292 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7293 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7294 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7295 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7296 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7297 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7298 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7299 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7300 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7301 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7302 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7303 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7304 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7305 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7306 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7307 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7308 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7309 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7310 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7311 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7312 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7313 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7314 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7315 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7316 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7317 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7318 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7319 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7320 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7321 .rlen = 504,
f44d83d1 7322 .also_non_np = 1,
3b9b8fe0
AB
7323 .np = 3,
7324 .tap = { 504 - 10, 2, 8 },
85b63e34
JK
7325 },
7326};
7327
7328static struct cipher_testvec bf_ctr_enc_tv_template[] = {
7329 { /* Generated with Crypto++ */
7330 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7331 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7332 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7333 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7334 .klen = 32,
7335 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7336 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7337 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7338 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7339 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
7340 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7341 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7342 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7343 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7344 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7345 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7346 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7347 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7348 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7349 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7350 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7351 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7352 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7353 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7354 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7355 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7356 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7357 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7358 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7359 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7360 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7361 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7362 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7363 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7364 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7365 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7366 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7367 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7368 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7369 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7370 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7371 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7372 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7373 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7374 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7375 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7376 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7377 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7378 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7379 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7380 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7381 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7382 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7383 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7384 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7385 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7386 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7387 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7388 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7389 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7390 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7391 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7392 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7393 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7394 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7395 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7396 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7397 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7398 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7399 .ilen = 504,
85b63e34
JK
7400 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7401 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7402 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7403 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
963ae397
JK
7404 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7405 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7406 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7407 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7408 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7409 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7410 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7411 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7412 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7413 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7414 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7415 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7416 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7417 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7418 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7419 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7420 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7421 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7422 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7423 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7424 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7425 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7426 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7427 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7428 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7429 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7430 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7431 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7432 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7433 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7434 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7435 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7436 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7437 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7438 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7439 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7440 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7441 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7442 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7443 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7444 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7445 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7446 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7447 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7448 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7449 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7450 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7451 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7452 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7453 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7454 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7455 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7456 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7457 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7458 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7459 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7460 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7461 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7462 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7463 .rlen = 504,
85b63e34
JK
7464 }, { /* Generated with Crypto++ */
7465 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7466 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7467 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7468 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7469 .klen = 32,
7470 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7471 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7472 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7473 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7474 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7475 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
963ae397
JK
7476 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7477 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7478 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7479 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7480 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7481 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7482 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7483 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7484 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7485 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7486 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7487 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7488 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7489 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7490 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7491 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7492 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7493 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7494 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7495 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7496 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7497 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7498 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7499 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7500 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7501 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7502 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7503 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7504 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7505 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7506 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7507 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7508 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7509 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7510 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7511 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7512 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7513 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7514 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7515 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7516 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7517 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7518 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7519 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7520 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7521 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7522 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7523 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7524 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7525 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7526 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7527 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7528 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7529 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7530 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7531 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7532 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7533 "\x2B\xC2\x59\xF0\x64\xFB\x92",
7534 .ilen = 503,
85b63e34
JK
7535 .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7536 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7537 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7538 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7539 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
963ae397
JK
7540 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7541 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7542 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7543 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7544 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7545 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7546 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7547 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7548 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7549 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7550 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7551 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7552 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7553 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7554 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7555 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7556 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7557 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7558 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7559 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7560 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7561 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7562 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7563 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7564 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7565 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7566 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7567 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7568 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7569 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7570 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7571 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7572 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7573 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7574 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7575 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7576 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7577 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7578 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7579 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7580 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7581 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7582 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7583 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7584 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7585 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7586 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7587 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7588 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7589 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7590 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7591 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7592 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7593 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7594 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7595 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7596 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7597 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7598 .rlen = 503,
f44d83d1
JK
7599 .also_non_np = 1,
7600 .np = 2,
963ae397 7601 .tap = { 503 - 8, 8 },
549595a0
JK
7602 }, { /* Generated with Crypto++ */
7603 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7604 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7605 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7606 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7607 .klen = 32,
7608 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
7609 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7610 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7611 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7612 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7613 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7614 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7615 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7616 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7617 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7618 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7619 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7620 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7621 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7622 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7623 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7624 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7625 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7626 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7627 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7628 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7629 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7630 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7631 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7632 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7633 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7634 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7635 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7636 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7637 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7638 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7639 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7640 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7641 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7642 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7643 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7644 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7645 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7646 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7647 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7648 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7649 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7650 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7651 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7652 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7653 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7654 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7655 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7656 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7657 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7658 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7659 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7660 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7661 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7662 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7663 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7664 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7665 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7666 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7667 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7668 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7669 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7670 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7671 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7672 .ilen = 504,
7673 .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
7674 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
7675 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
7676 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
7677 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
7678 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
7679 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
7680 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
7681 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
7682 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
7683 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
7684 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
7685 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
7686 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
7687 "\x0B\x82\x59\x14\x26\x67\x08\x09"
7688 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
7689 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
7690 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
7691 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
7692 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
7693 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
7694 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
7695 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
7696 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
7697 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
7698 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
7699 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
7700 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
7701 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
7702 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
7703 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
7704 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
7705 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
7706 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
7707 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
7708 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
7709 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
7710 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
7711 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
7712 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
7713 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
7714 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
7715 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
7716 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
7717 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
7718 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
7719 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
7720 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
7721 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
7722 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
7723 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
7724 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
7725 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
7726 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
7727 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
7728 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
7729 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
7730 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
7731 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
7732 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
7733 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
7734 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
7735 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
7736 .rlen = 504,
85b63e34
JK
7737 },
7738};
7739
7740static struct cipher_testvec bf_ctr_dec_tv_template[] = {
7741 { /* Generated with Crypto++ */
7742 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7743 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7744 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7745 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7746 .klen = 32,
7747 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7748 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7749 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7750 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7751 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
963ae397
JK
7752 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7753 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7754 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7755 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7756 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7757 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7758 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7759 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7760 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7761 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7762 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7763 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7764 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7765 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7766 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7767 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7768 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7769 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7770 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7771 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7772 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7773 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7774 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7775 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7776 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7777 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7778 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7779 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7780 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7781 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7782 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7783 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7784 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7785 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7786 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7787 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7788 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7789 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7790 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7791 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7792 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7793 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7794 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7795 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7796 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7797 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7798 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7799 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7800 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7801 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7802 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7803 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7804 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7805 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7806 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7807 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7808 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7809 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7810 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
7811 .ilen = 504,
85b63e34
JK
7812 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7813 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7814 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7815 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
963ae397
JK
7816 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7817 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7818 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7819 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7820 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7821 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7822 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7823 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7824 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7825 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7826 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7827 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7828 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7829 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7830 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7831 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7832 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7833 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7834 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7835 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7836 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7837 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7838 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7839 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7840 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7841 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7842 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7843 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7844 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7845 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7846 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7847 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7848 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7849 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7850 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7851 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7852 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7853 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7854 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7855 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7856 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7857 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7858 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7859 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7860 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7861 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7862 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7863 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7864 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7865 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7866 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7867 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7868 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7869 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7870 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7871 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7872 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7873 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7874 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
7875 .rlen = 504,
85b63e34
JK
7876 }, { /* Generated with Crypto++ */
7877 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7878 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7879 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7880 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7881 .klen = 32,
7882 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
7883 .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
7884 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7885 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7886 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7887 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
963ae397
JK
7888 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7889 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7890 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7891 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7892 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7893 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7894 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7895 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7896 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7897 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7898 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7899 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7900 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7901 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7902 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7903 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7904 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7905 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7906 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7907 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7908 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7909 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7910 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7911 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7912 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7913 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7914 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7915 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7916 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7917 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7918 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7919 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7920 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7921 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7922 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7923 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7924 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7925 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7926 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7927 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7928 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7929 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7930 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7931 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7932 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7933 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7934 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7935 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7936 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7937 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7938 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7939 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7940 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7941 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7942 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7943 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7944 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7945 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
7946 .ilen = 503,
85b63e34
JK
7947 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
7948 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7949 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7950 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7951 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
963ae397
JK
7952 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7953 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7954 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7955 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7956 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7957 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7958 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7959 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7960 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7961 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7962 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7963 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7964 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7965 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7966 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7967 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7968 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7969 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7970 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7971 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7972 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7973 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7974 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7975 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7976 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7977 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7978 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7979 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7980 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7981 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7982 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7983 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7984 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7985 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7986 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7987 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7988 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7989 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7990 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7991 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7992 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7993 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7994 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7995 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7996 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7997 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7998 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7999 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8000 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8001 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8002 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8003 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8004 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8005 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8006 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8007 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8008 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8009 "\x2B\xC2\x59\xF0\x64\xFB\x92",
8010 .rlen = 503,
f44d83d1
JK
8011 .also_non_np = 1,
8012 .np = 2,
963ae397 8013 .tap = { 503 - 8, 8 },
549595a0
JK
8014 }, { /* Generated with Crypto++ */
8015 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8016 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8017 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8018 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8019 .klen = 32,
8020 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
8021 .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
8022 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
8023 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
8024 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
8025 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
8026 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
8027 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
8028 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
8029 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
8030 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
8031 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
8032 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
8033 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
8034 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
8035 "\x0B\x82\x59\x14\x26\x67\x08\x09"
8036 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
8037 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
8038 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
8039 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
8040 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
8041 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
8042 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
8043 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
8044 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
8045 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
8046 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
8047 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
8048 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
8049 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
8050 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
8051 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
8052 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
8053 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
8054 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
8055 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
8056 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
8057 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
8058 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
8059 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
8060 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
8061 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
8062 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
8063 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
8064 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
8065 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
8066 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
8067 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
8068 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
8069 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
8070 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
8071 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
8072 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
8073 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
8074 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
8075 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
8076 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
8077 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
8078 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
8079 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
8080 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
8081 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
8082 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
8083 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
8084 .ilen = 504,
8085 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8086 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8087 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8088 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8089 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8090 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8091 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8092 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8093 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8094 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8095 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8096 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8097 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8098 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8099 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8100 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8101 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8102 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8103 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8104 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8105 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8106 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8107 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8108 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8109 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8110 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8111 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8112 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8113 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8114 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8115 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8116 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8117 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8118 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8119 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8120 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8121 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8122 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8123 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8124 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8125 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8126 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8127 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8128 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8129 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8130 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8131 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8132 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8133 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8134 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8135 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8136 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8137 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8138 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8139 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8140 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8141 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8142 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8143 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8144 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8145 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8146 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8147 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
8148 .rlen = 504,
da7f033d
HX
8149 },
8150};
8151
8152/*
8153 * Twofish test vectors.
8154 */
573da620
JK
8155#define TF_ENC_TEST_VECTORS 4
8156#define TF_DEC_TEST_VECTORS 4
8157#define TF_CBC_ENC_TEST_VECTORS 5
8158#define TF_CBC_DEC_TEST_VECTORS 5
8159#define TF_CTR_ENC_TEST_VECTORS 2
8160#define TF_CTR_DEC_TEST_VECTORS 2
0b2a1551
JK
8161#define TF_LRW_ENC_TEST_VECTORS 8
8162#define TF_LRW_DEC_TEST_VECTORS 8
aed265b9
JK
8163#define TF_XTS_ENC_TEST_VECTORS 5
8164#define TF_XTS_DEC_TEST_VECTORS 5
da7f033d
HX
8165
8166static struct cipher_testvec tf_enc_tv_template[] = {
8167 {
8168 .key = zeroed_string,
8169 .klen = 16,
8170 .input = zeroed_string,
8171 .ilen = 16,
8172 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8173 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8174 .rlen = 16,
8175 }, {
8176 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8177 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8178 "\x00\x11\x22\x33\x44\x55\x66\x77",
8179 .klen = 24,
8180 .input = zeroed_string,
8181 .ilen = 16,
8182 .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
8183 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
8184 .rlen = 16,
8185 }, {
8186 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8187 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8188 "\x00\x11\x22\x33\x44\x55\x66\x77"
8189 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
8190 .klen = 32,
8191 .input = zeroed_string,
8192 .ilen = 16,
8193 .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
8194 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
8195 .rlen = 16,
573da620
JK
8196 }, { /* Generated with Crypto++ */
8197 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
8198 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
8199 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
8200 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
8201 .klen = 32,
8202 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8203 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8204 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8205 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8206 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8207 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8208 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
8209 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8210 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8211 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8212 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8213 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8214 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8215 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8216 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8217 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8218 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8219 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8220 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8221 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8222 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8223 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8224 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8225 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8226 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8227 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8228 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8229 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8230 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8231 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8232 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8233 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8234 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8235 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8236 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8237 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8238 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8239 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8240 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8241 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8242 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8243 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8244 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8245 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8246 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8247 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8248 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8249 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8250 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8251 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8252 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8253 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8254 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8255 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8256 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8257 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8258 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8259 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8260 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8261 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8262 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8263 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8264 .ilen = 496,
573da620
JK
8265 .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
8266 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
8267 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
8268 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
8269 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
8270 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
8271 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
4da7de4d
JG
8272 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
8273 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
8274 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
8275 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
8276 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
8277 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
8278 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
8279 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
8280 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
8281 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
8282 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
8283 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
8284 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
8285 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
8286 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
8287 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
8288 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
8289 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
8290 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
8291 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
8292 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
8293 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
8294 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
8295 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
8296 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
8297 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
8298 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
8299 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
8300 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
8301 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
8302 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
8303 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
8304 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
8305 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
8306 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
8307 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
8308 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
8309 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
8310 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
8311 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
8312 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
8313 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
8314 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
8315 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
8316 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
8317 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
8318 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
8319 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
8320 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
8321 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
8322 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
8323 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
8324 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
8325 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
8326 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
8327 .rlen = 496,
f44d83d1 8328 .also_non_np = 1,
3b9b8fe0
AB
8329 .np = 3,
8330 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
8331 },
8332};
8333
8334static struct cipher_testvec tf_dec_tv_template[] = {
8335 {
8336 .key = zeroed_string,
8337 .klen = 16,
8338 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8339 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8340 .ilen = 16,
8341 .result = zeroed_string,
8342 .rlen = 16,
8343 }, {
8344 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8345 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8346 "\x00\x11\x22\x33\x44\x55\x66\x77",
8347 .klen = 24,
8348 .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
8349 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
8350 .ilen = 16,
8351 .result = zeroed_string,
8352 .rlen = 16,
8353 }, {
8354 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8355 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8356 "\x00\x11\x22\x33\x44\x55\x66\x77"
8357 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
8358 .klen = 32,
8359 .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
8360 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
8361 .ilen = 16,
8362 .result = zeroed_string,
8363 .rlen = 16,
573da620
JK
8364 }, { /* Generated with Crypto++ */
8365 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
8366 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
8367 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
8368 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
8369 .klen = 32,
8370 .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
8371 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
8372 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
8373 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
8374 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
8375 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
8376 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
4da7de4d
JG
8377 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
8378 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
8379 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
8380 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
8381 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
8382 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
8383 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
8384 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
8385 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
8386 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
8387 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
8388 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
8389 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
8390 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
8391 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
8392 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
8393 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
8394 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
8395 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
8396 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
8397 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
8398 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
8399 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
8400 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
8401 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
8402 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
8403 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
8404 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
8405 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
8406 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
8407 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
8408 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
8409 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
8410 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
8411 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
8412 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
8413 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
8414 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
8415 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
8416 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
8417 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
8418 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
8419 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
8420 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
8421 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
8422 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
8423 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
8424 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
8425 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
8426 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
8427 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
8428 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
8429 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
8430 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
8431 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
8432 .ilen = 496,
573da620
JK
8433 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8434 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8435 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8436 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8437 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8438 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8439 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
8440 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8441 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8442 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8443 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8444 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8445 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8446 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8447 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8448 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8449 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8450 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8451 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8452 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8453 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8454 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8455 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8456 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8457 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8458 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8459 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8460 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8461 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8462 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8463 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8464 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8465 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8466 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8467 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8468 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8469 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8470 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8471 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8472 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8473 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8474 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8475 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8476 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8477 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8478 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8479 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8480 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8481 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8482 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8483 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8484 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8485 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8486 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8487 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8488 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8489 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8490 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8491 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8492 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8493 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8494 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8495 .rlen = 496,
f44d83d1 8496 .also_non_np = 1,
3b9b8fe0
AB
8497 .np = 3,
8498 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
8499 },
8500};
8501
8502static struct cipher_testvec tf_cbc_enc_tv_template[] = {
8503 { /* Generated with Nettle */
8504 .key = zeroed_string,
8505 .klen = 16,
8506 .iv = zeroed_string,
8507 .input = zeroed_string,
8508 .ilen = 16,
8509 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8510 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8511 .rlen = 16,
8512 }, {
8513 .key = zeroed_string,
8514 .klen = 16,
8515 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8516 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8517 .input = zeroed_string,
8518 .ilen = 16,
8519 .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8520 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8521 .rlen = 16,
8522 }, {
8523 .key = zeroed_string,
8524 .klen = 16,
8525 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8526 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8527 .input = zeroed_string,
8528 .ilen = 16,
8529 .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8530 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8531 .rlen = 16,
8532 }, {
8533 .key = zeroed_string,
8534 .klen = 16,
8535 .iv = zeroed_string,
8536 .input = zeroed_string,
8537 .ilen = 48,
8538 .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8539 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
8540 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8541 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
8542 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8543 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8544 .rlen = 48,
573da620
JK
8545 }, { /* Generated with Crypto++ */
8546 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8547 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8548 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8549 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8550 .klen = 32,
8551 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8552 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8553 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8554 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8555 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8556 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8557 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8558 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8559 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
8560 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8561 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8562 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8563 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8564 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8565 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8566 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8567 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8568 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8569 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8570 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8571 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8572 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8573 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8574 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8575 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8576 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8577 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8578 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8579 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8580 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8581 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8582 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8583 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8584 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8585 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8586 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8587 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8588 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8589 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8590 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8591 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8592 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8593 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8594 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8595 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8596 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8597 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8598 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8599 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8600 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8601 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8602 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8603 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8604 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8605 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8606 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8607 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8608 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8609 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8610 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8611 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8612 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8613 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8614 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8615 .ilen = 496,
573da620
JK
8616 .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
8617 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
8618 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
8619 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
8620 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
8621 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
8622 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
4da7de4d
JG
8623 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
8624 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
8625 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
8626 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
8627 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
8628 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
8629 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
8630 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
8631 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
8632 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
8633 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
8634 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
8635 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
8636 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
8637 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
8638 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
8639 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
8640 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
8641 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
8642 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
8643 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
8644 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
8645 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
8646 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
8647 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
8648 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
8649 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
8650 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
8651 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
8652 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
8653 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
8654 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
8655 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
8656 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
8657 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
8658 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
8659 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
8660 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
8661 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
8662 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
8663 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
8664 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
8665 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
8666 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
8667 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
8668 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
8669 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
8670 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
8671 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
8672 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
8673 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
8674 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
8675 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
8676 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
8677 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
8678 .rlen = 496,
f44d83d1 8679 .also_non_np = 1,
3b9b8fe0
AB
8680 .np = 3,
8681 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
8682 },
8683};
8684
8685static struct cipher_testvec tf_cbc_dec_tv_template[] = {
8686 { /* Reverse of the first four above */
8687 .key = zeroed_string,
8688 .klen = 16,
8689 .iv = zeroed_string,
8690 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8691 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8692 .ilen = 16,
8693 .result = zeroed_string,
8694 .rlen = 16,
8695 }, {
8696 .key = zeroed_string,
8697 .klen = 16,
8698 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8699 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
8700 .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8701 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8702 .ilen = 16,
8703 .result = zeroed_string,
8704 .rlen = 16,
8705 }, {
8706 .key = zeroed_string,
8707 .klen = 16,
8708 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8709 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
8710 .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8711 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8712 .ilen = 16,
8713 .result = zeroed_string,
8714 .rlen = 16,
8715 }, {
8716 .key = zeroed_string,
8717 .klen = 16,
8718 .iv = zeroed_string,
8719 .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8720 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
8721 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8722 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
8723 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8724 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
8725 .ilen = 48,
8726 .result = zeroed_string,
8727 .rlen = 48,
573da620
JK
8728 }, { /* Generated with Crypto++ */
8729 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8730 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8731 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8732 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8733 .klen = 32,
8734 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8735 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8736 .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
8737 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
8738 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
8739 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
8740 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
8741 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
8742 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
4da7de4d
JG
8743 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
8744 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
8745 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
8746 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
8747 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
8748 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
8749 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
8750 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
8751 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
8752 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
8753 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
8754 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
8755 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
8756 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
8757 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
8758 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
8759 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
8760 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
8761 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
8762 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
8763 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
8764 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
8765 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
8766 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
8767 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
8768 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
8769 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
8770 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
8771 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
8772 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
8773 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
8774 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
8775 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
8776 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
8777 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
8778 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
8779 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
8780 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
8781 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
8782 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
8783 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
8784 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
8785 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
8786 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
8787 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
8788 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
8789 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
8790 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
8791 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
8792 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
8793 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
8794 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
8795 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
8796 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
8797 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
8798 .ilen = 496,
573da620
JK
8799 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8800 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8801 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8802 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8803 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8804 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8805 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
8806 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8807 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8808 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8809 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8810 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8811 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8812 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8813 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8814 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8815 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8816 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8817 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8818 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8819 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8820 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8821 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8822 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8823 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8824 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8825 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8826 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8827 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8828 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8829 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8830 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8831 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8832 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8833 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8834 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8835 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8836 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8837 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8838 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8839 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8840 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8841 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8842 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8843 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8844 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8845 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8846 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8847 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8848 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8849 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8850 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8851 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8852 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8853 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8854 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8855 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8856 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8857 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8858 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8859 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8860 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8861 .rlen = 496,
f44d83d1 8862 .also_non_np = 1,
3b9b8fe0
AB
8863 .np = 3,
8864 .tap = { 496 - 20, 4, 16 },
573da620
JK
8865 },
8866};
8867
8868static struct cipher_testvec tf_ctr_enc_tv_template[] = {
8869 { /* Generated with Crypto++ */
8870 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8871 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8872 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8873 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8874 .klen = 32,
8875 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8876 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
8877 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
8878 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8879 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8880 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8881 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8882 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8883 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
8884 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8885 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8886 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8887 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8888 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8889 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8890 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8891 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8892 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8893 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8894 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8895 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8896 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8897 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8898 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8899 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8900 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8901 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8902 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8903 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8904 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8905 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8906 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8907 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8908 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8909 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8910 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8911 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8912 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8913 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8914 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8915 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8916 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8917 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8918 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8919 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8920 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8921 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8922 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8923 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8924 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8925 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8926 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8927 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8928 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8929 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8930 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8931 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8932 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8933 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8934 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8935 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8936 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8937 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8938 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
8939 .ilen = 496,
573da620
JK
8940 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
8941 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
8942 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
8943 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
8944 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
8945 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
8946 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
4da7de4d
JG
8947 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
8948 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
8949 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
8950 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
8951 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
8952 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
8953 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
8954 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
8955 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
8956 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
8957 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
8958 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
8959 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
8960 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
8961 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
8962 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
8963 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
8964 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
8965 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
8966 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
8967 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
8968 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
8969 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
8970 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
8971 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
8972 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
8973 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
8974 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
8975 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
8976 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
8977 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
8978 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
8979 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
8980 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
8981 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
8982 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
8983 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
8984 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
8985 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
8986 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
8987 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
8988 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
8989 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
8990 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
8991 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
8992 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
8993 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
8994 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
8995 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
8996 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
8997 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
8998 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
8999 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9000 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9001 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
9002 .rlen = 496,
549595a0
JK
9003 }, { /* Generated with Crypto++ */
9004 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9005 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9006 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9007 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9008 .klen = 32,
9009 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9010 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9011 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9012 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9013 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9014 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9015 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9016 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9017 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9018 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9019 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9020 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9021 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9022 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9023 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9024 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9025 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9026 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9027 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9028 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9029 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9030 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9031 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9032 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9033 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9034 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9035 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9036 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9037 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9038 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9039 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9040 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9041 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9042 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9043 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9044 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9045 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9046 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9047 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9048 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9049 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9050 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9051 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9052 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9053 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9054 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9055 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9056 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9057 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9058 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9059 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9060 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9061 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9062 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9063 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9064 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9065 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9066 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9067 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9068 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9069 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9070 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9071 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9072 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9073 .ilen = 496,
9074 .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
9075 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9076 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9077 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9078 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9079 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9080 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9081 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9082 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9083 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9084 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9085 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9086 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9087 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9088 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9089 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9090 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9091 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9092 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9093 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9094 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9095 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9096 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9097 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9098 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9099 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9100 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9101 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9102 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9103 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9104 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9105 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9106 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9107 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9108 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9109 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9110 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9111 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9112 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9113 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9114 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9115 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9116 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9117 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9118 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9119 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9120 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9121 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9122 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9123 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9124 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9125 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9126 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9127 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9128 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9129 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9130 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9131 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9132 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9133 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9134 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9135 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
9136 .rlen = 496,
573da620
JK
9137 }, { /* Generated with Crypto++ */
9138 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9139 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9140 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9141 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9142 .klen = 32,
9143 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9144 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9145 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9146 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9147 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9148 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9149 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9150 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9151 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9152 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4da7de4d
JG
9153 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9154 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9155 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9156 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9157 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9158 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9159 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9160 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9161 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9162 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9163 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9164 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9165 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9166 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9167 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9168 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9169 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9170 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9171 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9172 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9173 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9174 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9175 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9176 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9177 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9178 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9179 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9180 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9181 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9182 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9183 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9184 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9185 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9186 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9187 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9188 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9189 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9190 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9191 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9192 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9193 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9194 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9195 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9196 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9197 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9198 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9199 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9200 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9201 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9202 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9203 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9204 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9205 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9206 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9207 "\x2B\xC2\x59",
9208 .ilen = 499,
573da620
JK
9209 .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9210 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9211 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9212 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9213 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9214 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9215 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9216 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
4da7de4d
JG
9217 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9218 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9219 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9220 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9221 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9222 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9223 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9224 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9225 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9226 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9227 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9228 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9229 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9230 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9231 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9232 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9233 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9234 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9235 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9236 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9237 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9238 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9239 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9240 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9241 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9242 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9243 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9244 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9245 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9246 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9247 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9248 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9249 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9250 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9251 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9252 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9253 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9254 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9255 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9256 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9257 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9258 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9259 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9260 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9261 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9262 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9263 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9264 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9265 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9266 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9267 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9268 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9269 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9270 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9271 "\x6C\x82\x9D",
9272 .rlen = 499,
f44d83d1
JK
9273 .also_non_np = 1,
9274 .np = 2,
9275 .tap = { 499 - 16, 16 },
573da620
JK
9276 },
9277};
9278
9279static struct cipher_testvec tf_ctr_dec_tv_template[] = {
9280 { /* Generated with Crypto++ */
9281 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9282 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9283 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9284 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9285 .klen = 32,
9286 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9287 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9288 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9289 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9290 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9291 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9292 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9293 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9294 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
4da7de4d
JG
9295 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9296 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9297 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9298 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9299 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9300 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9301 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9302 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9303 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9304 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9305 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9306 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9307 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9308 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9309 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9310 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9311 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9312 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9313 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9314 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9315 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9316 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9317 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9318 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9319 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9320 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9321 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9322 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9323 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9324 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9325 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9326 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9327 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9328 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9329 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9330 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9331 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9332 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9333 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9334 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9335 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9336 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9337 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9338 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9339 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9340 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9341 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9342 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9343 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9344 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9345 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9346 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9347 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9348 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9349 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
9350 .ilen = 496,
573da620
JK
9351 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9352 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9353 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9354 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9355 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9356 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9357 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
4da7de4d
JG
9358 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9359 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9360 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9361 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9362 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9363 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9364 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9365 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9366 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9367 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9368 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9369 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9370 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9371 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9372 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9373 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9374 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9375 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9376 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9377 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9378 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9379 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9380 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9381 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9382 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9383 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9384 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9385 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9386 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9387 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9388 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9389 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9390 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9391 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9392 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9393 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9394 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9395 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9396 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9397 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9398 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9399 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9400 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9401 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9402 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9403 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9404 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9405 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9406 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9407 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9408 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9409 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9410 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9411 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9412 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9413 .rlen = 496,
549595a0
JK
9414 }, { /* Generated with Crypto++ */
9415 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9416 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9417 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9418 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9419 .klen = 32,
9420 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9421 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
9422 .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
9423 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9424 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9425 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9426 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9427 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9428 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9429 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9430 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9431 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9432 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9433 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9434 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9435 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9436 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9437 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9438 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9439 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9440 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9441 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9442 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9443 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9444 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9445 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9446 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9447 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9448 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9449 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9450 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9451 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9452 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9453 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9454 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9455 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9456 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9457 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9458 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9459 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9460 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9461 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9462 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9463 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9464 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9465 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9466 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9467 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9468 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9469 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9470 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9471 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9472 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9473 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9474 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9475 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9476 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9477 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9478 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9479 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9480 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9481 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9482 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9483 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
9484 .ilen = 496,
9485 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9486 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9487 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9488 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9489 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9490 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9491 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9492 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9493 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9494 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9495 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9496 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9497 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9498 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9499 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9500 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9501 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9502 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9503 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9504 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9505 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9506 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9507 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9508 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9509 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9510 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9511 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9512 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9513 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9514 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9515 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9516 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9517 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9518 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9519 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9520 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9521 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9522 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9523 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9524 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9525 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9526 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9527 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9528 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9529 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9530 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9531 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9532 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9533 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9534 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9535 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9536 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9537 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9538 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9539 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9540 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9541 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9542 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9543 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9544 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9545 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9546 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
9547 .rlen = 496,
573da620
JK
9548 }, { /* Generated with Crypto++ */
9549 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9550 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9551 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9552 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9553 .klen = 32,
9554 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9555 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
9556 .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
9557 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9558 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9559 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9560 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9561 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9562 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9563 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
4da7de4d
JG
9564 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9565 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9566 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9567 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9568 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9569 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9570 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9571 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9572 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9573 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9574 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9575 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9576 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9577 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9578 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9579 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9580 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9581 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9582 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9583 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9584 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9585 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9586 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9587 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9588 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9589 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9590 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9591 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9592 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9593 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9594 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9595 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9596 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9597 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9598 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9599 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9600 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9601 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9602 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9603 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9604 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9605 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9606 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9607 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9608 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9609 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9610 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9611 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9612 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9613 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9614 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9615 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9616 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9617 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9618 "\x6C\x82\x9D",
9619 .ilen = 499,
573da620
JK
9620 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
9621 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9622 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9623 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9624 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9625 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9626 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9627 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
4da7de4d
JG
9628 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9629 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9630 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9631 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9632 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9633 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9634 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9635 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9636 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9637 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9638 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9639 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9640 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9641 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9642 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9643 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9644 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9645 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9646 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9647 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9648 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9649 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9650 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9651 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9652 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9653 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9654 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9655 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9656 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9657 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9658 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9659 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9660 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9661 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9662 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9663 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9664 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9665 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9666 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9667 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9668 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9669 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9670 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9671 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9672 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9673 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9674 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9675 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9676 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9677 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9678 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9679 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9680 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9681 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9682 "\x2B\xC2\x59",
9683 .rlen = 499,
f44d83d1
JK
9684 .also_non_np = 1,
9685 .np = 2,
9686 .tap = { 499 - 16, 16 },
da7f033d
HX
9687 },
9688};
9689
0b2a1551
JK
9690static struct cipher_testvec tf_lrw_enc_tv_template[] = {
9691 /* Generated from AES-LRW test vectors */
9692 {
9693 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9694 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9695 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9696 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9697 .klen = 32,
9698 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9699 "\x00\x00\x00\x00\x00\x00\x00\x01",
9700 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9701 "\x38\x39\x41\x42\x43\x44\x45\x46",
9702 .ilen = 16,
9703 .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
9704 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
9705 .rlen = 16,
9706 }, {
9707 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9708 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9709 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9710 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9711 .klen = 32,
9712 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9713 "\x00\x00\x00\x00\x00\x00\x00\x02",
9714 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9715 "\x38\x39\x41\x42\x43\x44\x45\x46",
9716 .ilen = 16,
9717 .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
9718 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
9719 .rlen = 16,
9720 }, {
9721 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9722 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9723 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9724 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9725 .klen = 32,
9726 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9727 "\x00\x00\x00\x02\x00\x00\x00\x00",
9728 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9729 "\x38\x39\x41\x42\x43\x44\x45\x46",
9730 .ilen = 16,
9731 .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
9732 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
9733 .rlen = 16,
9734 }, {
9735 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9736 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9737 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9738 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9739 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9740 .klen = 40,
9741 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9742 "\x00\x00\x00\x00\x00\x00\x00\x01",
9743 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9744 "\x38\x39\x41\x42\x43\x44\x45\x46",
9745 .ilen = 16,
9746 .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
9747 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
9748 .rlen = 16,
9749 }, {
9750 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9751 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9752 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9753 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9754 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9755 .klen = 40,
9756 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9757 "\x00\x00\x00\x02\x00\x00\x00\x00",
9758 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9759 "\x38\x39\x41\x42\x43\x44\x45\x46",
9760 .ilen = 16,
9761 .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
9762 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
9763 .rlen = 16,
9764 }, {
9765 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9766 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9767 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9768 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9769 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9770 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9771 .klen = 48,
9772 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9773 "\x00\x00\x00\x00\x00\x00\x00\x01",
9774 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9775 "\x38\x39\x41\x42\x43\x44\x45\x46",
9776 .ilen = 16,
9777 .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
9778 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
9779 .rlen = 16,
9780 }, {
9781 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9782 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9783 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9784 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9785 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9786 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9787 .klen = 48,
9788 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9789 "\x00\x00\x00\x02\x00\x00\x00\x00",
9790 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
9791 "\x38\x39\x41\x42\x43\x44\x45\x46",
9792 .ilen = 16,
9793 .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
9794 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
9795 .rlen = 16,
9796 }, {
9797 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9798 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9799 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9800 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9801 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9802 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9803 .klen = 48,
9804 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9805 "\x00\x00\x00\x00\x00\x00\x00\x01",
9806 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
9807 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9808 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9809 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9810 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9811 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9812 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9813 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9814 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9815 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9816 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9817 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9818 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9819 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9820 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9821 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9822 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9823 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9824 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9825 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9826 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9827 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9828 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9829 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9830 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9831 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9832 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9833 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9834 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9835 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9836 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9837 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9838 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9839 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9840 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9841 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9842 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9843 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9844 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
9845 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
9846 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
9847 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
9848 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
9849 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
9850 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
9851 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
9852 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
9853 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
9854 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
9855 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
9856 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
9857 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
9858 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
9859 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
9860 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
9861 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
9862 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
9863 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
9864 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
9865 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
9866 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
9867 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
9868 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
9869 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
9870 .ilen = 512,
9871 .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
9872 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
9873 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
9874 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
9875 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
9876 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
9877 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
9878 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
9879 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
9880 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
9881 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
9882 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
9883 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
9884 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
9885 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
9886 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
9887 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
9888 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
9889 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
9890 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
9891 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
9892 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
9893 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
9894 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
9895 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
9896 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
9897 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
9898 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
9899 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
9900 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
9901 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
9902 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
9903 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
9904 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
9905 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
9906 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
9907 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
9908 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
9909 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
9910 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
9911 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
9912 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
9913 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
9914 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
9915 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
9916 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
9917 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
9918 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
9919 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
9920 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
9921 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
9922 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
9923 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
9924 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
9925 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
9926 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
9927 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
9928 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
9929 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
9930 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
9931 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
9932 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
9933 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
9934 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
9935 .rlen = 512,
f44d83d1 9936 .also_non_np = 1,
3b9b8fe0
AB
9937 .np = 3,
9938 .tap = { 512 - 20, 4, 16 },
0b2a1551
JK
9939 },
9940};
9941
9942static struct cipher_testvec tf_lrw_dec_tv_template[] = {
9943 /* Generated from AES-LRW test vectors */
9944 /* same as enc vectors with input and result reversed */
9945 {
9946 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9947 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9948 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9949 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9950 .klen = 32,
9951 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9952 "\x00\x00\x00\x00\x00\x00\x00\x01",
9953 .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
9954 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
9955 .ilen = 16,
9956 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
9957 "\x38\x39\x41\x42\x43\x44\x45\x46",
9958 .rlen = 16,
9959 }, {
9960 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9961 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9962 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9963 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9964 .klen = 32,
9965 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9966 "\x00\x00\x00\x00\x00\x00\x00\x02",
9967 .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
9968 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
9969 .ilen = 16,
9970 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
9971 "\x38\x39\x41\x42\x43\x44\x45\x46",
9972 .rlen = 16,
9973 }, {
9974 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9975 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9976 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9977 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9978 .klen = 32,
9979 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9980 "\x00\x00\x00\x02\x00\x00\x00\x00",
9981 .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
9982 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
9983 .ilen = 16,
9984 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
9985 "\x38\x39\x41\x42\x43\x44\x45\x46",
9986 .rlen = 16,
9987 }, {
9988 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9989 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9990 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9991 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9992 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9993 .klen = 40,
9994 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9995 "\x00\x00\x00\x00\x00\x00\x00\x01",
9996 .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
9997 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
9998 .ilen = 16,
9999 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10000 "\x38\x39\x41\x42\x43\x44\x45\x46",
10001 .rlen = 16,
10002 }, {
10003 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
10004 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
10005 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
10006 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
10007 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
10008 .klen = 40,
10009 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10010 "\x00\x00\x00\x02\x00\x00\x00\x00",
10011 .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
10012 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
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 = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10019 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10020 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10021 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10022 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10023 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10024 .klen = 48,
10025 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10026 "\x00\x00\x00\x00\x00\x00\x00\x01",
10027 .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
10028 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
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 = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
10035 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
10036 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
10037 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
10038 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
10039 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
10040 .klen = 48,
10041 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10042 "\x00\x00\x00\x02\x00\x00\x00\x00",
10043 .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
10044 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
10045 .ilen = 16,
10046 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
10047 "\x38\x39\x41\x42\x43\x44\x45\x46",
10048 .rlen = 16,
10049 }, {
10050 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10051 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10052 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10053 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10054 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10055 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10056 .klen = 48,
10057 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10058 "\x00\x00\x00\x00\x00\x00\x00\x01",
10059 .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
10060 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
10061 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
10062 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
10063 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
10064 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
10065 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
10066 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
10067 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
10068 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
10069 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
10070 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
10071 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
10072 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
10073 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
10074 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
10075 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
10076 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
10077 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
10078 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
10079 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
10080 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
10081 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
10082 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
10083 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
10084 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
10085 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
10086 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
10087 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
10088 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
10089 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
10090 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
10091 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
10092 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
10093 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
10094 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
10095 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
10096 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
10097 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
10098 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
10099 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
10100 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
10101 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
10102 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
10103 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
10104 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
10105 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
10106 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
10107 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
10108 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
10109 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
10110 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
10111 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
10112 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
10113 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
10114 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
10115 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
10116 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
10117 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
10118 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
10119 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
10120 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
10121 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
10122 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
10123 .ilen = 512,
10124 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
10125 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10126 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10127 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10128 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10129 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10130 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10131 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10132 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10133 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10134 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
10135 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
10136 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
10137 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
10138 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
10139 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
10140 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
10141 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
10142 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
10143 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
10144 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
10145 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
10146 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
10147 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
10148 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
10149 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
10150 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
10151 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
10152 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
10153 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
10154 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
10155 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
10156 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
10157 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
10158 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
10159 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
10160 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
10161 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
10162 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10163 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10164 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10165 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10166 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10167 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10168 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10169 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10170 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10171 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10172 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10173 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10174 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10175 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10176 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10177 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10178 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10179 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10180 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10181 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10182 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10183 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10184 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10185 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10186 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10187 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
10188 .rlen = 512,
f44d83d1 10189 .also_non_np = 1,
3b9b8fe0
AB
10190 .np = 3,
10191 .tap = { 512 - 20, 4, 16 },
0b2a1551
JK
10192 },
10193};
10194
aed265b9
JK
10195static struct cipher_testvec tf_xts_enc_tv_template[] = {
10196 /* Generated from AES-XTS test vectors */
10197{
10198 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
10199 "\x00\x00\x00\x00\x00\x00\x00\x00"
10200 "\x00\x00\x00\x00\x00\x00\x00\x00"
10201 "\x00\x00\x00\x00\x00\x00\x00\x00",
10202 .klen = 32,
10203 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10204 "\x00\x00\x00\x00\x00\x00\x00\x00",
10205 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
10206 "\x00\x00\x00\x00\x00\x00\x00\x00"
10207 "\x00\x00\x00\x00\x00\x00\x00\x00"
10208 "\x00\x00\x00\x00\x00\x00\x00\x00",
10209 .ilen = 32,
10210 .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
10211 "\x30\x74\xe4\x44\x52\x77\x97\x43"
10212 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
10213 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
10214 .rlen = 32,
10215 }, {
10216 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
10217 "\x11\x11\x11\x11\x11\x11\x11\x11"
10218 "\x22\x22\x22\x22\x22\x22\x22\x22"
10219 "\x22\x22\x22\x22\x22\x22\x22\x22",
10220 .klen = 32,
10221 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10222 "\x00\x00\x00\x00\x00\x00\x00\x00",
10223 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
10224 "\x44\x44\x44\x44\x44\x44\x44\x44"
10225 "\x44\x44\x44\x44\x44\x44\x44\x44"
10226 "\x44\x44\x44\x44\x44\x44\x44\x44",
10227 .ilen = 32,
10228 .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
10229 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
10230 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
10231 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
10232 .rlen = 32,
10233 }, {
10234 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10235 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10236 "\x22\x22\x22\x22\x22\x22\x22\x22"
10237 "\x22\x22\x22\x22\x22\x22\x22\x22",
10238 .klen = 32,
10239 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10240 "\x00\x00\x00\x00\x00\x00\x00\x00",
10241 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
10242 "\x44\x44\x44\x44\x44\x44\x44\x44"
10243 "\x44\x44\x44\x44\x44\x44\x44\x44"
10244 "\x44\x44\x44\x44\x44\x44\x44\x44",
10245 .ilen = 32,
10246 .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
10247 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
10248 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
10249 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
10250 .rlen = 32,
10251 }, {
10252 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10253 "\x23\x53\x60\x28\x74\x71\x35\x26"
10254 "\x31\x41\x59\x26\x53\x58\x97\x93"
10255 "\x23\x84\x62\x64\x33\x83\x27\x95",
10256 .klen = 32,
10257 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10258 "\x00\x00\x00\x00\x00\x00\x00\x00",
10259 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10260 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10261 "\x10\x11\x12\x13\x14\x15\x16\x17"
10262 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10263 "\x20\x21\x22\x23\x24\x25\x26\x27"
10264 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10265 "\x30\x31\x32\x33\x34\x35\x36\x37"
10266 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10267 "\x40\x41\x42\x43\x44\x45\x46\x47"
10268 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10269 "\x50\x51\x52\x53\x54\x55\x56\x57"
10270 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10271 "\x60\x61\x62\x63\x64\x65\x66\x67"
10272 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10273 "\x70\x71\x72\x73\x74\x75\x76\x77"
10274 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10275 "\x80\x81\x82\x83\x84\x85\x86\x87"
10276 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10277 "\x90\x91\x92\x93\x94\x95\x96\x97"
10278 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10279 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10280 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10281 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10282 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10283 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10284 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10285 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10286 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10287 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10288 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10289 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10290 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10291 "\x00\x01\x02\x03\x04\x05\x06\x07"
10292 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10293 "\x10\x11\x12\x13\x14\x15\x16\x17"
10294 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10295 "\x20\x21\x22\x23\x24\x25\x26\x27"
10296 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10297 "\x30\x31\x32\x33\x34\x35\x36\x37"
10298 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10299 "\x40\x41\x42\x43\x44\x45\x46\x47"
10300 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10301 "\x50\x51\x52\x53\x54\x55\x56\x57"
10302 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10303 "\x60\x61\x62\x63\x64\x65\x66\x67"
10304 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10305 "\x70\x71\x72\x73\x74\x75\x76\x77"
10306 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10307 "\x80\x81\x82\x83\x84\x85\x86\x87"
10308 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10309 "\x90\x91\x92\x93\x94\x95\x96\x97"
10310 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10311 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10312 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10313 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10314 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10315 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10316 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10317 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10318 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10319 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10320 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10321 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10322 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10323 .ilen = 512,
10324 .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
10325 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
10326 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
10327 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
10328 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
10329 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
10330 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
10331 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
10332 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
10333 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
10334 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
10335 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
10336 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
10337 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
10338 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
10339 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
10340 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
10341 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
10342 "\x39\x80\x39\x09\x97\x65\xf2\x83"
10343 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
10344 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
10345 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
10346 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
10347 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
10348 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
10349 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
10350 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
10351 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
10352 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
10353 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
10354 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
10355 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
10356 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
10357 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
10358 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
10359 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
10360 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
10361 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
10362 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
10363 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
10364 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
10365 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
10366 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
10367 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
10368 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
10369 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
10370 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
10371 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
10372 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
10373 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
10374 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
10375 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
10376 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
10377 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
10378 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
10379 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
10380 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
10381 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
10382 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
10383 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
10384 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
10385 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
10386 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
10387 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
10388 .rlen = 512,
10389 }, {
10390 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10391 "\x23\x53\x60\x28\x74\x71\x35\x26"
10392 "\x62\x49\x77\x57\x24\x70\x93\x69"
10393 "\x99\x59\x57\x49\x66\x96\x76\x27"
10394 "\x31\x41\x59\x26\x53\x58\x97\x93"
10395 "\x23\x84\x62\x64\x33\x83\x27\x95"
10396 "\x02\x88\x41\x97\x16\x93\x99\x37"
10397 "\x51\x05\x82\x09\x74\x94\x45\x92",
10398 .klen = 64,
10399 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
10400 "\x00\x00\x00\x00\x00\x00\x00\x00",
10401 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10402 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10403 "\x10\x11\x12\x13\x14\x15\x16\x17"
10404 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10405 "\x20\x21\x22\x23\x24\x25\x26\x27"
10406 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10407 "\x30\x31\x32\x33\x34\x35\x36\x37"
10408 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10409 "\x40\x41\x42\x43\x44\x45\x46\x47"
10410 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10411 "\x50\x51\x52\x53\x54\x55\x56\x57"
10412 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10413 "\x60\x61\x62\x63\x64\x65\x66\x67"
10414 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10415 "\x70\x71\x72\x73\x74\x75\x76\x77"
10416 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10417 "\x80\x81\x82\x83\x84\x85\x86\x87"
10418 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10419 "\x90\x91\x92\x93\x94\x95\x96\x97"
10420 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10421 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10422 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10423 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10424 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10425 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10426 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10427 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10428 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10429 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10430 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10431 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10432 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10433 "\x00\x01\x02\x03\x04\x05\x06\x07"
10434 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10435 "\x10\x11\x12\x13\x14\x15\x16\x17"
10436 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10437 "\x20\x21\x22\x23\x24\x25\x26\x27"
10438 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10439 "\x30\x31\x32\x33\x34\x35\x36\x37"
10440 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10441 "\x40\x41\x42\x43\x44\x45\x46\x47"
10442 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10443 "\x50\x51\x52\x53\x54\x55\x56\x57"
10444 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10445 "\x60\x61\x62\x63\x64\x65\x66\x67"
10446 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10447 "\x70\x71\x72\x73\x74\x75\x76\x77"
10448 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10449 "\x80\x81\x82\x83\x84\x85\x86\x87"
10450 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10451 "\x90\x91\x92\x93\x94\x95\x96\x97"
10452 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10453 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10454 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10455 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10456 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10457 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10458 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10459 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10460 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10461 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10462 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10463 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10464 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10465 .ilen = 512,
10466 .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
10467 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10468 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10469 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10470 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10471 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10472 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10473 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10474 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10475 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10476 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10477 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10478 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10479 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10480 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10481 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10482 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10483 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10484 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10485 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10486 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10487 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10488 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10489 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10490 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10491 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10492 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10493 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10494 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10495 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10496 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10497 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10498 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10499 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10500 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10501 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10502 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10503 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10504 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10505 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10506 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10507 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10508 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10509 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10510 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10511 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10512 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10513 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10514 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10515 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10516 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10517 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10518 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10519 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10520 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10521 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10522 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10523 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10524 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10525 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10526 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10527 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10528 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10529 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
10530 .rlen = 512,
f44d83d1 10531 .also_non_np = 1,
3b9b8fe0
AB
10532 .np = 3,
10533 .tap = { 512 - 20, 4, 16 },
aed265b9
JK
10534 },
10535};
10536
10537static struct cipher_testvec tf_xts_dec_tv_template[] = {
10538 /* Generated from AES-XTS test vectors */
10539 /* same as enc vectors with input and result reversed */
10540 {
10541 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
10542 "\x00\x00\x00\x00\x00\x00\x00\x00"
10543 "\x00\x00\x00\x00\x00\x00\x00\x00"
10544 "\x00\x00\x00\x00\x00\x00\x00\x00",
10545 .klen = 32,
10546 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10547 "\x00\x00\x00\x00\x00\x00\x00\x00",
10548 .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
10549 "\x30\x74\xe4\x44\x52\x77\x97\x43"
10550 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
10551 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
10552 .ilen = 32,
10553 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
10554 "\x00\x00\x00\x00\x00\x00\x00\x00"
10555 "\x00\x00\x00\x00\x00\x00\x00\x00"
10556 "\x00\x00\x00\x00\x00\x00\x00\x00",
10557 .rlen = 32,
10558 }, {
10559 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
10560 "\x11\x11\x11\x11\x11\x11\x11\x11"
10561 "\x22\x22\x22\x22\x22\x22\x22\x22"
10562 "\x22\x22\x22\x22\x22\x22\x22\x22",
10563 .klen = 32,
10564 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10565 "\x00\x00\x00\x00\x00\x00\x00\x00",
10566 .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
10567 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
10568 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
10569 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
10570 .ilen = 32,
10571 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
10572 "\x44\x44\x44\x44\x44\x44\x44\x44"
10573 "\x44\x44\x44\x44\x44\x44\x44\x44"
10574 "\x44\x44\x44\x44\x44\x44\x44\x44",
10575 .rlen = 32,
10576 }, {
10577 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10578 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10579 "\x22\x22\x22\x22\x22\x22\x22\x22"
10580 "\x22\x22\x22\x22\x22\x22\x22\x22",
10581 .klen = 32,
10582 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10583 "\x00\x00\x00\x00\x00\x00\x00\x00",
10584 .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
10585 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
10586 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
10587 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
10588 .ilen = 32,
10589 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
10590 "\x44\x44\x44\x44\x44\x44\x44\x44"
10591 "\x44\x44\x44\x44\x44\x44\x44\x44"
10592 "\x44\x44\x44\x44\x44\x44\x44\x44",
10593 .rlen = 32,
10594 }, {
10595 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10596 "\x23\x53\x60\x28\x74\x71\x35\x26"
10597 "\x31\x41\x59\x26\x53\x58\x97\x93"
10598 "\x23\x84\x62\x64\x33\x83\x27\x95",
10599 .klen = 32,
10600 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10601 "\x00\x00\x00\x00\x00\x00\x00\x00",
10602 .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
10603 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
10604 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
10605 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
10606 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
10607 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
10608 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
10609 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
10610 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
10611 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
10612 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
10613 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
10614 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
10615 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
10616 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
10617 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
10618 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
10619 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
10620 "\x39\x80\x39\x09\x97\x65\xf2\x83"
10621 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
10622 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
10623 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
10624 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
10625 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
10626 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
10627 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
10628 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
10629 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
10630 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
10631 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
10632 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
10633 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
10634 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
10635 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
10636 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
10637 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
10638 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
10639 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
10640 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
10641 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
10642 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
10643 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
10644 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
10645 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
10646 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
10647 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
10648 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
10649 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
10650 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
10651 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
10652 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
10653 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
10654 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
10655 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
10656 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
10657 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
10658 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
10659 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
10660 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
10661 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
10662 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
10663 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
10664 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
10665 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
10666 .ilen = 512,
10667 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
10668 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10669 "\x10\x11\x12\x13\x14\x15\x16\x17"
10670 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10671 "\x20\x21\x22\x23\x24\x25\x26\x27"
10672 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10673 "\x30\x31\x32\x33\x34\x35\x36\x37"
10674 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10675 "\x40\x41\x42\x43\x44\x45\x46\x47"
10676 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10677 "\x50\x51\x52\x53\x54\x55\x56\x57"
10678 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10679 "\x60\x61\x62\x63\x64\x65\x66\x67"
10680 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10681 "\x70\x71\x72\x73\x74\x75\x76\x77"
10682 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10683 "\x80\x81\x82\x83\x84\x85\x86\x87"
10684 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10685 "\x90\x91\x92\x93\x94\x95\x96\x97"
10686 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10687 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10688 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10689 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10690 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10691 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10692 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10693 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10694 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10695 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10696 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10697 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10698 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10699 "\x00\x01\x02\x03\x04\x05\x06\x07"
10700 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10701 "\x10\x11\x12\x13\x14\x15\x16\x17"
10702 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10703 "\x20\x21\x22\x23\x24\x25\x26\x27"
10704 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10705 "\x30\x31\x32\x33\x34\x35\x36\x37"
10706 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10707 "\x40\x41\x42\x43\x44\x45\x46\x47"
10708 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10709 "\x50\x51\x52\x53\x54\x55\x56\x57"
10710 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10711 "\x60\x61\x62\x63\x64\x65\x66\x67"
10712 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10713 "\x70\x71\x72\x73\x74\x75\x76\x77"
10714 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10715 "\x80\x81\x82\x83\x84\x85\x86\x87"
10716 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10717 "\x90\x91\x92\x93\x94\x95\x96\x97"
10718 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10719 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10720 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10721 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10722 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10723 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10724 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10725 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10726 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10727 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10728 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10729 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10730 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10731 .rlen = 512,
10732 }, {
10733 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10734 "\x23\x53\x60\x28\x74\x71\x35\x26"
10735 "\x62\x49\x77\x57\x24\x70\x93\x69"
10736 "\x99\x59\x57\x49\x66\x96\x76\x27"
10737 "\x31\x41\x59\x26\x53\x58\x97\x93"
10738 "\x23\x84\x62\x64\x33\x83\x27\x95"
10739 "\x02\x88\x41\x97\x16\x93\x99\x37"
10740 "\x51\x05\x82\x09\x74\x94\x45\x92",
10741 .klen = 64,
10742 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
10743 "\x00\x00\x00\x00\x00\x00\x00\x00",
10744 .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
10745 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10746 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10747 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10748 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10749 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10750 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10751 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10752 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10753 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10754 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10755 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10756 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10757 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10758 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10759 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10760 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10761 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10762 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10763 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10764 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10765 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10766 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10767 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10768 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10769 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10770 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10771 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10772 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10773 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10774 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10775 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10776 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10777 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10778 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10779 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10780 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10781 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10782 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10783 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10784 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10785 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10786 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10787 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10788 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10789 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10790 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10791 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10792 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10793 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10794 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10795 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10796 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10797 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10798 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10799 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10800 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10801 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10802 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10803 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10804 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10805 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10806 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10807 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
10808 .ilen = 512,
10809 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
10810 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10811 "\x10\x11\x12\x13\x14\x15\x16\x17"
10812 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10813 "\x20\x21\x22\x23\x24\x25\x26\x27"
10814 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10815 "\x30\x31\x32\x33\x34\x35\x36\x37"
10816 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10817 "\x40\x41\x42\x43\x44\x45\x46\x47"
10818 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10819 "\x50\x51\x52\x53\x54\x55\x56\x57"
10820 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10821 "\x60\x61\x62\x63\x64\x65\x66\x67"
10822 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10823 "\x70\x71\x72\x73\x74\x75\x76\x77"
10824 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10825 "\x80\x81\x82\x83\x84\x85\x86\x87"
10826 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10827 "\x90\x91\x92\x93\x94\x95\x96\x97"
10828 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10829 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10830 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10831 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10832 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10833 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10834 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10835 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10836 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10837 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10838 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10839 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10840 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10841 "\x00\x01\x02\x03\x04\x05\x06\x07"
10842 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10843 "\x10\x11\x12\x13\x14\x15\x16\x17"
10844 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10845 "\x20\x21\x22\x23\x24\x25\x26\x27"
10846 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10847 "\x30\x31\x32\x33\x34\x35\x36\x37"
10848 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10849 "\x40\x41\x42\x43\x44\x45\x46\x47"
10850 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10851 "\x50\x51\x52\x53\x54\x55\x56\x57"
10852 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10853 "\x60\x61\x62\x63\x64\x65\x66\x67"
10854 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10855 "\x70\x71\x72\x73\x74\x75\x76\x77"
10856 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10857 "\x80\x81\x82\x83\x84\x85\x86\x87"
10858 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10859 "\x90\x91\x92\x93\x94\x95\x96\x97"
10860 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10861 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10862 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10863 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10864 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10865 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10866 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10867 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10868 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10869 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10870 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10871 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10872 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
10873 .rlen = 512,
f44d83d1 10874 .also_non_np = 1,
3b9b8fe0
AB
10875 .np = 3,
10876 .tap = { 512 - 20, 4, 16 },
aed265b9
JK
10877 },
10878};
10879
da7f033d
HX
10880/*
10881 * Serpent test vectors. These are backwards because Serpent writes
10882 * octet sequences in right-to-left mode.
10883 */
9d25917d
JK
10884#define SERPENT_ENC_TEST_VECTORS 5
10885#define SERPENT_DEC_TEST_VECTORS 5
da7f033d
HX
10886
10887#define TNEPRES_ENC_TEST_VECTORS 4
10888#define TNEPRES_DEC_TEST_VECTORS 4
10889
9d25917d
JK
10890#define SERPENT_CBC_ENC_TEST_VECTORS 1
10891#define SERPENT_CBC_DEC_TEST_VECTORS 1
10892
10893#define SERPENT_CTR_ENC_TEST_VECTORS 2
10894#define SERPENT_CTR_DEC_TEST_VECTORS 2
10895
d7bfc0fa
JK
10896#define SERPENT_LRW_ENC_TEST_VECTORS 8
10897#define SERPENT_LRW_DEC_TEST_VECTORS 8
10898
18be20b9
JK
10899#define SERPENT_XTS_ENC_TEST_VECTORS 5
10900#define SERPENT_XTS_DEC_TEST_VECTORS 5
10901
da7f033d
HX
10902static struct cipher_testvec serpent_enc_tv_template[] = {
10903 {
10904 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10905 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10906 .ilen = 16,
10907 .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
10908 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
10909 .rlen = 16,
10910 }, {
10911 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10912 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10913 .klen = 16,
10914 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10915 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10916 .ilen = 16,
10917 .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
10918 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
10919 .rlen = 16,
10920 }, {
10921 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10922 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10923 "\x10\x11\x12\x13\x14\x15\x16\x17"
10924 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
10925 .klen = 32,
10926 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
10927 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10928 .ilen = 16,
10929 .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
10930 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
10931 .rlen = 16,
10932 }, {
10933 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
10934 .klen = 16,
10935 .input = zeroed_string,
10936 .ilen = 16,
10937 .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
10938 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
10939 .rlen = 16,
9d25917d
JK
10940 }, { /* Generated with Crypto++ */
10941 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10942 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10943 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10944 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10945 .klen = 32,
10946 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
10947 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10948 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10949 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10950 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10951 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10952 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10953 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10954 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10955 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10956 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10957 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10958 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10959 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10960 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10961 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10962 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
10963 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10964 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10965 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10966 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10967 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10968 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10969 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10970 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10971 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10972 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10973 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10974 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10975 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10976 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10977 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10978 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10979 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10980 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10981 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10982 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10983 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10984 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10985 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10986 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10987 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10988 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10989 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10990 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10991 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10992 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10993 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10994 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10995 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10996 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10997 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10998 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10999 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11000 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11001 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11002 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11003 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11004 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11005 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11006 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11007 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11008 .ilen = 496,
9d25917d
JK
11009 .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
11010 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
11011 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
11012 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
11013 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
11014 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
11015 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
11016 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
11017 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
11018 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
11019 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
11020 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
11021 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
11022 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
11023 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
11024 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
11025 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
9f28e97d
JK
11026 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
11027 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
11028 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
11029 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
11030 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
11031 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
11032 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
11033 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
11034 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
11035 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
11036 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
11037 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
11038 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
11039 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
11040 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
11041 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
11042 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
11043 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
11044 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
11045 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
11046 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
11047 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
11048 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
11049 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
11050 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
11051 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
11052 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
11053 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
11054 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
11055 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
11056 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
11057 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
11058 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
11059 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
11060 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
11061 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
11062 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
11063 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
11064 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
11065 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
11066 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
11067 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
11068 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
11069 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
11070 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
11071 .rlen = 496,
f44d83d1 11072 .also_non_np = 1,
3b9b8fe0
AB
11073 .np = 3,
11074 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
11075 },
11076};
11077
11078static struct cipher_testvec tnepres_enc_tv_template[] = {
11079 { /* KeySize=128, PT=0, I=1 */
11080 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11081 "\x00\x00\x00\x00\x00\x00\x00\x00",
11082 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
11083 "\x00\x00\x00\x00\x00\x00\x00\x00",
11084 .klen = 16,
11085 .ilen = 16,
11086 .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
11087 "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
11088 .rlen = 16,
11089 }, { /* KeySize=192, PT=0, I=1 */
11090 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
11091 "\x00\x00\x00\x00\x00\x00\x00\x00"
11092 "\x00\x00\x00\x00\x00\x00\x00\x00",
11093 .klen = 24,
11094 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11095 "\x00\x00\x00\x00\x00\x00\x00\x00",
11096 .ilen = 16,
11097 .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
11098 "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
11099 .rlen = 16,
11100 }, { /* KeySize=256, PT=0, I=1 */
11101 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
11102 "\x00\x00\x00\x00\x00\x00\x00\x00"
11103 "\x00\x00\x00\x00\x00\x00\x00\x00"
11104 "\x00\x00\x00\x00\x00\x00\x00\x00",
11105 .klen = 32,
11106 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
11107 "\x00\x00\x00\x00\x00\x00\x00\x00",
11108 .ilen = 16,
11109 .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
11110 "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
11111 .rlen = 16,
11112 }, { /* KeySize=256, I=257 */
11113 .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
11114 "\x17\x16\x15\x14\x13\x12\x11\x10"
11115 "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
11116 "\x07\x06\x05\x04\x03\x02\x01\x00",
11117 .klen = 32,
11118 .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
11119 "\x07\x06\x05\x04\x03\x02\x01\x00",
11120 .ilen = 16,
11121 .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
11122 "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
11123 .rlen = 16,
11124 },
11125};
11126
11127
11128static struct cipher_testvec serpent_dec_tv_template[] = {
11129 {
11130 .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
11131 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
11132 .ilen = 16,
11133 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11134 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11135 .rlen = 16,
11136 }, {
11137 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11138 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11139 .klen = 16,
11140 .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
11141 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
11142 .ilen = 16,
11143 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11144 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11145 .rlen = 16,
11146 }, {
11147 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11148 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11149 "\x10\x11\x12\x13\x14\x15\x16\x17"
11150 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11151 .klen = 32,
11152 .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
11153 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
11154 .ilen = 16,
11155 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11156 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11157 .rlen = 16,
11158 }, {
11159 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
11160 .klen = 16,
11161 .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
11162 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
11163 .ilen = 16,
11164 .result = zeroed_string,
11165 .rlen = 16,
9d25917d
JK
11166 }, { /* Generated with Crypto++ */
11167 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11168 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11169 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11170 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11171 .klen = 32,
11172 .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
11173 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
11174 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
11175 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
11176 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
11177 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
11178 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
11179 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
11180 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
11181 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
11182 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
11183 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
11184 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
11185 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
11186 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
11187 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
11188 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
9f28e97d
JK
11189 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
11190 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
11191 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
11192 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
11193 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
11194 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
11195 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
11196 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
11197 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
11198 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
11199 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
11200 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
11201 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
11202 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
11203 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
11204 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
11205 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
11206 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
11207 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
11208 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
11209 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
11210 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
11211 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
11212 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
11213 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
11214 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
11215 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
11216 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
11217 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
11218 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
11219 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
11220 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
11221 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
11222 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
11223 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
11224 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
11225 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
11226 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
11227 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
11228 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
11229 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
11230 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
11231 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
11232 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
11233 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
11234 .ilen = 496,
9d25917d
JK
11235 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11236 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11237 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11238 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11239 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11240 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11241 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11242 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11243 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11244 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11245 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11246 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11247 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11248 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11249 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11250 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11251 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
11252 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11253 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11254 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11255 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11256 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11257 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11258 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11259 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11260 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11261 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11262 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11263 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11264 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11265 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11266 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11267 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11268 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11269 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11270 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11271 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11272 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11273 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11274 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11275 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11276 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11277 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11278 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11279 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11280 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11281 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11282 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11283 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11284 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11285 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11286 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11287 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11288 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11289 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11290 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11291 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11292 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11293 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11294 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11295 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11296 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11297 .rlen = 496,
f44d83d1 11298 .also_non_np = 1,
3b9b8fe0
AB
11299 .np = 3,
11300 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
11301 },
11302};
11303
11304static struct cipher_testvec tnepres_dec_tv_template[] = {
11305 {
11306 .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
11307 "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
11308 .ilen = 16,
11309 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11310 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11311 .rlen = 16,
11312 }, {
11313 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11314 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11315 .klen = 16,
11316 .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
11317 "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
11318 .ilen = 16,
11319 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11320 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11321 .rlen = 16,
11322 }, {
11323 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11324 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11325 "\x10\x11\x12\x13\x14\x15\x16\x17"
11326 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11327 .klen = 32,
11328 .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
11329 "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
11330 .ilen = 16,
11331 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
11332 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11333 .rlen = 16,
11334 }, { /* KeySize=128, I=121 */
11335 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
11336 .klen = 16,
11337 .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
11338 "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
11339 .ilen = 16,
11340 .result = zeroed_string,
11341 .rlen = 16,
11342 },
11343};
11344
9d25917d
JK
11345static struct cipher_testvec serpent_cbc_enc_tv_template[] = {
11346 { /* Generated with Crypto++ */
11347 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11348 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11349 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11350 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11351 .klen = 32,
11352 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11353 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11354 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11355 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11356 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11357 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11358 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11359 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11360 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11361 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11362 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11363 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11364 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11365 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11366 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11367 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11368 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11369 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11370 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
11371 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11372 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11373 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11374 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11375 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11376 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11377 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11378 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11379 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11380 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11381 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11382 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11383 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11384 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11385 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11386 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11387 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11388 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11389 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11390 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11391 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11392 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11393 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11394 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11395 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11396 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11397 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11398 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11399 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11400 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11401 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11402 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11403 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11404 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11405 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11406 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11407 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11408 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11409 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11410 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11411 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11412 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11413 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11414 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11415 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11416 .ilen = 496,
9d25917d
JK
11417 .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
11418 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
11419 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
11420 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
11421 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
11422 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
11423 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
11424 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
11425 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
11426 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
11427 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
11428 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
11429 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
11430 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
11431 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
11432 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
11433 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
9f28e97d
JK
11434 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
11435 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
11436 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
11437 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
11438 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
11439 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
11440 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
11441 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
11442 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
11443 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
11444 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
11445 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
11446 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
11447 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
11448 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
11449 "\x81\x92\x66\x67\x15\x1E\x39\x98"
11450 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
11451 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
11452 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
11453 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
11454 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
11455 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
11456 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
11457 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
11458 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
11459 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
11460 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
11461 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
11462 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
11463 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
11464 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
11465 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
11466 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
11467 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
11468 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
11469 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
11470 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
11471 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
11472 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
11473 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
11474 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
11475 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
11476 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
11477 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
11478 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
11479 .rlen = 496,
f44d83d1 11480 .also_non_np = 1,
3b9b8fe0
AB
11481 .np = 3,
11482 .tap = { 496 - 20, 4, 16 },
9d25917d
JK
11483 },
11484};
11485
11486static struct cipher_testvec serpent_cbc_dec_tv_template[] = {
11487 { /* Generated with Crypto++ */
11488 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11489 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11490 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11491 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11492 .klen = 32,
11493 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11494 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11495 .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
11496 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
11497 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
11498 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
11499 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
11500 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
11501 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
11502 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
11503 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
11504 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
11505 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
11506 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
11507 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
11508 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
11509 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
11510 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
11511 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
9f28e97d
JK
11512 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
11513 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
11514 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
11515 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
11516 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
11517 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
11518 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
11519 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
11520 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
11521 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
11522 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
11523 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
11524 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
11525 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
11526 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
11527 "\x81\x92\x66\x67\x15\x1E\x39\x98"
11528 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
11529 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
11530 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
11531 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
11532 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
11533 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
11534 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
11535 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
11536 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
11537 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
11538 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
11539 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
11540 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
11541 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
11542 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
11543 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
11544 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
11545 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
11546 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
11547 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
11548 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
11549 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
11550 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
11551 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
11552 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
11553 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
11554 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
11555 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
11556 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
11557 .ilen = 496,
9d25917d
JK
11558 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11559 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11560 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11561 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11562 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11563 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11564 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11565 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11566 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11567 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11568 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11569 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11570 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11571 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11572 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11573 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11574 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
11575 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11576 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11577 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11578 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11579 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11580 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11581 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11582 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11583 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11584 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11585 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11586 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11587 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11588 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11589 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11590 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11591 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11592 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11593 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11594 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11595 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11596 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11597 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11598 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11599 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11600 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11601 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11602 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11603 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11604 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11605 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11606 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11607 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11608 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11609 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11610 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11611 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11612 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11613 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11614 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11615 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11616 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11617 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11618 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11619 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11620 .rlen = 496,
f44d83d1 11621 .also_non_np = 1,
3b9b8fe0
AB
11622 .np = 3,
11623 .tap = { 496 - 20, 4, 16 },
9d25917d
JK
11624 },
11625};
11626
11627static struct cipher_testvec serpent_ctr_enc_tv_template[] = {
11628 { /* Generated with Crypto++ */
11629 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11630 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11631 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11632 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11633 .klen = 32,
11634 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11635 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11636 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11637 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11638 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11639 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11640 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11641 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11642 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11643 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11644 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11645 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11646 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11647 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11648 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11649 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11650 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11651 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11652 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
11653 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11654 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11655 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11656 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11657 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11658 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11659 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11660 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11661 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11662 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11663 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11664 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11665 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11666 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11667 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11668 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11669 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11670 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11671 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11672 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11673 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11674 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11675 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11676 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11677 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11678 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11679 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11680 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11681 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11682 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11683 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11684 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11685 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11686 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11687 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11688 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11689 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11690 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11691 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11692 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11693 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11694 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11695 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11696 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11697 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11698 .ilen = 496,
9d25917d
JK
11699 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
11700 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
11701 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
11702 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
11703 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
11704 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
11705 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
11706 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
11707 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
11708 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
11709 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
11710 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
11711 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
11712 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
11713 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
11714 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
11715 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9f28e97d
JK
11716 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
11717 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
11718 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
11719 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
11720 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
11721 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
11722 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
11723 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
11724 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
11725 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
11726 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
11727 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
11728 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
11729 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
11730 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
11731 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
11732 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
11733 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
11734 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
11735 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
11736 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
11737 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
11738 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
11739 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
11740 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
11741 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
11742 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
11743 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
11744 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
11745 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
11746 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
11747 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
11748 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
11749 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
11750 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
11751 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
11752 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
11753 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
11754 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
11755 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
11756 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
11757 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
11758 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
11759 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
11760 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
11761 .rlen = 496,
9d25917d
JK
11762 }, { /* Generated with Crypto++ */
11763 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11764 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11765 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11766 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11767 .klen = 32,
11768 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11769 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
11770 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11771 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11772 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11773 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11774 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11775 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11776 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11777 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11778 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11779 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11780 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11781 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11782 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11783 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11784 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11785 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11786 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11787 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9f28e97d
JK
11788 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11789 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11790 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11791 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11792 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11793 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11794 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11795 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11796 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11797 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11798 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11799 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11800 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11801 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11802 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11803 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11804 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11805 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11806 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11807 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11808 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11809 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11810 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11811 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11812 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11813 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11814 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11815 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11816 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11817 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11818 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11819 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11820 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11821 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11822 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11823 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11824 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11825 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11826 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11827 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11828 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11829 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11830 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11831 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
11832 "\x2B\xC2\x59",
11833 .ilen = 499,
9d25917d
JK
11834 .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
11835 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
11836 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
11837 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
11838 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
11839 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
11840 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
11841 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
11842 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
11843 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
11844 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
11845 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
11846 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
11847 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
11848 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
11849 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
11850 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
11851 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9f28e97d
JK
11852 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
11853 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
11854 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
11855 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
11856 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
11857 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
11858 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
11859 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
11860 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
11861 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
11862 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
11863 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
11864 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
11865 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
11866 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
11867 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
11868 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
11869 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
11870 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
11871 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
11872 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
11873 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
11874 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
11875 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
11876 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
11877 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
11878 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
11879 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
11880 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
11881 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
11882 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
11883 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
11884 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
11885 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
11886 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
11887 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
11888 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
11889 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
11890 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
11891 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
11892 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
11893 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
11894 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
11895 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
11896 "\x38\xE2\xE5",
11897 .rlen = 499,
f44d83d1
JK
11898 .also_non_np = 1,
11899 .np = 2,
9f28e97d 11900 .tap = { 499 - 16, 16 },
549595a0
JK
11901 }, { /* Generated with Crypto++ */
11902 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11903 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11904 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11905 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11906 .klen = 32,
11907 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
11908 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
11909 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
11910 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11911 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11912 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11913 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11914 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11915 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11916 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11917 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11918 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11919 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11920 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11921 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11922 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11923 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11924 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11925 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11926 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11927 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11928 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11929 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11930 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11931 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11932 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11933 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11934 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11935 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11936 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11937 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11938 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11939 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11940 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11941 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11942 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11943 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11944 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11945 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11946 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11947 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11948 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11949 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11950 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11951 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11952 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11953 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11954 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11955 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11956 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11957 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11958 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11959 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11960 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11961 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11962 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11963 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11964 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11965 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11966 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11967 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11968 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11969 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11970 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
11971 .ilen = 496,
11972 .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
11973 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
11974 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
11975 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
11976 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
11977 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
11978 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
11979 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
11980 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
11981 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
11982 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
11983 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
11984 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
11985 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
11986 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
11987 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
11988 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
11989 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
11990 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
11991 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
11992 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
11993 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
11994 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
11995 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
11996 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
11997 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
11998 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
11999 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
12000 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
12001 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
12002 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
12003 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
12004 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
12005 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
12006 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
12007 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
12008 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
12009 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
12010 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
12011 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
12012 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
12013 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
12014 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
12015 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
12016 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
12017 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
12018 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
12019 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
12020 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
12021 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
12022 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
12023 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
12024 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
12025 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
12026 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
12027 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
12028 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
12029 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
12030 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
12031 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
12032 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
12033 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
12034 .rlen = 496,
9d25917d
JK
12035 },
12036};
12037
12038static struct cipher_testvec serpent_ctr_dec_tv_template[] = {
12039 { /* Generated with Crypto++ */
12040 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12041 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12042 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12043 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12044 .klen = 32,
12045 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12046 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12047 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
12048 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
12049 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
12050 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
12051 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
12052 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
12053 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
12054 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
12055 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
12056 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
12057 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
12058 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
12059 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
12060 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
12061 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
12062 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
12063 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9f28e97d
JK
12064 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
12065 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
12066 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
12067 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
12068 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
12069 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
12070 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
12071 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
12072 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
12073 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
12074 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
12075 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
12076 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
12077 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
12078 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
12079 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
12080 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
12081 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
12082 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
12083 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
12084 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
12085 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
12086 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
12087 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
12088 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
12089 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
12090 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
12091 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
12092 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
12093 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
12094 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
12095 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
12096 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
12097 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
12098 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
12099 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
12100 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
12101 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
12102 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
12103 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
12104 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
12105 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
12106 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
12107 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
12108 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
12109 .ilen = 496,
9d25917d
JK
12110 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12111 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12112 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12113 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12114 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12115 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12116 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12117 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12118 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12119 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12120 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12121 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12122 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12123 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12124 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12125 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12126 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9f28e97d
JK
12127 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12128 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12129 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12130 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12131 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12132 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12133 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12134 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12135 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12136 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12137 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12138 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12139 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12140 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12141 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12142 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12143 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12144 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12145 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12146 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12147 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12148 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12149 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12150 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12151 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12152 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12153 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12154 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12155 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12156 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12157 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12158 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12159 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12160 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12161 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12162 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12163 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12164 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12165 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12166 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12167 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12168 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12169 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12170 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12171 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12172 .rlen = 496,
9d25917d
JK
12173 }, { /* Generated with Crypto++ */
12174 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12175 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12176 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12177 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12178 .klen = 32,
12179 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12180 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
12181 .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
12182 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
12183 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
12184 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
12185 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
12186 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
12187 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
12188 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
12189 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
12190 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
12191 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
12192 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
12193 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
12194 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
12195 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
12196 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
12197 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
12198 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9f28e97d
JK
12199 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
12200 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
12201 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
12202 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
12203 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
12204 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
12205 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
12206 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
12207 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
12208 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
12209 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
12210 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
12211 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
12212 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
12213 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
12214 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
12215 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
12216 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
12217 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
12218 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
12219 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
12220 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
12221 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
12222 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
12223 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
12224 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
12225 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
12226 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
12227 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
12228 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
12229 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
12230 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
12231 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
12232 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
12233 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
12234 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
12235 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
12236 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
12237 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
12238 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
12239 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
12240 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
12241 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
12242 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
12243 "\x38\xE2\xE5",
12244 .ilen = 499,
9d25917d
JK
12245 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12246 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12247 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12248 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12249 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12250 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12251 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12252 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12253 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12254 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12255 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12256 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12257 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12258 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12259 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12260 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12261 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12262 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9f28e97d
JK
12263 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12264 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12265 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12266 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12267 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12268 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12269 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12270 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12271 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12272 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12273 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12274 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12275 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12276 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12277 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12278 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12279 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12280 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12281 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12282 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12283 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12284 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12285 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12286 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12287 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12288 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12289 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12290 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12291 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12292 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12293 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12294 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12295 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12296 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12297 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12298 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12299 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12300 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12301 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12302 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12303 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12304 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12305 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12306 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
12307 "\x2B\xC2\x59",
12308 .rlen = 499,
f44d83d1
JK
12309 .also_non_np = 1,
12310 .np = 2,
9f28e97d 12311 .tap = { 499 - 16, 16 },
549595a0
JK
12312 }, { /* Generated with Crypto++ */
12313 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12314 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12315 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12316 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12317 .klen = 32,
12318 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
12319 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
12320 .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
12321 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
12322 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
12323 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
12324 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
12325 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
12326 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
12327 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
12328 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
12329 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
12330 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
12331 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
12332 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
12333 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
12334 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
12335 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
12336 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
12337 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
12338 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
12339 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
12340 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
12341 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
12342 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
12343 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
12344 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
12345 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
12346 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
12347 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
12348 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
12349 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
12350 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
12351 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
12352 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
12353 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
12354 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
12355 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
12356 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
12357 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
12358 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
12359 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
12360 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
12361 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
12362 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
12363 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
12364 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
12365 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
12366 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
12367 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
12368 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
12369 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
12370 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
12371 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
12372 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
12373 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
12374 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
12375 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
12376 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
12377 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
12378 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
12379 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
12380 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
12381 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
12382 .ilen = 496,
12383 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
12384 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12385 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12386 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12387 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12388 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12389 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12390 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12391 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12392 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12393 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12394 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12395 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12396 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12397 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12398 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12399 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12400 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12401 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12402 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12403 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12404 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12405 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12406 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12407 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12408 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12409 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12410 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12411 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12412 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12413 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12414 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12415 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12416 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12417 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12418 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12419 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12420 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12421 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12422 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12423 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12424 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12425 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12426 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12427 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12428 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12429 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12430 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12431 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12432 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12433 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12434 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12435 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12436 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12437 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12438 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12439 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12440 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12441 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12442 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12443 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12444 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
12445 .rlen = 496,
9d25917d
JK
12446 },
12447};
da7f033d 12448
d7bfc0fa
JK
12449static struct cipher_testvec serpent_lrw_enc_tv_template[] = {
12450 /* Generated from AES-LRW test vectors */
12451 {
12452 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
12453 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
12454 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
12455 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
12456 .klen = 32,
12457 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12458 "\x00\x00\x00\x00\x00\x00\x00\x01",
12459 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12460 "\x38\x39\x41\x42\x43\x44\x45\x46",
12461 .ilen = 16,
12462 .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
12463 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
12464 .rlen = 16,
12465 }, {
12466 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
12467 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
12468 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
12469 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
12470 .klen = 32,
12471 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12472 "\x00\x00\x00\x00\x00\x00\x00\x02",
12473 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12474 "\x38\x39\x41\x42\x43\x44\x45\x46",
12475 .ilen = 16,
12476 .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
12477 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
12478 .rlen = 16,
12479 }, {
12480 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
12481 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
12482 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
12483 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
12484 .klen = 32,
12485 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12486 "\x00\x00\x00\x02\x00\x00\x00\x00",
12487 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12488 "\x38\x39\x41\x42\x43\x44\x45\x46",
12489 .ilen = 16,
12490 .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
12491 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
12492 .rlen = 16,
12493 }, {
12494 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
12495 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
12496 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
12497 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
12498 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
12499 .klen = 40,
12500 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12501 "\x00\x00\x00\x00\x00\x00\x00\x01",
12502 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12503 "\x38\x39\x41\x42\x43\x44\x45\x46",
12504 .ilen = 16,
12505 .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
12506 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
12507 .rlen = 16,
12508 }, {
12509 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
12510 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
12511 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
12512 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
12513 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
12514 .klen = 40,
12515 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12516 "\x00\x00\x00\x02\x00\x00\x00\x00",
12517 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12518 "\x38\x39\x41\x42\x43\x44\x45\x46",
12519 .ilen = 16,
12520 .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
12521 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
12522 .rlen = 16,
12523 }, {
12524 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12525 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12526 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12527 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12528 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12529 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12530 .klen = 48,
12531 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12532 "\x00\x00\x00\x00\x00\x00\x00\x01",
12533 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12534 "\x38\x39\x41\x42\x43\x44\x45\x46",
12535 .ilen = 16,
12536 .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
12537 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
12538 .rlen = 16,
12539 }, {
12540 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
12541 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
12542 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
12543 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
12544 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
12545 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
12546 .klen = 48,
12547 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12548 "\x00\x00\x00\x02\x00\x00\x00\x00",
12549 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
12550 "\x38\x39\x41\x42\x43\x44\x45\x46",
12551 .ilen = 16,
12552 .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
12553 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
12554 .rlen = 16,
12555 }, {
12556 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12557 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12558 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12559 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12560 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12561 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12562 .klen = 48,
12563 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12564 "\x00\x00\x00\x00\x00\x00\x00\x01",
12565 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12566 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12567 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12568 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12569 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12570 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12571 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12572 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12573 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12574 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12575 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12576 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12577 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12578 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12579 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12580 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12581 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12582 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12583 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12584 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12585 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12586 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12587 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12588 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12589 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12590 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12591 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12592 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12593 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12594 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12595 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12596 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12597 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12598 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12599 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12600 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12601 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12602 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12603 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12604 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12605 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12606 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12607 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12608 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12609 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12610 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12611 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12612 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12613 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12614 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12615 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12616 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12617 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12618 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12619 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12620 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12621 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12622 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12623 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12624 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12625 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12626 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12627 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12628 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
12629 .ilen = 512,
12630 .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
12631 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
12632 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
12633 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
12634 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
12635 "\xce\xab\xda\x33\x30\x20\x12\xfa"
12636 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
12637 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
12638 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
12639 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
12640 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
12641 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
12642 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
12643 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
12644 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
12645 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
12646 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
12647 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
12648 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
12649 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
12650 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
12651 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
12652 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
12653 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
12654 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
12655 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
12656 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
12657 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
12658 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
12659 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
12660 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
12661 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
12662 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
12663 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
12664 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
12665 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
12666 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
12667 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
12668 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
12669 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
12670 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
12671 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
12672 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
12673 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
12674 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
12675 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
12676 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
12677 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
12678 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
12679 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
12680 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
12681 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
12682 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
12683 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
12684 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
12685 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
12686 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
12687 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
12688 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
12689 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
12690 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
12691 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
12692 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
12693 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
12694 .rlen = 512,
f44d83d1 12695 .also_non_np = 1,
3b9b8fe0
AB
12696 .np = 3,
12697 .tap = { 512 - 20, 4, 16 },
d7bfc0fa
JK
12698 },
12699};
12700
12701static struct cipher_testvec serpent_lrw_dec_tv_template[] = {
12702 /* Generated from AES-LRW test vectors */
12703 /* same as enc vectors with input and result reversed */
12704 {
12705 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
12706 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
12707 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
12708 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
12709 .klen = 32,
12710 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12711 "\x00\x00\x00\x00\x00\x00\x00\x01",
12712 .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
12713 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
12714 .ilen = 16,
12715 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12716 "\x38\x39\x41\x42\x43\x44\x45\x46",
12717 .rlen = 16,
12718 }, {
12719 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
12720 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
12721 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
12722 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
12723 .klen = 32,
12724 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12725 "\x00\x00\x00\x00\x00\x00\x00\x02",
12726 .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
12727 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
12728 .ilen = 16,
12729 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12730 "\x38\x39\x41\x42\x43\x44\x45\x46",
12731 .rlen = 16,
12732 }, {
12733 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
12734 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
12735 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
12736 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
12737 .klen = 32,
12738 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12739 "\x00\x00\x00\x02\x00\x00\x00\x00",
12740 .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
12741 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
12742 .ilen = 16,
12743 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12744 "\x38\x39\x41\x42\x43\x44\x45\x46",
12745 .rlen = 16,
12746 }, {
12747 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
12748 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
12749 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
12750 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
12751 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
12752 .klen = 40,
12753 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12754 "\x00\x00\x00\x00\x00\x00\x00\x01",
12755 .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
12756 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
12757 .ilen = 16,
12758 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12759 "\x38\x39\x41\x42\x43\x44\x45\x46",
12760 .rlen = 16,
12761 }, {
12762 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
12763 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
12764 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
12765 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
12766 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
12767 .klen = 40,
12768 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12769 "\x00\x00\x00\x02\x00\x00\x00\x00",
12770 .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
12771 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
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 = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12778 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12779 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12780 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12781 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12782 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12783 .klen = 48,
12784 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12785 "\x00\x00\x00\x00\x00\x00\x00\x01",
12786 .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
12787 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
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 = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
12794 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
12795 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
12796 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
12797 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
12798 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
12799 .klen = 48,
12800 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12801 "\x00\x00\x00\x02\x00\x00\x00\x00",
12802 .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
12803 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
12804 .ilen = 16,
12805 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
12806 "\x38\x39\x41\x42\x43\x44\x45\x46",
12807 .rlen = 16,
12808 }, {
12809 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12810 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12811 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12812 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12813 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12814 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12815 .klen = 48,
12816 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12817 "\x00\x00\x00\x00\x00\x00\x00\x01",
12818 .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
12819 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
12820 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
12821 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
12822 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
12823 "\xce\xab\xda\x33\x30\x20\x12\xfa"
12824 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
12825 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
12826 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
12827 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
12828 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
12829 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
12830 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
12831 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
12832 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
12833 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
12834 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
12835 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
12836 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
12837 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
12838 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
12839 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
12840 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
12841 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
12842 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
12843 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
12844 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
12845 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
12846 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
12847 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
12848 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
12849 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
12850 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
12851 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
12852 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
12853 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
12854 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
12855 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
12856 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
12857 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
12858 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
12859 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
12860 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
12861 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
12862 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
12863 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
12864 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
12865 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
12866 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
12867 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
12868 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
12869 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
12870 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
12871 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
12872 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
12873 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
12874 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
12875 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
12876 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
12877 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
12878 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
12879 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
12880 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
12881 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
12882 .ilen = 512,
12883 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
12884 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12885 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12886 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12887 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12888 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12889 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12890 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12891 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12892 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12893 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12894 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12895 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12896 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12897 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12898 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12899 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12900 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12901 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12902 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12903 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12904 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12905 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12906 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12907 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12908 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12909 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12910 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12911 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12912 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12913 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12914 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12915 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12916 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12917 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12918 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12919 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12920 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12921 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12922 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12923 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12924 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12925 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12926 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12927 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12928 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12929 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12930 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12931 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12932 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12933 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12934 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12935 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12936 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12937 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12938 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12939 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12940 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12941 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12942 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12943 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12944 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12945 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12946 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
12947 .rlen = 512,
f44d83d1 12948 .also_non_np = 1,
3b9b8fe0
AB
12949 .np = 3,
12950 .tap = { 512 - 20, 4, 16 },
d7bfc0fa
JK
12951 },
12952};
12953
18be20b9
JK
12954static struct cipher_testvec serpent_xts_enc_tv_template[] = {
12955 /* Generated from AES-XTS test vectors */
12956 {
12957 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
12958 "\x00\x00\x00\x00\x00\x00\x00\x00"
12959 "\x00\x00\x00\x00\x00\x00\x00\x00"
12960 "\x00\x00\x00\x00\x00\x00\x00\x00",
12961 .klen = 32,
12962 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12963 "\x00\x00\x00\x00\x00\x00\x00\x00",
12964 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
12965 "\x00\x00\x00\x00\x00\x00\x00\x00"
12966 "\x00\x00\x00\x00\x00\x00\x00\x00"
12967 "\x00\x00\x00\x00\x00\x00\x00\x00",
12968 .ilen = 32,
12969 .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
12970 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
12971 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
12972 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
12973 .rlen = 32,
12974 }, {
12975 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
12976 "\x11\x11\x11\x11\x11\x11\x11\x11"
12977 "\x22\x22\x22\x22\x22\x22\x22\x22"
12978 "\x22\x22\x22\x22\x22\x22\x22\x22",
12979 .klen = 32,
12980 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
12981 "\x00\x00\x00\x00\x00\x00\x00\x00",
12982 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
12983 "\x44\x44\x44\x44\x44\x44\x44\x44"
12984 "\x44\x44\x44\x44\x44\x44\x44\x44"
12985 "\x44\x44\x44\x44\x44\x44\x44\x44",
12986 .ilen = 32,
12987 .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
12988 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
12989 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
12990 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
12991 .rlen = 32,
12992 }, {
12993 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
12994 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
12995 "\x22\x22\x22\x22\x22\x22\x22\x22"
12996 "\x22\x22\x22\x22\x22\x22\x22\x22",
12997 .klen = 32,
12998 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
12999 "\x00\x00\x00\x00\x00\x00\x00\x00",
13000 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
13001 "\x44\x44\x44\x44\x44\x44\x44\x44"
13002 "\x44\x44\x44\x44\x44\x44\x44\x44"
13003 "\x44\x44\x44\x44\x44\x44\x44\x44",
13004 .ilen = 32,
13005 .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
13006 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
13007 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
13008 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
13009 .rlen = 32,
13010 }, {
13011 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13012 "\x23\x53\x60\x28\x74\x71\x35\x26"
13013 "\x31\x41\x59\x26\x53\x58\x97\x93"
13014 "\x23\x84\x62\x64\x33\x83\x27\x95",
13015 .klen = 32,
13016 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13017 "\x00\x00\x00\x00\x00\x00\x00\x00",
13018 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13019 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13020 "\x10\x11\x12\x13\x14\x15\x16\x17"
13021 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13022 "\x20\x21\x22\x23\x24\x25\x26\x27"
13023 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13024 "\x30\x31\x32\x33\x34\x35\x36\x37"
13025 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13026 "\x40\x41\x42\x43\x44\x45\x46\x47"
13027 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13028 "\x50\x51\x52\x53\x54\x55\x56\x57"
13029 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13030 "\x60\x61\x62\x63\x64\x65\x66\x67"
13031 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13032 "\x70\x71\x72\x73\x74\x75\x76\x77"
13033 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13034 "\x80\x81\x82\x83\x84\x85\x86\x87"
13035 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13036 "\x90\x91\x92\x93\x94\x95\x96\x97"
13037 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13038 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13039 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13040 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13041 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13042 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13043 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13044 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13045 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13046 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13047 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13048 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13049 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13050 "\x00\x01\x02\x03\x04\x05\x06\x07"
13051 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13052 "\x10\x11\x12\x13\x14\x15\x16\x17"
13053 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13054 "\x20\x21\x22\x23\x24\x25\x26\x27"
13055 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13056 "\x30\x31\x32\x33\x34\x35\x36\x37"
13057 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13058 "\x40\x41\x42\x43\x44\x45\x46\x47"
13059 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13060 "\x50\x51\x52\x53\x54\x55\x56\x57"
13061 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13062 "\x60\x61\x62\x63\x64\x65\x66\x67"
13063 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13064 "\x70\x71\x72\x73\x74\x75\x76\x77"
13065 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13066 "\x80\x81\x82\x83\x84\x85\x86\x87"
13067 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13068 "\x90\x91\x92\x93\x94\x95\x96\x97"
13069 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13070 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13071 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13072 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13073 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13074 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13075 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13076 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13077 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13078 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13079 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13080 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13081 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13082 .ilen = 512,
13083 .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
13084 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
13085 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
13086 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
13087 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
13088 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
13089 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
13090 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
13091 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
13092 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
13093 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
13094 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
13095 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
13096 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
13097 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
13098 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
13099 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
13100 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
13101 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
13102 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
13103 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
13104 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
13105 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
13106 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
13107 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
13108 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
13109 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
13110 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
13111 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
13112 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
13113 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
13114 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
13115 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
13116 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
13117 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
13118 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
13119 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
13120 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
13121 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
13122 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
13123 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
13124 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
13125 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
13126 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
13127 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
13128 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
13129 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
13130 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
13131 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
13132 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
13133 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
13134 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
13135 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
13136 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
13137 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
13138 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
13139 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
13140 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
13141 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
13142 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
13143 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
13144 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
13145 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
13146 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
13147 .rlen = 512,
13148 }, {
13149 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13150 "\x23\x53\x60\x28\x74\x71\x35\x26"
13151 "\x62\x49\x77\x57\x24\x70\x93\x69"
13152 "\x99\x59\x57\x49\x66\x96\x76\x27"
13153 "\x31\x41\x59\x26\x53\x58\x97\x93"
13154 "\x23\x84\x62\x64\x33\x83\x27\x95"
13155 "\x02\x88\x41\x97\x16\x93\x99\x37"
13156 "\x51\x05\x82\x09\x74\x94\x45\x92",
13157 .klen = 64,
13158 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13159 "\x00\x00\x00\x00\x00\x00\x00\x00",
13160 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13161 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13162 "\x10\x11\x12\x13\x14\x15\x16\x17"
13163 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13164 "\x20\x21\x22\x23\x24\x25\x26\x27"
13165 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13166 "\x30\x31\x32\x33\x34\x35\x36\x37"
13167 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13168 "\x40\x41\x42\x43\x44\x45\x46\x47"
13169 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13170 "\x50\x51\x52\x53\x54\x55\x56\x57"
13171 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13172 "\x60\x61\x62\x63\x64\x65\x66\x67"
13173 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13174 "\x70\x71\x72\x73\x74\x75\x76\x77"
13175 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13176 "\x80\x81\x82\x83\x84\x85\x86\x87"
13177 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13178 "\x90\x91\x92\x93\x94\x95\x96\x97"
13179 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13180 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13181 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13182 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13183 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13184 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13185 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13186 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13187 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13188 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13189 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13190 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13191 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13192 "\x00\x01\x02\x03\x04\x05\x06\x07"
13193 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13194 "\x10\x11\x12\x13\x14\x15\x16\x17"
13195 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13196 "\x20\x21\x22\x23\x24\x25\x26\x27"
13197 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13198 "\x30\x31\x32\x33\x34\x35\x36\x37"
13199 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13200 "\x40\x41\x42\x43\x44\x45\x46\x47"
13201 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13202 "\x50\x51\x52\x53\x54\x55\x56\x57"
13203 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13204 "\x60\x61\x62\x63\x64\x65\x66\x67"
13205 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13206 "\x70\x71\x72\x73\x74\x75\x76\x77"
13207 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13208 "\x80\x81\x82\x83\x84\x85\x86\x87"
13209 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13210 "\x90\x91\x92\x93\x94\x95\x96\x97"
13211 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13212 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13213 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13214 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13215 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13216 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13217 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13218 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13219 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13220 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13221 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13222 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13223 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13224 .ilen = 512,
13225 .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
13226 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
13227 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
13228 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
13229 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
13230 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
13231 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
13232 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
13233 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
13234 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
13235 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
13236 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
13237 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
13238 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
13239 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
13240 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
13241 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
13242 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
13243 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
13244 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
13245 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
13246 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
13247 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
13248 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
13249 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
13250 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
13251 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
13252 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
13253 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
13254 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
13255 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
13256 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
13257 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
13258 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
13259 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
13260 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
13261 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
13262 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
13263 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
13264 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
13265 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
13266 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
13267 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
13268 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
13269 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
13270 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
13271 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
13272 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
13273 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
13274 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
13275 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
13276 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
13277 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
13278 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
13279 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
13280 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
13281 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
13282 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
13283 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
13284 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
13285 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
13286 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
13287 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
13288 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
13289 .rlen = 512,
f44d83d1 13290 .also_non_np = 1,
3b9b8fe0
AB
13291 .np = 3,
13292 .tap = { 512 - 20, 4, 16 },
18be20b9
JK
13293 },
13294};
13295
13296static struct cipher_testvec serpent_xts_dec_tv_template[] = {
13297 /* Generated from AES-XTS test vectors */
13298 /* same as enc vectors with input and result reversed */
13299 {
13300 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
13301 "\x00\x00\x00\x00\x00\x00\x00\x00"
13302 "\x00\x00\x00\x00\x00\x00\x00\x00"
13303 "\x00\x00\x00\x00\x00\x00\x00\x00",
13304 .klen = 32,
13305 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13306 "\x00\x00\x00\x00\x00\x00\x00\x00",
13307 .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
13308 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
13309 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
13310 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
13311 .ilen = 32,
13312 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
13313 "\x00\x00\x00\x00\x00\x00\x00\x00"
13314 "\x00\x00\x00\x00\x00\x00\x00\x00"
13315 "\x00\x00\x00\x00\x00\x00\x00\x00",
13316 .rlen = 32,
13317 }, {
13318 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
13319 "\x11\x11\x11\x11\x11\x11\x11\x11"
13320 "\x22\x22\x22\x22\x22\x22\x22\x22"
13321 "\x22\x22\x22\x22\x22\x22\x22\x22",
13322 .klen = 32,
13323 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13324 "\x00\x00\x00\x00\x00\x00\x00\x00",
13325 .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
13326 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
13327 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
13328 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
13329 .ilen = 32,
13330 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
13331 "\x44\x44\x44\x44\x44\x44\x44\x44"
13332 "\x44\x44\x44\x44\x44\x44\x44\x44"
13333 "\x44\x44\x44\x44\x44\x44\x44\x44",
13334 .rlen = 32,
13335 }, {
13336 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
13337 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
13338 "\x22\x22\x22\x22\x22\x22\x22\x22"
13339 "\x22\x22\x22\x22\x22\x22\x22\x22",
13340 .klen = 32,
13341 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13342 "\x00\x00\x00\x00\x00\x00\x00\x00",
13343 .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
13344 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
13345 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
13346 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
13347 .ilen = 32,
13348 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
13349 "\x44\x44\x44\x44\x44\x44\x44\x44"
13350 "\x44\x44\x44\x44\x44\x44\x44\x44"
13351 "\x44\x44\x44\x44\x44\x44\x44\x44",
13352 .rlen = 32,
13353 }, {
13354 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13355 "\x23\x53\x60\x28\x74\x71\x35\x26"
13356 "\x31\x41\x59\x26\x53\x58\x97\x93"
13357 "\x23\x84\x62\x64\x33\x83\x27\x95",
13358 .klen = 32,
13359 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13360 "\x00\x00\x00\x00\x00\x00\x00\x00",
13361 .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
13362 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
13363 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
13364 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
13365 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
13366 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
13367 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
13368 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
13369 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
13370 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
13371 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
13372 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
13373 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
13374 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
13375 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
13376 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
13377 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
13378 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
13379 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
13380 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
13381 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
13382 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
13383 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
13384 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
13385 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
13386 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
13387 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
13388 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
13389 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
13390 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
13391 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
13392 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
13393 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
13394 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
13395 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
13396 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
13397 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
13398 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
13399 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
13400 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
13401 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
13402 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
13403 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
13404 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
13405 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
13406 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
13407 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
13408 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
13409 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
13410 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
13411 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
13412 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
13413 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
13414 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
13415 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
13416 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
13417 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
13418 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
13419 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
13420 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
13421 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
13422 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
13423 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
13424 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
13425 .ilen = 512,
13426 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13427 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13428 "\x10\x11\x12\x13\x14\x15\x16\x17"
13429 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13430 "\x20\x21\x22\x23\x24\x25\x26\x27"
13431 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13432 "\x30\x31\x32\x33\x34\x35\x36\x37"
13433 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13434 "\x40\x41\x42\x43\x44\x45\x46\x47"
13435 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13436 "\x50\x51\x52\x53\x54\x55\x56\x57"
13437 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13438 "\x60\x61\x62\x63\x64\x65\x66\x67"
13439 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13440 "\x70\x71\x72\x73\x74\x75\x76\x77"
13441 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13442 "\x80\x81\x82\x83\x84\x85\x86\x87"
13443 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13444 "\x90\x91\x92\x93\x94\x95\x96\x97"
13445 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13446 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13447 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13448 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13449 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13450 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13451 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13452 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13453 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13454 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13455 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13456 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13457 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13458 "\x00\x01\x02\x03\x04\x05\x06\x07"
13459 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13460 "\x10\x11\x12\x13\x14\x15\x16\x17"
13461 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13462 "\x20\x21\x22\x23\x24\x25\x26\x27"
13463 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13464 "\x30\x31\x32\x33\x34\x35\x36\x37"
13465 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13466 "\x40\x41\x42\x43\x44\x45\x46\x47"
13467 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13468 "\x50\x51\x52\x53\x54\x55\x56\x57"
13469 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13470 "\x60\x61\x62\x63\x64\x65\x66\x67"
13471 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13472 "\x70\x71\x72\x73\x74\x75\x76\x77"
13473 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13474 "\x80\x81\x82\x83\x84\x85\x86\x87"
13475 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13476 "\x90\x91\x92\x93\x94\x95\x96\x97"
13477 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13478 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13479 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13480 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13481 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13482 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13483 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13484 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13485 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13486 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13487 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13488 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13489 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13490 .rlen = 512,
13491 }, {
13492 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13493 "\x23\x53\x60\x28\x74\x71\x35\x26"
13494 "\x62\x49\x77\x57\x24\x70\x93\x69"
13495 "\x99\x59\x57\x49\x66\x96\x76\x27"
13496 "\x31\x41\x59\x26\x53\x58\x97\x93"
13497 "\x23\x84\x62\x64\x33\x83\x27\x95"
13498 "\x02\x88\x41\x97\x16\x93\x99\x37"
13499 "\x51\x05\x82\x09\x74\x94\x45\x92",
13500 .klen = 64,
13501 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13502 "\x00\x00\x00\x00\x00\x00\x00\x00",
13503 .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
13504 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
13505 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
13506 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
13507 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
13508 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
13509 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
13510 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
13511 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
13512 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
13513 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
13514 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
13515 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
13516 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
13517 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
13518 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
13519 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
13520 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
13521 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
13522 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
13523 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
13524 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
13525 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
13526 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
13527 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
13528 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
13529 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
13530 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
13531 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
13532 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
13533 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
13534 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
13535 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
13536 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
13537 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
13538 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
13539 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
13540 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
13541 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
13542 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
13543 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
13544 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
13545 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
13546 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
13547 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
13548 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
13549 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
13550 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
13551 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
13552 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
13553 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
13554 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
13555 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
13556 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
13557 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
13558 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
13559 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
13560 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
13561 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
13562 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
13563 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
13564 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
13565 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
13566 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
13567 .ilen = 512,
13568 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
13569 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13570 "\x10\x11\x12\x13\x14\x15\x16\x17"
13571 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13572 "\x20\x21\x22\x23\x24\x25\x26\x27"
13573 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13574 "\x30\x31\x32\x33\x34\x35\x36\x37"
13575 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13576 "\x40\x41\x42\x43\x44\x45\x46\x47"
13577 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13578 "\x50\x51\x52\x53\x54\x55\x56\x57"
13579 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13580 "\x60\x61\x62\x63\x64\x65\x66\x67"
13581 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13582 "\x70\x71\x72\x73\x74\x75\x76\x77"
13583 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13584 "\x80\x81\x82\x83\x84\x85\x86\x87"
13585 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13586 "\x90\x91\x92\x93\x94\x95\x96\x97"
13587 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13588 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13589 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13590 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13591 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13592 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13593 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13594 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13595 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13596 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13597 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13598 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13599 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13600 "\x00\x01\x02\x03\x04\x05\x06\x07"
13601 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13602 "\x10\x11\x12\x13\x14\x15\x16\x17"
13603 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13604 "\x20\x21\x22\x23\x24\x25\x26\x27"
13605 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13606 "\x30\x31\x32\x33\x34\x35\x36\x37"
13607 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13608 "\x40\x41\x42\x43\x44\x45\x46\x47"
13609 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13610 "\x50\x51\x52\x53\x54\x55\x56\x57"
13611 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13612 "\x60\x61\x62\x63\x64\x65\x66\x67"
13613 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13614 "\x70\x71\x72\x73\x74\x75\x76\x77"
13615 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13616 "\x80\x81\x82\x83\x84\x85\x86\x87"
13617 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13618 "\x90\x91\x92\x93\x94\x95\x96\x97"
13619 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13620 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13621 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13622 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13623 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13624 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13625 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13626 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13627 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13628 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13629 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13630 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13631 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
13632 .rlen = 512,
f44d83d1 13633 .also_non_np = 1,
3b9b8fe0
AB
13634 .np = 3,
13635 .tap = { 512 - 20, 4, 16 },
18be20b9
JK
13636 },
13637};
13638
da7f033d 13639/* Cast6 test vectors from RFC 2612 */
9b8b0405
JG
13640#define CAST6_ENC_TEST_VECTORS 4
13641#define CAST6_DEC_TEST_VECTORS 4
13642#define CAST6_CBC_ENC_TEST_VECTORS 1
13643#define CAST6_CBC_DEC_TEST_VECTORS 1
9cac3a29
JK
13644#define CAST6_CTR_ENC_TEST_VECTORS 2
13645#define CAST6_CTR_DEC_TEST_VECTORS 2
9b8b0405
JG
13646#define CAST6_LRW_ENC_TEST_VECTORS 1
13647#define CAST6_LRW_DEC_TEST_VECTORS 1
13648#define CAST6_XTS_ENC_TEST_VECTORS 1
13649#define CAST6_XTS_DEC_TEST_VECTORS 1
da7f033d
HX
13650
13651static struct cipher_testvec cast6_enc_tv_template[] = {
13652 {
13653 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13654 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
13655 .klen = 16,
13656 .input = zeroed_string,
13657 .ilen = 16,
13658 .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
13659 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
13660 .rlen = 16,
13661 }, {
13662 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13663 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13664 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
13665 .klen = 24,
13666 .input = zeroed_string,
13667 .ilen = 16,
13668 .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
13669 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
13670 .rlen = 16,
13671 }, {
13672 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13673 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13674 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
13675 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
13676 .klen = 32,
13677 .input = zeroed_string,
13678 .ilen = 16,
13679 .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
13680 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
13681 .rlen = 16,
9b8b0405
JG
13682 }, { /* Generated from TF test vectors */
13683 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13684 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13685 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13686 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13687 .klen = 32,
13688 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
13689 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
13690 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
13691 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
13692 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
13693 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
13694 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
13695 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
13696 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
13697 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
13698 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
13699 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
13700 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
13701 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
13702 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
13703 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
13704 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
13705 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
13706 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
13707 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
13708 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
13709 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
13710 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
13711 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
13712 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
13713 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
13714 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
13715 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
13716 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
13717 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
13718 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
13719 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
13720 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
13721 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
13722 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
13723 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
13724 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
13725 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
13726 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
13727 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
13728 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
13729 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
13730 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
13731 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
13732 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
13733 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
13734 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
13735 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
13736 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
13737 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
13738 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
13739 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
13740 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
13741 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
13742 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
13743 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
13744 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
13745 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
13746 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
13747 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
13748 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
13749 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
13750 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
13751 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
13752 .ilen = 496,
13753 .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
13754 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
13755 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
13756 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
13757 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
13758 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
13759 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
13760 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
13761 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
13762 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
13763 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
13764 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
13765 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
13766 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
13767 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
13768 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
13769 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
13770 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
13771 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
13772 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
13773 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
13774 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
13775 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
13776 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
13777 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
13778 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
13779 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
13780 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
13781 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
13782 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
13783 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
13784 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
13785 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
13786 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
13787 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
13788 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
13789 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
13790 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
13791 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
13792 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
13793 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
13794 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
13795 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
13796 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
13797 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
13798 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
13799 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
13800 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
13801 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
13802 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
13803 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
13804 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
13805 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
13806 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
13807 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
13808 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
13809 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
13810 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
13811 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
13812 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
13813 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
13814 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
13815 .rlen = 496,
f44d83d1 13816 .also_non_np = 1,
3b9b8fe0
AB
13817 .np = 3,
13818 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
13819 },
13820};
13821
13822static struct cipher_testvec cast6_dec_tv_template[] = {
13823 {
13824 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13825 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
13826 .klen = 16,
13827 .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
13828 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
13829 .ilen = 16,
13830 .result = zeroed_string,
13831 .rlen = 16,
13832 }, {
13833 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13834 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13835 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
13836 .klen = 24,
13837 .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
13838 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
13839 .ilen = 16,
13840 .result = zeroed_string,
13841 .rlen = 16,
13842 }, {
13843 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
13844 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
13845 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
13846 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
13847 .klen = 32,
13848 .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
13849 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
13850 .ilen = 16,
13851 .result = zeroed_string,
13852 .rlen = 16,
9b8b0405
JG
13853 }, { /* Generated from TF test vectors */
13854 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13855 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13856 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13857 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13858 .klen = 32,
13859 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
13860 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
13861 .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
13862 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
13863 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
13864 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
13865 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
13866 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
13867 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
13868 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
13869 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
13870 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
13871 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
13872 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
13873 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
13874 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
13875 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
13876 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
13877 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
13878 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
13879 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
13880 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
13881 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
13882 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
13883 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
13884 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
13885 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
13886 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
13887 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
13888 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
13889 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
13890 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
13891 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
13892 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
13893 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
13894 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
13895 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
13896 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
13897 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
13898 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
13899 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
13900 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
13901 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
13902 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
13903 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
13904 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
13905 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
13906 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
13907 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
13908 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
13909 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
13910 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
13911 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
13912 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
13913 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
13914 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
13915 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
13916 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
13917 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
13918 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
13919 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
13920 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
13921 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
13922 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
13923 .ilen = 496,
13924 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
13925 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
13926 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
13927 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
13928 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
13929 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
13930 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
13931 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
13932 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
13933 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
13934 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
13935 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
13936 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
13937 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
13938 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
13939 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
13940 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
13941 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
13942 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
13943 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
13944 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
13945 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
13946 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
13947 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
13948 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
13949 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
13950 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
13951 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
13952 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
13953 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
13954 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
13955 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
13956 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
13957 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
13958 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
13959 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
13960 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
13961 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
13962 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
13963 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
13964 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
13965 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
13966 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
13967 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
13968 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
13969 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
13970 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
13971 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
13972 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
13973 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
13974 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
13975 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
13976 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
13977 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
13978 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
13979 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
13980 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
13981 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
13982 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
13983 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
13984 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
13985 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
13986 .rlen = 496,
f44d83d1 13987 .also_non_np = 1,
3b9b8fe0
AB
13988 .np = 3,
13989 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
13990 },
13991};
13992
13993static struct cipher_testvec cast6_cbc_enc_tv_template[] = {
13994 { /* Generated from TF test vectors */
13995 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
13996 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
13997 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
13998 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
13999 .klen = 32,
14000 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14001 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14002 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14003 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14004 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14005 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14006 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14007 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14008 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14009 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14010 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14011 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14012 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14013 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14014 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14015 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14016 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14017 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14018 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14019 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14020 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14021 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14022 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14023 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14024 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14025 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14026 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14027 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14028 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14029 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14030 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14031 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14032 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14033 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14034 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14035 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14036 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14037 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14038 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14039 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14040 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14041 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14042 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14043 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14044 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14045 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14046 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14047 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14048 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14049 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14050 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14051 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14052 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14053 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14054 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14055 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14056 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14057 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14058 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14059 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14060 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14061 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14062 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14063 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14064 .ilen = 496,
14065 .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
14066 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
14067 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
14068 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
14069 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
14070 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
14071 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
14072 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
14073 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
14074 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
14075 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
14076 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
14077 "\x23\x16\x47\x72\x81\x13\x3A\x72"
14078 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
14079 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
14080 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
14081 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
14082 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
14083 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
14084 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
14085 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
14086 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
14087 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
14088 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
14089 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
14090 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
14091 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
14092 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
14093 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
14094 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
14095 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
14096 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
14097 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
14098 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
14099 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
14100 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
14101 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
14102 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
14103 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
14104 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
14105 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
14106 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
14107 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
14108 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
14109 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
14110 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
14111 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
14112 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
14113 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
14114 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
14115 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
14116 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
14117 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
14118 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
14119 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
14120 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
14121 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
14122 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
14123 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
14124 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
14125 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
14126 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
14127 .rlen = 496,
f44d83d1 14128 .also_non_np = 1,
3b9b8fe0
AB
14129 .np = 3,
14130 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
14131 },
14132};
14133
14134static struct cipher_testvec cast6_cbc_dec_tv_template[] = {
14135 { /* Generated from TF test vectors */
14136 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14137 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14138 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14139 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14140 .klen = 32,
14141 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14142 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14143 .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
14144 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
14145 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
14146 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
14147 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
14148 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
14149 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
14150 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
14151 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
14152 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
14153 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
14154 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
14155 "\x23\x16\x47\x72\x81\x13\x3A\x72"
14156 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
14157 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
14158 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
14159 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
14160 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
14161 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
14162 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
14163 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
14164 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
14165 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
14166 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
14167 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
14168 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
14169 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
14170 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
14171 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
14172 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
14173 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
14174 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
14175 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
14176 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
14177 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
14178 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
14179 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
14180 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
14181 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
14182 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
14183 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
14184 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
14185 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
14186 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
14187 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
14188 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
14189 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
14190 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
14191 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
14192 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
14193 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
14194 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
14195 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
14196 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
14197 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
14198 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
14199 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
14200 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
14201 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
14202 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
14203 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
14204 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
14205 .ilen = 496,
14206 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14207 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14208 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14209 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14210 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14211 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14212 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14213 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14214 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14215 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14216 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14217 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14218 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14219 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14220 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14221 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14222 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14223 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14224 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14225 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14226 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14227 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14228 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14229 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14230 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14231 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14232 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14233 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14234 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14235 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14236 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14237 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14238 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14239 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14240 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14241 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14242 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14243 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14244 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14245 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14246 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14247 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14248 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14249 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14250 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14251 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14252 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14253 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14254 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14255 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14256 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14257 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14258 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14259 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14260 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14261 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14262 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14263 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14264 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14265 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14266 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14267 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14268 .rlen = 496,
f44d83d1 14269 .also_non_np = 1,
3b9b8fe0
AB
14270 .np = 3,
14271 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
14272 },
14273};
14274
14275static struct cipher_testvec cast6_ctr_enc_tv_template[] = {
14276 { /* Generated from TF test vectors */
9cac3a29
JK
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",
14287 .ilen = 17,
14288 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14289 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14290 "\x57",
14291 .rlen = 17,
14292 }, { /* Generated from TF test vectors */
9b8b0405
JG
14293 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14294 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14295 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14296 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14297 .klen = 32,
14298 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14299 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14300 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14301 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14302 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14303 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14304 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14305 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14306 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14307 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14308 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14309 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14310 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14311 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14312 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14313 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14314 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14315 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14316 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14317 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14318 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14319 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14320 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14321 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14322 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14323 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14324 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14325 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14326 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14327 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14328 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14329 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14330 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14331 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14332 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14333 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14334 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14335 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14336 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14337 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14338 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14339 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14340 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14341 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14342 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14343 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14344 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14345 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14346 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14347 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14348 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14349 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14350 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14351 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14352 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14353 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14354 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14355 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14356 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14357 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14358 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14359 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14360 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14361 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14362 .ilen = 496,
14363 .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14364 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14365 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
14366 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
14367 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
14368 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
14369 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
14370 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
14371 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
14372 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
14373 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
14374 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
14375 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
14376 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
14377 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
14378 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
14379 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
14380 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
14381 "\x49\x61\x22\x52\x64\x8C\x46\x41"
14382 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
14383 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
14384 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
14385 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
14386 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
14387 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
14388 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
14389 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
14390 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
14391 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
14392 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
14393 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
14394 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
14395 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
14396 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
14397 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
14398 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
14399 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
14400 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
14401 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
14402 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
14403 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
14404 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
14405 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
14406 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
14407 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
14408 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
14409 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
14410 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
14411 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
14412 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
14413 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
14414 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
14415 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
14416 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
14417 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
14418 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
14419 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
14420 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
14421 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
14422 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
14423 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
14424 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
14425 .rlen = 496,
f44d83d1 14426 .also_non_np = 1,
3b9b8fe0
AB
14427 .np = 3,
14428 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
14429 },
14430};
14431
14432static struct cipher_testvec cast6_ctr_dec_tv_template[] = {
14433 { /* Generated from TF test vectors */
9cac3a29
JK
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",
14444 .ilen = 17,
14445 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14446 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14447 "\x3A",
14448 .rlen = 17,
14449 }, { /* Generated from TF test vectors */
9b8b0405
JG
14450 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
14451 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
14452 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
14453 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
14454 .klen = 32,
14455 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
14456 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
14457 .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
14458 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
14459 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
14460 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
14461 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
14462 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
14463 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
14464 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
14465 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
14466 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
14467 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
14468 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
14469 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
14470 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
14471 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
14472 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
14473 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
14474 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
14475 "\x49\x61\x22\x52\x64\x8C\x46\x41"
14476 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
14477 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
14478 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
14479 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
14480 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
14481 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
14482 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
14483 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
14484 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
14485 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
14486 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
14487 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
14488 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
14489 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
14490 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
14491 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
14492 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
14493 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
14494 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
14495 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
14496 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
14497 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
14498 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
14499 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
14500 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
14501 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
14502 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
14503 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
14504 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
14505 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
14506 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
14507 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
14508 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
14509 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
14510 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
14511 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
14512 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
14513 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
14514 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
14515 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
14516 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
14517 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
14518 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
14519 .ilen = 496,
14520 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
14521 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
14522 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
14523 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
14524 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
14525 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
14526 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
14527 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
14528 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
14529 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
14530 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
14531 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
14532 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
14533 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
14534 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
14535 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
14536 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
14537 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
14538 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
14539 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
14540 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
14541 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
14542 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
14543 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
14544 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
14545 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
14546 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
14547 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
14548 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
14549 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
14550 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
14551 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
14552 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
14553 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
14554 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
14555 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
14556 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
14557 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
14558 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
14559 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
14560 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
14561 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
14562 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
14563 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
14564 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
14565 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
14566 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
14567 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
14568 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
14569 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
14570 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
14571 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
14572 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
14573 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
14574 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
14575 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
14576 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
14577 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
14578 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
14579 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
14580 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
14581 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
14582 .rlen = 496,
f44d83d1 14583 .also_non_np = 1,
3b9b8fe0
AB
14584 .np = 3,
14585 .tap = { 496 - 20, 4, 16 },
9b8b0405
JG
14586 },
14587};
14588
14589static struct cipher_testvec cast6_lrw_enc_tv_template[] = {
14590 { /* Generated from TF test vectors */
14591 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14592 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14593 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14594 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14595 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14596 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14597 .klen = 48,
14598 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14599 "\x00\x00\x00\x00\x00\x00\x00\x01",
14600 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14601 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14602 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14603 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14604 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14605 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14606 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14607 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14608 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14609 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14610 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14611 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14612 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14613 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14614 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14615 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14616 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14617 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14618 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14619 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14620 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14621 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14622 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14623 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14624 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14625 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14626 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14627 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14628 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14629 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14630 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14631 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14632 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14633 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14634 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14635 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14636 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14637 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14638 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14639 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14640 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14641 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14642 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14643 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14644 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14645 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14646 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14647 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14648 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14649 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14650 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14651 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14652 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14653 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14654 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14655 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14656 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14657 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14658 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14659 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14660 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14661 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14662 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14663 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
14664 .ilen = 512,
14665 .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
14666 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
14667 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
14668 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
14669 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
14670 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
14671 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
14672 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
14673 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
14674 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
14675 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
14676 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
14677 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
14678 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
14679 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
14680 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
14681 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
14682 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
14683 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
14684 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
14685 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
14686 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
14687 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
14688 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
14689 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
14690 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
14691 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
14692 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
14693 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
14694 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
14695 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
14696 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
14697 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
14698 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
14699 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
14700 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
14701 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
14702 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
14703 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
14704 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
14705 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
14706 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
14707 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
14708 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
14709 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
14710 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
14711 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
14712 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
14713 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
14714 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
14715 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
14716 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
14717 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
14718 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
14719 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
14720 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
14721 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
14722 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
14723 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
14724 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
14725 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
14726 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
14727 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
14728 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
14729 .rlen = 512,
f44d83d1 14730 .also_non_np = 1,
3b9b8fe0
AB
14731 .np = 3,
14732 .tap = { 512 - 20, 4, 16 },
9b8b0405
JG
14733 },
14734};
14735
14736static struct cipher_testvec cast6_lrw_dec_tv_template[] = {
14737 { /* Generated from TF test vectors */
14738 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14739 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14740 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14741 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14742 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14743 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14744 .klen = 48,
14745 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14746 "\x00\x00\x00\x00\x00\x00\x00\x01",
14747 .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
14748 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
14749 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
14750 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
14751 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
14752 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
14753 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
14754 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
14755 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
14756 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
14757 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
14758 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
14759 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
14760 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
14761 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
14762 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
14763 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
14764 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
14765 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
14766 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
14767 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
14768 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
14769 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
14770 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
14771 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
14772 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
14773 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
14774 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
14775 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
14776 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
14777 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
14778 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
14779 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
14780 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
14781 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
14782 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
14783 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
14784 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
14785 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
14786 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
14787 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
14788 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
14789 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
14790 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
14791 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
14792 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
14793 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
14794 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
14795 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
14796 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
14797 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
14798 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
14799 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
14800 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
14801 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
14802 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
14803 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
14804 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
14805 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
14806 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
14807 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
14808 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
14809 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
14810 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
14811 .ilen = 512,
14812 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
14813 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14814 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14815 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14816 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14817 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14818 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14819 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14820 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14821 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14822 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14823 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14824 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14825 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14826 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14827 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14828 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14829 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14830 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14831 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14832 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14833 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14834 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14835 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14836 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14837 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14838 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14839 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14840 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14841 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14842 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14843 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14844 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14845 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14846 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14847 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14848 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14849 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14850 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14851 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14852 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14853 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14854 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14855 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14856 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14857 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14858 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14859 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14860 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14861 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14862 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14863 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14864 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14865 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14866 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14867 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14868 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14869 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14870 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14871 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14872 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14873 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14874 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14875 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
14876 .rlen = 512,
f44d83d1 14877 .also_non_np = 1,
3b9b8fe0
AB
14878 .np = 3,
14879 .tap = { 512 - 20, 4, 16 },
9b8b0405
JG
14880 },
14881};
14882
14883static struct cipher_testvec cast6_xts_enc_tv_template[] = {
14884 { /* Generated from TF test vectors */
14885 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
14886 "\x23\x53\x60\x28\x74\x71\x35\x26"
14887 "\x62\x49\x77\x57\x24\x70\x93\x69"
14888 "\x99\x59\x57\x49\x66\x96\x76\x27"
14889 "\x31\x41\x59\x26\x53\x58\x97\x93"
14890 "\x23\x84\x62\x64\x33\x83\x27\x95"
14891 "\x02\x88\x41\x97\x16\x93\x99\x37"
14892 "\x51\x05\x82\x09\x74\x94\x45\x92",
14893 .klen = 64,
14894 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
14895 "\x00\x00\x00\x00\x00\x00\x00\x00",
14896 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
14897 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14898 "\x10\x11\x12\x13\x14\x15\x16\x17"
14899 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14900 "\x20\x21\x22\x23\x24\x25\x26\x27"
14901 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14902 "\x30\x31\x32\x33\x34\x35\x36\x37"
14903 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14904 "\x40\x41\x42\x43\x44\x45\x46\x47"
14905 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14906 "\x50\x51\x52\x53\x54\x55\x56\x57"
14907 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14908 "\x60\x61\x62\x63\x64\x65\x66\x67"
14909 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14910 "\x70\x71\x72\x73\x74\x75\x76\x77"
14911 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14912 "\x80\x81\x82\x83\x84\x85\x86\x87"
14913 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14914 "\x90\x91\x92\x93\x94\x95\x96\x97"
14915 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14916 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14917 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14918 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14919 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14920 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14921 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14922 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14923 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14924 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14925 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14926 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14927 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14928 "\x00\x01\x02\x03\x04\x05\x06\x07"
14929 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14930 "\x10\x11\x12\x13\x14\x15\x16\x17"
14931 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14932 "\x20\x21\x22\x23\x24\x25\x26\x27"
14933 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14934 "\x30\x31\x32\x33\x34\x35\x36\x37"
14935 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14936 "\x40\x41\x42\x43\x44\x45\x46\x47"
14937 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14938 "\x50\x51\x52\x53\x54\x55\x56\x57"
14939 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14940 "\x60\x61\x62\x63\x64\x65\x66\x67"
14941 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14942 "\x70\x71\x72\x73\x74\x75\x76\x77"
14943 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14944 "\x80\x81\x82\x83\x84\x85\x86\x87"
14945 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14946 "\x90\x91\x92\x93\x94\x95\x96\x97"
14947 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14948 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14949 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14950 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14951 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14952 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14953 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14954 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14955 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14956 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14957 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14958 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14959 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
14960 .ilen = 512,
14961 .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
14962 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
14963 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
14964 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
14965 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
14966 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
14967 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
14968 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
14969 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
14970 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
14971 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
14972 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
14973 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
14974 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
14975 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
14976 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
14977 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
14978 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
14979 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
14980 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
14981 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
14982 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
14983 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
14984 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
14985 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
14986 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
14987 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
14988 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
14989 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
14990 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
14991 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
14992 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
14993 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
14994 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
14995 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
14996 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
14997 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
14998 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
14999 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
15000 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
15001 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
15002 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
15003 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
15004 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
15005 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
15006 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
15007 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
15008 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
15009 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
15010 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
15011 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
15012 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
15013 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
15014 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
15015 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
15016 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
15017 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
15018 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
15019 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
15020 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
15021 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
15022 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
15023 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
15024 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
15025 .rlen = 512,
f44d83d1 15026 .also_non_np = 1,
3b9b8fe0
AB
15027 .np = 3,
15028 .tap = { 512 - 20, 4, 16 },
9b8b0405
JG
15029 },
15030};
15031
15032static struct cipher_testvec cast6_xts_dec_tv_template[] = {
15033 { /* Generated from TF test vectors */
15034 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
15035 "\x23\x53\x60\x28\x74\x71\x35\x26"
15036 "\x62\x49\x77\x57\x24\x70\x93\x69"
15037 "\x99\x59\x57\x49\x66\x96\x76\x27"
15038 "\x31\x41\x59\x26\x53\x58\x97\x93"
15039 "\x23\x84\x62\x64\x33\x83\x27\x95"
15040 "\x02\x88\x41\x97\x16\x93\x99\x37"
15041 "\x51\x05\x82\x09\x74\x94\x45\x92",
15042 .klen = 64,
15043 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
15044 "\x00\x00\x00\x00\x00\x00\x00\x00",
15045 .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
15046 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
15047 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
15048 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
15049 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
15050 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
15051 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
15052 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
15053 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
15054 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
15055 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
15056 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
15057 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
15058 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
15059 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
15060 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
15061 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
15062 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
15063 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
15064 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
15065 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
15066 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
15067 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
15068 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
15069 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
15070 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
15071 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
15072 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
15073 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
15074 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
15075 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
15076 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
15077 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
15078 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
15079 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
15080 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
15081 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
15082 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
15083 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
15084 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
15085 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
15086 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
15087 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
15088 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
15089 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
15090 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
15091 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
15092 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
15093 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
15094 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
15095 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
15096 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
15097 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
15098 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
15099 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
15100 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
15101 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
15102 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
15103 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
15104 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
15105 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
15106 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
15107 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
15108 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
15109 .ilen = 512,
15110 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
15111 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15112 "\x10\x11\x12\x13\x14\x15\x16\x17"
15113 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15114 "\x20\x21\x22\x23\x24\x25\x26\x27"
15115 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15116 "\x30\x31\x32\x33\x34\x35\x36\x37"
15117 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15118 "\x40\x41\x42\x43\x44\x45\x46\x47"
15119 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15120 "\x50\x51\x52\x53\x54\x55\x56\x57"
15121 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15122 "\x60\x61\x62\x63\x64\x65\x66\x67"
15123 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15124 "\x70\x71\x72\x73\x74\x75\x76\x77"
15125 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15126 "\x80\x81\x82\x83\x84\x85\x86\x87"
15127 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15128 "\x90\x91\x92\x93\x94\x95\x96\x97"
15129 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15130 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15131 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15132 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15133 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15134 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15135 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15136 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15137 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15138 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15139 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15140 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15141 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15142 "\x00\x01\x02\x03\x04\x05\x06\x07"
15143 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15144 "\x10\x11\x12\x13\x14\x15\x16\x17"
15145 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15146 "\x20\x21\x22\x23\x24\x25\x26\x27"
15147 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15148 "\x30\x31\x32\x33\x34\x35\x36\x37"
15149 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15150 "\x40\x41\x42\x43\x44\x45\x46\x47"
15151 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15152 "\x50\x51\x52\x53\x54\x55\x56\x57"
15153 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15154 "\x60\x61\x62\x63\x64\x65\x66\x67"
15155 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15156 "\x70\x71\x72\x73\x74\x75\x76\x77"
15157 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15158 "\x80\x81\x82\x83\x84\x85\x86\x87"
15159 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15160 "\x90\x91\x92\x93\x94\x95\x96\x97"
15161 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15162 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15163 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15164 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15165 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15166 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15167 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15168 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15169 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15170 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15171 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15172 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15173 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
15174 .rlen = 512,
f44d83d1 15175 .also_non_np = 1,
3b9b8fe0
AB
15176 .np = 3,
15177 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
15178 },
15179};
15180
15181
15182/*
15183 * AES test vectors.
15184 */
c3b9e8f6
JK
15185#define AES_ENC_TEST_VECTORS 4
15186#define AES_DEC_TEST_VECTORS 4
15187#define AES_CBC_ENC_TEST_VECTORS 5
15188#define AES_CBC_DEC_TEST_VECTORS 5
bca4feb0
HG
15189#define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2
15190#define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2
5208ed2c
NL
15191#define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VEC 2
15192#define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VEC 2
15193#define HMAC_SHA1_AES_CBC_ENC_TEST_VEC 7
15194#define HMAC_SHA256_AES_CBC_ENC_TEST_VEC 7
15195#define HMAC_SHA512_AES_CBC_ENC_TEST_VEC 7
da7f033d
HX
15196#define AES_LRW_ENC_TEST_VECTORS 8
15197#define AES_LRW_DEC_TEST_VECTORS 8
5165e5b1
JW
15198#define AES_XTS_ENC_TEST_VECTORS 5
15199#define AES_XTS_DEC_TEST_VECTORS 5
c3b9e8f6
JK
15200#define AES_CTR_ENC_TEST_VECTORS 5
15201#define AES_CTR_DEC_TEST_VECTORS 5
ba0e14ac
PS
15202#define AES_OFB_ENC_TEST_VECTORS 1
15203#define AES_OFB_DEC_TEST_VECTORS 1
f7cb80f2
JW
15204#define AES_CTR_3686_ENC_TEST_VECTORS 7
15205#define AES_CTR_3686_DEC_TEST_VECTORS 6
da7f033d
HX
15206#define AES_GCM_ENC_TEST_VECTORS 9
15207#define AES_GCM_DEC_TEST_VECTORS 8
8f69b763
HX
15208#define AES_GCM_4106_ENC_TEST_VECTORS 23
15209#define AES_GCM_4106_DEC_TEST_VECTORS 23
e9b7441a
JK
15210#define AES_GCM_4543_ENC_TEST_VECTORS 1
15211#define AES_GCM_4543_DEC_TEST_VECTORS 2
4585988f 15212#define AES_CCM_ENC_TEST_VECTORS 8
da7f033d 15213#define AES_CCM_DEC_TEST_VECTORS 7
5d667322
JW
15214#define AES_CCM_4309_ENC_TEST_VECTORS 7
15215#define AES_CCM_4309_DEC_TEST_VECTORS 10
da7f033d
HX
15216
15217static struct cipher_testvec aes_enc_tv_template[] = {
15218 { /* From FIPS-197 */
15219 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15220 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15221 .klen = 16,
15222 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
15223 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15224 .ilen = 16,
15225 .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
15226 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
15227 .rlen = 16,
15228 }, {
15229 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15230 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15231 "\x10\x11\x12\x13\x14\x15\x16\x17",
15232 .klen = 24,
15233 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
15234 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15235 .ilen = 16,
15236 .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
15237 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
15238 .rlen = 16,
15239 }, {
15240 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15241 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15242 "\x10\x11\x12\x13\x14\x15\x16\x17"
15243 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15244 .klen = 32,
15245 .input = "\x00\x11\x22\x33\x44\x55\x66\x77"
15246 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15247 .ilen = 16,
15248 .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
15249 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
15250 .rlen = 16,
c3b9e8f6
JK
15251 }, { /* Generated with Crypto++ */
15252 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
15253 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
15254 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
15255 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
15256 .klen = 32,
15257 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15258 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15259 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15260 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15261 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15262 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15263 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15264 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15265 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15266 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15267 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15268 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15269 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15270 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15271 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15272 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15273 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15274 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15275 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15276 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15277 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15278 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15279 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15280 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15281 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15282 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15283 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15284 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15285 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15286 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15287 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15288 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15289 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15290 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15291 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15292 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15293 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15294 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15295 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15296 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15297 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15298 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15299 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15300 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15301 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15302 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15303 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15304 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15305 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15306 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15307 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15308 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15309 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15310 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15311 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15312 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15313 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15314 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15315 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15316 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15317 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15318 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15319 .ilen = 496,
15320 .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
15321 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
15322 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
15323 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
15324 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
15325 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
15326 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
15327 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
15328 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
15329 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
15330 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
15331 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
15332 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
15333 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
15334 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
15335 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
15336 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
15337 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
15338 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
15339 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
15340 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
15341 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
15342 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
15343 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
15344 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
15345 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
15346 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
15347 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
15348 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
15349 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
15350 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
15351 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
15352 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
15353 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
15354 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
15355 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
15356 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
15357 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
15358 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
15359 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
15360 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
15361 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
15362 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
15363 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
15364 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
15365 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
15366 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
15367 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
15368 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
15369 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
15370 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
15371 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
15372 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
15373 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
15374 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
15375 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
15376 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
15377 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
15378 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
15379 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
15380 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
15381 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
15382 .rlen = 496,
15383 .also_non_np = 1,
3b9b8fe0
AB
15384 .np = 3,
15385 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
15386 },
15387};
15388
15389static struct cipher_testvec aes_dec_tv_template[] = {
15390 { /* From FIPS-197 */
15391 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15392 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15393 .klen = 16,
15394 .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
15395 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
15396 .ilen = 16,
15397 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15398 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15399 .rlen = 16,
15400 }, {
15401 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15402 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15403 "\x10\x11\x12\x13\x14\x15\x16\x17",
15404 .klen = 24,
15405 .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
15406 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
15407 .ilen = 16,
15408 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15409 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15410 .rlen = 16,
15411 }, {
15412 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15413 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15414 "\x10\x11\x12\x13\x14\x15\x16\x17"
15415 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15416 .klen = 32,
15417 .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
15418 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
15419 .ilen = 16,
15420 .result = "\x00\x11\x22\x33\x44\x55\x66\x77"
15421 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
15422 .rlen = 16,
c3b9e8f6
JK
15423 }, { /* Generated with Crypto++ */
15424 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
15425 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
15426 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
15427 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
15428 .klen = 32,
15429 .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
15430 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
15431 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
15432 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
15433 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
15434 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
15435 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
15436 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
15437 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
15438 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
15439 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
15440 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
15441 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
15442 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
15443 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
15444 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
15445 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
15446 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
15447 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
15448 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
15449 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
15450 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
15451 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
15452 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
15453 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
15454 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
15455 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
15456 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
15457 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
15458 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
15459 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
15460 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
15461 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
15462 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
15463 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
15464 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
15465 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
15466 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
15467 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
15468 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
15469 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
15470 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
15471 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
15472 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
15473 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
15474 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
15475 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
15476 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
15477 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
15478 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
15479 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
15480 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
15481 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
15482 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
15483 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
15484 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
15485 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
15486 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
15487 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
15488 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
15489 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
15490 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
15491 .ilen = 496,
15492 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15493 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15494 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15495 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15496 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15497 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15498 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15499 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15500 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15501 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15502 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15503 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15504 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15505 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15506 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15507 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15508 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15509 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15510 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15511 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15512 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15513 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15514 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15515 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15516 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15517 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15518 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15519 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15520 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15521 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15522 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15523 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15524 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15525 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15526 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15527 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15528 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15529 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15530 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15531 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15532 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15533 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15534 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15535 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15536 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15537 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15538 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15539 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15540 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15541 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15542 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15543 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15544 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15545 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15546 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15547 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15548 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15549 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15550 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15551 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15552 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15553 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15554 .rlen = 496,
15555 .also_non_np = 1,
3b9b8fe0
AB
15556 .np = 3,
15557 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
15558 },
15559};
15560
15561static struct cipher_testvec aes_cbc_enc_tv_template[] = {
15562 { /* From RFC 3602 */
15563 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15564 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15565 .klen = 16,
15566 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15567 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15568 .input = "Single block msg",
15569 .ilen = 16,
15570 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15571 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
15572 .rlen = 16,
0d8dc966
LC
15573 .also_non_np = 1,
15574 .np = 8,
15575 .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
da7f033d
HX
15576 }, {
15577 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15578 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15579 .klen = 16,
15580 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15581 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15582 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
15583 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15584 "\x10\x11\x12\x13\x14\x15\x16\x17"
15585 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15586 .ilen = 32,
15587 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15588 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15589 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15590 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
15591 .rlen = 32,
15592 }, { /* From NIST SP800-38A */
15593 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15594 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15595 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15596 .klen = 24,
15597 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15598 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15599 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15600 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15601 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15602 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15603 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15604 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15605 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15606 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15607 .ilen = 64,
15608 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15609 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15610 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15611 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15612 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15613 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15614 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15615 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
15616 .rlen = 64,
15617 }, {
15618 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15619 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15620 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15621 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15622 .klen = 32,
15623 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15624 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15625 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15626 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15627 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15628 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15629 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15630 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15631 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15632 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15633 .ilen = 64,
15634 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15635 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15636 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15637 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15638 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15639 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15640 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15641 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
15642 .rlen = 64,
c3b9e8f6
JK
15643 }, { /* Generated with Crypto++ */
15644 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15645 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15646 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15647 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15648 .klen = 32,
15649 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15650 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
15651 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15652 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15653 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15654 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15655 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15656 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15657 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15658 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15659 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15660 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15661 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15662 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15663 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15664 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15665 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15666 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15667 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15668 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15669 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15670 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15671 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15672 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15673 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15674 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15675 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15676 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15677 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15678 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15679 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15680 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15681 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15682 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15683 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15684 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15685 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15686 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15687 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15688 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15689 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15690 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15691 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15692 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15693 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15694 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15695 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15696 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15697 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15698 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15699 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15700 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15701 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15702 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15703 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15704 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15705 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15706 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15707 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15708 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15709 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15710 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15711 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15712 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15713 .ilen = 496,
15714 .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
15715 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
15716 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
15717 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
15718 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
15719 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
15720 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
15721 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
15722 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
15723 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
15724 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
15725 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
15726 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
15727 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
15728 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
15729 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
15730 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
15731 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
15732 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
15733 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
15734 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
15735 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
15736 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
15737 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
15738 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
15739 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
15740 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
15741 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
15742 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
15743 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
15744 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
15745 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
15746 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
15747 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
15748 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
15749 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
15750 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
15751 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
15752 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
15753 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
15754 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
15755 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
15756 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
15757 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
15758 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
15759 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
15760 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
15761 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
15762 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
15763 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
15764 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
15765 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
15766 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
15767 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
15768 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
15769 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
15770 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
15771 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
15772 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
15773 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
15774 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
15775 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
15776 .rlen = 496,
15777 .also_non_np = 1,
3b9b8fe0
AB
15778 .np = 3,
15779 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
15780 },
15781};
15782
15783static struct cipher_testvec aes_cbc_dec_tv_template[] = {
15784 { /* From RFC 3602 */
15785 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
15786 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
15787 .klen = 16,
15788 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
15789 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
15790 .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
15791 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
15792 .ilen = 16,
15793 .result = "Single block msg",
15794 .rlen = 16,
0d8dc966
LC
15795 .also_non_np = 1,
15796 .np = 8,
15797 .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
da7f033d
HX
15798 }, {
15799 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
15800 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
15801 .klen = 16,
15802 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
15803 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
15804 .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
15805 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
15806 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
15807 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
15808 .ilen = 32,
15809 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
15810 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15811 "\x10\x11\x12\x13\x14\x15\x16\x17"
15812 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
15813 .rlen = 32,
15814 }, { /* From NIST SP800-38A */
15815 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15816 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15817 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15818 .klen = 24,
15819 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15820 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15821 .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
15822 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
15823 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
15824 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
15825 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
15826 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
15827 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
15828 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
15829 .ilen = 64,
15830 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15831 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15832 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15833 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15834 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15835 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15836 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15837 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15838 .rlen = 64,
15839 }, {
15840 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15841 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15842 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15843 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15844 .klen = 32,
15845 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
15846 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
15847 .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
15848 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
15849 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
15850 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
15851 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
15852 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
15853 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
15854 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
15855 .ilen = 64,
15856 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
15857 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15858 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15859 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15860 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15861 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15862 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15863 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
15864 .rlen = 64,
c3b9e8f6
JK
15865 }, { /* Generated with Crypto++ */
15866 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15867 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15868 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15869 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15870 .klen = 32,
15871 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15872 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
15873 .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
15874 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
15875 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
15876 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
15877 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
15878 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
15879 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
15880 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
15881 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
15882 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
15883 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
15884 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
15885 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
15886 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
15887 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
15888 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
15889 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
15890 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
15891 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
15892 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
15893 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
15894 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
15895 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
15896 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
15897 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
15898 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
15899 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
15900 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
15901 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
15902 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
15903 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
15904 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
15905 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
15906 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
15907 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
15908 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
15909 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
15910 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
15911 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
15912 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
15913 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
15914 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
15915 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
15916 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
15917 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
15918 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
15919 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
15920 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
15921 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
15922 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
15923 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
15924 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
15925 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
15926 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
15927 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
15928 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
15929 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
15930 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
15931 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
15932 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
15933 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
15934 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
15935 .ilen = 496,
15936 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
15937 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15938 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15939 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15940 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15941 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15942 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15943 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15944 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15945 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15946 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15947 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15948 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15949 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15950 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15951 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15952 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15953 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15954 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15955 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15956 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15957 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15958 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15959 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15960 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15961 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15962 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15963 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15964 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15965 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15966 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15967 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15968 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15969 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15970 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15971 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15972 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15973 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15974 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15975 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15976 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15977 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15978 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15979 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15980 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15981 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15982 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15983 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15984 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15985 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15986 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15987 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15988 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15989 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15990 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15991 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15992 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15993 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15994 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15995 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15996 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15997 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
15998 .rlen = 496,
15999 .also_non_np = 1,
3b9b8fe0
AB
16000 .np = 3,
16001 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
16002 },
16003};
16004
bca4feb0
HG
16005static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
16006 { /* Input data from RFC 2410 Case 1 */
16007#ifdef __LITTLE_ENDIAN
16008 .key = "\x08\x00" /* rta length */
16009 "\x01\x00" /* rta type */
16010#else
16011 .key = "\x00\x08" /* rta length */
16012 "\x00\x01" /* rta type */
16013#endif
16014 "\x00\x00\x00\x00" /* enc key length */
16015 "\x00\x00\x00\x00\x00\x00\x00\x00"
16016 "\x00\x00\x00\x00\x00\x00\x00\x00",
16017 .klen = 8 + 16 + 0,
16018 .iv = "",
16019 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16020 .ilen = 8,
16021 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16022 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
16023 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
16024 .rlen = 8 + 16,
16025 }, { /* Input data from RFC 2410 Case 2 */
16026#ifdef __LITTLE_ENDIAN
16027 .key = "\x08\x00" /* rta length */
16028 "\x01\x00" /* rta type */
16029#else
16030 .key = "\x00\x08" /* rta length */
16031 "\x00\x01" /* rta type */
16032#endif
16033 "\x00\x00\x00\x00" /* enc key length */
16034 "\x00\x00\x00\x00\x00\x00\x00\x00"
16035 "\x00\x00\x00\x00\x00\x00\x00\x00",
16036 .klen = 8 + 16 + 0,
16037 .iv = "",
16038 .input = "Network Security People Have A Strange Sense Of Humor",
16039 .ilen = 53,
16040 .result = "Network Security People Have A Strange Sense Of Humor"
16041 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
16042 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
16043 .rlen = 53 + 16,
16044 },
16045};
16046
16047static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
16048 {
16049#ifdef __LITTLE_ENDIAN
16050 .key = "\x08\x00" /* rta length */
16051 "\x01\x00" /* rta type */
16052#else
16053 .key = "\x00\x08" /* rta length */
16054 "\x00\x01" /* rta type */
16055#endif
16056 "\x00\x00\x00\x00" /* enc key length */
16057 "\x00\x00\x00\x00\x00\x00\x00\x00"
16058 "\x00\x00\x00\x00\x00\x00\x00\x00",
16059 .klen = 8 + 16 + 0,
16060 .iv = "",
16061 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16062 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
16063 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
16064 .ilen = 8 + 16,
16065 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16066 .rlen = 8,
16067 }, {
16068#ifdef __LITTLE_ENDIAN
16069 .key = "\x08\x00" /* rta length */
16070 "\x01\x00" /* rta type */
16071#else
16072 .key = "\x00\x08" /* rta length */
16073 "\x00\x01" /* rta type */
16074#endif
16075 "\x00\x00\x00\x00" /* enc key length */
16076 "\x00\x00\x00\x00\x00\x00\x00\x00"
16077 "\x00\x00\x00\x00\x00\x00\x00\x00",
16078 .klen = 8 + 16 + 0,
16079 .iv = "",
16080 .input = "Network Security People Have A Strange Sense Of Humor"
16081 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
16082 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
16083 .ilen = 53 + 16,
16084 .result = "Network Security People Have A Strange Sense Of Humor",
16085 .rlen = 53,
16086 },
16087};
16088
5208ed2c 16089static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
e46e9a46
HG
16090 { /* RFC 3602 Case 1 */
16091#ifdef __LITTLE_ENDIAN
16092 .key = "\x08\x00" /* rta length */
16093 "\x01\x00" /* rta type */
16094#else
16095 .key = "\x00\x08" /* rta length */
16096 "\x00\x01" /* rta type */
16097#endif
16098 "\x00\x00\x00\x10" /* enc key length */
16099 "\x00\x00\x00\x00\x00\x00\x00\x00"
16100 "\x00\x00\x00\x00\x00\x00\x00\x00"
16101 "\x00\x00\x00\x00"
16102 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16103 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16104 .klen = 8 + 20 + 16,
16105 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16106 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
7079ce62
HX
16107 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16108 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16109 .alen = 16,
e46e9a46
HG
16110 .input = "Single block msg",
16111 .ilen = 16,
16112 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16113 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16114 "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
16115 "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
16116 "\x03\x71\xa2\x06",
16117 .rlen = 16 + 20,
16118 }, { /* RFC 3602 Case 2 */
16119#ifdef __LITTLE_ENDIAN
16120 .key = "\x08\x00" /* rta length */
16121 "\x01\x00" /* rta type */
16122#else
16123 .key = "\x00\x08" /* rta length */
16124 "\x00\x01" /* rta type */
16125#endif
16126 "\x00\x00\x00\x10" /* enc key length */
16127 "\x20\x21\x22\x23\x24\x25\x26\x27"
16128 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16129 "\x30\x31\x32\x33"
16130 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16131 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16132 .klen = 8 + 20 + 16,
16133 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16134 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
7079ce62
HX
16135 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16136 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16137 .alen = 16,
e46e9a46
HG
16138 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16139 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16140 "\x10\x11\x12\x13\x14\x15\x16\x17"
16141 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16142 .ilen = 32,
16143 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16144 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16145 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16146 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16147 "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
16148 "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
16149 "\x65\x39\xf8\xde",
16150 .rlen = 32 + 20,
16151 }, { /* RFC 3602 Case 3 */
16152#ifdef __LITTLE_ENDIAN
16153 .key = "\x08\x00" /* rta length */
16154 "\x01\x00" /* rta type */
16155#else
16156 .key = "\x00\x08" /* rta length */
16157 "\x00\x01" /* rta type */
16158#endif
16159 "\x00\x00\x00\x10" /* enc key length */
16160 "\x11\x22\x33\x44\x55\x66\x77\x88"
16161 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16162 "\x22\x33\x44\x55"
16163 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16164 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16165 .klen = 8 + 20 + 16,
16166 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16167 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
7079ce62
HX
16168 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16169 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16170 .alen = 16,
e46e9a46
HG
16171 .input = "This is a 48-byte message (exactly 3 AES blocks)",
16172 .ilen = 48,
16173 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16174 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16175 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16176 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16177 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16178 "\x85\x79\x69\x5d\x83\xba\x26\x84"
16179 "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
16180 "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
16181 "\x8d\x62\xf2\x1e",
16182 .rlen = 48 + 20,
16183 }, { /* RFC 3602 Case 4 */
16184#ifdef __LITTLE_ENDIAN
16185 .key = "\x08\x00" /* rta length */
16186 "\x01\x00" /* rta type */
16187#else
16188 .key = "\x00\x08" /* rta length */
16189 "\x00\x01" /* rta type */
16190#endif
16191 "\x00\x00\x00\x10" /* enc key length */
16192 "\x11\x22\x33\x44\x55\x66\x77\x88"
16193 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16194 "\x22\x33\x44\x55"
16195 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16196 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16197 .klen = 8 + 20 + 16,
16198 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16199 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
7079ce62
HX
16200 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16201 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16202 .alen = 16,
e46e9a46
HG
16203 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16204 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16205 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16206 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16207 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16208 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16209 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16210 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16211 .ilen = 64,
16212 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16213 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16214 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16215 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16216 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16217 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16218 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16219 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16220 "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
16221 "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
16222 "\x1d\xbe\xc6\xe9",
16223 .rlen = 64 + 20,
16224 }, { /* RFC 3602 Case 5 */
16225#ifdef __LITTLE_ENDIAN
16226 .key = "\x08\x00" /* rta length */
16227 "\x01\x00" /* rta type */
16228#else
16229 .key = "\x00\x08" /* rta length */
16230 "\x00\x01" /* rta type */
16231#endif
16232 "\x00\x00\x00\x10" /* enc key length */
16233 "\x11\x22\x33\x44\x55\x66\x77\x88"
16234 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16235 "\x22\x33\x44\x55"
16236 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16237 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16238 .klen = 8 + 20 + 16,
16239 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16240 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
7079ce62
HX
16241 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
16242 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16243 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16244 .alen = 24,
e46e9a46
HG
16245 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16246 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16247 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16248 "\x10\x11\x12\x13\x14\x15\x16\x17"
16249 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16250 "\x20\x21\x22\x23\x24\x25\x26\x27"
16251 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16252 "\x30\x31\x32\x33\x34\x35\x36\x37"
16253 "\x01\x02\x03\x04\x05\x06\x07\x08"
16254 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16255 .ilen = 80,
16256 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16257 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16258 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16259 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16260 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16261 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16262 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16263 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16264 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16265 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16266 "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
16267 "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
16268 "\x85\xe1\x59\xf7",
16269 .rlen = 80 + 20,
16270 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16271#ifdef __LITTLE_ENDIAN
16272 .key = "\x08\x00" /* rta length */
16273 "\x01\x00" /* rta type */
16274#else
16275 .key = "\x00\x08" /* rta length */
16276 "\x00\x01" /* rta type */
16277#endif
16278 "\x00\x00\x00\x18" /* enc key length */
16279 "\x11\x22\x33\x44\x55\x66\x77\x88"
16280 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16281 "\x22\x33\x44\x55"
16282 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16283 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16284 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16285 .klen = 8 + 20 + 24,
16286 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16287 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
7079ce62
HX
16288 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16289 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16290 .alen = 16,
e46e9a46
HG
16291 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16292 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16293 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16294 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16295 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16296 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16297 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16298 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16299 .ilen = 64,
16300 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
16301 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
16302 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
16303 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
16304 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
16305 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
16306 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
16307 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
16308 "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
16309 "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
16310 "\x47\x4c\xfc\x36",
16311 .rlen = 64 + 20,
16312 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
16313#ifdef __LITTLE_ENDIAN
16314 .key = "\x08\x00" /* rta length */
16315 "\x01\x00" /* rta type */
16316#else
16317 .key = "\x00\x08" /* rta length */
16318 "\x00\x01" /* rta type */
16319#endif
16320 "\x00\x00\x00\x20" /* enc key length */
16321 "\x11\x22\x33\x44\x55\x66\x77\x88"
16322 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16323 "\x22\x33\x44\x55"
16324 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
16325 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
16326 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
16327 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
16328 .klen = 8 + 20 + 32,
16329 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16330 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
7079ce62
HX
16331 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16332 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16333 .alen = 16,
e46e9a46
HG
16334 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16335 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16336 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16337 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16338 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16339 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16340 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16341 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16342 .ilen = 64,
16343 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
16344 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
16345 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
16346 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
16347 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
16348 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
16349 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
16350 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
16351 "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
16352 "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
16353 "\x51\xee\xd6\x4e",
16354 .rlen = 64 + 20,
16355 },
16356};
16357
5208ed2c 16358static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
bca4feb0
HG
16359 { /* Input data from RFC 2410 Case 1 */
16360#ifdef __LITTLE_ENDIAN
16361 .key = "\x08\x00" /* rta length */
16362 "\x01\x00" /* rta type */
16363#else
16364 .key = "\x00\x08" /* rta length */
16365 "\x00\x01" /* rta type */
16366#endif
16367 "\x00\x00\x00\x00" /* enc key length */
16368 "\x00\x00\x00\x00\x00\x00\x00\x00"
16369 "\x00\x00\x00\x00\x00\x00\x00\x00"
16370 "\x00\x00\x00\x00",
16371 .klen = 8 + 20 + 0,
16372 .iv = "",
16373 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16374 .ilen = 8,
16375 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16376 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
16377 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
16378 "\x8c\x5e\xe4\x08",
16379 .rlen = 8 + 20,
16380 }, { /* Input data from RFC 2410 Case 2 */
16381#ifdef __LITTLE_ENDIAN
16382 .key = "\x08\x00" /* rta length */
16383 "\x01\x00" /* rta type */
16384#else
16385 .key = "\x00\x08" /* rta length */
16386 "\x00\x01" /* rta type */
16387#endif
16388 "\x00\x00\x00\x00" /* enc key length */
16389 "\x00\x00\x00\x00\x00\x00\x00\x00"
16390 "\x00\x00\x00\x00\x00\x00\x00\x00"
16391 "\x00\x00\x00\x00",
16392 .klen = 8 + 20 + 0,
16393 .iv = "",
16394 .input = "Network Security People Have A Strange Sense Of Humor",
16395 .ilen = 53,
16396 .result = "Network Security People Have A Strange Sense Of Humor"
16397 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
16398 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
16399 "\x91\x56\xe4\xd6",
16400 .rlen = 53 + 20,
16401 },
16402};
16403
5208ed2c 16404static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
bca4feb0
HG
16405 {
16406#ifdef __LITTLE_ENDIAN
16407 .key = "\x08\x00" /* rta length */
16408 "\x01\x00" /* rta type */
16409#else
16410 .key = "\x00\x08" /* rta length */
16411 "\x00\x01" /* rta type */
16412#endif
16413 "\x00\x00\x00\x00" /* enc key length */
16414 "\x00\x00\x00\x00\x00\x00\x00\x00"
16415 "\x00\x00\x00\x00\x00\x00\x00\x00"
16416 "\x00\x00\x00\x00",
16417 .klen = 8 + 20 + 0,
16418 .iv = "",
16419 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
16420 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
16421 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
16422 "\x8c\x5e\xe4\x08",
16423 .ilen = 8 + 20,
16424 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
16425 .rlen = 8,
16426 }, {
16427#ifdef __LITTLE_ENDIAN
16428 .key = "\x08\x00" /* rta length */
16429 "\x01\x00" /* rta type */
16430#else
16431 .key = "\x00\x08" /* rta length */
16432 "\x00\x01" /* rta type */
16433#endif
16434 "\x00\x00\x00\x00" /* enc key length */
16435 "\x00\x00\x00\x00\x00\x00\x00\x00"
16436 "\x00\x00\x00\x00\x00\x00\x00\x00"
16437 "\x00\x00\x00\x00",
16438 .klen = 8 + 20 + 0,
16439 .iv = "",
16440 .input = "Network Security People Have A Strange Sense Of Humor"
16441 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
16442 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
16443 "\x91\x56\xe4\xd6",
16444 .ilen = 53 + 20,
16445 .result = "Network Security People Have A Strange Sense Of Humor",
16446 .rlen = 53,
16447 },
16448};
16449
5208ed2c 16450static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
e46e9a46
HG
16451 { /* RFC 3602 Case 1 */
16452#ifdef __LITTLE_ENDIAN
16453 .key = "\x08\x00" /* rta length */
16454 "\x01\x00" /* rta type */
16455#else
16456 .key = "\x00\x08" /* rta length */
16457 "\x00\x01" /* rta type */
16458#endif
16459 "\x00\x00\x00\x10" /* enc key length */
16460 "\x00\x00\x00\x00\x00\x00\x00\x00"
16461 "\x00\x00\x00\x00\x00\x00\x00\x00"
16462 "\x00\x00\x00\x00\x00\x00\x00\x00"
16463 "\x00\x00\x00\x00\x00\x00\x00\x00"
16464 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16465 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16466 .klen = 8 + 32 + 16,
16467 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16468 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
7079ce62
HX
16469 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16470 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16471 .alen = 16,
e46e9a46
HG
16472 .input = "Single block msg",
16473 .ilen = 16,
16474 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16475 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16476 "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
16477 "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
16478 "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
16479 "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
16480 .rlen = 16 + 32,
16481 }, { /* RFC 3602 Case 2 */
16482#ifdef __LITTLE_ENDIAN
16483 .key = "\x08\x00" /* rta length */
16484 "\x01\x00" /* rta type */
16485#else
16486 .key = "\x00\x08" /* rta length */
16487 "\x00\x01" /* rta type */
16488#endif
16489 "\x00\x00\x00\x10" /* enc key length */
16490 "\x20\x21\x22\x23\x24\x25\x26\x27"
16491 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16492 "\x30\x31\x32\x33\x34\x35\x36\x37"
16493 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16494 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16495 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16496 .klen = 8 + 32 + 16,
16497 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16498 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
7079ce62
HX
16499 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16500 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16501 .alen = 16,
e46e9a46
HG
16502 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16503 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16504 "\x10\x11\x12\x13\x14\x15\x16\x17"
16505 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16506 .ilen = 32,
16507 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16508 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16509 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16510 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16511 "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
16512 "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
16513 "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
16514 "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
16515 .rlen = 32 + 32,
16516 }, { /* RFC 3602 Case 3 */
16517#ifdef __LITTLE_ENDIAN
16518 .key = "\x08\x00" /* rta length */
16519 "\x01\x00" /* rta type */
16520#else
16521 .key = "\x00\x08" /* rta length */
16522 "\x00\x01" /* rta type */
16523#endif
16524 "\x00\x00\x00\x10" /* enc key length */
16525 "\x11\x22\x33\x44\x55\x66\x77\x88"
16526 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16527 "\x22\x33\x44\x55\x66\x77\x88\x99"
16528 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16529 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16530 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16531 .klen = 8 + 32 + 16,
16532 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16533 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
7079ce62
HX
16534 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16535 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16536 .alen = 16,
e46e9a46
HG
16537 .input = "This is a 48-byte message (exactly 3 AES blocks)",
16538 .ilen = 48,
16539 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16540 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16541 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16542 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16543 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16544 "\x85\x79\x69\x5d\x83\xba\x26\x84"
16545 "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
16546 "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
16547 "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
16548 "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
16549 .rlen = 48 + 32,
16550 }, { /* RFC 3602 Case 4 */
16551#ifdef __LITTLE_ENDIAN
16552 .key = "\x08\x00" /* rta length */
16553 "\x01\x00" /* rta type */
16554#else
16555 .key = "\x00\x08" /* rta length */
16556 "\x00\x01" /* rta type */
16557#endif
16558 "\x00\x00\x00\x10" /* enc key length */
16559 "\x11\x22\x33\x44\x55\x66\x77\x88"
16560 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16561 "\x22\x33\x44\x55\x66\x77\x88\x99"
16562 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16563 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16564 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16565 .klen = 8 + 32 + 16,
16566 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16567 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
7079ce62
HX
16568 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16569 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16570 .alen = 16,
e46e9a46
HG
16571 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16572 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16573 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16574 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16575 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16576 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16577 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16578 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16579 .ilen = 64,
16580 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16581 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16582 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16583 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16584 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16585 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16586 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16587 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16588 "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
16589 "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
16590 "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
16591 "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
16592 .rlen = 64 + 32,
16593 }, { /* RFC 3602 Case 5 */
16594#ifdef __LITTLE_ENDIAN
16595 .key = "\x08\x00" /* rta length */
16596 "\x01\x00" /* rta type */
16597#else
16598 .key = "\x00\x08" /* rta length */
16599 "\x00\x01" /* rta type */
16600#endif
16601 "\x00\x00\x00\x10" /* enc key length */
16602 "\x11\x22\x33\x44\x55\x66\x77\x88"
16603 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16604 "\x22\x33\x44\x55\x66\x77\x88\x99"
16605 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16606 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16607 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16608 .klen = 8 + 32 + 16,
16609 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16610 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
7079ce62
HX
16611 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
16612 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16613 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16614 .alen = 24,
e46e9a46
HG
16615 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16616 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16617 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16618 "\x10\x11\x12\x13\x14\x15\x16\x17"
16619 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16620 "\x20\x21\x22\x23\x24\x25\x26\x27"
16621 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16622 "\x30\x31\x32\x33\x34\x35\x36\x37"
16623 "\x01\x02\x03\x04\x05\x06\x07\x08"
16624 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16625 .ilen = 80,
16626 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16627 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16628 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16629 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16630 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16631 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16632 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16633 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16634 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16635 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16636 "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
16637 "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
16638 "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
16639 "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
16640 .rlen = 80 + 32,
16641 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16642#ifdef __LITTLE_ENDIAN
16643 .key = "\x08\x00" /* rta length */
16644 "\x01\x00" /* rta type */
16645#else
16646 .key = "\x00\x08" /* rta length */
16647 "\x00\x01" /* rta type */
16648#endif
16649 "\x00\x00\x00\x18" /* enc key length */
16650 "\x11\x22\x33\x44\x55\x66\x77\x88"
16651 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16652 "\x22\x33\x44\x55\x66\x77\x88\x99"
16653 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16654 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16655 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16656 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16657 .klen = 8 + 32 + 24,
16658 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16659 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
7079ce62
HX
16660 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16661 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16662 .alen = 16,
e46e9a46
HG
16663 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16664 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16665 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16666 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16667 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16668 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16669 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16670 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16671 .ilen = 64,
16672 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
16673 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
16674 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
16675 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
16676 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
16677 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
16678 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
16679 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
16680 "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
16681 "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
16682 "\xca\x71\x85\x93\xf7\x85\x55\x8b"
16683 "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
16684 .rlen = 64 + 32,
16685 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
16686#ifdef __LITTLE_ENDIAN
16687 .key = "\x08\x00" /* rta length */
16688 "\x01\x00" /* rta type */
16689#else
16690 .key = "\x00\x08" /* rta length */
16691 "\x00\x01" /* rta type */
16692#endif
16693 "\x00\x00\x00\x20" /* enc key length */
16694 "\x11\x22\x33\x44\x55\x66\x77\x88"
16695 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16696 "\x22\x33\x44\x55\x66\x77\x88\x99"
16697 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16698 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
16699 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
16700 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
16701 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
16702 .klen = 8 + 32 + 32,
16703 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16704 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
7079ce62
HX
16705 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16706 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16707 .alen = 16,
e46e9a46
HG
16708 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16709 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16710 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16711 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16712 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16713 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16714 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16715 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16716 .ilen = 64,
16717 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
16718 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
16719 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
16720 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
16721 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
16722 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
16723 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
16724 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
16725 "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
16726 "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
16727 "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
16728 "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
16729 .rlen = 64 + 32,
16730 },
16731};
16732
5208ed2c 16733static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
e46e9a46
HG
16734 { /* RFC 3602 Case 1 */
16735#ifdef __LITTLE_ENDIAN
16736 .key = "\x08\x00" /* rta length */
16737 "\x01\x00" /* rta type */
16738#else
16739 .key = "\x00\x08" /* rta length */
16740 "\x00\x01" /* rta type */
16741#endif
16742 "\x00\x00\x00\x10" /* enc key length */
16743 "\x00\x00\x00\x00\x00\x00\x00\x00"
16744 "\x00\x00\x00\x00\x00\x00\x00\x00"
16745 "\x00\x00\x00\x00\x00\x00\x00\x00"
16746 "\x00\x00\x00\x00\x00\x00\x00\x00"
16747 "\x00\x00\x00\x00\x00\x00\x00\x00"
16748 "\x00\x00\x00\x00\x00\x00\x00\x00"
16749 "\x00\x00\x00\x00\x00\x00\x00\x00"
16750 "\x00\x00\x00\x00\x00\x00\x00\x00"
16751 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
16752 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
16753 .klen = 8 + 64 + 16,
16754 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16755 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
7079ce62
HX
16756 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
16757 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
16758 .alen = 16,
e46e9a46
HG
16759 .input = "Single block msg",
16760 .ilen = 16,
16761 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
16762 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
16763 "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
16764 "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
16765 "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
16766 "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
16767 "\xec\xbd\x50\x08\x07\x64\x1a\x49"
16768 "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
16769 "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
16770 "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
16771 .rlen = 16 + 64,
16772 }, { /* RFC 3602 Case 2 */
16773#ifdef __LITTLE_ENDIAN
16774 .key = "\x08\x00" /* rta length */
16775 "\x01\x00" /* rta type */
16776#else
16777 .key = "\x00\x08" /* rta length */
16778 "\x00\x01" /* rta type */
16779#endif
16780 "\x00\x00\x00\x10" /* enc key length */
16781 "\x20\x21\x22\x23\x24\x25\x26\x27"
16782 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16783 "\x30\x31\x32\x33\x34\x35\x36\x37"
16784 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
16785 "\x40\x41\x42\x43\x44\x45\x46\x47"
16786 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
16787 "\x50\x51\x52\x53\x54\x55\x56\x57"
16788 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
16789 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
16790 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
16791 .klen = 8 + 64 + 16,
16792 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16793 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
7079ce62
HX
16794 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
16795 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
16796 .alen = 16,
e46e9a46
HG
16797 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
16798 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16799 "\x10\x11\x12\x13\x14\x15\x16\x17"
16800 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
16801 .ilen = 32,
16802 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
16803 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
16804 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
16805 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
16806 "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
16807 "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
16808 "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
16809 "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
16810 "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
16811 "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
16812 "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
16813 "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
16814 .rlen = 32 + 64,
16815 }, { /* RFC 3602 Case 3 */
16816#ifdef __LITTLE_ENDIAN
16817 .key = "\x08\x00" /* rta length */
16818 "\x01\x00" /* rta type */
16819#else
16820 .key = "\x00\x08" /* rta length */
16821 "\x00\x01" /* rta type */
16822#endif
16823 "\x00\x00\x00\x10" /* enc key length */
16824 "\x11\x22\x33\x44\x55\x66\x77\x88"
16825 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16826 "\x22\x33\x44\x55\x66\x77\x88\x99"
16827 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16828 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16829 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16830 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16831 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16832 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
16833 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
16834 .klen = 8 + 64 + 16,
16835 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16836 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
7079ce62
HX
16837 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
16838 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
16839 .alen = 16,
e46e9a46
HG
16840 .input = "This is a 48-byte message (exactly 3 AES blocks)",
16841 .ilen = 48,
16842 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
16843 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
16844 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
16845 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
16846 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
16847 "\x85\x79\x69\x5d\x83\xba\x26\x84"
16848 "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
16849 "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
16850 "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
16851 "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
16852 "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
16853 "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
16854 "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
16855 "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
16856 .rlen = 48 + 64,
16857 }, { /* RFC 3602 Case 4 */
16858#ifdef __LITTLE_ENDIAN
16859 .key = "\x08\x00" /* rta length */
16860 "\x01\x00" /* rta type */
16861#else
16862 .key = "\x00\x08" /* rta length */
16863 "\x00\x01" /* rta type */
16864#endif
16865 "\x00\x00\x00\x10" /* enc key length */
16866 "\x11\x22\x33\x44\x55\x66\x77\x88"
16867 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16868 "\x22\x33\x44\x55\x66\x77\x88\x99"
16869 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16870 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16871 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16872 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16873 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16874 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
16875 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
16876 .klen = 8 + 64 + 16,
16877 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16878 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
7079ce62
HX
16879 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
16880 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
16881 .alen = 16,
e46e9a46
HG
16882 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
16883 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
16884 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
16885 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
16886 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
16887 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
16888 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
16889 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
16890 .ilen = 64,
16891 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
16892 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
16893 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
16894 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
16895 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
16896 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
16897 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
16898 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
16899 "\x82\xcd\x42\x28\x21\x20\x15\xcc"
16900 "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
16901 "\x61\x32\x82\x85\xcf\x27\xed\xb4"
16902 "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
16903 "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
16904 "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
16905 "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
16906 "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
16907 .rlen = 64 + 64,
16908 }, { /* RFC 3602 Case 5 */
16909#ifdef __LITTLE_ENDIAN
16910 .key = "\x08\x00" /* rta length */
16911 "\x01\x00" /* rta type */
16912#else
16913 .key = "\x00\x08" /* rta length */
16914 "\x00\x01" /* rta type */
16915#endif
16916 "\x00\x00\x00\x10" /* enc key length */
16917 "\x11\x22\x33\x44\x55\x66\x77\x88"
16918 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16919 "\x22\x33\x44\x55\x66\x77\x88\x99"
16920 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16921 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16922 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16923 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16924 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16925 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
16926 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
16927 .klen = 8 + 64 + 16,
16928 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16929 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
7079ce62
HX
16930 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
16931 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
16932 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
16933 .alen = 24,
e46e9a46
HG
16934 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
16935 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
16936 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
16937 "\x10\x11\x12\x13\x14\x15\x16\x17"
16938 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
16939 "\x20\x21\x22\x23\x24\x25\x26\x27"
16940 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
16941 "\x30\x31\x32\x33\x34\x35\x36\x37"
16942 "\x01\x02\x03\x04\x05\x06\x07\x08"
16943 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
16944 .ilen = 80,
16945 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
16946 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
16947 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
16948 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
16949 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
16950 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
16951 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
16952 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
16953 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
16954 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
16955 "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
16956 "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
16957 "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
16958 "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
16959 "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
16960 "\x92\x26\xc1\x76\x20\x11\xeb\xba"
16961 "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
16962 "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
16963 .rlen = 80 + 64,
16964 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
16965#ifdef __LITTLE_ENDIAN
16966 .key = "\x08\x00" /* rta length */
16967 "\x01\x00" /* rta type */
16968#else
16969 .key = "\x00\x08" /* rta length */
16970 "\x00\x01" /* rta type */
16971#endif
16972 "\x00\x00\x00\x18" /* enc key length */
16973 "\x11\x22\x33\x44\x55\x66\x77\x88"
16974 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
16975 "\x22\x33\x44\x55\x66\x77\x88\x99"
16976 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
16977 "\x33\x44\x55\x66\x77\x88\x99\xaa"
16978 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
16979 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
16980 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
16981 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
16982 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
16983 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
16984 .klen = 8 + 64 + 24,
16985 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16986 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
7079ce62
HX
16987 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
16988 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16989 .alen = 16,
e46e9a46
HG
16990 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16991 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16992 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16993 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16994 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16995 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16996 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16997 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
16998 .ilen = 64,
16999 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
17000 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
17001 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
17002 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
17003 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
17004 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
17005 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
17006 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
17007 "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
17008 "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
17009 "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
17010 "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
17011 "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
17012 "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
17013 "\x8d\x43\x98\xa7\x94\x16\x07\x02"
17014 "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
17015 .rlen = 64 + 64,
17016 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
17017#ifdef __LITTLE_ENDIAN
17018 .key = "\x08\x00" /* rta length */
17019 "\x01\x00" /* rta type */
17020#else
17021 .key = "\x00\x08" /* rta length */
17022 "\x00\x01" /* rta type */
17023#endif
17024 "\x00\x00\x00\x20" /* enc key length */
17025 "\x11\x22\x33\x44\x55\x66\x77\x88"
17026 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17027 "\x22\x33\x44\x55\x66\x77\x88\x99"
17028 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17029 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17030 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17031 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17032 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17033 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
17034 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
17035 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
17036 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
17037 .klen = 8 + 64 + 32,
17038 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
17039 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
7079ce62
HX
17040 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
17041 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17042 .alen = 16,
e46e9a46
HG
17043 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
17044 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
17045 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
17046 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
17047 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
17048 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
17049 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
17050 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
17051 .ilen = 64,
17052 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
17053 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
17054 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
17055 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
17056 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
17057 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
17058 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
17059 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
17060 "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
17061 "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
17062 "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
17063 "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
17064 "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
17065 "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
17066 "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
17067 "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
17068 .rlen = 64 + 64,
17069 },
17070};
17071
5208ed2c
NL
17072#define HMAC_SHA1_DES_CBC_ENC_TEST_VEC 1
17073
17074static struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
17075 { /*Generated with cryptopp*/
17076#ifdef __LITTLE_ENDIAN
17077 .key = "\x08\x00" /* rta length */
17078 "\x01\x00" /* rta type */
17079#else
17080 .key = "\x00\x08" /* rta length */
17081 "\x00\x01" /* rta type */
17082#endif
17083 "\x00\x00\x00\x08" /* enc key length */
17084 "\x11\x22\x33\x44\x55\x66\x77\x88"
17085 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17086 "\x22\x33\x44\x55"
17087 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17088 .klen = 8 + 20 + 8,
17089 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17090 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17091 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17092 .alen = 16,
5208ed2c
NL
17093 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17094 "\x53\x20\x63\x65\x65\x72\x73\x74"
17095 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17096 "\x20\x79\x65\x53\x72\x63\x74\x65"
17097 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17098 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17099 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17100 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17101 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17102 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17103 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17104 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17105 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17106 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17107 "\x63\x65\x65\x72\x73\x74\x54\x20"
17108 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17109 .ilen = 128,
17110 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17111 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17112 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17113 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17114 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17115 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17116 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17117 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17118 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17119 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17120 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17121 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17122 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17123 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17124 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17125 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17126 "\x95\x16\x20\x09\xf5\x95\x19\xfd"
17127 "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
17128 "\x5c\x44\xa9\x37",
17129 .rlen = 128 + 20,
17130 },
17131};
17132
17133#define HMAC_SHA224_DES_CBC_ENC_TEST_VEC 1
17134
17135static struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
17136 { /*Generated with cryptopp*/
17137#ifdef __LITTLE_ENDIAN
17138 .key = "\x08\x00" /* rta length */
17139 "\x01\x00" /* rta type */
17140#else
17141 .key = "\x00\x08" /* rta length */
17142 "\x00\x01" /* rta type */
17143#endif
17144 "\x00\x00\x00\x08" /* enc key length */
17145 "\x11\x22\x33\x44\x55\x66\x77\x88"
17146 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17147 "\x22\x33\x44\x55\x66\x77\x88\x99"
17148 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17149 .klen = 8 + 24 + 8,
17150 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17151 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17152 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17153 .alen = 16,
5208ed2c
NL
17154 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17155 "\x53\x20\x63\x65\x65\x72\x73\x74"
17156 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17157 "\x20\x79\x65\x53\x72\x63\x74\x65"
17158 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17159 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17160 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17161 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17162 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17163 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17164 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17165 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17166 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17167 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17168 "\x63\x65\x65\x72\x73\x74\x54\x20"
17169 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17170 .ilen = 128,
17171 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17172 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17173 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17174 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17175 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17176 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17177 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17178 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17179 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17180 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17181 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17182 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17183 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17184 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17185 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17186 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17187 "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
17188 "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
17189 "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
17190 .rlen = 128 + 24,
17191 },
17192};
17193
17194#define HMAC_SHA256_DES_CBC_ENC_TEST_VEC 1
17195
17196static struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
17197 { /*Generated with cryptopp*/
17198#ifdef __LITTLE_ENDIAN
17199 .key = "\x08\x00" /* rta length */
17200 "\x01\x00" /* rta type */
17201#else
17202 .key = "\x00\x08" /* rta length */
17203 "\x00\x01" /* rta type */
17204#endif
17205 "\x00\x00\x00\x08" /* enc key length */
17206 "\x11\x22\x33\x44\x55\x66\x77\x88"
17207 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17208 "\x22\x33\x44\x55\x66\x77\x88\x99"
17209 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17210 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17211 .klen = 8 + 32 + 8,
17212 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17213 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17214 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17215 .alen = 16,
5208ed2c
NL
17216 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17217 "\x53\x20\x63\x65\x65\x72\x73\x74"
17218 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17219 "\x20\x79\x65\x53\x72\x63\x74\x65"
17220 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17221 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17222 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17223 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17224 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17225 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17226 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17227 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17228 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17229 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17230 "\x63\x65\x65\x72\x73\x74\x54\x20"
17231 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17232 .ilen = 128,
17233 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17234 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17235 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17236 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17237 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17238 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17239 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17240 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17241 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17242 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17243 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17244 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17245 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17246 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17247 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17248 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17249 "\xc6\x58\xa1\x60\x70\x91\x39\x36"
17250 "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
17251 "\xde\x63\xde\x76\x52\xde\x9f\xba"
17252 "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
17253 .rlen = 128 + 32,
17254 },
17255};
17256
17257#define HMAC_SHA384_DES_CBC_ENC_TEST_VEC 1
17258
17259static struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
17260 { /*Generated with cryptopp*/
17261#ifdef __LITTLE_ENDIAN
17262 .key = "\x08\x00" /* rta length */
17263 "\x01\x00" /* rta type */
17264#else
17265 .key = "\x00\x08" /* rta length */
17266 "\x00\x01" /* rta type */
17267#endif
17268 "\x00\x00\x00\x08" /* enc key length */
17269 "\x11\x22\x33\x44\x55\x66\x77\x88"
17270 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17271 "\x22\x33\x44\x55\x66\x77\x88\x99"
17272 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17273 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17274 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17275 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17276 .klen = 8 + 48 + 8,
17277 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17278 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17279 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17280 .alen = 16,
5208ed2c
NL
17281 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17282 "\x53\x20\x63\x65\x65\x72\x73\x74"
17283 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17284 "\x20\x79\x65\x53\x72\x63\x74\x65"
17285 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17286 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17287 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17288 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17289 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17290 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17291 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17292 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17293 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17294 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17295 "\x63\x65\x65\x72\x73\x74\x54\x20"
17296 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17297 .ilen = 128,
17298 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17299 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17300 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17301 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17302 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17303 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17304 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17305 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17306 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17307 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17308 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17309 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17310 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17311 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17312 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17313 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17314 "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
17315 "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
17316 "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
17317 "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
17318 "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
17319 "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
17320 .rlen = 128 + 48,
17321 },
17322};
17323
17324#define HMAC_SHA512_DES_CBC_ENC_TEST_VEC 1
17325
17326static struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
17327 { /*Generated with cryptopp*/
17328#ifdef __LITTLE_ENDIAN
17329 .key = "\x08\x00" /* rta length */
17330 "\x01\x00" /* rta type */
17331#else
17332 .key = "\x00\x08" /* rta length */
17333 "\x00\x01" /* rta type */
17334#endif
17335 "\x00\x00\x00\x08" /* enc key length */
17336 "\x11\x22\x33\x44\x55\x66\x77\x88"
17337 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17338 "\x22\x33\x44\x55\x66\x77\x88\x99"
17339 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17340 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17341 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17342 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17343 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17344 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
17345 .klen = 8 + 64 + 8,
17346 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17347 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17348 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17349 .alen = 16,
5208ed2c
NL
17350 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17351 "\x53\x20\x63\x65\x65\x72\x73\x74"
17352 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17353 "\x20\x79\x65\x53\x72\x63\x74\x65"
17354 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17355 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17356 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17357 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17358 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17359 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17360 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17361 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17362 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17363 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17364 "\x63\x65\x65\x72\x73\x74\x54\x20"
17365 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17366 .ilen = 128,
17367 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
17368 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
17369 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
17370 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
17371 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
17372 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
17373 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
17374 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
17375 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
17376 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
17377 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
17378 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
17379 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
17380 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
17381 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
17382 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
17383 "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
17384 "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
17385 "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
17386 "\x58\x83\xda\x67\xfb\x21\x24\xa2"
17387 "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
17388 "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
17389 "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
17390 "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
17391 .rlen = 128 + 64,
17392 },
17393};
17394
17395#define HMAC_SHA1_DES3_EDE_CBC_ENC_TEST_VEC 1
17396
17397static struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
17398 { /*Generated with cryptopp*/
17399#ifdef __LITTLE_ENDIAN
17400 .key = "\x08\x00" /* rta length */
17401 "\x01\x00" /* rta type */
17402#else
17403 .key = "\x00\x08" /* rta length */
17404 "\x00\x01" /* rta type */
17405#endif
17406 "\x00\x00\x00\x18" /* enc key length */
17407 "\x11\x22\x33\x44\x55\x66\x77\x88"
17408 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17409 "\x22\x33\x44\x55"
17410 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17411 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17412 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17413 .klen = 8 + 20 + 24,
17414 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17415 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17416 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17417 .alen = 16,
5208ed2c
NL
17418 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17419 "\x53\x20\x63\x65\x65\x72\x73\x74"
17420 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17421 "\x20\x79\x65\x53\x72\x63\x74\x65"
17422 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17423 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17424 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17425 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17426 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17427 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17428 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17429 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17430 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17431 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17432 "\x63\x65\x65\x72\x73\x74\x54\x20"
17433 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17434 .ilen = 128,
17435 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17436 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17437 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17438 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17439 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17440 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17441 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17442 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17443 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17444 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17445 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17446 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17447 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17448 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17449 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17450 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17451 "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
17452 "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
17453 "\xd1\x60\x91\xb3",
17454 .rlen = 128 + 20,
17455 },
17456};
17457
17458#define HMAC_SHA224_DES3_EDE_CBC_ENC_TEST_VEC 1
17459
17460static struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
17461 { /*Generated with cryptopp*/
17462#ifdef __LITTLE_ENDIAN
17463 .key = "\x08\x00" /* rta length */
17464 "\x01\x00" /* rta type */
17465#else
17466 .key = "\x00\x08" /* rta length */
17467 "\x00\x01" /* rta type */
17468#endif
17469 "\x00\x00\x00\x18" /* enc key length */
17470 "\x11\x22\x33\x44\x55\x66\x77\x88"
17471 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17472 "\x22\x33\x44\x55\x66\x77\x88\x99"
17473 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17474 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17475 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17476 .klen = 8 + 24 + 24,
17477 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17478 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17479 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17480 .alen = 16,
5208ed2c
NL
17481 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17482 "\x53\x20\x63\x65\x65\x72\x73\x74"
17483 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17484 "\x20\x79\x65\x53\x72\x63\x74\x65"
17485 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17486 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17487 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17488 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17489 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17490 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17491 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17492 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17493 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17494 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17495 "\x63\x65\x65\x72\x73\x74\x54\x20"
17496 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17497 .ilen = 128,
17498 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17499 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17500 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17501 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17502 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17503 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17504 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17505 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17506 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17507 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17508 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17509 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17510 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17511 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17512 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17513 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17514 "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
17515 "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
17516 "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
17517 .rlen = 128 + 24,
17518 },
17519};
17520
17521#define HMAC_SHA256_DES3_EDE_CBC_ENC_TEST_VEC 1
17522
17523static struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
17524 { /*Generated with cryptopp*/
17525#ifdef __LITTLE_ENDIAN
17526 .key = "\x08\x00" /* rta length */
17527 "\x01\x00" /* rta type */
17528#else
17529 .key = "\x00\x08" /* rta length */
17530 "\x00\x01" /* rta type */
17531#endif
17532 "\x00\x00\x00\x18" /* enc key length */
17533 "\x11\x22\x33\x44\x55\x66\x77\x88"
17534 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17535 "\x22\x33\x44\x55\x66\x77\x88\x99"
17536 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17537 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17538 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17539 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17540 .klen = 8 + 32 + 24,
17541 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17542 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17543 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17544 .alen = 16,
5208ed2c
NL
17545 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17546 "\x53\x20\x63\x65\x65\x72\x73\x74"
17547 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17548 "\x20\x79\x65\x53\x72\x63\x74\x65"
17549 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17550 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17551 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17552 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17553 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17554 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17555 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17556 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17557 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17558 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17559 "\x63\x65\x65\x72\x73\x74\x54\x20"
17560 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17561 .ilen = 128,
17562 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17563 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17564 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17565 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17566 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17567 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17568 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17569 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17570 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17571 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17572 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17573 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17574 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17575 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17576 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17577 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17578 "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
17579 "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
17580 "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
17581 "\xca\x43\x95\xdf\x80\x61\x81\xa9",
17582 .rlen = 128 + 32,
17583 },
17584};
17585
17586#define HMAC_SHA384_DES3_EDE_CBC_ENC_TEST_VEC 1
17587
17588static struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
17589 { /*Generated with cryptopp*/
17590#ifdef __LITTLE_ENDIAN
17591 .key = "\x08\x00" /* rta length */
17592 "\x01\x00" /* rta type */
17593#else
17594 .key = "\x00\x08" /* rta length */
17595 "\x00\x01" /* rta type */
17596#endif
17597 "\x00\x00\x00\x18" /* enc key length */
17598 "\x11\x22\x33\x44\x55\x66\x77\x88"
17599 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17600 "\x22\x33\x44\x55\x66\x77\x88\x99"
17601 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17602 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17603 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17604 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17605 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17606 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17607 .klen = 8 + 48 + 24,
17608 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17609 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17610 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17611 .alen = 16,
5208ed2c
NL
17612 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17613 "\x53\x20\x63\x65\x65\x72\x73\x74"
17614 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17615 "\x20\x79\x65\x53\x72\x63\x74\x65"
17616 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17617 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17618 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17619 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17620 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17621 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17622 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17623 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17624 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17625 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17626 "\x63\x65\x65\x72\x73\x74\x54\x20"
17627 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17628 .ilen = 128,
17629 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17630 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17631 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17632 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17633 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17634 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17635 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17636 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17637 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17638 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17639 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17640 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17641 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17642 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17643 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17644 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17645 "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
17646 "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
17647 "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
17648 "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
17649 "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
17650 "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
17651 .rlen = 128 + 48,
17652 },
17653};
17654
17655#define HMAC_SHA512_DES3_EDE_CBC_ENC_TEST_VEC 1
17656
17657static struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
17658 { /*Generated with cryptopp*/
17659#ifdef __LITTLE_ENDIAN
17660 .key = "\x08\x00" /* rta length */
17661 "\x01\x00" /* rta type */
17662#else
17663 .key = "\x00\x08" /* rta length */
17664 "\x00\x01" /* rta type */
17665#endif
17666 "\x00\x00\x00\x18" /* enc key length */
17667 "\x11\x22\x33\x44\x55\x66\x77\x88"
17668 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
17669 "\x22\x33\x44\x55\x66\x77\x88\x99"
17670 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
17671 "\x33\x44\x55\x66\x77\x88\x99\xaa"
17672 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
17673 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
17674 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
17675 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
17676 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
17677 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
17678 .klen = 8 + 64 + 24,
17679 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
7079ce62
HX
17680 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
17681 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
17682 .alen = 16,
5208ed2c
NL
17683 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
17684 "\x53\x20\x63\x65\x65\x72\x73\x74"
17685 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
17686 "\x20\x79\x65\x53\x72\x63\x74\x65"
17687 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
17688 "\x79\x6e\x53\x20\x63\x65\x65\x72"
17689 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
17690 "\x6e\x61\x20\x79\x65\x53\x72\x63"
17691 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
17692 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
17693 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
17694 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
17695 "\x72\x63\x74\x65\x20\x73\x6f\x54"
17696 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
17697 "\x63\x65\x65\x72\x73\x74\x54\x20"
17698 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
17699 .ilen = 128,
17700 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
17701 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
17702 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
17703 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
17704 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
17705 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
17706 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
17707 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
17708 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
17709 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
17710 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
17711 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
17712 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
17713 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
17714 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
17715 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
17716 "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
17717 "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
17718 "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
17719 "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
17720 "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
17721 "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
17722 "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
17723 "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
17724 .rlen = 128 + 64,
17725 },
17726};
17727
da7f033d
HX
17728static struct cipher_testvec aes_lrw_enc_tv_template[] = {
17729 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
17730 { /* LRW-32-AES 1 */
17731 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
17732 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
17733 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
17734 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
17735 .klen = 32,
17736 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17737 "\x00\x00\x00\x00\x00\x00\x00\x01",
17738 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17739 "\x38\x39\x41\x42\x43\x44\x45\x46",
17740 .ilen = 16,
17741 .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
17742 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
17743 .rlen = 16,
17744 }, { /* LRW-32-AES 2 */
17745 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
17746 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
17747 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
17748 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
17749 .klen = 32,
17750 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17751 "\x00\x00\x00\x00\x00\x00\x00\x02",
17752 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17753 "\x38\x39\x41\x42\x43\x44\x45\x46",
17754 .ilen = 16,
17755 .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
17756 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
17757 .rlen = 16,
17758 }, { /* LRW-32-AES 3 */
17759 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
17760 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
17761 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
17762 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
17763 .klen = 32,
17764 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17765 "\x00\x00\x00\x02\x00\x00\x00\x00",
17766 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17767 "\x38\x39\x41\x42\x43\x44\x45\x46",
17768 .ilen = 16,
17769 .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
17770 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
17771 .rlen = 16,
17772 }, { /* LRW-32-AES 4 */
17773 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
17774 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
17775 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
17776 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
17777 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
17778 .klen = 40,
17779 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17780 "\x00\x00\x00\x00\x00\x00\x00\x01",
17781 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17782 "\x38\x39\x41\x42\x43\x44\x45\x46",
17783 .ilen = 16,
17784 .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
17785 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
17786 .rlen = 16,
17787 }, { /* LRW-32-AES 5 */
17788 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
17789 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
17790 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
17791 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
17792 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
17793 .klen = 40,
17794 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17795 "\x00\x00\x00\x02\x00\x00\x00\x00",
17796 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17797 "\x38\x39\x41\x42\x43\x44\x45\x46",
17798 .ilen = 16,
17799 .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
17800 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
17801 .rlen = 16,
17802 }, { /* LRW-32-AES 6 */
17803 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
17804 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
17805 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
17806 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
17807 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
17808 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
17809 .klen = 48,
17810 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17811 "\x00\x00\x00\x00\x00\x00\x00\x01",
17812 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17813 "\x38\x39\x41\x42\x43\x44\x45\x46",
17814 .ilen = 16,
17815 .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
17816 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
17817 .rlen = 16,
17818 }, { /* LRW-32-AES 7 */
17819 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
17820 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
17821 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
17822 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
17823 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
17824 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
17825 .klen = 48,
17826 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17827 "\x00\x00\x00\x02\x00\x00\x00\x00",
17828 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
17829 "\x38\x39\x41\x42\x43\x44\x45\x46",
17830 .ilen = 16,
17831 .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
17832 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
17833 .rlen = 16,
17834 }, {
17835/* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
17836 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
17837 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
17838 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
17839 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
17840 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
17841 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
17842 .klen = 48,
17843 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17844 "\x00\x00\x00\x00\x00\x00\x00\x01",
17845 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
17846 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
17847 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
17848 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
17849 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
17850 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
17851 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
17852 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
17853 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
17854 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
17855 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
17856 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
17857 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
17858 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
17859 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
17860 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
17861 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
17862 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
17863 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
17864 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
17865 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
17866 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
17867 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
17868 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
17869 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
17870 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
17871 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
17872 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
17873 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
17874 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
17875 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
17876 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
17877 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
17878 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
17879 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
17880 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
17881 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
17882 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
17883 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
17884 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
17885 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
17886 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
17887 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
17888 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
17889 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
17890 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
17891 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
17892 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
17893 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
17894 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
17895 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
17896 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
17897 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
17898 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
17899 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
17900 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
17901 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
17902 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
17903 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
17904 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
17905 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
17906 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
17907 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
17908 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
17909 .ilen = 512,
17910 .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
17911 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
17912 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
17913 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
17914 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
17915 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
17916 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
17917 "\xe8\x58\x46\x97\x39\x51\x07\xde"
17918 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
17919 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
17920 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
17921 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
17922 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
17923 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
17924 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
17925 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
17926 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
17927 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
17928 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
17929 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
17930 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
17931 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
17932 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
17933 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
17934 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
17935 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
17936 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
17937 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
17938 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
17939 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
17940 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
17941 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
17942 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
17943 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
17944 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
17945 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
17946 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
17947 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
17948 "\xb8\x79\x78\x97\x94\xff\x72\x13"
17949 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
17950 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
17951 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
17952 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
17953 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
17954 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
17955 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
17956 "\x1e\x86\x53\x11\x53\x94\x00\xee"
17957 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
17958 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
17959 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
17960 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
17961 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
17962 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
17963 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
17964 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
17965 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
17966 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
17967 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
17968 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
17969 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
17970 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
17971 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
17972 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
17973 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
17974 .rlen = 512,
f44d83d1 17975 .also_non_np = 1,
3b9b8fe0
AB
17976 .np = 3,
17977 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
17978 }
17979};
17980
17981static struct cipher_testvec aes_lrw_dec_tv_template[] = {
17982 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
17983 /* same as enc vectors with input and result reversed */
17984 { /* LRW-32-AES 1 */
17985 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
17986 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
17987 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
17988 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
17989 .klen = 32,
17990 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
17991 "\x00\x00\x00\x00\x00\x00\x00\x01",
17992 .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
17993 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
17994 .ilen = 16,
17995 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
17996 "\x38\x39\x41\x42\x43\x44\x45\x46",
17997 .rlen = 16,
17998 }, { /* LRW-32-AES 2 */
17999 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
18000 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
18001 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
18002 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
18003 .klen = 32,
18004 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18005 "\x00\x00\x00\x00\x00\x00\x00\x02",
18006 .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
18007 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
18008 .ilen = 16,
18009 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18010 "\x38\x39\x41\x42\x43\x44\x45\x46",
18011 .rlen = 16,
18012 }, { /* LRW-32-AES 3 */
18013 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
18014 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
18015 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
18016 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
18017 .klen = 32,
18018 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18019 "\x00\x00\x00\x02\x00\x00\x00\x00",
18020 .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
18021 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
18022 .ilen = 16,
18023 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18024 "\x38\x39\x41\x42\x43\x44\x45\x46",
18025 .rlen = 16,
18026 }, { /* LRW-32-AES 4 */
18027 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
18028 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
18029 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
18030 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
18031 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
18032 .klen = 40,
18033 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18034 "\x00\x00\x00\x00\x00\x00\x00\x01",
18035 .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
18036 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
18037 .ilen = 16,
18038 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18039 "\x38\x39\x41\x42\x43\x44\x45\x46",
18040 .rlen = 16,
18041 }, { /* LRW-32-AES 5 */
18042 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
18043 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
18044 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
18045 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
18046 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
18047 .klen = 40,
18048 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18049 "\x00\x00\x00\x02\x00\x00\x00\x00",
18050 .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
18051 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
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 6 */
18057 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
18058 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
18059 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
18060 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
18061 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
18062 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
18063 .klen = 48,
18064 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18065 "\x00\x00\x00\x00\x00\x00\x00\x01",
18066 .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
18067 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
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 }, { /* LRW-32-AES 7 */
18073 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
18074 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
18075 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
18076 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
18077 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
18078 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
18079 .klen = 48,
18080 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18081 "\x00\x00\x00\x02\x00\x00\x00\x00",
18082 .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
18083 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
18084 .ilen = 16,
18085 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
18086 "\x38\x39\x41\x42\x43\x44\x45\x46",
18087 .rlen = 16,
18088 }, {
18089/* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
18090 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
18091 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
18092 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
18093 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
18094 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
18095 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
18096 .klen = 48,
18097 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18098 "\x00\x00\x00\x00\x00\x00\x00\x01",
18099 .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
18100 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
18101 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
18102 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
18103 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
18104 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
18105 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
18106 "\xe8\x58\x46\x97\x39\x51\x07\xde"
18107 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
18108 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
18109 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
18110 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
18111 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
18112 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
18113 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
18114 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
18115 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
18116 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
18117 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
18118 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
18119 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
18120 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
18121 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
18122 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
18123 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
18124 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
18125 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
18126 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
18127 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
18128 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
18129 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
18130 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
18131 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
18132 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
18133 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
18134 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
18135 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
18136 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
18137 "\xb8\x79\x78\x97\x94\xff\x72\x13"
18138 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
18139 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
18140 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
18141 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
18142 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
18143 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
18144 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
18145 "\x1e\x86\x53\x11\x53\x94\x00\xee"
18146 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
18147 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
18148 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
18149 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
18150 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
18151 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
18152 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
18153 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
18154 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
18155 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
18156 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
18157 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
18158 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
18159 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
18160 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
18161 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
18162 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
18163 .ilen = 512,
18164 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
18165 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
18166 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
18167 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
18168 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
18169 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
18170 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
18171 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
18172 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
18173 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
18174 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
18175 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
18176 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
18177 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
18178 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
18179 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
18180 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
18181 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
18182 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
18183 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
18184 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
18185 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
18186 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
18187 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
18188 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
18189 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
18190 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
18191 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
18192 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
18193 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
18194 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
18195 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
18196 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
18197 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
18198 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
18199 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
18200 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
18201 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
18202 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
18203 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
18204 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
18205 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
18206 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
18207 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
18208 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
18209 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
18210 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
18211 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
18212 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
18213 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
18214 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
18215 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
18216 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
18217 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
18218 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
18219 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
18220 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
18221 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
18222 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
18223 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
18224 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
18225 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
18226 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
18227 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
18228 .rlen = 512,
f44d83d1 18229 .also_non_np = 1,
3b9b8fe0
AB
18230 .np = 3,
18231 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
18232 }
18233};
18234
18235static struct cipher_testvec aes_xts_enc_tv_template[] = {
18236 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
18237 { /* XTS-AES 1 */
18238 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
18239 "\x00\x00\x00\x00\x00\x00\x00\x00"
18240 "\x00\x00\x00\x00\x00\x00\x00\x00"
18241 "\x00\x00\x00\x00\x00\x00\x00\x00",
18242 .klen = 32,
10faa8c0 18243 .fips_skip = 1,
da7f033d
HX
18244 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18245 "\x00\x00\x00\x00\x00\x00\x00\x00",
18246 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
18247 "\x00\x00\x00\x00\x00\x00\x00\x00"
18248 "\x00\x00\x00\x00\x00\x00\x00\x00"
18249 "\x00\x00\x00\x00\x00\x00\x00\x00",
18250 .ilen = 32,
18251 .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
18252 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
18253 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
18254 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
18255 .rlen = 32,
18256 }, { /* XTS-AES 2 */
18257 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
18258 "\x11\x11\x11\x11\x11\x11\x11\x11"
18259 "\x22\x22\x22\x22\x22\x22\x22\x22"
18260 "\x22\x22\x22\x22\x22\x22\x22\x22",
18261 .klen = 32,
18262 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18263 "\x00\x00\x00\x00\x00\x00\x00\x00",
18264 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
18265 "\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 .ilen = 32,
18269 .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
18270 "\x39\x33\x40\x38\xac\xef\x83\x8b"
18271 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
18272 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
18273 .rlen = 32,
18274 }, { /* XTS-AES 3 */
18275 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
18276 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
18277 "\x22\x22\x22\x22\x22\x22\x22\x22"
18278 "\x22\x22\x22\x22\x22\x22\x22\x22",
18279 .klen = 32,
18280 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18281 "\x00\x00\x00\x00\x00\x00\x00\x00",
18282 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
18283 "\x44\x44\x44\x44\x44\x44\x44\x44"
18284 "\x44\x44\x44\x44\x44\x44\x44\x44"
18285 "\x44\x44\x44\x44\x44\x44\x44\x44",
18286 .ilen = 32,
18287 .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
18288 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
18289 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
18290 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
18291 .rlen = 32,
18292 }, { /* XTS-AES 4 */
18293 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18294 "\x23\x53\x60\x28\x74\x71\x35\x26"
18295 "\x31\x41\x59\x26\x53\x58\x97\x93"
18296 "\x23\x84\x62\x64\x33\x83\x27\x95",
18297 .klen = 32,
18298 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18299 "\x00\x00\x00\x00\x00\x00\x00\x00",
18300 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
18301 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18302 "\x10\x11\x12\x13\x14\x15\x16\x17"
18303 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18304 "\x20\x21\x22\x23\x24\x25\x26\x27"
18305 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18306 "\x30\x31\x32\x33\x34\x35\x36\x37"
18307 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18308 "\x40\x41\x42\x43\x44\x45\x46\x47"
18309 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18310 "\x50\x51\x52\x53\x54\x55\x56\x57"
18311 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18312 "\x60\x61\x62\x63\x64\x65\x66\x67"
18313 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18314 "\x70\x71\x72\x73\x74\x75\x76\x77"
18315 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18316 "\x80\x81\x82\x83\x84\x85\x86\x87"
18317 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18318 "\x90\x91\x92\x93\x94\x95\x96\x97"
18319 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18320 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18321 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18322 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18323 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18324 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18325 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18326 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18327 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18328 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18329 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18330 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18331 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18332 "\x00\x01\x02\x03\x04\x05\x06\x07"
18333 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18334 "\x10\x11\x12\x13\x14\x15\x16\x17"
18335 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18336 "\x20\x21\x22\x23\x24\x25\x26\x27"
18337 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18338 "\x30\x31\x32\x33\x34\x35\x36\x37"
18339 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18340 "\x40\x41\x42\x43\x44\x45\x46\x47"
18341 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18342 "\x50\x51\x52\x53\x54\x55\x56\x57"
18343 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18344 "\x60\x61\x62\x63\x64\x65\x66\x67"
18345 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18346 "\x70\x71\x72\x73\x74\x75\x76\x77"
18347 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18348 "\x80\x81\x82\x83\x84\x85\x86\x87"
18349 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18350 "\x90\x91\x92\x93\x94\x95\x96\x97"
18351 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18352 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18353 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18354 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18355 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18356 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18357 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18358 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18359 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18360 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18361 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18362 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18363 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18364 .ilen = 512,
18365 .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
18366 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
18367 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
18368 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
18369 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
18370 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
18371 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
18372 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
18373 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
18374 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
18375 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
18376 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
18377 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
18378 "\x22\x97\x61\x46\xae\x20\xce\x84"
18379 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
18380 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
18381 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
18382 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
18383 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
18384 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
18385 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
18386 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
18387 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
18388 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
18389 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
18390 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
18391 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
18392 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
18393 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
18394 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
18395 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
18396 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
18397 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
18398 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
18399 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
18400 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
18401 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
18402 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
18403 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
18404 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
18405 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
18406 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
18407 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
18408 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
18409 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
18410 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
18411 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
18412 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
18413 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
18414 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
18415 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
18416 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
18417 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
18418 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
18419 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
18420 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
18421 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
18422 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
18423 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
18424 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
18425 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
18426 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
18427 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
18428 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
18429 .rlen = 512,
5165e5b1
JW
18430 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
18431 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18432 "\x23\x53\x60\x28\x74\x71\x35\x26"
18433 "\x62\x49\x77\x57\x24\x70\x93\x69"
18434 "\x99\x59\x57\x49\x66\x96\x76\x27"
18435 "\x31\x41\x59\x26\x53\x58\x97\x93"
18436 "\x23\x84\x62\x64\x33\x83\x27\x95"
18437 "\x02\x88\x41\x97\x16\x93\x99\x37"
18438 "\x51\x05\x82\x09\x74\x94\x45\x92",
18439 .klen = 64,
18440 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
18441 "\x00\x00\x00\x00\x00\x00\x00\x00",
5165e5b1
JW
18442 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
18443 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18444 "\x10\x11\x12\x13\x14\x15\x16\x17"
18445 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18446 "\x20\x21\x22\x23\x24\x25\x26\x27"
18447 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18448 "\x30\x31\x32\x33\x34\x35\x36\x37"
18449 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18450 "\x40\x41\x42\x43\x44\x45\x46\x47"
18451 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18452 "\x50\x51\x52\x53\x54\x55\x56\x57"
18453 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18454 "\x60\x61\x62\x63\x64\x65\x66\x67"
18455 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18456 "\x70\x71\x72\x73\x74\x75\x76\x77"
18457 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18458 "\x80\x81\x82\x83\x84\x85\x86\x87"
18459 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18460 "\x90\x91\x92\x93\x94\x95\x96\x97"
18461 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18462 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18463 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18464 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18465 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18466 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18467 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18468 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18469 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18470 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18471 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18472 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18473 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18474 "\x00\x01\x02\x03\x04\x05\x06\x07"
18475 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18476 "\x10\x11\x12\x13\x14\x15\x16\x17"
18477 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18478 "\x20\x21\x22\x23\x24\x25\x26\x27"
18479 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18480 "\x30\x31\x32\x33\x34\x35\x36\x37"
18481 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18482 "\x40\x41\x42\x43\x44\x45\x46\x47"
18483 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18484 "\x50\x51\x52\x53\x54\x55\x56\x57"
18485 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18486 "\x60\x61\x62\x63\x64\x65\x66\x67"
18487 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18488 "\x70\x71\x72\x73\x74\x75\x76\x77"
18489 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18490 "\x80\x81\x82\x83\x84\x85\x86\x87"
18491 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18492 "\x90\x91\x92\x93\x94\x95\x96\x97"
18493 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18494 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18495 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18496 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18497 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18498 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18499 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18500 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18501 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18502 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18503 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18504 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18505 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18506 .ilen = 512,
18507 .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
18508 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
18509 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
18510 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
18511 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
18512 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
18513 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
18514 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
18515 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
18516 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
18517 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
18518 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
18519 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
18520 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
18521 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
18522 "\x00\x02\x08\x87\x89\x14\x29\xca"
18523 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
18524 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
18525 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
18526 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
18527 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
18528 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
18529 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
18530 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
18531 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
18532 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
18533 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
18534 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
18535 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
18536 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
18537 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
18538 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
18539 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
18540 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
18541 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
18542 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
18543 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
18544 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
18545 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
18546 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
18547 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
18548 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
18549 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
18550 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
18551 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
18552 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
18553 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
18554 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
18555 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
18556 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
18557 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
18558 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
18559 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
18560 "\x94\x30\x54\xff\x84\x01\x14\x93"
18561 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
18562 "\x53\x76\x44\x1a\x77\xed\x43\x85"
18563 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
18564 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
18565 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
18566 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
18567 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
18568 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
18569 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
18570 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
18571 .rlen = 512,
f44d83d1 18572 .also_non_np = 1,
3b9b8fe0
AB
18573 .np = 3,
18574 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
18575 }
18576};
18577
18578static struct cipher_testvec aes_xts_dec_tv_template[] = {
18579 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
18580 { /* XTS-AES 1 */
18581 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
18582 "\x00\x00\x00\x00\x00\x00\x00\x00"
18583 "\x00\x00\x00\x00\x00\x00\x00\x00"
18584 "\x00\x00\x00\x00\x00\x00\x00\x00",
18585 .klen = 32,
10faa8c0 18586 .fips_skip = 1,
da7f033d
HX
18587 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18588 "\x00\x00\x00\x00\x00\x00\x00\x00",
18589 .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
18590 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
18591 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
18592 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
18593 .ilen = 32,
18594 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
18595 "\x00\x00\x00\x00\x00\x00\x00\x00"
18596 "\x00\x00\x00\x00\x00\x00\x00\x00"
18597 "\x00\x00\x00\x00\x00\x00\x00\x00",
18598 .rlen = 32,
18599 }, { /* XTS-AES 2 */
18600 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
18601 "\x11\x11\x11\x11\x11\x11\x11\x11"
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 = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
18608 "\x39\x33\x40\x38\xac\xef\x83\x8b"
18609 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
18610 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
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 3 */
18618 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
18619 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
18620 "\x22\x22\x22\x22\x22\x22\x22\x22"
18621 "\x22\x22\x22\x22\x22\x22\x22\x22",
18622 .klen = 32,
18623 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
18624 "\x00\x00\x00\x00\x00\x00\x00\x00",
18625 .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
18626 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
18627 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
18628 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
18629 .ilen = 32,
18630 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
18631 "\x44\x44\x44\x44\x44\x44\x44\x44"
18632 "\x44\x44\x44\x44\x44\x44\x44\x44"
18633 "\x44\x44\x44\x44\x44\x44\x44\x44",
18634 .rlen = 32,
18635 }, { /* XTS-AES 4 */
18636 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18637 "\x23\x53\x60\x28\x74\x71\x35\x26"
18638 "\x31\x41\x59\x26\x53\x58\x97\x93"
18639 "\x23\x84\x62\x64\x33\x83\x27\x95",
18640 .klen = 32,
18641 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
18642 "\x00\x00\x00\x00\x00\x00\x00\x00",
18643 .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
18644 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
18645 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
18646 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
18647 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
18648 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
18649 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
18650 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
18651 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
18652 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
18653 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
18654 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
18655 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
18656 "\x22\x97\x61\x46\xae\x20\xce\x84"
18657 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
18658 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
18659 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
18660 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
18661 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
18662 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
18663 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
18664 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
18665 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
18666 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
18667 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
18668 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
18669 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
18670 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
18671 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
18672 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
18673 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
18674 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
18675 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
18676 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
18677 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
18678 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
18679 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
18680 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
18681 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
18682 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
18683 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
18684 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
18685 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
18686 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
18687 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
18688 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
18689 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
18690 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
18691 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
18692 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
18693 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
18694 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
18695 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
18696 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
18697 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
18698 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
18699 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
18700 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
18701 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
18702 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
18703 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
18704 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
18705 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
18706 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
18707 .ilen = 512,
18708 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
18709 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18710 "\x10\x11\x12\x13\x14\x15\x16\x17"
18711 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18712 "\x20\x21\x22\x23\x24\x25\x26\x27"
18713 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18714 "\x30\x31\x32\x33\x34\x35\x36\x37"
18715 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18716 "\x40\x41\x42\x43\x44\x45\x46\x47"
18717 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18718 "\x50\x51\x52\x53\x54\x55\x56\x57"
18719 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18720 "\x60\x61\x62\x63\x64\x65\x66\x67"
18721 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18722 "\x70\x71\x72\x73\x74\x75\x76\x77"
18723 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18724 "\x80\x81\x82\x83\x84\x85\x86\x87"
18725 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18726 "\x90\x91\x92\x93\x94\x95\x96\x97"
18727 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18728 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18729 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18730 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18731 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18732 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18733 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18734 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18735 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18736 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18737 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18738 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18739 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18740 "\x00\x01\x02\x03\x04\x05\x06\x07"
18741 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18742 "\x10\x11\x12\x13\x14\x15\x16\x17"
18743 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18744 "\x20\x21\x22\x23\x24\x25\x26\x27"
18745 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18746 "\x30\x31\x32\x33\x34\x35\x36\x37"
18747 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18748 "\x40\x41\x42\x43\x44\x45\x46\x47"
18749 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18750 "\x50\x51\x52\x53\x54\x55\x56\x57"
18751 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18752 "\x60\x61\x62\x63\x64\x65\x66\x67"
18753 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18754 "\x70\x71\x72\x73\x74\x75\x76\x77"
18755 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18756 "\x80\x81\x82\x83\x84\x85\x86\x87"
18757 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18758 "\x90\x91\x92\x93\x94\x95\x96\x97"
18759 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18760 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18761 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18762 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18763 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18764 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18765 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18766 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18767 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18768 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18769 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18770 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18771 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18772 .rlen = 512,
5165e5b1
JW
18773 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
18774 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
18775 "\x23\x53\x60\x28\x74\x71\x35\x26"
18776 "\x62\x49\x77\x57\x24\x70\x93\x69"
18777 "\x99\x59\x57\x49\x66\x96\x76\x27"
18778 "\x31\x41\x59\x26\x53\x58\x97\x93"
18779 "\x23\x84\x62\x64\x33\x83\x27\x95"
18780 "\x02\x88\x41\x97\x16\x93\x99\x37"
18781 "\x51\x05\x82\x09\x74\x94\x45\x92",
18782 .klen = 64,
18783 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
18784 "\x00\x00\x00\x00\x00\x00\x00\x00",
5165e5b1
JW
18785 .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
18786 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
18787 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
18788 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
18789 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
18790 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
18791 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
18792 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
18793 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
18794 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
18795 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
18796 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
18797 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
18798 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
18799 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
18800 "\x00\x02\x08\x87\x89\x14\x29\xca"
18801 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
18802 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
18803 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
18804 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
18805 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
18806 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
18807 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
18808 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
18809 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
18810 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
18811 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
18812 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
18813 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
18814 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
18815 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
18816 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
18817 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
18818 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
18819 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
18820 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
18821 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
18822 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
18823 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
18824 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
18825 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
18826 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
18827 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
18828 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
18829 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
18830 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
18831 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
18832 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
18833 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
18834 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
18835 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
18836 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
18837 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
18838 "\x94\x30\x54\xff\x84\x01\x14\x93"
18839 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
18840 "\x53\x76\x44\x1a\x77\xed\x43\x85"
18841 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
18842 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
18843 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
18844 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
18845 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
18846 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
18847 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
18848 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
18849 .ilen = 512,
18850 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
18851 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18852 "\x10\x11\x12\x13\x14\x15\x16\x17"
18853 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18854 "\x20\x21\x22\x23\x24\x25\x26\x27"
18855 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18856 "\x30\x31\x32\x33\x34\x35\x36\x37"
18857 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18858 "\x40\x41\x42\x43\x44\x45\x46\x47"
18859 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18860 "\x50\x51\x52\x53\x54\x55\x56\x57"
18861 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18862 "\x60\x61\x62\x63\x64\x65\x66\x67"
18863 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18864 "\x70\x71\x72\x73\x74\x75\x76\x77"
18865 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18866 "\x80\x81\x82\x83\x84\x85\x86\x87"
18867 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18868 "\x90\x91\x92\x93\x94\x95\x96\x97"
18869 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18870 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18871 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18872 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18873 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18874 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18875 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18876 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18877 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18878 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18879 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18880 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18881 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
18882 "\x00\x01\x02\x03\x04\x05\x06\x07"
18883 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18884 "\x10\x11\x12\x13\x14\x15\x16\x17"
18885 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18886 "\x20\x21\x22\x23\x24\x25\x26\x27"
18887 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
18888 "\x30\x31\x32\x33\x34\x35\x36\x37"
18889 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
18890 "\x40\x41\x42\x43\x44\x45\x46\x47"
18891 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
18892 "\x50\x51\x52\x53\x54\x55\x56\x57"
18893 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
18894 "\x60\x61\x62\x63\x64\x65\x66\x67"
18895 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
18896 "\x70\x71\x72\x73\x74\x75\x76\x77"
18897 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
18898 "\x80\x81\x82\x83\x84\x85\x86\x87"
18899 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18900 "\x90\x91\x92\x93\x94\x95\x96\x97"
18901 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
18902 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
18903 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
18904 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
18905 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
18906 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18907 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
18908 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
18909 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
18910 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
18911 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
18912 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18913 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18914 .rlen = 512,
f44d83d1 18915 .also_non_np = 1,
3b9b8fe0
AB
18916 .np = 3,
18917 .tap = { 512 - 20, 4, 16 },
da7f033d
HX
18918 }
18919};
18920
18921
18922static struct cipher_testvec aes_ctr_enc_tv_template[] = {
f7cb80f2
JW
18923 { /* From NIST Special Publication 800-38A, Appendix F.5 */
18924 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
18925 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
18926 .klen = 16,
18927 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18928 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18929 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
18930 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
18931 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
18932 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
18933 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
18934 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
18935 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
18936 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
18937 .ilen = 64,
18938 .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
18939 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
18940 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
18941 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
18942 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
18943 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
18944 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
18945 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
18946 .rlen = 64,
18947 }, {
18948 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
18949 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
18950 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
18951 .klen = 24,
18952 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18953 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18954 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
18955 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
18956 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
18957 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
18958 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
18959 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
18960 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
18961 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
18962 .ilen = 64,
18963 .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
18964 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
18965 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
18966 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
18967 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
18968 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
18969 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
18970 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
18971 .rlen = 64,
18972 }, {
18973 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
18974 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
18975 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
18976 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
18977 .klen = 32,
18978 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
18979 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
18980 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
18981 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
18982 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
18983 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
18984 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
18985 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
18986 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
18987 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
18988 .ilen = 64,
18989 .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
18990 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
18991 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
18992 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
18993 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
18994 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
18995 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
18996 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
18997 .rlen = 64,
c3b9e8f6
JK
18998 }, { /* Generated with Crypto++ */
18999 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19000 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19001 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19002 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19003 .klen = 32,
19004 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
19005 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
19006 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19007 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19008 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19009 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19010 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19011 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19012 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19013 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19014 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19015 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19016 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19017 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19018 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19019 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19020 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19021 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19022 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19023 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19024 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19025 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19026 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19027 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19028 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19029 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19030 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19031 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19032 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19033 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19034 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19035 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19036 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19037 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19038 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19039 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19040 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19041 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19042 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19043 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19044 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19045 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19046 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19047 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19048 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19049 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19050 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19051 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19052 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19053 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19054 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19055 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19056 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19057 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19058 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19059 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19060 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19061 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19062 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19063 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19064 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19065 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19066 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19067 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
19068 .ilen = 496,
19069 .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
19070 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
19071 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
19072 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
19073 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
19074 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
19075 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
19076 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
19077 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
19078 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
19079 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
19080 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
19081 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
19082 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
19083 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
19084 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
19085 "\x34\x4B\x31\x69\x84\x66\x96\x44"
19086 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
19087 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
19088 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
19089 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
19090 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
19091 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
19092 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
19093 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
19094 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
19095 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
19096 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
19097 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
19098 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
19099 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
19100 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
19101 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
19102 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
19103 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
19104 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
19105 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
19106 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
19107 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
19108 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
19109 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
19110 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
19111 "\x85\x99\x22\xE8\x91\x38\x70\x83"
19112 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
19113 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
19114 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
19115 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
19116 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
19117 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
19118 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
19119 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
19120 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
19121 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
19122 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
19123 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
19124 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
19125 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
19126 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
19127 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
19128 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
19129 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
19130 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
19131 .rlen = 496,
19132 .also_non_np = 1,
3b9b8fe0
AB
19133 .np = 3,
19134 .tap = { 496 - 20, 4, 16 },
c3b9e8f6
JK
19135 }, { /* Generated with Crypto++ */
19136 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19137 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19138 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19139 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19140 .klen = 32,
19141 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
19142 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
19143 .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19144 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19145 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19146 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19147 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19148 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19149 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19150 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19151 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19152 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19153 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19154 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19155 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19156 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19157 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19158 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19159 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19160 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19161 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19162 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19163 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19164 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19165 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19166 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19167 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19168 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19169 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19170 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19171 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19172 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19173 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19174 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19175 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19176 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19177 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19178 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19179 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19180 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19181 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19182 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19183 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19184 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19185 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19186 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19187 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19188 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19189 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19190 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19191 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19192 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19193 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19194 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19195 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19196 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19197 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19198 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19199 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19200 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19201 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19202 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19203 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19204 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
19205 "\x7B\xE4\x4D",
19206 .ilen = 499,
19207 .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
19208 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
19209 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
19210 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
19211 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
19212 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
19213 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
19214 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
19215 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
19216 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
19217 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
19218 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
19219 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
19220 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
19221 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
19222 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
19223 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
19224 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
19225 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
19226 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
19227 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
19228 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
19229 "\x45\x18\x18\x74\x19\xAD\x71\x01"
19230 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
19231 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
19232 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
19233 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
19234 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
19235 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
19236 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
19237 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
19238 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
19239 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
19240 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
19241 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
19242 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
19243 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
19244 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
19245 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
19246 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
19247 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
19248 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
19249 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
19250 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
19251 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
19252 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
19253 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
19254 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
19255 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
19256 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
19257 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
19258 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
19259 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
19260 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
19261 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
19262 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
19263 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
19264 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
19265 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
19266 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
19267 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
19268 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
19269 "\xFB\xF2\x3F",
19270 .rlen = 499,
19271 .also_non_np = 1,
19272 .np = 2,
19273 .tap = { 499 - 16, 16 },
19274 },
f7cb80f2
JW
19275};
19276
19277static struct cipher_testvec aes_ctr_dec_tv_template[] = {
19278 { /* From NIST Special Publication 800-38A, Appendix F.5 */
19279 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
19280 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
19281 .klen = 16,
19282 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19283 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19284 .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
19285 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
19286 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
19287 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
19288 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
19289 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
19290 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
19291 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
19292 .ilen = 64,
19293 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19294 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19295 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19296 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19297 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19298 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19299 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19300 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19301 .rlen = 64,
19302 }, {
19303 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
19304 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
19305 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
19306 .klen = 24,
19307 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19308 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19309 .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
19310 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
19311 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
19312 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
19313 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
19314 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
19315 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
19316 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
19317 .ilen = 64,
19318 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19319 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19320 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19321 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19322 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19323 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19324 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19325 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19326 .rlen = 64,
19327 }, {
19328 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
19329 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
19330 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
19331 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
19332 .klen = 32,
19333 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19334 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
19335 .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
19336 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
19337 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
19338 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
19339 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
19340 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
19341 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
19342 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
19343 .ilen = 64,
19344 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
19345 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
19346 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
19347 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
19348 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
19349 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
19350 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
19351 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
19352 .rlen = 64,
c3b9e8f6
JK
19353 }, { /* Generated with Crypto++ */
19354 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19355 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19356 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19357 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19358 .klen = 32,
19359 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
19360 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
19361 .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
19362 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
19363 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
19364 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
19365 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
19366 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
19367 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
19368 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
19369 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
19370 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
19371 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
19372 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
19373 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
19374 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
19375 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
19376 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
19377 "\x34\x4B\x31\x69\x84\x66\x96\x44"
19378 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
19379 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
19380 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
19381 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
19382 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
19383 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
19384 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
19385 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
19386 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
19387 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
19388 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
19389 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
19390 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
19391 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
19392 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
19393 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
19394 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
19395 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
19396 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
19397 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
19398 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
19399 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
19400 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
19401 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
19402 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
19403 "\x85\x99\x22\xE8\x91\x38\x70\x83"
19404 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
19405 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
19406 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
19407 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
19408 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
19409 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
19410 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
19411 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
19412 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
19413 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
19414 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
19415 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
19416 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
19417 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
19418 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
19419 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
19420 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
19421 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
19422 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
19423 .ilen = 496,
19424 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19425 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19426 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19427 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19428 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19429 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19430 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19431 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19432 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19433 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19434 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19435 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19436 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19437 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19438 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19439 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19440 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19441 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19442 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19443 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19444 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19445 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19446 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19447 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19448 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19449 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19450 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19451 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19452 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19453 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19454 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19455 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19456 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19457 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19458 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19459 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19460 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19461 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19462 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19463 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19464 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19465 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19466 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19467 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19468 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19469 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19470 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19471 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19472 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19473 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19474 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19475 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19476 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19477 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19478 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19479 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19480 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19481 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19482 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19483 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19484 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19485 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
19486 .rlen = 496,
19487 .also_non_np = 1,
3b9b8fe0
AB
19488 .np = 3,
19489 .tap = { 496 - 20, 4, 16 },
c3b9e8f6
JK
19490 }, { /* Generated with Crypto++ */
19491 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
19492 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
19493 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
19494 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
19495 .klen = 32,
19496 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
19497 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
19498 .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
19499 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
19500 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
19501 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
19502 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
19503 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
19504 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
19505 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
19506 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
19507 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
19508 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
19509 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
19510 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
19511 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
19512 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
19513 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
19514 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
19515 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
19516 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
19517 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
19518 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
19519 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
19520 "\x45\x18\x18\x74\x19\xAD\x71\x01"
19521 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
19522 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
19523 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
19524 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
19525 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
19526 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
19527 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
19528 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
19529 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
19530 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
19531 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
19532 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
19533 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
19534 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
19535 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
19536 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
19537 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
19538 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
19539 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
19540 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
19541 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
19542 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
19543 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
19544 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
19545 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
19546 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
19547 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
19548 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
19549 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
19550 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
19551 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
19552 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
19553 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
19554 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
19555 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
19556 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
19557 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
19558 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
19559 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
19560 "\xFB\xF2\x3F",
19561 .ilen = 499,
19562 .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
19563 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
19564 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
19565 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
19566 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
19567 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
19568 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
19569 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
19570 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
19571 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
19572 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
19573 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
19574 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
19575 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
19576 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
19577 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
19578 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
19579 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
19580 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
19581 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
19582 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
19583 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
19584 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
19585 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
19586 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
19587 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
19588 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
19589 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
19590 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
19591 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
19592 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
19593 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
19594 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
19595 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
19596 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
19597 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
19598 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
19599 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
19600 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
19601 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
19602 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
19603 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
19604 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
19605 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
19606 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
19607 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
19608 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
19609 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
19610 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
19611 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
19612 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
19613 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
19614 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
19615 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
19616 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
19617 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
19618 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
19619 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
19620 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
19621 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
19622 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
19623 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
19624 "\x7B\xE4\x4D",
19625 .rlen = 499,
19626 .also_non_np = 1,
19627 .np = 2,
19628 .tap = { 499 - 16, 16 },
19629 },
f7cb80f2
JW
19630};
19631
19632static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = {
da7f033d
HX
19633 { /* From RFC 3686 */
19634 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
19635 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
19636 "\x00\x00\x00\x30",
19637 .klen = 20,
19638 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19639 .input = "Single block msg",
19640 .ilen = 16,
19641 .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
19642 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
19643 .rlen = 16,
19644 }, {
19645 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
19646 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
19647 "\x00\x6c\xb6\xdb",
19648 .klen = 20,
19649 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
19650 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
19651 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19652 "\x10\x11\x12\x13\x14\x15\x16\x17"
19653 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19654 .ilen = 32,
19655 .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
19656 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
19657 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
19658 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
19659 .rlen = 32,
19660 }, {
19661 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
19662 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
19663 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
19664 "\x00\x00\x00\x48",
19665 .klen = 28,
19666 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
19667 .input = "Single block msg",
19668 .ilen = 16,
19669 .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
19670 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
19671 .rlen = 16,
19672 }, {
19673 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
19674 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
19675 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
19676 "\x00\x96\xb0\x3b",
19677 .klen = 28,
19678 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
19679 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
19680 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19681 "\x10\x11\x12\x13\x14\x15\x16\x17"
19682 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19683 .ilen = 32,
19684 .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
19685 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
19686 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
19687 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
19688 .rlen = 32,
19689 }, {
19690 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
19691 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
19692 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
19693 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
19694 "\x00\x00\x00\x60",
19695 .klen = 36,
19696 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
19697 .input = "Single block msg",
19698 .ilen = 16,
19699 .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
19700 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
19701 .rlen = 16,
19702 }, {
19703 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
19704 "\x07\x96\x36\x58\x79\xef\xf8\x86"
19705 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
19706 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
19707 "\x00\xfa\xac\x24",
19708 .klen = 36,
19709 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
19710 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
19711 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19712 "\x10\x11\x12\x13\x14\x15\x16\x17"
19713 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
19714 .ilen = 32,
19715 .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
19716 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
19717 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
19718 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
19719 .rlen = 32,
19720 }, {
19721 // generated using Crypto++
19722 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19723 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19724 "\x10\x11\x12\x13\x14\x15\x16\x17"
19725 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
19726 "\x00\x00\x00\x00",
19727 .klen = 32 + 4,
19728 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19729 .input =
19730 "\x00\x01\x02\x03\x04\x05\x06\x07"
19731 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19732 "\x10\x11\x12\x13\x14\x15\x16\x17"
19733 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
19734 "\x20\x21\x22\x23\x24\x25\x26\x27"
19735 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
19736 "\x30\x31\x32\x33\x34\x35\x36\x37"
19737 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
19738 "\x40\x41\x42\x43\x44\x45\x46\x47"
19739 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
19740 "\x50\x51\x52\x53\x54\x55\x56\x57"
19741 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
19742 "\x60\x61\x62\x63\x64\x65\x66\x67"
19743 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
19744 "\x70\x71\x72\x73\x74\x75\x76\x77"
19745 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
19746 "\x80\x81\x82\x83\x84\x85\x86\x87"
19747 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19748 "\x90\x91\x92\x93\x94\x95\x96\x97"
19749 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
19750 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
19751 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
19752 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
19753 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
19754 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
19755 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
19756 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
19757 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
19758 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
19759 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
19760 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
19761 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
19762 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
19763 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
19764 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
19765 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
19766 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
19767 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
19768 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
19769 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
19770 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
19771 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
19772 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
19773 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
19774 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
19775 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
19776 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
19777 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
19778 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
19779 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
19780 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
19781 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
19782 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
19783 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
19784 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
19785 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
19786 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
19787 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
19788 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
19789 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
19790 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
19791 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
19792 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
19793 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
19794 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
19795 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
19796 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
19797 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
19798 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
19799 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
19800 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
19801 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
19802 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
19803 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
19804 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
19805 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
19806 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
19807 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
19808 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
19809 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
19810 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
19811 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
19812 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
19813 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
19814 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
19815 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
19816 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
19817 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
19818 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
19819 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
19820 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
19821 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
19822 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
19823 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
19824 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
19825 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
19826 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
19827 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
19828 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
19829 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
19830 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
19831 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
19832 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
19833 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
19834 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
19835 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
19836 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
19837 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
19838 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
19839 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
19840 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
19841 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
19842 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
19843 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
19844 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
19845 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
19846 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
19847 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
19848 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
19849 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
19850 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
19851 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
19852 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
19853 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
19854 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
19855 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
19856 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
19857 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
19858 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
19859 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
19860 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
19861 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
19862 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
19863 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
19864 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
19865 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
19866 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
19867 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
19868 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
19869 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
19870 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
19871 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
19872 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
19873 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
19874 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
19875 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
19876 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
19877 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
19878 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
19879 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
19880 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
19881 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
19882 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
19883 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
19884 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
19885 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
19886 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
19887 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
19888 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
19889 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
19890 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
19891 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
19892 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
19893 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
19894 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
19895 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
19896 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
19897 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
19898 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
19899 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
19900 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
19901 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
19902 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
19903 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
19904 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
19905 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
19906 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
19907 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
19908 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
19909 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
19910 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
19911 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
19912 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
19913 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
19914 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
19915 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
19916 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
19917 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
19918 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
19919 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
19920 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
19921 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
19922 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
19923 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
19924 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
19925 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
19926 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
19927 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
19928 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
19929 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
19930 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
19931 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
19932 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
19933 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
19934 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
19935 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
19936 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
19937 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
19938 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
19939 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
19940 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
19941 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
19942 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
19943 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
19944 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
19945 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
19946 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
19947 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
19948 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
19949 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
19950 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
19951 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
19952 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
19953 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
19954 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
19955 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
19956 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
19957 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
19958 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
19959 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
19960 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
19961 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
19962 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
19963 "\x38\x47\x56\x65\x74\x83\x92\xa1"
19964 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
19965 "\x28\x37\x46\x55\x64\x73\x82\x91"
19966 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
19967 "\x18\x27\x36\x45\x54\x63\x72\x81"
19968 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
19969 "\x08\x17\x26\x35\x44\x53\x62\x71"
19970 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
19971 "\xf8\x07\x16\x25\x34\x43\x52\x61"
19972 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
19973 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
19974 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
19975 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
19976 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
19977 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
19978 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
19979 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
19980 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
19981 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
19982 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
19983 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
19984 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
19985 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
19986 "\x00\x11\x22\x33\x44\x55\x66\x77"
19987 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
19988 "\x10\x21\x32\x43\x54\x65\x76\x87"
19989 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
19990 "\x20\x31\x42\x53\x64\x75\x86\x97"
19991 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
19992 "\x30\x41\x52\x63\x74\x85\x96\xa7"
19993 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
19994 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
19995 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
19996 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
19997 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
19998 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
19999 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
20000 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
20001 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
20002 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
20003 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
20004 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
20005 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
20006 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
20007 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
20008 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
20009 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
20010 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
20011 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
20012 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
20013 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
20014 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
20015 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
20016 "\xf0\x01\x12\x23\x34\x45\x56\x67"
20017 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
20018 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
20019 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
20020 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
20021 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
20022 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
20023 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
20024 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
20025 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
20026 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
20027 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
20028 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
20029 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
20030 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
20031 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
20032 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
20033 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
20034 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
20035 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
20036 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
20037 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
20038 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
20039 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
20040 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
20041 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
20042 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
20043 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
20044 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
20045 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
20046 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
20047 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
20048 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
20049 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
20050 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
20051 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
20052 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
20053 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
20054 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
20055 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
20056 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
20057 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
20058 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
20059 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
20060 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
20061 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
20062 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
20063 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
20064 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
20065 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
20066 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
20067 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
20068 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
20069 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
20070 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
20071 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
20072 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
20073 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
20074 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
20075 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
20076 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
20077 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
20078 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
20079 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
20080 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
20081 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
20082 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
20083 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
20084 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
20085 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
20086 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
20087 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
20088 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
20089 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
20090 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
20091 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
20092 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
20093 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
20094 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
20095 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
20096 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
20097 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
20098 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
20099 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
20100 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
20101 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
20102 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
20103 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
20104 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
20105 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
20106 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
20107 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
20108 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
20109 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
20110 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
20111 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
20112 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
20113 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
20114 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
20115 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
20116 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
20117 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
20118 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
20119 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
20120 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
20121 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
20122 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
20123 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
20124 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
20125 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
20126 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
20127 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
20128 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
20129 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
20130 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
20131 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
20132 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
20133 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
20134 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
20135 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
20136 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
20137 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
20138 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
20139 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
20140 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
20141 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
20142 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
20143 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
20144 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
20145 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
20146 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
20147 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
20148 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
20149 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
20150 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
20151 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
20152 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
20153 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
20154 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
20155 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
20156 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
20157 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
20158 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
20159 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
20160 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
20161 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
20162 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
20163 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
20164 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
20165 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
20166 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
20167 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
20168 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
20169 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
20170 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
20171 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
20172 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
20173 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
20174 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
20175 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
20176 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
20177 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
20178 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
20179 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
20180 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
20181 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
20182 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
20183 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
20184 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
20185 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
20186 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
20187 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
20188 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
20189 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
20190 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
20191 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
20192 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
20193 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
20194 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
20195 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
20196 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
20197 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
20198 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
20199 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
20200 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
20201 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
20202 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
20203 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
20204 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
20205 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
20206 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
20207 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
20208 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
20209 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
20210 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
20211 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
20212 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
20213 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
20214 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
20215 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
20216 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
20217 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
20218 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
20219 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
20220 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
20221 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
20222 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
20223 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
20224 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
20225 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
20226 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
20227 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
20228 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
20229 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
20230 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
20231 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
20232 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
20233 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
20234 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
20235 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
20236 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
20237 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
20238 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
20239 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
20240 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
20241 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
20242 "\x00\x21\x42\x63",
20243 .ilen = 4100,
20244 .result =
20245 "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
20246 "\xae\xff\x91\x3a\x44\xcf\x38\x32"
20247 "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
20248 "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
20249 "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
20250 "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
20251 "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
20252 "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
20253 "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
20254 "\x18\xff\x75\x6d\x06\x2d\x00\xab"
20255 "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
20256 "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
20257 "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
20258 "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
20259 "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
20260 "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
20261 "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
20262 "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
20263 "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
20264 "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
20265 "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
20266 "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
20267 "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
20268 "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
20269 "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
20270 "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
20271 "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
20272 "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
20273 "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
20274 "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
20275 "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
20276 "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
20277 "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
20278 "\x6a\x25\x15\x33\x4e\x45\x08\xec"
20279 "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
20280 "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
20281 "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
20282 "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
20283 "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
20284 "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
20285 "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
20286 "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
20287 "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
20288 "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
20289 "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
20290 "\x04\x02\xef\xd3\x44\xde\x76\x31"
20291 "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
20292 "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
20293 "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
20294 "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
20295 "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
20296 "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
20297 "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
20298 "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
20299 "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
20300 "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
20301 "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
20302 "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
20303 "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
20304 "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
20305 "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
20306 "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
20307 "\x32\x03\xed\xf0\x50\x1c\x56\x39"
20308 "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
20309 "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
20310 "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
20311 "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
20312 "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
20313 "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
20314 "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
20315 "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
20316 "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
20317 "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
20318 "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
20319 "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
20320 "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
20321 "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
20322 "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
20323 "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
20324 "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
20325 "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
20326 "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
20327 "\x69\x3a\x29\x23\xac\x86\x32\xa5"
20328 "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
20329 "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
20330 "\x59\x6a\xd3\x50\x59\x43\x59\xde"
20331 "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
20332 "\x18\x34\x0d\x1a\x63\x33\xed\x10"
20333 "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
20334 "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
20335 "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
20336 "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
20337 "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
20338 "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
20339 "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
20340 "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
20341 "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
20342 "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
20343 "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
20344 "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
20345 "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
20346 "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
20347 "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
20348 "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
20349 "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
20350 "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
20351 "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
20352 "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
20353 "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
20354 "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
20355 "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
20356 "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
20357 "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
20358 "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
20359 "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
20360 "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
20361 "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
20362 "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
20363 "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
20364 "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
20365 "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
20366 "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
20367 "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
20368 "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
20369 "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
20370 "\x26\x39\x83\x94\xef\x27\xd8\x53"
20371 "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
20372 "\x43\x7c\x95\x0a\x53\xef\x66\xda"
20373 "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
20374 "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
20375 "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
20376 "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
20377 "\x88\xee\x73\xcf\x66\x2f\x52\x56"
20378 "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
20379 "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
20380 "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
20381 "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
20382 "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
20383 "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
20384 "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
20385 "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
20386 "\xba\x61\x34\x38\x7c\xda\x48\x3e"
20387 "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
20388 "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
20389 "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
20390 "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
20391 "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
20392 "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
20393 "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
20394 "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
20395 "\x35\x12\xe3\x36\x28\x27\x36\x58"
20396 "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
20397 "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
20398 "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
20399 "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
20400 "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
20401 "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
20402 "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
20403 "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
20404 "\x89\xf3\x78\x35\x44\x62\x78\x72"
20405 "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
20406 "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
20407 "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
20408 "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
20409 "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
20410 "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
20411 "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
20412 "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
20413 "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
20414 "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
20415 "\xd2\x49\x77\x81\x6d\x90\x70\xae"
20416 "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
20417 "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
20418 "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
20419 "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
20420 "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
20421 "\x45\x42\x27\x75\x50\xe5\xee\xb8"
20422 "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
20423 "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
20424 "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
20425 "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
20426 "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
20427 "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
20428 "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
20429 "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
20430 "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
20431 "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
20432 "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
20433 "\xa9\x21\x2b\x92\x94\x87\x62\x57"
20434 "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
20435 "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
20436 "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
20437 "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
20438 "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
20439 "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
20440 "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
20441 "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
20442 "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
20443 "\x69\x34\x78\x61\x24\x21\x9c\x8a"
20444 "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
20445 "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
20446 "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
20447 "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
20448 "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
20449 "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
20450 "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
20451 "\xb1\x95\x28\x86\x20\xe9\x17\x49"
20452 "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
20453 "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
20454 "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
20455 "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
20456 "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
20457 "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
20458 "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
20459 "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
20460 "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
20461 "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
20462 "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
20463 "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
20464 "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
20465 "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
20466 "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
20467 "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
20468 "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
20469 "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
20470 "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
20471 "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
20472 "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
20473 "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
20474 "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
20475 "\x29\x90\x46\x30\x92\x69\x7d\x13"
20476 "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
20477 "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
20478 "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
20479 "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
20480 "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
20481 "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
20482 "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
20483 "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
20484 "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
20485 "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
20486 "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
20487 "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
20488 "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
20489 "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
20490 "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
20491 "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
20492 "\x77\x65\x08\x60\x11\x76\x4c\x8d"
20493 "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
20494 "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
20495 "\x03\xd1\x24\x95\xec\x6d\xab\x38"
20496 "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
20497 "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
20498 "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
20499 "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
20500 "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
20501 "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
20502 "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
20503 "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
20504 "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
20505 "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
20506 "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
20507 "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
20508 "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
20509 "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
20510 "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
20511 "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
20512 "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
20513 "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
20514 "\xe5\x79\x81\x73\xcd\x43\x59\x68"
20515 "\x73\x02\x3b\x78\x21\x72\x43\x00"
20516 "\x49\x17\xf7\x00\xaf\x68\x24\x53"
20517 "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
20518 "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
20519 "\x11\x94\x13\x69\x51\x09\x28\xde"
20520 "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
20521 "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
20522 "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
20523 "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
20524 "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
20525 "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
20526 "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
20527 "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
20528 "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
20529 "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
20530 "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
20531 "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
20532 "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
20533 "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
20534 "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
20535 "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
20536 "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
20537 "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
20538 "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
20539 "\x69\xdc\xab\x24\x57\x60\x47\xc1"
20540 "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
20541 "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
20542 "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
20543 "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
20544 "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
20545 "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
20546 "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
20547 "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
20548 "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
20549 "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
20550 "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
20551 "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
20552 "\x85\x62\x82\x70\x18\xe2\x9a\x78"
20553 "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
20554 "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
20555 "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
20556 "\x35\xf3\x61\x06\x72\x84\xc4\x32"
20557 "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
20558 "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
20559 "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
20560 "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
20561 "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
20562 "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
20563 "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
20564 "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
20565 "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
20566 "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
20567 "\x4f\x73\x38\x09\x75\x64\x48\xe0"
20568 "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
20569 "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
20570 "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
20571 "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
20572 "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
20573 "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
20574 "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
20575 "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
20576 "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
20577 "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
20578 "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
20579 "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
20580 "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
20581 "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
20582 "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
20583 "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
20584 "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
20585 "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
20586 "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
20587 "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
20588 "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
20589 "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
20590 "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
20591 "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
20592 "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
20593 "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
20594 "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
20595 "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
20596 "\xce\x4d\x5f\x18\x60\xce\x87\x22"
20597 "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
20598 "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
20599 "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
20600 "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
20601 "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
20602 "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
20603 "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
20604 "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
20605 "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
20606 "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
20607 "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
20608 "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
20609 "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
20610 "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
20611 "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
20612 "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
20613 "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
20614 "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
20615 "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
20616 "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
20617 "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
20618 "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
20619 "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
20620 "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
20621 "\xce\x54\xf9\x18\x58\xb5\xff\x44"
20622 "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
20623 "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
20624 "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
20625 "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
20626 "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
20627 "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
20628 "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
20629 "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
20630 "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
20631 "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
20632 "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
20633 "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
20634 "\x0c\xd6\x04\x14\xde\x51\x74\x75"
20635 "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
20636 "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
20637 "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
20638 "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
20639 "\x75\x46\x65\x4e\x07\x34\x37\xa3"
20640 "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
20641 "\x69\x24\x0e\x38\x67\x43\x8c\xde"
20642 "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
20643 "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
20644 "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
20645 "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
20646 "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
20647 "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
20648 "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
20649 "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
20650 "\x91\x7d\x62\x64\x96\x72\xde\xfc"
20651 "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
20652 "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
20653 "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
20654 "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
20655 "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
20656 "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
20657 "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
20658 "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
20659 "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
20660 "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
20661 "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
20662 "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
20663 "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
20664 "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
20665 "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
20666 "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
20667 "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
20668 "\xae\xed\x39\x88\x42\x11\x3c\xed"
20669 "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
20670 "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
20671 "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
20672 "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
20673 "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
20674 "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
20675 "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
20676 "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
20677 "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
20678 "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
20679 "\x34\x17\xde\xba\x47\xf1\x06\x18"
20680 "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
20681 "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
20682 "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
20683 "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
20684 "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
20685 "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
20686 "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
20687 "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
20688 "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
20689 "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
20690 "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
20691 "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
20692 "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
20693 "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
20694 "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
20695 "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
20696 "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
20697 "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
20698 "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
20699 "\x2c\x56\x39\x79\x0f\x69\x44\x75"
20700 "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
20701 "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
20702 "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
20703 "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
20704 "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
20705 "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
20706 "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
20707 "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
20708 "\x63\x9b\xce\x61\x24\x79\xc0\x70"
20709 "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
20710 "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
20711 "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
20712 "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
20713 "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
20714 "\x74\x56\x58\x40\x02\x37\x52\x2c"
20715 "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
20716 "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
20717 "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
20718 "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
20719 "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
20720 "\xed\x38\x80\x36\x72\x43\x27\x49"
20721 "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
20722 "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
20723 "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
20724 "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
20725 "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
20726 "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
20727 "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
20728 "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
20729 "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
20730 "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
20731 "\x12\xee\x30\xfe\xd8\x30\xef\x34"
20732 "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
20733 "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
20734 "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
20735 "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
20736 "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
20737 "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
20738 "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
20739 "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
20740 "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
20741 "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
20742 "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
20743 "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
20744 "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
20745 "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
20746 "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
20747 "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
20748 "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
20749 "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
20750 "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
20751 "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
20752 "\x44\x12\xfb\x73\x77\xd4\x13\x39"
20753 "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
20754 "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
20755 "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
20756 "\x4b\xef\x31\x18\xea\xac\xb1\x84"
20757 "\x21\xed\xda\x86",
20758 .rlen = 4100,
20759 .np = 2,
20760 .tap = { 4064, 36 },
20761 },
20762};
20763
f7cb80f2 20764static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = {
da7f033d
HX
20765 { /* From RFC 3686 */
20766 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
20767 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
20768 "\x00\x00\x00\x30",
20769 .klen = 20,
20770 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
20771 .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
20772 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
20773 .ilen = 16,
20774 .result = "Single block msg",
20775 .rlen = 16,
20776 }, {
20777 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
20778 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
20779 "\x00\x6c\xb6\xdb",
20780 .klen = 20,
20781 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
20782 .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
20783 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
20784 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
20785 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
20786 .ilen = 32,
20787 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20788 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20789 "\x10\x11\x12\x13\x14\x15\x16\x17"
20790 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20791 .rlen = 32,
20792 }, {
20793 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
20794 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
20795 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
20796 "\x00\x00\x00\x48",
20797 .klen = 28,
20798 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
20799 .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
20800 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
20801 .ilen = 16,
20802 .result = "Single block msg",
20803 .rlen = 16,
20804 }, {
20805 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
20806 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
20807 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
20808 "\x00\x96\xb0\x3b",
20809 .klen = 28,
20810 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
20811 .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
20812 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
20813 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
20814 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
20815 .ilen = 32,
20816 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20817 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20818 "\x10\x11\x12\x13\x14\x15\x16\x17"
20819 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20820 .rlen = 32,
20821 }, {
20822 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
20823 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
20824 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
20825 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
20826 "\x00\x00\x00\x60",
20827 .klen = 36,
20828 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
20829 .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
20830 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
20831 .ilen = 16,
20832 .result = "Single block msg",
20833 .rlen = 16,
20834 }, {
20835 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
20836 "\x07\x96\x36\x58\x79\xef\xf8\x86"
20837 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
20838 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
20839 "\x00\xfa\xac\x24",
20840 .klen = 36,
20841 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
20842 .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
20843 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
20844 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
20845 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
20846 .ilen = 32,
20847 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
20848 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
20849 "\x10\x11\x12\x13\x14\x15\x16\x17"
20850 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
20851 .rlen = 32,
20852 },
20853};
20854
ba0e14ac
PS
20855static struct cipher_testvec aes_ofb_enc_tv_template[] = {
20856 /* From NIST Special Publication 800-38A, Appendix F.5 */
20857 {
20858 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
20859 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
20860 .klen = 16,
20861 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
20862 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
20863 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
20864 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
20865 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
20866 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
20867 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
20868 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
20869 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
20870 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
20871 .ilen = 64,
20872 .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
20873 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
20874 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
20875 "\x3c\x52\xda\xc5\x4e\xd8\x25"
20876 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
20877 "\x44\xf7\xa8\x22\x60\xed\xcc"
20878 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
20879 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
20880 .rlen = 64,
20881 }
20882};
20883
20884static struct cipher_testvec aes_ofb_dec_tv_template[] = {
20885 /* From NIST Special Publication 800-38A, Appendix F.5 */
20886 {
20887 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
20888 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
20889 .klen = 16,
20890 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
20891 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
20892 .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
20893 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
20894 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
20895 "\x3c\x52\xda\xc5\x4e\xd8\x25"
20896 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
20897 "\x44\xf7\xa8\x22\x60\xed\xcc"
20898 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
20899 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
20900 .ilen = 64,
20901 .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
20902 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
20903 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
20904 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
20905 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
20906 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
20907 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
20908 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
20909 .rlen = 64,
20910 }
20911};
20912
da7f033d
HX
20913static struct aead_testvec aes_gcm_enc_tv_template[] = {
20914 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
20915 .key = zeroed_string,
20916 .klen = 16,
20917 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
20918 "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
20919 .rlen = 16,
20920 }, {
20921 .key = zeroed_string,
20922 .klen = 16,
20923 .input = zeroed_string,
20924 .ilen = 16,
20925 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
20926 "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
20927 "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
20928 "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
20929 .rlen = 32,
20930 }, {
20931 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
20932 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
20933 .klen = 16,
20934 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
20935 "\xde\xca\xf8\x88",
20936 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
20937 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
20938 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
20939 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
20940 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
20941 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
20942 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
20943 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
20944 .ilen = 64,
20945 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
20946 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
20947 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
20948 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
20949 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
20950 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
20951 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
20952 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
20953 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
20954 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
20955 .rlen = 80,
20956 }, {
20957 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
20958 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
20959 .klen = 16,
20960 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
20961 "\xde\xca\xf8\x88",
20962 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
20963 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
20964 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
20965 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
20966 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
20967 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
20968 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
20969 "\xba\x63\x7b\x39",
20970 .ilen = 60,
20971 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
20972 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
20973 "\xab\xad\xda\xd2",
20974 .alen = 20,
20975 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
20976 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
20977 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
20978 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
20979 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
20980 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
20981 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
20982 "\x3d\x58\xe0\x91"
20983 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
20984 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
20985 .rlen = 76,
20986 }, {
20987 .key = zeroed_string,
20988 .klen = 24,
20989 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
20990 "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
20991 .rlen = 16,
20992 }, {
20993 .key = zeroed_string,
20994 .klen = 24,
20995 .input = zeroed_string,
20996 .ilen = 16,
20997 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
20998 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
20999 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
21000 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
21001 .rlen = 32,
21002 }, {
21003 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21004 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21005 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21006 .klen = 24,
21007 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21008 "\xde\xca\xf8\x88",
21009 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21010 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21011 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21012 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21013 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21014 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21015 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21016 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21017 .ilen = 64,
21018 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21019 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21020 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21021 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21022 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21023 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21024 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21025 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
21026 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
21027 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
21028 .rlen = 80,
21029 }, {
21030 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21031 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21032 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21033 .klen = 24,
21034 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21035 "\xde\xca\xf8\x88",
21036 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21037 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21038 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21039 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21040 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21041 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21042 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21043 "\xba\x63\x7b\x39",
21044 .ilen = 60,
21045 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21046 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21047 "\xab\xad\xda\xd2",
21048 .alen = 20,
21049 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21050 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21051 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21052 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21053 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21054 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21055 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21056 "\xcc\xda\x27\x10"
21057 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
21058 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
21059 .rlen = 76,
21060 .np = 2,
21061 .tap = { 32, 28 },
21062 .anp = 2,
21063 .atap = { 8, 12 }
21064 }, {
21065 .key = zeroed_string,
21066 .klen = 32,
21067 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
21068 "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
21069 .rlen = 16,
21070 }
21071};
21072
21073static struct aead_testvec aes_gcm_dec_tv_template[] = {
21074 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
21075 .key = zeroed_string,
21076 .klen = 32,
21077 .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
21078 "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
21079 "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
21080 "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
21081 .ilen = 32,
21082 .result = zeroed_string,
21083 .rlen = 16,
21084 }, {
21085 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21086 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21087 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21088 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21089 .klen = 32,
21090 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21091 "\xde\xca\xf8\x88",
21092 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
21093 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
21094 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
21095 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
21096 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
21097 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
21098 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
21099 "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
21100 "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
21101 "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
21102 .ilen = 80,
21103 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21104 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21105 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21106 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21107 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21108 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21109 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21110 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21111 .rlen = 64,
21112 }, {
21113 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21114 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21115 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21116 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21117 .klen = 32,
21118 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21119 "\xde\xca\xf8\x88",
21120 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
21121 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
21122 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
21123 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
21124 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
21125 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
21126 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
21127 "\xbc\xc9\xf6\x62"
21128 "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
21129 "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
21130 .ilen = 76,
21131 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21132 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21133 "\xab\xad\xda\xd2",
21134 .alen = 20,
21135 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21136 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21137 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21138 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21139 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21140 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21141 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21142 "\xba\x63\x7b\x39",
21143 .rlen = 60,
21144 .np = 2,
21145 .tap = { 48, 28 },
21146 .anp = 3,
21147 .atap = { 8, 8, 4 }
21148 }, {
21149 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21150 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21151 .klen = 16,
21152 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21153 "\xde\xca\xf8\x88",
21154 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21155 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21156 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21157 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21158 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21159 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21160 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21161 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
21162 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
21163 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
21164 .ilen = 80,
21165 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21166 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21167 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21168 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21169 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21170 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21171 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21172 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21173 .rlen = 64,
21174 }, {
21175 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21176 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
21177 .klen = 16,
21178 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21179 "\xde\xca\xf8\x88",
21180 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
21181 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
21182 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
21183 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
21184 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
21185 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
21186 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
21187 "\x3d\x58\xe0\x91"
21188 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
21189 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
21190 .ilen = 76,
21191 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21192 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21193 "\xab\xad\xda\xd2",
21194 .alen = 20,
21195 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21196 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21197 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21198 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21199 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21200 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21201 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21202 "\xba\x63\x7b\x39",
21203 .rlen = 60,
21204 }, {
21205 .key = zeroed_string,
21206 .klen = 24,
21207 .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
21208 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
21209 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
21210 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
21211 .ilen = 32,
21212 .result = zeroed_string,
21213 .rlen = 16,
21214 }, {
21215 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21216 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21217 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21218 .klen = 24,
21219 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21220 "\xde\xca\xf8\x88",
21221 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21222 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21223 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21224 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21225 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21226 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21227 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21228 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
21229 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
21230 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
21231 .ilen = 80,
21232 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21233 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21234 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21235 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21236 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21237 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21238 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21239 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
21240 .rlen = 64,
21241 }, {
21242 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21243 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
21244 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
21245 .klen = 24,
21246 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
21247 "\xde\xca\xf8\x88",
21248 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
21249 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
21250 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
21251 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
21252 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
21253 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
21254 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
21255 "\xcc\xda\x27\x10"
21256 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
21257 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
21258 .ilen = 76,
21259 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21260 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
21261 "\xab\xad\xda\xd2",
21262 .alen = 20,
21263 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
21264 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
21265 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
21266 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
21267 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
21268 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
21269 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
21270 "\xba\x63\x7b\x39",
21271 .rlen = 60,
21272 }
21273};
21274
69435b94 21275static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
85375446 21276 { /* Generated using Crypto++ */
69435b94
AH
21277 .key = zeroed_string,
21278 .klen = 20,
85375446
HX
21279 .iv = zeroed_string,
21280 .input = zeroed_string,
21281 .ilen = 16,
21282 .assoc = zeroed_string,
21283 .alen = 16,
69435b94 21284 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
85375446
HX
21285 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
21286 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
21287 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
69435b94 21288 .rlen = 32,
85375446 21289 },{
69435b94
AH
21290 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21291 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21292 "\x00\x00\x00\x00",
69435b94 21293 .klen = 20,
85375446
HX
21294 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21295 .input = zeroed_string,
21296 .ilen = 16,
21297 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
21298 "\x00\x00\x00\x00\x00\x00\x00\x01",
21299 .alen = 16,
69435b94 21300 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
85375446
HX
21301 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
21302 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
21303 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
69435b94
AH
21304 .rlen = 32,
21305
85375446 21306 }, {
69435b94
AH
21307 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21308 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21309 "\x00\x00\x00\x00",
69435b94 21310 .klen = 20,
85375446
HX
21311 .iv = zeroed_string,
21312 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21313 "\x01\x01\x01\x01\x01\x01\x01\x01",
21314 .ilen = 16,
21315 .assoc = zeroed_string,
21316 .alen = 16,
69435b94 21317 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
85375446
HX
21318 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21319 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
21320 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
69435b94 21321 .rlen = 32,
85375446 21322 }, {
69435b94
AH
21323 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21324 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21325 "\x00\x00\x00\x00",
69435b94 21326 .klen = 20,
85375446
HX
21327 .iv = zeroed_string,
21328 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21329 "\x01\x01\x01\x01\x01\x01\x01\x01",
21330 .ilen = 16,
21331 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21332 "\x00\x00\x00\x00\x00\x00\x00\x00",
21333 .alen = 16,
69435b94 21334 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
85375446
HX
21335 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21336 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
21337 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
69435b94 21338 .rlen = 32,
85375446 21339 }, {
69435b94
AH
21340 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21341 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21342 "\x00\x00\x00\x00",
69435b94 21343 .klen = 20,
85375446
HX
21344 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21345 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21346 "\x01\x01\x01\x01\x01\x01\x01\x01",
21347 .ilen = 16,
21348 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21349 "\x00\x00\x00\x00\x00\x00\x00\x01",
21350 .alen = 16,
69435b94 21351 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
85375446
HX
21352 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21353 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
21354 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
69435b94 21355 .rlen = 32,
85375446 21356 }, {
69435b94
AH
21357 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21358 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21359 "\x00\x00\x00\x00",
69435b94 21360 .klen = 20,
85375446
HX
21361 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
21362 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
21363 "\x01\x01\x01\x01\x01\x01\x01\x01"
21364 "\x01\x01\x01\x01\x01\x01\x01\x01"
21365 "\x01\x01\x01\x01\x01\x01\x01\x01"
21366 "\x01\x01\x01\x01\x01\x01\x01\x01"
21367 "\x01\x01\x01\x01\x01\x01\x01\x01"
21368 "\x01\x01\x01\x01\x01\x01\x01\x01"
21369 "\x01\x01\x01\x01\x01\x01\x01\x01",
21370 .ilen = 64,
21371 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21372 "\x00\x00\x00\x00\x00\x00\x00\x01",
21373 .alen = 16,
69435b94 21374 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
85375446
HX
21375 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21376 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
21377 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
21378 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
21379 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
21380 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
21381 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
21382 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
21383 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
69435b94 21384 .rlen = 80,
85375446 21385 }, {
69435b94
AH
21386 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
21387 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
85375446 21388 "\x00\x00\x00\x00",
69435b94 21389 .klen = 20,
85375446
HX
21390 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
21391 .input = "\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 "\xff\xff\xff\xff\xff\xff\xff\xff"
21398 "\xff\xff\xff\xff\xff\xff\xff\xff"
21399 "\xff\xff\xff\xff\xff\xff\xff\xff"
21400 "\xff\xff\xff\xff\xff\xff\xff\xff"
21401 "\xff\xff\xff\xff\xff\xff\xff\xff"
21402 "\xff\xff\xff\xff\xff\xff\xff\xff"
21403 "\xff\xff\xff\xff\xff\xff\xff\xff"
21404 "\xff\xff\xff\xff\xff\xff\xff\xff"
21405 "\xff\xff\xff\xff\xff\xff\xff\xff"
21406 "\xff\xff\xff\xff\xff\xff\xff\xff"
21407 "\xff\xff\xff\xff\xff\xff\xff\xff"
21408 "\xff\xff\xff\xff\xff\xff\xff\xff"
21409 "\xff\xff\xff\xff\xff\xff\xff\xff"
21410 "\xff\xff\xff\xff\xff\xff\xff\xff"
21411 "\xff\xff\xff\xff\xff\xff\xff\xff"
21412 "\xff\xff\xff\xff\xff\xff\xff\xff"
21413 "\xff\xff\xff\xff\xff\xff\xff\xff"
21414 "\xff\xff\xff\xff\xff\xff\xff\xff",
21415 .ilen = 192,
21416 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
21417 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
21418 "\x89\xab\xcd\xef",
21419 .alen = 20,
69435b94
AH
21420 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
21421 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
21422 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
21423 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
21424 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
21425 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
21426 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
21427 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
21428 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
21429 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
21430 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
21431 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
21432 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
21433 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
21434 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
21435 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
21436 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
21437 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
21438 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
21439 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
21440 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
21441 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
21442 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
21443 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
21444 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
21445 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
21446 .rlen = 208,
8f69b763
HX
21447 }, { /* From draft-mcgrew-gcm-test-01 */
21448 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
21449 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
21450 "\x2E\x44\x3B\x68",
21451 .klen = 20,
21452 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
21453 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
21454 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
21455 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
21456 "\x38\xD3\x01\x00\x00\x01\x00\x00"
21457 "\x00\x00\x00\x00\x04\x5F\x73\x69"
21458 "\x70\x04\x5F\x75\x64\x70\x03\x73"
21459 "\x69\x70\x09\x63\x79\x62\x65\x72"
21460 "\x63\x69\x74\x79\x02\x64\x6B\x00"
21461 "\x00\x21\x00\x01\x01\x02\x02\x01",
21462 .ilen = 72,
21463 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
85375446
HX
21464 "\x00\x00\x00\x00\x49\x56\xED\x7E"
21465 "\x3B\x24\x4C\xFE",
21466 .alen = 20,
8f69b763
HX
21467 .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
21468 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
21469 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
21470 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
21471 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
21472 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
21473 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
21474 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
21475 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
21476 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
21477 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
21478 .rlen = 88,
21479 }, {
21480 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21481 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
21482 "\xCA\xFE\xBA\xBE",
21483 .klen = 20,
21484 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21485 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
21486 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
21487 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
21488 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
21489 "\x00\x01\x00\x00\x00\x00\x00\x00"
21490 "\x03\x73\x69\x70\x09\x63\x79\x62"
21491 "\x65\x72\x63\x69\x74\x79\x02\x64"
21492 "\x6B\x00\x00\x01\x00\x01\x00\x01",
21493 .ilen = 64,
85375446
HX
21494 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
21495 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21496 .alen = 16,
8f69b763
HX
21497 .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
21498 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
21499 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
21500 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
21501 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
21502 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
21503 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
21504 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
21505 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
21506 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
21507 .rlen = 80,
21508 }, {
21509 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21510 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21511 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21512 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21513 "\x11\x22\x33\x44",
21514 .klen = 36,
21515 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
21516 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
21517 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
21518 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
21519 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
21520 "\x70\x02\x40\x00\x20\xBF\x00\x00"
21521 "\x02\x04\x05\xB4\x01\x01\x04\x02"
21522 "\x01\x02\x02\x01",
21523 .ilen = 52,
85375446
HX
21524 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
21525 "\x01\x02\x03\x04\x05\x06\x07\x08",
21526 .alen = 16,
8f69b763
HX
21527 .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
21528 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
21529 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
21530 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
21531 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
21532 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
21533 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
21534 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
21535 "\x15\x95\x6C\x96",
21536 .rlen = 68,
21537 }, {
21538 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
21539 "\x00\x00\x00\x00\x00\x00\x00\x00"
21540 "\x00\x00\x00\x00",
21541 .klen = 20,
21542 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
21543 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
21544 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
21545 "\x01\x01\x01\x01\x08\x00\x07\x5C"
21546 "\x02\x00\x44\x00\x61\x62\x63\x64"
21547 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21548 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21549 "\x75\x76\x77\x61\x62\x63\x64\x65"
21550 "\x66\x67\x68\x69\x01\x02\x02\x01",
21551 .ilen = 64,
85375446
HX
21552 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
21553 "\x00\x00\x00\x00\x00\x00\x00\x00",
21554 .alen = 16,
8f69b763
HX
21555 .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
21556 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
21557 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
21558 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
21559 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
21560 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
21561 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
21562 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
21563 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
21564 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
21565 .rlen = 80,
21566 }, {
21567 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21568 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21569 "\x57\x69\x0E\x43",
21570 .klen = 20,
21571 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21572 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
21573 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
21574 "\x01\x01\x01\x01\x08\x00\x08\x5C"
21575 "\x02\x00\x43\x00\x61\x62\x63\x64"
21576 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21577 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21578 "\x75\x76\x77\x61\x62\x63\x64\x65"
21579 "\x66\x67\x68\x69\x01\x02\x02\x01",
21580 .ilen = 64,
21581 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
85375446
HX
21582 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21583 "\xA2\xFC\xA1\xA3",
21584 .alen = 20,
8f69b763
HX
21585 .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
21586 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
21587 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
21588 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
21589 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
21590 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
21591 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
21592 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
21593 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
21594 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
21595 .rlen = 80,
21596 }, {
21597 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21598 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21599 "\x57\x69\x0E\x43",
21600 .klen = 20,
21601 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21602 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
21603 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
21604 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
21605 "\x01\x02\x02\x01",
21606 .ilen = 28,
21607 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
85375446
HX
21608 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21609 "\xA2\xFC\xA1\xA3",
21610 .alen = 20,
8f69b763
HX
21611 .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
21612 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
21613 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
21614 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
21615 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
21616 "\xE7\xD0\x5D\x35",
21617 .rlen = 44,
21618 }, {
21619 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21620 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
21621 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
21622 "\xCA\xFE\xBA\xBE",
21623 .klen = 28,
21624 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21625 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
21626 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
21627 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
21628 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
21629 "\x50\x10\x16\xD0\x75\x68\x00\x01",
21630 .ilen = 40,
85375446
HX
21631 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
21632 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
21633 .alen = 16,
8f69b763
HX
21634 .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
21635 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
21636 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
21637 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
21638 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
21639 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
21640 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
21641 .rlen = 56,
21642 }, {
21643 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21644 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21645 "\xDE\xCA\xF8\x88",
21646 .klen = 20,
21647 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
21648 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
21649 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
21650 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
21651 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
21652 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
21653 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
21654 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
21655 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
21656 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
21657 "\x23\x01\x01\x01",
21658 .ilen = 76,
21659 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
85375446
HX
21660 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
21661 "\xCE\xFA\xCE\x74",
21662 .alen = 20,
8f69b763
HX
21663 .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
21664 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
21665 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
21666 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
21667 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
21668 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
21669 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
21670 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
21671 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
21672 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
21673 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
21674 "\x69\x62\x34\x36",
21675 .rlen = 92,
21676 }, {
21677 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21678 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21679 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21680 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21681 "\x73\x61\x6C\x74",
21682 .klen = 36,
21683 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
21684 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
21685 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
21686 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
21687 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
21688 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
21689 .ilen = 40,
21690 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
85375446
HX
21691 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
21692 "\x69\x76\x65\x63",
21693 .alen = 20,
8f69b763
HX
21694 .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
21695 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
21696 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
21697 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
21698 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
21699 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
21700 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
21701 .rlen = 56,
21702 }, {
21703 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21704 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21705 "\x57\x69\x0E\x43",
21706 .klen = 20,
21707 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21708 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
21709 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
21710 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
21711 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
21712 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
21713 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
21714 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
21715 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
21716 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
21717 "\x15\x01\x01\x01",
21718 .ilen = 76,
21719 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
85375446
HX
21720 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21721 "\xA2\xFC\xA1\xA3",
21722 .alen = 20,
8f69b763
HX
21723 .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
21724 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
21725 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
21726 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
21727 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
21728 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
21729 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
21730 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
21731 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
21732 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
21733 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
21734 "\x8C\xAA\x81\xE2",
21735 .rlen = 92,
21736 }, {
21737 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21738 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21739 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21740 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21741 "\x73\x61\x6C\x74",
21742 .klen = 36,
21743 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
21744 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
21745 "\x6C\x65\x73\x01\x74\x68\x65\x01"
21746 "\x6E\x65\x74\x77\x65\x01\x64\x65"
21747 "\x66\x69\x6E\x65\x01\x74\x68\x65"
21748 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
21749 "\x67\x69\x65\x73\x01\x74\x68\x61"
21750 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
21751 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
21752 "\x72\x72\x6F\x77\x01\x02\x02\x01",
21753 .ilen = 72,
21754 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
85375446
HX
21755 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
21756 "\x69\x76\x65\x63",
21757 .alen = 20,
8f69b763
HX
21758 .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
21759 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
21760 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
21761 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
21762 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
21763 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
21764 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
21765 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
21766 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
21767 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
21768 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
21769 .rlen = 88,
21770 }, {
21771 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
21772 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
21773 "\xD9\x66\x42\x67",
21774 .klen = 20,
21775 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
21776 .input = "\x01\x02\x02\x01",
21777 .ilen = 4,
85375446
HX
21778 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
21779 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
21780 .alen = 16,
8f69b763
HX
21781 .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
21782 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
21783 "\x04\xBE\xF2\x70",
21784 .rlen = 20,
21785 }, {
21786 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
21787 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
21788 "\xDE\xCA\xF8\x88",
21789 .klen = 20,
21790 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
21791 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
21792 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
21793 "\x62\x65\x00\x01",
21794 .ilen = 20,
21795 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
85375446
HX
21796 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
21797 "\xCE\xFA\xCE\x74",
21798 .alen = 20,
8f69b763
HX
21799 .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
21800 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
21801 "\x43\x33\x21\x64\x41\x25\x03\x52"
21802 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
21803 "\x43\xAF\x8C\x3E",
21804 .rlen = 36,
21805 }, {
21806 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
21807 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
21808 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
21809 "\x62\x65\x66\x6F\x72\x65\x69\x61"
21810 "\x74\x75\x72\x6E",
21811 .klen = 36,
21812 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
21813 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
21814 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
21815 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
21816 "\x02\x00\x07\x00\x61\x62\x63\x64"
21817 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21818 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21819 "\x01\x02\x02\x01",
21820 .ilen = 52,
21821 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
85375446
HX
21822 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
21823 "\x67\x65\x74\x6D",
21824 .alen = 20,
8f69b763
HX
21825 .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
21826 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
21827 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
21828 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
21829 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
21830 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
21831 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
21832 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
21833 "\x9F\xB4\xC0\x53",
21834 .rlen = 68,
21835 }, {
21836 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
21837 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
21838 "\x57\x69\x0E\x43",
21839 .klen = 20,
21840 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
21841 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
21842 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
21843 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
21844 "\x02\x00\x07\x00\x61\x62\x63\x64"
21845 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
21846 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
21847 "\x01\x02\x02\x01",
21848 .ilen = 52,
21849 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
85375446
HX
21850 "\x10\x10\x10\x10\x4E\x28\x00\x00"
21851 "\xA2\xFC\xA1\xA3",
21852 .alen = 20,
8f69b763
HX
21853 .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
21854 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
21855 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
21856 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
21857 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
21858 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
21859 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
21860 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
21861 "\x40\xD7\xCB\x05",
21862 .rlen = 68,
21863 }, {
21864 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
21865 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
21866 "\x22\x43\x3C\x64",
21867 .klen = 20,
21868 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
21869 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
21870 "\x61\x62\x63\x64\x65\x66\x67\x68"
21871 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
21872 "\x71\x72\x73\x74\x01\x02\x02\x01",
21873 .ilen = 32,
21874 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
85375446
HX
21875 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
21876 "\x3A\x23\x4B\xFD",
21877 .alen = 20,
8f69b763
HX
21878 .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
21879 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
21880 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
21881 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
21882 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
21883 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
21884 .rlen = 48,
69435b94
AH
21885 }
21886};
21887
21888static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
85375446 21889 { /* Generated using Crypto++ */
69435b94
AH
21890 .key = zeroed_string,
21891 .klen = 20,
85375446 21892 .iv = zeroed_string,
69435b94 21893 .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
85375446
HX
21894 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
21895 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
21896 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
69435b94 21897 .ilen = 32,
85375446
HX
21898 .assoc = zeroed_string,
21899 .alen = 16,
21900 .result = zeroed_string,
21901 .rlen = 16,
69435b94 21902
85375446 21903 },{
69435b94
AH
21904 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21905 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21906 "\x00\x00\x00\x00",
69435b94 21907 .klen = 20,
85375446 21908 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
69435b94 21909 .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
85375446
HX
21910 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
21911 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
21912 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
69435b94 21913 .ilen = 32,
85375446
HX
21914 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
21915 "\x00\x00\x00\x00\x00\x00\x00\x01",
21916 .alen = 16,
21917 .result = zeroed_string,
21918 .rlen = 16,
21919 }, {
69435b94
AH
21920 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21921 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21922 "\x00\x00\x00\x00",
69435b94 21923 .klen = 20,
85375446 21924 .iv = zeroed_string,
69435b94 21925 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
85375446
HX
21926 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21927 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
21928 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
69435b94 21929 .ilen = 32,
85375446
HX
21930 .assoc = zeroed_string,
21931 .alen = 16,
21932 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21933 "\x01\x01\x01\x01\x01\x01\x01\x01",
21934 .rlen = 16,
21935 }, {
69435b94
AH
21936 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21937 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21938 "\x00\x00\x00\x00",
69435b94 21939 .klen = 20,
85375446 21940 .iv = zeroed_string,
69435b94 21941 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
85375446
HX
21942 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
21943 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
21944 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
69435b94 21945 .ilen = 32,
85375446
HX
21946 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21947 "\x00\x00\x00\x00\x00\x00\x00\x00",
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,
69435b94 21952
85375446 21953 }, {
69435b94
AH
21954 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21955 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21956 "\x00\x00\x00\x00",
69435b94 21957 .klen = 20,
85375446 21958 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
69435b94 21959 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
85375446
HX
21960 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21961 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
21962 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
69435b94 21963 .ilen = 32,
85375446
HX
21964 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21965 "\x00\x00\x00\x00\x00\x00\x00\x01",
21966 .alen = 16,
21967 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21968 "\x01\x01\x01\x01\x01\x01\x01\x01",
21969 .rlen = 16,
21970 }, {
69435b94
AH
21971 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
21972 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
85375446 21973 "\x00\x00\x00\x00",
69435b94 21974 .klen = 20,
85375446 21975 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
69435b94 21976 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
85375446
HX
21977 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
21978 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
21979 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
21980 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
21981 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
21982 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
21983 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
21984 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
21985 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
69435b94 21986 .ilen = 80,
85375446
HX
21987 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
21988 "\x00\x00\x00\x00\x00\x00\x00\x01",
21989 .alen = 16,
21990 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
21991 "\x01\x01\x01\x01\x01\x01\x01\x01"
21992 "\x01\x01\x01\x01\x01\x01\x01\x01"
21993 "\x01\x01\x01\x01\x01\x01\x01\x01"
21994 "\x01\x01\x01\x01\x01\x01\x01\x01"
21995 "\x01\x01\x01\x01\x01\x01\x01\x01"
21996 "\x01\x01\x01\x01\x01\x01\x01\x01"
21997 "\x01\x01\x01\x01\x01\x01\x01\x01",
21998 .rlen = 64,
21999 }, {
69435b94
AH
22000 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
22001 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
85375446 22002 "\x00\x00\x00\x00",
69435b94 22003 .klen = 20,
85375446 22004 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
69435b94
AH
22005 .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
22006 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
22007 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
22008 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
22009 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
22010 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
22011 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
22012 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
22013 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
22014 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
22015 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
22016 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
22017 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
22018 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
22019 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
22020 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
22021 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
22022 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
22023 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
22024 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
22025 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
22026 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
22027 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
22028 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
22029 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
22030 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
22031 .ilen = 208,
85375446
HX
22032 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
22033 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
22034 "\x89\xab\xcd\xef",
22035 .alen = 20,
22036 .result = "\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 "\xff\xff\xff\xff\xff\xff\xff\xff"
22043 "\xff\xff\xff\xff\xff\xff\xff\xff"
22044 "\xff\xff\xff\xff\xff\xff\xff\xff"
22045 "\xff\xff\xff\xff\xff\xff\xff\xff"
22046 "\xff\xff\xff\xff\xff\xff\xff\xff"
22047 "\xff\xff\xff\xff\xff\xff\xff\xff"
22048 "\xff\xff\xff\xff\xff\xff\xff\xff"
22049 "\xff\xff\xff\xff\xff\xff\xff\xff"
22050 "\xff\xff\xff\xff\xff\xff\xff\xff"
22051 "\xff\xff\xff\xff\xff\xff\xff\xff"
22052 "\xff\xff\xff\xff\xff\xff\xff\xff"
22053 "\xff\xff\xff\xff\xff\xff\xff\xff"
22054 "\xff\xff\xff\xff\xff\xff\xff\xff"
22055 "\xff\xff\xff\xff\xff\xff\xff\xff"
22056 "\xff\xff\xff\xff\xff\xff\xff\xff"
22057 "\xff\xff\xff\xff\xff\xff\xff\xff"
22058 "\xff\xff\xff\xff\xff\xff\xff\xff"
22059 "\xff\xff\xff\xff\xff\xff\xff\xff",
22060 .rlen = 192,
8f69b763
HX
22061 }, {
22062 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
22063 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
22064 "\x2E\x44\x3B\x68",
22065 .klen = 20,
22066 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
22067 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
22068 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
22069 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
22070 "\x38\xD3\x01\x00\x00\x01\x00\x00"
22071 "\x00\x00\x00\x00\x04\x5F\x73\x69"
22072 "\x70\x04\x5F\x75\x64\x70\x03\x73"
22073 "\x69\x70\x09\x63\x79\x62\x65\x72"
22074 "\x63\x69\x74\x79\x02\x64\x6B\x00"
22075 "\x00\x21\x00\x01\x01\x02\x02\x01",
22076 .rlen = 72,
22077 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
85375446
HX
22078 "\x00\x00\x00\x00\x49\x56\xED\x7E"
22079 "\x3B\x24\x4C\xFE",
22080 .alen = 20,
8f69b763
HX
22081 .input = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
22082 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
22083 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
22084 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
22085 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
22086 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
22087 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
22088 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
22089 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
22090 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
22091 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
22092 .ilen = 88,
22093 }, {
22094 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22095 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
22096 "\xCA\xFE\xBA\xBE",
22097 .klen = 20,
22098 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22099 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
22100 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
22101 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
22102 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
22103 "\x00\x01\x00\x00\x00\x00\x00\x00"
22104 "\x03\x73\x69\x70\x09\x63\x79\x62"
22105 "\x65\x72\x63\x69\x74\x79\x02\x64"
22106 "\x6B\x00\x00\x01\x00\x01\x00\x01",
22107 .rlen = 64,
85375446
HX
22108 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
22109 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22110 .alen = 16,
8f69b763
HX
22111 .input = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
22112 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
22113 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
22114 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
22115 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
22116 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
22117 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
22118 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
22119 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
22120 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
22121 .ilen = 80,
22122 }, {
22123 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22124 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22125 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22126 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22127 "\x11\x22\x33\x44",
22128 .klen = 36,
22129 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
22130 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
22131 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
22132 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
22133 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
22134 "\x70\x02\x40\x00\x20\xBF\x00\x00"
22135 "\x02\x04\x05\xB4\x01\x01\x04\x02"
22136 "\x01\x02\x02\x01",
22137 .rlen = 52,
85375446
HX
22138 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
22139 "\x01\x02\x03\x04\x05\x06\x07\x08",
22140 .alen = 16,
8f69b763
HX
22141 .input = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
22142 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
22143 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
22144 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
22145 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
22146 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
22147 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
22148 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
22149 "\x15\x95\x6C\x96",
22150 .ilen = 68,
22151 }, {
22152 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
22153 "\x00\x00\x00\x00\x00\x00\x00\x00"
22154 "\x00\x00\x00\x00",
22155 .klen = 20,
22156 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
22157 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
22158 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
22159 "\x01\x01\x01\x01\x08\x00\x07\x5C"
22160 "\x02\x00\x44\x00\x61\x62\x63\x64"
22161 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22162 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22163 "\x75\x76\x77\x61\x62\x63\x64\x65"
22164 "\x66\x67\x68\x69\x01\x02\x02\x01",
22165 .rlen = 64,
85375446
HX
22166 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
22167 "\x00\x00\x00\x00\x00\x00\x00\x00",
22168 .alen = 16,
8f69b763
HX
22169 .input = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
22170 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
22171 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
22172 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
22173 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
22174 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
22175 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
22176 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
22177 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
22178 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
22179 .ilen = 80,
22180 }, {
22181 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22182 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22183 "\x57\x69\x0E\x43",
22184 .klen = 20,
22185 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22186 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
22187 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
22188 "\x01\x01\x01\x01\x08\x00\x08\x5C"
22189 "\x02\x00\x43\x00\x61\x62\x63\x64"
22190 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22191 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22192 "\x75\x76\x77\x61\x62\x63\x64\x65"
22193 "\x66\x67\x68\x69\x01\x02\x02\x01",
22194 .rlen = 64,
22195 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
85375446
HX
22196 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22197 "\xA2\xFC\xA1\xA3",
22198 .alen = 20,
8f69b763
HX
22199 .input = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
22200 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
22201 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
22202 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
22203 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
22204 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
22205 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
22206 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
22207 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
22208 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
22209 .ilen = 80,
22210 }, {
22211 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22212 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22213 "\x57\x69\x0E\x43",
22214 .klen = 20,
22215 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22216 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
22217 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
22218 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
22219 "\x01\x02\x02\x01",
22220 .rlen = 28,
22221 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
85375446
HX
22222 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22223 "\xA2\xFC\xA1\xA3",
22224 .alen = 20,
8f69b763
HX
22225 .input = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
22226 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
22227 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
22228 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
22229 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
22230 "\xE7\xD0\x5D\x35",
22231 .ilen = 44,
22232 }, {
22233 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22234 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
22235 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
22236 "\xCA\xFE\xBA\xBE",
22237 .klen = 28,
22238 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22239 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
22240 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
22241 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
22242 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
22243 "\x50\x10\x16\xD0\x75\x68\x00\x01",
22244 .rlen = 40,
85375446
HX
22245 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
22246 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
22247 .alen = 16,
8f69b763
HX
22248 .input = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
22249 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
22250 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
22251 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
22252 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
22253 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
22254 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
22255 .ilen = 56,
22256 }, {
22257 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22258 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22259 "\xDE\xCA\xF8\x88",
22260 .klen = 20,
22261 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
22262 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
22263 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
22264 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
22265 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
22266 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
22267 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
22268 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
22269 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
22270 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
22271 "\x23\x01\x01\x01",
22272 .rlen = 76,
22273 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
85375446
HX
22274 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
22275 "\xCE\xFA\xCE\x74",
22276 .alen = 20,
8f69b763
HX
22277 .input = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
22278 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
22279 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
22280 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
22281 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
22282 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
22283 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
22284 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
22285 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
22286 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
22287 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
22288 "\x69\x62\x34\x36",
22289 .ilen = 92,
22290 }, {
22291 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22292 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22293 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22294 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22295 "\x73\x61\x6C\x74",
22296 .klen = 36,
22297 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
22298 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
22299 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
22300 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
22301 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
22302 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
22303 .rlen = 40,
22304 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
85375446
HX
22305 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
22306 "\x69\x76\x65\x63",
22307 .alen = 20,
8f69b763
HX
22308 .input = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
22309 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
22310 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
22311 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
22312 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
22313 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
22314 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
22315 .ilen = 56,
22316 }, {
22317 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22318 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22319 "\x57\x69\x0E\x43",
22320 .klen = 20,
22321 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22322 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
22323 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
22324 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
22325 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
22326 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
22327 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
22328 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
22329 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
22330 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
22331 "\x15\x01\x01\x01",
22332 .rlen = 76,
22333 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
85375446
HX
22334 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22335 "\xA2\xFC\xA1\xA3",
22336 .alen = 20,
8f69b763
HX
22337 .input = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
22338 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
22339 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
22340 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
22341 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
22342 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
22343 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
22344 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
22345 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
22346 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
22347 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
22348 "\x8C\xAA\x81\xE2",
22349 .ilen = 92,
22350 }, {
22351 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22352 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22353 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22354 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22355 "\x73\x61\x6C\x74",
22356 .klen = 36,
22357 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
22358 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
22359 "\x6C\x65\x73\x01\x74\x68\x65\x01"
22360 "\x6E\x65\x74\x77\x65\x01\x64\x65"
22361 "\x66\x69\x6E\x65\x01\x74\x68\x65"
22362 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
22363 "\x67\x69\x65\x73\x01\x74\x68\x61"
22364 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
22365 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
22366 "\x72\x72\x6F\x77\x01\x02\x02\x01",
22367 .rlen = 72,
22368 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
85375446
HX
22369 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
22370 "\x69\x76\x65\x63",
22371 .alen = 20,
8f69b763
HX
22372 .input = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
22373 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
22374 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
22375 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
22376 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
22377 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
22378 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
22379 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
22380 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
22381 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
22382 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
22383 .ilen = 88,
22384 }, {
22385 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
22386 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
22387 "\xD9\x66\x42\x67",
22388 .klen = 20,
22389 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
22390 .result = "\x01\x02\x02\x01",
22391 .rlen = 4,
85375446
HX
22392 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
22393 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
22394 .alen = 16,
8f69b763
HX
22395 .input = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
22396 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
22397 "\x04\xBE\xF2\x70",
22398 .ilen = 20,
22399 }, {
22400 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
22401 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
22402 "\xDE\xCA\xF8\x88",
22403 .klen = 20,
22404 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
22405 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
22406 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
22407 "\x62\x65\x00\x01",
22408 .rlen = 20,
22409 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
85375446
HX
22410 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
22411 "\xCE\xFA\xCE\x74",
22412 .alen = 20,
8f69b763
HX
22413 .input = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
22414 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
22415 "\x43\x33\x21\x64\x41\x25\x03\x52"
22416 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
22417 "\x43\xAF\x8C\x3E",
22418 .ilen = 36,
22419 }, {
22420 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
22421 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
22422 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
22423 "\x62\x65\x66\x6F\x72\x65\x69\x61"
22424 "\x74\x75\x72\x6E",
22425 .klen = 36,
22426 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
22427 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
22428 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
22429 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
22430 "\x02\x00\x07\x00\x61\x62\x63\x64"
22431 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22432 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22433 "\x01\x02\x02\x01",
22434 .rlen = 52,
22435 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
85375446
HX
22436 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
22437 "\x67\x65\x74\x6D",
22438 .alen = 20,
8f69b763
HX
22439 .input = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
22440 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
22441 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
22442 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
22443 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
22444 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
22445 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
22446 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
22447 "\x9F\xB4\xC0\x53",
22448 .ilen = 68,
22449 }, {
22450 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
22451 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
22452 "\x57\x69\x0E\x43",
22453 .klen = 20,
22454 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
22455 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
22456 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
22457 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
22458 "\x02\x00\x07\x00\x61\x62\x63\x64"
22459 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
22460 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
22461 "\x01\x02\x02\x01",
22462 .rlen = 52,
22463 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
85375446
HX
22464 "\x10\x10\x10\x10\x4E\x28\x00\x00"
22465 "\xA2\xFC\xA1\xA3",
22466 .alen = 20,
8f69b763
HX
22467 .input = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
22468 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
22469 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
22470 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
22471 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
22472 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
22473 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
22474 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
22475 "\x40\xD7\xCB\x05",
22476 .ilen = 68,
22477 }, {
22478 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
22479 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
22480 "\x22\x43\x3C\x64",
22481 .klen = 20,
22482 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
22483 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
22484 "\x61\x62\x63\x64\x65\x66\x67\x68"
22485 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
22486 "\x71\x72\x73\x74\x01\x02\x02\x01",
22487 .rlen = 32,
22488 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
85375446
HX
22489 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
22490 "\x3A\x23\x4B\xFD",
22491 .alen = 20,
8f69b763
HX
22492 .input = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
22493 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
22494 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
22495 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
22496 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
22497 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
22498 .ilen = 48,
69435b94
AH
22499 }
22500};
22501
e9b7441a
JK
22502static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
22503 { /* From draft-mcgrew-gcm-test-01 */
22504 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22505 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22506 "\x22\x43\x3c\x64",
22507 .klen = 20,
22508 .iv = zeroed_string,
0af8fbca
HX
22509 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
22510 "\x00\x00\x00\x00\x00\x00\x00\x00",
22511 .alen = 16,
e9b7441a
JK
22512 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22513 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22514 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22515 "\x02\x00\x07\x00\x61\x62\x63\x64"
22516 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22517 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22518 "\x01\x02\x02\x01",
22519 .ilen = 52,
22520 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22521 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22522 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22523 "\x02\x00\x07\x00\x61\x62\x63\x64"
22524 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22525 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22526 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22527 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22528 "\xe4\x09\x9a\xaa",
22529 .rlen = 68,
22530 }
22531};
22532
22533static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
22534 { /* From draft-mcgrew-gcm-test-01 */
22535 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22536 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22537 "\x22\x43\x3c\x64",
22538 .klen = 20,
22539 .iv = zeroed_string,
0af8fbca
HX
22540 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
22541 "\x00\x00\x00\x00\x00\x00\x00\x00",
22542 .alen = 16,
e9b7441a
JK
22543 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22544 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22545 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22546 "\x02\x00\x07\x00\x61\x62\x63\x64"
22547 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22548 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22549 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22550 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22551 "\xe4\x09\x9a\xaa",
22552 .ilen = 68,
22553 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22554 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22555 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22556 "\x02\x00\x07\x00\x61\x62\x63\x64"
22557 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22558 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22559 "\x01\x02\x02\x01",
22560 .rlen = 52,
22561 }, { /* nearly same as previous, but should fail */
22562 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
22563 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
22564 "\x22\x43\x3c\x64",
22565 .klen = 20,
22566 .iv = zeroed_string,
0af8fbca
HX
22567 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
22568 "\x00\x00\x00\x00\x00\x00\x00\x00",
22569 .alen = 16,
e9b7441a
JK
22570 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22571 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22572 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22573 "\x02\x00\x07\x00\x61\x62\x63\x64"
22574 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22575 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22576 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
22577 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
22578 "\x00\x00\x00\x00",
22579 .ilen = 68,
22580 .novrfy = 1,
22581 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
22582 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
22583 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
22584 "\x02\x00\x07\x00\x61\x62\x63\x64"
22585 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
22586 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
22587 "\x01\x02\x02\x01",
22588 .rlen = 52,
22589 },
22590};
22591
da7f033d
HX
22592static struct aead_testvec aes_ccm_enc_tv_template[] = {
22593 { /* From RFC 3610 */
22594 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22595 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22596 .klen = 16,
22597 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
22598 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22599 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22600 .alen = 8,
22601 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22602 "\x10\x11\x12\x13\x14\x15\x16\x17"
22603 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
22604 .ilen = 23,
22605 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
22606 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
22607 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
22608 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
22609 .rlen = 31,
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\x07\x06\x05\x04"
22615 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22616 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22617 "\x08\x09\x0a\x0b",
22618 .alen = 12,
22619 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22620 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22621 "\x1c\x1d\x1e\x1f",
22622 .ilen = 20,
22623 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
22624 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
22625 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
22626 "\x7d\x9c\x2d\x93",
22627 .rlen = 28,
22628 }, {
22629 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22630 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22631 .klen = 16,
22632 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
22633 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22634 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22635 .alen = 8,
22636 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22637 "\x10\x11\x12\x13\x14\x15\x16\x17"
22638 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22639 "\x20",
22640 .ilen = 25,
22641 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
22642 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
22643 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
22644 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
22645 "\x7e\x5f\x4e",
22646 .rlen = 35,
22647 }, {
22648 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22649 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22650 .klen = 16,
22651 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
22652 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22653 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22654 "\x08\x09\x0a\x0b",
22655 .alen = 12,
22656 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22657 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22658 "\x1c\x1d\x1e",
22659 .ilen = 19,
22660 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
22661 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
22662 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
22663 "\x4d\x99\x99\x88\xdd",
22664 .rlen = 29,
22665 }, {
22666 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22667 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22668 .klen = 16,
22669 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
22670 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22671 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
22672 .alen = 8,
22673 .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
22674 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
22675 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
22676 .ilen = 24,
22677 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
22678 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
22679 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
22680 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
22681 .rlen = 32,
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\xd5\x60\x91\x2d\x3f\x70"
22687 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22688 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
22689 "\x20\xea\x60\xc0",
22690 .alen = 12,
22691 .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
22692 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
22693 "\x3a\x80\x3b\xa8\x7f",
22694 .ilen = 21,
22695 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
22696 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
22697 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
22698 "\x5a\xe0\x70\x45\x51",
22699 .rlen = 29,
22700 }, {
22701 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22702 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22703 .klen = 16,
22704 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
22705 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22706 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
22707 .alen = 8,
22708 .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
22709 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
22710 "\x98\x09\xd6\x7d\xbe\xdd\x18",
22711 .ilen = 23,
22712 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
22713 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
22714 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
22715 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
22716 "\xba",
22717 .rlen = 33,
4585988f 22718 }, {
0bc5a6c5 22719 /* This is taken from FIPS CAVS. */
4585988f
AB
22720 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
22721 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
22722 .klen = 16,
22723 .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
22724 .alen = 0,
22725 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
22726 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
22727 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
22728 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
22729 .ilen = 32,
22730 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
22731 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
22732 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
22733 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
22734 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
22735 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
22736 .rlen = 48,
0bc5a6c5
HX
22737 }, {
22738 .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
22739 "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
22740 .klen = 16,
22741 .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
22742 "\x30\x60\x15\x56\x00\x00\x00\x00",
22743 .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
22744 "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
22745 "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
22746 "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
22747 .alen = 32,
22748 .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
22749 "\xa9\x28\x63\xba\x12\xa3\x14\x85"
22750 "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
22751 "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
22752 .ilen = 32,
22753 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
22754 "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
22755 "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
22756 "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
22757 "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
22758 "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
22759 .rlen = 48,
22760 }, {
22761 .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
22762 "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
22763 "\x53\x14\x73\x66\x8d\x88\xf6\x80",
22764 .klen = 24,
22765 .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
22766 "\x50\x20\xda\xe2\x00\x00\x00\x00",
22767 .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
22768 "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
22769 "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
22770 "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
22771 .alen = 32,
22772 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
22773 "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
22774 .rlen = 16,
22775 }, {
22776 .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
22777 "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
22778 "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
22779 .klen = 24,
22780 .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
22781 "\xef\x09\x2e\x94\x00\x00\x00\x00",
22782 .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
22783 "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
22784 "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
22785 "\xe3\x00\x73\x69\x84\x69\x87\x79",
22786 .alen = 32,
22787 .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
22788 "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
22789 "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
22790 "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
22791 .ilen = 32,
22792 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
22793 "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
22794 "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
22795 "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
22796 "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
22797 "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
22798 .rlen = 48,
22799 }, {
22800 .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
22801 "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
22802 "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
22803 "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
22804 .klen = 32,
22805 .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
22806 "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
22807 .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
22808 "\x78\x2b\x94\x02\x29\x0f\x42\x27"
22809 "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
22810 "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
22811 .alen = 32,
22812 .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
22813 "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
22814 "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
22815 "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
22816 .ilen = 32,
22817 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
22818 "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
22819 "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
22820 "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
22821 "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
22822 .rlen = 40,
22823 }, {
22824 .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
22825 "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
22826 "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
22827 "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
22828 .klen = 32,
22829 .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
22830 "\x43\xf6\x1e\x50",
22831 .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
22832 "\x13\x02\x01\x0c\x83\x4c\x96\x35"
22833 "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
22834 "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
22835 .alen = 32,
22836 .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
22837 "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
22838 "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
22839 "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
22840 .ilen = 32,
22841 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
22842 "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
22843 "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
22844 "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
22845 "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
22846 "\x7b\x72\x8a\xf7",
22847 .rlen = 44,
22848 }, {
22849 .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
22850 "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
22851 "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
22852 "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
22853 .klen = 32,
22854 .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
22855 "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
22856 .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
22857 "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
22858 "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
22859 "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
22860 .alen = 32,
22861 .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
22862 "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
22863 "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
22864 "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
22865 .ilen = 32,
22866 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
22867 "\xef\xbb\x80\x21\x04\x6c\x58\x09"
22868 "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
22869 "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
22870 "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
22871 "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
22872 .rlen = 48,
4585988f 22873 }
da7f033d
HX
22874};
22875
22876static struct aead_testvec aes_ccm_dec_tv_template[] = {
22877 { /* From RFC 3610 */
22878 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22879 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22880 .klen = 16,
22881 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
22882 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22883 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22884 .alen = 8,
22885 .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
22886 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
22887 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
22888 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
22889 .ilen = 31,
22890 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22891 "\x10\x11\x12\x13\x14\x15\x16\x17"
22892 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
22893 .rlen = 23,
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\x07\x06\x05\x04"
22899 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22900 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22901 "\x08\x09\x0a\x0b",
22902 .alen = 12,
22903 .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
22904 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
22905 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
22906 "\x7d\x9c\x2d\x93",
22907 .ilen = 28,
22908 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22909 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22910 "\x1c\x1d\x1e\x1f",
22911 .rlen = 20,
22912 }, {
22913 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22914 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22915 .klen = 16,
22916 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
22917 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22918 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
22919 .alen = 8,
22920 .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
22921 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
22922 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
22923 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
22924 "\x7e\x5f\x4e",
22925 .ilen = 35,
22926 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
22927 "\x10\x11\x12\x13\x14\x15\x16\x17"
22928 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
22929 "\x20",
22930 .rlen = 25,
22931 }, {
22932 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
22933 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
22934 .klen = 16,
22935 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
22936 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
22937 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
22938 "\x08\x09\x0a\x0b",
22939 .alen = 12,
22940 .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
22941 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
22942 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
22943 "\x4d\x99\x99\x88\xdd",
22944 .ilen = 29,
22945 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
22946 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
22947 "\x1c\x1d\x1e",
22948 .rlen = 19,
22949 }, {
22950 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22951 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22952 .klen = 16,
22953 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
22954 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22955 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
22956 .alen = 8,
22957 .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
22958 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
22959 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
22960 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
22961 .ilen = 32,
22962 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
22963 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
22964 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
22965 .rlen = 24,
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\xd5\x60\x91\x2d\x3f\x70"
22971 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22972 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
22973 "\x20\xea\x60\xc0",
22974 .alen = 12,
22975 .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
22976 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
22977 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
22978 "\x5a\xe0\x70\x45\x51",
22979 .ilen = 29,
22980 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
22981 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
22982 "\x3a\x80\x3b\xa8\x7f",
22983 .rlen = 21,
22984 }, {
22985 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
22986 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
22987 .klen = 16,
22988 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
22989 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
22990 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
22991 .alen = 8,
22992 .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
22993 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
22994 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
22995 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
22996 "\xba",
22997 .ilen = 33,
22998 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
22999 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
23000 "\x98\x09\xd6\x7d\xbe\xdd\x18",
23001 .rlen = 23,
0bc5a6c5
HX
23002 }, {
23003 /* This is taken from FIPS CAVS. */
23004 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
23005 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
23006 .klen = 16,
23007 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
23008 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
5d667322 23009 .alen = 0,
0bc5a6c5
HX
23010 .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
23011 .ilen = 8,
23012 .result = "\x00",
23013 .rlen = 0,
23014 .novrfy = 1,
5d667322 23015 }, {
0bc5a6c5
HX
23016 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
23017 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
23018 .klen = 16,
23019 .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81"
23020 "\x7f\x88\x94\x68\x00\x00\x00\x00",
23021 .alen = 0,
23022 .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
23023 .ilen = 8,
23024 .result = "\x00",
23025 .rlen = 0,
5d667322 23026 }, {
0bc5a6c5
HX
23027 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
23028 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
23029 .klen = 16,
23030 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
23031 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
23032 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
23033 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
23034 "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
23035 "\xd8\x94\x99\x91\x81\x54\x62\x57",
5d667322 23036 .alen = 32,
0bc5a6c5
HX
23037 .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
23038 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
23039 "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
23040 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
23041 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
23042 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
23043 .ilen = 48,
23044 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
23045 "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
23046 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
23047 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
23048 .rlen = 32,
23049 .novrfy = 1,
5d667322 23050 }, {
0bc5a6c5
HX
23051 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
23052 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
23053 .klen = 16,
23054 .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
23055 "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
23056 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
23057 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
23058 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
23059 "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
5d667322 23060 .alen = 32,
0bc5a6c5
HX
23061 .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
23062 "\xad\x83\x52\x6d\x71\x03\x25\x1c"
23063 "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
23064 "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
23065 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
23066 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
23067 .ilen = 48,
23068 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
23069 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
23070 "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
23071 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
23072 .rlen = 32,
5d667322 23073 }, {
0bc5a6c5
HX
23074 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
23075 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
23076 "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
23077 .klen = 24,
23078 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23079 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
23080 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
23081 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
23082 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
23083 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
5d667322
JW
23084 .alen = 32,
23085 .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
23086 .ilen = 8,
23087 .result = "\x00",
23088 .rlen = 0,
23089 }, {
23090 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23091 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
0bc5a6c5
HX
23092 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
23093 .klen = 24,
23094 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23095 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
5d667322
JW
23096 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
23097 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
23098 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
23099 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
23100 .alen = 32,
23101 .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
23102 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
23103 "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
23104 "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
23105 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
23106 .ilen = 40,
23107 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
23108 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
23109 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
23110 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
23111 .rlen = 32,
23112 }, {
23113 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23114 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
0bc5a6c5
HX
23115 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
23116 .klen = 24,
23117 .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
23118 "\xad\x71\xaa\x1f\x00\x00\x00\x00",
5d667322
JW
23119 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
23120 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
23121 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
23122 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
23123 .alen = 32,
23124 .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
23125 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
23126 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
23127 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
23128 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
23129 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
23130 .ilen = 48,
23131 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
23132 "\x99\x2a\xa8\xca\x04\x25\x45\x90"
23133 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
23134 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
23135 .rlen = 32,
23136 .novrfy = 1,
23137 }, {
23138 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
23139 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
23140 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
0bc5a6c5
HX
23141 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
23142 .klen = 32,
23143 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
23144 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
5d667322
JW
23145 .alen = 0,
23146 .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
23147 .ilen = 8,
23148 .result = "\x00",
23149 .rlen = 0,
23150 }, {
23151 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
23152 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
23153 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
0bc5a6c5
HX
23154 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
23155 .klen = 32,
23156 .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
23157 "\x36\x58\xe0\x6b\x00\x00\x00\x00",
5d667322
JW
23158 .alen = 0,
23159 .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
23160 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
23161 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
23162 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
23163 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
23164 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
23165 .ilen = 48,
23166 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
23167 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
23168 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
23169 "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
23170 .rlen = 32,
23171 .novrfy = 1,
23172 }, {
23173 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
23174 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
23175 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
0bc5a6c5
HX
23176 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
23177 .klen = 32,
23178 .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
23179 "\x44\x89\x40\x7b\x00\x00\x00\x00",
5d667322
JW
23180 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
23181 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
23182 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
23183 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
23184 .alen = 32,
23185 .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
23186 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
23187 "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
23188 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
23189 "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
23190 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
23191 .ilen = 48,
23192 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
23193 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
23194 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
23195 "\x04\x49\x3b\x19\x93\x57\x25\x5d",
23196 .rlen = 32,
23197 },
23198};
23199
0bc5a6c5
HX
23200/*
23201 * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
23202 * use a 13-byte nonce, we only support an 11-byte nonce. Worse,
23203 * they use AD lengths which are not valid ESP header lengths.
23204 *
23205 * These vectors are copied/generated from the ones for rfc4106 with
23206 * the key truncated by one byte..
23207 */
23208static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
23209 { /* Generated using Crypto++ */
23210 .key = zeroed_string,
23211 .klen = 19,
23212 .iv = zeroed_string,
23213 .input = zeroed_string,
23214 .ilen = 16,
23215 .assoc = zeroed_string,
23216 .alen = 16,
23217 .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
23218 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
23219 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
23220 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
23221 .rlen = 32,
23222 },{
23223 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23224 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23225 "\x00\x00\x00",
23226 .klen = 19,
23227 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23228 .input = zeroed_string,
23229 .ilen = 16,
23230 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
23231 "\x00\x00\x00\x00\x00\x00\x00\x01",
23232 .alen = 16,
23233 .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
23234 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
23235 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
23236 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
23237 .rlen = 32,
23238
23239 }, {
23240 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23241 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23242 "\x00\x00\x00",
23243 .klen = 19,
23244 .iv = zeroed_string,
23245 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23246 "\x01\x01\x01\x01\x01\x01\x01\x01",
23247 .ilen = 16,
23248 .assoc = zeroed_string,
23249 .alen = 16,
23250 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23251 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23252 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
23253 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
23254 .rlen = 32,
23255 }, {
23256 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23257 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23258 "\x00\x00\x00",
23259 .klen = 19,
23260 .iv = zeroed_string,
23261 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23262 "\x01\x01\x01\x01\x01\x01\x01\x01",
23263 .ilen = 16,
23264 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23265 "\x00\x00\x00\x00\x00\x00\x00\x00",
23266 .alen = 16,
23267 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23268 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23269 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
23270 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
23271 .rlen = 32,
23272 }, {
23273 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23274 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23275 "\x00\x00\x00",
23276 .klen = 19,
23277 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23278 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23279 "\x01\x01\x01\x01\x01\x01\x01\x01",
23280 .ilen = 16,
23281 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23282 "\x00\x00\x00\x00\x00\x00\x00\x01",
23283 .alen = 16,
23284 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23285 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23286 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
23287 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
23288 .rlen = 32,
23289 }, {
23290 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23291 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23292 "\x00\x00\x00",
23293 .klen = 19,
23294 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23295 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
23296 "\x01\x01\x01\x01\x01\x01\x01\x01"
23297 "\x01\x01\x01\x01\x01\x01\x01\x01"
23298 "\x01\x01\x01\x01\x01\x01\x01\x01"
23299 "\x01\x01\x01\x01\x01\x01\x01\x01"
23300 "\x01\x01\x01\x01\x01\x01\x01\x01"
23301 "\x01\x01\x01\x01\x01\x01\x01\x01"
23302 "\x01\x01\x01\x01\x01\x01\x01\x01",
23303 .ilen = 64,
23304 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23305 "\x00\x00\x00\x00\x00\x00\x00\x01",
23306 .alen = 16,
23307 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23308 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23309 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
23310 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
23311 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
23312 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
23313 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
23314 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
23315 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
23316 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
23317 .rlen = 80,
23318 }, {
23319 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
23320 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23321 "\x00\x00\x00",
23322 .klen = 19,
23323 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
23324 .input = "\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 "\xff\xff\xff\xff\xff\xff\xff\xff"
23331 "\xff\xff\xff\xff\xff\xff\xff\xff"
23332 "\xff\xff\xff\xff\xff\xff\xff\xff"
23333 "\xff\xff\xff\xff\xff\xff\xff\xff"
23334 "\xff\xff\xff\xff\xff\xff\xff\xff"
23335 "\xff\xff\xff\xff\xff\xff\xff\xff"
23336 "\xff\xff\xff\xff\xff\xff\xff\xff"
23337 "\xff\xff\xff\xff\xff\xff\xff\xff"
23338 "\xff\xff\xff\xff\xff\xff\xff\xff"
23339 "\xff\xff\xff\xff\xff\xff\xff\xff"
23340 "\xff\xff\xff\xff\xff\xff\xff\xff"
23341 "\xff\xff\xff\xff\xff\xff\xff\xff"
23342 "\xff\xff\xff\xff\xff\xff\xff\xff"
23343 "\xff\xff\xff\xff\xff\xff\xff\xff"
23344 "\xff\xff\xff\xff\xff\xff\xff\xff"
23345 "\xff\xff\xff\xff\xff\xff\xff\xff"
23346 "\xff\xff\xff\xff\xff\xff\xff\xff"
23347 "\xff\xff\xff\xff\xff\xff\xff\xff",
23348 .ilen = 192,
23349 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
23350 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
23351 "\x89\xab\xcd\xef",
23352 .alen = 20,
23353 .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
23354 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
23355 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
23356 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
23357 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
23358 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
23359 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
23360 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
23361 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
23362 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
23363 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
23364 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
23365 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
23366 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
23367 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
23368 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
23369 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
23370 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
23371 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
23372 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
23373 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
23374 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
23375 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
23376 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
23377 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
23378 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
23379 .rlen = 208,
23380 }, { /* From draft-mcgrew-gcm-test-01 */
23381 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23382 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23383 "\x2E\x44\x3B",
23384 .klen = 19,
23385 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
23386 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
23387 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
23388 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
23389 "\x38\xD3\x01\x00\x00\x01\x00\x00"
23390 "\x00\x00\x00\x00\x04\x5F\x73\x69"
23391 "\x70\x04\x5F\x75\x64\x70\x03\x73"
23392 "\x69\x70\x09\x63\x79\x62\x65\x72"
23393 "\x63\x69\x74\x79\x02\x64\x6B\x00"
23394 "\x00\x21\x00\x01\x01\x02\x02\x01",
23395 .ilen = 72,
23396 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
23397 "\x00\x00\x00\x00\x49\x56\xED\x7E"
23398 "\x3B\x24\x4C\xFE",
23399 .alen = 20,
23400 .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
23401 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
23402 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
23403 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
23404 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
23405 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
23406 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
23407 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
23408 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
23409 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
23410 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
23411 .rlen = 88,
23412 }, {
23413 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23414 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
23415 "\xCA\xFE\xBA",
23416 .klen = 19,
23417 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23418 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
23419 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
23420 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
23421 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
23422 "\x00\x01\x00\x00\x00\x00\x00\x00"
23423 "\x03\x73\x69\x70\x09\x63\x79\x62"
23424 "\x65\x72\x63\x69\x74\x79\x02\x64"
23425 "\x6B\x00\x00\x01\x00\x01\x00\x01",
23426 .ilen = 64,
23427 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
23428 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23429 .alen = 16,
23430 .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
23431 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
23432 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
23433 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
23434 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
23435 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
23436 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
23437 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
23438 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
23439 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
23440 .rlen = 80,
23441 }, {
23442 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23443 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23444 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23445 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23446 "\x11\x22\x33",
23447 .klen = 35,
23448 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
23449 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
23450 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
23451 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
23452 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
23453 "\x70\x02\x40\x00\x20\xBF\x00\x00"
23454 "\x02\x04\x05\xB4\x01\x01\x04\x02"
23455 "\x01\x02\x02\x01",
23456 .ilen = 52,
23457 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
23458 "\x01\x02\x03\x04\x05\x06\x07\x08",
23459 .alen = 16,
23460 .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
23461 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
23462 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
23463 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
23464 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
23465 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
23466 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
23467 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
23468 "\x5A\x48\x6A\x3E",
23469 .rlen = 68,
23470 }, {
23471 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
23472 "\x00\x00\x00\x00\x00\x00\x00\x00"
23473 "\x00\x00\x00",
23474 .klen = 19,
23475 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
23476 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
23477 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
23478 "\x01\x01\x01\x01\x08\x00\x07\x5C"
23479 "\x02\x00\x44\x00\x61\x62\x63\x64"
23480 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23481 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23482 "\x75\x76\x77\x61\x62\x63\x64\x65"
23483 "\x66\x67\x68\x69\x01\x02\x02\x01",
23484 .ilen = 64,
23485 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
23486 "\x00\x00\x00\x00\x00\x00\x00\x00",
23487 .alen = 16,
23488 .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
23489 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
23490 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
23491 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
23492 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
23493 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
23494 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
23495 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
23496 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
23497 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
23498 .rlen = 80,
23499 }, {
23500 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23501 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23502 "\x57\x69\x0E",
23503 .klen = 19,
23504 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23505 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
23506 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
23507 "\x01\x01\x01\x01\x08\x00\x08\x5C"
23508 "\x02\x00\x43\x00\x61\x62\x63\x64"
23509 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23510 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23511 "\x75\x76\x77\x61\x62\x63\x64\x65"
23512 "\x66\x67\x68\x69\x01\x02\x02\x01",
23513 .ilen = 64,
23514 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23515 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23516 "\xA2\xFC\xA1\xA3",
23517 .alen = 20,
23518 .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
23519 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
23520 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
23521 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
23522 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
23523 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
23524 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
23525 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
23526 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
23527 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
23528 .rlen = 80,
23529 }, {
23530 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23531 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23532 "\x57\x69\x0E",
23533 .klen = 19,
23534 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23535 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
23536 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
23537 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
23538 "\x01\x02\x02\x01",
23539 .ilen = 28,
23540 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23541 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23542 "\xA2\xFC\xA1\xA3",
23543 .alen = 20,
23544 .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
23545 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
23546 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
23547 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
23548 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
23549 "\x08\xB4\x22\xE4",
23550 .rlen = 44,
23551 }, {
23552 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23553 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
23554 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
23555 "\xCA\xFE\xBA",
23556 .klen = 27,
23557 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23558 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
23559 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
23560 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
23561 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
23562 "\x50\x10\x16\xD0\x75\x68\x00\x01",
23563 .ilen = 40,
23564 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
23565 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
23566 .alen = 16,
23567 .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
23568 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
23569 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
23570 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
23571 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
23572 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
23573 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
23574 .rlen = 56,
23575 }, {
23576 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23577 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23578 "\xDE\xCA\xF8",
23579 .klen = 19,
23580 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
23581 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
23582 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
23583 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
23584 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
23585 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
23586 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
23587 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
23588 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
23589 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
23590 "\x23\x01\x01\x01",
23591 .ilen = 76,
23592 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
23593 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
23594 "\xCE\xFA\xCE\x74",
23595 .alen = 20,
23596 .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
23597 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
23598 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
23599 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
23600 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
23601 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
23602 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
23603 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
23604 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
23605 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
23606 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
23607 "\x12\x25\x0B\xF9",
23608 .rlen = 92,
23609 }, {
23610 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23611 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23612 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23613 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23614 "\x73\x61\x6C",
23615 .klen = 35,
23616 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
23617 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
23618 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
23619 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
23620 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
23621 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
23622 .ilen = 40,
23623 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
23624 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
23625 "\x69\x76\x65\x63",
23626 .alen = 20,
23627 .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
23628 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
23629 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
23630 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
23631 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
23632 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
23633 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
23634 .rlen = 56,
23635 }, {
23636 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23637 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23638 "\x57\x69\x0E",
23639 .klen = 19,
23640 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23641 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
23642 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
23643 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
23644 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
23645 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
23646 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
23647 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
23648 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
23649 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
23650 "\x15\x01\x01\x01",
23651 .ilen = 76,
23652 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
23653 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23654 "\xA2\xFC\xA1\xA3",
23655 .alen = 20,
23656 .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
23657 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
23658 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
23659 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
23660 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
23661 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
23662 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
23663 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
23664 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
23665 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
23666 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
23667 "\xCC\xF7\x46\x6F",
23668 .rlen = 92,
23669 }, {
23670 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23671 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23672 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23673 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23674 "\x73\x61\x6C",
23675 .klen = 35,
23676 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
23677 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
23678 "\x6C\x65\x73\x01\x74\x68\x65\x01"
23679 "\x6E\x65\x74\x77\x65\x01\x64\x65"
23680 "\x66\x69\x6E\x65\x01\x74\x68\x65"
23681 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
23682 "\x67\x69\x65\x73\x01\x74\x68\x61"
23683 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
23684 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
23685 "\x72\x72\x6F\x77\x01\x02\x02\x01",
23686 .ilen = 72,
23687 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
23688 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
23689 "\x69\x76\x65\x63",
23690 .alen = 20,
23691 .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
23692 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
23693 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
23694 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
23695 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
23696 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
23697 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
23698 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
23699 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
23700 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
23701 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
23702 .rlen = 88,
23703 }, {
23704 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
23705 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
23706 "\xD9\x66\x42",
23707 .klen = 19,
23708 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
23709 .input = "\x01\x02\x02\x01",
23710 .ilen = 4,
23711 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
23712 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
23713 .alen = 16,
23714 .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
23715 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
23716 "\xF7\x61\x24\x62",
23717 .rlen = 20,
23718 }, {
23719 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
23720 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
23721 "\xDE\xCA\xF8",
23722 .klen = 19,
23723 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
23724 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
23725 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
23726 "\x62\x65\x00\x01",
23727 .ilen = 20,
23728 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
23729 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
23730 "\xCE\xFA\xCE\x74",
23731 .alen = 20,
23732 .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
23733 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
23734 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
23735 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
23736 "\x17\x17\x65\xAD",
23737 .rlen = 36,
23738 }, {
23739 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
23740 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
23741 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
23742 "\x62\x65\x66\x6F\x72\x65\x69\x61"
23743 "\x74\x75\x72",
23744 .klen = 35,
23745 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
23746 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
23747 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
23748 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
23749 "\x02\x00\x07\x00\x61\x62\x63\x64"
23750 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23751 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23752 "\x01\x02\x02\x01",
23753 .ilen = 52,
23754 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
23755 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
23756 "\x67\x65\x74\x6D",
23757 .alen = 20,
23758 .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
23759 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
23760 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
23761 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
23762 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
23763 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
23764 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
23765 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
23766 "\x39\xDB\xC8\xDC",
23767 .rlen = 68,
23768 }, {
23769 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
23770 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
23771 "\x57\x69\x0E",
23772 .klen = 19,
23773 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
23774 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
23775 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
23776 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
23777 "\x02\x00\x07\x00\x61\x62\x63\x64"
23778 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
23779 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
23780 "\x01\x02\x02\x01",
23781 .ilen = 52,
23782 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
23783 "\x10\x10\x10\x10\x4E\x28\x00\x00"
23784 "\xA2\xFC\xA1\xA3",
23785 .alen = 20,
23786 .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
23787 "\x10\x60\x54\x25\xEB\x80\x04\x93"
23788 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
23789 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
23790 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
23791 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
23792 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
23793 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
23794 "\xF4\x95\x5D\x4F",
23795 .rlen = 68,
23796 }, {
23797 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23798 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23799 "\x22\x43\x3C",
23800 .klen = 19,
23801 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
23802 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
23803 "\x61\x62\x63\x64\x65\x66\x67\x68"
23804 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
23805 "\x71\x72\x73\x74\x01\x02\x02\x01",
23806 .ilen = 32,
23807 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
23808 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
23809 "\x3A\x23\x4B\xFD",
23810 .alen = 20,
23811 .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
23812 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
23813 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
23814 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
23815 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
23816 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
23817 .rlen = 48,
23818 }
23819};
23820
23821static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
23822 { /* Generated using Crypto++ */
23823 .key = zeroed_string,
23824 .klen = 19,
23825 .iv = zeroed_string,
23826 .result = zeroed_string,
23827 .rlen = 16,
23828 .assoc = zeroed_string,
23829 .alen = 16,
23830 .input = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
23831 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
23832 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
23833 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
23834 .ilen = 32,
23835 },{
23836 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23837 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23838 "\x00\x00\x00",
23839 .klen = 19,
23840 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23841 .result = zeroed_string,
23842 .rlen = 16,
23843 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
23844 "\x00\x00\x00\x00\x00\x00\x00\x01",
23845 .alen = 16,
23846 .input = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
23847 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
23848 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
23849 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
23850 .ilen = 32,
23851
23852 }, {
23853 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23854 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23855 "\x00\x00\x00",
23856 .klen = 19,
23857 .iv = zeroed_string,
23858 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23859 "\x01\x01\x01\x01\x01\x01\x01\x01",
23860 .rlen = 16,
23861 .assoc = zeroed_string,
23862 .alen = 16,
23863 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23864 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23865 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
23866 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
23867 .ilen = 32,
23868 }, {
23869 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23870 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23871 "\x00\x00\x00",
23872 .klen = 19,
23873 .iv = zeroed_string,
23874 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23875 "\x01\x01\x01\x01\x01\x01\x01\x01",
23876 .rlen = 16,
23877 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23878 "\x00\x00\x00\x00\x00\x00\x00\x00",
23879 .alen = 16,
23880 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
23881 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
23882 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
23883 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
23884 .ilen = 32,
23885 }, {
23886 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23887 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23888 "\x00\x00\x00",
23889 .klen = 19,
23890 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23891 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23892 "\x01\x01\x01\x01\x01\x01\x01\x01",
23893 .rlen = 16,
23894 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23895 "\x00\x00\x00\x00\x00\x00\x00\x01",
23896 .alen = 16,
23897 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23898 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23899 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
23900 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
23901 .ilen = 32,
23902 }, {
23903 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
23904 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
23905 "\x00\x00\x00",
23906 .klen = 19,
23907 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
23908 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
23909 "\x01\x01\x01\x01\x01\x01\x01\x01"
23910 "\x01\x01\x01\x01\x01\x01\x01\x01"
23911 "\x01\x01\x01\x01\x01\x01\x01\x01"
23912 "\x01\x01\x01\x01\x01\x01\x01\x01"
23913 "\x01\x01\x01\x01\x01\x01\x01\x01"
23914 "\x01\x01\x01\x01\x01\x01\x01\x01"
23915 "\x01\x01\x01\x01\x01\x01\x01\x01",
23916 .rlen = 64,
23917 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
23918 "\x00\x00\x00\x00\x00\x00\x00\x01",
23919 .alen = 16,
23920 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
23921 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
23922 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
23923 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
23924 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
23925 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
23926 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
23927 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
23928 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
23929 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
23930 .ilen = 80,
23931 }, {
23932 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
23933 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23934 "\x00\x00\x00",
23935 .klen = 19,
23936 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
23937 .result = "\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 "\xff\xff\xff\xff\xff\xff\xff\xff"
23944 "\xff\xff\xff\xff\xff\xff\xff\xff"
23945 "\xff\xff\xff\xff\xff\xff\xff\xff"
23946 "\xff\xff\xff\xff\xff\xff\xff\xff"
23947 "\xff\xff\xff\xff\xff\xff\xff\xff"
23948 "\xff\xff\xff\xff\xff\xff\xff\xff"
23949 "\xff\xff\xff\xff\xff\xff\xff\xff"
23950 "\xff\xff\xff\xff\xff\xff\xff\xff"
23951 "\xff\xff\xff\xff\xff\xff\xff\xff"
23952 "\xff\xff\xff\xff\xff\xff\xff\xff"
23953 "\xff\xff\xff\xff\xff\xff\xff\xff"
23954 "\xff\xff\xff\xff\xff\xff\xff\xff"
23955 "\xff\xff\xff\xff\xff\xff\xff\xff"
23956 "\xff\xff\xff\xff\xff\xff\xff\xff"
23957 "\xff\xff\xff\xff\xff\xff\xff\xff"
23958 "\xff\xff\xff\xff\xff\xff\xff\xff"
23959 "\xff\xff\xff\xff\xff\xff\xff\xff"
23960 "\xff\xff\xff\xff\xff\xff\xff\xff",
23961 .rlen = 192,
23962 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
23963 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
23964 "\x89\xab\xcd\xef",
23965 .alen = 20,
23966 .input = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
23967 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
23968 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
23969 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
23970 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
23971 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
23972 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
23973 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
23974 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
23975 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
23976 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
23977 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
23978 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
23979 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
23980 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
23981 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
23982 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
23983 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
23984 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
23985 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
23986 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
23987 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
23988 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
23989 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
23990 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
23991 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
23992 .ilen = 208,
23993 }, { /* From draft-mcgrew-gcm-test-01 */
23994 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
23995 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
23996 "\x2E\x44\x3B",
23997 .klen = 19,
23998 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
23999 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
24000 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
24001 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
24002 "\x38\xD3\x01\x00\x00\x01\x00\x00"
24003 "\x00\x00\x00\x00\x04\x5F\x73\x69"
24004 "\x70\x04\x5F\x75\x64\x70\x03\x73"
24005 "\x69\x70\x09\x63\x79\x62\x65\x72"
24006 "\x63\x69\x74\x79\x02\x64\x6B\x00"
24007 "\x00\x21\x00\x01\x01\x02\x02\x01",
24008 .rlen = 72,
24009 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
24010 "\x00\x00\x00\x00\x49\x56\xED\x7E"
24011 "\x3B\x24\x4C\xFE",
24012 .alen = 20,
24013 .input = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
24014 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
24015 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
24016 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
24017 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
24018 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
24019 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
24020 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
24021 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
24022 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
24023 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
24024 .ilen = 88,
24025 }, {
24026 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24027 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
24028 "\xCA\xFE\xBA",
24029 .klen = 19,
24030 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24031 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
24032 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
24033 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
24034 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
24035 "\x00\x01\x00\x00\x00\x00\x00\x00"
24036 "\x03\x73\x69\x70\x09\x63\x79\x62"
24037 "\x65\x72\x63\x69\x74\x79\x02\x64"
24038 "\x6B\x00\x00\x01\x00\x01\x00\x01",
24039 .rlen = 64,
24040 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
24041 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24042 .alen = 16,
24043 .input = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
24044 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
24045 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
24046 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
24047 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
24048 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
24049 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
24050 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
24051 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
24052 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
24053 .ilen = 80,
24054 }, {
24055 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24056 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24057 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24058 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24059 "\x11\x22\x33",
24060 .klen = 35,
24061 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
24062 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
24063 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
24064 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
24065 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
24066 "\x70\x02\x40\x00\x20\xBF\x00\x00"
24067 "\x02\x04\x05\xB4\x01\x01\x04\x02"
24068 "\x01\x02\x02\x01",
24069 .rlen = 52,
24070 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
24071 "\x01\x02\x03\x04\x05\x06\x07\x08",
24072 .alen = 16,
24073 .input = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
24074 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
24075 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
24076 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
24077 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
24078 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
24079 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
24080 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
24081 "\x5A\x48\x6A\x3E",
24082 .ilen = 68,
24083 }, {
24084 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
24085 "\x00\x00\x00\x00\x00\x00\x00\x00"
24086 "\x00\x00\x00",
24087 .klen = 19,
24088 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
24089 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
24090 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
24091 "\x01\x01\x01\x01\x08\x00\x07\x5C"
24092 "\x02\x00\x44\x00\x61\x62\x63\x64"
24093 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24094 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24095 "\x75\x76\x77\x61\x62\x63\x64\x65"
24096 "\x66\x67\x68\x69\x01\x02\x02\x01",
24097 .rlen = 64,
24098 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
24099 "\x00\x00\x00\x00\x00\x00\x00\x00",
24100 .alen = 16,
24101 .input = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
24102 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
24103 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
24104 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
24105 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
24106 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
24107 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
24108 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
24109 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
24110 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
24111 .ilen = 80,
24112 }, {
24113 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24114 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24115 "\x57\x69\x0E",
24116 .klen = 19,
24117 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24118 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
24119 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
24120 "\x01\x01\x01\x01\x08\x00\x08\x5C"
24121 "\x02\x00\x43\x00\x61\x62\x63\x64"
24122 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24123 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24124 "\x75\x76\x77\x61\x62\x63\x64\x65"
24125 "\x66\x67\x68\x69\x01\x02\x02\x01",
24126 .rlen = 64,
24127 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24128 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24129 "\xA2\xFC\xA1\xA3",
24130 .alen = 20,
24131 .input = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
24132 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
24133 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
24134 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
24135 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
24136 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
24137 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
24138 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
24139 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
24140 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
24141 .ilen = 80,
24142 }, {
24143 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24144 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24145 "\x57\x69\x0E",
24146 .klen = 19,
24147 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24148 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
24149 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
24150 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
24151 "\x01\x02\x02\x01",
24152 .rlen = 28,
24153 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24154 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24155 "\xA2\xFC\xA1\xA3",
24156 .alen = 20,
24157 .input = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
24158 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
24159 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
24160 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
24161 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
24162 "\x08\xB4\x22\xE4",
24163 .ilen = 44,
24164 }, {
24165 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24166 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
24167 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
24168 "\xCA\xFE\xBA",
24169 .klen = 27,
24170 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24171 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
24172 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
24173 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
24174 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
24175 "\x50\x10\x16\xD0\x75\x68\x00\x01",
24176 .rlen = 40,
24177 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
24178 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
24179 .alen = 16,
24180 .input = "\x05\x22\x15\xD1\x52\x56\x85\x04"
24181 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
24182 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
24183 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
24184 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
24185 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
24186 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
24187 .ilen = 56,
24188 }, {
24189 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24190 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24191 "\xDE\xCA\xF8",
24192 .klen = 19,
24193 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
24194 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
24195 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
24196 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
24197 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
24198 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
24199 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
24200 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
24201 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
24202 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
24203 "\x23\x01\x01\x01",
24204 .rlen = 76,
24205 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
24206 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
24207 "\xCE\xFA\xCE\x74",
24208 .alen = 20,
24209 .input = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
24210 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
24211 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
24212 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
24213 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
24214 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
24215 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
24216 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
24217 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
24218 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
24219 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
24220 "\x12\x25\x0B\xF9",
24221 .ilen = 92,
24222 }, {
24223 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24224 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24225 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24226 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24227 "\x73\x61\x6C",
24228 .klen = 35,
24229 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
24230 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
24231 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
24232 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
24233 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
24234 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
24235 .rlen = 40,
24236 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
24237 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
24238 "\x69\x76\x65\x63",
24239 .alen = 20,
24240 .input = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
24241 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
24242 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
24243 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
24244 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
24245 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
24246 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
24247 .ilen = 56,
24248 }, {
24249 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24250 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24251 "\x57\x69\x0E",
24252 .klen = 19,
24253 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24254 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
24255 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
24256 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
24257 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
24258 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
24259 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
24260 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
24261 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
24262 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
24263 "\x15\x01\x01\x01",
24264 .rlen = 76,
24265 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
24266 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24267 "\xA2\xFC\xA1\xA3",
24268 .alen = 20,
24269 .input = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
24270 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
24271 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
24272 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
24273 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
24274 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
24275 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
24276 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
24277 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
24278 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
24279 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
24280 "\xCC\xF7\x46\x6F",
24281 .ilen = 92,
24282 }, {
24283 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24284 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24285 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24286 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24287 "\x73\x61\x6C",
24288 .klen = 35,
24289 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
24290 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
24291 "\x6C\x65\x73\x01\x74\x68\x65\x01"
24292 "\x6E\x65\x74\x77\x65\x01\x64\x65"
24293 "\x66\x69\x6E\x65\x01\x74\x68\x65"
24294 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
24295 "\x67\x69\x65\x73\x01\x74\x68\x61"
24296 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
24297 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
24298 "\x72\x72\x6F\x77\x01\x02\x02\x01",
24299 .rlen = 72,
24300 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
24301 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
24302 "\x69\x76\x65\x63",
24303 .alen = 20,
24304 .input = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
24305 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
24306 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
24307 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
24308 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
24309 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
24310 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
24311 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
24312 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
24313 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
24314 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
24315 .ilen = 88,
24316 }, {
24317 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
24318 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
24319 "\xD9\x66\x42",
24320 .klen = 19,
24321 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
24322 .result = "\x01\x02\x02\x01",
24323 .rlen = 4,
24324 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
24325 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
24326 .alen = 16,
24327 .input = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
24328 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
24329 "\xF7\x61\x24\x62",
24330 .ilen = 20,
24331 }, {
24332 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
24333 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
24334 "\xDE\xCA\xF8",
24335 .klen = 19,
24336 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
24337 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
24338 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
24339 "\x62\x65\x00\x01",
24340 .rlen = 20,
24341 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
24342 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
24343 "\xCE\xFA\xCE\x74",
24344 .alen = 20,
24345 .input = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
24346 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
24347 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
24348 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
24349 "\x17\x17\x65\xAD",
24350 .ilen = 36,
24351 }, {
24352 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
24353 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
24354 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
24355 "\x62\x65\x66\x6F\x72\x65\x69\x61"
24356 "\x74\x75\x72",
24357 .klen = 35,
24358 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
24359 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
24360 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
24361 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
24362 "\x02\x00\x07\x00\x61\x62\x63\x64"
24363 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24364 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24365 "\x01\x02\x02\x01",
24366 .rlen = 52,
24367 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
24368 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
24369 "\x67\x65\x74\x6D",
24370 .alen = 20,
24371 .input = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
24372 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
24373 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
24374 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
24375 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
24376 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
24377 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
24378 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
24379 "\x39\xDB\xC8\xDC",
24380 .ilen = 68,
24381 }, {
24382 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
24383 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
24384 "\x57\x69\x0E",
24385 .klen = 19,
24386 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
24387 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
24388 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
24389 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
24390 "\x02\x00\x07\x00\x61\x62\x63\x64"
24391 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
24392 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
24393 "\x01\x02\x02\x01",
24394 .rlen = 52,
24395 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
24396 "\x10\x10\x10\x10\x4E\x28\x00\x00"
24397 "\xA2\xFC\xA1\xA3",
24398 .alen = 20,
24399 .input = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
24400 "\x10\x60\x54\x25\xEB\x80\x04\x93"
24401 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
24402 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
24403 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
24404 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
24405 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
24406 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
24407 "\xF4\x95\x5D\x4F",
24408 .ilen = 68,
24409 }, {
24410 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
24411 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
24412 "\x22\x43\x3C",
24413 .klen = 19,
24414 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
24415 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
24416 "\x61\x62\x63\x64\x65\x66\x67\x68"
24417 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
24418 "\x71\x72\x73\x74\x01\x02\x02\x01",
24419 .rlen = 32,
24420 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
24421 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
24422 "\x3A\x23\x4B\xFD",
24423 .alen = 20,
24424 .input = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
24425 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
24426 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
24427 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
24428 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
24429 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
24430 .ilen = 48,
24431 }
24432};
24433
af2b76b5
MW
24434/*
24435 * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
24436 */
24437#define RFC7539_ENC_TEST_VECTORS 2
24438#define RFC7539_DEC_TEST_VECTORS 2
24439static struct aead_testvec rfc7539_enc_tv_template[] = {
24440 {
24441 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
24442 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
24443 "\x90\x91\x92\x93\x94\x95\x96\x97"
24444 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
24445 .klen = 32,
24446 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
24447 "\x44\x45\x46\x47",
24448 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
24449 "\xc4\xc5\xc6\xc7",
24450 .alen = 12,
24451 .input = "\x4c\x61\x64\x69\x65\x73\x20\x61"
24452 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
24453 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
24454 "\x74\x68\x65\x20\x63\x6c\x61\x73"
24455 "\x73\x20\x6f\x66\x20\x27\x39\x39"
24456 "\x3a\x20\x49\x66\x20\x49\x20\x63"
24457 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
24458 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
24459 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
24460 "\x74\x69\x70\x20\x66\x6f\x72\x20"
24461 "\x74\x68\x65\x20\x66\x75\x74\x75"
24462 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
24463 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
24464 "\x75\x6c\x64\x20\x62\x65\x20\x69"
24465 "\x74\x2e",
24466 .ilen = 114,
24467 .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
24468 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
24469 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
24470 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
24471 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
24472 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
24473 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
24474 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
24475 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
24476 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
24477 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
24478 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
24479 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
24480 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
24481 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
24482 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
24483 "\x06\x91",
24484 .rlen = 130,
24485 }, {
24486 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24487 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24488 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24489 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24490 .klen = 32,
24491 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
24492 "\x05\x06\x07\x08",
24493 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24494 "\x00\x00\x4e\x91",
24495 .alen = 12,
24496 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24497 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24498 "\x61\x72\x65\x20\x64\x72\x61\x66"
24499 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24500 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24501 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24502 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24503 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24504 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24505 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24506 "\x20\x75\x70\x64\x61\x74\x65\x64"
24507 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24508 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24509 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24510 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24511 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24512 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24513 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24514 "\x20\x49\x74\x20\x69\x73\x20\x69"
24515 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24516 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24517 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24518 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24519 "\x66\x74\x73\x20\x61\x73\x20\x72"
24520 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24521 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24522 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24523 "\x63\x69\x74\x65\x20\x74\x68\x65"
24524 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24525 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24526 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24527 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24528 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24529 "\x9d",
24530 .ilen = 265,
24531 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24532 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24533 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24534 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24535 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24536 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24537 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24538 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24539 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24540 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24541 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24542 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24543 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24544 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24545 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24546 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24547 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24548 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24549 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24550 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24551 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24552 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24553 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24554 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24555 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24556 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24557 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24558 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24559 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24560 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24561 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24562 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24563 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24564 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24565 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24566 "\x38",
24567 .rlen = 281,
24568 },
24569};
24570
24571static struct aead_testvec rfc7539_dec_tv_template[] = {
24572 {
24573 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
24574 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
24575 "\x90\x91\x92\x93\x94\x95\x96\x97"
24576 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
24577 .klen = 32,
24578 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
24579 "\x44\x45\x46\x47",
24580 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
24581 "\xc4\xc5\xc6\xc7",
24582 .alen = 12,
24583 .input = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
24584 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
24585 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
24586 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
24587 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
24588 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
24589 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
24590 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
24591 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
24592 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
24593 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
24594 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
24595 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
24596 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
24597 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
24598 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
24599 "\x06\x91",
24600 .ilen = 130,
24601 .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
24602 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
24603 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
24604 "\x74\x68\x65\x20\x63\x6c\x61\x73"
24605 "\x73\x20\x6f\x66\x20\x27\x39\x39"
24606 "\x3a\x20\x49\x66\x20\x49\x20\x63"
24607 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
24608 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
24609 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
24610 "\x74\x69\x70\x20\x66\x6f\x72\x20"
24611 "\x74\x68\x65\x20\x66\x75\x74\x75"
24612 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
24613 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
24614 "\x75\x6c\x64\x20\x62\x65\x20\x69"
24615 "\x74\x2e",
24616 .rlen = 114,
24617 }, {
24618 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24619 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24620 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24621 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24622 .klen = 32,
24623 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
24624 "\x05\x06\x07\x08",
24625 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
24626 "\x00\x00\x4e\x91",
24627 .alen = 12,
24628 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24629 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24630 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24631 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24632 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24633 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24634 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24635 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24636 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24637 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24638 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24639 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24640 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24641 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24642 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24643 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24644 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24645 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24646 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24647 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24648 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24649 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24650 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
5900758d
MW
24651 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24652 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24653 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24654 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24655 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24656 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24657 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24658 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24659 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24660 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24661 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24662 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24663 "\x38",
24664 .ilen = 281,
24665 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24666 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24667 "\x61\x72\x65\x20\x64\x72\x61\x66"
24668 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24669 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24670 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24671 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24672 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24673 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24674 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24675 "\x20\x75\x70\x64\x61\x74\x65\x64"
24676 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24677 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24678 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24679 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24680 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24681 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24682 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24683 "\x20\x49\x74\x20\x69\x73\x20\x69"
24684 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24685 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24686 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24687 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24688 "\x66\x74\x73\x20\x61\x73\x20\x72"
24689 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24690 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24691 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24692 "\x63\x69\x74\x65\x20\x74\x68\x65"
24693 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24694 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24695 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24696 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24697 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24698 "\x9d",
24699 .rlen = 265,
24700 },
24701};
24702
24703/*
24704 * draft-irtf-cfrg-chacha20-poly1305
24705 */
24706#define RFC7539ESP_DEC_TEST_VECTORS 1
24707#define RFC7539ESP_ENC_TEST_VECTORS 1
24708static struct aead_testvec rfc7539esp_enc_tv_template[] = {
24709 {
24710 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24711 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24712 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24713 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
24714 "\x00\x00\x00\x00",
24715 .klen = 36,
24716 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
24717 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
74790922
HX
24718 "\x00\x00\x4e\x91\x01\x02\x03\x04"
24719 "\x05\x06\x07\x08",
24720 .alen = 20,
5900758d
MW
24721 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24722 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24723 "\x61\x72\x65\x20\x64\x72\x61\x66"
24724 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24725 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24726 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24727 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24728 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24729 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24730 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24731 "\x20\x75\x70\x64\x61\x74\x65\x64"
24732 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24733 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24734 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24735 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24736 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24737 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24738 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24739 "\x20\x49\x74\x20\x69\x73\x20\x69"
24740 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24741 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24742 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24743 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24744 "\x66\x74\x73\x20\x61\x73\x20\x72"
24745 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24746 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24747 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24748 "\x63\x69\x74\x65\x20\x74\x68\x65"
24749 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24750 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24751 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24752 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24753 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24754 "\x9d",
24755 .ilen = 265,
24756 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24757 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24758 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24759 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24760 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24761 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24762 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24763 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24764 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24765 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24766 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24767 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24768 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24769 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24770 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24771 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24772 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24773 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24774 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24775 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24776 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24777 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24778 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
24779 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24780 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24781 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24782 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24783 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24784 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24785 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24786 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24787 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24788 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24789 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24790 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24791 "\x38",
24792 .rlen = 281,
24793 },
24794};
24795
24796static struct aead_testvec rfc7539esp_dec_tv_template[] = {
24797 {
24798 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24799 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24800 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24801 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
24802 "\x00\x00\x00\x00",
24803 .klen = 36,
24804 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
24805 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
74790922
HX
24806 "\x00\x00\x4e\x91\x01\x02\x03\x04"
24807 "\x05\x06\x07\x08",
24808 .alen = 20,
5900758d
MW
24809 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
24810 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
24811 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
24812 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
24813 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
24814 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
24815 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
24816 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
24817 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
24818 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
24819 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
24820 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
24821 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
24822 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
24823 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
24824 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
24825 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
24826 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
24827 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
24828 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
24829 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
24830 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
24831 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
af2b76b5
MW
24832 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
24833 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
24834 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
24835 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
24836 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
24837 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
24838 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
24839 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
24840 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
24841 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
24842 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
24843 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
24844 "\x38",
24845 .ilen = 281,
24846 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
24847 "\x2d\x44\x72\x61\x66\x74\x73\x20"
24848 "\x61\x72\x65\x20\x64\x72\x61\x66"
24849 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
24850 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
24851 "\x64\x20\x66\x6f\x72\x20\x61\x20"
24852 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
24853 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
24854 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
24855 "\x64\x20\x6d\x61\x79\x20\x62\x65"
24856 "\x20\x75\x70\x64\x61\x74\x65\x64"
24857 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
24858 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
24859 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
24860 "\x20\x62\x79\x20\x6f\x74\x68\x65"
24861 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
24862 "\x6e\x74\x73\x20\x61\x74\x20\x61"
24863 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
24864 "\x20\x49\x74\x20\x69\x73\x20\x69"
24865 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
24866 "\x69\x61\x74\x65\x20\x74\x6f\x20"
24867 "\x75\x73\x65\x20\x49\x6e\x74\x65"
24868 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
24869 "\x66\x74\x73\x20\x61\x73\x20\x72"
24870 "\x65\x66\x65\x72\x65\x6e\x63\x65"
24871 "\x20\x6d\x61\x74\x65\x72\x69\x61"
24872 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
24873 "\x63\x69\x74\x65\x20\x74\x68\x65"
24874 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
24875 "\x74\x68\x61\x6e\x20\x61\x73\x20"
24876 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
24877 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
24878 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
24879 "\x9d",
24880 .rlen = 265,
24881 },
24882};
24883
35351988
SM
24884/*
24885 * All key wrapping test vectors taken from
24886 * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
24887 *
24888 * Note: as documented in keywrap.c, the ivout for encryption is the first
24889 * semiblock of the ciphertext from the test vector. For decryption, iv is
24890 * the first semiblock of the ciphertext.
24891 */
24892static struct cipher_testvec aes_kw_enc_tv_template[] = {
24893 {
24894 .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
24895 "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
24896 .klen = 16,
24897 .input = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
24898 "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
24899 .ilen = 16,
24900 .result = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
24901 "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
24902 .rlen = 16,
24903 .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
24904 },
24905};
24906
24907static struct cipher_testvec aes_kw_dec_tv_template[] = {
24908 {
24909 .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
24910 "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
24911 "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
24912 "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
24913 .klen = 32,
24914 .input = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
24915 "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
24916 .ilen = 16,
24917 .result = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
24918 "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
24919 .rlen = 16,
24920 .iv = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
24921 },
24922};
24923
e08ca2da
JW
24924/*
24925 * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
24926 * test vectors, taken from Appendix B.2.9 and B.2.10:
24927 * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
24928 * Only AES-128 is supported at this time.
24929 */
24930#define ANSI_CPRNG_AES_TEST_VECTORS 6
24931
24932static struct cprng_testvec ansi_cprng_aes_tv_template[] = {
24933 {
24934 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24935 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24936 .klen = 16,
24937 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24938 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
24939 .dtlen = 16,
24940 .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
24941 "\x00\x00\x00\x00\x00\x00\x00\x00",
24942 .vlen = 16,
24943 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
24944 "\x84\x79\x66\x85\xc1\x2f\x76\x41",
24945 .rlen = 16,
24946 .loops = 1,
24947 }, {
24948 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24949 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24950 .klen = 16,
24951 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24952 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
24953 .dtlen = 16,
24954 .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
24955 "\x00\x00\x00\x00\x00\x00\x00\x00",
24956 .vlen = 16,
24957 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
24958 "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
24959 .rlen = 16,
24960 .loops = 1,
24961 }, {
24962 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24963 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24964 .klen = 16,
24965 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24966 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
24967 .dtlen = 16,
24968 .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
24969 "\x00\x00\x00\x00\x00\x00\x00\x00",
24970 .vlen = 16,
24971 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
24972 "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
24973 .rlen = 16,
24974 .loops = 1,
24975 }, {
24976 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24977 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24978 .klen = 16,
24979 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24980 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
24981 .dtlen = 16,
24982 .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
24983 "\x00\x00\x00\x00\x00\x00\x00\x00",
24984 .vlen = 16,
24985 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
24986 "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
24987 .rlen = 16,
24988 .loops = 1,
24989 }, {
24990 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
24991 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
24992 .klen = 16,
24993 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
24994 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
24995 .dtlen = 16,
24996 .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
24997 "\x00\x00\x00\x00\x00\x00\x00\x00",
24998 .vlen = 16,
24999 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
25000 "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
25001 .rlen = 16,
25002 .loops = 1,
25003 }, { /* Monte Carlo Test */
25004 .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
25005 "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
25006 .klen = 16,
25007 .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
25008 "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
25009 .dtlen = 16,
25010 .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
25011 "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
25012 .vlen = 16,
25013 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
25014 "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
25015 .rlen = 16,
25016 .loops = 10000,
25017 },
25018};
25019
3332ee2a
SM
25020/*
25021 * SP800-90A DRBG Test vectors from
25022 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25023 *
25024 * Test vectors for DRBG with prediction resistance. All types of DRBGs
25025 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25026 * w/o personalization string, w/ and w/o additional input string).
25027 */
25028static struct drbg_testvec drbg_pr_sha256_tv_template[] = {
25029 {
25030 .entropy = (unsigned char *)
25031 "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
25032 "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
25033 "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
25034 "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
25035 .entropylen = 48,
25036 .entpra = (unsigned char *)
25037 "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
25038 "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
25039 "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
25040 .entprb = (unsigned char *)
25041 "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
25042 "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
25043 "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
25044 .entprlen = 32,
25045 .expected = (unsigned char *)
25046 "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
25047 "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
25048 "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
25049 "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
25050 "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
25051 "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
25052 "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
25053 "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
25054 "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
25055 "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
25056 "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
25057 .expectedlen = 128,
25058 .addtla = NULL,
25059 .addtlb = NULL,
25060 .addtllen = 0,
25061 .pers = NULL,
25062 .perslen = 0,
25063 }, {
25064 .entropy = (unsigned char *)
25065 "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
25066 "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
25067 "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
25068 "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
25069 .entropylen = 48,
25070 .entpra = (unsigned char *)
25071 "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
25072 "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
25073 "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
25074 .entprb = (unsigned char *)
25075 "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
25076 "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
25077 "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
25078 .entprlen = 32,
25079 .expected = (unsigned char *)
25080 "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
25081 "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
25082 "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
25083 "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
25084 "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
25085 "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
25086 "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
25087 "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
25088 "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
25089 "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
25090 "\x50\x47\xa3\x63\x81\x16\xaf\x19",
25091 .expectedlen = 128,
25092 .addtla = (unsigned char *)
25093 "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
25094 "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
25095 "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
25096 .addtlb = (unsigned char *)
25097 "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
25098 "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
25099 "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
25100 .addtllen = 32,
25101 .pers = NULL,
25102 .perslen = 0,
25103 }, {
25104 .entropy = (unsigned char *)
25105 "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
25106 "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
25107 "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
25108 "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
25109 .entropylen = 48,
25110 .entpra = (unsigned char *)
25111 "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
25112 "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
25113 "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
25114 .entprb = (unsigned char *)
25115 "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
25116 "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
25117 "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
25118 .entprlen = 32,
25119 .expected = (unsigned char *)
25120 "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
25121 "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
25122 "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
25123 "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
25124 "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
25125 "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
25126 "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
25127 "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
25128 "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
25129 "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
25130 "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
25131 .expectedlen = 128,
25132 .addtla = NULL,
25133 .addtlb = NULL,
25134 .addtllen = 0,
25135 .pers = (unsigned char *)
25136 "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
25137 "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
25138 "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
25139 .perslen = 32,
25140 }, {
25141 .entropy = (unsigned char *)
25142 "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
25143 "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
25144 "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
25145 "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
25146 .entropylen = 48,
25147 .entpra = (unsigned char *)
25148 "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
25149 "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
25150 "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
25151 .entprb = (unsigned char *)
25152 "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
25153 "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
25154 "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
25155 .entprlen = 32,
25156 .expected = (unsigned char *)
25157 "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
25158 "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
25159 "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
25160 "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
25161 "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
25162 "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
25163 "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
25164 "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
25165 "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
25166 "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
25167 "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
25168 .expectedlen = 128,
25169 .addtla = (unsigned char *)
25170 "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
25171 "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
25172 "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
25173 .addtlb = (unsigned char *)
25174 "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
25175 "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
25176 "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
25177 .addtllen = 32,
25178 .pers = (unsigned char *)
25179 "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
25180 "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
25181 "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
25182 .perslen = 32,
25183 },
25184};
25185
25186static struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
25187 {
25188 .entropy = (unsigned char *)
25189 "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
25190 "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
25191 "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
25192 "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
25193 .entropylen = 48,
25194 .entpra = (unsigned char *)
25195 "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
25196 "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
25197 "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
25198 .entprb = (unsigned char *)
25199 "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
25200 "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
25201 "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
25202 .entprlen = 32,
25203 .expected = (unsigned char *)
25204 "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
25205 "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
25206 "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
25207 "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
25208 "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
25209 "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
25210 "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
25211 "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
25212 "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
25213 "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
25214 "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
25215 .expectedlen = 128,
25216 .addtla = NULL,
25217 .addtlb = NULL,
25218 .addtllen = 0,
25219 .pers = NULL,
25220 .perslen = 0,
25221 }, {
25222 .entropy = (unsigned char *)
25223 "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
25224 "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
25225 "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
25226 "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
25227 .entropylen = 48,
25228 .entpra = (unsigned char *)
25229 "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
25230 "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
25231 "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
25232 .entprb = (unsigned char *)
25233 "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
25234 "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
25235 "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
25236 .entprlen = 32,
25237 .expected = (unsigned char *)
25238 "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
25239 "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
25240 "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
25241 "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
25242 "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
25243 "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
25244 "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
25245 "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
25246 "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
25247 "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
25248 "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
25249 .expectedlen = 128,
25250 .addtla = (unsigned char *)
25251 "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
25252 "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
25253 "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
25254 .addtlb = (unsigned char *)
25255 "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
25256 "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
25257 "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
25258 .addtllen = 32,
25259 .pers = NULL,
25260 .perslen = 0,
25261 }, {
25262 .entropy = (unsigned char *)
25263 "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
25264 "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
25265 "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
25266 "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
25267 .entropylen = 48,
25268 .entpra = (unsigned char *)
25269 "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
25270 "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
25271 "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
25272 .entprb = (unsigned char *)
25273 "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
25274 "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
25275 "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
25276 .entprlen = 32,
25277 .expected = (unsigned char *)
25278 "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
25279 "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
25280 "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
25281 "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
25282 "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
25283 "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
25284 "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
25285 "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
25286 "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
25287 "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
25288 "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
25289 .expectedlen = 128,
25290 .addtla = NULL,
25291 .addtlb = NULL,
25292 .addtllen = 0,
25293 .pers = (unsigned char *)
25294 "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
25295 "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
25296 "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
25297 .perslen = 32,
25298 }, {
25299 .entropy = (unsigned char *)
25300 "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
25301 "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
25302 "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
25303 "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
25304 .entropylen = 48,
25305 .entpra = (unsigned char *)
25306 "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
25307 "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
25308 "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
25309 .entprb = (unsigned char *)
25310 "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
25311 "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
25312 "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
25313 .entprlen = 32,
25314 .expected = (unsigned char *)
25315 "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
25316 "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
25317 "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
25318 "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
25319 "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
25320 "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
25321 "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
25322 "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
25323 "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
25324 "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
25325 "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
25326 .expectedlen = 128,
25327 .addtla = (unsigned char *)
25328 "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
25329 "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
25330 "\x86\x88\x55\x28\xc1\x69\xdd\x76",
25331 .addtlb = (unsigned char *)
25332 "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
25333 "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
25334 "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
25335 .addtllen = 32,
25336 .pers = (unsigned char *)
25337 "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
25338 "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
25339 "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
25340 .perslen = 32,
25341 },
25342};
25343
25344static struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
25345 {
25346 .entropy = (unsigned char *)
25347 "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
25348 "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
25349 .entropylen = 24,
25350 .entpra = (unsigned char *)
25351 "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
25352 "\xb4\xec\x80\xb1",
25353 .entprb = (unsigned char *)
25354 "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
25355 "\x28\x07\xeb\xc2",
25356 .entprlen = 16,
25357 .expected = (unsigned char *)
25358 "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
25359 "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
25360 "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
25361 "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
25362 "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
25363 "\x8a\xf1\x23\xa8",
25364 .expectedlen = 64,
25365 .addtla = NULL,
25366 .addtlb = NULL,
25367 .addtllen = 0,
25368 .pers = NULL,
25369 .perslen = 0,
25370 }, {
25371 .entropy = (unsigned char *)
25372 "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
25373 "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
25374 .entropylen = 24,
25375 .entpra = (unsigned char *)
25376 "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
25377 "\x67\xd1\x08\xf8",
25378 .entprb = (unsigned char *)
25379 "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
25380 "\xd4\xba\x04\x58",
25381 .entprlen = 16,
25382 .expected = (unsigned char *)
25383 "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
25384 "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
25385 "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
25386 "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
25387 "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
25388 "\xc1\x02\x41\x82",
25389 .expectedlen = 64,
25390 .addtla = (unsigned char *)
25391 "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
25392 "\xeb\xb3\x01\x76",
25393 .addtlb = (unsigned char *)
25394 "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
25395 "\xd0\x7f\xcc\x43",
25396 .addtllen = 16,
25397 .pers = NULL,
25398 .perslen = 0,
25399 }, {
25400 .entropy = (unsigned char *)
25401 "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
25402 "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
25403 .entropylen = 24,
25404 .entpra = (unsigned char *)
25405 "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
25406 "\xc3\x0f\xe3\xb0",
25407 .entprb = (unsigned char *)
25408 "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
25409 "\xd6\x9c\x9d\xe8",
25410 .entprlen = 16,
25411 .expected = (unsigned char *)
25412 "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
25413 "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
25414 "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
25415 "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
25416 "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
25417 "\x72\x82\x0c\xcf",
25418 .expectedlen = 64,
25419 .addtla = NULL,
25420 .addtlb = NULL,
25421 .addtllen = 0,
25422 .pers = (unsigned char *)
25423 "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
25424 "\x21\x52\xb3\xad",
25425 .perslen = 16,
25426 }, {
25427 .entropy = (unsigned char *)
25428 "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
25429 "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
25430 .entropylen = 24,
25431 .entpra = (unsigned char *)
25432 "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
25433 "\xc4\x2c\xe8\x10",
25434 .entprb = (unsigned char *)
25435 "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
25436 "\x08\xf7\xa5\x01",
25437 .entprlen = 16,
25438 .expected = (unsigned char *)
25439 "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
25440 "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
25441 "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
25442 "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
25443 "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
25444 "\x23\xc5\x1f\x68",
25445 .expectedlen = 64,
25446 .addtla = (unsigned char *)
25447 "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
25448 "\x23\x6d\xad\x1d",
25449 .addtlb = (unsigned char *)
25450 "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
25451 "\xbc\x59\x31\x8c",
25452 .addtllen = 16,
25453 .pers = (unsigned char *)
25454 "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
25455 "\x37\x3c\x5c\x0b",
25456 .perslen = 16,
25457 },
25458};
25459
25460/*
25461 * SP800-90A DRBG Test vectors from
25462 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25463 *
25464 * Test vectors for DRBG without prediction resistance. All types of DRBGs
25465 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25466 * w/o personalization string, w/ and w/o additional input string).
25467 */
25468static struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
25469 {
25470 .entropy = (unsigned char *)
25471 "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
25472 "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
25473 "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
25474 "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
25475 .entropylen = 48,
25476 .expected = (unsigned char *)
25477 "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
25478 "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
25479 "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
25480 "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
25481 "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
25482 "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
25483 "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
25484 "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
25485 "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
25486 "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
25487 "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
25488 .expectedlen = 128,
25489 .addtla = NULL,
25490 .addtlb = NULL,
25491 .addtllen = 0,
25492 .pers = NULL,
25493 .perslen = 0,
25494 }, {
25495 .entropy = (unsigned char *)
25496 "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
25497 "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
25498 "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
25499 "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
25500 .entropylen = 48,
25501 .expected = (unsigned char *)
25502 "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
25503 "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
25504 "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
25505 "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
25506 "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
25507 "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
25508 "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
25509 "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
25510 "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
25511 "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
25512 "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
25513 .expectedlen = 128,
25514 .addtla = (unsigned char *)
25515 "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
25516 "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
25517 "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
25518 .addtlb = (unsigned char *)
25519 "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
25520 "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
25521 "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
25522 .addtllen = 32,
25523 .pers = NULL,
25524 .perslen = 0,
25525 }, {
25526 .entropy = (unsigned char *)
25527 "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
25528 "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
25529 "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
25530 "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
25531 .entropylen = 48,
25532 .expected = (unsigned char *)
25533 "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
25534 "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
25535 "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
25536 "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
25537 "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
25538 "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
25539 "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
25540 "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
25541 "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
25542 "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
25543 "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
25544 .expectedlen = 128,
25545 .addtla = NULL,
25546 .addtlb = NULL,
25547 .addtllen = 0,
25548 .pers = (unsigned char *)
25549 "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
25550 "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
25551 "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
25552 .perslen = 32,
25553 }, {
25554 .entropy = (unsigned char *)
25555 "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
25556 "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
25557 "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
25558 "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
25559 .entropylen = 48,
25560 .expected = (unsigned char *)
25561 "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
25562 "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
25563 "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
25564 "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
25565 "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
25566 "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
25567 "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
25568 "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
25569 "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
25570 "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
25571 "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
25572 .expectedlen = 128,
25573 .addtla = (unsigned char *)
25574 "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
25575 "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
25576 "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
25577 .addtlb = (unsigned char *)
25578 "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
25579 "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
25580 "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
25581 .addtllen = 32,
25582 .pers = (unsigned char *)
25583 "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
25584 "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
25585 "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
25586 .perslen = 32,
25587 },
25588};
25589
25590static struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
25591 {
25592 .entropy = (unsigned char *)
25593 "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
25594 "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
25595 "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
25596 "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
25597 .entropylen = 48,
25598 .expected = (unsigned char *)
25599 "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
25600 "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
25601 "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
25602 "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
25603 "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
25604 "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
25605 "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
25606 "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
25607 "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
25608 "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
25609 "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
25610 .expectedlen = 128,
25611 .addtla = NULL,
25612 .addtlb = NULL,
25613 .addtllen = 0,
25614 .pers = NULL,
25615 .perslen = 0,
25616 }, {
25617 .entropy = (unsigned char *)
25618 "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
25619 "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
25620 "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
25621 "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
25622 .entropylen = 48,
25623 .expected = (unsigned char *)
25624 "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
25625 "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
25626 "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
25627 "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
25628 "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
25629 "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
25630 "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
25631 "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
25632 "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
25633 "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
25634 "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
25635 .expectedlen = 128,
25636 .addtla = (unsigned char *)
25637 "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
25638 "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
25639 "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
25640 .addtlb = (unsigned char *)
25641 "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
25642 "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
25643 "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
25644 .addtllen = 32,
25645 .pers = NULL,
25646 .perslen = 0,
25647 }, {
25648 .entropy = (unsigned char *)
25649 "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
25650 "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
25651 "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
25652 "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
25653 .entropylen = 48,
25654 .expected = (unsigned char *)
25655 "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
25656 "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
25657 "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
25658 "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
25659 "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
25660 "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
25661 "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
25662 "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
25663 "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
25664 "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
25665 "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
25666 .expectedlen = 128,
25667 .addtla = NULL,
25668 .addtlb = NULL,
25669 .addtllen = 0,
25670 .pers = (unsigned char *)
25671 "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
25672 "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
25673 "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
25674 .perslen = 32,
25675 }, {
25676 .entropy = (unsigned char *)
25677 "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
25678 "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
25679 "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
25680 "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
25681 .entropylen = 48,
25682 .expected = (unsigned char *)
25683 "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
25684 "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
25685 "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
25686 "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
25687 "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
25688 "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
25689 "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
25690 "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
25691 "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
25692 "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
25693 "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
25694 .expectedlen = 128,
25695 .addtla = (unsigned char *)
25696 "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
25697 "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
25698 "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
25699 .addtlb = (unsigned char *)
25700 "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
25701 "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
25702 "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
25703 .addtllen = 32,
25704 .pers = (unsigned char *)
25705 "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
25706 "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
25707 "\x36\x60\x3b\xca\x37\xc9\xee\x29",
25708 .perslen = 32,
25709 },
25710};
25711
25712static struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
25713 {
25714 .entropy = (unsigned char *)
25715 "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
25716 "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
25717 "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
25718 "\xac\x9b\xbb\x00",
25719 .entropylen = 40,
25720 .expected = (unsigned char *)
25721 "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
25722 "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
25723 "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
25724 "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
25725 "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
25726 "\x9a\x9d\xf1\x0d",
25727 .expectedlen = 64,
25728 .addtla = NULL,
25729 .addtlb = NULL,
25730 .addtllen = 0,
25731 .pers = NULL,
25732 .perslen = 0,
25733 },
25734};
25735
25736static struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
25737 {
25738 .entropy = (unsigned char *)
25739 "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
25740 "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
25741 "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
25742 "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
25743 .entropylen = 48,
25744 .expected = (unsigned char *)
25745 "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
25746 "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
25747 "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
25748 "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
25749 "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
25750 "\xb4\xf0\x7e\x1d",
25751 .expectedlen = 64,
25752 .addtla = NULL,
25753 .addtlb = NULL,
25754 .addtllen = 0,
25755 .pers = NULL,
25756 .perslen = 0,
25757 },
25758};
25759
25760static struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
25761 {
25762 .entropy = (unsigned char *)
25763 "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
25764 "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
25765 .entropylen = 24,
25766 .expected = (unsigned char *)
25767 "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
25768 "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
25769 "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
25770 "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
25771 "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
25772 "\xcb\x2d\xd6\xb0",
25773 .expectedlen = 64,
25774 .addtla = NULL,
25775 .addtlb = NULL,
25776 .addtllen = 0,
25777 .pers = NULL,
25778 .perslen = 0,
25779 }, {
25780 .entropy = (unsigned char *)
25781 "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
25782 "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
25783 .entropylen = 24,
25784 .expected = (unsigned char *)
25785 "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
25786 "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
25787 "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
25788 "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
25789 "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
25790 "\xc3\xdf\xb3\x81",
25791 .expectedlen = 64,
25792 .addtla = (unsigned char *)
25793 "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
25794 "\x91\x4d\x81\x56",
25795 .addtlb = (unsigned char *)
25796 "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
25797 "\x4a\x55\xd1\xc6",
25798 .addtllen = 16,
25799 .pers = NULL,
25800 .perslen = 0,
25801 }, {
25802 .entropy = (unsigned char *)
25803 "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
25804 "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
25805 .entropylen = 24,
25806 .expected = (unsigned char *)
25807 "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
25808 "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
25809 "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
25810 "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
25811 "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
25812 "\x34\x30\x0c\x3d",
25813 .expectedlen = 64,
25814 .addtla = NULL,
25815 .addtlb = NULL,
25816 .addtllen = 0,
25817 .pers = (unsigned char *)
25818 "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
25819 "\x0b\xc6\x97\x54",
25820 .perslen = 16,
25821 }, {
25822 .entropy = (unsigned char *)
25823 "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
25824 "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
25825 .entropylen = 24,
25826 .expected = (unsigned char *)
25827 "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
25828 "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
25829 "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
25830 "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
25831 "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
25832 "\x2b\x49\x1e\x5c",
25833 .expectedlen = 64,
25834 .addtla = (unsigned char *)
25835 "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
25836 "\x44\x85\xe7\xfe",
25837 .addtlb = (unsigned char *)
25838 "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
25839 "\x82\x16\x62\x7f",
25840 .addtllen = 16,
25841 .pers = (unsigned char *)
25842 "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
25843 "\x8e\xcf\xe0\x02",
25844 .perslen = 16,
25845 },
25846};
25847
da7f033d 25848/* Cast5 test vectors from RFC 2144 */
a2c58260
JG
25849#define CAST5_ENC_TEST_VECTORS 4
25850#define CAST5_DEC_TEST_VECTORS 4
25851#define CAST5_CBC_ENC_TEST_VECTORS 1
25852#define CAST5_CBC_DEC_TEST_VECTORS 1
9cac3a29
JK
25853#define CAST5_CTR_ENC_TEST_VECTORS 2
25854#define CAST5_CTR_DEC_TEST_VECTORS 2
da7f033d
HX
25855
25856static struct cipher_testvec cast5_enc_tv_template[] = {
25857 {
25858 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
25859 "\x23\x45\x67\x89\x34\x56\x78\x9a",
25860 .klen = 16,
25861 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25862 .ilen = 8,
25863 .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
25864 .rlen = 8,
25865 }, {
25866 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
25867 "\x23\x45",
25868 .klen = 10,
25869 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25870 .ilen = 8,
25871 .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
25872 .rlen = 8,
25873 }, {
25874 .key = "\x01\x23\x45\x67\x12",
25875 .klen = 5,
25876 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
25877 .ilen = 8,
25878 .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
25879 .rlen = 8,
a2c58260
JG
25880 }, { /* Generated from TF test vectors */
25881 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
25882 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
25883 .klen = 16,
25884 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
25885 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
25886 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
25887 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
25888 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
25889 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
25890 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
25891 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
25892 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
25893 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
25894 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
25895 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
25896 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
25897 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
25898 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
25899 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
25900 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
25901 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
25902 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
25903 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
25904 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
25905 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
25906 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
25907 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
25908 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
25909 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
25910 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
25911 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
25912 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
25913 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
25914 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
25915 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
25916 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
25917 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
25918 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
25919 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
25920 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
25921 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
25922 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
25923 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
25924 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
25925 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
25926 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
25927 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
25928 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
25929 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
25930 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
25931 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
25932 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
25933 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
25934 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
25935 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
25936 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
25937 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
25938 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
25939 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
25940 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
25941 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
25942 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
25943 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
25944 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
25945 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
25946 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
25947 .ilen = 496,
25948 .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
25949 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
25950 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
25951 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
25952 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
25953 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
25954 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
25955 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
25956 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
25957 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
25958 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
25959 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
25960 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
25961 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
25962 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
25963 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
25964 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
25965 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
25966 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
25967 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
25968 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
25969 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
25970 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
25971 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
25972 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
25973 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
25974 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
25975 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
25976 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
25977 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
25978 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
25979 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
25980 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
25981 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
25982 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
25983 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
25984 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
25985 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
25986 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
25987 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
25988 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
25989 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
25990 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
25991 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
25992 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
25993 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
25994 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
25995 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
25996 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
25997 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
25998 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
25999 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
26000 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
26001 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
26002 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
26003 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
26004 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
26005 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
26006 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
26007 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
26008 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
26009 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
26010 .rlen = 496,
f44d83d1 26011 .also_non_np = 1,
3b9b8fe0
AB
26012 .np = 3,
26013 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
26014 },
26015};
26016
26017static struct cipher_testvec cast5_dec_tv_template[] = {
26018 {
26019 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
26020 "\x23\x45\x67\x89\x34\x56\x78\x9a",
26021 .klen = 16,
26022 .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
26023 .ilen = 8,
26024 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26025 .rlen = 8,
26026 }, {
26027 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
26028 "\x23\x45",
26029 .klen = 10,
26030 .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
26031 .ilen = 8,
26032 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26033 .rlen = 8,
26034 }, {
26035 .key = "\x01\x23\x45\x67\x12",
26036 .klen = 5,
26037 .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
26038 .ilen = 8,
26039 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26040 .rlen = 8,
a2c58260
JG
26041 }, { /* Generated from TF test vectors */
26042 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26043 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26044 .klen = 16,
26045 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26046 .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
26047 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
26048 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
26049 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
26050 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
26051 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
26052 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
26053 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
26054 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
26055 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
26056 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
26057 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
26058 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
26059 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
26060 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
26061 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
26062 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
26063 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
26064 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
26065 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
26066 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
26067 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
26068 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
26069 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
26070 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
26071 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
26072 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
26073 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
26074 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
26075 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
26076 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
26077 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
26078 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
26079 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
26080 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
26081 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
26082 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
26083 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
26084 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
26085 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
26086 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
26087 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
26088 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
26089 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
26090 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
26091 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
26092 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
26093 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
26094 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
26095 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
26096 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
26097 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
26098 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
26099 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
26100 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
26101 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
26102 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
26103 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
26104 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
26105 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
26106 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
26107 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
26108 .ilen = 496,
26109 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26110 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26111 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26112 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26113 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26114 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26115 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26116 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26117 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26118 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26119 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26120 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26121 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26122 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26123 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26124 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26125 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26126 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26127 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26128 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26129 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26130 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26131 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26132 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26133 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26134 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26135 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26136 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26137 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26138 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26139 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26140 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26141 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26142 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26143 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26144 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26145 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26146 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26147 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26148 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26149 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26150 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26151 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26152 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26153 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26154 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26155 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26156 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26157 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26158 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26159 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26160 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26161 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26162 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26163 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26164 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26165 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26166 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26167 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26168 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26169 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26170 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26171 .rlen = 496,
f44d83d1 26172 .also_non_np = 1,
3b9b8fe0
AB
26173 .np = 3,
26174 .tap = { 496 - 20, 4, 16 },
a2c58260
JG
26175 },
26176};
26177
26178static struct cipher_testvec cast5_cbc_enc_tv_template[] = {
26179 { /* Generated from TF test vectors */
26180 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26181 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26182 .klen = 16,
26183 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26184 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26185 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26186 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26187 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26188 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26189 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26190 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26191 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26192 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26193 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26194 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26195 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26196 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26197 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26198 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26199 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26200 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26201 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26202 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26203 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26204 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26205 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26206 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26207 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26208 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26209 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26210 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26211 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26212 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26213 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26214 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26215 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26216 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26217 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26218 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26219 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26220 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26221 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26222 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26223 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26224 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26225 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26226 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26227 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26228 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26229 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26230 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26231 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26232 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26233 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26234 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26235 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26236 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26237 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26238 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26239 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26240 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26241 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26242 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26243 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26244 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26245 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26246 .ilen = 496,
26247 .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
26248 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26249 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26250 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26251 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26252 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26253 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26254 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26255 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26256 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26257 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26258 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26259 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26260 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26261 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26262 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26263 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26264 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26265 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26266 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26267 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26268 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26269 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26270 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26271 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26272 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26273 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26274 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26275 "\x90\x12\x37\x49\x27\x98\x69\x18"
26276 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26277 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26278 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26279 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26280 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26281 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26282 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26283 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26284 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26285 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26286 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26287 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26288 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26289 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26290 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26291 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26292 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26293 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26294 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26295 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26296 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26297 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26298 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26299 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26300 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26301 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26302 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26303 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26304 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26305 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26306 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26307 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26308 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
26309 .rlen = 496,
f44d83d1 26310 .also_non_np = 1,
3b9b8fe0
AB
26311 .np = 3,
26312 .tap = { 496 - 20, 4, 16 },
a2c58260
JG
26313 },
26314};
26315
26316static struct cipher_testvec cast5_cbc_dec_tv_template[] = {
26317 { /* Generated from TF test vectors */
26318 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26319 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26320 .klen = 16,
26321 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26322 .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
26323 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26324 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26325 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26326 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26327 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26328 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26329 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26330 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26331 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26332 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26333 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26334 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26335 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26336 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26337 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26338 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26339 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26340 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26341 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26342 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26343 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26344 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26345 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26346 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26347 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26348 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26349 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26350 "\x90\x12\x37\x49\x27\x98\x69\x18"
26351 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26352 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26353 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26354 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26355 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26356 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26357 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26358 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26359 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26360 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26361 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26362 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26363 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26364 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26365 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26366 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26367 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26368 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26369 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26370 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26371 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26372 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26373 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26374 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26375 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26376 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26377 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26378 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26379 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26380 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26381 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26382 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26383 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
26384 .ilen = 496,
26385 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26386 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26387 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26388 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26389 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26390 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26391 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26392 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26393 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26394 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26395 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26396 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26397 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26398 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26399 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26400 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26401 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26402 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26403 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26404 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26405 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26406 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26407 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26408 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26409 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26410 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26411 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26412 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26413 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26414 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26415 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26416 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26417 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26418 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26419 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26420 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26421 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26422 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26423 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26424 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26425 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26426 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26427 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26428 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26429 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26430 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26431 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26432 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26433 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26434 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26435 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26436 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26437 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26438 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26439 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26440 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26441 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26442 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26443 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26444 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26445 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26446 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26447 .rlen = 496,
f44d83d1 26448 .also_non_np = 1,
3b9b8fe0
AB
26449 .np = 3,
26450 .tap = { 496 - 20, 4, 16 },
a2c58260
JG
26451 },
26452};
26453
26454static struct cipher_testvec cast5_ctr_enc_tv_template[] = {
26455 { /* Generated from TF test vectors */
9cac3a29
JK
26456 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26457 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26458 .klen = 16,
26459 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26460 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26461 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26462 "\x3A",
26463 .ilen = 17,
26464 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26465 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26466 "\x0C",
26467 .rlen = 17,
26468 }, { /* Generated from TF test vectors */
a2c58260
JG
26469 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26470 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26471 .klen = 16,
26472 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26473 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26474 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26475 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26476 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26477 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26478 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26479 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26480 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26481 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26482 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26483 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26484 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26485 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26486 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26487 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26488 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26489 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26490 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26491 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26492 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26493 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26494 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26495 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26496 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26497 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26498 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26499 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26500 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26501 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26502 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26503 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26504 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26505 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26506 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26507 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26508 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26509 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26510 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26511 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26512 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26513 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26514 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26515 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26516 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26517 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26518 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26519 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26520 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26521 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26522 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26523 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26524 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26525 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26526 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26527 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26528 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26529 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26530 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26531 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26532 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26533 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26534 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26535 .ilen = 496,
26536 .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26537 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26538 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26539 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26540 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26541 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26542 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26543 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26544 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26545 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26546 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
26547 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
26548 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
26549 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
26550 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
26551 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
26552 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
26553 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
26554 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
26555 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
26556 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
26557 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
26558 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
26559 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
26560 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
26561 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
26562 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
26563 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
26564 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
26565 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
26566 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
26567 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
26568 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
26569 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
26570 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
26571 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
26572 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
26573 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
26574 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
26575 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
26576 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
26577 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
26578 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
26579 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
26580 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
26581 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
26582 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
26583 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
26584 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
26585 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
26586 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
26587 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
26588 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
26589 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
26590 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
26591 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
26592 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
26593 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
26594 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
26595 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
26596 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
26597 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
26598 .rlen = 496,
f44d83d1 26599 .also_non_np = 1,
3b9b8fe0
AB
26600 .np = 3,
26601 .tap = { 496 - 20, 4, 16 },
a2c58260
JG
26602 },
26603};
26604
26605static struct cipher_testvec cast5_ctr_dec_tv_template[] = {
26606 { /* Generated from TF test vectors */
26607 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9cac3a29
JK
26608 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26609 .klen = 16,
26610 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26611 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26612 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26613 "\x0C",
26614 .ilen = 17,
26615 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26616 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26617 "\x3A",
26618 .rlen = 17,
26619 }, { /* Generated from TF test vectors */
26620 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
a2c58260
JG
26621 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26622 .klen = 16,
26623 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
26624 .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
26625 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26626 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26627 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26628 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26629 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26630 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26631 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26632 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26633 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26634 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
26635 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
26636 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
26637 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
26638 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
26639 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
26640 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
26641 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
26642 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
26643 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
26644 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
26645 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
26646 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
26647 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
26648 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
26649 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
26650 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
26651 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
26652 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
26653 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
26654 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
26655 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
26656 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
26657 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
26658 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
26659 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
26660 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
26661 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
26662 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
26663 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
26664 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
26665 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
26666 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
26667 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
26668 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
26669 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
26670 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
26671 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
26672 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
26673 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
26674 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
26675 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
26676 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
26677 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
26678 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
26679 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
26680 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
26681 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
26682 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
26683 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
26684 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
26685 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
26686 .ilen = 496,
26687 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
26688 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26689 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26690 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26691 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26692 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26693 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26694 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26695 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26696 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26697 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26698 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26699 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26700 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26701 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26702 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26703 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26704 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26705 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26706 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26707 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26708 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26709 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26710 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26711 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26712 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26713 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26714 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26715 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26716 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26717 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26718 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26719 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26720 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26721 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26722 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26723 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26724 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26725 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26726 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26727 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26728 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26729 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26730 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26731 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26732 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26733 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26734 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26735 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26736 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26737 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26738 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26739 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26740 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26741 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26742 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26743 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26744 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26745 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26746 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26747 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26748 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
26749 .rlen = 496,
f44d83d1 26750 .also_non_np = 1,
3b9b8fe0
AB
26751 .np = 3,
26752 .tap = { 496 - 20, 4, 16 },
da7f033d
HX
26753 },
26754};
26755
26756/*
26757 * ARC4 test vectors from OpenSSL
26758 */
26759#define ARC4_ENC_TEST_VECTORS 7
26760#define ARC4_DEC_TEST_VECTORS 7
26761
26762static struct cipher_testvec arc4_enc_tv_template[] = {
26763 {
26764 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26765 .klen = 8,
26766 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26767 .ilen = 8,
26768 .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
26769 .rlen = 8,
26770 }, {
26771 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26772 .klen = 8,
26773 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
26774 .ilen = 8,
26775 .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
26776 .rlen = 8,
26777 }, {
26778 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
26779 .klen = 8,
26780 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
26781 .ilen = 8,
26782 .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
26783 .rlen = 8,
26784 }, {
26785 .key = "\xef\x01\x23\x45",
26786 .klen = 4,
26787 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26788 "\x00\x00\x00\x00\x00\x00\x00\x00"
26789 "\x00\x00\x00\x00",
26790 .ilen = 20,
26791 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26792 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
26793 "\x36\xb6\x78\x58",
26794 .rlen = 20,
26795 }, {
26796 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26797 .klen = 8,
26798 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26799 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26800 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26801 "\x12\x34\x56\x78",
26802 .ilen = 28,
26803 .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
26804 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
26805 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
26806 "\x40\x01\x1e\xcf",
26807 .rlen = 28,
26808 }, {
26809 .key = "\xef\x01\x23\x45",
26810 .klen = 4,
26811 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
26812 "\x00\x00",
26813 .ilen = 10,
26814 .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26815 "\xbd\x61",
26816 .rlen = 10,
26817 }, {
26818 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
26819 "\x00\x00\x00\x00\x00\x00\x00\x00",
26820 .klen = 16,
26821 .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
26822 .ilen = 8,
26823 .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
26824 .rlen = 8,
26825 },
26826};
26827
26828static struct cipher_testvec arc4_dec_tv_template[] = {
26829 {
26830 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26831 .klen = 8,
26832 .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
26833 .ilen = 8,
26834 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26835 .rlen = 8,
26836 }, {
26837 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26838 .klen = 8,
26839 .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
26840 .ilen = 8,
26841 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
26842 .rlen = 8,
26843 }, {
26844 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
26845 .klen = 8,
26846 .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
26847 .ilen = 8,
26848 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
26849 .rlen = 8,
26850 }, {
26851 .key = "\xef\x01\x23\x45",
26852 .klen = 4,
26853 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26854 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
26855 "\x36\xb6\x78\x58",
26856 .ilen = 20,
26857 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
26858 "\x00\x00\x00\x00\x00\x00\x00\x00"
26859 "\x00\x00\x00\x00",
26860 .rlen = 20,
26861 }, {
26862 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26863 .klen = 8,
26864 .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
26865 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
26866 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
26867 "\x40\x01\x1e\xcf",
26868 .ilen = 28,
26869 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26870 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26871 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
26872 "\x12\x34\x56\x78",
26873 .rlen = 28,
26874 }, {
26875 .key = "\xef\x01\x23\x45",
26876 .klen = 4,
26877 .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
26878 "\xbd\x61",
26879 .ilen = 10,
26880 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
26881 "\x00\x00",
26882 .rlen = 10,
26883 }, {
26884 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
26885 "\x00\x00\x00\x00\x00\x00\x00\x00",
26886 .klen = 16,
26887 .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
26888 .ilen = 8,
26889 .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
26890 .rlen = 8,
26891 },
26892};
26893
26894/*
26895 * TEA test vectors
26896 */
26897#define TEA_ENC_TEST_VECTORS 4
26898#define TEA_DEC_TEST_VECTORS 4
26899
26900static struct cipher_testvec tea_enc_tv_template[] = {
26901 {
26902 .key = zeroed_string,
26903 .klen = 16,
26904 .input = zeroed_string,
26905 .ilen = 8,
26906 .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
26907 .rlen = 8,
26908 }, {
26909 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26910 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26911 .klen = 16,
26912 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
26913 .ilen = 8,
26914 .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
26915 .rlen = 8,
26916 }, {
26917 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
26918 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
26919 .klen = 16,
26920 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
26921 "\x65\x73\x74\x5f\x76\x65\x63\x74",
26922 .ilen = 16,
26923 .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
26924 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
26925 .rlen = 16,
26926 }, {
26927 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
26928 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
26929 .klen = 16,
26930 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
26931 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
26932 "\x79\x6f\x75\x21\x21\x21\x20\x72"
26933 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
26934 .ilen = 32,
26935 .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
26936 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
26937 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
26938 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
26939 .rlen = 32,
26940 }
26941};
26942
26943static struct cipher_testvec tea_dec_tv_template[] = {
26944 {
26945 .key = zeroed_string,
26946 .klen = 16,
26947 .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
26948 .ilen = 8,
26949 .result = zeroed_string,
26950 .rlen = 8,
26951 }, {
26952 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
26953 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
26954 .klen = 16,
26955 .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
26956 .ilen = 8,
26957 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
26958 .rlen = 8,
26959 }, {
26960 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
26961 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
26962 .klen = 16,
26963 .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
26964 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
26965 .ilen = 16,
26966 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
26967 "\x65\x73\x74\x5f\x76\x65\x63\x74",
26968 .rlen = 16,
26969 }, {
26970 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
26971 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
26972 .klen = 16,
26973 .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
26974 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
26975 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
26976 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
26977 .ilen = 32,
26978 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
26979 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
26980 "\x79\x6f\x75\x21\x21\x21\x20\x72"
26981 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
26982 .rlen = 32,
26983 }
26984};
26985
26986/*
26987 * XTEA test vectors
26988 */
26989#define XTEA_ENC_TEST_VECTORS 4
26990#define XTEA_DEC_TEST_VECTORS 4
26991
26992static struct cipher_testvec xtea_enc_tv_template[] = {
26993 {
26994 .key = zeroed_string,
26995 .klen = 16,
26996 .input = zeroed_string,
26997 .ilen = 8,
26998 .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
26999 .rlen = 8,
27000 }, {
27001 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27002 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27003 .klen = 16,
27004 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27005 .ilen = 8,
27006 .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27007 .rlen = 8,
27008 }, {
27009 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27010 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27011 .klen = 16,
27012 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27013 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27014 .ilen = 16,
27015 .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27016 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27017 .rlen = 16,
27018 }, {
27019 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27020 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27021 .klen = 16,
27022 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
27023 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27024 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27025 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27026 .ilen = 32,
27027 .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27028 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27029 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27030 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27031 .rlen = 32,
27032 }
27033};
27034
27035static struct cipher_testvec xtea_dec_tv_template[] = {
27036 {
27037 .key = zeroed_string,
27038 .klen = 16,
27039 .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
27040 .ilen = 8,
27041 .result = zeroed_string,
27042 .rlen = 8,
27043 }, {
27044 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27045 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27046 .klen = 16,
27047 .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27048 .ilen = 8,
27049 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27050 .rlen = 8,
27051 }, {
27052 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27053 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27054 .klen = 16,
27055 .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
27056 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
27057 .ilen = 16,
27058 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27059 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27060 .rlen = 16,
27061 }, {
27062 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27063 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27064 .klen = 16,
27065 .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
27066 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27067 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27068 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
27069 .ilen = 32,
27070 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27071 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27072 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27073 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27074 .rlen = 32,
27075 }
27076};
27077
27078/*
27079 * KHAZAD test vectors.
27080 */
27081#define KHAZAD_ENC_TEST_VECTORS 5
27082#define KHAZAD_DEC_TEST_VECTORS 5
27083
27084static struct cipher_testvec khazad_enc_tv_template[] = {
27085 {
27086 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
27087 "\x00\x00\x00\x00\x00\x00\x00\x00",
27088 .klen = 16,
27089 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
27090 .ilen = 8,
27091 .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27092 .rlen = 8,
27093 }, {
27094 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
27095 "\x38\x38\x38\x38\x38\x38\x38\x38",
27096 .klen = 16,
27097 .input = "\x38\x38\x38\x38\x38\x38\x38\x38",
27098 .ilen = 8,
27099 .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27100 .rlen = 8,
27101 }, {
27102 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27103 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27104 .klen = 16,
27105 .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27106 .ilen = 8,
27107 .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27108 .rlen = 8,
27109 }, {
27110 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27111 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27112 .klen = 16,
27113 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27114 .ilen = 8,
27115 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27116 .rlen = 8,
27117 }, {
27118 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27119 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27120 .klen = 16,
27121 .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27122 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27123 .ilen = 16,
27124 .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27125 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27126 .rlen = 16,
27127 },
27128};
27129
27130static struct cipher_testvec khazad_dec_tv_template[] = {
27131 {
27132 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
27133 "\x00\x00\x00\x00\x00\x00\x00\x00",
27134 .klen = 16,
27135 .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27136 .ilen = 8,
27137 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
27138 .rlen = 8,
27139 }, {
27140 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
27141 "\x38\x38\x38\x38\x38\x38\x38\x38",
27142 .klen = 16,
27143 .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27144 .ilen = 8,
27145 .result = "\x38\x38\x38\x38\x38\x38\x38\x38",
27146 .rlen = 8,
27147 }, {
27148 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27149 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27150 .klen = 16,
27151 .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27152 .ilen = 8,
27153 .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27154 .rlen = 8,
27155 }, {
27156 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27157 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27158 .klen = 16,
27159 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27160 .ilen = 8,
27161 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27162 .rlen = 8,
27163 }, {
27164 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27165 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27166 .klen = 16,
27167 .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
27168 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27169 .ilen = 16,
27170 .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27171 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27172 .rlen = 16,
27173 },
27174};
27175
27176/*
27177 * Anubis test vectors.
27178 */
27179
27180#define ANUBIS_ENC_TEST_VECTORS 5
27181#define ANUBIS_DEC_TEST_VECTORS 5
27182#define ANUBIS_CBC_ENC_TEST_VECTORS 2
27183#define ANUBIS_CBC_DEC_TEST_VECTORS 2
27184
27185static struct cipher_testvec anubis_enc_tv_template[] = {
27186 {
27187 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27188 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27189 .klen = 16,
27190 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27191 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27192 .ilen = 16,
27193 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27194 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27195 .rlen = 16,
27196 }, {
27197
27198 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
27199 "\x03\x03\x03\x03\x03\x03\x03\x03"
27200 "\x03\x03\x03\x03",
27201 .klen = 20,
27202 .input = "\x03\x03\x03\x03\x03\x03\x03\x03"
27203 "\x03\x03\x03\x03\x03\x03\x03\x03",
27204 .ilen = 16,
27205 .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27206 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27207 .rlen = 16,
27208 }, {
27209 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
27210 "\x24\x24\x24\x24\x24\x24\x24\x24"
27211 "\x24\x24\x24\x24\x24\x24\x24\x24"
27212 "\x24\x24\x24\x24",
27213 .klen = 28,
27214 .input = "\x24\x24\x24\x24\x24\x24\x24\x24"
27215 "\x24\x24\x24\x24\x24\x24\x24\x24",
27216 .ilen = 16,
27217 .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27218 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27219 .rlen = 16,
27220 }, {
27221 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
27222 "\x25\x25\x25\x25\x25\x25\x25\x25"
27223 "\x25\x25\x25\x25\x25\x25\x25\x25"
27224 "\x25\x25\x25\x25\x25\x25\x25\x25",
27225 .klen = 32,
27226 .input = "\x25\x25\x25\x25\x25\x25\x25\x25"
27227 "\x25\x25\x25\x25\x25\x25\x25\x25",
27228 .ilen = 16,
27229 .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27230 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27231 .rlen = 16,
27232 }, {
27233 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27234 "\x35\x35\x35\x35\x35\x35\x35\x35"
27235 "\x35\x35\x35\x35\x35\x35\x35\x35"
27236 "\x35\x35\x35\x35\x35\x35\x35\x35"
27237 "\x35\x35\x35\x35\x35\x35\x35\x35",
27238 .klen = 40,
27239 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
27240 "\x35\x35\x35\x35\x35\x35\x35\x35",
27241 .ilen = 16,
27242 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27243 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27244 .rlen = 16,
27245 },
27246};
27247
27248static struct cipher_testvec anubis_dec_tv_template[] = {
27249 {
27250 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27251 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27252 .klen = 16,
27253 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27254 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
27255 .ilen = 16,
27256 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27257 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27258 .rlen = 16,
27259 }, {
27260
27261 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
27262 "\x03\x03\x03\x03\x03\x03\x03\x03"
27263 "\x03\x03\x03\x03",
27264 .klen = 20,
27265 .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
27266 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
27267 .ilen = 16,
27268 .result = "\x03\x03\x03\x03\x03\x03\x03\x03"
27269 "\x03\x03\x03\x03\x03\x03\x03\x03",
27270 .rlen = 16,
27271 }, {
27272 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
27273 "\x24\x24\x24\x24\x24\x24\x24\x24"
27274 "\x24\x24\x24\x24\x24\x24\x24\x24"
27275 "\x24\x24\x24\x24",
27276 .klen = 28,
27277 .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
27278 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
27279 .ilen = 16,
27280 .result = "\x24\x24\x24\x24\x24\x24\x24\x24"
27281 "\x24\x24\x24\x24\x24\x24\x24\x24",
27282 .rlen = 16,
27283 }, {
27284 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
27285 "\x25\x25\x25\x25\x25\x25\x25\x25"
27286 "\x25\x25\x25\x25\x25\x25\x25\x25"
27287 "\x25\x25\x25\x25\x25\x25\x25\x25",
27288 .klen = 32,
27289 .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
27290 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
27291 .ilen = 16,
27292 .result = "\x25\x25\x25\x25\x25\x25\x25\x25"
27293 "\x25\x25\x25\x25\x25\x25\x25\x25",
27294 .rlen = 16,
27295 }, {
27296 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27297 "\x35\x35\x35\x35\x35\x35\x35\x35"
27298 "\x35\x35\x35\x35\x35\x35\x35\x35"
27299 "\x35\x35\x35\x35\x35\x35\x35\x35"
27300 "\x35\x35\x35\x35\x35\x35\x35\x35",
27301 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27302 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
27303 .klen = 40,
27304 .ilen = 16,
27305 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
27306 "\x35\x35\x35\x35\x35\x35\x35\x35",
27307 .rlen = 16,
27308 },
27309};
27310
27311static struct cipher_testvec anubis_cbc_enc_tv_template[] = {
27312 {
27313 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27314 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27315 .klen = 16,
27316 .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27317 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27318 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27319 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27320 .ilen = 32,
27321 .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27322 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27323 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27324 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27325 .rlen = 32,
27326 }, {
27327 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27328 "\x35\x35\x35\x35\x35\x35\x35\x35"
27329 "\x35\x35\x35\x35\x35\x35\x35\x35"
27330 "\x35\x35\x35\x35\x35\x35\x35\x35"
27331 "\x35\x35\x35\x35\x35\x35\x35\x35",
27332 .klen = 40,
27333 .input = "\x35\x35\x35\x35\x35\x35\x35\x35"
27334 "\x35\x35\x35\x35\x35\x35\x35\x35"
27335 "\x35\x35\x35\x35\x35\x35\x35\x35"
27336 "\x35\x35\x35\x35\x35\x35\x35\x35",
27337 .ilen = 32,
27338 .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27339 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27340 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27341 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27342 .rlen = 32,
27343 },
27344};
27345
27346static struct cipher_testvec anubis_cbc_dec_tv_template[] = {
27347 {
27348 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27349 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27350 .klen = 16,
27351 .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
27352 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27353 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27354 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
27355 .ilen = 32,
27356 .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27357 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27358 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27359 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27360 .rlen = 32,
27361 }, {
27362 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27363 "\x35\x35\x35\x35\x35\x35\x35\x35"
27364 "\x35\x35\x35\x35\x35\x35\x35\x35"
27365 "\x35\x35\x35\x35\x35\x35\x35\x35"
27366 "\x35\x35\x35\x35\x35\x35\x35\x35",
27367 .klen = 40,
27368 .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
27369 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27370 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27371 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
27372 .ilen = 32,
27373 .result = "\x35\x35\x35\x35\x35\x35\x35\x35"
27374 "\x35\x35\x35\x35\x35\x35\x35\x35"
27375 "\x35\x35\x35\x35\x35\x35\x35\x35"
27376 "\x35\x35\x35\x35\x35\x35\x35\x35",
27377 .rlen = 32,
27378 },
27379};
27380
27381/*
27382 * XETA test vectors
27383 */
27384#define XETA_ENC_TEST_VECTORS 4
27385#define XETA_DEC_TEST_VECTORS 4
27386
27387static struct cipher_testvec xeta_enc_tv_template[] = {
27388 {
27389 .key = zeroed_string,
27390 .klen = 16,
27391 .input = zeroed_string,
27392 .ilen = 8,
27393 .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27394 .rlen = 8,
27395 }, {
27396 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27397 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27398 .klen = 16,
27399 .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27400 .ilen = 8,
27401 .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27402 .rlen = 8,
27403 }, {
27404 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27405 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27406 .klen = 16,
27407 .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27408 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27409 .ilen = 16,
27410 .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27411 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27412 .rlen = 16,
27413 }, {
27414 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27415 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27416 .klen = 16,
27417 .input = "\x54\x65\x61\x20\x69\x73\x20\x67"
27418 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27419 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27420 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27421 .ilen = 32,
27422 .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27423 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27424 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27425 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27426 .rlen = 32,
27427 }
27428};
27429
27430static struct cipher_testvec xeta_dec_tv_template[] = {
27431 {
27432 .key = zeroed_string,
27433 .klen = 16,
27434 .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27435 .ilen = 8,
27436 .result = zeroed_string,
27437 .rlen = 8,
27438 }, {
27439 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27440 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27441 .klen = 16,
27442 .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27443 .ilen = 8,
27444 .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27445 .rlen = 8,
27446 }, {
27447 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27448 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27449 .klen = 16,
27450 .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
27451 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
27452 .ilen = 16,
27453 .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
27454 "\x65\x73\x74\x5f\x76\x65\x63\x74",
27455 .rlen = 16,
27456 }, {
27457 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27458 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27459 .klen = 16,
27460 .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
27461 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27462 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27463 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
27464 .ilen = 32,
27465 .result = "\x54\x65\x61\x20\x69\x73\x20\x67"
27466 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27467 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27468 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
27469 .rlen = 32,
27470 }
27471};
27472
27473/*
27474 * FCrypt test vectors
27475 */
27476#define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template)
27477#define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template)
27478
27479static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = {
27480 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27481 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
27482 .klen = 8,
27483 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27484 .input = "\x00\x00\x00\x00\x00\x00\x00\x00",
27485 .ilen = 8,
27486 .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27487 .rlen = 8,
27488 }, {
27489 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27490 .klen = 8,
27491 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27492 .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27493 .ilen = 8,
27494 .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27495 .rlen = 8,
27496 }, { /* From Arla */
27497 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27498 .klen = 8,
27499 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27500 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
27501 .ilen = 48,
27502 .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27503 "\xee\xac\x98\x62\x44\x51\xe4\x84"
27504 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27505 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27506 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27507 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27508 .rlen = 48,
27509 }, {
27510 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27511 .klen = 8,
27512 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27513 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
27514 .ilen = 48,
27515 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27516 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27517 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27518 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27519 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27520 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27521 .rlen = 48,
27522 }, { /* split-page version */
27523 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27524 .klen = 8,
27525 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27526 .input = "The quick brown fox jumps over the lazy dogs.\0\0",
27527 .ilen = 48,
27528 .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27529 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27530 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27531 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27532 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27533 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27534 .rlen = 48,
27535 .np = 2,
27536 .tap = { 20, 28 },
27537 }
27538};
27539
27540static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = {
27541 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27542 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
27543 .klen = 8,
27544 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27545 .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27546 .ilen = 8,
27547 .result = "\x00\x00\x00\x00\x00\x00\x00\x00",
27548 .rlen = 8,
27549 }, {
27550 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27551 .klen = 8,
27552 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
27553 .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27554 .ilen = 8,
27555 .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27556 .rlen = 8,
27557 }, { /* From Arla */
27558 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27559 .klen = 8,
27560 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27561 .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
27562 "\xee\xac\x98\x62\x44\x51\xe4\x84"
27563 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27564 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27565 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27566 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
27567 .ilen = 48,
27568 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27569 .rlen = 48,
27570 }, {
27571 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27572 .klen = 8,
27573 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27574 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27575 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27576 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27577 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27578 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27579 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27580 .ilen = 48,
27581 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27582 .rlen = 48,
27583 }, { /* split-page version */
27584 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27585 .klen = 8,
27586 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27587 .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
27588 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27589 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27590 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27591 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27592 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
27593 .ilen = 48,
27594 .result = "The quick brown fox jumps over the lazy dogs.\0\0",
27595 .rlen = 48,
27596 .np = 2,
27597 .tap = { 20, 28 },
27598 }
27599};
27600
27601/*
27602 * CAMELLIA test vectors.
27603 */
0840605e
JK
27604#define CAMELLIA_ENC_TEST_VECTORS 4
27605#define CAMELLIA_DEC_TEST_VECTORS 4
27606#define CAMELLIA_CBC_ENC_TEST_VECTORS 3
27607#define CAMELLIA_CBC_DEC_TEST_VECTORS 3
27608#define CAMELLIA_CTR_ENC_TEST_VECTORS 2
27609#define CAMELLIA_CTR_DEC_TEST_VECTORS 2
27610#define CAMELLIA_LRW_ENC_TEST_VECTORS 8
27611#define CAMELLIA_LRW_DEC_TEST_VECTORS 8
27612#define CAMELLIA_XTS_ENC_TEST_VECTORS 5
27613#define CAMELLIA_XTS_DEC_TEST_VECTORS 5
da7f033d
HX
27614
27615static struct cipher_testvec camellia_enc_tv_template[] = {
27616 {
27617 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27618 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27619 .klen = 16,
27620 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27621 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27622 .ilen = 16,
27623 .result = "\x67\x67\x31\x38\x54\x96\x69\x73"
27624 "\x08\x57\x06\x56\x48\xea\xbe\x43",
27625 .rlen = 16,
27626 }, {
27627 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27628 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27629 "\x00\x11\x22\x33\x44\x55\x66\x77",
27630 .klen = 24,
27631 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27632 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27633 .ilen = 16,
27634 .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27635 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27636 .rlen = 16,
27637 }, {
27638 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27639 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27640 "\x00\x11\x22\x33\x44\x55\x66\x77"
27641 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27642 .klen = 32,
27643 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27644 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27645 .ilen = 16,
27646 .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27647 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27648 .rlen = 16,
be6314b4 27649 }, { /* Generated with Crypto++ */
0840605e
JK
27650 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27651 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27652 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27653 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27654 .klen = 32,
27655 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
27656 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27657 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27658 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27659 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
27660 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27661 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27662 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27663 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27664 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27665 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27666 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27667 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27668 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27669 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27670 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27671 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27672 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27673 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27674 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27675 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27676 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27677 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27678 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27679 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27680 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27681 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27682 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27683 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27684 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27685 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27686 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27687 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27688 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27689 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27690 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27691 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27692 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27693 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27694 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27695 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27696 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27697 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27698 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27699 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27700 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27701 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27702 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27703 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27704 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27705 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27706 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27707 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27708 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27709 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27710 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27711 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27712 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27713 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27714 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27715 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
27716 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27717 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27718 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27719 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27720 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27721 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27722 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27723 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27724 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27725 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27726 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27727 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27728 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27729 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27730 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27731 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27732 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27733 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27734 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27735 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27736 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27737 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27738 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27739 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27740 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27741 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27742 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27743 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27744 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27745 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27746 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27747 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27748 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27749 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27750 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27751 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
27752 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
27753 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
27754 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
27755 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
27756 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
27757 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
27758 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
27759 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
27760 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
27761 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
27762 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
27763 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
27764 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
27765 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
27766 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
27767 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
27768 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
27769 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
27770 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
27771 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
27772 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
27773 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
27774 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
27775 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
27776 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
27777 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
27778 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
27779 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
27780 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
27781 .ilen = 1008,
0840605e
JK
27782 .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27783 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27784 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27785 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27786 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
be6314b4
JK
27787 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27788 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27789 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27790 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27791 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27792 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27793 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27794 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27795 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27796 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27797 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27798 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27799 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
27800 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
27801 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
27802 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
27803 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
27804 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
27805 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
27806 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
27807 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
27808 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
27809 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
27810 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
27811 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
27812 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
27813 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
27814 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
27815 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
27816 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
27817 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
27818 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
27819 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
27820 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
27821 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
27822 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
27823 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
27824 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
27825 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
27826 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
27827 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
27828 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
27829 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
27830 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
27831 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
27832 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
27833 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
27834 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
27835 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
27836 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
27837 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
27838 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
27839 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
27840 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
27841 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
27842 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
23a836e8
JK
27843 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
27844 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
27845 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
27846 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
27847 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
27848 "\xED\x28\x39\xE9\x63\xED\x41\x70"
27849 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
27850 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
27851 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
27852 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
27853 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
27854 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
27855 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
27856 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
27857 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
27858 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
27859 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
27860 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
27861 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
27862 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
27863 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
27864 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
27865 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
27866 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
27867 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
27868 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
27869 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
27870 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
27871 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
27872 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
27873 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
27874 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
27875 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
27876 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
27877 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
27878 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
27879 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
27880 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
27881 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
27882 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
27883 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
27884 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
27885 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
27886 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
27887 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
27888 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
27889 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
27890 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
27891 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
27892 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
27893 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
27894 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
27895 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
27896 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
27897 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
27898 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
27899 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
27900 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
27901 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
27902 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
27903 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
27904 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
27905 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
27906 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
27907 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
27908 .rlen = 1008,
f44d83d1 27909 .also_non_np = 1,
3b9b8fe0
AB
27910 .np = 3,
27911 .tap = { 1008 - 20, 4, 16 },
0840605e 27912 },
da7f033d
HX
27913};
27914
27915static struct cipher_testvec camellia_dec_tv_template[] = {
27916 {
27917 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27918 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27919 .klen = 16,
27920 .input = "\x67\x67\x31\x38\x54\x96\x69\x73"
27921 "\x08\x57\x06\x56\x48\xea\xbe\x43",
27922 .ilen = 16,
27923 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27924 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27925 .rlen = 16,
27926 }, {
27927 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27928 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27929 "\x00\x11\x22\x33\x44\x55\x66\x77",
27930 .klen = 24,
27931 .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
27932 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
27933 .ilen = 16,
27934 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27935 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27936 .rlen = 16,
27937 }, {
27938 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27939 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27940 "\x00\x11\x22\x33\x44\x55\x66\x77"
27941 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27942 .klen = 32,
27943 .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
27944 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
27945 .ilen = 16,
27946 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27947 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27948 .rlen = 16,
be6314b4 27949 }, { /* Generated with Crypto++ */
0840605e
JK
27950 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27951 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27952 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27953 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27954 .klen = 32,
27955 .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
27956 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27957 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27958 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27959 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
be6314b4
JK
27960 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27961 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27962 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27963 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27964 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27965 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27966 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27967 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27968 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27969 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27970 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27971 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27972 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
27973 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
27974 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
27975 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
27976 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
27977 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
27978 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
27979 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
27980 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
27981 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
27982 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
27983 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
27984 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
27985 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
27986 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
27987 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
27988 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
27989 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
27990 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
27991 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
27992 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
27993 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
27994 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
27995 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
27996 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
27997 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
27998 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
27999 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
28000 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
28001 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
28002 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
28003 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
28004 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
28005 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
28006 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
28007 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
28008 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
28009 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
28010 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
28011 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
28012 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
28013 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
28014 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
28015 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
23a836e8
JK
28016 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
28017 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
28018 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
28019 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
28020 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
28021 "\xED\x28\x39\xE9\x63\xED\x41\x70"
28022 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
28023 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
28024 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
28025 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
28026 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
28027 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
28028 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
28029 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
28030 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
28031 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
28032 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
28033 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
28034 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
28035 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
28036 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
28037 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
28038 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
28039 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
28040 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
28041 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
28042 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
28043 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
28044 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
28045 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
28046 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
28047 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
28048 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
28049 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
28050 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
28051 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
28052 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
28053 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
28054 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
28055 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
28056 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
28057 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
28058 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
28059 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
28060 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
28061 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
28062 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
28063 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
28064 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
28065 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
28066 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
28067 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
28068 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
28069 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
28070 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
28071 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
28072 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
28073 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
28074 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
28075 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
28076 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
28077 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
28078 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
28079 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
28080 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
28081 .ilen = 1008,
0840605e
JK
28082 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28083 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28084 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28085 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28086 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
28087 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28088 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28089 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28090 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28091 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28092 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28093 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28094 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28095 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28096 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28097 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28098 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28099 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28100 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28101 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28102 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28103 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28104 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28105 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28106 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28107 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28108 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28109 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28110 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28111 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28112 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28113 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28114 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28115 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28116 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28117 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28118 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28119 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28120 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28121 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28122 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28123 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28124 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28125 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28126 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28127 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28128 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28129 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28130 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28131 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28132 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28133 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28134 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28135 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28136 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28137 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28138 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28139 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28140 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28141 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28142 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
28143 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28144 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28145 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28146 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28147 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28148 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28149 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28150 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28151 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28152 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28153 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28154 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28155 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28156 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28157 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28158 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28159 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28160 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28161 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28162 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28163 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28164 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28165 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28166 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28167 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28168 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28169 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28170 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28171 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28172 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28173 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28174 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28175 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28176 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28177 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28178 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28179 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28180 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28181 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28182 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28183 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28184 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28185 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28186 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28187 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28188 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28189 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28190 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28191 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28192 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28193 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28194 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28195 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28196 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28197 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28198 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28199 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28200 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28201 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28202 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28203 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28204 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28205 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28206 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28207 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28208 .rlen = 1008,
f44d83d1 28209 .also_non_np = 1,
3b9b8fe0
AB
28210 .np = 3,
28211 .tap = { 1008 - 20, 4, 16 },
0840605e 28212 },
da7f033d
HX
28213};
28214
28215static struct cipher_testvec camellia_cbc_enc_tv_template[] = {
28216 {
28217 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28218 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28219 .klen = 16,
28220 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28221 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28222 .input = "Single block msg",
28223 .ilen = 16,
28224 .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28225 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28226 .rlen = 16,
28227 }, {
28228 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28229 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28230 .klen = 16,
28231 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28232 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28233 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
28234 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28235 "\x10\x11\x12\x13\x14\x15\x16\x17"
28236 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28237 .ilen = 32,
28238 .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28239 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28240 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28241 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28242 .rlen = 32,
be6314b4 28243 }, { /* Generated with Crypto++ */
0840605e
JK
28244 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28245 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28246 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28247 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28248 .klen = 32,
28249 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28250 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28251 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28252 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28253 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28254 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28255 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
28256 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28257 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28258 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28259 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28260 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28261 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28262 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28263 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28264 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28265 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28266 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28267 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28268 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28269 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28270 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28271 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28272 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28273 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28274 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28275 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28276 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28277 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28278 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28279 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28280 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28281 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28282 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28283 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28284 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28285 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28286 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28287 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28288 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28289 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28290 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28291 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28292 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28293 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28294 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28295 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28296 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28297 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28298 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28299 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28300 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28301 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28302 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28303 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28304 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28305 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28306 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28307 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28308 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28309 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28310 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28311 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
28312 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28313 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28314 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28315 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28316 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28317 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28318 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28319 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28320 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28321 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28322 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28323 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28324 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28325 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28326 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28327 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28328 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28329 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28330 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28331 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28332 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28333 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28334 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28335 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28336 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28337 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28338 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28339 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28340 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28341 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28342 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28343 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28344 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28345 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28346 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28347 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28348 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28349 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28350 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28351 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28352 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28353 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28354 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28355 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28356 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28357 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28358 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28359 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28360 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28361 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28362 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28363 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28364 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28365 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28366 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28367 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28368 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28369 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28370 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28371 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28372 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28373 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28374 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28375 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28376 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28377 .ilen = 1008,
0840605e
JK
28378 .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28379 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28380 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28381 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28382 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
be6314b4
JK
28383 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28384 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28385 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28386 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28387 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28388 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28389 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28390 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28391 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28392 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28393 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28394 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28395 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28396 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28397 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28398 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28399 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28400 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28401 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28402 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28403 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28404 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28405 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28406 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28407 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28408 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28409 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28410 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28411 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28412 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28413 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28414 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28415 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28416 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28417 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28418 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28419 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28420 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28421 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28422 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28423 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28424 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28425 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28426 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28427 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28428 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28429 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28430 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28431 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28432 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28433 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28434 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28435 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28436 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28437 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28438 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
23a836e8
JK
28439 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28440 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28441 "\x21\x41\x56\x72\x13\xE1\x86\x07"
28442 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28443 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28444 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28445 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28446 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28447 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28448 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28449 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28450 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28451 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28452 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28453 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28454 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28455 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28456 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28457 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28458 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28459 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28460 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28461 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28462 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28463 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28464 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28465 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28466 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28467 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28468 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28469 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28470 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28471 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28472 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28473 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28474 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28475 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28476 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28477 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28478 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28479 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28480 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28481 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28482 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28483 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28484 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28485 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28486 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28487 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28488 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28489 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28490 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28491 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28492 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28493 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28494 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28495 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28496 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28497 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28498 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28499 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28500 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28501 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28502 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28503 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28504 .rlen = 1008,
f44d83d1 28505 .also_non_np = 1,
3b9b8fe0
AB
28506 .np = 3,
28507 .tap = { 1008 - 20, 4, 16 },
0840605e 28508 },
da7f033d
HX
28509};
28510
28511static struct cipher_testvec camellia_cbc_dec_tv_template[] = {
28512 {
28513 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
28514 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
28515 .klen = 16,
28516 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
28517 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
28518 .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
28519 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
28520 .ilen = 16,
28521 .result = "Single block msg",
28522 .rlen = 16,
28523 }, {
28524 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
28525 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
28526 .klen = 16,
28527 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
28528 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
28529 .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
28530 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
28531 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
28532 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
28533 .ilen = 32,
28534 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
28535 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
28536 "\x10\x11\x12\x13\x14\x15\x16\x17"
28537 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
28538 .rlen = 32,
be6314b4 28539 }, { /* Generated with Crypto++ */
0840605e
JK
28540 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28541 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28542 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28543 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28544 .klen = 32,
28545 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28546 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28547 .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
28548 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
28549 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
28550 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
28551 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
be6314b4
JK
28552 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
28553 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
28554 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
28555 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
28556 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
28557 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
28558 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
28559 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
28560 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
28561 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
28562 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
28563 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
28564 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
28565 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
28566 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
28567 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
28568 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
28569 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
28570 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
28571 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
28572 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
28573 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
28574 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
28575 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
28576 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
28577 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
28578 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
28579 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
28580 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
28581 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
28582 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
28583 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
28584 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
28585 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
28586 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
28587 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
28588 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
28589 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
28590 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
28591 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
28592 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
28593 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
28594 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
28595 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
28596 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
28597 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
28598 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
28599 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
28600 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
28601 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
28602 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
28603 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
28604 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
28605 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
28606 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
28607 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
23a836e8
JK
28608 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
28609 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
28610 "\x21\x41\x56\x72\x13\xE1\x86\x07"
28611 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
28612 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
28613 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
28614 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
28615 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
28616 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
28617 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
28618 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
28619 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
28620 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
28621 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
28622 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
28623 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
28624 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
28625 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
28626 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
28627 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
28628 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
28629 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
28630 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
28631 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
28632 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
28633 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
28634 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
28635 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
28636 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
28637 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
28638 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
28639 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
28640 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
28641 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
28642 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
28643 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28644 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28645 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28646 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28647 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28648 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28649 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28650 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28651 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28652 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28653 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28654 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28655 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28656 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28657 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28658 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28659 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28660 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28661 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28662 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28663 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28664 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28665 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28666 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28667 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28668 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28669 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28670 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28671 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28672 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
28673 .ilen = 1008,
0840605e
JK
28674 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28675 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28676 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28677 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28678 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
28679 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28680 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28681 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28682 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28683 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28684 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28685 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28686 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28687 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28688 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28689 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28690 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28691 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28692 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28693 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28694 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28695 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28696 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28697 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28698 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28699 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28700 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28701 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28702 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28703 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28704 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28705 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28706 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28707 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28708 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28709 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28710 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28711 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28712 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28713 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28714 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28715 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28716 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28717 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28718 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28719 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28720 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28721 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28722 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28723 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28724 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28725 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28726 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28727 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28728 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28729 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28730 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28731 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28732 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28733 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28734 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
28735 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28736 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28737 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28738 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28739 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28740 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28741 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28742 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28743 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28744 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28745 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28746 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28747 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28748 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28749 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28750 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28751 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28752 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28753 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28754 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28755 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28756 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28757 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28758 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28759 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28760 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28761 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28762 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28763 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28764 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28765 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28766 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28767 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28768 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28769 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28770 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28771 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28772 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28773 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28774 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28775 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28776 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28777 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28778 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28779 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28780 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28781 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28782 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28783 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28784 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28785 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28786 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28787 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28788 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28789 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28790 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28791 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28792 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28793 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28794 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28795 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28796 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28797 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28798 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28799 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
28800 .rlen = 1008,
f44d83d1 28801 .also_non_np = 1,
3b9b8fe0
AB
28802 .np = 3,
28803 .tap = { 1008 - 20, 4, 16 },
0840605e
JK
28804 },
28805};
28806
28807static struct cipher_testvec camellia_ctr_enc_tv_template[] = {
28808 { /* Generated with Crypto++ */
28809 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28810 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28811 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28812 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28813 .klen = 32,
28814 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28815 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28816 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28817 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28818 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28819 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28820 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
28821 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28822 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28823 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28824 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28825 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28826 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28827 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28828 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28829 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28830 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28831 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28832 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28833 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28834 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28835 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28836 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28837 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28838 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28839 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28840 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28841 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28842 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28843 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28844 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28845 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28846 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28847 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28848 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28849 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28850 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28851 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28852 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28853 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28854 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28855 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28856 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28857 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28858 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28859 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28860 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28861 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28862 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28863 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28864 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28865 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28866 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28867 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28868 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28869 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28870 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28871 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28872 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28873 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28874 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28875 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28876 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28877 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
28878 .ilen = 496,
0840605e
JK
28879 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
28880 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28881 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28882 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28883 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
be6314b4
JK
28884 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28885 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28886 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28887 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28888 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28889 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28890 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28891 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28892 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28893 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28894 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28895 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28896 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28897 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28898 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28899 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28900 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28901 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28902 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28903 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28904 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28905 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28906 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28907 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28908 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28909 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28910 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28911 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28912 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28913 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28914 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28915 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28916 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28917 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28918 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28919 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28920 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28921 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28922 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28923 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28924 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28925 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28926 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28927 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28928 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28929 "\x76\x44\x45\xF3\x24\x11\x57\x98"
28930 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28931 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28932 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28933 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28934 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28935 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28936 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28937 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28938 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28939 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28940 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
28941 .rlen = 496,
28942 }, { /* Generated with Crypto++ */
0840605e
JK
28943 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28944 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28945 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28946 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28947 .klen = 32,
28948 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28949 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
28950 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
28951 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28952 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28953 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28954 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28955 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
be6314b4
JK
28956 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28957 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28958 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28959 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28960 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28961 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28962 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28963 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28964 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28965 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28966 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28967 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28968 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28969 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28970 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28971 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28972 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28973 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28974 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28975 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28976 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28977 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28978 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28979 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28980 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28981 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28982 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28983 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28984 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28985 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28986 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28987 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28988 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28989 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28990 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28991 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28992 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28993 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28994 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28995 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28996 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28997 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28998 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28999 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29000 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29001 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29002 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29003 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29004 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29005 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29006 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29007 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29008 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29009 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29010 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29011 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23a836e8
JK
29012 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29013 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29014 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29015 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29016 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29017 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29018 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29019 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29020 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29021 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29022 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29023 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29024 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29025 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29026 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29027 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29028 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29029 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29030 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29031 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29032 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29033 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29034 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29035 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29036 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29037 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29038 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29039 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29040 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29041 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29042 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29043 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29044 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29045 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29046 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29047 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29048 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29049 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29050 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29051 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29052 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29053 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29054 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29055 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29056 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29057 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29058 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29059 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29060 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29061 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29062 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29063 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29064 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29065 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29066 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29067 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29068 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29069 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29070 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29071 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29072 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29073 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29074 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29075 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
29076 "\xE4\x7B\x12",
29077 .ilen = 1011,
0840605e
JK
29078 .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29079 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29080 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29081 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29082 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29083 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
be6314b4
JK
29084 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29085 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29086 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29087 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29088 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29089 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29090 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29091 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29092 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29093 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29094 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29095 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29096 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29097 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29098 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29099 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29100 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29101 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29102 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29103 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29104 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29105 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29106 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29107 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29108 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29109 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29110 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29111 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29112 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29113 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29114 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29115 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29116 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29117 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29118 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29119 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29120 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29121 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29122 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29123 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29124 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29125 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29126 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29127 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29128 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29129 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29130 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29131 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29132 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29133 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29134 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29135 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29136 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29137 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29138 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29139 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
23a836e8
JK
29140 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
29141 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
29142 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
29143 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
29144 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
29145 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
29146 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
29147 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
29148 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
29149 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
29150 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
29151 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
29152 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
29153 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
29154 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
29155 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
29156 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
29157 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
29158 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
29159 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
29160 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
29161 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
29162 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
29163 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
29164 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
29165 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
29166 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
29167 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
29168 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
29169 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
29170 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
29171 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
29172 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
29173 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
29174 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
29175 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
29176 "\x00\x70\x12\x56\x56\x50\xAD\x14"
29177 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
29178 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
29179 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
29180 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
29181 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
29182 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
29183 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
29184 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
29185 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
29186 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
29187 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
29188 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
29189 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
29190 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
29191 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
29192 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
29193 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
29194 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
29195 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
29196 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
29197 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
29198 "\x74\x28\x9D\x05\x30\x20\x62\x41"
29199 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
29200 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
29201 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
29202 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
29203 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
29204 "\xF1\x6B\xD9",
29205 .rlen = 1011,
f44d83d1
JK
29206 .also_non_np = 1,
29207 .np = 2,
23a836e8 29208 .tap = { 1011 - 16, 16 },
549595a0
JK
29209 }, { /* Generated with Crypto++ */
29210 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29211 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29212 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29213 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29214 .klen = 32,
29215 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
29216 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
29217 .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29218 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29219 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29220 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29221 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29222 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29223 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29224 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29225 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29226 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29227 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29228 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29229 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29230 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29231 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29232 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29233 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29234 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29235 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29236 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29237 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29238 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29239 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29240 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29241 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29242 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29243 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29244 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29245 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29246 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29247 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29248 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29249 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29250 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29251 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29252 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29253 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29254 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29255 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29256 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29257 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29258 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29259 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29260 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29261 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29262 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29263 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29264 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29265 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29266 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29267 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29268 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29269 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29270 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29271 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29272 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29273 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29274 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29275 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29276 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29277 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
29278 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29279 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29280 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29281 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29282 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29283 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29284 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29285 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29286 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29287 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29288 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29289 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29290 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29291 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29292 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29293 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29294 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29295 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29296 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29297 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29298 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29299 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29300 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29301 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29302 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29303 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29304 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29305 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29306 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29307 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29308 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29309 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29310 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29311 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29312 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29313 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29314 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29315 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29316 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29317 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29318 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29319 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29320 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29321 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29322 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29323 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29324 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29325 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29326 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29327 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29328 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29329 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29330 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29331 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29332 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29333 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29334 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29335 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29336 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29337 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29338 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29339 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29340 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29341 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29342 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
29343 .ilen = 1008,
549595a0
JK
29344 .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
29345 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
29346 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
29347 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
29348 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
29349 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
29350 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
29351 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
29352 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
29353 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
29354 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
29355 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
29356 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
29357 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
29358 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
29359 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
29360 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
29361 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
29362 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
29363 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
29364 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
29365 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
29366 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
29367 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
29368 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
29369 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
29370 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
29371 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
29372 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
29373 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
29374 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
29375 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
29376 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
29377 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
29378 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
29379 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
29380 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
29381 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
29382 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
29383 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
29384 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
29385 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
29386 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
29387 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
29388 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
29389 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
29390 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
29391 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
29392 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
29393 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
29394 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
29395 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
29396 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
29397 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
29398 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
29399 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
29400 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
29401 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
29402 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
29403 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
29404 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
23a836e8
JK
29405 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
29406 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
29407 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
29408 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
29409 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
29410 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
29411 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29412 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29413 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29414 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29415 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29416 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29417 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29418 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29419 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29420 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29421 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29422 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29423 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29424 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29425 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29426 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29427 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29428 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29429 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29430 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29431 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
29432 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
29433 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
29434 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
29435 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
29436 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
29437 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
29438 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
29439 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
29440 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
29441 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
29442 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
29443 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
29444 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
29445 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
29446 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
29447 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
29448 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
29449 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
29450 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
29451 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
29452 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
29453 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
29454 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
29455 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
29456 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
29457 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
29458 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
29459 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
29460 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
29461 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
29462 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
29463 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
29464 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
29465 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
29466 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
29467 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
29468 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
29469 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
29470 .rlen = 1008,
0840605e
JK
29471 },
29472};
29473
29474static struct cipher_testvec camellia_ctr_dec_tv_template[] = {
29475 { /* Generated with Crypto++ */
29476 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29477 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29478 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29479 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29480 .klen = 32,
29481 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29482 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
29483 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29484 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29485 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29486 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29487 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
be6314b4
JK
29488 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29489 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29490 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29491 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29492 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29493 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29494 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29495 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29496 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29497 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29498 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29499 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29500 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29501 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29502 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29503 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29504 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29505 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29506 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29507 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29508 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29509 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29510 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29511 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29512 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29513 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29514 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29515 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29516 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29517 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29518 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29519 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29520 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29521 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29522 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29523 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29524 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29525 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29526 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29527 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29528 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29529 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29530 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29531 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29532 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29533 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29534 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29535 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29536 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29537 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29538 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29539 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29540 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29541 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29542 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29543 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29544 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
29545 .ilen = 496,
0840605e
JK
29546 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29547 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29548 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29549 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29550 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
be6314b4
JK
29551 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29552 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29553 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29554 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29555 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29556 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29557 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29558 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29559 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29560 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29561 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29562 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29563 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29564 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29565 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29566 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29567 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29568 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29569 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29570 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29571 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29572 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29573 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29574 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29575 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29576 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29577 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29578 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29579 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29580 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29581 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29582 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29583 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29584 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29585 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29586 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29587 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29588 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29589 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29590 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29591 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29592 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29593 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29594 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29595 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29596 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29597 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29598 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29599 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29600 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29601 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29602 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29603 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29604 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29605 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29606 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29607 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
29608 .rlen = 496,
29609 }, { /* Generated with Crypto++ */
0840605e
JK
29610 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29611 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29612 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29613 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29614 .klen = 32,
29615 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29616 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
29617 .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
29618 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29619 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29620 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29621 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29622 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
be6314b4
JK
29623 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29624 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29625 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29626 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29627 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29628 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29629 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29630 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29631 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29632 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29633 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29634 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29635 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29636 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29637 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29638 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29639 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29640 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29641 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29642 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29643 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29644 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29645 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29646 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29647 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29648 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29649 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29650 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29651 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29652 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29653 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29654 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29655 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29656 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29657 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29658 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29659 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29660 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29661 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29662 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29663 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29664 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29665 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29666 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29667 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29668 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29669 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29670 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29671 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29672 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29673 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29674 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29675 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29676 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29677 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29678 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
23a836e8
JK
29679 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
29680 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
29681 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
29682 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
29683 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
29684 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
29685 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
29686 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
29687 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
29688 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
29689 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
29690 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
29691 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
29692 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
29693 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
29694 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
29695 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
29696 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
29697 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
29698 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
29699 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
29700 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
29701 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
29702 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
29703 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
29704 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
29705 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
29706 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
29707 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
29708 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
29709 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
29710 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
29711 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
29712 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
29713 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
29714 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
29715 "\x00\x70\x12\x56\x56\x50\xAD\x14"
29716 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
29717 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
29718 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
29719 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
29720 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
29721 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
29722 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
29723 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
29724 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
29725 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
29726 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
29727 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
29728 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
29729 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
29730 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
29731 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
29732 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
29733 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
29734 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
29735 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
29736 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
29737 "\x74\x28\x9D\x05\x30\x20\x62\x41"
29738 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
29739 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
29740 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
29741 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
29742 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
29743 "\xF1\x6B\xD9",
29744 .ilen = 1011,
0840605e
JK
29745 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
29746 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29747 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29748 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29749 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29750 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
be6314b4
JK
29751 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29752 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29753 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29754 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29755 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29756 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29757 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29758 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29759 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29760 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29761 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29762 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29763 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29764 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29765 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29766 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29767 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29768 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29769 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29770 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29771 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29772 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29773 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29774 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29775 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29776 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29777 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29778 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29779 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29780 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29781 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29782 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29783 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29784 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29785 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29786 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29787 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29788 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29789 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29790 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29791 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29792 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29793 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29794 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29795 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29796 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29797 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29798 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29799 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29800 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29801 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29802 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29803 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29804 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29805 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29806 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
23a836e8
JK
29807 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29808 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29809 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29810 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29811 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29812 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29813 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29814 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29815 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29816 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29817 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29818 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29819 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29820 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29821 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29822 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29823 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29824 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29825 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29826 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29827 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29828 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29829 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29830 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29831 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29832 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29833 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29834 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29835 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29836 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29837 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29838 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29839 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29840 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29841 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29842 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29843 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29844 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29845 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29846 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29847 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29848 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29849 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29850 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29851 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29852 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29853 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29854 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29855 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29856 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29857 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29858 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29859 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29860 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29861 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29862 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29863 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29864 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29865 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29866 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29867 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29868 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29869 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29870 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
29871 "\xE4\x7B\x12",
29872 .rlen = 1011,
f44d83d1
JK
29873 .also_non_np = 1,
29874 .np = 2,
23a836e8 29875 .tap = { 1011 - 16, 16 },
549595a0
JK
29876 }, { /* Generated with Crypto++ */
29877 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29878 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29879 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29880 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29881 .klen = 32,
29882 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
29883 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
29884 .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
29885 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
29886 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
29887 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
29888 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
29889 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
29890 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
29891 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
29892 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
29893 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
29894 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
29895 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
29896 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
29897 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
29898 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
29899 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
29900 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
29901 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
29902 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
29903 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
29904 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
29905 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
29906 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
29907 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
29908 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
29909 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
29910 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
29911 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
29912 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
29913 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
29914 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
29915 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
29916 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
29917 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
29918 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
29919 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
29920 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
29921 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
29922 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
29923 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
29924 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
29925 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
29926 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
29927 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
29928 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
29929 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
29930 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
29931 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
29932 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
29933 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
29934 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
29935 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
29936 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
29937 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
29938 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
29939 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
29940 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
29941 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
29942 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
29943 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
29944 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
23a836e8
JK
29945 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
29946 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
29947 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
29948 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
29949 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
29950 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
29951 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
29952 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
29953 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
29954 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
29955 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
29956 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
29957 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
29958 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
29959 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
29960 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
29961 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
29962 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
29963 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
29964 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
29965 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
29966 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
29967 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
29968 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
29969 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
29970 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
29971 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
29972 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
29973 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
29974 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
29975 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
29976 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
29977 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
29978 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
29979 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
29980 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
29981 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
29982 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
29983 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
29984 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
29985 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
29986 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
29987 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
29988 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
29989 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
29990 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
29991 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
29992 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
29993 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
29994 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
29995 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
29996 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
29997 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
29998 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
29999 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
30000 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
30001 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
30002 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
30003 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
30004 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
30005 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
30006 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
30007 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
30008 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
30009 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
30010 .ilen = 1008,
549595a0
JK
30011 .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
30012 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
30013 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
30014 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
30015 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
30016 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
30017 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
30018 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
30019 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
30020 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
30021 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
30022 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
30023 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
30024 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
30025 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
30026 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
30027 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
30028 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
30029 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
30030 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
30031 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
30032 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
30033 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
30034 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
30035 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
30036 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
30037 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
30038 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
30039 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
30040 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
30041 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
30042 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
30043 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
30044 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
30045 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
30046 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
30047 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
30048 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
30049 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
30050 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
30051 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
30052 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
30053 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
30054 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
30055 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
30056 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
30057 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
30058 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
30059 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
30060 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
30061 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
30062 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
30063 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
30064 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
30065 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
30066 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
30067 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
30068 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
30069 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
30070 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
30071 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
23a836e8
JK
30072 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
30073 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
30074 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
30075 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
30076 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
30077 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
30078 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
30079 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
30080 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
30081 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
30082 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
30083 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
30084 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
30085 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
30086 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
30087 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
30088 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
30089 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
30090 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
30091 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
30092 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
30093 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
30094 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
30095 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
30096 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
30097 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
30098 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
30099 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
30100 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
30101 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
30102 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
30103 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
30104 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
30105 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
30106 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
30107 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
30108 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
30109 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
30110 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
30111 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
30112 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
30113 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
30114 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
30115 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
30116 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
30117 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
30118 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
30119 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
30120 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
30121 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
30122 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
30123 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
30124 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
30125 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
30126 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
30127 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
30128 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
30129 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
30130 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
30131 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
30132 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
30133 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
30134 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
30135 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
30136 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
30137 .rlen = 1008,
0840605e 30138 },
0840605e
JK
30139};
30140
30141static struct cipher_testvec camellia_lrw_enc_tv_template[] = {
30142 /* Generated from AES-LRW test vectors */
30143 {
30144 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
30145 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
30146 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
30147 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
30148 .klen = 32,
30149 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30150 "\x00\x00\x00\x00\x00\x00\x00\x01",
30151 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30152 "\x38\x39\x41\x42\x43\x44\x45\x46",
30153 .ilen = 16,
30154 .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
30155 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
30156 .rlen = 16,
30157 }, {
30158 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
30159 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
30160 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
30161 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
30162 .klen = 32,
30163 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30164 "\x00\x00\x00\x00\x00\x00\x00\x02",
30165 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30166 "\x38\x39\x41\x42\x43\x44\x45\x46",
30167 .ilen = 16,
30168 .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
30169 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
30170 .rlen = 16,
30171 }, {
30172 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
30173 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
30174 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
30175 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
30176 .klen = 32,
30177 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30178 "\x00\x00\x00\x02\x00\x00\x00\x00",
30179 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30180 "\x38\x39\x41\x42\x43\x44\x45\x46",
30181 .ilen = 16,
30182 .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
30183 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
30184 .rlen = 16,
30185 }, {
30186 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
30187 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
30188 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
30189 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
30190 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
30191 .klen = 40,
30192 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30193 "\x00\x00\x00\x00\x00\x00\x00\x01",
30194 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30195 "\x38\x39\x41\x42\x43\x44\x45\x46",
30196 .ilen = 16,
30197 .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
30198 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
30199 .rlen = 16,
30200 }, {
30201 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
30202 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
30203 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
30204 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
30205 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
30206 .klen = 40,
30207 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30208 "\x00\x00\x00\x02\x00\x00\x00\x00",
30209 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30210 "\x38\x39\x41\x42\x43\x44\x45\x46",
30211 .ilen = 16,
30212 .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
30213 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
30214 .rlen = 16,
30215 }, {
30216 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30217 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30218 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30219 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30220 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30221 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30222 .klen = 48,
30223 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30224 "\x00\x00\x00\x00\x00\x00\x00\x01",
30225 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30226 "\x38\x39\x41\x42\x43\x44\x45\x46",
30227 .ilen = 16,
30228 .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
30229 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
30230 .rlen = 16,
30231 }, {
30232 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
30233 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
30234 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
30235 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
30236 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
30237 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
30238 .klen = 48,
30239 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30240 "\x00\x00\x00\x02\x00\x00\x00\x00",
30241 .input = "\x30\x31\x32\x33\x34\x35\x36\x37"
30242 "\x38\x39\x41\x42\x43\x44\x45\x46",
30243 .ilen = 16,
30244 .result = "\x04\xab\x28\x37\x31\x7a\x26\xab"
30245 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
30246 .rlen = 16,
30247 }, {
30248 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30249 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30250 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30251 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30252 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30253 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30254 .klen = 48,
30255 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30256 "\x00\x00\x00\x00\x00\x00\x00\x01",
30257 .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
30258 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
30259 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
30260 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
30261 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
30262 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
30263 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
30264 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
30265 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
30266 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
30267 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
30268 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
30269 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
30270 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
30271 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
30272 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
30273 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
30274 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
30275 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
30276 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
30277 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
30278 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
30279 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
30280 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
30281 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
30282 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
30283 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
30284 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
30285 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
30286 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
30287 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
30288 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
30289 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
30290 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
30291 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
30292 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
30293 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
30294 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
30295 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
30296 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
30297 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
30298 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
30299 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
30300 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
30301 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
30302 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
30303 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
30304 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
30305 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
30306 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
30307 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
30308 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
30309 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
30310 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
30311 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
30312 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
30313 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
30314 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
30315 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
30316 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
30317 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
30318 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
30319 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
30320 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
30321 .ilen = 512,
30322 .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
30323 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
30324 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
30325 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
30326 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
30327 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
30328 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
30329 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
30330 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
30331 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
30332 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
30333 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
30334 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
30335 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
30336 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
30337 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
30338 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
30339 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
30340 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
30341 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
30342 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
30343 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
30344 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
30345 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
30346 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
30347 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
30348 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
30349 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
30350 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
30351 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
30352 "\xed\x14\xa9\x57\x19\x63\x40\x04"
30353 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
30354 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
30355 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
30356 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
30357 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
30358 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
30359 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
30360 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
30361 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
30362 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
30363 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
30364 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
30365 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
30366 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
30367 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
30368 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
30369 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
30370 "\x35\xa5\x83\x04\x84\x01\x99\x56"
30371 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
30372 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
30373 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
30374 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
30375 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
30376 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
30377 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
30378 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
30379 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
30380 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
30381 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
30382 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
30383 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
30384 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
30385 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
30386 .rlen = 512,
f44d83d1 30387 .also_non_np = 1,
3b9b8fe0
AB
30388 .np = 3,
30389 .tap = { 512 - 20, 4, 16 },
0840605e
JK
30390 },
30391};
30392
30393static struct cipher_testvec camellia_lrw_dec_tv_template[] = {
30394 /* Generated from AES-LRW test vectors */
30395 /* same as enc vectors with input and result reversed */
30396 {
30397 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
30398 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
30399 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
30400 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
30401 .klen = 32,
30402 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30403 "\x00\x00\x00\x00\x00\x00\x00\x01",
30404 .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
30405 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
30406 .ilen = 16,
30407 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30408 "\x38\x39\x41\x42\x43\x44\x45\x46",
30409 .rlen = 16,
30410 }, {
30411 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
30412 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
30413 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
30414 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
30415 .klen = 32,
30416 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30417 "\x00\x00\x00\x00\x00\x00\x00\x02",
30418 .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
30419 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
30420 .ilen = 16,
30421 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30422 "\x38\x39\x41\x42\x43\x44\x45\x46",
30423 .rlen = 16,
30424 }, {
30425 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
30426 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
30427 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
30428 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
30429 .klen = 32,
30430 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30431 "\x00\x00\x00\x02\x00\x00\x00\x00",
30432 .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
30433 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
30434 .ilen = 16,
30435 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30436 "\x38\x39\x41\x42\x43\x44\x45\x46",
30437 .rlen = 16,
30438 }, {
30439 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
30440 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
30441 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
30442 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
30443 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
30444 .klen = 40,
30445 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30446 "\x00\x00\x00\x00\x00\x00\x00\x01",
30447 .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
30448 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
30449 .ilen = 16,
30450 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30451 "\x38\x39\x41\x42\x43\x44\x45\x46",
30452 .rlen = 16,
30453 }, {
30454 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
30455 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
30456 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
30457 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
30458 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
30459 .klen = 40,
30460 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30461 "\x00\x00\x00\x02\x00\x00\x00\x00",
30462 .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
30463 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
30464 .ilen = 16,
30465 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30466 "\x38\x39\x41\x42\x43\x44\x45\x46",
30467 .rlen = 16,
30468 }, {
30469 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30470 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30471 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30472 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30473 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30474 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30475 .klen = 48,
30476 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30477 "\x00\x00\x00\x00\x00\x00\x00\x01",
30478 .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
30479 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
30480 .ilen = 16,
30481 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30482 "\x38\x39\x41\x42\x43\x44\x45\x46",
30483 .rlen = 16,
30484 }, {
30485 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
30486 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
30487 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
30488 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
30489 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
30490 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
30491 .klen = 48,
30492 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30493 "\x00\x00\x00\x02\x00\x00\x00\x00",
30494 .input = "\x04\xab\x28\x37\x31\x7a\x26\xab"
30495 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
30496 .ilen = 16,
30497 .result = "\x30\x31\x32\x33\x34\x35\x36\x37"
30498 "\x38\x39\x41\x42\x43\x44\x45\x46",
30499 .rlen = 16,
30500 }, {
30501 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30502 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30503 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30504 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30505 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30506 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30507 .klen = 48,
30508 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30509 "\x00\x00\x00\x00\x00\x00\x00\x01",
30510 .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
30511 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
30512 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
30513 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
30514 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
30515 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
30516 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
30517 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
30518 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
30519 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
30520 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
30521 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
30522 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
30523 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
30524 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
30525 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
30526 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
30527 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
30528 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
30529 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
30530 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
30531 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
30532 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
30533 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
30534 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
30535 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
30536 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
30537 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
30538 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
30539 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
30540 "\xed\x14\xa9\x57\x19\x63\x40\x04"
30541 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
30542 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
30543 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
30544 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
30545 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
30546 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
30547 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
30548 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
30549 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
30550 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
30551 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
30552 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
30553 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
30554 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
30555 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
30556 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
30557 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
30558 "\x35\xa5\x83\x04\x84\x01\x99\x56"
30559 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
30560 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
30561 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
30562 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
30563 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
30564 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
30565 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
30566 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
30567 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
30568 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
30569 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
30570 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
30571 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
30572 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
30573 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
30574 .ilen = 512,
30575 .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
30576 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
30577 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
30578 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
30579 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
30580 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
30581 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
30582 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
30583 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
30584 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
30585 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
30586 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
30587 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
30588 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
30589 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
30590 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
30591 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
30592 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
30593 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
30594 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
30595 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
30596 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
30597 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
30598 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
30599 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
30600 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
30601 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
30602 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
30603 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
30604 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
30605 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
30606 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
30607 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
30608 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
30609 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
30610 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
30611 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
30612 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
30613 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
30614 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
30615 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
30616 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
30617 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
30618 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
30619 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
30620 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
30621 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
30622 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
30623 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
30624 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
30625 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
30626 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
30627 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
30628 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
30629 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
30630 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
30631 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
30632 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
30633 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
30634 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
30635 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
30636 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
30637 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
30638 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
30639 .rlen = 512,
f44d83d1 30640 .also_non_np = 1,
3b9b8fe0
AB
30641 .np = 3,
30642 .tap = { 512 - 20, 4, 16 },
0840605e
JK
30643 },
30644};
30645
30646static struct cipher_testvec camellia_xts_enc_tv_template[] = {
30647 /* Generated from AES-XTS test vectors */
30648 {
30649 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30650 "\x00\x00\x00\x00\x00\x00\x00\x00"
30651 "\x00\x00\x00\x00\x00\x00\x00\x00"
30652 "\x00\x00\x00\x00\x00\x00\x00\x00",
30653 .klen = 32,
30654 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30655 "\x00\x00\x00\x00\x00\x00\x00\x00",
30656 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
30657 "\x00\x00\x00\x00\x00\x00\x00\x00"
30658 "\x00\x00\x00\x00\x00\x00\x00\x00"
30659 "\x00\x00\x00\x00\x00\x00\x00\x00",
30660 .ilen = 32,
30661 .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
30662 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
30663 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
30664 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
30665 .rlen = 32,
30666 }, {
30667 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
30668 "\x11\x11\x11\x11\x11\x11\x11\x11"
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 = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
30680 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
30681 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
30682 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
30683 .rlen = 32,
30684 }, {
30685 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
30686 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
30687 "\x22\x22\x22\x22\x22\x22\x22\x22"
30688 "\x22\x22\x22\x22\x22\x22\x22\x22",
30689 .klen = 32,
30690 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
30691 "\x00\x00\x00\x00\x00\x00\x00\x00",
30692 .input = "\x44\x44\x44\x44\x44\x44\x44\x44"
30693 "\x44\x44\x44\x44\x44\x44\x44\x44"
30694 "\x44\x44\x44\x44\x44\x44\x44\x44"
30695 "\x44\x44\x44\x44\x44\x44\x44\x44",
30696 .ilen = 32,
30697 .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
30698 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
30699 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
30700 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
30701 .rlen = 32,
30702 }, {
30703 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
30704 "\x23\x53\x60\x28\x74\x71\x35\x26"
30705 "\x31\x41\x59\x26\x53\x58\x97\x93"
30706 "\x23\x84\x62\x64\x33\x83\x27\x95",
30707 .klen = 32,
30708 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30709 "\x00\x00\x00\x00\x00\x00\x00\x00",
30710 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
30711 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30712 "\x10\x11\x12\x13\x14\x15\x16\x17"
30713 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30714 "\x20\x21\x22\x23\x24\x25\x26\x27"
30715 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30716 "\x30\x31\x32\x33\x34\x35\x36\x37"
30717 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30718 "\x40\x41\x42\x43\x44\x45\x46\x47"
30719 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30720 "\x50\x51\x52\x53\x54\x55\x56\x57"
30721 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30722 "\x60\x61\x62\x63\x64\x65\x66\x67"
30723 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30724 "\x70\x71\x72\x73\x74\x75\x76\x77"
30725 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30726 "\x80\x81\x82\x83\x84\x85\x86\x87"
30727 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30728 "\x90\x91\x92\x93\x94\x95\x96\x97"
30729 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30730 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30731 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30732 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30733 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30734 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30735 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30736 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30737 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30738 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30739 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30740 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30741 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30742 "\x00\x01\x02\x03\x04\x05\x06\x07"
30743 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30744 "\x10\x11\x12\x13\x14\x15\x16\x17"
30745 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30746 "\x20\x21\x22\x23\x24\x25\x26\x27"
30747 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30748 "\x30\x31\x32\x33\x34\x35\x36\x37"
30749 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30750 "\x40\x41\x42\x43\x44\x45\x46\x47"
30751 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30752 "\x50\x51\x52\x53\x54\x55\x56\x57"
30753 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30754 "\x60\x61\x62\x63\x64\x65\x66\x67"
30755 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30756 "\x70\x71\x72\x73\x74\x75\x76\x77"
30757 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30758 "\x80\x81\x82\x83\x84\x85\x86\x87"
30759 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30760 "\x90\x91\x92\x93\x94\x95\x96\x97"
30761 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30762 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30763 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30764 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30765 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30766 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30767 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30768 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30769 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30770 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30771 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30772 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30773 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
30774 .ilen = 512,
30775 .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
30776 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
30777 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
30778 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
30779 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
30780 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
30781 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
30782 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
30783 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
30784 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
30785 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
30786 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
30787 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
30788 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
30789 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
30790 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
30791 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
30792 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
30793 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
30794 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
30795 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
30796 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
30797 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
30798 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
30799 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
30800 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
30801 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
30802 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
30803 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
30804 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
30805 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
30806 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
30807 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
30808 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
30809 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
30810 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
30811 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
30812 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
30813 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
30814 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
30815 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
30816 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
30817 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
30818 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
30819 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
30820 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
30821 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
30822 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
30823 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
30824 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
30825 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
30826 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
30827 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
30828 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
30829 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
30830 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
30831 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
30832 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
30833 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
30834 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
30835 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
30836 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
30837 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
30838 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
30839 .rlen = 512,
30840 }, {
30841 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
30842 "\x23\x53\x60\x28\x74\x71\x35\x26"
30843 "\x62\x49\x77\x57\x24\x70\x93\x69"
30844 "\x99\x59\x57\x49\x66\x96\x76\x27"
30845 "\x31\x41\x59\x26\x53\x58\x97\x93"
30846 "\x23\x84\x62\x64\x33\x83\x27\x95"
30847 "\x02\x88\x41\x97\x16\x93\x99\x37"
30848 "\x51\x05\x82\x09\x74\x94\x45\x92",
30849 .klen = 64,
30850 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
30851 "\x00\x00\x00\x00\x00\x00\x00\x00",
30852 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
30853 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30854 "\x10\x11\x12\x13\x14\x15\x16\x17"
30855 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30856 "\x20\x21\x22\x23\x24\x25\x26\x27"
30857 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30858 "\x30\x31\x32\x33\x34\x35\x36\x37"
30859 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30860 "\x40\x41\x42\x43\x44\x45\x46\x47"
30861 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30862 "\x50\x51\x52\x53\x54\x55\x56\x57"
30863 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30864 "\x60\x61\x62\x63\x64\x65\x66\x67"
30865 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30866 "\x70\x71\x72\x73\x74\x75\x76\x77"
30867 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30868 "\x80\x81\x82\x83\x84\x85\x86\x87"
30869 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30870 "\x90\x91\x92\x93\x94\x95\x96\x97"
30871 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30872 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30873 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30874 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30875 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30876 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30877 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30878 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30879 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30880 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30881 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30882 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30883 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30884 "\x00\x01\x02\x03\x04\x05\x06\x07"
30885 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30886 "\x10\x11\x12\x13\x14\x15\x16\x17"
30887 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30888 "\x20\x21\x22\x23\x24\x25\x26\x27"
30889 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30890 "\x30\x31\x32\x33\x34\x35\x36\x37"
30891 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30892 "\x40\x41\x42\x43\x44\x45\x46\x47"
30893 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30894 "\x50\x51\x52\x53\x54\x55\x56\x57"
30895 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30896 "\x60\x61\x62\x63\x64\x65\x66\x67"
30897 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30898 "\x70\x71\x72\x73\x74\x75\x76\x77"
30899 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30900 "\x80\x81\x82\x83\x84\x85\x86\x87"
30901 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30902 "\x90\x91\x92\x93\x94\x95\x96\x97"
30903 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30904 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30905 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30906 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30907 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30908 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30909 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30910 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30911 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30912 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30913 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30914 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30915 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
30916 .ilen = 512,
30917 .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
30918 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
30919 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
30920 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
30921 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
30922 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
30923 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
30924 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
30925 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
30926 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
30927 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
30928 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
30929 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
30930 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
30931 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
30932 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
30933 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
30934 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
30935 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
30936 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
30937 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
30938 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
30939 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
30940 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
30941 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
30942 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
30943 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
30944 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
30945 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
30946 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
30947 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
30948 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
30949 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
30950 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
30951 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
30952 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
30953 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
30954 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
30955 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
30956 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
30957 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
30958 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
30959 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
30960 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
30961 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
30962 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
30963 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
30964 "\x21\x17\xf8\x59\x15\x24\x64\x22"
30965 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
30966 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
30967 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
30968 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
30969 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
30970 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
30971 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
30972 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
30973 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
30974 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
30975 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
30976 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
30977 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
30978 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
30979 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
30980 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
30981 .rlen = 512,
f44d83d1 30982 .also_non_np = 1,
3b9b8fe0
AB
30983 .np = 3,
30984 .tap = { 512 - 20, 4, 16 },
0840605e
JK
30985 },
30986};
30987
30988static struct cipher_testvec camellia_xts_dec_tv_template[] = {
30989 /* Generated from AES-XTS test vectors */
30990 /* same as enc vectors with input and result reversed */
30991 {
30992 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30993 "\x00\x00\x00\x00\x00\x00\x00\x00"
30994 "\x00\x00\x00\x00\x00\x00\x00\x00"
30995 "\x00\x00\x00\x00\x00\x00\x00\x00",
30996 .klen = 32,
30997 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30998 "\x00\x00\x00\x00\x00\x00\x00\x00",
30999 .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
31000 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
31001 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
31002 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
31003 .ilen = 32,
31004 .result = "\x00\x00\x00\x00\x00\x00\x00\x00"
31005 "\x00\x00\x00\x00\x00\x00\x00\x00"
31006 "\x00\x00\x00\x00\x00\x00\x00\x00"
31007 "\x00\x00\x00\x00\x00\x00\x00\x00",
31008 .rlen = 32,
31009 }, {
31010 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
31011 "\x11\x11\x11\x11\x11\x11\x11\x11"
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 = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
31018 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
31019 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
31020 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
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 = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
31029 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
31030 "\x22\x22\x22\x22\x22\x22\x22\x22"
31031 "\x22\x22\x22\x22\x22\x22\x22\x22",
31032 .klen = 32,
31033 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
31034 "\x00\x00\x00\x00\x00\x00\x00\x00",
31035 .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
31036 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
31037 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
31038 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
31039 .ilen = 32,
31040 .result = "\x44\x44\x44\x44\x44\x44\x44\x44"
31041 "\x44\x44\x44\x44\x44\x44\x44\x44"
31042 "\x44\x44\x44\x44\x44\x44\x44\x44"
31043 "\x44\x44\x44\x44\x44\x44\x44\x44",
31044 .rlen = 32,
31045 }, {
31046 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
31047 "\x23\x53\x60\x28\x74\x71\x35\x26"
31048 "\x31\x41\x59\x26\x53\x58\x97\x93"
31049 "\x23\x84\x62\x64\x33\x83\x27\x95",
31050 .klen = 32,
31051 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31052 "\x00\x00\x00\x00\x00\x00\x00\x00",
31053 .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
31054 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
31055 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
31056 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
31057 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
31058 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
31059 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
31060 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
31061 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
31062 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
31063 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
31064 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
31065 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
31066 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
31067 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
31068 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
31069 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
31070 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
31071 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
31072 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
31073 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
31074 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
31075 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
31076 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
31077 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
31078 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
31079 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
31080 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
31081 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
31082 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
31083 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
31084 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
31085 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
31086 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
31087 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
31088 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
31089 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
31090 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
31091 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
31092 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
31093 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
31094 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
31095 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
31096 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
31097 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
31098 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
31099 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
31100 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
31101 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
31102 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
31103 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
31104 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
31105 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
31106 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
31107 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
31108 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
31109 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
31110 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
31111 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
31112 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
31113 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
31114 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
31115 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
31116 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
31117 .ilen = 512,
31118 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31119 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31120 "\x10\x11\x12\x13\x14\x15\x16\x17"
31121 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31122 "\x20\x21\x22\x23\x24\x25\x26\x27"
31123 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31124 "\x30\x31\x32\x33\x34\x35\x36\x37"
31125 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31126 "\x40\x41\x42\x43\x44\x45\x46\x47"
31127 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31128 "\x50\x51\x52\x53\x54\x55\x56\x57"
31129 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31130 "\x60\x61\x62\x63\x64\x65\x66\x67"
31131 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31132 "\x70\x71\x72\x73\x74\x75\x76\x77"
31133 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31134 "\x80\x81\x82\x83\x84\x85\x86\x87"
31135 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31136 "\x90\x91\x92\x93\x94\x95\x96\x97"
31137 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31138 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31139 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31140 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31141 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31142 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31143 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31144 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31145 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31146 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31147 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31148 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31149 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31150 "\x00\x01\x02\x03\x04\x05\x06\x07"
31151 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31152 "\x10\x11\x12\x13\x14\x15\x16\x17"
31153 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31154 "\x20\x21\x22\x23\x24\x25\x26\x27"
31155 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31156 "\x30\x31\x32\x33\x34\x35\x36\x37"
31157 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31158 "\x40\x41\x42\x43\x44\x45\x46\x47"
31159 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31160 "\x50\x51\x52\x53\x54\x55\x56\x57"
31161 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31162 "\x60\x61\x62\x63\x64\x65\x66\x67"
31163 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31164 "\x70\x71\x72\x73\x74\x75\x76\x77"
31165 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31166 "\x80\x81\x82\x83\x84\x85\x86\x87"
31167 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31168 "\x90\x91\x92\x93\x94\x95\x96\x97"
31169 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31170 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31171 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31172 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31173 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31174 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31175 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31176 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31177 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31178 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31179 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31180 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31181 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
31182 .rlen = 512,
31183 }, {
31184 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
31185 "\x23\x53\x60\x28\x74\x71\x35\x26"
31186 "\x62\x49\x77\x57\x24\x70\x93\x69"
31187 "\x99\x59\x57\x49\x66\x96\x76\x27"
31188 "\x31\x41\x59\x26\x53\x58\x97\x93"
31189 "\x23\x84\x62\x64\x33\x83\x27\x95"
31190 "\x02\x88\x41\x97\x16\x93\x99\x37"
31191 "\x51\x05\x82\x09\x74\x94\x45\x92",
31192 .klen = 64,
31193 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
31194 "\x00\x00\x00\x00\x00\x00\x00\x00",
31195 .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
31196 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
31197 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
31198 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
31199 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
31200 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
31201 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
31202 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
31203 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
31204 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
31205 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
31206 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
31207 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
31208 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
31209 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
31210 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
31211 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
31212 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
31213 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
31214 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
31215 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
31216 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
31217 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
31218 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
31219 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
31220 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
31221 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
31222 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
31223 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
31224 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
31225 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
31226 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
31227 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
31228 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
31229 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
31230 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
31231 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
31232 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
31233 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
31234 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
31235 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
31236 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
31237 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
31238 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
31239 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
31240 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
31241 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
31242 "\x21\x17\xf8\x59\x15\x24\x64\x22"
31243 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
31244 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
31245 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
31246 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
31247 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
31248 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
31249 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
31250 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
31251 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
31252 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
31253 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
31254 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
31255 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
31256 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
31257 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
31258 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
31259 .ilen = 512,
31260 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31261 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31262 "\x10\x11\x12\x13\x14\x15\x16\x17"
31263 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31264 "\x20\x21\x22\x23\x24\x25\x26\x27"
31265 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31266 "\x30\x31\x32\x33\x34\x35\x36\x37"
31267 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31268 "\x40\x41\x42\x43\x44\x45\x46\x47"
31269 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31270 "\x50\x51\x52\x53\x54\x55\x56\x57"
31271 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31272 "\x60\x61\x62\x63\x64\x65\x66\x67"
31273 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31274 "\x70\x71\x72\x73\x74\x75\x76\x77"
31275 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31276 "\x80\x81\x82\x83\x84\x85\x86\x87"
31277 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31278 "\x90\x91\x92\x93\x94\x95\x96\x97"
31279 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31280 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31281 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31282 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31283 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31284 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31285 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31286 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31287 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31288 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31289 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31290 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31291 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31292 "\x00\x01\x02\x03\x04\x05\x06\x07"
31293 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31294 "\x10\x11\x12\x13\x14\x15\x16\x17"
31295 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31296 "\x20\x21\x22\x23\x24\x25\x26\x27"
31297 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31298 "\x30\x31\x32\x33\x34\x35\x36\x37"
31299 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31300 "\x40\x41\x42\x43\x44\x45\x46\x47"
31301 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31302 "\x50\x51\x52\x53\x54\x55\x56\x57"
31303 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31304 "\x60\x61\x62\x63\x64\x65\x66\x67"
31305 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31306 "\x70\x71\x72\x73\x74\x75\x76\x77"
31307 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31308 "\x80\x81\x82\x83\x84\x85\x86\x87"
31309 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31310 "\x90\x91\x92\x93\x94\x95\x96\x97"
31311 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31312 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31313 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31314 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31315 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31316 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31317 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31318 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31319 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31320 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31321 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31322 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31323 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
31324 .rlen = 512,
f44d83d1 31325 .also_non_np = 1,
3b9b8fe0
AB
31326 .np = 3,
31327 .tap = { 512 - 20, 4, 16 },
0840605e 31328 },
da7f033d
HX
31329};
31330
31331/*
31332 * SEED test vectors
31333 */
31334#define SEED_ENC_TEST_VECTORS 4
31335#define SEED_DEC_TEST_VECTORS 4
31336
31337static struct cipher_testvec seed_enc_tv_template[] = {
31338 {
31339 .key = zeroed_string,
31340 .klen = 16,
31341 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
31342 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31343 .ilen = 16,
31344 .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
31345 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
31346 .rlen = 16,
31347 }, {
31348 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31349 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31350 .klen = 16,
31351 .input = zeroed_string,
31352 .ilen = 16,
31353 .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
31354 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
31355 .rlen = 16,
31356 }, {
31357 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
31358 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
31359 .klen = 16,
31360 .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
31361 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
31362 .ilen = 16,
31363 .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
31364 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
31365 .rlen = 16,
31366 }, {
31367 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
31368 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
31369 .klen = 16,
31370 .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
31371 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
31372 .ilen = 16,
31373 .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
31374 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
31375 .rlen = 16,
31376 }
31377};
31378
31379static struct cipher_testvec seed_dec_tv_template[] = {
31380 {
31381 .key = zeroed_string,
31382 .klen = 16,
31383 .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
31384 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
31385 .ilen = 16,
31386 .result = "\x00\x01\x02\x03\x04\x05\x06\x07"
31387 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31388 .rlen = 16,
31389 }, {
31390 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31391 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31392 .klen = 16,
31393 .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
31394 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
31395 .ilen = 16,
31396 .result = zeroed_string,
31397 .rlen = 16,
31398 }, {
31399 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
31400 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
31401 .klen = 16,
31402 .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
31403 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
31404 .ilen = 16,
31405 .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
31406 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
31407 .rlen = 16,
31408 }, {
31409 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
31410 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
31411 .klen = 16,
31412 .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
31413 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
31414 .ilen = 16,
31415 .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
31416 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
31417 .rlen = 16,
31418 }
31419};
31420
31421#define SALSA20_STREAM_ENC_TEST_VECTORS 5
31422static struct cipher_testvec salsa20_stream_enc_tv_template[] = {
31423 /*
31424 * Testvectors from verified.test-vectors submitted to ECRYPT.
31425 * They are truncated to size 39, 64, 111, 129 to test a variety
31426 * of input length.
31427 */
31428 { /* Set 3, vector 0 */
31429 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31430 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
31431 .klen = 16,
31432 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
31433 .input = "\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",
31438 .ilen = 39,
31439 .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
31440 "\x68\x02\x41\x0C\x68\x86\x88\x89"
31441 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
31442 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
31443 "\x58\x3F\x52\x79\x70\xEB\xC1",
31444 .rlen = 39,
31445 }, { /* Set 5, vector 0 */
31446 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31447 "\x00\x00\x00\x00\x00\x00\x00\x00",
31448 .klen = 16,
31449 .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
31450 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31451 "\x00\x00\x00\x00\x00\x00\x00\x00"
31452 "\x00\x00\x00\x00\x00\x00\x00\x00"
31453 "\x00\x00\x00\x00\x00\x00\x00\x00"
31454 "\x00\x00\x00\x00\x00\x00\x00\x00"
31455 "\x00\x00\x00\x00\x00\x00\x00\x00"
31456 "\x00\x00\x00\x00\x00\x00\x00\x00"
31457 "\x00\x00\x00\x00\x00\x00\x00\x00",
31458 .ilen = 64,
31459 .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
31460 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
31461 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
31462 "\x46\x26\xBF\x44\x3F\x21\x97\x76"
31463 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
31464 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
31465 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
31466 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
31467 .rlen = 64,
31468 }, { /* Set 3, vector 27 */
31469 .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
31470 "\x23\x24\x25\x26\x27\x28\x29\x2A"
31471 "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
31472 "\x33\x34\x35\x36\x37\x38\x39\x3A",
31473 .klen = 32,
31474 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
31475 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31476 "\x00\x00\x00\x00\x00\x00\x00\x00"
31477 "\x00\x00\x00\x00\x00\x00\x00\x00"
31478 "\x00\x00\x00\x00\x00\x00\x00\x00"
31479 "\x00\x00\x00\x00\x00\x00\x00\x00"
31480 "\x00\x00\x00\x00\x00\x00\x00\x00"
31481 "\x00\x00\x00\x00\x00\x00\x00\x00"
31482 "\x00\x00\x00\x00\x00\x00\x00\x00"
31483 "\x00\x00\x00\x00\x00\x00\x00\x00"
31484 "\x00\x00\x00\x00\x00\x00\x00\x00"
31485 "\x00\x00\x00\x00\x00\x00\x00\x00"
31486 "\x00\x00\x00\x00\x00\x00\x00\x00"
31487 "\x00\x00\x00\x00\x00\x00\x00\x00"
31488 "\x00\x00\x00\x00\x00\x00\x00",
31489 .ilen = 111,
31490 .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
31491 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
31492 "\x87\xD9\x47\xF8\x28\x91\x35\x98"
31493 "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
31494 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
31495 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
31496 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
31497 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
31498 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
31499 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
31500 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
31501 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
31502 "\x95\x46\x45\x54\xE9\x75\x03\x08"
31503 "\x44\xAF\xE5\x8A\x81\x12\x09",
31504 .rlen = 111,
31505 }, { /* Set 5, vector 27 */
31506 .key = "\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 .klen = 32,
31511 .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
31512 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
31513 "\x00\x00\x00\x00\x00\x00\x00\x00"
31514 "\x00\x00\x00\x00\x00\x00\x00\x00"
31515 "\x00\x00\x00\x00\x00\x00\x00\x00"
31516 "\x00\x00\x00\x00\x00\x00\x00\x00"
31517 "\x00\x00\x00\x00\x00\x00\x00\x00"
31518 "\x00\x00\x00\x00\x00\x00\x00\x00"
31519 "\x00\x00\x00\x00\x00\x00\x00\x00"
31520 "\x00\x00\x00\x00\x00\x00\x00\x00"
31521 "\x00\x00\x00\x00\x00\x00\x00\x00"
31522 "\x00\x00\x00\x00\x00\x00\x00\x00"
31523 "\x00\x00\x00\x00\x00\x00\x00\x00"
31524 "\x00\x00\x00\x00\x00\x00\x00\x00"
31525 "\x00\x00\x00\x00\x00\x00\x00\x00"
31526 "\x00\x00\x00\x00\x00\x00\x00\x00"
31527 "\x00\x00\x00\x00\x00\x00\x00\x00"
31528 "\x00",
31529 .ilen = 129,
31530 .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
31531 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
31532 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
31533 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
31534 "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
31535 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
31536 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
31537 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
31538 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
31539 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
31540 "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
31541 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
31542 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
31543 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
31544 "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
31545 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
31546 "\x5A",
31547 .rlen = 129,
31548 }, { /* large test vector generated using Crypto++ */
31549 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
31550 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31551 "\x10\x11\x12\x13\x14\x15\x16\x17"
31552 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
31553 .klen = 32,
31554 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31555 "\x00\x00\x00\x00\x00\x00\x00\x00",
31556 .input =
31557 "\x00\x01\x02\x03\x04\x05\x06\x07"
31558 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31559 "\x10\x11\x12\x13\x14\x15\x16\x17"
31560 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31561 "\x20\x21\x22\x23\x24\x25\x26\x27"
31562 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31563 "\x30\x31\x32\x33\x34\x35\x36\x37"
31564 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31565 "\x40\x41\x42\x43\x44\x45\x46\x47"
31566 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
31567 "\x50\x51\x52\x53\x54\x55\x56\x57"
31568 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
31569 "\x60\x61\x62\x63\x64\x65\x66\x67"
31570 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
31571 "\x70\x71\x72\x73\x74\x75\x76\x77"
31572 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
31573 "\x80\x81\x82\x83\x84\x85\x86\x87"
31574 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
31575 "\x90\x91\x92\x93\x94\x95\x96\x97"
31576 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
31577 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31578 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31579 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31580 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31581 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31582 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31583 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31584 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
31585 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
31586 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
31587 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
31588 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
31589 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
31590 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
31591 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
31592 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
31593 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
31594 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
31595 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
31596 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
31597 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
31598 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
31599 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
31600 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
31601 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
31602 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
31603 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
31604 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
31605 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
31606 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
31607 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
31608 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
31609 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
31610 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
31611 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
31612 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
31613 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
31614 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
31615 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
31616 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
31617 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
31618 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
31619 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
31620 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
31621 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
31622 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
31623 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
31624 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
31625 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
31626 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
31627 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
31628 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
31629 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
31630 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
31631 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
31632 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
31633 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
31634 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
31635 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
31636 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
31637 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
31638 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
31639 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
31640 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
31641 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
31642 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
31643 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
31644 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
31645 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
31646 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
31647 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
31648 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
31649 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
31650 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
31651 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
31652 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
31653 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
31654 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
31655 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
31656 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
31657 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
31658 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
31659 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
31660 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
31661 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
31662 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
31663 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
31664 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
31665 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
31666 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
31667 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
31668 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
31669 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
31670 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
31671 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
31672 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
31673 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
31674 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
31675 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
31676 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
31677 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
31678 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
31679 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
31680 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
31681 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
31682 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
31683 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
31684 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
31685 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
31686 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
31687 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
31688 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
31689 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
31690 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
31691 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
31692 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
31693 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
31694 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
31695 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
31696 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
31697 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
31698 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
31699 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
31700 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
31701 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
31702 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
31703 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
31704 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
31705 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
31706 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
31707 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
31708 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
31709 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
31710 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
31711 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
31712 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
31713 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
31714 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
31715 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
31716 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
31717 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
31718 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
31719 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
31720 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
31721 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
31722 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
31723 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
31724 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
31725 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
31726 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
31727 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
31728 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
31729 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
31730 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
31731 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
31732 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
31733 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
31734 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
31735 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
31736 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
31737 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
31738 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
31739 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
31740 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
31741 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
31742 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
31743 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
31744 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
31745 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
31746 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
31747 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
31748 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
31749 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
31750 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
31751 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
31752 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
31753 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
31754 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
31755 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
31756 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
31757 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
31758 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
31759 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
31760 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
31761 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
31762 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
31763 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
31764 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
31765 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
31766 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
31767 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
31768 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
31769 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
31770 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
31771 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
31772 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
31773 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
31774 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
31775 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
31776 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
31777 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
31778 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
31779 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
31780 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
31781 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
31782 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
31783 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
31784 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
31785 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
31786 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
31787 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
31788 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
31789 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
31790 "\x38\x47\x56\x65\x74\x83\x92\xa1"
31791 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
31792 "\x28\x37\x46\x55\x64\x73\x82\x91"
31793 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
31794 "\x18\x27\x36\x45\x54\x63\x72\x81"
31795 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
31796 "\x08\x17\x26\x35\x44\x53\x62\x71"
31797 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
31798 "\xf8\x07\x16\x25\x34\x43\x52\x61"
31799 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
31800 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
31801 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
31802 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
31803 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
31804 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
31805 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
31806 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
31807 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
31808 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
31809 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
31810 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
31811 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
31812 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
31813 "\x00\x11\x22\x33\x44\x55\x66\x77"
31814 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
31815 "\x10\x21\x32\x43\x54\x65\x76\x87"
31816 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
31817 "\x20\x31\x42\x53\x64\x75\x86\x97"
31818 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
31819 "\x30\x41\x52\x63\x74\x85\x96\xa7"
31820 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
31821 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
31822 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
31823 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
31824 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
31825 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
31826 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
31827 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
31828 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
31829 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
31830 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
31831 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
31832 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
31833 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
31834 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
31835 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
31836 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
31837 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
31838 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
31839 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
31840 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
31841 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
31842 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
31843 "\xf0\x01\x12\x23\x34\x45\x56\x67"
31844 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
31845 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
31846 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
31847 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
31848 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
31849 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
31850 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
31851 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
31852 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
31853 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
31854 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
31855 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
31856 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
31857 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
31858 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
31859 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
31860 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
31861 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
31862 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
31863 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
31864 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
31865 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
31866 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
31867 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
31868 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
31869 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
31870 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
31871 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
31872 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
31873 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
31874 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
31875 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
31876 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
31877 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
31878 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
31879 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
31880 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
31881 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
31882 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
31883 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
31884 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
31885 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
31886 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
31887 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
31888 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
31889 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
31890 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
31891 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
31892 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
31893 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
31894 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
31895 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
31896 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
31897 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
31898 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
31899 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
31900 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
31901 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
31902 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
31903 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
31904 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
31905 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
31906 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
31907 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
31908 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
31909 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
31910 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
31911 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
31912 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
31913 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
31914 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
31915 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
31916 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
31917 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
31918 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
31919 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
31920 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
31921 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
31922 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
31923 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
31924 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
31925 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
31926 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
31927 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
31928 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
31929 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
31930 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
31931 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
31932 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
31933 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
31934 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
31935 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
31936 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
31937 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
31938 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
31939 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
31940 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
31941 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
31942 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
31943 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
31944 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
31945 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
31946 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
31947 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
31948 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
31949 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
31950 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
31951 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
31952 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
31953 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
31954 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
31955 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
31956 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
31957 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
31958 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
31959 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
31960 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
31961 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
31962 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
31963 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
31964 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
31965 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
31966 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
31967 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
31968 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
31969 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
31970 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
31971 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
31972 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
31973 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
31974 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
31975 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
31976 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
31977 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
31978 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
31979 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
31980 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
31981 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
31982 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
31983 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
31984 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
31985 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
31986 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
31987 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
31988 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
31989 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
31990 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
31991 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
31992 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
31993 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
31994 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
31995 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
31996 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
31997 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
31998 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
31999 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
32000 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
32001 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
32002 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
32003 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
32004 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
32005 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
32006 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
32007 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
32008 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
32009 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
32010 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
32011 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
32012 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
32013 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
32014 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
32015 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
32016 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
32017 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
32018 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
32019 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
32020 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
32021 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
32022 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
32023 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
32024 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
32025 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
32026 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
32027 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
32028 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
32029 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
32030 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
32031 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
32032 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
32033 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
32034 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
32035 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
32036 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
32037 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
32038 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
32039 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
32040 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
32041 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
32042 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
32043 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
32044 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
32045 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
32046 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
32047 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
32048 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
32049 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
32050 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
32051 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
32052 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
32053 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
32054 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
32055 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
32056 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
32057 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
32058 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
32059 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
32060 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
32061 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
32062 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
32063 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
32064 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
32065 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
32066 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
32067 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
32068 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
32069 "\x00\x21\x42\x63",
32070 .ilen = 4100,
32071 .result =
32072 "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
32073 "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
32074 "\x29\x01\xce\x98\x55\x53\xf9\x0c"
32075 "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
32076 "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
32077 "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
32078 "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
32079 "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
32080 "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
32081 "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
32082 "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
32083 "\xbb\xde\x56\x86\xab\x65\x21\x30"
32084 "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
32085 "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
32086 "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
32087 "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
32088 "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
32089 "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
32090 "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
32091 "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
32092 "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
32093 "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
32094 "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
32095 "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
32096 "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
32097 "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
32098 "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
32099 "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
32100 "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
32101 "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
32102 "\x45\xff\x3f\xce\x55\xf6\x95\x10"
32103 "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
32104 "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
32105 "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
32106 "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
32107 "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
32108 "\x62\x08\x18\x7a\x25\x49\x28\xac"
32109 "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
32110 "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
32111 "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
32112 "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
32113 "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
32114 "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
32115 "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
32116 "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
32117 "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
32118 "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
32119 "\x33\xee\x14\x19\x22\x52\x89\xa7"
32120 "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
32121 "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
32122 "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
32123 "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
32124 "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
32125 "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
32126 "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
32127 "\x04\x07\x08\x52\xe6\xc0\xda\x93"
32128 "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
32129 "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
32130 "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
32131 "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
32132 "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
32133 "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
32134 "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
32135 "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
32136 "\x5a\x90\xae\x75\x0a\x74\x18\x89"
32137 "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
32138 "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
32139 "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
32140 "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
32141 "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
32142 "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
32143 "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
32144 "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
32145 "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
32146 "\x49\x97\x33\xab\x36\x14\x0a\x70"
32147 "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
32148 "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
32149 "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
32150 "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
32151 "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
32152 "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
32153 "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
32154 "\x47\x13\x28\x73\x3c\xbb\x00\x90"
32155 "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
32156 "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
32157 "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
32158 "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
32159 "\xad\x04\x07\xae\x22\x90\x4a\x93"
32160 "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
32161 "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
32162 "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
32163 "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
32164 "\x53\xf9\x80\x10\xde\x80\xa2\x41"
32165 "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
32166 "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
32167 "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
32168 "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
32169 "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
32170 "\xde\xff\x07\x44\xdd\x56\x1b\xad"
32171 "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
32172 "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
32173 "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
32174 "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
32175 "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
32176 "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
32177 "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
32178 "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
32179 "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
32180 "\x23\xf8\x66\x18\x14\x28\x34\x0f"
32181 "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
32182 "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
32183 "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
32184 "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
32185 "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
32186 "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
32187 "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
32188 "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
32189 "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
32190 "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
32191 "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
32192 "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
32193 "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
32194 "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
32195 "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
32196 "\xca\x8e\x61\x87\xde\xad\x80\xd2"
32197 "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
32198 "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
32199 "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
32200 "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
32201 "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
32202 "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
32203 "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
32204 "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
32205 "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
32206 "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
32207 "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
32208 "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
32209 "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
32210 "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
32211 "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
32212 "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
32213 "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
32214 "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
32215 "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
32216 "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
32217 "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
32218 "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
32219 "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
32220 "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
32221 "\x54\xda\x24\x6a\xc4\x41\x65\x46"
32222 "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
32223 "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
32224 "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
32225 "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
32226 "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
32227 "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
32228 "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
32229 "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
32230 "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
32231 "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
32232 "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
32233 "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
32234 "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
32235 "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
32236 "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
32237 "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
32238 "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
32239 "\xef\xcc\xa7\xec\xab\x43\x09\x18"
32240 "\xd3\xab\x68\xd1\x07\x99\x44\x47"
32241 "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
32242 "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
32243 "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
32244 "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
32245 "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
32246 "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
32247 "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
32248 "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
32249 "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
32250 "\x71\x6e\x9f\x58\x15\x67\x72\x87"
32251 "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
32252 "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
32253 "\xba\x41\x54\xac\xf0\xfc\x59\x12"
32254 "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
32255 "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
32256 "\x2e\x53\x49\x97\x94\x33\xae\x40"
32257 "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
32258 "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
32259 "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
32260 "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
32261 "\xce\x87\xad\xcc\x72\x05\x00\x29"
32262 "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
32263 "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
32264 "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
32265 "\xac\xc0\x79\x50\x69\xca\x59\x32"
32266 "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
32267 "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
32268 "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
32269 "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
32270 "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
32271 "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
32272 "\x05\x68\x6b\xab\xe3\x41\x49\xed"
32273 "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
32274 "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
32275 "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
32276 "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
32277 "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
32278 "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
32279 "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
32280 "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
32281 "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
32282 "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
32283 "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
32284 "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
32285 "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
32286 "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
32287 "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
32288 "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
32289 "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
32290 "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
32291 "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
32292 "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
32293 "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
32294 "\x85\x75\xe6\x43\xf6\x87\x08\x68"
32295 "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
32296 "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
32297 "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
32298 "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
32299 "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
32300 "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
32301 "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
32302 "\xaf\x55\xeb\x22\xac\x93\x68\x32"
32303 "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
32304 "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
32305 "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
32306 "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
32307 "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
32308 "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
32309 "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
32310 "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
32311 "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
32312 "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
32313 "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
32314 "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
32315 "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
32316 "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
32317 "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
32318 "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
32319 "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
32320 "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
32321 "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
32322 "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
32323 "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
32324 "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
32325 "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
32326 "\x38\x55\xab\x33\x26\xef\x9f\x43"
32327 "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
32328 "\x58\x09\x09\x1b\xc3\x65\x46\x46"
32329 "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
32330 "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
32331 "\x63\x86\xf2\x03\x67\x45\xd2\x72"
32332 "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
32333 "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
32334 "\x2b\x82\x39\xbd\x69\x54\xed\x62"
32335 "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
32336 "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
32337 "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
32338 "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
32339 "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
32340 "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
32341 "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
32342 "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
32343 "\x55\xad\xa4\xd1\x22\x54\x70\x94"
32344 "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
32345 "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
32346 "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
32347 "\x62\x36\x43\xb2\x82\x15\x75\x50"
32348 "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
32349 "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
32350 "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
32351 "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
32352 "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
32353 "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
32354 "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
32355 "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
32356 "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
32357 "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
32358 "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
32359 "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
32360 "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
32361 "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
32362 "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
32363 "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
32364 "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
32365 "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
32366 "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
32367 "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
32368 "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
32369 "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
32370 "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
32371 "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
32372 "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
32373 "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
32374 "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
32375 "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
32376 "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
32377 "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
32378 "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
32379 "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
32380 "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
32381 "\x42\x19\x23\x7d\xc8\x73\xee\x25"
32382 "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
32383 "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
32384 "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
32385 "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
32386 "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
32387 "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
32388 "\xdb\x87\xee\xef\x55\x89\x2a\x59"
32389 "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
32390 "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
32391 "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
32392 "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
32393 "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
32394 "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
32395 "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
32396 "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
32397 "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
32398 "\xae\xab\x86\x09\x89\xc9\xc2\x40"
32399 "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
32400 "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
32401 "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
32402 "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
32403 "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
32404 "\x95\xd9\x34\x34\x86\xc6\x41\x94"
32405 "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
32406 "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
32407 "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
32408 "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
32409 "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
32410 "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
32411 "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
32412 "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
32413 "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
32414 "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
32415 "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
32416 "\xa7\x33\x34\x86\xca\xe4\x96\x23"
32417 "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
32418 "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
32419 "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
32420 "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
32421 "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
32422 "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
32423 "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
32424 "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
32425 "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
32426 "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
32427 "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
32428 "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
32429 "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
32430 "\x68\xc8\x7f\x51\x22\x42\xef\x49"
32431 "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
32432 "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
32433 "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
32434 "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
32435 "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
32436 "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
32437 "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
32438 "\x73\x2e\x71\x79\x16\x06\x63\x28"
32439 "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
32440 "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
32441 "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
32442 "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
32443 "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
32444 "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
32445 "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
32446 "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
32447 "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
32448 "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
32449 "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
32450 "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
32451 "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
32452 "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
32453 "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
32454 "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
32455 "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
32456 "\x19\x07\xaf\x90\x62\x5c\x68\x98"
32457 "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
32458 "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
32459 "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
32460 "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
32461 "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
32462 "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
32463 "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
32464 "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
32465 "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
32466 "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
32467 "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
32468 "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
32469 "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
32470 "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
32471 "\x21\x33\x44\xfe\x7f\x35\x32\x93"
32472 "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
32473 "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
32474 "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
32475 "\x64\xf0\x48\xe5\x57\x99\xee\x75"
32476 "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
32477 "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
32478 "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
32479 "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
32480 "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
32481 "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
32482 "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
32483 "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
32484 "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
32485 "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
32486 "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
32487 "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
32488 "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
32489 "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
32490 "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
32491 "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
32492 "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
32493 "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
32494 "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
32495 "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
32496 "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
32497 "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
32498 "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
32499 "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
32500 "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
32501 "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
32502 "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
32503 "\x56\xf5\x4e\x01\x35\x27\x45\x77"
32504 "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
32505 "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
32506 "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
32507 "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
32508 "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
32509 "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
32510 "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
32511 "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
32512 "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
32513 "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
32514 "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
32515 "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
32516 "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
32517 "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
32518 "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
32519 "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
32520 "\x87\x8f\x03\x21\x28\x95\x0c\x89"
32521 "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
32522 "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
32523 "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
32524 "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
32525 "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
32526 "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
32527 "\x85\x73\x78\x45\x20\x7f\xae\x13"
32528 "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
32529 "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
32530 "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
32531 "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
32532 "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
32533 "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
32534 "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
32535 "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
32536 "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
32537 "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
32538 "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
32539 "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
32540 "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
32541 "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
32542 "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
32543 "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
32544 "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
32545 "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
32546 "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
32547 "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
32548 "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
32549 "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
32550 "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
32551 "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
32552 "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
32553 "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
32554 "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
32555 "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
32556 "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
32557 "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
32558 "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
32559 "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
32560 "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
32561 "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
32562 "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
32563 "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
32564 "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
32565 "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
32566 "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
32567 "\x6e\x12\x17\x72\x63\x57\xc7\xba"
32568 "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
32569 "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
32570 "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
32571 "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
32572 "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
32573 "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
32574 "\x0c\x24\x43\x31\x40\x57\xf1\x72"
32575 "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
32576 "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
32577 "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
32578 "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
32579 "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
32580 "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
32581 "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
32582 "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
32583 "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
32584 "\xaf\xdf\x11\x95",
32585 .rlen = 4100,
32586 .np = 2,
32587 .tap = { 4064, 36 },
32588 },
32589};
32590
6692cbc2 32591#define CHACHA20_ENC_TEST_VECTORS 4
3590ebf2
MW
32592static struct cipher_testvec chacha20_enc_tv_template[] = {
32593 { /* RFC7539 A.2. Test Vector #1 */
32594 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
32595 "\x00\x00\x00\x00\x00\x00\x00\x00"
32596 "\x00\x00\x00\x00\x00\x00\x00\x00"
32597 "\x00\x00\x00\x00\x00\x00\x00\x00",
32598 .klen = 32,
32599 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
32600 "\x00\x00\x00\x00\x00\x00\x00\x00",
32601 .input = "\x00\x00\x00\x00\x00\x00\x00\x00"
32602 "\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\x00"
32606 "\x00\x00\x00\x00\x00\x00\x00\x00"
32607 "\x00\x00\x00\x00\x00\x00\x00\x00"
32608 "\x00\x00\x00\x00\x00\x00\x00\x00",
32609 .ilen = 64,
32610 .result = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
32611 "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
32612 "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
32613 "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
32614 "\xda\x41\x59\x7c\x51\x57\x48\x8d"
32615 "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
32616 "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
32617 "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
32618 .rlen = 64,
32619 }, { /* RFC7539 A.2. Test Vector #2 */
32620 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
32621 "\x00\x00\x00\x00\x00\x00\x00\x00"
32622 "\x00\x00\x00\x00\x00\x00\x00\x00"
32623 "\x00\x00\x00\x00\x00\x00\x00\x01",
32624 .klen = 32,
32625 .iv = "\x01\x00\x00\x00\x00\x00\x00\x00"
32626 "\x00\x00\x00\x00\x00\x00\x00\x02",
32627 .input = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
32628 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
32629 "\x6f\x20\x74\x68\x65\x20\x49\x45"
32630 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
32631 "\x64\x65\x64\x20\x62\x79\x20\x74"
32632 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
32633 "\x69\x62\x75\x74\x6f\x72\x20\x66"
32634 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
32635 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
32636 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
32637 "\x20\x70\x61\x72\x74\x20\x6f\x66"
32638 "\x20\x61\x6e\x20\x49\x45\x54\x46"
32639 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
32640 "\x74\x2d\x44\x72\x61\x66\x74\x20"
32641 "\x6f\x72\x20\x52\x46\x43\x20\x61"
32642 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
32643 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
32644 "\x20\x6d\x61\x64\x65\x20\x77\x69"
32645 "\x74\x68\x69\x6e\x20\x74\x68\x65"
32646 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
32647 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
32648 "\x45\x54\x46\x20\x61\x63\x74\x69"
32649 "\x76\x69\x74\x79\x20\x69\x73\x20"
32650 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
32651 "\x65\x64\x20\x61\x6e\x20\x22\x49"
32652 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
32653 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
32654 "\x22\x2e\x20\x53\x75\x63\x68\x20"
32655 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32656 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
32657 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
32658 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32659 "\x74\x73\x20\x69\x6e\x20\x49\x45"
32660 "\x54\x46\x20\x73\x65\x73\x73\x69"
32661 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
32662 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
32663 "\x77\x72\x69\x74\x74\x65\x6e\x20"
32664 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
32665 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
32666 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
32667 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
32668 "\x64\x65\x20\x61\x74\x20\x61\x6e"
32669 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
32670 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
32671 "\x20\x77\x68\x69\x63\x68\x20\x61"
32672 "\x72\x65\x20\x61\x64\x64\x72\x65"
32673 "\x73\x73\x65\x64\x20\x74\x6f",
32674 .ilen = 375,
32675 .result = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
32676 "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
32677 "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
32678 "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
32679 "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
32680 "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
32681 "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
32682 "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
32683 "\x40\x42\xe0\x27\x85\xec\xec\xfa"
32684 "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
32685 "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
32686 "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
32687 "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
32688 "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
32689 "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
32690 "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
32691 "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
32692 "\xd6\x62\xab\x05\x26\x91\xca\x66"
32693 "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
32694 "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
32695 "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
32696 "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
32697 "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
32698 "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
32699 "\x08\x71\xcd\xac\x63\x89\x39\xe2"
32700 "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
32701 "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
32702 "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
32703 "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
32704 "\x37\x20\xfc\x88\xdc\x95\xed\x84"
32705 "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
32706 "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
32707 "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
32708 "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
32709 "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
32710 "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
32711 "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
32712 "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
32713 "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
32714 "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
32715 "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
32716 "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
32717 "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
32718 "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
32719 "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
32720 "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
32721 "\xc4\xfd\x80\x6c\x22\xf2\x21",
32722 .rlen = 375,
32723 }, { /* RFC7539 A.2. Test Vector #3 */
32724 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32725 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32726 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32727 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32728 .klen = 32,
32729 .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00"
32730 "\x00\x00\x00\x00\x00\x00\x00\x02",
32731 .input = "\x27\x54\x77\x61\x73\x20\x62\x72"
32732 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
32733 "\x6e\x64\x20\x74\x68\x65\x20\x73"
32734 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
32735 "\x76\x65\x73\x0a\x44\x69\x64\x20"
32736 "\x67\x79\x72\x65\x20\x61\x6e\x64"
32737 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
32738 "\x69\x6e\x20\x74\x68\x65\x20\x77"
32739 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
32740 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
32741 "\x65\x72\x65\x20\x74\x68\x65\x20"
32742 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
32743 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
32744 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
32745 "\x72\x61\x74\x68\x73\x20\x6f\x75"
32746 "\x74\x67\x72\x61\x62\x65\x2e",
32747 .ilen = 127,
32748 .result = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
32749 "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
32750 "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
32751 "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
32752 "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
32753 "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
32754 "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
32755 "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
32756 "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
32757 "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
32758 "\x1a\x55\x32\x05\x57\x16\xea\xd6"
32759 "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
32760 "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
32761 "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
32762 "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
32763 "\x75\x7a\x79\x7a\xc1\x88\xd1",
32764 .rlen = 127,
6692cbc2
MW
32765 }, { /* Self-made test vector for long data */
32766 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32767 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32768 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32769 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32770 .klen = 32,
32771 .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00"
32772 "\x00\x00\x00\x00\x00\x00\x00\x01",
32773 .input = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
32774 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
32775 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
32776 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
32777 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
32778 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
32779 "\x01\xc6\x67\xda\x03\x91\x18\x90"
32780 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
32781 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
32782 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
32783 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
32784 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
32785 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
32786 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
32787 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
32788 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
32789 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
32790 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
32791 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
32792 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
32793 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
32794 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
32795 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
32796 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
32797 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
32798 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
32799 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
32800 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
32801 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
32802 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
32803 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
32804 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
32805 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
32806 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
32807 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
32808 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
32809 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
32810 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
32811 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
32812 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
32813 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
32814 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
32815 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
32816 "\x49\x46\x00\x88\x22\x8d\xce\xea"
32817 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
32818 "\x72\x11\xf5\x50\x73\x04\x40\x47"
32819 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
32820 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
32821 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
32822 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
32823 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
32824 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
32825 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
32826 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
32827 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
32828 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
32829 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
32830 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
32831 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
32832 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
32833 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
32834 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
32835 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
32836 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
32837 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
32838 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
32839 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
32840 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
32841 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
32842 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
32843 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
32844 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
32845 "\x65\x69\x8a\x45\x29\xef\x74\x85"
32846 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
32847 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
32848 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
32849 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
32850 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
32851 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
32852 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
32853 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
32854 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
32855 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
32856 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
32857 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
32858 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
32859 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
32860 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
32861 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
32862 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
32863 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
32864 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
32865 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
32866 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
32867 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
32868 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
32869 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
32870 "\x25\x94\x10\x5f\x40\x00\x64\x99"
32871 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
32872 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
32873 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
32874 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
32875 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
32876 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
32877 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
32878 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
32879 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
32880 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
32881 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
32882 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
32883 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
32884 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
32885 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
32886 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
32887 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
32888 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
32889 "\xb9\x83\x90\xef\x20\x59\x46\xff"
32890 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
32891 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
32892 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
32893 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
32894 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
32895 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
32896 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
32897 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
32898 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
32899 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
32900 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
32901 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
32902 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
32903 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
32904 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
32905 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
32906 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
32907 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
32908 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
32909 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
32910 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
32911 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
32912 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
32913 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
32914 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
32915 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
32916 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
32917 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
32918 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
32919 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
32920 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
32921 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
32922 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
32923 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
32924 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
32925 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
32926 "\xca\x34\x83\x27\x10\x5b\x68\x45"
32927 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
32928 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
32929 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
32930 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
32931 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
32932 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
32933 "\x72",
32934 .ilen = 1281,
32935 .result = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
32936 "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
32937 "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
32938 "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
32939 "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
32940 "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
32941 "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
32942 "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
32943 "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
32944 "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
32945 "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
32946 "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
32947 "\x33\x4a\x71\x15\xfe\xee\x12\x54"
32948 "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
32949 "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
32950 "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
32951 "\x57\x0e\x94\x17\x26\x39\xbb\x54"
32952 "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
32953 "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
32954 "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
32955 "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
32956 "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
32957 "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
32958 "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
32959 "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
32960 "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
32961 "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
32962 "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
32963 "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
32964 "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
32965 "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
32966 "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
32967 "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
32968 "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
32969 "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
32970 "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
32971 "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
32972 "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
32973 "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
32974 "\xae\xe7\x61\x32\xef\x41\x6c\x75"
32975 "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
32976 "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
32977 "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
32978 "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
32979 "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
32980 "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
32981 "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
32982 "\xc1\x22\xf3\x79\xae\x95\x78\x66"
32983 "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
32984 "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
32985 "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
32986 "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
32987 "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
32988 "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
32989 "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
32990 "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
32991 "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
32992 "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
32993 "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
32994 "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
32995 "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
32996 "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
32997 "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
32998 "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
32999 "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
33000 "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
33001 "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
33002 "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
33003 "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
33004 "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
33005 "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
33006 "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
33007 "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
33008 "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
33009 "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
33010 "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
33011 "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
33012 "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
33013 "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
33014 "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
33015 "\x54\x1c\x34\x72\xde\x0c\x68\x39"
33016 "\x9d\x32\xa5\x75\x92\x13\x32\xea"
33017 "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
33018 "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
33019 "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
33020 "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
33021 "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
33022 "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
33023 "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
33024 "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
33025 "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
33026 "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
33027 "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
33028 "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
33029 "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
33030 "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
33031 "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
33032 "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
33033 "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
33034 "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
33035 "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
33036 "\x79\x61\x23\xe0\xa2\x99\x73\x55"
33037 "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
33038 "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
33039 "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
33040 "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
33041 "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
33042 "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
33043 "\x48\x56\xaa\x85\x22\xd8\x36\xed"
33044 "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
33045 "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
33046 "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
33047 "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
33048 "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
33049 "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
33050 "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
33051 "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
33052 "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
33053 "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
33054 "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
33055 "\xec\x83\x92\x99\x87\x47\xe0\x7c"
33056 "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
33057 "\x98\xb0\x87\xb6\x86\x13\x64\x33"
33058 "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
33059 "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
33060 "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
33061 "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
33062 "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
33063 "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
33064 "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
33065 "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
33066 "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
33067 "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
33068 "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
33069 "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
33070 "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
33071 "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
33072 "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
33073 "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
33074 "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
33075 "\x5f\xae\x25\x84\x22\x90\x5f\x26"
33076 "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
33077 "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
33078 "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
33079 "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
33080 "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
33081 "\x74\x06\x89\x0e\x90\xeb\x85\xff"
33082 "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
33083 "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
33084 "\x02\x85\x68\xd0\x03\x12\xde\x92"
33085 "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
33086 "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
33087 "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
33088 "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
33089 "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
33090 "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
33091 "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
33092 "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
33093 "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
33094 "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
33095 "\x98",
33096 .rlen = 1281,
3590ebf2
MW
33097 },
33098};
33099
da7f033d
HX
33100/*
33101 * CTS (Cipher Text Stealing) mode tests
33102 */
33103#define CTS_MODE_ENC_TEST_VECTORS 6
33104#define CTS_MODE_DEC_TEST_VECTORS 6
33105static struct cipher_testvec cts_mode_enc_tv_template[] = {
33106 { /* from rfc3962 */
33107 .klen = 16,
33108 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33109 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33110 .ilen = 17,
33111 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33112 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33113 "\x20",
33114 .rlen = 17,
33115 .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
33116 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
33117 "\x97",
33118 }, {
33119 .klen = 16,
33120 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33121 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33122 .ilen = 31,
33123 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33124 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33125 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33126 "\x20\x47\x61\x75\x27\x73\x20",
33127 .rlen = 31,
33128 .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
33129 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
33130 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33131 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
33132 }, {
33133 .klen = 16,
33134 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33135 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33136 .ilen = 32,
33137 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33138 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33139 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33140 "\x20\x47\x61\x75\x27\x73\x20\x43",
33141 .rlen = 32,
33142 .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33143 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33144 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33145 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
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 = 47,
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",
33157 .rlen = 47,
33158 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33159 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33160 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
33161 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
33162 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33163 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
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 = 48,
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 .rlen = 48,
33176 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33177 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33178 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33179 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
33180 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33181 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
33182 }, {
33183 .klen = 16,
33184 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33185 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33186 .ilen = 64,
33187 .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33188 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33189 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33190 "\x20\x47\x61\x75\x27\x73\x20\x43"
33191 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33192 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
33193 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
33194 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
33195 .rlen = 64,
33196 .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33197 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33198 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33199 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33200 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
33201 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
33202 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33203 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
33204 }
33205};
33206
33207static struct cipher_testvec cts_mode_dec_tv_template[] = {
33208 { /* from rfc3962 */
33209 .klen = 16,
33210 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33211 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33212 .rlen = 17,
33213 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33214 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33215 "\x20",
33216 .ilen = 17,
33217 .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
33218 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
33219 "\x97",
33220 }, {
33221 .klen = 16,
33222 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33223 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33224 .rlen = 31,
33225 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33226 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33227 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33228 "\x20\x47\x61\x75\x27\x73\x20",
33229 .ilen = 31,
33230 .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
33231 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
33232 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33233 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
33234 }, {
33235 .klen = 16,
33236 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33237 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33238 .rlen = 32,
33239 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33240 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33241 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33242 "\x20\x47\x61\x75\x27\x73\x20\x43",
33243 .ilen = 32,
33244 .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33245 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33246 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33247 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
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 = 47,
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",
33259 .ilen = 47,
33260 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33261 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33262 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
33263 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
33264 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33265 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
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 = 48,
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 .ilen = 48,
33278 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33279 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33280 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33281 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
33282 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33283 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
33284 }, {
33285 .klen = 16,
33286 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
33287 "\x74\x65\x72\x69\x79\x61\x6b\x69",
33288 .rlen = 64,
33289 .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
33290 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
33291 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
33292 "\x20\x47\x61\x75\x27\x73\x20\x43"
33293 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
33294 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
33295 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
33296 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
33297 .ilen = 64,
33298 .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
33299 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
33300 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
33301 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
33302 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
33303 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
33304 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
33305 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
33306 }
33307};
33308
33309/*
33310 * Compression stuff.
33311 */
33312#define COMP_BUF_SIZE 512
33313
33314struct comp_testvec {
33315 int inlen, outlen;
33316 char input[COMP_BUF_SIZE];
33317 char output[COMP_BUF_SIZE];
33318};
33319
33320/*
33321 * Deflate test vectors (null-terminated strings).
bcf84a38 33322 * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
da7f033d 33323 */
0c01aed5 33324
da7f033d
HX
33325#define DEFLATE_COMP_TEST_VECTORS 2
33326#define DEFLATE_DECOMP_TEST_VECTORS 2
33327
33328static struct comp_testvec deflate_comp_tv_template[] = {
33329 {
33330 .inlen = 70,
33331 .outlen = 38,
33332 .input = "Join us now and share the software "
33333 "Join us now and share the software ",
33334 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
33335 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
33336 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
33337 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
33338 "\x71\xbc\x08\x2b\x01\x00",
33339 }, {
33340 .inlen = 191,
33341 .outlen = 122,
33342 .input = "This document describes a compression method based on the DEFLATE"
33343 "compression algorithm. This document defines the application of "
33344 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33345 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
33346 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
33347 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
33348 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
33349 "\x68\x12\x51\xae\x76\x67\xd6\x27"
33350 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
33351 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
33352 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
33353 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
33354 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
33355 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
33356 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
33357 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
33358 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
33359 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
33360 "\xfa\x02",
33361 },
33362};
33363
33364static struct comp_testvec deflate_decomp_tv_template[] = {
33365 {
33366 .inlen = 122,
33367 .outlen = 191,
33368 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
33369 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
33370 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
33371 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
33372 "\x68\x12\x51\xae\x76\x67\xd6\x27"
33373 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
33374 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
33375 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
33376 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
33377 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
33378 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
33379 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
33380 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
33381 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
33382 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
33383 "\xfa\x02",
33384 .output = "This document describes a compression method based on the DEFLATE"
33385 "compression algorithm. This document defines the application of "
33386 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
33387 }, {
33388 .inlen = 38,
33389 .outlen = 70,
33390 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
33391 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
33392 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
33393 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
0c01aed5
GU
33394 "\x71\xbc\x08\x2b\x01\x00",
33395 .output = "Join us now and share the software "
33396 "Join us now and share the software ",
33397 },
33398};
33399
da7f033d
HX
33400/*
33401 * LZO test vectors (null-terminated strings).
33402 */
33403#define LZO_COMP_TEST_VECTORS 2
33404#define LZO_DECOMP_TEST_VECTORS 2
33405
33406static struct comp_testvec lzo_comp_tv_template[] = {
33407 {
33408 .inlen = 70,
0ec73820 33409 .outlen = 57,
da7f033d
HX
33410 .input = "Join us now and share the software "
33411 "Join us now and share the software ",
33412 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
0ec73820
MO
33413 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
33414 "\x64\x20\x73\x68\x61\x72\x65\x20"
33415 "\x74\x68\x65\x20\x73\x6f\x66\x74"
33416 "\x77\x70\x01\x32\x88\x00\x0c\x65"
33417 "\x20\x74\x68\x65\x20\x73\x6f\x66"
33418 "\x74\x77\x61\x72\x65\x20\x11\x00"
33419 "\x00",
da7f033d
HX
33420 }, {
33421 .inlen = 159,
0ec73820 33422 .outlen = 131,
da7f033d
HX
33423 .input = "This document describes a compression method based on the LZO "
33424 "compression algorithm. This document defines the application of "
33425 "the LZO algorithm used in UBIFS.",
0ec73820 33426 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
da7f033d
HX
33427 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
33428 "\x64\x65\x73\x63\x72\x69\x62\x65"
33429 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
33430 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
33431 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
33432 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
0ec73820
MO
33433 "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
33434 "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
33435 "\x72\x69\x74\x68\x6d\x2e\x20\x20"
33436 "\x2e\x54\x01\x03\x66\x69\x6e\x65"
33437 "\x73\x20\x74\x06\x05\x61\x70\x70"
33438 "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
33439 "\x66\x88\x02\x60\x09\x27\xf0\x00"
33440 "\x0c\x20\x75\x73\x65\x64\x20\x69"
33441 "\x6e\x20\x55\x42\x49\x46\x53\x2e"
33442 "\x11\x00\x00",
da7f033d
HX
33443 },
33444};
33445
33446static struct comp_testvec lzo_decomp_tv_template[] = {
33447 {
33448 .inlen = 133,
33449 .outlen = 159,
33450 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
33451 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
33452 "\x64\x65\x73\x63\x72\x69\x62\x65"
33453 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
33454 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
33455 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
33456 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
33457 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
33458 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
33459 "\x69\x74\x68\x6d\x2e\x20\x20\x54"
33460 "\x68\x69\x73\x2a\x54\x01\x02\x66"
33461 "\x69\x6e\x65\x73\x94\x06\x05\x61"
33462 "\x70\x70\x6c\x69\x63\x61\x74\x76"
33463 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
33464 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
33465 "\x20\x69\x6e\x20\x55\x42\x49\x46"
33466 "\x53\x2e\x11\x00\x00",
33467 .output = "This document describes a compression method based on the LZO "
33468 "compression algorithm. This document defines the application of "
33469 "the LZO algorithm used in UBIFS.",
33470 }, {
33471 .inlen = 46,
33472 .outlen = 70,
33473 .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
33474 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
33475 "\x64\x20\x73\x68\x61\x72\x65\x20"
33476 "\x74\x68\x65\x20\x73\x6f\x66\x74"
33477 "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
33478 "\x3d\x88\x00\x11\x00\x00",
33479 .output = "Join us now and share the software "
33480 "Join us now and share the software ",
33481 },
33482};
33483
33484/*
33485 * Michael MIC test vectors from IEEE 802.11i
33486 */
33487#define MICHAEL_MIC_TEST_VECTORS 6
33488
33489static struct hash_testvec michael_mic_tv_template[] = {
33490 {
33491 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
33492 .ksize = 8,
33493 .plaintext = zeroed_string,
33494 .psize = 0,
33495 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
33496 },
33497 {
33498 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
33499 .ksize = 8,
33500 .plaintext = "M",
33501 .psize = 1,
33502 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
33503 },
33504 {
33505 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
33506 .ksize = 8,
33507 .plaintext = "Mi",
33508 .psize = 2,
33509 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
33510 },
33511 {
33512 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
33513 .ksize = 8,
33514 .plaintext = "Mic",
33515 .psize = 3,
33516 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
33517 },
33518 {
33519 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
33520 .ksize = 8,
33521 .plaintext = "Mich",
33522 .psize = 4,
33523 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
33524 },
33525 {
33526 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
33527 .ksize = 8,
33528 .plaintext = "Michael",
33529 .psize = 7,
33530 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
33531 }
33532};
33533
ebb3472f
AB
33534/*
33535 * CRC32 test vectors
33536 */
33537#define CRC32_TEST_VECTORS 14
33538
33539static struct hash_testvec crc32_tv_template[] = {
33540 {
33541 .key = "\x87\xa9\xcb\xed",
33542 .ksize = 4,
33543 .psize = 0,
33544 .digest = "\x87\xa9\xcb\xed",
33545 },
33546 {
33547 .key = "\xff\xff\xff\xff",
33548 .ksize = 4,
33549 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33550 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33551 "\x11\x12\x13\x14\x15\x16\x17\x18"
33552 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33553 "\x21\x22\x23\x24\x25\x26\x27\x28",
33554 .psize = 40,
33555 .digest = "\x3a\xdf\x4b\xb0",
33556 },
33557 {
33558 .key = "\xff\xff\xff\xff",
33559 .ksize = 4,
33560 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33561 "\x31\x32\x33\x34\x35\x36\x37\x38"
33562 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33563 "\x41\x42\x43\x44\x45\x46\x47\x48"
33564 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
33565 .psize = 40,
33566 .digest = "\xa9\x7a\x7f\x7b",
33567 },
33568 {
33569 .key = "\xff\xff\xff\xff",
33570 .ksize = 4,
33571 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
33572 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33573 "\x61\x62\x63\x64\x65\x66\x67\x68"
33574 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33575 "\x71\x72\x73\x74\x75\x76\x77\x78",
33576 .psize = 40,
33577 .digest = "\xba\xd3\xf8\x1c",
33578 },
33579 {
33580 .key = "\xff\xff\xff\xff",
33581 .ksize = 4,
33582 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33583 "\x81\x82\x83\x84\x85\x86\x87\x88"
33584 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33585 "\x91\x92\x93\x94\x95\x96\x97\x98"
33586 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
33587 .psize = 40,
33588 .digest = "\xa8\xa9\xc2\x02",
33589 },
33590 {
33591 .key = "\xff\xff\xff\xff",
33592 .ksize = 4,
33593 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33594 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33595 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33596 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33597 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
33598 .psize = 40,
33599 .digest = "\x27\xf0\x57\xe2",
33600 },
33601 {
33602 .key = "\xff\xff\xff\xff",
33603 .ksize = 4,
33604 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33605 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33606 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33607 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33608 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33609 .psize = 40,
33610 .digest = "\x49\x78\x10\x08",
33611 },
33612 {
33613 .key = "\x80\xea\xd3\xf1",
33614 .ksize = 4,
33615 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33616 "\x31\x32\x33\x34\x35\x36\x37\x38"
33617 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33618 "\x41\x42\x43\x44\x45\x46\x47\x48"
33619 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
33620 .psize = 40,
33621 .digest = "\x9a\xb1\xdc\xf0",
33622 },
33623 {
33624 .key = "\xf3\x4a\x1d\x5d",
33625 .ksize = 4,
33626 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
33627 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33628 "\x61\x62\x63\x64\x65\x66\x67\x68"
33629 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33630 "\x71\x72\x73\x74\x75\x76\x77\x78",
33631 .psize = 40,
33632 .digest = "\xb4\x97\xcc\xd4",
33633 },
33634 {
33635 .key = "\x2e\x80\x04\x59",
33636 .ksize = 4,
33637 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33638 "\x81\x82\x83\x84\x85\x86\x87\x88"
33639 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33640 "\x91\x92\x93\x94\x95\x96\x97\x98"
33641 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
33642 .psize = 40,
33643 .digest = "\x67\x9b\xfa\x79",
33644 },
33645 {
33646 .key = "\xa6\xcc\x19\x85",
33647 .ksize = 4,
33648 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33649 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33650 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33651 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33652 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
33653 .psize = 40,
33654 .digest = "\x24\xb5\x16\xef",
33655 },
33656 {
33657 .key = "\x41\xfc\xfe\x2d",
33658 .ksize = 4,
33659 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33660 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33661 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33662 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33663 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33664 .psize = 40,
33665 .digest = "\x15\x94\x80\x39",
33666 },
33667 {
33668 .key = "\xff\xff\xff\xff",
33669 .ksize = 4,
33670 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33671 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33672 "\x11\x12\x13\x14\x15\x16\x17\x18"
33673 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33674 "\x21\x22\x23\x24\x25\x26\x27\x28"
33675 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33676 "\x31\x32\x33\x34\x35\x36\x37\x38"
33677 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
33678 "\x41\x42\x43\x44\x45\x46\x47\x48"
33679 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
33680 "\x51\x52\x53\x54\x55\x56\x57\x58"
33681 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
33682 "\x61\x62\x63\x64\x65\x66\x67\x68"
33683 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
33684 "\x71\x72\x73\x74\x75\x76\x77\x78"
33685 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
33686 "\x81\x82\x83\x84\x85\x86\x87\x88"
33687 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
33688 "\x91\x92\x93\x94\x95\x96\x97\x98"
33689 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
33690 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
33691 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
33692 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
33693 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
33694 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
33695 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
33696 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
33697 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
33698 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
33699 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
33700 .psize = 240,
33701 .digest = "\x6c\xc6\x56\xde",
33702 .np = 2,
33703 .tap = { 31, 209 }
33704 }, {
33705 .key = "\xff\xff\xff\xff",
33706 .ksize = 4,
33707 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
33708 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
33709 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
33710 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
33711 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
33712 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
33713 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
33714 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
33715 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
33716 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
33717 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
33718 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
33719 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
33720 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
33721 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
33722 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
33723 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
33724 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
33725 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
33726 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
33727 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
33728 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
33729 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
33730 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
33731 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
33732 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
33733 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
33734 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
33735 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
33736 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
33737 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
33738 "\x47\xde\x75\x0c\x80\x17\xae\x22"
33739 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
33740 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
33741 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
33742 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
33743 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
33744 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
33745 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
33746 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
33747 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
33748 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
33749 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
33750 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
33751 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
33752 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
33753 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
33754 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
33755 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
33756 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
33757 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
33758 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
33759 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
33760 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
33761 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
33762 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
33763 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
33764 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
33765 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
33766 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
33767 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
33768 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
33769 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
33770 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
33771 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
33772 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
33773 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
33774 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
33775 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
33776 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
33777 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
33778 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
33779 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
33780 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
33781 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
33782 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
33783 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
33784 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
33785 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
33786 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
33787 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
33788 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
33789 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
33790 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
33791 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
33792 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
33793 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
33794 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
33795 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
33796 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
33797 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
33798 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
33799 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
33800 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
33801 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
33802 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
33803 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
33804 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
33805 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
33806 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
33807 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
33808 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
33809 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
33810 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
33811 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
33812 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
33813 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
33814 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
33815 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
33816 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
33817 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
33818 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
33819 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
33820 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
33821 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
33822 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
33823 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
33824 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
33825 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
33826 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
33827 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
33828 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
33829 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
33830 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
33831 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
33832 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
33833 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
33834 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
33835 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
33836 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
33837 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
33838 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
33839 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
33840 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
33841 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
33842 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
33843 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
33844 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
33845 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
33846 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
33847 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
33848 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
33849 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
33850 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
33851 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
33852 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
33853 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
33854 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
33855 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
33856 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
33857 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
33858 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
33859 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
33860 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
33861 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
33862 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
33863 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
33864 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
33865 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
33866 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
33867 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
33868 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
33869 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
33870 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
33871 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
33872 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
33873 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
33874 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
33875 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
33876 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
33877 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
33878 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
33879 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
33880 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
33881 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
33882 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
33883 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
33884 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
33885 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
33886 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
33887 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
33888 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
33889 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
33890 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
33891 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
33892 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
33893 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
33894 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
33895 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
33896 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
33897 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
33898 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
33899 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
33900 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
33901 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
33902 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
33903 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
33904 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
33905 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
33906 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
33907 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
33908 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
33909 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
33910 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
33911 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
33912 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
33913 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
33914 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
33915 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
33916 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
33917 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
33918 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
33919 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
33920 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
33921 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
33922 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
33923 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
33924 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
33925 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
33926 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
33927 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
33928 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
33929 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
33930 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
33931 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
33932 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
33933 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
33934 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
33935 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
33936 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
33937 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
33938 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
33939 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
33940 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
33941 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
33942 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
33943 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
33944 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
33945 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
33946 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
33947 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
33948 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
33949 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
33950 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
33951 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
33952 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
33953 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
33954 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
33955 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
33956 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
33957 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
33958 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
33959 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
33960 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
33961 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
33962 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
33963 .psize = 2048,
33964 .digest = "\xfb\x3a\x7a\xda",
33965 }
33966};
33967
da7f033d
HX
33968/*
33969 * CRC32C test vectors
33970 */
6726ec42 33971#define CRC32C_TEST_VECTORS 15
da7f033d
HX
33972
33973static struct hash_testvec crc32c_tv_template[] = {
33974 {
33975 .psize = 0,
33976 .digest = "\x00\x00\x00\x00",
33977 },
33978 {
33979 .key = "\x87\xa9\xcb\xed",
33980 .ksize = 4,
33981 .psize = 0,
33982 .digest = "\x78\x56\x34\x12",
33983 },
33984 {
33985 .key = "\xff\xff\xff\xff",
33986 .ksize = 4,
33987 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
33988 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
33989 "\x11\x12\x13\x14\x15\x16\x17\x18"
33990 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
33991 "\x21\x22\x23\x24\x25\x26\x27\x28",
33992 .psize = 40,
33993 .digest = "\x7f\x15\x2c\x0e",
33994 },
33995 {
33996 .key = "\xff\xff\xff\xff",
33997 .ksize = 4,
33998 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
33999 "\x31\x32\x33\x34\x35\x36\x37\x38"
34000 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34001 "\x41\x42\x43\x44\x45\x46\x47\x48"
34002 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
34003 .psize = 40,
34004 .digest = "\xf6\xeb\x80\xe9",
34005 },
34006 {
34007 .key = "\xff\xff\xff\xff",
34008 .ksize = 4,
34009 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
34010 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34011 "\x61\x62\x63\x64\x65\x66\x67\x68"
34012 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34013 "\x71\x72\x73\x74\x75\x76\x77\x78",
34014 .psize = 40,
34015 .digest = "\xed\xbd\x74\xde",
34016 },
34017 {
34018 .key = "\xff\xff\xff\xff",
34019 .ksize = 4,
34020 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34021 "\x81\x82\x83\x84\x85\x86\x87\x88"
34022 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34023 "\x91\x92\x93\x94\x95\x96\x97\x98"
34024 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34025 .psize = 40,
34026 .digest = "\x62\xc8\x79\xd5",
34027 },
34028 {
34029 .key = "\xff\xff\xff\xff",
34030 .ksize = 4,
34031 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34032 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34033 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34034 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34035 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34036 .psize = 40,
34037 .digest = "\xd0\x9a\x97\xba",
34038 },
34039 {
34040 .key = "\xff\xff\xff\xff",
34041 .ksize = 4,
34042 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34043 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34044 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34045 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34046 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34047 .psize = 40,
34048 .digest = "\x13\xd9\x29\x2b",
34049 },
34050 {
34051 .key = "\x80\xea\xd3\xf1",
34052 .ksize = 4,
34053 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34054 "\x31\x32\x33\x34\x35\x36\x37\x38"
34055 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34056 "\x41\x42\x43\x44\x45\x46\x47\x48"
34057 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
34058 .psize = 40,
34059 .digest = "\x0c\xb5\xe2\xa2",
34060 },
34061 {
34062 .key = "\xf3\x4a\x1d\x5d",
34063 .ksize = 4,
34064 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
34065 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34066 "\x61\x62\x63\x64\x65\x66\x67\x68"
34067 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34068 "\x71\x72\x73\x74\x75\x76\x77\x78",
34069 .psize = 40,
34070 .digest = "\xd1\x7f\xfb\xa6",
34071 },
34072 {
34073 .key = "\x2e\x80\x04\x59",
34074 .ksize = 4,
34075 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34076 "\x81\x82\x83\x84\x85\x86\x87\x88"
34077 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34078 "\x91\x92\x93\x94\x95\x96\x97\x98"
34079 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34080 .psize = 40,
34081 .digest = "\x59\x33\xe6\x7a",
34082 },
34083 {
34084 .key = "\xa6\xcc\x19\x85",
34085 .ksize = 4,
34086 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34087 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34088 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34089 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34090 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34091 .psize = 40,
34092 .digest = "\xbe\x03\x01\xd2",
34093 },
34094 {
34095 .key = "\x41\xfc\xfe\x2d",
34096 .ksize = 4,
34097 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34098 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34099 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34100 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34101 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34102 .psize = 40,
34103 .digest = "\x75\xd3\xc5\x24",
34104 },
34105 {
34106 .key = "\xff\xff\xff\xff",
34107 .ksize = 4,
34108 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34109 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34110 "\x11\x12\x13\x14\x15\x16\x17\x18"
34111 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34112 "\x21\x22\x23\x24\x25\x26\x27\x28"
34113 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34114 "\x31\x32\x33\x34\x35\x36\x37\x38"
34115 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34116 "\x41\x42\x43\x44\x45\x46\x47\x48"
34117 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
34118 "\x51\x52\x53\x54\x55\x56\x57\x58"
34119 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34120 "\x61\x62\x63\x64\x65\x66\x67\x68"
34121 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34122 "\x71\x72\x73\x74\x75\x76\x77\x78"
34123 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34124 "\x81\x82\x83\x84\x85\x86\x87\x88"
34125 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34126 "\x91\x92\x93\x94\x95\x96\x97\x98"
34127 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
34128 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34129 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34130 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34131 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34132 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
34133 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34134 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34135 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34136 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34137 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34138 .psize = 240,
34139 .digest = "\x75\xd3\xc5\x24",
34140 .np = 2,
34141 .tap = { 31, 209 }
6726ec42
JK
34142 }, {
34143 .key = "\xff\xff\xff\xff",
34144 .ksize = 4,
34145 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
34146 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
34147 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
34148 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
34149 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
34150 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
34151 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
34152 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
34153 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
34154 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
34155 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
34156 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
34157 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
34158 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
34159 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
34160 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
34161 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
34162 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
34163 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
34164 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
34165 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
34166 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
34167 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
34168 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
34169 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
34170 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
34171 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
34172 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
34173 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
34174 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
34175 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
34176 "\x47\xde\x75\x0c\x80\x17\xae\x22"
34177 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
34178 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
34179 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
34180 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
34181 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
34182 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
34183 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
34184 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
34185 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
34186 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
34187 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
34188 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
34189 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
34190 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
34191 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
34192 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
34193 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
34194 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
34195 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
34196 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
34197 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
34198 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
34199 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
34200 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
34201 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
34202 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
34203 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
34204 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
34205 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
34206 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
34207 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
34208 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
34209 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
34210 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
34211 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
34212 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
34213 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
34214 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
34215 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
34216 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
34217 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
34218 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
34219 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
34220 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
34221 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
34222 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
34223 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
34224 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
34225 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
34226 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
34227 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
34228 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
34229 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
34230 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
34231 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
34232 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
34233 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
34234 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
34235 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
34236 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
34237 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
34238 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
34239 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
34240 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
34241 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
34242 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
34243 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
34244 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
34245 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
34246 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
34247 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
34248 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
34249 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
34250 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
34251 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
34252 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
34253 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
34254 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
34255 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
34256 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
34257 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
34258 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
34259 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
34260 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
34261 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
34262 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
34263 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
34264 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
34265 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
34266 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
34267 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
34268 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
34269 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
34270 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
34271 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
34272 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
34273 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
34274 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
34275 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
34276 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
34277 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
34278 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
34279 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
34280 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
34281 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
34282 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
34283 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
34284 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
34285 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
34286 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
34287 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
34288 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
34289 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
34290 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
34291 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
34292 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
34293 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
34294 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
34295 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
34296 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
34297 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
34298 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
34299 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
34300 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
34301 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
34302 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
34303 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
34304 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
34305 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
34306 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
34307 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
34308 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
34309 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
34310 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
34311 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
34312 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
34313 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
34314 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
34315 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
34316 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
34317 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
34318 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
34319 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
34320 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
34321 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
34322 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
34323 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
34324 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
34325 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
34326 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
34327 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
34328 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
34329 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
34330 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
34331 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
34332 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
34333 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
34334 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
34335 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
34336 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
34337 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
34338 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
34339 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
34340 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
34341 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
34342 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
34343 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
34344 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
34345 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
34346 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
34347 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
34348 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
34349 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
34350 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
34351 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
34352 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
34353 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
34354 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
34355 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
34356 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
34357 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
34358 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
34359 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
34360 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
34361 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
34362 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
34363 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
34364 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
34365 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
34366 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
34367 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
34368 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
34369 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
34370 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
34371 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
34372 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
34373 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
34374 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
34375 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
34376 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
34377 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
34378 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
34379 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
34380 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
34381 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
34382 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
34383 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
34384 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
34385 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
34386 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
34387 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
34388 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
34389 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
34390 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
34391 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
34392 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
34393 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
34394 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
34395 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
34396 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
34397 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
34398 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
34399 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
34400 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
34401 .psize = 2048,
34402 .digest = "\xec\x26\x4d\x95",
34403 }
da7f033d
HX
34404};
34405
a482b081
SZ
34406/*
34407 * Blakcifn CRC test vectors
34408 */
34409#define BFIN_CRC_TEST_VECTORS 6
34410
34411static struct hash_testvec bfin_crc_tv_template[] = {
34412 {
34413 .psize = 0,
34414 .digest = "\x00\x00\x00\x00",
34415 },
34416 {
34417 .key = "\x87\xa9\xcb\xed",
34418 .ksize = 4,
34419 .psize = 0,
34420 .digest = "\x87\xa9\xcb\xed",
34421 },
34422 {
34423 .key = "\xff\xff\xff\xff",
34424 .ksize = 4,
34425 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34426 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34427 "\x11\x12\x13\x14\x15\x16\x17\x18"
34428 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34429 "\x21\x22\x23\x24\x25\x26\x27\x28",
34430 .psize = 40,
34431 .digest = "\x84\x0c\x8d\xa2",
34432 },
34433 {
34434 .key = "\xff\xff\xff\xff",
34435 .ksize = 4,
34436 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34437 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34438 "\x11\x12\x13\x14\x15\x16\x17\x18"
34439 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34440 "\x21\x22\x23\x24\x25\x26",
34441 .psize = 38,
34442 .digest = "\x8c\x58\xec\xb7",
34443 },
34444 {
34445 .key = "\xff\xff\xff\xff",
34446 .ksize = 4,
34447 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34448 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34449 "\x11\x12\x13\x14\x15\x16\x17\x18"
34450 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34451 "\x21\x22\x23\x24\x25\x26\x27",
34452 .psize = 39,
34453 .digest = "\xdc\x50\x28\x7b",
34454 },
34455 {
34456 .key = "\xff\xff\xff\xff",
34457 .ksize = 4,
34458 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34459 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34460 "\x11\x12\x13\x14\x15\x16\x17\x18"
34461 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34462 "\x21\x22\x23\x24\x25\x26\x27\x28"
34463 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34464 "\x31\x32\x33\x34\x35\x36\x37\x38"
34465 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34466 "\x41\x42\x43\x44\x45\x46\x47\x48"
34467 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
34468 "\x51\x52\x53\x54\x55\x56\x57\x58"
34469 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34470 "\x61\x62\x63\x64\x65\x66\x67\x68"
34471 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34472 "\x71\x72\x73\x74\x75\x76\x77\x78"
34473 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34474 "\x81\x82\x83\x84\x85\x86\x87\x88"
34475 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34476 "\x91\x92\x93\x94\x95\x96\x97\x98"
34477 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
34478 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34479 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34480 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34481 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34482 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
34483 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34484 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34485 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34486 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34487 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34488 .psize = 240,
34489 .digest = "\x10\x19\x4a\x5c",
34490 .np = 2,
34491 .tap = { 31, 209 }
34492 },
34493
34494};
34495
1443cc9b
KK
34496#define LZ4_COMP_TEST_VECTORS 1
34497#define LZ4_DECOMP_TEST_VECTORS 1
34498
34499static struct comp_testvec lz4_comp_tv_template[] = {
34500 {
34501 .inlen = 70,
34502 .outlen = 45,
34503 .input = "Join us now and share the software "
34504 "Join us now and share the software ",
34505 .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34506 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34507 "\x64\x20\x73\x68\x61\x72\x65\x20"
34508 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34509 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34510 "\x77\x61\x72\x65\x20",
34511 },
34512};
34513
34514static struct comp_testvec lz4_decomp_tv_template[] = {
34515 {
34516 .inlen = 45,
34517 .outlen = 70,
34518 .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34519 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34520 "\x64\x20\x73\x68\x61\x72\x65\x20"
34521 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34522 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34523 "\x77\x61\x72\x65\x20",
34524 .output = "Join us now and share the software "
34525 "Join us now and share the software ",
34526 },
34527};
34528
34529#define LZ4HC_COMP_TEST_VECTORS 1
34530#define LZ4HC_DECOMP_TEST_VECTORS 1
34531
34532static struct comp_testvec lz4hc_comp_tv_template[] = {
34533 {
34534 .inlen = 70,
34535 .outlen = 45,
34536 .input = "Join us now and share the software "
34537 "Join us now and share the software ",
34538 .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34539 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34540 "\x64\x20\x73\x68\x61\x72\x65\x20"
34541 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34542 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34543 "\x77\x61\x72\x65\x20",
34544 },
34545};
34546
34547static struct comp_testvec lz4hc_decomp_tv_template[] = {
34548 {
34549 .inlen = 45,
34550 .outlen = 70,
34551 .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75"
34552 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34553 "\x64\x20\x73\x68\x61\x72\x65\x20"
34554 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34555 "\x77\x0d\x00\x0f\x23\x00\x0b\x50"
34556 "\x77\x61\x72\x65\x20",
34557 .output = "Join us now and share the software "
34558 "Join us now and share the software ",
34559 },
34560};
34561
da7f033d 34562#endif /* _CRYPTO_TESTMGR_H */