blob: fa0b1af9f7512eb925be911b08dc1f412432a4e9 [file] [log] [blame]
Herbert Xuda7f0332008-07-31 17:08:25 +08001/*
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 *
Adrian Hoban69435b92010-11-04 15:02:04 -04009 * 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 *
Herbert Xuda7f0332008-07-31 17:08:25 +080018 * This program is free software; you can redistribute it and/or modify it
19 * under the terms of the GNU General Public License as published by the Free
20 * Software Foundation; either version 2 of the License, or (at your option)
21 * any later version.
22 *
23 */
24#ifndef _CRYPTO_TESTMGR_H
25#define _CRYPTO_TESTMGR_H
26
27#define MAX_DIGEST_SIZE 64
28#define MAX_TAP 8
29
Eric Biggers26609a22018-11-16 17:26:29 -080030#define MAX_KEYLEN 1088
Herbert Xuda7f0332008-07-31 17:08:25 +080031#define MAX_IVLEN 32
32
33struct hash_testvec {
34 /* only used with keyed hash algorithms */
Eric Biggersb13b1e02017-02-24 15:46:59 -080035 const char *key;
36 const char *plaintext;
37 const char *digest;
Eric Biggers26609a22018-11-16 17:26:29 -080038 unsigned short tap[MAX_TAP];
39 unsigned short np;
Jussi Kivilinna6726ec42012-11-13 12:02:30 +020040 unsigned short psize;
Eric Biggers26609a22018-11-16 17:26:29 -080041 unsigned short ksize;
Herbert Xuda7f0332008-07-31 17:08:25 +080042};
43
LABBE Corentina7eed152015-06-05 11:39:22 +020044/*
Eric Biggers92a4c9f2018-05-20 22:50:29 -070045 * cipher_testvec: structure to describe a symmetric cipher test
46 * @key: Pointer to key
47 * @klen: Length of @key in bytes
48 * @iv: Pointer to IV (optional for some ciphers)
49 * @ptext: Pointer to plaintext
50 * @ctext: Pointer to ciphertext
51 * @len: Length of @ptext and @ctext in bytes
LABBE Corentina7eed152015-06-05 11:39:22 +020052 * @fail: If set to one, the test need to fail
53 * @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY
54 * ( e.g. test needs to fail due to a weak key )
55 * @np: numbers of SG to distribute data in (from 1 to MAX_TAP)
56 * @tap: How to distribute data in @np SGs
57 * @also_non_np: if set to 1, the test will be also done without
58 * splitting data in @np SGs
Stephan Mueller10faa8c2016-08-25 15:15:01 +020059 * @fips_skip: Skip the test vector in FIPS mode
Eric Biggers92a4c9f2018-05-20 22:50:29 -070060 * @generates_iv: Encryption should ignore the given IV, and output @iv.
61 * Decryption takes @iv. Needed for AES Keywrap ("kw(aes)").
LABBE Corentina7eed152015-06-05 11:39:22 +020062 */
Herbert Xuda7f0332008-07-31 17:08:25 +080063struct cipher_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -080064 const char *key;
65 const char *iv;
Eric Biggers92a4c9f2018-05-20 22:50:29 -070066 const char *ptext;
67 const char *ctext;
Herbert Xuda7f0332008-07-31 17:08:25 +080068 unsigned short tap[MAX_TAP];
69 int np;
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030070 unsigned char also_non_np;
David Howells09e21782015-04-28 15:36:36 +010071 bool fail;
Herbert Xuda7f0332008-07-31 17:08:25 +080072 unsigned char wk; /* weak key flag */
73 unsigned char klen;
Eric Biggers92a4c9f2018-05-20 22:50:29 -070074 unsigned short len;
Stephan Mueller10faa8c2016-08-25 15:15:01 +020075 bool fips_skip;
Eric Biggers92a4c9f2018-05-20 22:50:29 -070076 bool generates_iv;
Herbert Xuda7f0332008-07-31 17:08:25 +080077};
78
79struct aead_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -080080 const char *key;
81 const char *iv;
82 const char *input;
83 const char *assoc;
84 const char *result;
Herbert Xuda7f0332008-07-31 17:08:25 +080085 unsigned char tap[MAX_TAP];
86 unsigned char atap[MAX_TAP];
87 int np;
88 int anp;
David Howells09e21782015-04-28 15:36:36 +010089 bool fail;
Jarod Wilsone44a1b42009-05-04 19:22:11 +080090 unsigned char novrfy; /* ccm dec verification failure expected */
Herbert Xuda7f0332008-07-31 17:08:25 +080091 unsigned char wk; /* weak key flag */
92 unsigned char klen;
93 unsigned short ilen;
94 unsigned short alen;
95 unsigned short rlen;
96};
97
Jarod Wilson7647d6c2009-05-04 19:44:50 +080098struct cprng_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -080099 const char *key;
100 const char *dt;
101 const char *v;
102 const char *result;
Jarod Wilson7647d6c2009-05-04 19:44:50 +0800103 unsigned char klen;
104 unsigned short dtlen;
105 unsigned short vlen;
106 unsigned short rlen;
107 unsigned short loops;
108};
109
Stephan Mueller3332ee22014-05-31 17:24:38 +0200110struct drbg_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -0800111 const unsigned char *entropy;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200112 size_t entropylen;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800113 const unsigned char *entpra;
114 const unsigned char *entprb;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200115 size_t entprlen;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800116 const unsigned char *addtla;
117 const unsigned char *addtlb;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200118 size_t addtllen;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800119 const unsigned char *pers;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200120 size_t perslen;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800121 const unsigned char *expected;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200122 size_t expectedlen;
123};
124
Tadeusz Struk946cc462015-06-16 10:31:06 -0700125struct akcipher_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -0800126 const unsigned char *key;
127 const unsigned char *m;
128 const unsigned char *c;
Tadeusz Struk946cc462015-06-16 10:31:06 -0700129 unsigned int key_len;
130 unsigned int m_size;
131 unsigned int c_size;
132 bool public_key_vec;
Stephan Mueller12071072017-06-12 23:27:51 +0200133 bool siggen_sigver_test;
Tadeusz Struk946cc462015-06-16 10:31:06 -0700134};
135
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100136struct kpp_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -0800137 const unsigned char *secret;
Tudor-Dan Ambarus47d3fd32017-05-30 17:52:49 +0300138 const unsigned char *b_secret;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800139 const unsigned char *b_public;
140 const unsigned char *expected_a_public;
141 const unsigned char *expected_ss;
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100142 unsigned short secret_size;
Tudor-Dan Ambarus47d3fd32017-05-30 17:52:49 +0300143 unsigned short b_secret_size;
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100144 unsigned short b_public_size;
145 unsigned short expected_a_public_size;
146 unsigned short expected_ss_size;
Tudor-Dan Ambarus47d3fd32017-05-30 17:52:49 +0300147 bool genkey;
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100148};
149
Eric Biggersb13b1e02017-02-24 15:46:59 -0800150static const char zeroed_string[48];
Herbert Xuda7f0332008-07-31 17:08:25 +0800151
152/*
Tadeusz Struk946cc462015-06-16 10:31:06 -0700153 * RSA test vectors. Borrowed from openSSL.
154 */
Eric Biggersb13b1e02017-02-24 15:46:59 -0800155static const struct akcipher_testvec rsa_tv_template[] = {
Tadeusz Struk946cc462015-06-16 10:31:06 -0700156 {
157#ifndef CONFIG_CRYPTO_FIPS
158 .key =
Tadeusz Struk22287b02015-10-08 09:26:55 -0700159 "\x30\x81\x9A" /* sequence of 154 bytes */
160 "\x02\x01\x01" /* version - integer of 1 byte */
Tadeusz Struk946cc462015-06-16 10:31:06 -0700161 "\x02\x41" /* modulus - integer of 65 bytes */
162 "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F"
163 "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5"
164 "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93"
165 "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1"
166 "\xF5"
167 "\x02\x01\x11" /* public key - integer of 1 byte */
168 "\x02\x40" /* private key - integer of 64 bytes */
169 "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44"
170 "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64"
171 "\x79\x7C\x3F\xA7\xA2\xCD\xCB\x3C\xD1\xE0\xBD\xBA\x26\x54\xB4\xF9"
Tadeusz Struk22287b02015-10-08 09:26:55 -0700172 "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51"
173 "\x02\x01\x00" /* prime1 - integer of 1 byte */
174 "\x02\x01\x00" /* prime2 - integer of 1 byte */
175 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
176 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
177 "\x02\x01\x00", /* coefficient - integer of 1 byte */
Tadeusz Struk946cc462015-06-16 10:31:06 -0700178 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
179 .c =
180 "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63"
181 "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a"
182 "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53"
183 "\x9f\x6e\xbd\x4c\x55\x84\x0c\x9b\xcf\x1a\x4b\x51\x1e\x9e\x0c\x06",
Tadeusz Struk22287b02015-10-08 09:26:55 -0700184 .key_len = 157,
Tadeusz Struk946cc462015-06-16 10:31:06 -0700185 .m_size = 8,
186 .c_size = 64,
187 }, {
188 .key =
Tadeusz Struk22287b02015-10-08 09:26:55 -0700189 "\x30\x82\x01\x1D" /* sequence of 285 bytes */
190 "\x02\x01\x01" /* version - integer of 1 byte */
Tadeusz Struk946cc462015-06-16 10:31:06 -0700191 "\x02\x81\x81" /* modulus - integer of 129 bytes */
192 "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
193 "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5"
194 "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD"
195 "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80"
196 "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25"
197 "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39"
198 "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68"
199 "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD"
200 "\xCB"
201 "\x02\x01\x11" /* public key - integer of 1 byte */
202 "\x02\x81\x81" /* private key - integer of 129 bytes */
203 "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD"
204 "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41"
205 "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69"
206 "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA"
207 "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94"
208 "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A"
209 "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94"
210 "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3"
Tadeusz Struk22287b02015-10-08 09:26:55 -0700211 "\xC1"
212 "\x02\x01\x00" /* prime1 - integer of 1 byte */
213 "\x02\x01\x00" /* prime2 - integer of 1 byte */
214 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
215 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
216 "\x02\x01\x00", /* coefficient - integer of 1 byte */
217 .key_len = 289,
Tadeusz Struk946cc462015-06-16 10:31:06 -0700218 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
219 .c =
220 "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95"
221 "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72"
222 "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f"
223 "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34"
224 "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7"
225 "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13"
226 "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75"
227 "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b",
228 .m_size = 8,
229 .c_size = 128,
230 }, {
231#endif
232 .key =
Tadeusz Struk22287b02015-10-08 09:26:55 -0700233 "\x30\x82\x02\x1F" /* sequence of 543 bytes */
234 "\x02\x01\x01" /* version - integer of 1 byte */
Tadeusz Struk946cc462015-06-16 10:31:06 -0700235 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
236 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
237 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
238 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
239 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
240 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
241 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
242 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
243 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
244 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
245 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
246 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
247 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
248 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
249 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
250 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
251 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
252 "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */
253 "\x02\x82\x01\x00" /* private key - integer of 256 bytes */
254 "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D"
255 "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92"
256 "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12"
257 "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A"
258 "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D"
259 "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33"
260 "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43"
261 "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B"
262 "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC"
263 "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33"
264 "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A"
265 "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D"
266 "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04"
267 "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82"
268 "\xD6\xBF\x7A\x0B\x64\x21\x6D\x88\x7E\x5B\x45\x12\x1E\x63\x8D\x49"
Tadeusz Struk22287b02015-10-08 09:26:55 -0700269 "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71"
270 "\x02\x01\x00" /* prime1 - integer of 1 byte */
271 "\x02\x01\x00" /* prime2 - integer of 1 byte */
272 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
273 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
274 "\x02\x01\x00", /* coefficient - integer of 1 byte */
275 .key_len = 547,
Tadeusz Struk946cc462015-06-16 10:31:06 -0700276 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
277 .c =
278 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
279 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
280 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
281 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
282 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
283 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
284 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
285 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
286 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
287 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
288 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
289 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
290 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
291 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
292 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
293 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
294 .m_size = 8,
295 .c_size = 256,
296 }, {
297 .key =
298 "\x30\x82\x01\x09" /* sequence of 265 bytes */
299 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
300 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
301 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
302 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
303 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
304 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
305 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
306 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
307 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
308 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
309 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
310 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
311 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
312 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
313 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
314 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
315 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
316 "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */
317 .key_len = 269,
318 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
319 .c =
320 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
321 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
322 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
323 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
324 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
325 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
326 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
327 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
328 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
329 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
330 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
331 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
332 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
333 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
334 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
335 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
336 .m_size = 8,
337 .c_size = 256,
338 .public_key_vec = true,
Ard Biesheuvel21c8e722017-01-12 13:40:39 +0000339#ifndef CONFIG_CRYPTO_FIPS
Salvatore Benedettoc8afbc82016-07-04 17:21:39 +0100340 }, {
341 .key =
342 "\x30\x82\x09\x29" /* sequence of 2345 bytes */
343 "\x02\x01\x00" /* version integer of 1 byte */
344 "\x02\x82\x02\x01" /* modulus - integer of 513 bytes */
345 "\x00\xC3\x8B\x55\x7B\x73\x4D\xFF\xE9\x9B\xC6\xDC\x67\x3C\xB4\x8E"
346 "\xA0\x86\xED\xF2\xB9\x50\x5C\x54\x5C\xBA\xE4\xA1\xB2\xA7\xAE\x2F"
347 "\x1B\x7D\xF1\xFB\xAC\x79\xC5\xDF\x1A\x00\xC9\xB2\xC1\x61\x25\x33"
348 "\xE6\x9C\xE9\xCF\xD6\x27\xC4\x4E\x44\x30\x44\x5E\x08\xA1\x87\x52"
349 "\xCC\x6B\x97\x70\x8C\xBC\xA5\x06\x31\x0C\xD4\x2F\xD5\x7D\x26\x24"
350 "\xA2\xE2\xAC\x78\xF4\x53\x14\xCE\xF7\x19\x2E\xD7\xF7\xE6\x0C\xB9"
351 "\x56\x7F\x0B\xF1\xB1\xE2\x43\x70\xBD\x86\x1D\xA1\xCC\x2B\x19\x08"
352 "\x76\xEF\x91\xAC\xBF\x20\x24\x0D\x38\xC0\x89\xB8\x9A\x70\xB3\x64"
353 "\xD9\x8F\x80\x41\x10\x5B\x9F\xB1\xCB\x76\x43\x00\x21\x25\x36\xD4"
354 "\x19\xFC\x55\x95\x10\xE4\x26\x74\x98\x2C\xD9\xBD\x0B\x2B\x04\xC2"
355 "\xAC\x82\x38\xB4\xDD\x4C\x04\x7E\x51\x36\x40\x1E\x0B\xC4\x7C\x25"
356 "\xDD\x4B\xB2\xE7\x20\x0A\x57\xF9\xB4\x94\xC3\x08\x33\x22\x6F\x8B"
357 "\x48\xDB\x03\x68\x5A\x5B\xBA\xAE\xF3\xAD\xCF\xC3\x6D\xBA\xF1\x28"
358 "\x67\x7E\x6C\x79\x07\xDE\xFC\xED\xE7\x96\xE3\x6C\xE0\x2C\x87\xF8"
359 "\x02\x01\x28\x38\x43\x21\x53\x84\x69\x75\x78\x15\x7E\xEE\xD2\x1B"
360 "\xB9\x23\x40\xA8\x86\x1E\x38\x83\xB2\x73\x1D\x53\xFB\x9E\x2A\x8A"
361 "\xB2\x75\x35\x01\xC3\xC3\xC4\x94\xE8\x84\x86\x64\x81\xF4\x42\xAA"
362 "\x3C\x0E\xD6\x4F\xBC\x0A\x09\x2D\xE7\x1B\xD4\x10\xA8\x54\xEA\x89"
363 "\x84\x8A\xCB\xF7\x5A\x3C\xCA\x76\x08\x29\x62\xB4\x6A\x22\xDF\x14"
364 "\x95\x71\xFD\xB6\x86\x39\xB8\x8B\xF8\x91\x7F\x38\xAA\x14\xCD\xE5"
365 "\xF5\x1D\xC2\x6D\x53\x69\x52\x84\x7F\xA3\x1A\x5E\x26\x04\x83\x06"
366 "\x73\x52\x56\xCF\x76\x26\xC9\xDD\x75\xD7\xFC\xF4\x69\xD8\x7B\x55"
367 "\xB7\x68\x13\x53\xB9\xE7\x89\xC3\xE8\xD6\x6E\xA7\x6D\xEA\x81\xFD"
368 "\xC4\xB7\x05\x5A\xB7\x41\x0A\x23\x8E\x03\x8A\x1C\xAE\xD3\x1E\xCE"
369 "\xE3\x5E\xFC\x19\x4A\xEE\x61\x9B\x8E\xE5\xE5\xDD\x85\xF9\x41\xEC"
370 "\x14\x53\x92\xF7\xDD\x06\x85\x02\x91\xE3\xEB\x6C\x43\x03\xB1\x36"
371 "\x7B\x89\x5A\xA8\xEB\xFC\xD5\xA8\x35\xDC\x81\xD9\x5C\xBD\xCA\xDC"
372 "\x9B\x98\x0B\x06\x5D\x0C\x5B\xEE\xF3\xD5\xCC\x57\xC9\x71\x2F\x90"
373 "\x3B\x3C\xF0\x8E\x4E\x35\x48\xAE\x63\x74\xA9\xFC\x72\x75\x8E\x34"
374 "\xA8\xF2\x1F\xEA\xDF\x3A\x37\x2D\xE5\x39\x39\xF8\x57\x58\x3C\x04"
375 "\xFE\x87\x06\x98\xBC\x7B\xD3\x21\x36\x60\x25\x54\xA7\x3D\xFA\x91"
376 "\xCC\xA8\x0B\x92\x8E\xB4\xF7\x06\xFF\x1E\x95\xCB\x07\x76\x97\x3B"
377 "\x9D"
378 "\x02\x03\x01\x00\x01" /* public key integer of 3 bytes */
379 "\x02\x82\x02\x00" /* private key integer of 512 bytes */
380 "\x74\xA9\xE0\x6A\x32\xB4\xCA\x85\xD9\x86\x9F\x60\x88\x7B\x40\xCC"
381 "\xCD\x33\x91\xA8\xB6\x25\x1F\xBF\xE3\x51\x1C\x97\xB6\x2A\xD9\xB8"
382 "\x11\x40\x19\xE3\x21\x13\xC8\xB3\x7E\xDC\xD7\x65\x40\x4C\x2D\xD6"
383 "\xDC\xAF\x32\x6C\x96\x75\x2C\x2C\xCA\x8F\x3F\x7A\xEE\xC4\x09\xC6"
384 "\x24\x3A\xC9\xCF\x6D\x8D\x17\x50\x94\x52\xD3\xE7\x0F\x2F\x7E\x94"
385 "\x1F\xA0\xBE\xD9\x25\xE8\x38\x42\x7C\x27\xD2\x79\xF8\x2A\x87\x38"
386 "\xEF\xBB\x74\x8B\xA8\x6E\x8C\x08\xC6\xC7\x4F\x0C\xBC\x79\xC6\xEF"
387 "\x0E\xA7\x5E\xE4\xF8\x8C\x09\xC7\x5E\x37\xCC\x87\x77\xCD\xCF\xD1"
388 "\x6D\x28\x1B\xA9\x62\xC0\xB8\x16\xA7\x8B\xF9\xBB\xCC\xB4\x15\x7F"
389 "\x1B\x69\x03\xF2\x7B\xEB\xE5\x8C\x14\xD6\x23\x4F\x52\x6F\x18\xA6"
390 "\x4B\x5B\x01\xAD\x35\xF9\x48\x53\xB3\x86\x35\x66\xD7\xE7\x29\xC0"
391 "\x09\xB5\xC6\xE6\xFA\xC4\xDA\x19\xBE\xD7\x4D\x41\x14\xBE\x6F\xDF"
392 "\x1B\xAB\xC0\xCA\x88\x07\xAC\xF1\x7D\x35\x83\x67\x28\x2D\x50\xE9"
393 "\xCE\x27\x71\x5E\x1C\xCF\xD2\x30\x65\x79\x72\x2F\x9C\xE1\xD2\x39"
394 "\x7F\xEF\x3B\x01\xF2\x14\x1D\xDF\xBD\x51\xD3\xA1\x53\x62\xCF\x5F"
395 "\x79\x84\xCE\x06\x96\x69\x29\x49\x82\x1C\x71\x4A\xA1\x66\xC8\x2F"
396 "\xFD\x7B\x96\x7B\xFC\xC4\x26\x58\xC4\xFC\x7C\xAF\xB5\xE8\x95\x83"
397 "\x87\xCB\x46\xDE\x97\xA7\xB3\xA2\x54\x5B\xD7\xAF\xAB\xEB\xC8\xF3"
398 "\x55\x9D\x48\x2B\x30\x9C\xDC\x26\x4B\xC2\x89\x45\x13\xB2\x01\x9A"
399 "\xA4\x65\xC3\xEC\x24\x2D\x26\x97\xEB\x80\x8A\x9D\x03\xBC\x59\x66"
400 "\x9E\xE2\xBB\xBB\x63\x19\x64\x93\x11\x7B\x25\x65\x30\xCD\x5B\x4B"
401 "\x2C\xFF\xDC\x2D\x30\x87\x1F\x3C\x88\x07\xD0\xFC\x48\xCC\x05\x8A"
402 "\xA2\xC8\x39\x3E\xD5\x51\xBC\x0A\xBE\x6D\xA8\xA0\xF6\x88\x06\x79"
403 "\x13\xFF\x1B\x45\xDA\x54\xC9\x24\x25\x8A\x75\x0A\x26\xD1\x69\x81"
404 "\x14\x14\xD1\x79\x7D\x8E\x76\xF2\xE0\xEB\xDD\x0F\xDE\xC2\xEC\x80"
405 "\xD7\xDC\x16\x99\x92\xBE\xCB\x40\x0C\xCE\x7C\x3B\x46\xA2\x5B\x5D"
406 "\x0C\x45\xEB\xE1\x00\xDE\x72\x50\xB1\xA6\x0B\x76\xC5\x8D\xFC\x82"
407 "\x38\x6D\x99\x14\x1D\x1A\x4A\xD3\x7C\x53\xB8\x12\x46\xA2\x30\x38"
408 "\x82\xF4\x96\x6E\x8C\xCE\x47\x0D\xAF\x0A\x3B\x45\xB7\x43\x95\x43"
409 "\x9E\x02\x2C\x44\x07\x6D\x1F\x3C\x66\x89\x09\xB6\x1F\x06\x30\xCC"
410 "\xAD\xCE\x7D\x9A\xDE\x3E\xFB\x6C\xE4\x58\x43\xD2\x4F\xA5\x9E\x5E"
411 "\xA7\x7B\xAE\x3A\xF6\x7E\xD9\xDB\xD3\xF5\xC5\x41\xAF\xE6\x9C\x91"
412 "\x02\x82\x01\x01" /* prime1 - integer of 257 bytes */
413 "\x00\xE0\xA6\x6C\xF0\xA2\xF8\x81\x85\x36\x43\xD0\x13\x0B\x33\x8B"
414 "\x8F\x78\x3D\xAC\xC7\x5E\x46\x6A\x7F\x05\xAE\x3E\x26\x0A\xA6\xD0"
415 "\x51\xF3\xC8\x61\xF5\x77\x22\x48\x10\x87\x4C\xD5\xA4\xD5\xAE\x2D"
416 "\x4E\x7A\xFE\x1C\x31\xE7\x6B\xFF\xA4\x69\x20\xF9\x2A\x0B\x99\xBE"
417 "\x7C\x32\x68\xAD\xB0\xC6\x94\x81\x41\x75\xDC\x06\x78\x0A\xB4\xCF"
418 "\xCD\x1B\x2D\x31\xE4\x7B\xEA\xA8\x35\x99\x75\x57\xC6\x0E\xF6\x78"
419 "\x4F\xA0\x92\x4A\x00\x1B\xE7\x96\xF2\x5B\xFD\x2C\x0A\x0A\x13\x81"
420 "\xAF\xCB\x59\x87\x31\xD9\x83\x65\xF2\x22\x48\xD0\x03\x67\x39\xF6"
421 "\xFF\xA8\x36\x07\x3A\x68\xE3\x7B\xA9\x64\xFD\x9C\xF7\xB1\x3D\xBF"
422 "\x26\x5C\xCC\x7A\xFC\xA2\x8F\x51\xD1\xE1\xE2\x3C\xEC\x06\x75\x7C"
423 "\x34\xF9\xA9\x33\x70\x11\xAD\x5A\xDC\x5F\xCF\x50\xF6\x23\x2F\x39"
424 "\xAC\x92\x48\x53\x4D\x01\x96\x3C\xD8\xDC\x1F\x23\x23\x78\x80\x34"
425 "\x54\x14\x76\x8B\xB6\xBB\xFB\x88\x78\x31\x59\x28\xD2\xB1\x75\x17"
426 "\x88\x04\x4A\x78\x62\x18\x2E\xF5\xFB\x9B\xEF\x15\xD8\x16\x47\xC6"
427 "\x42\xB1\x02\xDA\x9E\xE3\x84\x90\xB4\x2D\xC3\xCE\x13\xC9\x12\x7D"
428 "\x3E\xCD\x39\x39\xC9\xAD\xA1\x1A\xE6\xD5\xAD\x5A\x09\x4D\x1B\x0C"
429 "\xAB"
430 "\x02\x82\x01\x01" /* prime 2 - integer of 257 bytes */
431 "\x00\xDE\xD5\x1B\xF6\xCD\x83\xB1\xC6\x47\x7E\xB9\xC0\x6B\xA9\xB8"
432 "\x02\xF3\xAE\x40\x5D\xFC\xD3\xE5\x4E\xF1\xE3\x39\x04\x52\x84\x89"
433 "\x40\x37\xBB\xC2\xCD\x7F\x71\x77\x17\xDF\x6A\x4C\x31\x24\x7F\xB9"
434 "\x7E\x7F\xC8\x43\x4A\x3C\xEB\x8D\x1B\x7F\x21\x51\x67\x45\x8F\xA0"
435 "\x36\x29\x3A\x18\x45\xA5\x32\xEC\x74\x88\x3C\x98\x5D\x67\x3B\xD7"
436 "\x51\x1F\xE9\xAE\x09\x01\xDE\xDE\x7C\xFB\x60\xD1\xA5\x6C\xE9\x6A"
437 "\x93\x04\x02\x3A\xBB\x67\x02\xB9\xFD\x23\xF0\x02\x2B\x49\x85\xC9"
438 "\x5B\xE7\x4B\xDF\xA3\xF4\xEE\x59\x4C\x45\xEF\x8B\xC1\x6B\xDE\xDE"
439 "\xBC\x1A\xFC\xD2\x76\x3F\x33\x74\xA9\x8E\xA3\x7E\x0C\xC6\xCE\x70"
440 "\xA1\x5B\xA6\x77\xEA\x76\xEB\x18\xCE\xB9\xD7\x78\x8D\xAE\x06\xBB"
441 "\xD3\x1F\x16\x0D\x05\xAB\x4F\xC6\x52\xC8\x6B\x36\x51\x7D\x1D\x27"
442 "\xAF\x88\x9A\x6F\xCC\x25\x2E\x74\x06\x72\xCE\x9E\xDB\xE0\x9D\x30"
443 "\xEF\x55\xA5\x58\x21\xA7\x42\x12\x2C\x2C\x23\x87\xC1\x0F\xE8\x51"
444 "\xDA\x53\xDA\xFC\x05\x36\xDF\x08\x0E\x08\x36\xBE\x5C\x86\x9E\xCA"
445 "\x68\x90\x33\x12\x0B\x14\x82\xAB\x90\x1A\xD4\x49\x32\x9C\xBD\xAA"
446 "\xAB\x4E\x38\xF1\xEE\xED\x3D\x3F\xE8\xBD\x48\x56\xA6\x64\xEE\xC8"
447 "\xD7"
448 "\x02\x82\x01\x01" /* exponent 1 - integer of 257 bytes */
449 "\x00\x96\x5E\x6F\x8F\x06\xD6\xE6\x03\x1F\x96\x76\x81\x38\xBF\x30"
450 "\xCC\x40\x84\xAF\xD0\xE7\x06\xA5\x24\x0E\xCE\x59\xA5\x26\xFE\x0F"
451 "\x74\xBB\x83\xC6\x26\x02\xAF\x3C\xA3\x6B\x9C\xFF\x68\x0C\xEB\x40"
452 "\x42\x46\xCB\x2E\x5E\x2C\xF4\x3A\x32\x77\x77\xED\xAF\xBA\x02\x17"
453 "\xE1\x93\xF0\x43\x4A\x8F\x31\x39\xEF\x72\x0F\x6B\x79\x10\x59\x84"
454 "\xBA\x5A\x55\x7F\x0E\xDB\xEE\xEE\xD6\xA9\xB8\x44\x9F\x3A\xC6\xB9"
455 "\x33\x3B\x5C\x90\x11\xD0\x9B\xCC\x8A\xBF\x0E\x10\x5B\x4B\xF1\x50"
456 "\x9E\x35\xB3\xE0\x6D\x7A\x95\x9C\x38\x5D\xC0\x75\x13\xC2\x15\xA7"
457 "\x81\xEA\xBA\xF7\x4D\x9E\x85\x9D\xF1\x7D\xBA\xD0\x45\x6F\x2A\xD0"
458 "\x76\xC2\x28\xD0\xAD\xA7\xB5\xDC\xE3\x6A\x99\xFF\x83\x50\xB3\x75"
459 "\x07\x14\x91\xAF\xEF\x74\xB5\x9F\x9A\xE0\xBA\xA9\x0B\x87\xF3\x85"
460 "\x5C\x40\xB2\x0E\xA7\xFD\xC6\xED\x45\x8E\xD9\x7C\xB0\xB2\x68\xC6"
461 "\x1D\xFD\x70\x78\x06\x41\x7F\x95\x12\x36\x9D\xE2\x58\x5D\x15\xEE"
462 "\x41\x49\xF5\xFA\xEC\x56\x19\xA0\xE6\xE0\xB2\x40\xE1\xD9\xD0\x03"
463 "\x22\x02\xCF\xD1\x3C\x07\x38\x65\x8F\x65\x0E\xAA\x32\xCE\x25\x05"
464 "\x16\x73\x51\xB9\x9F\x88\x0B\xCD\x30\xF3\x97\xCC\x2B\x6B\xA4\x0E"
465 "\x6F"
466 "\x02\x82\x01\x00" /* exponent 2 - integer of 256 bytes */
467 "\x2A\x5F\x3F\xB8\x08\x90\x58\x47\xA9\xE4\xB1\x11\xA3\xE7\x5B\xF4"
468 "\x43\xBE\x08\xC3\x56\x86\x3C\x7E\x6C\x84\x96\x9C\xF9\xCB\xF6\x05"
469 "\x5E\x13\xB8\x11\x37\x80\xAD\xF2\xBE\x2B\x0A\x5D\xF5\xE0\xCB\xB7"
470 "\x00\x39\x66\x82\x41\x5F\x51\x2F\xBF\x56\xE8\x91\xC8\xAA\x6C\xFE"
471 "\x9F\x8C\x4A\x7D\x43\xD2\x91\x1F\xFF\x9F\xF6\x21\x1C\xB6\x46\x55"
472 "\x48\xCA\x38\xAB\xC1\xCD\x4D\x65\x5A\xAF\xA8\x6D\xDA\x6D\xF0\x34"
473 "\x10\x79\x14\x0D\xFA\xA2\x8C\x17\x54\xB4\x18\xD5\x7E\x5F\x90\x50"
474 "\x87\x84\xE7\xFB\xD7\x61\x53\x5D\xAB\x96\xC7\x6E\x7A\x42\xA0\xFC"
475 "\x07\xED\xB7\x5F\x80\xD9\x19\xFF\xFB\xFD\x9E\xC4\x73\x31\x62\x3D"
476 "\x6C\x9E\x15\x03\x62\xA5\x85\xCC\x19\x8E\x9D\x7F\xE3\x6D\xA8\x5D"
477 "\x96\xF5\xAC\x78\x3D\x81\x27\xE7\x29\xF1\x29\x1D\x09\xBB\x77\x86"
478 "\x6B\x65\x62\x88\xE1\x31\x1A\x22\xF7\xC5\xCE\x73\x65\x1C\xBE\xE7"
479 "\x63\xD3\xD3\x14\x63\x27\xAF\x28\xF3\x23\xB6\x76\xC1\xBD\x9D\x82"
480 "\xF4\x9B\x19\x7D\x2C\x57\xF0\xC2\x2A\x51\xAE\x95\x0D\x8C\x38\x54"
481 "\xF5\xC6\xA0\x51\xB7\x0E\xB9\xEC\xE7\x0D\x22\xF6\x1A\xD3\xFE\x16"
482 "\x21\x03\xB7\x0D\x85\xD3\x35\xC9\xDD\xE4\x59\x85\xBE\x7F\xA1\x75"
483 "\x02\x82\x01\x01" /* coefficient - integer of 257 bytes */
484 "\x00\xB9\x48\xD2\x54\x2F\x19\x54\x64\xAE\x62\x80\x61\x89\x80\xB4"
485 "\x48\x0B\x8D\x7E\x1B\x0F\x50\x08\x82\x3F\xED\x75\x84\xB7\x13\xE4"
486 "\xF8\x8D\xA8\xBB\x54\x21\x4C\x5A\x54\x07\x16\x4B\xB4\xA4\x9E\x30"
487 "\xBF\x7A\x30\x1B\x39\x60\xA3\x21\x53\xFB\xB0\xDC\x0F\x7C\x2C\xFB"
488 "\xAA\x95\x7D\x51\x39\x28\x33\x1F\x25\x31\x53\xF5\xD2\x64\x2B\xF2"
489 "\x1E\xB3\xC0\x6A\x0B\xC9\xA4\x42\x64\x5C\xFB\x15\xA3\xE8\x4C\x3A"
490 "\x9C\x3C\xBE\xA3\x39\x83\x23\xE3\x6D\x18\xCC\xC2\xDC\x63\x8D\xBA"
491 "\x98\xE0\xE0\x31\x4A\x2B\x37\x9C\x4D\x6B\xF3\x9F\x51\xE4\x43\x5C"
492 "\x83\x5F\xBF\x5C\xFE\x92\x45\x01\xAF\xF5\xC2\xF4\xB7\x56\x93\xA5"
493 "\xF4\xAA\x67\x3C\x48\x37\xBD\x9A\x3C\xFE\xA5\x9A\xB0\xD1\x6B\x85"
494 "\xDD\x81\xD4\xFA\xAD\x31\x83\xA8\x22\x9B\xFD\xB4\x61\xDC\x7A\x51"
495 "\x59\x62\x10\x1B\x7E\x44\xA3\xFE\x90\x51\x5A\x3E\x02\x87\xAD\xFA"
496 "\xDD\x0B\x1F\x3D\x35\xAF\xEE\x13\x85\x51\xA7\x42\xC0\xEE\x9E\x20"
497 "\xE9\xD0\x29\xB2\xE4\x21\xE4\x6D\x62\xB9\xF4\x48\x4A\xD8\x46\x8E"
498 "\x61\xA6\x2C\x5D\xDF\x8F\x97\x2B\x3A\x75\x1D\x83\x17\x6F\xC6\xB0"
499 "\xDE\xFC\x14\x25\x06\x5A\x60\xBB\xB8\x21\x89\xD1\xEF\x57\xF1\x71"
500 "\x3D",
501 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
502 .c =
503 "\x5c\xce\x9c\xd7\x9a\x9e\xa1\xfe\x7a\x82\x3c\x68\x27\x98\xe3\x5d"
504 "\xd5\xd7\x07\x29\xf5\xfb\xc3\x1a\x7f\x63\x1e\x62\x31\x3b\x19\x87"
505 "\x79\x4f\xec\x7b\xf3\xcb\xea\x9b\x95\x52\x3a\x40\xe5\x87\x7b\x72"
506 "\xd1\x72\xc9\xfb\x54\x63\xd8\xc9\xd7\x2c\xfc\x7b\xc3\x14\x1e\xbc"
507 "\x18\xb4\x34\xa1\xbf\x14\xb1\x37\x31\x6e\xf0\x1b\x35\x19\x54\x07"
508 "\xf7\x99\xec\x3e\x63\xe2\xcd\x61\x28\x65\xc3\xcd\xb1\x38\x36\xa5"
509 "\xb2\xd7\xb0\xdc\x1f\xf5\xef\x19\xc7\x53\x32\x2d\x1c\x26\xda\xe4"
510 "\x0d\xd6\x90\x7e\x28\xd8\xdc\xe4\x61\x05\xd2\x25\x90\x01\xd3\x96"
511 "\x6d\xa6\xcf\x58\x20\xbb\x03\xf4\x01\xbc\x79\xb9\x18\xd8\xb8\xba"
512 "\xbd\x93\xfc\xf2\x62\x5d\x8c\x66\x1e\x0e\x84\x59\x93\xdd\xe2\x93"
513 "\xa2\x62\x7d\x08\x82\x7a\xdd\xfc\xb8\xbc\xc5\x4f\x9c\x4e\xbf\xb4"
514 "\xfc\xf4\xc5\x01\xe8\x00\x70\x4d\x28\x26\xcc\x2e\xfe\x0e\x58\x41"
515 "\x8b\xec\xaf\x7c\x4b\x54\xd0\xa0\x64\xf9\x32\xf4\x2e\x47\x65\x0a"
516 "\x67\x88\x39\x3a\xdb\xb2\xdb\x7b\xb5\xf6\x17\xa8\xd9\xc6\x5e\x28"
517 "\x13\x82\x8a\x99\xdb\x60\x08\xa5\x23\x37\xfa\x88\x90\x31\xc8\x9d"
518 "\x8f\xec\xfb\x85\x9f\xb1\xce\xa6\x24\x50\x46\x44\x47\xcb\x65\xd1"
519 "\xdf\xc0\xb1\x6c\x90\x1f\x99\x8e\x4d\xd5\x9e\x31\x07\x66\x87\xdf"
520 "\x01\xaa\x56\x3c\x71\xe0\x2b\x6f\x67\x3b\x23\xed\xc2\xbd\x03\x30"
521 "\x79\x76\x02\x10\x10\x98\x85\x8a\xff\xfd\x0b\xda\xa5\xd9\x32\x48"
522 "\x02\xa0\x0b\xb9\x2a\x8a\x18\xca\xc6\x8f\x3f\xbb\x16\xb2\xaa\x98"
523 "\x27\xe3\x60\x43\xed\x15\x70\xd4\x57\x15\xfe\x19\xd4\x9b\x13\x78"
524 "\x8a\xf7\x21\xf1\xa2\xa2\x2d\xb3\x09\xcf\x44\x91\x6e\x08\x3a\x30"
525 "\x81\x3e\x90\x93\x8a\x67\x33\x00\x59\x54\x9a\x25\xd3\x49\x8e\x9f"
526 "\xc1\x4b\xe5\x86\xf3\x50\x4c\xbc\xc5\xd3\xf5\x3a\x54\xe1\x36\x3f"
527 "\xe2\x5a\xb4\x37\xc0\xeb\x70\x35\xec\xf6\xb7\xe8\x44\x3b\x7b\xf3"
528 "\xf1\xf2\x1e\xdb\x60\x7d\xd5\xbe\xf0\x71\x34\x90\x4c\xcb\xd4\x35"
529 "\x51\xc7\xdd\xd8\xc9\x81\xf5\x5d\x57\x46\x2c\xb1\x7b\x9b\xaa\xcb"
530 "\xd1\x22\x25\x49\x44\xa3\xd4\x6b\x29\x7b\xd8\xb2\x07\x93\xbf\x3d"
531 "\x52\x49\x84\x79\xef\xb8\xe5\xc4\xad\xca\xa8\xc6\xf6\xa6\x76\x70"
532 "\x5b\x0b\xe5\x83\xc6\x0e\xef\x55\xf2\xe7\xff\x04\xea\xe6\x13\xbe"
533 "\x40\xe1\x40\x45\x48\x66\x75\x31\xae\x35\x64\x91\x11\x6f\xda\xee"
534 "\x26\x86\x45\x6f\x0b\xd5\x9f\x03\xb1\x65\x5b\xdb\xa4\xe4\xf9\x45",
535 .key_len = 2349,
536 .m_size = 8,
537 .c_size = 512,
Ard Biesheuvel21c8e722017-01-12 13:40:39 +0000538#endif
Tadeusz Struk946cc462015-06-16 10:31:06 -0700539 }
540};
541
Stephan Mueller12071072017-06-12 23:27:51 +0200542/*
543 * PKCS#1 RSA test vectors. Obtained from CAVS testing.
544 */
545static const struct akcipher_testvec pkcs1pad_rsa_tv_template[] = {
546 {
547 .key =
Conor McLoughlin333e18c2018-02-13 08:29:56 +0000548 "\x30\x82\x03\x1f\x02\x01\x00\x02\x82\x01\x01\x00\xd7\x1e\x77\x82"
Stephan Mueller12071072017-06-12 23:27:51 +0200549 "\x8c\x92\x31\xe7\x69\x02\xa2\xd5\x5c\x78\xde\xa2\x0c\x8f\xfe\x28"
550 "\x59\x31\xdf\x40\x9c\x60\x61\x06\xb9\x2f\x62\x40\x80\x76\xcb\x67"
551 "\x4a\xb5\x59\x56\x69\x17\x07\xfa\xf9\x4c\xbd\x6c\x37\x7a\x46\x7d"
552 "\x70\xa7\x67\x22\xb3\x4d\x7a\x94\xc3\xba\x4b\x7c\x4b\xa9\x32\x7c"
553 "\xb7\x38\x95\x45\x64\xa4\x05\xa8\x9f\x12\x7c\x4e\xc6\xc8\x2d\x40"
554 "\x06\x30\xf4\x60\xa6\x91\xbb\x9b\xca\x04\x79\x11\x13\x75\xf0\xae"
555 "\xd3\x51\x89\xc5\x74\xb9\xaa\x3f\xb6\x83\xe4\x78\x6b\xcd\xf9\x5c"
556 "\x4c\x85\xea\x52\x3b\x51\x93\xfc\x14\x6b\x33\x5d\x30\x70\xfa\x50"
557 "\x1b\x1b\x38\x81\x13\x8d\xf7\xa5\x0c\xc0\x8e\xf9\x63\x52\x18\x4e"
558 "\xa9\xf9\xf8\x5c\x5d\xcd\x7a\x0d\xd4\x8e\x7b\xee\x91\x7b\xad\x7d"
559 "\xb4\x92\xd5\xab\x16\x3b\x0a\x8a\xce\x8e\xde\x47\x1a\x17\x01\x86"
560 "\x7b\xab\x99\xf1\x4b\x0c\x3a\x0d\x82\x47\xc1\x91\x8c\xbb\x2e\x22"
561 "\x9e\x49\x63\x6e\x02\xc1\xc9\x3a\x9b\xa5\x22\x1b\x07\x95\xd6\x10"
562 "\x02\x50\xfd\xfd\xd1\x9b\xbe\xab\xc2\xc0\x74\xd7\xec\x00\xfb\x11"
563 "\x71\xcb\x7a\xdc\x81\x79\x9f\x86\x68\x46\x63\x82\x4d\xb7\xf1\xe6"
564 "\x16\x6f\x42\x63\xf4\x94\xa0\xca\x33\xcc\x75\x13\x02\x82\x01\x00"
565 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
566 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
567 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
568 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
569 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
570 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
571 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
572 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
573 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
574 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
575 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
576 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
577 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
578 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
579 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
580 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x01"
581 "\x02\x82\x01\x00\x62\xb5\x60\x31\x4f\x3f\x66\x16\xc1\x60\xac\x47"
582 "\x2a\xff\x6b\x69\x00\x4a\xb2\x5c\xe1\x50\xb9\x18\x74\xa8\xe4\xdc"
583 "\xa8\xec\xcd\x30\xbb\xc1\xc6\xe3\xc6\xac\x20\x2a\x3e\x5e\x8b\x12"
584 "\xe6\x82\x08\x09\x38\x0b\xab\x7c\xb3\xcc\x9c\xce\x97\x67\xdd\xef"
585 "\x95\x40\x4e\x92\xe2\x44\xe9\x1d\xc1\x14\xfd\xa9\xb1\xdc\x71\x9c"
586 "\x46\x21\xbd\x58\x88\x6e\x22\x15\x56\xc1\xef\xe0\xc9\x8d\xe5\x80"
587 "\x3e\xda\x7e\x93\x0f\x52\xf6\xf5\xc1\x91\x90\x9e\x42\x49\x4f\x8d"
588 "\x9c\xba\x38\x83\xe9\x33\xc2\x50\x4f\xec\xc2\xf0\xa8\xb7\x6e\x28"
589 "\x25\x56\x6b\x62\x67\xfe\x08\xf1\x56\xe5\x6f\x0e\x99\xf1\xe5\x95"
590 "\x7b\xef\xeb\x0a\x2c\x92\x97\x57\x23\x33\x36\x07\xdd\xfb\xae\xf1"
591 "\xb1\xd8\x33\xb7\x96\x71\x42\x36\xc5\xa4\xa9\x19\x4b\x1b\x52\x4c"
592 "\x50\x69\x91\xf0\x0e\xfa\x80\x37\x4b\xb5\xd0\x2f\xb7\x44\x0d\xd4"
593 "\xf8\x39\x8d\xab\x71\x67\x59\x05\x88\x3d\xeb\x48\x48\x33\x88\x4e"
594 "\xfe\xf8\x27\x1b\xd6\x55\x60\x5e\x48\xb7\x6d\x9a\xa8\x37\xf9\x7a"
595 "\xde\x1b\xcd\x5d\x1a\x30\xd4\xe9\x9e\x5b\x3c\x15\xf8\x9c\x1f\xda"
596 "\xd1\x86\x48\x55\xce\x83\xee\x8e\x51\xc7\xde\x32\x12\x47\x7d\x46"
Conor McLoughlin333e18c2018-02-13 08:29:56 +0000597 "\xb8\x35\xdf\x41\x02\x01\x00\x02\x01\x00\x02\x01\x00\x02\x01\x00"
598 "\x02\x01\x00",
Stephan Mueller12071072017-06-12 23:27:51 +0200599 .key_len = 804,
600 /*
601 * m is SHA256 hash of following message:
602 * "\x49\x41\xbe\x0a\x0c\xc9\xf6\x35\x51\xe4\x27\x56\x13\x71\x4b\xd0"
603 * "\x36\x92\x84\x89\x1b\xf8\x56\x4a\x72\x61\x14\x69\x4f\x5e\x98\xa5"
604 * "\x80\x5a\x37\x51\x1f\xd8\xf5\xb5\x63\xfc\xf4\xb1\xbb\x4d\x33\xa3"
605 * "\x1e\xb9\x75\x8b\x9c\xda\x7e\x6d\x3a\x77\x85\xf7\xfc\x4e\xe7\x64"
606 * "\x43\x10\x19\xa0\x59\xae\xe0\xad\x4b\xd3\xc4\x45\xf7\xb1\xc2\xc1"
607 * "\x65\x01\x41\x39\x5b\x45\x47\xed\x2b\x51\xed\xe3\xd0\x09\x10\xd2"
608 * "\x39\x6c\x4a\x3f\xe5\xd2\x20\xe6\xb0\x71\x7d\x5b\xed\x26\x60\xf1"
609 * "\xb4\x73\xd1\xdb\x7d\xc4\x19\x91\xee\xf6\x32\x76\xf2\x19\x7d\xb7"
610 */
611 .m =
612 "\x3e\xc8\xa1\x26\x20\x54\x44\x52\x48\x0d\xe5\x66\xf3\xb3\xf5\x04"
613 "\xbe\x10\xa8\x48\x94\x22\x2d\xdd\xba\x7a\xb4\x76\x8d\x79\x98\x89",
614 .m_size = 32,
615 .c =
616 "\xc7\xa3\x98\xeb\x43\xd1\x08\xc2\x3d\x78\x45\x04\x70\xc9\x01\xee"
617 "\xf8\x85\x37\x7c\x0b\xf9\x19\x70\x5c\x45\x7b\x2f\x3a\x0b\xb7\x8b"
618 "\xc4\x0d\x7b\x3a\x64\x0b\x0f\xdb\x78\xa9\x0b\xfd\x8d\x82\xa4\x86"
619 "\x39\xbf\x21\xb8\x84\xc4\xce\x9f\xc2\xe8\xb6\x61\x46\x17\xb9\x4e"
620 "\x0b\x57\x05\xb4\x4f\xf9\x9c\x93\x2d\x9b\xd5\x48\x1d\x80\x12\xef"
621 "\x3a\x77\x7f\xbc\xb5\x8e\x2b\x6b\x7c\xfc\x9f\x8c\x9d\xa2\xc4\x85"
622 "\xb0\x87\xe9\x17\x9b\xb6\x23\x62\xd2\xa9\x9f\x57\xe8\xf7\x04\x45"
623 "\x24\x3a\x45\xeb\xeb\x6a\x08\x8e\xaf\xc8\xa0\x84\xbc\x5d\x13\x38"
624 "\xf5\x17\x8c\xa3\x96\x9b\xa9\x38\x8d\xf0\x35\xad\x32\x8a\x72\x5b"
625 "\xdf\x21\xab\x4b\x0e\xa8\x29\xbb\x61\x54\xbf\x05\xdb\x84\x84\xde"
626 "\xdd\x16\x36\x31\xda\xf3\x42\x6d\x7a\x90\x22\x9b\x11\x29\xa6\xf8"
627 "\x30\x61\xda\xd3\x8b\x54\x1e\x42\xd1\x47\x1d\x6f\xd1\xcd\x42\x0b"
628 "\xd1\xe4\x15\x85\x7e\x08\xd6\x59\x64\x4c\x01\x34\x91\x92\x26\xe8"
629 "\xb0\x25\x8c\xf8\xf4\xfa\x8b\xc9\x31\x33\x76\x72\xfb\x64\x92\x9f"
630 "\xda\x62\x8d\xe1\x2a\x71\x91\x43\x40\x61\x3c\x5a\xbe\x86\xfc\x5b"
631 "\xe6\xf9\xa9\x16\x31\x1f\xaf\x25\x6d\xc2\x4a\x23\x6e\x63\x02\xa2",
632 .c_size = 256,
633 .siggen_sigver_test = true,
634 }
635};
636
Eric Biggersb13b1e02017-02-24 15:46:59 -0800637static const struct kpp_testvec dh_tv_template[] = {
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100638 {
639 .secret =
640#ifdef __LITTLE_ENDIAN
641 "\x01\x00" /* type */
Eric Biggers35f7d522018-07-27 15:36:10 -0700642 "\x15\x02" /* len */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100643 "\x00\x01\x00\x00" /* key_size */
644 "\x00\x01\x00\x00" /* p_size */
Stephan Muellerc98fae52018-07-11 20:35:49 +0200645 "\x00\x00\x00\x00" /* q_size */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100646 "\x01\x00\x00\x00" /* g_size */
647#else
648 "\x00\x01" /* type */
Eric Biggers35f7d522018-07-27 15:36:10 -0700649 "\x02\x15" /* len */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100650 "\x00\x00\x01\x00" /* key_size */
651 "\x00\x00\x01\x00" /* p_size */
Stephan Muellerc98fae52018-07-11 20:35:49 +0200652 "\x00\x00\x00\x00" /* q_size */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100653 "\x00\x00\x00\x01" /* g_size */
654#endif
655 /* xa */
656 "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3"
657 "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15"
658 "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e"
659 "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74"
660 "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a"
661 "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22"
662 "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a"
663 "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8"
664 "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4"
665 "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29"
666 "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29"
667 "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5"
668 "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18"
669 "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6"
670 "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0"
671 "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63"
672 /* p */
673 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
674 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
675 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
676 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
677 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
678 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
679 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
680 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
681 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
682 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
683 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
684 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
685 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
686 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
687 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
688 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
689 /* g */
690 "\x02",
691 .b_public =
692 "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54"
693 "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79"
694 "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f"
695 "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3"
696 "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa"
697 "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea"
698 "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37"
699 "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39"
700 "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6"
701 "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60"
702 "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21"
703 "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63"
704 "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e"
705 "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67"
706 "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40"
707 "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f",
708 .expected_a_public =
709 "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee"
710 "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85"
711 "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4"
712 "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6"
713 "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23"
714 "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd"
715 "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e"
716 "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a"
717 "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a"
718 "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb"
719 "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93"
720 "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26"
721 "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7"
722 "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f"
723 "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62"
724 "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39",
725 .expected_ss =
726 "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46"
727 "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24"
728 "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22"
729 "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75"
730 "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb"
731 "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a"
732 "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc"
733 "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4"
734 "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09"
735 "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c"
736 "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44"
737 "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4"
738 "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82"
739 "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11"
740 "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50"
741 "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17",
Eric Biggers35f7d522018-07-27 15:36:10 -0700742 .secret_size = 533,
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100743 .b_public_size = 256,
744 .expected_a_public_size = 256,
745 .expected_ss_size = 256,
746 },
747 {
748 .secret =
749#ifdef __LITTLE_ENDIAN
750 "\x01\x00" /* type */
Eric Biggers35f7d522018-07-27 15:36:10 -0700751 "\x15\x02" /* len */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100752 "\x00\x01\x00\x00" /* key_size */
753 "\x00\x01\x00\x00" /* p_size */
Stephan Muellerc98fae52018-07-11 20:35:49 +0200754 "\x00\x00\x00\x00" /* q_size */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100755 "\x01\x00\x00\x00" /* g_size */
756#else
757 "\x00\x01" /* type */
Eric Biggers35f7d522018-07-27 15:36:10 -0700758 "\x02\x15" /* len */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100759 "\x00\x00\x01\x00" /* key_size */
760 "\x00\x00\x01\x00" /* p_size */
Stephan Muellerc98fae52018-07-11 20:35:49 +0200761 "\x00\x00\x00\x00" /* q_size */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100762 "\x00\x00\x00\x01" /* g_size */
763#endif
764 /* xa */
765 "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e"
766 "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5"
767 "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80"
768 "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67"
769 "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04"
770 "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4"
771 "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d"
772 "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9"
773 "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a"
774 "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97"
775 "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1"
776 "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a"
777 "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e"
778 "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21"
779 "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f"
780 "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26"
781 /* p */
782 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
783 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
784 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
785 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
786 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
787 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
788 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
789 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
790 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
791 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
792 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
793 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
794 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
795 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
796 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
797 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
798 /* g */
799 "\x02",
800 .b_public =
801 "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e"
802 "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e"
803 "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94"
804 "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77"
805 "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55"
806 "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f"
807 "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97"
808 "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1"
809 "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5"
810 "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf"
811 "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37"
812 "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25"
813 "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77"
814 "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0"
815 "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96"
816 "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f",
817 .expected_a_public =
818 "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18"
819 "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28"
820 "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d"
821 "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4"
822 "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1"
823 "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3"
824 "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83"
825 "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c"
826 "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62"
827 "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf"
828 "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e"
829 "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a"
830 "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66"
831 "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a"
832 "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f"
833 "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd",
834 .expected_ss =
835 "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47"
836 "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58"
837 "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81"
838 "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb"
839 "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b"
840 "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f"
841 "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76"
842 "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc"
843 "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0"
844 "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad"
845 "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93"
846 "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94"
847 "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8"
848 "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a"
849 "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee"
850 "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd",
Eric Biggers35f7d522018-07-27 15:36:10 -0700851 .secret_size = 533,
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100852 .b_public_size = 256,
853 .expected_a_public_size = 256,
854 .expected_ss_size = 256,
855 }
856};
857
Eric Biggersb13b1e02017-02-24 15:46:59 -0800858static const struct kpp_testvec ecdh_tv_template[] = {
Salvatore Benedetto3c4b2392016-06-22 17:49:15 +0100859 {
860#ifndef CONFIG_CRYPTO_FIPS
861 .secret =
862#ifdef __LITTLE_ENDIAN
863 "\x02\x00" /* type */
864 "\x20\x00" /* len */
865 "\x01\x00" /* curve_id */
866 "\x18\x00" /* key_size */
867#else
868 "\x00\x02" /* type */
869 "\x00\x20" /* len */
870 "\x00\x01" /* curve_id */
871 "\x00\x18" /* key_size */
872#endif
873 "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda"
874 "\x4e\x19\x1e\x62\x1f\x23\x23\x31"
875 "\x36\x1e\xd3\x84\x2f\xcc\x21\x72",
876 .b_public =
877 "\xc3\xba\x67\x4b\x71\xec\xd0\x76"
878 "\x7a\x99\x75\x64\x36\x13\x9a\x94"
879 "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f"
880 "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e"
881 "\x83\x87\xdd\x67\x09\xf8\x8d\x96"
882 "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67",
883 .expected_a_public =
884 "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79"
885 "\xa3\xe6\xef\x0e\x5c\x80\x49\x85"
886 "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c"
887 "\x22\x90\x21\x02\xf9\x1b\x81\x5d"
888 "\x0c\x8a\xa8\x98\xd6\x27\x69\x88"
889 "\x5e\xbc\x94\xd8\x15\x9e\x21\xce",
890 .expected_ss =
891 "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc"
892 "\xe3\x40\x60\xc8\x06\x93\xc6\x2e"
893 "\x99\x80\x81\x28\xaf\xc5\x51\x74",
894 .secret_size = 32,
895 .b_public_size = 48,
896 .expected_a_public_size = 48,
897 .expected_ss_size = 24
898 }, {
899#endif
900 .secret =
901#ifdef __LITTLE_ENDIAN
902 "\x02\x00" /* type */
903 "\x28\x00" /* len */
904 "\x02\x00" /* curve_id */
905 "\x20\x00" /* key_size */
906#else
907 "\x00\x02" /* type */
908 "\x00\x28" /* len */
909 "\x00\x02" /* curve_id */
910 "\x00\x20" /* key_size */
911#endif
912 "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
913 "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
914 "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
915 "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
916 .expected_a_public =
917 "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
918 "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
919 "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
920 "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
921 "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
922 "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
923 "\x6a\x02\x6e\x41\x87\x68\x38\x77"
924 "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
925 .expected_ss =
926 "\xea\x17\x6f\x7e\x6e\x57\x26\x38"
927 "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5"
928 "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa"
929 "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9",
930 .b_public =
931 "\xcc\xb4\xda\x74\xb1\x47\x3f\xea"
932 "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7"
933 "\x29\xb2\x47\x03\x19\xab\xdd\x34"
934 "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9"
935 "\x64\x63\xf7\x70\x20\x2f\xa4\xe6"
936 "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f"
937 "\xb1\x32\xbb\xaf\x22\x61\xda\xcb"
938 "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3",
939 .secret_size = 40,
940 .b_public_size = 64,
941 .expected_a_public_size = 64,
942 .expected_ss_size = 32
Tudor-Dan Ambarus47d3fd32017-05-30 17:52:49 +0300943 }, {
944 .secret =
945#ifdef __LITTLE_ENDIAN
946 "\x02\x00" /* type */
947 "\x08\x00" /* len */
948 "\x02\x00" /* curve_id */
949 "\x00\x00", /* key_size */
950#else
951 "\x00\x02" /* type */
952 "\x00\x08" /* len */
953 "\x00\x02" /* curve_id */
954 "\x00\x00", /* key_size */
955#endif
956 .b_secret =
957#ifdef __LITTLE_ENDIAN
958 "\x02\x00" /* type */
959 "\x28\x00" /* len */
960 "\x02\x00" /* curve_id */
961 "\x20\x00" /* key_size */
962#else
963 "\x00\x02" /* type */
964 "\x00\x28" /* len */
965 "\x00\x02" /* curve_id */
966 "\x00\x20" /* key_size */
967#endif
968 "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
969 "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
970 "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
971 "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
972 .b_public =
973 "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
974 "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
975 "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
976 "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
977 "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
978 "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
979 "\x6a\x02\x6e\x41\x87\x68\x38\x77"
980 "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
981 .secret_size = 8,
982 .b_secret_size = 40,
983 .b_public_size = 64,
984 .expected_a_public_size = 64,
985 .expected_ss_size = 32,
986 .genkey = true,
Salvatore Benedetto3c4b2392016-06-22 17:49:15 +0100987 }
988};
989
Tadeusz Struk946cc462015-06-16 10:31:06 -0700990/*
Herbert Xuda7f0332008-07-31 17:08:25 +0800991 * MD4 test vectors from RFC1320
992 */
Eric Biggersb13b1e02017-02-24 15:46:59 -0800993static const struct hash_testvec md4_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +0800994 {
995 .plaintext = "",
996 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
997 "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
998 }, {
999 .plaintext = "a",
1000 .psize = 1,
1001 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
1002 "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
1003 }, {
1004 .plaintext = "abc",
1005 .psize = 3,
1006 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
1007 "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
1008 }, {
1009 .plaintext = "message digest",
1010 .psize = 14,
1011 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
1012 "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
1013 }, {
1014 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1015 .psize = 26,
1016 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
1017 "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
1018 .np = 2,
1019 .tap = { 13, 13 },
1020 }, {
1021 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1022 .psize = 62,
1023 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
1024 "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
1025 }, {
1026 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
1027 "45678901234567890",
1028 .psize = 80,
1029 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
1030 "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
1031 },
1032};
1033
Eric Biggersb13b1e02017-02-24 15:46:59 -08001034static const struct hash_testvec sha3_224_tv_template[] = {
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301035 {
1036 .plaintext = "",
1037 .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7"
1038 "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab"
1039 "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f"
1040 "\x5b\x5a\x6b\xc7",
1041 }, {
1042 .plaintext = "a",
1043 .psize = 1,
1044 .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f"
1045 "\x40\x5f\x08\x12\x69\x68\x5b\x38"
1046 "\xe3\xa8\x19\xb3\x09\xee\x94\x2f"
1047 "\x48\x2b\x6a\x8b",
1048 }, {
1049 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1050 "jklmklmnlmnomnopnopq",
1051 .psize = 56,
1052 .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21"
1053 "\xc9\xfd\x55\x74\x49\x44\x79\xba"
1054 "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea"
1055 "\xd0\xfc\xce\x33",
Ard Biesheuveld60031d2018-01-19 12:04:37 +00001056 .np = 2,
1057 .tap = { 28, 28 },
1058 }, {
1059 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1060 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1061 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1062 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1063 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1064 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1065 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1066 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1067 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1068 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1069 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1070 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1071 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1072 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1073 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1074 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1075 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1076 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1077 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1078 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1079 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1080 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1081 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1082 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1083 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1084 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1085 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1086 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1087 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1088 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1089 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1090 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1091 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1092 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1093 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1094 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1095 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1096 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1097 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1098 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1099 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1100 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1101 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1102 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1103 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1104 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1105 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1106 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1107 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1108 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1109 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1110 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1111 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1112 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1113 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1114 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1115 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1116 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1117 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1118 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1119 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1120 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1121 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1122 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1123 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1124 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1125 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1126 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1127 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1128 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1129 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1130 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1131 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1132 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1133 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1134 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1135 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1136 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1137 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1138 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1139 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1140 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1141 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1142 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1143 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1144 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1145 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1146 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1147 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1148 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1149 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1150 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1151 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1152 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1153 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1154 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1155 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1156 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1157 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1158 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1159 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1160 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1161 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1162 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1163 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1164 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1165 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1166 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1167 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1168 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1169 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1170 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1171 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1172 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1173 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1174 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1175 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1176 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1177 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1178 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1179 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1180 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1181 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1182 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1183 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1184 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1185 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1186 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1187 .psize = 1023,
1188 .digest = "\x7d\x0f\x2f\xb7\x65\x3b\xa7\x26"
1189 "\xc3\x88\x20\x71\x15\x06\xe8\x2d"
1190 "\xa3\x92\x44\xab\x3e\xe7\xff\x86"
1191 "\xb6\x79\x10\x72",
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301192 },
1193};
1194
Eric Biggersb13b1e02017-02-24 15:46:59 -08001195static const struct hash_testvec sha3_256_tv_template[] = {
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301196 {
1197 .plaintext = "",
1198 .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66"
1199 "\x51\xc1\x47\x56\xa0\x61\xd6\x62"
1200 "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa"
1201 "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a",
1202 }, {
1203 .plaintext = "a",
1204 .psize = 1,
1205 .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75"
1206 "\x72\x6f\xeb\x2c\xab\x2d\x82\x15"
1207 "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2"
1208 "\xc8\x15\x12\x57\x03\x2e\xcd\x8b",
1209 }, {
1210 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1211 "jklmklmnlmnomnopnopq",
1212 .psize = 56,
1213 .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08"
1214 "\x49\x10\x03\x76\xa8\x23\x5e\x2c"
1215 "\x82\xe1\xb9\x99\x8a\x99\x9e\x21"
1216 "\xdb\x32\xdd\x97\x49\x6d\x33\x76",
Ard Biesheuveld60031d2018-01-19 12:04:37 +00001217 .np = 2,
1218 .tap = { 28, 28 },
1219 }, {
1220 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1221 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1222 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1223 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1224 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1225 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1226 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1227 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1228 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1229 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1230 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1231 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1232 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1233 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1234 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1235 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1236 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1237 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1238 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1239 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1240 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1241 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1242 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1243 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1244 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1245 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1246 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1247 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1248 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1249 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1250 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1251 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1252 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1253 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1254 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1255 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1256 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1257 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1258 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1259 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1260 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1261 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1262 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1263 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1264 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1265 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1266 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1267 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1268 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1269 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1270 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1271 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1272 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1273 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1274 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1275 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1276 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1277 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1278 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1279 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1280 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1281 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1282 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1283 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1284 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1285 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1286 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1287 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1288 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1289 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1290 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1291 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1292 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1293 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1294 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1295 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1296 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1297 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1298 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1299 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1300 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1301 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1302 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1303 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1304 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1305 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1306 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1307 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1308 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1309 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1310 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1311 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1312 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1313 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1314 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1315 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1316 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1317 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1318 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1319 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1320 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1321 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1322 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1323 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1324 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1325 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1326 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1327 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1328 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1329 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1330 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1331 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1332 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1333 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1334 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1335 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1336 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1337 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1338 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1339 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1340 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1341 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1342 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1343 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1344 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1345 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1346 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1347 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1348 .psize = 1023,
1349 .digest = "\xde\x41\x04\xbd\xda\xda\xd9\x71"
1350 "\xf7\xfa\x80\xf5\xea\x11\x03\xb1"
1351 "\x3b\x6a\xbc\x5f\xb9\x66\x26\xf7"
1352 "\x8a\x97\xbb\xf2\x07\x08\x38\x30",
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301353 },
1354};
1355
1356
Eric Biggersb13b1e02017-02-24 15:46:59 -08001357static const struct hash_testvec sha3_384_tv_template[] = {
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301358 {
1359 .plaintext = "",
1360 .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d"
1361 "\x01\x10\x7d\x85\x2e\x4c\x24\x85"
1362 "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61"
1363 "\x99\x5e\x71\xbb\xee\x98\x3a\x2a"
1364 "\xc3\x71\x38\x31\x26\x4a\xdb\x47"
1365 "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04",
1366 }, {
1367 .plaintext = "a",
1368 .psize = 1,
1369 .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b"
1370 "\x48\x56\x9e\xfe\xc7\x94\xd2\x49"
1371 "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7"
1372 "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7"
1373 "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8"
1374 "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9",
1375 }, {
1376 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1377 "jklmklmnlmnomnopnopq",
1378 .psize = 56,
1379 .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b"
1380 "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e"
1381 "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42"
1382 "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a"
1383 "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1"
1384 "\x9e\xef\x51\xac\xd0\x65\x7c\x22",
Ard Biesheuveld60031d2018-01-19 12:04:37 +00001385 .np = 2,
1386 .tap = { 28, 28 },
1387 }, {
1388 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1389 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1390 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1391 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1392 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1393 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1394 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1395 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1396 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1397 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1398 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1399 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1400 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1401 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1402 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1403 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1404 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1405 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1406 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1407 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1408 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1409 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1410 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1411 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1412 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1413 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1414 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1415 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1416 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1417 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1418 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1419 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1420 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1421 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1422 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1423 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1424 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1425 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1426 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1427 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1428 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1429 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1430 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1431 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1432 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1433 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1434 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1435 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1436 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1437 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1438 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1439 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1440 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1441 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1442 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1443 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1444 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1445 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1446 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1447 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1448 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1449 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1450 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1451 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1452 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1453 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1454 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1455 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1456 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1457 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1458 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1459 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1460 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1461 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1462 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1463 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1464 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1465 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1466 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1467 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1468 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1469 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1470 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1471 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1472 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1473 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1474 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1475 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1476 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1477 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1478 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1479 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1480 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1481 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1482 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1483 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1484 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1485 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1486 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1487 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1488 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1489 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1490 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1491 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1492 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1493 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1494 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1495 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1496 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1497 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1498 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1499 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1500 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1501 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1502 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1503 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1504 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1505 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1506 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1507 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1508 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1509 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1510 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1511 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1512 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1513 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1514 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1515 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1516 .psize = 1023,
1517 .digest = "\x1b\x19\x4d\x8f\xd5\x36\x87\x71"
1518 "\xcf\xca\x30\x85\x9b\xc1\x25\xc7"
1519 "\x00\xcb\x73\x8a\x8e\xd4\xfe\x2b"
1520 "\x1a\xa2\xdc\x2e\x41\xfd\x52\x51"
1521 "\xd2\x21\xae\x2d\xc7\xae\x8c\x40"
1522 "\xb9\xe6\x56\x48\x03\xcd\x88\x6b",
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301523 },
1524};
1525
1526
Eric Biggersb13b1e02017-02-24 15:46:59 -08001527static const struct hash_testvec sha3_512_tv_template[] = {
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301528 {
1529 .plaintext = "",
1530 .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5"
1531 "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e"
1532 "\x97\xc9\x82\x16\x4f\xe2\x58\x59"
1533 "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6"
1534 "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c"
1535 "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58"
1536 "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3"
1537 "\x01\x75\x85\x86\x28\x1d\xcd\x26",
1538 }, {
1539 .plaintext = "a",
1540 .psize = 1,
1541 .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83"
1542 "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3"
1543 "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf"
1544 "\xb4\x96\x2d\x86\x98\xb7\xfa\x80"
1545 "\x3f\x4f\x93\xff\x24\x39\x35\x86"
1546 "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3"
1547 "\x69\x42\x0c\xe5\x33\x32\x71\x2f"
1548 "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a",
1549 }, {
1550 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1551 "jklmklmnlmnomnopnopq",
1552 .psize = 56,
1553 .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8"
1554 "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18"
1555 "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f"
1556 "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d"
1557 "\xee\x69\x1f\xbe\x0c\x98\x53\x02"
1558 "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63"
1559 "\x46\xb5\x33\xb4\x9c\x03\x0d\x99"
1560 "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e",
Ard Biesheuveld60031d2018-01-19 12:04:37 +00001561 .np = 2,
1562 .tap = { 28, 28 },
1563 }, {
1564 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1565 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1566 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1567 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1568 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1569 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1570 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1571 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1572 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1573 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1574 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1575 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1576 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1577 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1578 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1579 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1580 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1581 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1582 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1583 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1584 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1585 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1586 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1587 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1588 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1589 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1590 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1591 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1592 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1593 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1594 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1595 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1596 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1597 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1598 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1599 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1600 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1601 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1602 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1603 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1604 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1605 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1606 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1607 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1608 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1609 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1610 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1611 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1612 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1613 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1614 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1615 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1616 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1617 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1618 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1619 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1620 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1621 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1622 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1623 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1624 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1625 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1626 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1627 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1628 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1629 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1630 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1631 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1632 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1633 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1634 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1635 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1636 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1637 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1638 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1639 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1640 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1641 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1642 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1643 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1644 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1645 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1646 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1647 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1648 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1649 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1650 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1651 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1652 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1653 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1654 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1655 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1656 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1657 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1658 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1659 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1660 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1661 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1662 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1663 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1664 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1665 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1666 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1667 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1668 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1669 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1670 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1671 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1672 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1673 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1674 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1675 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1676 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1677 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1678 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1679 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1680 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1681 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1682 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1683 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1684 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1685 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1686 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1687 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1688 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1689 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1690 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1691 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1692 .psize = 1023,
1693 .digest = "\x59\xda\x30\xe3\x90\xe4\x3d\xde"
1694 "\xf0\xc6\x42\x17\xd7\xb2\x26\x47"
1695 "\x90\x28\xa6\x84\xe8\x49\x7a\x86"
1696 "\xd6\xb8\x9e\xf8\x07\x59\x21\x03"
1697 "\xad\xd2\xed\x48\xa3\xb9\xa5\xf0"
1698 "\xb3\xae\x02\x2b\xb8\xaf\xc3\x3b"
1699 "\xd6\xb0\x8f\xcb\x76\x8b\xa7\x41"
1700 "\x32\xc2\x8e\x50\x91\x86\x90\xfb",
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301701 },
1702};
1703
1704
Herbert Xuda7f0332008-07-31 17:08:25 +08001705/*
1706 * MD5 test vectors from RFC1321
1707 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08001708static const struct hash_testvec md5_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08001709 {
1710 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
1711 "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
1712 }, {
1713 .plaintext = "a",
1714 .psize = 1,
1715 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
1716 "\x31\xc3\x99\xe2\x69\x77\x26\x61",
1717 }, {
1718 .plaintext = "abc",
1719 .psize = 3,
1720 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
1721 "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
1722 }, {
1723 .plaintext = "message digest",
1724 .psize = 14,
1725 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
1726 "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
1727 }, {
1728 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1729 .psize = 26,
1730 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
1731 "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
1732 .np = 2,
1733 .tap = {13, 13}
1734 }, {
1735 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1736 .psize = 62,
1737 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
1738 "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
1739 }, {
1740 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
1741 "345678901234567890",
1742 .psize = 80,
1743 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
1744 "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
1745 }
1746
1747};
1748
1749/*
1750 * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
1751 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08001752static const struct hash_testvec rmd128_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08001753 {
1754 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
1755 "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
1756 }, {
1757 .plaintext = "a",
1758 .psize = 1,
1759 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
1760 "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
1761 }, {
1762 .plaintext = "abc",
1763 .psize = 3,
1764 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
1765 "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
1766 }, {
1767 .plaintext = "message digest",
1768 .psize = 14,
1769 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
1770 "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
1771 }, {
1772 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1773 .psize = 26,
1774 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
1775 "\x10\x71\x49\x22\xb3\x71\x83\x4e",
1776 }, {
1777 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1778 "fghijklmnopqrstuvwxyz0123456789",
1779 .psize = 62,
1780 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
1781 "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
1782 }, {
1783 .plaintext = "1234567890123456789012345678901234567890"
1784 "1234567890123456789012345678901234567890",
1785 .psize = 80,
1786 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
1787 "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
1788 }, {
1789 .plaintext = "abcdbcdecdefdefgefghfghighij"
1790 "hijkijkljklmklmnlmnomnopnopq",
1791 .psize = 56,
1792 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
1793 "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
1794 .np = 2,
1795 .tap = { 28, 28 },
1796 }, {
1797 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1798 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1799 "lmnopqrsmnopqrstnopqrstu",
1800 .psize = 112,
1801 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
1802 "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
1803 }, {
1804 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1805 .psize = 32,
1806 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
1807 "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
1808 }
1809};
1810
1811/*
1812 * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
1813 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08001814static const struct hash_testvec rmd160_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08001815 {
1816 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
1817 "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
1818 }, {
1819 .plaintext = "a",
1820 .psize = 1,
1821 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
1822 "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
1823 }, {
1824 .plaintext = "abc",
1825 .psize = 3,
1826 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
1827 "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
1828 }, {
1829 .plaintext = "message digest",
1830 .psize = 14,
1831 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
1832 "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
1833 }, {
1834 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1835 .psize = 26,
1836 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
1837 "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
1838 }, {
1839 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1840 "fghijklmnopqrstuvwxyz0123456789",
1841 .psize = 62,
1842 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
1843 "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
1844 }, {
1845 .plaintext = "1234567890123456789012345678901234567890"
1846 "1234567890123456789012345678901234567890",
1847 .psize = 80,
1848 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
1849 "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
1850 }, {
1851 .plaintext = "abcdbcdecdefdefgefghfghighij"
1852 "hijkijkljklmklmnlmnomnopnopq",
1853 .psize = 56,
1854 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
1855 "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
1856 .np = 2,
1857 .tap = { 28, 28 },
1858 }, {
1859 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1860 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1861 "lmnopqrsmnopqrstnopqrstu",
1862 .psize = 112,
1863 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
1864 "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
1865 }, {
1866 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1867 .psize = 32,
1868 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
1869 "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
1870 }
1871};
1872
1873/*
1874 * RIPEMD-256 test vectors
1875 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08001876static const struct hash_testvec rmd256_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08001877 {
1878 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
1879 "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
1880 "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
1881 "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
1882 }, {
1883 .plaintext = "a",
1884 .psize = 1,
1885 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
1886 "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
1887 "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
1888 "\xcd\x88\x3a\x91\x34\x69\x29\x25",
1889 }, {
1890 .plaintext = "abc",
1891 .psize = 3,
1892 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
1893 "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
1894 "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
1895 "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
1896 }, {
1897 .plaintext = "message digest",
1898 .psize = 14,
1899 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
1900 "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
1901 "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
1902 "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
1903 }, {
1904 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1905 .psize = 26,
1906 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
1907 "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
1908 "\x78\x96\x11\x8a\x51\x97\x96\x87"
1909 "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
1910 }, {
1911 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1912 "fghijklmnopqrstuvwxyz0123456789",
1913 .psize = 62,
1914 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
1915 "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
1916 "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
1917 "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
1918 }, {
1919 .plaintext = "1234567890123456789012345678901234567890"
1920 "1234567890123456789012345678901234567890",
1921 .psize = 80,
1922 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
1923 "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
1924 "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
1925 "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
1926 }, {
1927 .plaintext = "abcdbcdecdefdefgefghfghighij"
1928 "hijkijkljklmklmnlmnomnopnopq",
1929 .psize = 56,
1930 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
1931 "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
1932 "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
1933 "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
1934 .np = 2,
1935 .tap = { 28, 28 },
1936 }
1937};
1938
1939/*
1940 * RIPEMD-320 test vectors
1941 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08001942static const struct hash_testvec rmd320_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08001943 {
1944 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
1945 "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
1946 "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
1947 "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
1948 }, {
1949 .plaintext = "a",
1950 .psize = 1,
1951 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
1952 "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
1953 "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
1954 "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
1955 }, {
1956 .plaintext = "abc",
1957 .psize = 3,
1958 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
1959 "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
1960 "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
1961 "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
1962 }, {
1963 .plaintext = "message digest",
1964 .psize = 14,
1965 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
1966 "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
1967 "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
1968 "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
1969 }, {
1970 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1971 .psize = 26,
1972 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
1973 "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
1974 "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
1975 "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
1976 }, {
1977 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1978 "fghijklmnopqrstuvwxyz0123456789",
1979 .psize = 62,
1980 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
1981 "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
1982 "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
1983 "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
1984 }, {
1985 .plaintext = "1234567890123456789012345678901234567890"
1986 "1234567890123456789012345678901234567890",
1987 .psize = 80,
1988 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
1989 "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
1990 "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
1991 "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
1992 }, {
1993 .plaintext = "abcdbcdecdefdefgefghfghighij"
1994 "hijkijkljklmklmnlmnomnopnopq",
1995 .psize = 56,
1996 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
1997 "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
1998 "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
1999 "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
2000 .np = 2,
2001 .tap = { 28, 28 },
2002 }
2003};
2004
Eric Biggersb13b1e02017-02-24 15:46:59 -08002005static const struct hash_testvec crct10dif_tv_template[] = {
Herbert Xu684115212013-09-07 12:56:26 +10002006 {
Ard Biesheuveld31de182016-12-05 18:42:24 +00002007 .plaintext = "abc",
2008 .psize = 3,
2009 .digest = (u8 *)(u16 []){ 0x443b },
Herbert Xu684115212013-09-07 12:56:26 +10002010 }, {
Ard Biesheuveld31de182016-12-05 18:42:24 +00002011 .plaintext = "1234567890123456789012345678901234567890"
2012 "123456789012345678901234567890123456789",
2013 .psize = 79,
2014 .digest = (u8 *)(u16 []){ 0x4b70 },
2015 .np = 2,
2016 .tap = { 63, 16 },
Herbert Xu684115212013-09-07 12:56:26 +10002017 }, {
Ard Biesheuveld31de182016-12-05 18:42:24 +00002018 .plaintext = "abcdddddddddddddddddddddddddddddddddddddddd"
2019 "ddddddddddddd",
2020 .psize = 56,
2021 .digest = (u8 *)(u16 []){ 0x9ce3 },
2022 .np = 8,
2023 .tap = { 1, 2, 28, 7, 6, 5, 4, 3 },
2024 }, {
2025 .plaintext = "1234567890123456789012345678901234567890"
2026 "1234567890123456789012345678901234567890"
2027 "1234567890123456789012345678901234567890"
2028 "1234567890123456789012345678901234567890"
2029 "1234567890123456789012345678901234567890"
2030 "1234567890123456789012345678901234567890"
2031 "1234567890123456789012345678901234567890"
2032 "123456789012345678901234567890123456789",
2033 .psize = 319,
2034 .digest = (u8 *)(u16 []){ 0x44c6 },
2035 }, {
2036 .plaintext = "1234567890123456789012345678901234567890"
2037 "1234567890123456789012345678901234567890"
2038 "1234567890123456789012345678901234567890"
2039 "1234567890123456789012345678901234567890"
2040 "1234567890123456789012345678901234567890"
2041 "1234567890123456789012345678901234567890"
2042 "1234567890123456789012345678901234567890"
2043 "123456789012345678901234567890123456789",
2044 .psize = 319,
2045 .digest = (u8 *)(u16 []){ 0x44c6 },
2046 .np = 4,
2047 .tap = { 1, 255, 57, 6 },
Ard Biesheuvel702202f2018-03-10 15:21:46 +00002048 }, {
2049 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
2050 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
2051 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
2052 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
2053 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
2054 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
2055 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
2056 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
2057 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
2058 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
2059 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
2060 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
2061 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
2062 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
2063 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
2064 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
2065 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
2066 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
2067 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
2068 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
2069 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
2070 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
2071 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
2072 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
2073 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
2074 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
2075 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
2076 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
2077 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
2078 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
2079 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
2080 "\x47\xde\x75\x0c\x80\x17\xae\x22"
2081 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
2082 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
2083 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
2084 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
2085 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
2086 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
2087 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
2088 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
2089 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
2090 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
2091 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
2092 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
2093 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
2094 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
2095 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
2096 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
2097 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
2098 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
2099 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
2100 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
2101 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
2102 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
2103 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
2104 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
2105 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
2106 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
2107 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
2108 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
2109 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
2110 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
2111 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
2112 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
2113 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
2114 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
2115 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
2116 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
2117 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
2118 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
2119 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
2120 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
2121 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
2122 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
2123 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
2124 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
2125 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
2126 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
2127 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
2128 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
2129 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
2130 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
2131 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
2132 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
2133 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
2134 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
2135 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
2136 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
2137 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
2138 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
2139 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
2140 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
2141 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
2142 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
2143 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
2144 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
2145 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
2146 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
2147 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
2148 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
2149 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
2150 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
2151 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
2152 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
2153 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
2154 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
2155 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
2156 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
2157 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
2158 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
2159 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
2160 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
2161 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
2162 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
2163 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
2164 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
2165 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
2166 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
2167 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
2168 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
2169 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
2170 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
2171 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
2172 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
2173 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
2174 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
2175 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
2176 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
2177 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
2178 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
2179 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
2180 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
2181 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
2182 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
2183 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
2184 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
2185 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
2186 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
2187 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
2188 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
2189 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
2190 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
2191 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
2192 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
2193 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
2194 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
2195 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
2196 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
2197 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
2198 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
2199 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
2200 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
2201 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
2202 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
2203 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
2204 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
2205 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
2206 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
2207 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
2208 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
2209 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
2210 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
2211 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
2212 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
2213 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
2214 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
2215 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
2216 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
2217 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
2218 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
2219 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
2220 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
2221 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
2222 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
2223 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
2224 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
2225 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
2226 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
2227 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
2228 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
2229 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
2230 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
2231 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
2232 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
2233 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
2234 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
2235 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
2236 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
2237 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
2238 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
2239 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
2240 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
2241 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
2242 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
2243 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
2244 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
2245 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
2246 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
2247 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
2248 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
2249 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
2250 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
2251 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
2252 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
2253 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
2254 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
2255 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
2256 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
2257 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
2258 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
2259 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
2260 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
2261 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
2262 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
2263 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
2264 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
2265 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
2266 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
2267 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
2268 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
2269 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
2270 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
2271 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
2272 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
2273 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
2274 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
2275 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
2276 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
2277 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
2278 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
2279 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
2280 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
2281 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
2282 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
2283 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
2284 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
2285 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
2286 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
2287 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
2288 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
2289 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
2290 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
2291 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
2292 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
2293 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
2294 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
2295 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
2296 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
2297 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
2298 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
2299 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
2300 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
2301 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
2302 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
2303 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
2304 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
2305 .psize = 2048,
2306 .digest = (u8 *)(u16 []){ 0x23ca },
Herbert Xu684115212013-09-07 12:56:26 +10002307 }
2308};
2309
Vitaly Chikunov25a0b9d2018-11-07 00:00:03 +03002310/*
2311 * Streebog test vectors from RFC 6986 and GOST R 34.11-2012
2312 */
2313static const struct hash_testvec streebog256_tv_template[] = {
2314 { /* M1 */
2315 .plaintext = "012345678901234567890123456789012345678901234567890123456789012",
2316 .psize = 63,
2317 .digest =
2318 "\x9d\x15\x1e\xef\xd8\x59\x0b\x89"
2319 "\xda\xa6\xba\x6c\xb7\x4a\xf9\x27"
2320 "\x5d\xd0\x51\x02\x6b\xb1\x49\xa4"
2321 "\x52\xfd\x84\xe5\xe5\x7b\x55\x00",
2322 },
2323 { /* M2 */
2324 .plaintext =
2325 "\xd1\xe5\x20\xe2\xe5\xf2\xf0\xe8"
2326 "\x2c\x20\xd1\xf2\xf0\xe8\xe1\xee"
2327 "\xe6\xe8\x20\xe2\xed\xf3\xf6\xe8"
2328 "\x2c\x20\xe2\xe5\xfe\xf2\xfa\x20"
2329 "\xf1\x20\xec\xee\xf0\xff\x20\xf1"
2330 "\xf2\xf0\xe5\xeb\xe0\xec\xe8\x20"
2331 "\xed\xe0\x20\xf5\xf0\xe0\xe1\xf0"
2332 "\xfb\xff\x20\xef\xeb\xfa\xea\xfb"
2333 "\x20\xc8\xe3\xee\xf0\xe5\xe2\xfb",
2334 .psize = 72,
2335 .digest =
2336 "\x9d\xd2\xfe\x4e\x90\x40\x9e\x5d"
2337 "\xa8\x7f\x53\x97\x6d\x74\x05\xb0"
2338 "\xc0\xca\xc6\x28\xfc\x66\x9a\x74"
2339 "\x1d\x50\x06\x3c\x55\x7e\x8f\x50",
2340 },
2341};
2342
2343static const struct hash_testvec streebog512_tv_template[] = {
2344 { /* M1 */
2345 .plaintext = "012345678901234567890123456789012345678901234567890123456789012",
2346 .psize = 63,
2347 .digest =
2348 "\x1b\x54\xd0\x1a\x4a\xf5\xb9\xd5"
2349 "\xcc\x3d\x86\xd6\x8d\x28\x54\x62"
2350 "\xb1\x9a\xbc\x24\x75\x22\x2f\x35"
2351 "\xc0\x85\x12\x2b\xe4\xba\x1f\xfa"
2352 "\x00\xad\x30\xf8\x76\x7b\x3a\x82"
2353 "\x38\x4c\x65\x74\xf0\x24\xc3\x11"
2354 "\xe2\xa4\x81\x33\x2b\x08\xef\x7f"
2355 "\x41\x79\x78\x91\xc1\x64\x6f\x48",
2356 },
2357 { /* M2 */
2358 .plaintext =
2359 "\xd1\xe5\x20\xe2\xe5\xf2\xf0\xe8"
2360 "\x2c\x20\xd1\xf2\xf0\xe8\xe1\xee"
2361 "\xe6\xe8\x20\xe2\xed\xf3\xf6\xe8"
2362 "\x2c\x20\xe2\xe5\xfe\xf2\xfa\x20"
2363 "\xf1\x20\xec\xee\xf0\xff\x20\xf1"
2364 "\xf2\xf0\xe5\xeb\xe0\xec\xe8\x20"
2365 "\xed\xe0\x20\xf5\xf0\xe0\xe1\xf0"
2366 "\xfb\xff\x20\xef\xeb\xfa\xea\xfb"
2367 "\x20\xc8\xe3\xee\xf0\xe5\xe2\xfb",
2368 .psize = 72,
2369 .digest =
2370 "\x1e\x88\xe6\x22\x26\xbf\xca\x6f"
2371 "\x99\x94\xf1\xf2\xd5\x15\x69\xe0"
2372 "\xda\xf8\x47\x5a\x3b\x0f\xe6\x1a"
2373 "\x53\x00\xee\xe4\x6d\x96\x13\x76"
2374 "\x03\x5f\xe8\x35\x49\xad\xa2\xb8"
2375 "\x62\x0f\xcd\x7c\x49\x6c\xe5\xb3"
2376 "\x3f\x0c\xb9\xdd\xdc\x2b\x64\x60"
2377 "\x14\x3b\x03\xda\xba\xc9\xfb\x28",
2378 },
2379};
2380
2381/*
2382 * Two HMAC-Streebog test vectors from RFC 7836 and R 50.1.113-2016 A
2383 */
2384static const struct hash_testvec hmac_streebog256_tv_template[] = {
2385 {
2386 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2387 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2388 "\x10\x11\x12\x13\x14\x15\x16\x17"
2389 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
2390 .ksize = 32,
2391 .plaintext =
2392 "\x01\x26\xbd\xb8\x78\x00\xaf\x21"
2393 "\x43\x41\x45\x65\x63\x78\x01\x00",
2394 .psize = 16,
2395 .digest =
2396 "\xa1\xaa\x5f\x7d\xe4\x02\xd7\xb3"
2397 "\xd3\x23\xf2\x99\x1c\x8d\x45\x34"
2398 "\x01\x31\x37\x01\x0a\x83\x75\x4f"
2399 "\xd0\xaf\x6d\x7c\xd4\x92\x2e\xd9",
2400 },
2401};
2402
2403static const struct hash_testvec hmac_streebog512_tv_template[] = {
2404 {
2405 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2406 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2407 "\x10\x11\x12\x13\x14\x15\x16\x17"
2408 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
2409 .ksize = 32,
2410 .plaintext =
2411 "\x01\x26\xbd\xb8\x78\x00\xaf\x21"
2412 "\x43\x41\x45\x65\x63\x78\x01\x00",
2413 .psize = 16,
2414 .digest =
2415 "\xa5\x9b\xab\x22\xec\xae\x19\xc6"
2416 "\x5f\xbd\xe6\xe5\xf4\xe9\xf5\xd8"
2417 "\x54\x9d\x31\xf0\x37\xf9\xdf\x9b"
2418 "\x90\x55\x00\xe1\x71\x92\x3a\x77"
2419 "\x3d\x5f\x15\x30\xf2\xed\x7e\x96"
2420 "\x4c\xb2\xee\xdc\x29\xe9\xad\x2f"
2421 "\x3a\xfe\x93\xb2\x81\x4f\x79\xf5"
2422 "\x00\x0f\xfc\x03\x66\xc2\x51\xe6",
2423 },
2424};
2425
Gilad Ben-Yossefb7e27532017-08-21 13:51:29 +03002426/* Example vectors below taken from
2427 * http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
2428 *
2429 * The rest taken from
2430 * https://github.com/adamws/oscca-sm3
2431 */
2432static const struct hash_testvec sm3_tv_template[] = {
2433 {
2434 .plaintext = "",
2435 .psize = 0,
2436 .digest = (u8 *)(u8 []) {
2437 0x1A, 0xB2, 0x1D, 0x83, 0x55, 0xCF, 0xA1, 0x7F,
2438 0x8e, 0x61, 0x19, 0x48, 0x31, 0xE8, 0x1A, 0x8F,
2439 0x22, 0xBE, 0xC8, 0xC7, 0x28, 0xFE, 0xFB, 0x74,
2440 0x7E, 0xD0, 0x35, 0xEB, 0x50, 0x82, 0xAA, 0x2B }
2441 }, {
2442 .plaintext = "a",
2443 .psize = 1,
2444 .digest = (u8 *)(u8 []) {
2445 0x62, 0x34, 0x76, 0xAC, 0x18, 0xF6, 0x5A, 0x29,
2446 0x09, 0xE4, 0x3C, 0x7F, 0xEC, 0x61, 0xB4, 0x9C,
2447 0x7E, 0x76, 0x4A, 0x91, 0xA1, 0x8C, 0xCB, 0x82,
2448 0xF1, 0x91, 0x7A, 0x29, 0xC8, 0x6C, 0x5E, 0x88 }
2449 }, {
2450 /* A.1. Example 1 */
2451 .plaintext = "abc",
2452 .psize = 3,
2453 .digest = (u8 *)(u8 []) {
2454 0x66, 0xC7, 0xF0, 0xF4, 0x62, 0xEE, 0xED, 0xD9,
2455 0xD1, 0xF2, 0xD4, 0x6B, 0xDC, 0x10, 0xE4, 0xE2,
2456 0x41, 0x67, 0xC4, 0x87, 0x5C, 0xF2, 0xF7, 0xA2,
2457 0x29, 0x7D, 0xA0, 0x2B, 0x8F, 0x4B, 0xA8, 0xE0 }
2458 }, {
2459 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2460 .psize = 26,
2461 .digest = (u8 *)(u8 []) {
2462 0xB8, 0x0F, 0xE9, 0x7A, 0x4D, 0xA2, 0x4A, 0xFC,
2463 0x27, 0x75, 0x64, 0xF6, 0x6A, 0x35, 0x9E, 0xF4,
2464 0x40, 0x46, 0x2A, 0xD2, 0x8D, 0xCC, 0x6D, 0x63,
2465 0xAD, 0xB2, 0x4D, 0x5C, 0x20, 0xA6, 0x15, 0x95 }
2466 }, {
2467 /* A.1. Example 2 */
2468 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdab"
2469 "cdabcdabcdabcdabcd",
2470 .psize = 64,
2471 .digest = (u8 *)(u8 []) {
2472 0xDE, 0xBE, 0x9F, 0xF9, 0x22, 0x75, 0xB8, 0xA1,
2473 0x38, 0x60, 0x48, 0x89, 0xC1, 0x8E, 0x5A, 0x4D,
2474 0x6F, 0xDB, 0x70, 0xE5, 0x38, 0x7E, 0x57, 0x65,
2475 0x29, 0x3D, 0xCB, 0xA3, 0x9C, 0x0C, 0x57, 0x32 }
2476 }, {
2477 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2478 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2479 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2480 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2481 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2482 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2483 "abcdabcdabcdabcdabcdabcdabcdabcd",
2484 .psize = 256,
2485 .digest = (u8 *)(u8 []) {
2486 0xB9, 0x65, 0x76, 0x4C, 0x8B, 0xEB, 0xB0, 0x91,
2487 0xC7, 0x60, 0x2B, 0x74, 0xAF, 0xD3, 0x4E, 0xEF,
2488 0xB5, 0x31, 0xDC, 0xCB, 0x4E, 0x00, 0x76, 0xD9,
2489 0xB7, 0xCD, 0x81, 0x31, 0x99, 0xB4, 0x59, 0x71 }
2490 }
2491};
2492
Herbert Xuda7f0332008-07-31 17:08:25 +08002493/*
2494 * SHA1 test vectors from from FIPS PUB 180-1
Herbert Xubd1f2992011-02-17 14:24:45 +11002495 * Long vector from CAVS 5.0
Herbert Xuda7f0332008-07-31 17:08:25 +08002496 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08002497static const struct hash_testvec sha1_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08002498 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002499 .plaintext = "",
2500 .psize = 0,
2501 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
2502 "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
2503 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08002504 .plaintext = "abc",
2505 .psize = 3,
2506 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
2507 "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
2508 }, {
2509 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2510 .psize = 56,
2511 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
2512 "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
2513 .np = 2,
2514 .tap = { 28, 28 }
Herbert Xubd1f2992011-02-17 14:24:45 +11002515 }, {
2516 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
2517 "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
2518 "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
2519 "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
2520 "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
2521 "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
2522 "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
2523 "\x72\x28\x26\xc0\x66\x86\x9e\xda"
2524 "\xcd\x73\xb2\x54\x80\x35\x18\x58"
2525 "\x13\xe2\x26\x34\xa9\xda\x44\x00"
2526 "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
2527 "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
2528 "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
2529 "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
2530 "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
2531 "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
2532 "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
2533 "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
2534 "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
2535 "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
2536 "\x5a\x90\x11",
2537 .psize = 163,
2538 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
2539 "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
2540 .np = 4,
2541 .tap = { 63, 64, 31, 5 }
Ard Biesheuvel45859882014-04-16 20:40:04 +08002542 }, {
2543 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2544 .psize = 64,
2545 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
2546 "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002547 }, {
2548 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2549 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2550 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2551 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2552 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2553 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2554 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2555 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2556 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2557 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2558 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2559 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2560 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2561 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2562 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2563 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2564 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2565 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2566 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2567 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2568 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2569 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2570 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2571 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2572 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2573 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2574 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2575 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2576 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2577 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2578 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2579 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2580 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2581 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2582 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2583 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2584 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2585 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2586 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2587 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2588 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2589 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2590 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2591 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2592 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2593 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2594 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2595 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2596 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2597 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2598 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2599 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2600 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2601 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2602 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2603 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2604 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2605 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2606 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2607 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2608 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2609 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2610 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2611 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2612 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2613 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2614 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2615 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2616 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2617 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2618 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2619 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2620 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2621 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2622 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2623 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2624 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2625 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2626 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2627 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2628 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2629 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2630 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2631 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2632 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2633 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2634 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2635 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2636 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2637 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2638 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2639 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2640 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2641 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2642 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2643 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2644 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2645 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2646 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2647 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2648 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2649 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2650 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2651 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2652 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2653 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2654 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2655 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2656 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2657 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2658 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2659 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2660 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2661 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2662 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2663 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2664 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2665 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2666 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2667 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2668 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2669 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2670 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2671 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2672 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2673 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2674 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2675 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2676 .psize = 1023,
2677 .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
2678 "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
2679 "\x30\xd6\xc9\x85",
Herbert Xuda7f0332008-07-31 17:08:25 +08002680 }
2681};
2682
2683
2684/*
2685 * SHA224 test vectors from from FIPS PUB 180-2
2686 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08002687static const struct hash_testvec sha224_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08002688 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002689 .plaintext = "",
2690 .psize = 0,
2691 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
2692 "\x47\x61\x02\xbb\x28\x82\x34\xc4"
2693 "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
2694 "\xc5\xb3\xe4\x2f",
2695 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08002696 .plaintext = "abc",
2697 .psize = 3,
2698 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
2699 "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
2700 "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
2701 "\xE3\x6C\x9D\xA7",
2702 }, {
2703 .plaintext =
2704 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2705 .psize = 56,
2706 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
2707 "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
2708 "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
2709 "\x52\x52\x25\x25",
2710 .np = 2,
2711 .tap = { 28, 28 }
Ard Biesheuvel45859882014-04-16 20:40:04 +08002712 }, {
2713 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2714 .psize = 64,
2715 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
2716 "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
2717 "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
2718 "\xef\x3b\xcb\x0e",
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002719 }, {
2720 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2721 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2722 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2723 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2724 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2725 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2726 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2727 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2728 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2729 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2730 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2731 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2732 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2733 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2734 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2735 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2736 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2737 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2738 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2739 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2740 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2741 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2742 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2743 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2744 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2745 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2746 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2747 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2748 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2749 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2750 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2751 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2752 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2753 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2754 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2755 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2756 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2757 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2758 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2759 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2760 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2761 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2762 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2763 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2764 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2765 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2766 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2767 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2768 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2769 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2770 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2771 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2772 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2773 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2774 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2775 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2776 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2777 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2778 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2779 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2780 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2781 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2782 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2783 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2784 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2785 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2786 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2787 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2788 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2789 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2790 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2791 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2792 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2793 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2794 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2795 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2796 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2797 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2798 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2799 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2800 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2801 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2802 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2803 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2804 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2805 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2806 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2807 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2808 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2809 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2810 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2811 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2812 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2813 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2814 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2815 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2816 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2817 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2818 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2819 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2820 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2821 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2822 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2823 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2824 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2825 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2826 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2827 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2828 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2829 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2830 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2831 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2832 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2833 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2834 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2835 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2836 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2837 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2838 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2839 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2840 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2841 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2842 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2843 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2844 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2845 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2846 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2847 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2848 .psize = 1023,
2849 .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
2850 "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
2851 "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
2852 "\xe6\xf9\x4f\xcc",
Herbert Xuda7f0332008-07-31 17:08:25 +08002853 }
2854};
2855
2856/*
2857 * SHA256 test vectors from from NIST
2858 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08002859static const struct hash_testvec sha256_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08002860 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002861 .plaintext = "",
2862 .psize = 0,
2863 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
2864 "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
2865 "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
2866 "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
2867 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08002868 .plaintext = "abc",
2869 .psize = 3,
2870 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
2871 "\x41\x41\x40\xde\x5d\xae\x22\x23"
2872 "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
2873 "\xb4\x10\xff\x61\xf2\x00\x15\xad",
2874 }, {
2875 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2876 .psize = 56,
2877 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
2878 "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
2879 "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
2880 "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
2881 .np = 2,
2882 .tap = { 28, 28 }
Ard Biesheuvel45859882014-04-16 20:40:04 +08002883 }, {
2884 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2885 .psize = 64,
2886 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
2887 "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
2888 "\xd6\xff\x94\xa3\x72\x91\x85\x66"
2889 "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002890 }, {
2891 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2892 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2893 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2894 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2895 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2896 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2897 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2898 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2899 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2900 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2901 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2902 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2903 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2904 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2905 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2906 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2907 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2908 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2909 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2910 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2911 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2912 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2913 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2914 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2915 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2916 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2917 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2918 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2919 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2920 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2921 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2922 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2923 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2924 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2925 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2926 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2927 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2928 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2929 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2930 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2931 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2932 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2933 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2934 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2935 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2936 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2937 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2938 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2939 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2940 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2941 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2942 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2943 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2944 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2945 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2946 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2947 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2948 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2949 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2950 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2951 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2952 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2953 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2954 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2955 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2956 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2957 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2958 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2959 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2960 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2961 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2962 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2963 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2964 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2965 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2966 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2967 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2968 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2969 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2970 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2971 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2972 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2973 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2974 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2975 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2976 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2977 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2978 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2979 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2980 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2981 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2982 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2983 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2984 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2985 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2986 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2987 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2988 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2989 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2990 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2991 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2992 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2993 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2994 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2995 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2996 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2997 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2998 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2999 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3000 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3001 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3002 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3003 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3004 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3005 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3006 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3007 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3008 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3009 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3010 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3011 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3012 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3013 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3014 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3015 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3016 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3017 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3018 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3019 .psize = 1023,
3020 .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
3021 "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
3022 "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
3023 "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
Ard Biesheuvel45859882014-04-16 20:40:04 +08003024 }
Herbert Xuda7f0332008-07-31 17:08:25 +08003025};
3026
3027/*
3028 * SHA384 test vectors from from NIST and kerneli
3029 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003030static const struct hash_testvec sha384_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003031 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003032 .plaintext = "",
3033 .psize = 0,
3034 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
3035 "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
3036 "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
3037 "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
3038 "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
3039 "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
3040 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08003041 .plaintext= "abc",
3042 .psize = 3,
3043 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
3044 "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
3045 "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
3046 "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
3047 "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
3048 "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
3049 }, {
3050 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3051 .psize = 56,
3052 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
3053 "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
3054 "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
3055 "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
3056 "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
3057 "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
3058 }, {
3059 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
3060 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
3061 .psize = 112,
3062 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
3063 "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
3064 "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
3065 "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
3066 "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
3067 "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
3068 }, {
3069 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
3070 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
3071 .psize = 104,
3072 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
3073 "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
3074 "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
3075 "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
3076 "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
3077 "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
3078 .np = 4,
3079 .tap = { 26, 26, 26, 26 }
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003080 }, {
3081 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
3082 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
3083 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
3084 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
3085 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
3086 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
3087 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
3088 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
3089 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
3090 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
3091 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
3092 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
3093 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
3094 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
3095 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
3096 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
3097 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
3098 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
3099 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
3100 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
3101 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
3102 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
3103 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
3104 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
3105 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
3106 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
3107 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
3108 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
3109 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
3110 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
3111 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
3112 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
3113 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
3114 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
3115 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
3116 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
3117 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
3118 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
3119 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
3120 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
3121 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
3122 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
3123 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
3124 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
3125 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
3126 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
3127 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
3128 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
3129 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
3130 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
3131 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
3132 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
3133 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
3134 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
3135 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
3136 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
3137 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
3138 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
3139 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
3140 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
3141 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
3142 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
3143 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
3144 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
3145 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
3146 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
3147 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
3148 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
3149 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
3150 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
3151 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
3152 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
3153 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
3154 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
3155 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
3156 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
3157 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
3158 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
3159 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
3160 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
3161 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
3162 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
3163 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
3164 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
3165 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
3166 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
3167 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
3168 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
3169 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
3170 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
3171 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
3172 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3173 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3174 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3175 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3176 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3177 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3178 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3179 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3180 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3181 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3182 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3183 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3184 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3185 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3186 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3187 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3188 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3189 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3190 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3191 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3192 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3193 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3194 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3195 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3196 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3197 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3198 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3199 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3200 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3201 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3202 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3203 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3204 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3205 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3206 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3207 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3208 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3209 .psize = 1023,
3210 .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
3211 "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
3212 "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
3213 "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
3214 "\x75\x29\x62\x83\xae\x3f\x17\xab"
3215 "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
3216 }
Herbert Xuda7f0332008-07-31 17:08:25 +08003217};
3218
3219/*
3220 * SHA512 test vectors from from NIST and kerneli
3221 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003222static const struct hash_testvec sha512_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003223 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003224 .plaintext = "",
3225 .psize = 0,
3226 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
3227 "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
3228 "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
3229 "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
3230 "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
3231 "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
3232 "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
3233 "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
3234 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08003235 .plaintext = "abc",
3236 .psize = 3,
3237 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
3238 "\xcc\x41\x73\x49\xae\x20\x41\x31"
3239 "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
3240 "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
3241 "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
3242 "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
3243 "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
3244 "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
3245 }, {
3246 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3247 .psize = 56,
3248 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
3249 "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
3250 "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
3251 "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
3252 "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
3253 "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
3254 "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
3255 "\x54\xec\x63\x12\x38\xca\x34\x45",
3256 }, {
3257 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
3258 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
3259 .psize = 112,
3260 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
3261 "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
3262 "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
3263 "\x72\x99\xae\xad\xb6\x88\x90\x18"
3264 "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
3265 "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
3266 "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
3267 "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
3268 }, {
3269 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
3270 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
3271 .psize = 104,
3272 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
3273 "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
3274 "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
3275 "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
3276 "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
3277 "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
3278 "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
3279 "\xed\xb4\x19\x87\x23\x28\x50\xc9",
3280 .np = 4,
3281 .tap = { 26, 26, 26, 26 }
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003282 }, {
3283 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
3284 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
3285 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
3286 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
3287 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
3288 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
3289 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
3290 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
3291 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
3292 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
3293 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
3294 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
3295 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
3296 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
3297 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
3298 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
3299 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
3300 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
3301 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
3302 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
3303 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
3304 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
3305 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
3306 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
3307 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
3308 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
3309 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
3310 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
3311 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
3312 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
3313 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
3314 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
3315 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
3316 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
3317 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
3318 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
3319 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
3320 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
3321 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
3322 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
3323 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
3324 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
3325 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
3326 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
3327 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
3328 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
3329 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
3330 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
3331 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
3332 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
3333 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
3334 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
3335 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
3336 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
3337 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
3338 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
3339 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
3340 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
3341 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
3342 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
3343 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
3344 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
3345 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
3346 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
3347 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
3348 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
3349 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
3350 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
3351 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
3352 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
3353 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
3354 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
3355 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
3356 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
3357 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
3358 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
3359 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
3360 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
3361 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
3362 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
3363 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
3364 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
3365 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
3366 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
3367 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
3368 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
3369 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
3370 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
3371 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
3372 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
3373 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
3374 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3375 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3376 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3377 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3378 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3379 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3380 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3381 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3382 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3383 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3384 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3385 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3386 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3387 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3388 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3389 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3390 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3391 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3392 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3393 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3394 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3395 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3396 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3397 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3398 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3399 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3400 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3401 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3402 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3403 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3404 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3405 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3406 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3407 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3408 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3409 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3410 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3411 .psize = 1023,
3412 .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
3413 "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
3414 "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
3415 "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
3416 "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
3417 "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
3418 "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
3419 "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
3420 }
Herbert Xuda7f0332008-07-31 17:08:25 +08003421};
3422
3423
3424/*
3425 * WHIRLPOOL test vectors from Whirlpool package
3426 * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
3427 * submission
3428 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003429static const struct hash_testvec wp512_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003430 {
3431 .plaintext = "",
3432 .psize = 0,
3433 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3434 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3435 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3436 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
3437 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
3438 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
3439 "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
3440 "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
3441
3442
3443 }, {
3444 .plaintext = "a",
3445 .psize = 1,
3446 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3447 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3448 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3449 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
3450 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
3451 "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
3452 "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
3453 "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
3454 }, {
3455 .plaintext = "abc",
3456 .psize = 3,
3457 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3458 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3459 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3460 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
3461 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
3462 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
3463 "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
3464 "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
3465 }, {
3466 .plaintext = "message digest",
3467 .psize = 14,
3468 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3469 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3470 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3471 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
3472 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
3473 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
3474 "\x92\xED\x92\x00\x52\x83\x8F\x33"
3475 "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
3476 }, {
3477 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3478 .psize = 26,
3479 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3480 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3481 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3482 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
3483 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
3484 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
3485 "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
3486 "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
3487 }, {
3488 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3489 "abcdefghijklmnopqrstuvwxyz0123456789",
3490 .psize = 62,
3491 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3492 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3493 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3494 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
3495 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
3496 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
3497 "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
3498 "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
3499 }, {
3500 .plaintext = "1234567890123456789012345678901234567890"
3501 "1234567890123456789012345678901234567890",
3502 .psize = 80,
3503 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3504 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3505 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3506 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
3507 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
3508 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
3509 "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
3510 "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
3511 }, {
3512 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3513 .psize = 32,
3514 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3515 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3516 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3517 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
3518 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
3519 "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
3520 "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
3521 "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
3522 },
3523};
3524
Eric Biggersb13b1e02017-02-24 15:46:59 -08003525static const struct hash_testvec wp384_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003526 {
3527 .plaintext = "",
3528 .psize = 0,
3529 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3530 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3531 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3532 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
3533 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
3534 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
3535
3536
3537 }, {
3538 .plaintext = "a",
3539 .psize = 1,
3540 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3541 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3542 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3543 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
3544 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
3545 "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
3546 }, {
3547 .plaintext = "abc",
3548 .psize = 3,
3549 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3550 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3551 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3552 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
3553 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
3554 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
3555 }, {
3556 .plaintext = "message digest",
3557 .psize = 14,
3558 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3559 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3560 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3561 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
3562 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
3563 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
3564 }, {
3565 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3566 .psize = 26,
3567 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3568 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3569 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3570 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
3571 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
3572 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
3573 }, {
3574 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3575 "abcdefghijklmnopqrstuvwxyz0123456789",
3576 .psize = 62,
3577 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3578 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3579 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3580 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
3581 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
3582 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
3583 }, {
3584 .plaintext = "1234567890123456789012345678901234567890"
3585 "1234567890123456789012345678901234567890",
3586 .psize = 80,
3587 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3588 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3589 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3590 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
3591 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
3592 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
3593 }, {
3594 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3595 .psize = 32,
3596 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3597 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3598 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3599 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
3600 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
3601 "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
3602 },
3603};
3604
Eric Biggersb13b1e02017-02-24 15:46:59 -08003605static const struct hash_testvec wp256_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003606 {
3607 .plaintext = "",
3608 .psize = 0,
3609 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3610 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3611 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3612 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
3613
3614
3615 }, {
3616 .plaintext = "a",
3617 .psize = 1,
3618 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3619 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3620 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3621 "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
3622 }, {
3623 .plaintext = "abc",
3624 .psize = 3,
3625 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3626 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3627 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3628 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
3629 }, {
3630 .plaintext = "message digest",
3631 .psize = 14,
3632 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3633 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3634 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3635 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
3636 }, {
3637 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3638 .psize = 26,
3639 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3640 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3641 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3642 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
3643 }, {
3644 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3645 "abcdefghijklmnopqrstuvwxyz0123456789",
3646 .psize = 62,
3647 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3648 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3649 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3650 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
3651 }, {
3652 .plaintext = "1234567890123456789012345678901234567890"
3653 "1234567890123456789012345678901234567890",
3654 .psize = 80,
3655 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3656 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3657 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3658 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
3659 }, {
3660 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3661 .psize = 32,
3662 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3663 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3664 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3665 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
3666 },
3667};
3668
3669/*
3670 * TIGER test vectors from Tiger website
3671 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003672static const struct hash_testvec tgr192_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003673 {
3674 .plaintext = "",
3675 .psize = 0,
3676 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3677 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
3678 "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
3679 }, {
3680 .plaintext = "abc",
3681 .psize = 3,
3682 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3683 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
3684 "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
3685 }, {
3686 .plaintext = "Tiger",
3687 .psize = 5,
3688 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3689 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
3690 "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
3691 }, {
3692 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3693 .psize = 64,
3694 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3695 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
3696 "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
3697 }, {
3698 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3699 .psize = 64,
3700 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3701 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
3702 "\x57\x89\x65\x65\x97\x5f\x91\x97",
3703 }, {
3704 .plaintext = "Tiger - A Fast New Hash Function, "
3705 "by Ross Anderson and Eli Biham, "
3706 "proceedings of Fast Software Encryption 3, "
3707 "Cambridge, 1996.",
3708 .psize = 125,
3709 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3710 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
3711 "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
3712 },
3713};
3714
Eric Biggersb13b1e02017-02-24 15:46:59 -08003715static const struct hash_testvec tgr160_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003716 {
3717 .plaintext = "",
3718 .psize = 0,
3719 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3720 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
3721 "\xf3\x73\xde\x2d",
3722 }, {
3723 .plaintext = "abc",
3724 .psize = 3,
3725 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3726 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
3727 "\x93\x5f\x7b\x95",
3728 }, {
3729 .plaintext = "Tiger",
3730 .psize = 5,
3731 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3732 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
3733 "\x37\x79\x0c\x11",
3734 }, {
3735 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3736 .psize = 64,
3737 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3738 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
3739 "\xb5\x86\x44\x50",
3740 }, {
3741 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3742 .psize = 64,
3743 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3744 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
3745 "\x57\x89\x65\x65",
3746 }, {
3747 .plaintext = "Tiger - A Fast New Hash Function, "
3748 "by Ross Anderson and Eli Biham, "
3749 "proceedings of Fast Software Encryption 3, "
3750 "Cambridge, 1996.",
3751 .psize = 125,
3752 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3753 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
3754 "\xdd\x68\x15\x1d",
3755 },
3756};
3757
Eric Biggersb13b1e02017-02-24 15:46:59 -08003758static const struct hash_testvec tgr128_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003759 {
3760 .plaintext = "",
3761 .psize = 0,
3762 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3763 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
3764 }, {
3765 .plaintext = "abc",
3766 .psize = 3,
3767 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3768 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
3769 }, {
3770 .plaintext = "Tiger",
3771 .psize = 5,
3772 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3773 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
3774 }, {
3775 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3776 .psize = 64,
3777 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3778 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
3779 }, {
3780 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3781 .psize = 64,
3782 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3783 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
3784 }, {
3785 .plaintext = "Tiger - A Fast New Hash Function, "
3786 "by Ross Anderson and Eli Biham, "
3787 "proceedings of Fast Software Encryption 3, "
3788 "Cambridge, 1996.",
3789 .psize = 125,
3790 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3791 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
3792 },
3793};
3794
Eric Biggersb13b1e02017-02-24 15:46:59 -08003795static const struct hash_testvec ghash_tv_template[] =
Youquan, Song507069c2009-11-23 20:23:04 +08003796{
3797 {
Ard Biesheuvel6c9e3dc2014-06-12 17:01:50 +02003798 .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
3799 "\xff\xca\xff\x95\xf8\x30\xf0\x61",
Youquan, Song507069c2009-11-23 20:23:04 +08003800 .ksize = 16,
Ard Biesheuvel6c9e3dc2014-06-12 17:01:50 +02003801 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
3802 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
Youquan, Song507069c2009-11-23 20:23:04 +08003803 .psize = 16,
3804 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
3805 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
Ard Biesheuvel6c9e3dc2014-06-12 17:01:50 +02003806 }, {
3807 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3808 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3809 .ksize = 16,
3810 .plaintext = "what do ya want for nothing?",
3811 .psize = 28,
3812 .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
3813 "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
3814 .np = 2,
3815 .tap = {14, 14}
3816 }, {
3817 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3818 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3819 .ksize = 16,
3820 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3821 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3822 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3823 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3824 .psize = 50,
3825 .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
3826 "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
3827 }, {
3828 .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
3829 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
3830 .ksize = 16,
3831 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3832 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3833 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3834 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3835 .psize = 50,
3836 .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
3837 "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
3838 }, {
3839 .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
3840 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
3841 .ksize = 16,
3842 .plaintext = "Test With Truncation",
3843 .psize = 20,
3844 .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
3845 "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
Harald Freudenberger445a8e02015-05-21 17:34:31 +02003846 }, {
3847 .key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
3848 "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
3849 .ksize = 16,
3850 .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
3851 "\x65\x72\x20\x4c\x61\x75\x73\x63"
3852 "\x68\x65\x6e\x20\x75\x6e\x64\x20"
3853 "\x53\x74\x61\x75\x6e\x65\x6e\x20"
3854 "\x73\x65\x69\x20\x73\x74\x69\x6c"
3855 "\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
3856 "\x69\x6e\x20\x74\x69\x65\x66\x74"
3857 "\x69\x65\x66\x65\x73\x20\x4c\x65"
3858 "\x62\x65\x6e\x3b\x0a\x64\x61\x73"
3859 "\x73\x20\x64\x75\x20\x77\x65\x69"
3860 "\xc3\x9f\x74\x20\x77\x61\x73\x20"
3861 "\x64\x65\x72\x20\x57\x69\x6e\x64"
3862 "\x20\x64\x69\x72\x20\x77\x69\x6c"
3863 "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
3864 "\x63\x68\x20\x64\x69\x65\x20\x42"
3865 "\x69\x72\x6b\x65\x6e\x20\x62\x65"
3866 "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
3867 "\x64\x20\x77\x65\x6e\x6e\x20\x64"
3868 "\x69\x72\x20\x65\x69\x6e\x6d\x61"
3869 "\x6c\x20\x64\x61\x73\x20\x53\x63"
3870 "\x68\x77\x65\x69\x67\x65\x6e\x20"
3871 "\x73\x70\x72\x61\x63\x68\x2c\x0a"
3872 "\x6c\x61\x73\x73\x20\x64\x65\x69"
3873 "\x6e\x65\x20\x53\x69\x6e\x6e\x65"
3874 "\x20\x62\x65\x73\x69\x65\x67\x65"
3875 "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
3876 "\x20\x48\x61\x75\x63\x68\x65\x20"
3877 "\x67\x69\x62\x74\x20\x64\x69\x63"
3878 "\x68\x2c\x20\x67\x69\x62\x20\x6e"
3879 "\x61\x63\x68\x2c\x0a\x65\x72\x20"
3880 "\x77\x69\x72\x64\x20\x64\x69\x63"
3881 "\x68\x20\x6c\x69\x65\x62\x65\x6e"
3882 "\x20\x75\x6e\x64\x20\x77\x69\x65"
3883 "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
3884 "\x64\x20\x64\x61\x6e\x6e\x20\x6d"
3885 "\x65\x69\x6e\x65\x20\x53\x65\x65"
3886 "\x6c\x65\x20\x73\x65\x69\x74\x20"
3887 "\x77\x65\x69\x74\x2c\x20\x73\x65"
3888 "\x69\x20\x77\x65\x69\x74\x2c\x0a"
3889 "\x64\x61\x73\x73\x20\x64\x69\x72"
3890 "\x20\x64\x61\x73\x20\x4c\x65\x62"
3891 "\x65\x6e\x20\x67\x65\x6c\x69\x6e"
3892 "\x67\x65\x2c\x0a\x62\x72\x65\x69"
3893 "\x74\x65\x20\x64\x69\x63\x68\x20"
3894 "\x77\x69\x65\x20\x65\x69\x6e\x20"
3895 "\x46\x65\x69\x65\x72\x6b\x6c\x65"
3896 "\x69\x64\x0a\xc3\xbc\x62\x65\x72"
3897 "\x20\x64\x69\x65\x20\x73\x69\x6e"
3898 "\x6e\x65\x6e\x64\x65\x6e\x20\x44"
3899 "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
3900 .psize = 400,
3901 .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
3902 "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
Youquan, Song507069c2009-11-23 20:23:04 +08003903 },
3904};
3905
Herbert Xuda7f0332008-07-31 17:08:25 +08003906/*
3907 * HMAC-MD5 test vectors from RFC2202
3908 * (These need to be fixed to not use strlen).
3909 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003910static const struct hash_testvec hmac_md5_tv_template[] =
Herbert Xuda7f0332008-07-31 17:08:25 +08003911{
3912 {
3913 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3914 .ksize = 16,
3915 .plaintext = "Hi There",
3916 .psize = 8,
3917 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
3918 "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
3919 }, {
3920 .key = "Jefe",
3921 .ksize = 4,
3922 .plaintext = "what do ya want for nothing?",
3923 .psize = 28,
3924 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
3925 "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
3926 .np = 2,
3927 .tap = {14, 14}
3928 }, {
3929 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3930 .ksize = 16,
3931 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3932 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3933 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
3934 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
3935 .psize = 50,
3936 .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
3937 "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
3938 }, {
3939 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
3940 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
3941 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
3942 .ksize = 25,
3943 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3944 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3945 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
3946 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
3947 .psize = 50,
3948 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
3949 "\x3a\x75\x16\x47\x46\xff\xaa\x79",
3950 }, {
3951 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
3952 .ksize = 16,
3953 .plaintext = "Test With Truncation",
3954 .psize = 20,
3955 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
3956 "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
3957 }, {
3958 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3959 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3960 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3961 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3962 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3963 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3964 "\xaa\xaa",
3965 .ksize = 80,
3966 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
3967 .psize = 54,
3968 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
3969 "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
3970 }, {
3971 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3972 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3973 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3974 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3975 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3976 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3977 "\xaa\xaa",
3978 .ksize = 80,
3979 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
3980 "Block-Size Data",
3981 .psize = 73,
3982 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
3983 "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
3984 },
3985};
3986
3987/*
3988 * HMAC-RIPEMD128 test vectors from RFC2286
3989 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003990static const struct hash_testvec hmac_rmd128_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003991 {
3992 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3993 .ksize = 16,
3994 .plaintext = "Hi There",
3995 .psize = 8,
3996 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
3997 "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
3998 }, {
3999 .key = "Jefe",
4000 .ksize = 4,
4001 .plaintext = "what do ya want for nothing?",
4002 .psize = 28,
4003 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
4004 "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
4005 .np = 2,
4006 .tap = { 14, 14 },
4007 }, {
4008 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4009 .ksize = 16,
4010 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4011 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4012 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4013 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4014 .psize = 50,
4015 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
4016 "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
4017 }, {
4018 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4019 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4020 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
4021 .ksize = 25,
4022 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4023 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4024 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4025 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4026 .psize = 50,
4027 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
4028 "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
4029 }, {
4030 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
4031 .ksize = 16,
4032 .plaintext = "Test With Truncation",
4033 .psize = 20,
4034 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
4035 "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
4036 }, {
4037 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4038 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4039 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4040 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4041 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4042 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4043 "\xaa\xaa",
4044 .ksize = 80,
4045 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4046 .psize = 54,
4047 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
4048 "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
4049 }, {
4050 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4051 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4052 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4053 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4054 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4055 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4056 "\xaa\xaa",
4057 .ksize = 80,
4058 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4059 "Block-Size Data",
4060 .psize = 73,
4061 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
4062 "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
4063 },
4064};
4065
4066/*
4067 * HMAC-RIPEMD160 test vectors from RFC2286
4068 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004069static const struct hash_testvec hmac_rmd160_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004070 {
4071 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
4072 .ksize = 20,
4073 .plaintext = "Hi There",
4074 .psize = 8,
4075 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
4076 "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
4077 }, {
4078 .key = "Jefe",
4079 .ksize = 4,
4080 .plaintext = "what do ya want for nothing?",
4081 .psize = 28,
4082 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
4083 "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
4084 .np = 2,
4085 .tap = { 14, 14 },
4086 }, {
4087 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4088 .ksize = 20,
4089 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4090 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4091 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4092 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4093 .psize = 50,
4094 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
4095 "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
4096 }, {
4097 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4098 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4099 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
4100 .ksize = 25,
4101 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4102 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4103 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4104 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4105 .psize = 50,
4106 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
4107 "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
4108 }, {
4109 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
4110 .ksize = 20,
4111 .plaintext = "Test With Truncation",
4112 .psize = 20,
4113 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
4114 "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
4115 }, {
4116 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4117 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4118 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4119 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4120 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4121 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4122 "\xaa\xaa",
4123 .ksize = 80,
4124 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4125 .psize = 54,
4126 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
4127 "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
4128 }, {
4129 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4130 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4131 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4132 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4133 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4134 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4135 "\xaa\xaa",
4136 .ksize = 80,
4137 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4138 "Block-Size Data",
4139 .psize = 73,
4140 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
4141 "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
4142 },
4143};
4144
4145/*
4146 * HMAC-SHA1 test vectors from RFC2202
4147 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004148static const struct hash_testvec hmac_sha1_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004149 {
4150 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
4151 .ksize = 20,
4152 .plaintext = "Hi There",
4153 .psize = 8,
4154 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
4155 "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
4156 "\x46\xbe",
4157 }, {
4158 .key = "Jefe",
4159 .ksize = 4,
4160 .plaintext = "what do ya want for nothing?",
4161 .psize = 28,
4162 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
4163 "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
4164 .np = 2,
4165 .tap = { 14, 14 }
4166 }, {
4167 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4168 .ksize = 20,
4169 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4170 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4171 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4172 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4173 .psize = 50,
4174 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
4175 "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
4176 }, {
4177 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4178 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4179 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
4180 .ksize = 25,
4181 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4182 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4183 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4184 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4185 .psize = 50,
4186 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
4187 "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
4188 }, {
4189 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
4190 .ksize = 20,
4191 .plaintext = "Test With Truncation",
4192 .psize = 20,
4193 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
4194 "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
4195 }, {
4196 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4197 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4198 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4199 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4200 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4201 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4202 "\xaa\xaa",
4203 .ksize = 80,
4204 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4205 .psize = 54,
4206 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
4207 "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
4208 }, {
4209 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4210 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4211 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4212 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4213 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4214 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4215 "\xaa\xaa",
4216 .ksize = 80,
4217 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4218 "Block-Size Data",
4219 .psize = 73,
4220 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
4221 "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
4222 },
4223};
4224
4225
4226/*
4227 * SHA224 HMAC test vectors from RFC4231
4228 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004229static const struct hash_testvec hmac_sha224_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004230 {
4231 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4232 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4233 "\x0b\x0b\x0b\x0b",
4234 .ksize = 20,
4235 /* ("Hi There") */
4236 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
4237 .psize = 8,
4238 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
4239 "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
4240 "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
4241 "\x53\x68\x4b\x22",
4242 }, {
4243 .key = "Jefe",
4244 .ksize = 4,
4245 /* ("what do ya want for nothing?") */
4246 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
4247 "\x79\x61\x20\x77\x61\x6e\x74\x20"
4248 "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
4249 "\x69\x6e\x67\x3f",
4250 .psize = 28,
4251 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
4252 "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
4253 "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
4254 "\x8f\xd0\x5e\x44",
4255 .np = 4,
4256 .tap = { 7, 7, 7, 7 }
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 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
4277 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
4278 "\x6e\x67\x20\x4c\x61\x72\x67\x65"
4279 "\x72\x20\x54\x68\x61\x6e\x20\x42"
4280 "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
4281 "\x65\x20\x4b\x65\x79\x20\x2d\x20"
4282 "\x48\x61\x73\x68\x20\x4b\x65\x79"
4283 "\x20\x46\x69\x72\x73\x74",
4284 .psize = 54,
4285 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
4286 "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
4287 "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
4288 "\x3f\xa6\x87\x0e",
4289 }, {
4290 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4291 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4292 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4293 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4294 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4295 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4296 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4297 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4298 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4299 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4300 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4301 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4302 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4303 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4304 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4305 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4306 "\xaa\xaa\xaa",
4307 .ksize = 131,
4308 /* ("This is a test using a larger than block-size key and a")
4309 (" larger than block-size data. The key needs to be")
4310 (" hashed before being used by the HMAC algorithm.") */
4311 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
4312 "\x61\x20\x74\x65\x73\x74\x20\x75"
4313 "\x73\x69\x6e\x67\x20\x61\x20\x6c"
4314 "\x61\x72\x67\x65\x72\x20\x74\x68"
4315 "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
4316 "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
4317 "\x79\x20\x61\x6e\x64\x20\x61\x20"
4318 "\x6c\x61\x72\x67\x65\x72\x20\x74"
4319 "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
4320 "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
4321 "\x61\x74\x61\x2e\x20\x54\x68\x65"
4322 "\x20\x6b\x65\x79\x20\x6e\x65\x65"
4323 "\x64\x73\x20\x74\x6f\x20\x62\x65"
4324 "\x20\x68\x61\x73\x68\x65\x64\x20"
4325 "\x62\x65\x66\x6f\x72\x65\x20\x62"
4326 "\x65\x69\x6e\x67\x20\x75\x73\x65"
4327 "\x64\x20\x62\x79\x20\x74\x68\x65"
4328 "\x20\x48\x4d\x41\x43\x20\x61\x6c"
4329 "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
4330 .psize = 152,
4331 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
4332 "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
4333 "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
4334 "\xf6\xf5\x65\xd1",
4335 },
4336};
4337
4338/*
4339 * HMAC-SHA256 test vectors from
4340 * draft-ietf-ipsec-ciph-sha-256-01.txt
4341 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004342static const struct hash_testvec hmac_sha256_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004343 {
4344 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4345 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4346 "\x11\x12\x13\x14\x15\x16\x17\x18"
4347 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4348 .ksize = 32,
4349 .plaintext = "abc",
4350 .psize = 3,
4351 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
4352 "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
4353 "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
4354 "\x92\x75\x90\x21\xcf\xab\x81\x81",
4355 }, {
4356 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4357 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4358 "\x11\x12\x13\x14\x15\x16\x17\x18"
4359 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4360 .ksize = 32,
4361 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
4362 .psize = 56,
4363 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
4364 "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
4365 "\xe6\x98\xe3\x61\x19\x42\x11\x49"
4366 "\xea\x8c\x71\x24\x56\x69\x7d\x30",
4367 }, {
4368 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4369 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4370 "\x11\x12\x13\x14\x15\x16\x17\x18"
4371 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4372 .ksize = 32,
4373 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
4374 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
4375 .psize = 112,
4376 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
4377 "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
4378 "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
4379 "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
4380 }, {
4381 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4382 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4383 "\x0b\x0b\x0b\x0b\x0b\x0b",
4384 .ksize = 32,
4385 .plaintext = "Hi There",
4386 .psize = 8,
4387 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
4388 "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
4389 "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
4390 "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
4391 }, {
4392 .key = "Jefe",
4393 .ksize = 4,
4394 .plaintext = "what do ya want for nothing?",
4395 .psize = 28,
4396 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
4397 "\x6a\x04\x24\x26\x08\x95\x75\xc7"
4398 "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
4399 "\x9d\xec\x58\xb9\x64\xec\x38\x43",
4400 .np = 2,
4401 .tap = { 14, 14 }
4402 }, {
4403 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4404 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4405 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4406 .ksize = 32,
4407 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4408 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4409 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4410 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4411 .psize = 50,
4412 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
4413 "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
4414 "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
4415 "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
4416 }, {
4417 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4418 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4419 "\x11\x12\x13\x14\x15\x16\x17\x18"
4420 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
4421 "\x21\x22\x23\x24\x25",
4422 .ksize = 37,
4423 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4424 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4425 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4426 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4427 .psize = 50,
4428 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
4429 "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
4430 "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
4431 "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
4432 }, {
4433 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
4434 "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
4435 "\x0c\x0c\x0c\x0c\x0c\x0c",
4436 .ksize = 32,
4437 .plaintext = "Test With Truncation",
4438 .psize = 20,
4439 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
4440 "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
4441 "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
4442 "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
4443 }, {
4444 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4445 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4446 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4447 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4448 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4449 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4450 "\xaa\xaa",
4451 .ksize = 80,
4452 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4453 .psize = 54,
4454 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
4455 "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
4456 "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
4457 "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
4458 }, {
4459 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4460 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4461 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4462 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4463 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4464 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4465 "\xaa\xaa",
4466 .ksize = 80,
4467 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
4468 "One Block-Size Data",
4469 .psize = 73,
4470 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
4471 "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
4472 "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
4473 "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
4474 },
4475};
4476
Eric Biggersb13b1e02017-02-24 15:46:59 -08004477static const struct hash_testvec aes_cmac128_tv_template[] = {
Jussi Kivilinna93b5e862013-04-08 10:48:44 +03004478 { /* From NIST Special Publication 800-38B, AES-128 */
4479 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4480 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4481 .plaintext = zeroed_string,
4482 .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
4483 "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
4484 .psize = 0,
4485 .ksize = 16,
4486 }, {
4487 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4488 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4489 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4490 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
4491 .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
4492 "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
4493 .psize = 16,
4494 .ksize = 16,
4495 }, {
4496 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4497 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4498 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4499 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4500 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4501 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4502 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
4503 .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
4504 "\x30\xca\x32\x61\x14\x97\xc8\x27",
4505 .psize = 40,
4506 .ksize = 16,
4507 }, {
4508 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4509 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4510 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4511 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4512 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4513 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4514 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4515 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4516 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4517 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
4518 .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
4519 "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
4520 .psize = 64,
4521 .ksize = 16,
4522 }, { /* From NIST Special Publication 800-38B, AES-256 */
4523 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4524 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4525 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4526 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4527 .plaintext = zeroed_string,
4528 .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
4529 "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
4530 .psize = 0,
4531 .ksize = 32,
4532 }, {
4533 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4534 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4535 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4536 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4537 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4538 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4539 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4540 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4541 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4542 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4543 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4544 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
4545 .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
4546 "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
4547 .psize = 64,
4548 .ksize = 32,
4549 }
4550};
4551
Eric Biggersb13b1e02017-02-24 15:46:59 -08004552static const struct hash_testvec aes_cbcmac_tv_template[] = {
Ard Biesheuvel092acf02017-02-03 14:49:35 +00004553 {
4554 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4555 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4556 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4557 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
4558 .digest = "\x3a\xd7\x7b\xb4\x0d\x7a\x36\x60"
4559 "\xa8\x9e\xca\xf3\x24\x66\xef\x97",
4560 .psize = 16,
4561 .ksize = 16,
4562 }, {
4563 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4564 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4565 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4566 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4567 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4568 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4569 "\x30",
4570 .digest = "\x9d\x0d\xd0\x63\xfb\xcb\x24\x43"
4571 "\xf8\xf2\x76\x03\xac\x39\xb0\x9d",
4572 .psize = 33,
4573 .ksize = 16,
4574 .np = 2,
4575 .tap = { 7, 26 },
4576 }, {
4577 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4578 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4579 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4580 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4581 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4582 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4583 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4584 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4585 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4586 "\xad\x2b\x41\x7b\xe6\x6c\x37",
4587 .digest = "\xc0\x71\x73\xb8\xa0\x2c\x11\x7c"
4588 "\xaf\xdc\xb2\xf8\x89\x32\xa3\x3a",
4589 .psize = 63,
4590 .ksize = 16,
4591 }, {
4592 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4593 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4594 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4595 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4596 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4597 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4598 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4599 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4600 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4601 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4602 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4603 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10"
4604 "\x1c",
4605 .digest = "\x6a\x4e\xdb\x21\x47\x51\xdf\x4f"
4606 "\xa8\x4d\x4c\x10\x3b\x72\x7d\xd6",
4607 .psize = 65,
4608 .ksize = 32,
4609 }
4610};
4611
Eric Biggersb13b1e02017-02-24 15:46:59 -08004612static const struct hash_testvec des3_ede_cmac64_tv_template[] = {
Jussi Kivilinna93b5e862013-04-08 10:48:44 +03004613/*
4614 * From NIST Special Publication 800-38B, Three Key TDEA
4615 * Corrected test vectors from:
4616 * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
4617 */
4618 {
4619 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4620 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4621 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4622 .plaintext = zeroed_string,
4623 .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
4624 .psize = 0,
4625 .ksize = 24,
4626 }, {
4627 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4628 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4629 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4630 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
4631 .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
4632 .psize = 8,
4633 .ksize = 24,
4634 }, {
4635 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4636 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4637 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4638 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4639 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4640 "\xae\x2d\x8a\x57",
4641 .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
4642 .psize = 20,
4643 .ksize = 24,
4644 }, {
4645 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4646 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4647 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4648 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4649 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4650 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4651 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
4652 .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
4653 .psize = 32,
4654 .ksize = 24,
4655 }
4656};
4657
Eric Biggersb13b1e02017-02-24 15:46:59 -08004658static const struct hash_testvec aes_xcbc128_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004659 {
4660 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4661 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4662 .plaintext = zeroed_string,
4663 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
4664 "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
4665 .psize = 0,
4666 .ksize = 16,
4667 }, {
4668 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4669 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4670 .plaintext = "\x00\x01\x02",
4671 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
4672 "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
4673 .psize = 3,
4674 .ksize = 16,
4675 } , {
4676 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4677 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4678 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4679 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4680 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
4681 "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
4682 .psize = 16,
4683 .ksize = 16,
4684 }, {
4685 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4686 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4687 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4688 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4689 "\x10\x11\x12\x13",
4690 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
4691 "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
4692 .tap = { 10, 10 },
4693 .psize = 20,
4694 .np = 2,
4695 .ksize = 16,
4696 }, {
4697 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4698 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4699 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4700 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4701 "\x10\x11\x12\x13\x14\x15\x16\x17"
4702 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
4703 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
4704 "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
4705 .psize = 32,
4706 .ksize = 16,
4707 }, {
4708 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4709 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4710 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4711 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4712 "\x10\x11\x12\x13\x14\x15\x16\x17"
4713 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
4714 "\x20\x21",
4715 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
4716 "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
4717 .tap = { 17, 17 },
4718 .psize = 34,
4719 .np = 2,
4720 .ksize = 16,
4721 }
4722};
4723
Eric Biggersed331ad2018-06-18 10:22:39 -07004724static const char vmac64_string1[144] = {
4725 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4726 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4727 '\x01', '\x01', '\x01', '\x01', '\x02', '\x03', '\x02', '\x02',
4728 '\x02', '\x04', '\x01', '\x07', '\x04', '\x01', '\x04', '\x03',
4729};
4730
4731static const char vmac64_string2[144] = {
4732 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4733 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4734 'a', 'b', 'c',
4735};
4736
4737static const char vmac64_string3[144] = {
4738 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4739 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4740 'a', 'b', 'c', 'a', 'b', 'c', 'a', 'b',
4741 'c', 'a', 'b', 'c', 'a', 'b', 'c', 'a',
4742 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c',
4743 'a', 'b', 'c', 'a', 'b', 'c', 'a', 'b',
4744 'c', 'a', 'b', 'c', 'a', 'b', 'c', 'a',
4745 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c',
4746};
4747
4748static const char vmac64_string4[33] = {
4749 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4750 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4751 'b', 'c', 'e', 'f', 'i', 'j', 'l', 'm',
4752 'o', 'p', 'r', 's', 't', 'u', 'w', 'x',
4753 'z',
4754};
4755
4756static const char vmac64_string5[143] = {
4757 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4758 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4759 'r', 'm', 'b', 't', 'c', 'o', 'l', 'k',
4760 ']', '%', '9', '2', '7', '!', 'A',
4761};
4762
4763static const char vmac64_string6[145] = {
4764 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4765 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4766 'p', 't', '*', '7', 'l', 'i', '!', '#',
4767 'w', '0', 'z', '/', '4', 'A', 'n',
4768};
4769
4770static const struct hash_testvec vmac64_aes_tv_template[] = {
4771 { /* draft-krovetz-vmac-01 test vector 1 */
4772 .key = "abcdefghijklmnop",
4773 .ksize = 16,
4774 .plaintext = "\0\0\0\0\0\0\0\0bcdefghi",
4775 .psize = 16,
4776 .digest = "\x25\x76\xbe\x1c\x56\xd8\xb8\x1b",
4777 }, { /* draft-krovetz-vmac-01 test vector 2 */
4778 .key = "abcdefghijklmnop",
4779 .ksize = 16,
4780 .plaintext = "\0\0\0\0\0\0\0\0bcdefghiabc",
4781 .psize = 19,
4782 .digest = "\x2d\x37\x6c\xf5\xb1\x81\x3c\xe5",
4783 }, { /* draft-krovetz-vmac-01 test vector 3 */
4784 .key = "abcdefghijklmnop",
4785 .ksize = 16,
4786 .plaintext = "\0\0\0\0\0\0\0\0bcdefghi"
4787 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc",
4788 .psize = 64,
4789 .digest = "\xe8\x42\x1f\x61\xd5\x73\xd2\x98",
4790 }, { /* draft-krovetz-vmac-01 test vector 4 */
4791 .key = "abcdefghijklmnop",
4792 .ksize = 16,
4793 .plaintext = "\0\0\0\0\0\0\0\0bcdefghi"
4794 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4795 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4796 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4797 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4798 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4799 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabc",
4800 .psize = 316,
4801 .digest = "\x44\x92\xdf\x6c\x5c\xac\x1b\xbe",
4802 .tap = { 1, 100, 200, 15 },
4803 .np = 4,
4804 }, {
4805 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4806 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4807 .ksize = 16,
4808 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4809 "\x00\x00\x00\x00\x00\x00\x00\x00",
4810 .psize = 16,
4811 .digest = "\x54\x7b\xa4\x77\x35\x80\x58\x07",
4812 }, {
4813 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4814 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4815 .ksize = 16,
4816 .plaintext = vmac64_string1,
4817 .psize = sizeof(vmac64_string1),
4818 .digest = "\xa1\x8c\x68\xae\xd3\x3c\xf5\xce",
4819 }, {
4820 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4821 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4822 .ksize = 16,
4823 .plaintext = vmac64_string2,
4824 .psize = sizeof(vmac64_string2),
4825 .digest = "\x2d\x14\xbd\x81\x73\xb0\x27\xc9",
4826 }, {
4827 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4828 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4829 .ksize = 16,
4830 .plaintext = vmac64_string3,
4831 .psize = sizeof(vmac64_string3),
4832 .digest = "\x19\x0b\x47\x98\x8c\x95\x1a\x8d",
4833 }, {
4834 .key = "abcdefghijklmnop",
4835 .ksize = 16,
4836 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4837 "\x00\x00\x00\x00\x00\x00\x00\x00",
4838 .psize = 16,
4839 .digest = "\x84\x8f\x55\x9e\x26\xa1\x89\x3b",
4840 }, {
4841 .key = "abcdefghijklmnop",
4842 .ksize = 16,
4843 .plaintext = vmac64_string1,
4844 .psize = sizeof(vmac64_string1),
4845 .digest = "\xc2\x74\x8d\xf6\xb0\xab\x5e\xab",
4846 }, {
4847 .key = "abcdefghijklmnop",
4848 .ksize = 16,
4849 .plaintext = vmac64_string2,
4850 .psize = sizeof(vmac64_string2),
4851 .digest = "\xdf\x09\x7b\x3d\x42\x68\x15\x11",
4852 }, {
4853 .key = "abcdefghijklmnop",
4854 .ksize = 16,
4855 .plaintext = vmac64_string3,
4856 .psize = sizeof(vmac64_string3),
4857 .digest = "\xd4\xfa\x8f\xed\xe1\x8f\x32\x8b",
4858 }, {
4859 .key = "a09b5cd!f#07K\x00\x00\x00",
4860 .ksize = 16,
4861 .plaintext = vmac64_string4,
4862 .psize = sizeof(vmac64_string4),
4863 .digest = "\x5f\xa1\x4e\x42\xea\x0f\xa5\xab",
4864 }, {
4865 .key = "a09b5cd!f#07K\x00\x00\x00",
4866 .ksize = 16,
4867 .plaintext = vmac64_string5,
4868 .psize = sizeof(vmac64_string5),
4869 .digest = "\x60\x67\xe8\x1d\xbc\x98\x31\x25",
4870 }, {
4871 .key = "a09b5cd!f#07K\x00\x00\x00",
4872 .ksize = 16,
4873 .plaintext = vmac64_string6,
4874 .psize = sizeof(vmac64_string6),
4875 .digest = "\x41\xeb\x65\x95\x47\x9b\xae\xc4",
4876 },
4877};
4878
Herbert Xuda7f0332008-07-31 17:08:25 +08004879/*
4880 * SHA384 HMAC test vectors from RFC4231
4881 */
4882
Eric Biggersb13b1e02017-02-24 15:46:59 -08004883static const struct hash_testvec hmac_sha384_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004884 {
4885 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4886 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4887 "\x0b\x0b\x0b\x0b",
4888 .ksize = 20,
4889 .plaintext = "Hi There",
4890 .psize = 8,
4891 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
4892 "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
4893 "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
4894 "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
4895 "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
4896 "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
4897 }, {
4898 .key = "Jefe",
4899 .ksize = 4,
4900 .plaintext = "what do ya want for nothing?",
4901 .psize = 28,
4902 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
4903 "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
4904 "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
4905 "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
4906 "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
4907 "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
4908 .np = 4,
4909 .tap = { 7, 7, 7, 7 }
4910 }, {
4911 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4912 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4913 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4914 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4915 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4916 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4917 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4918 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4919 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4920 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4921 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4922 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4923 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4924 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4925 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4926 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4927 "\xaa\xaa\xaa",
4928 .ksize = 131,
4929 .plaintext = "Test Using Larger Than Block-Siz"
4930 "e Key - Hash Key First",
4931 .psize = 54,
4932 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
4933 "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
4934 "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
4935 "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
4936 "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
4937 "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
4938 }, {
4939 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4940 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4941 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4942 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4943 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4944 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4945 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4946 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4947 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4948 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4949 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4950 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4951 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4952 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4953 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4954 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4955 "\xaa\xaa\xaa",
4956 .ksize = 131,
4957 .plaintext = "This is a test u"
4958 "sing a larger th"
4959 "an block-size ke"
4960 "y and a larger t"
4961 "han block-size d"
4962 "ata. The key nee"
4963 "ds to be hashed "
4964 "before being use"
4965 "d by the HMAC al"
4966 "gorithm.",
4967 .psize = 152,
4968 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
4969 "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
4970 "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
4971 "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
4972 "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
4973 "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
4974 },
4975};
4976
4977/*
4978 * SHA512 HMAC test vectors from RFC4231
4979 */
4980
Eric Biggersb13b1e02017-02-24 15:46:59 -08004981static const struct hash_testvec hmac_sha512_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004982 {
4983 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4984 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4985 "\x0b\x0b\x0b\x0b",
4986 .ksize = 20,
4987 .plaintext = "Hi There",
4988 .psize = 8,
4989 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
4990 "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
4991 "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
4992 "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
4993 "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
4994 "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
4995 "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
4996 "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
4997 }, {
4998 .key = "Jefe",
4999 .ksize = 4,
5000 .plaintext = "what do ya want for nothing?",
5001 .psize = 28,
5002 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
5003 "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
5004 "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
5005 "\x10\x27\x0c\xd7\xea\x25\x05\x54"
5006 "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
5007 "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
5008 "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
5009 "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
5010 .np = 4,
5011 .tap = { 7, 7, 7, 7 }
5012 }, {
5013 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5014 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5015 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5016 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5017 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5018 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5019 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5020 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5021 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5022 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5023 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5024 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5025 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5026 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5027 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5028 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5029 "\xaa\xaa\xaa",
5030 .ksize = 131,
5031 .plaintext = "Test Using Large"
5032 "r Than Block-Siz"
5033 "e Key - Hash Key"
5034 " First",
5035 .psize = 54,
5036 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
5037 "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
5038 "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
5039 "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
5040 "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
5041 "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
5042 "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
5043 "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
5044 }, {
5045 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5046 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5047 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5048 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5049 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5050 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5051 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5052 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5053 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5054 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5055 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5056 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5057 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5058 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5059 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5060 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5061 "\xaa\xaa\xaa",
5062 .ksize = 131,
5063 .plaintext =
5064 "This is a test u"
5065 "sing a larger th"
5066 "an block-size ke"
5067 "y and a larger t"
5068 "han block-size d"
5069 "ata. The key nee"
5070 "ds to be hashed "
5071 "before being use"
5072 "d by the HMAC al"
5073 "gorithm.",
5074 .psize = 152,
5075 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
5076 "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
5077 "\xde\xbd\x71\xf8\x86\x72\x89\x86"
5078 "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
5079 "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
5080 "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
5081 "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
5082 "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
5083 },
5084};
5085
Eric Biggersb13b1e02017-02-24 15:46:59 -08005086static const struct hash_testvec hmac_sha3_224_tv_template[] = {
raveendra padasalagi98eca722016-07-01 11:16:54 +05305087 {
5088 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5089 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5090 "\x0b\x0b\x0b\x0b",
5091 .ksize = 20,
5092 .plaintext = "Hi There",
5093 .psize = 8,
5094 .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70"
5095 "\x6a\x03\x1d\xca\xfd\x56\x37\x3d"
5096 "\x98\x84\x36\x76\x41\xd8\xc5\x9a"
5097 "\xf3\xc8\x60\xf7",
5098 }, {
5099 .key = "Jefe",
5100 .ksize = 4,
5101 .plaintext = "what do ya want for nothing?",
5102 .psize = 28,
5103 .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d"
5104 "\x1b\x79\x86\x34\xad\x38\x68\x11"
5105 "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b"
5106 "\xba\xce\x5e\x66",
5107 .np = 4,
5108 .tap = { 7, 7, 7, 7 }
5109 }, {
5110 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5111 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5112 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5113 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5114 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5115 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5116 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5117 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5118 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5119 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5120 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5121 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5122 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5123 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5124 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5125 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5126 "\xaa\xaa\xaa",
5127 .ksize = 131,
5128 .plaintext = "Test Using Large"
5129 "r Than Block-Siz"
5130 "e Key - Hash Key"
5131 " First",
5132 .psize = 54,
5133 .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b"
5134 "\x7f\x60\x75\xb3\x13\xd2\x79\xb8"
5135 "\x33\xbc\x8f\x75\x12\x43\x52\xd0"
5136 "\x5f\xb9\x99\x5f",
5137 }, {
5138 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5139 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5140 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5141 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5142 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5143 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5144 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5145 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5146 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5147 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5148 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5149 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5150 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5151 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5152 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5153 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5154 "\xaa\xaa\xaa",
5155 .ksize = 131,
5156 .plaintext =
5157 "This is a test u"
5158 "sing a larger th"
5159 "an block-size ke"
5160 "y and a larger t"
5161 "han block-size d"
5162 "ata. The key nee"
5163 "ds to be hashed "
5164 "before being use"
5165 "d by the HMAC al"
5166 "gorithm.",
5167 .psize = 152,
5168 .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d"
5169 "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd"
5170 "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b"
5171 "\x29\xcd\x62\xa0",
5172 },
5173};
5174
Eric Biggersb13b1e02017-02-24 15:46:59 -08005175static const struct hash_testvec hmac_sha3_256_tv_template[] = {
raveendra padasalagi98eca722016-07-01 11:16:54 +05305176 {
5177 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5178 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5179 "\x0b\x0b\x0b\x0b",
5180 .ksize = 20,
5181 .plaintext = "Hi There",
5182 .psize = 8,
5183 .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96"
5184 "\xe2\xa3\xa4\x0e\x69\x77\x43\x51"
5185 "\x14\x0b\xb7\x18\x5e\x12\x02\xcd"
5186 "\xcc\x91\x75\x89\xf9\x5e\x16\xbb",
5187 }, {
5188 .key = "Jefe",
5189 .ksize = 4,
5190 .plaintext = "what do ya want for nothing?",
5191 .psize = 28,
5192 .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae"
5193 "\x35\x96\xbb\xb0\xda\x73\xb8\x87"
5194 "\xc9\x17\x1f\x93\x09\x5b\x29\x4a"
5195 "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5",
5196 .np = 4,
5197 .tap = { 7, 7, 7, 7 }
5198 }, {
5199 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5200 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5201 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5202 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5203 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5204 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5205 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5206 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5207 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5208 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5209 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5210 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5211 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5212 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5213 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5214 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5215 "\xaa\xaa\xaa",
5216 .ksize = 131,
5217 .plaintext = "Test Using Large"
5218 "r Than Block-Siz"
5219 "e Key - Hash Key"
5220 " First",
5221 .psize = 54,
5222 .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52"
5223 "\x35\xf9\x48\x03\x2f\x09\x67\x4a"
5224 "\x58\xc0\xce\x55\x5c\xfc\x1f\x22"
5225 "\x3b\x02\x35\x65\x60\x31\x2c\x3b",
5226 }, {
5227 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5228 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5229 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5230 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5231 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5232 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5233 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5234 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5235 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5236 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5237 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5238 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5239 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5240 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5241 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5242 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5243 "\xaa\xaa\xaa",
5244 .ksize = 131,
5245 .plaintext =
5246 "This is a test u"
5247 "sing a larger th"
5248 "an block-size ke"
5249 "y and a larger t"
5250 "han block-size d"
5251 "ata. The key nee"
5252 "ds to be hashed "
5253 "before being use"
5254 "d by the HMAC al"
5255 "gorithm.",
5256 .psize = 152,
5257 .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a"
5258 "\x7a\xef\x87\x63\x26\x1e\x49\xad"
5259 "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e"
5260 "\x8d\xe6\x17\x01\xfc\x63\xe1\x23",
5261 },
5262};
5263
Eric Biggersb13b1e02017-02-24 15:46:59 -08005264static const struct hash_testvec hmac_sha3_384_tv_template[] = {
raveendra padasalagi98eca722016-07-01 11:16:54 +05305265 {
5266 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5267 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5268 "\x0b\x0b\x0b\x0b",
5269 .ksize = 20,
5270 .plaintext = "Hi There",
5271 .psize = 8,
5272 .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a"
5273 "\x22\x40\xc8\xa4\x37\x30\x5f\x61"
5274 "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e"
5275 "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a"
5276 "\x20\xd3\x70\xb4\x77\x43\x13\x0e"
5277 "\x26\xac\x7e\x3d\x53\x28\x86\xbd",
5278 }, {
5279 .key = "Jefe",
5280 .ksize = 4,
5281 .plaintext = "what do ya want for nothing?",
5282 .psize = 28,
5283 .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd"
5284 "\x67\x64\xd2\xed\x61\x90\x3f\x21"
5285 "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2"
5286 "\x3c\xa1\x35\x08\xa9\x32\x43\xce"
5287 "\x48\xc0\x45\xdc\x00\x7f\x26\xa2"
5288 "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a",
5289 .np = 4,
5290 .tap = { 7, 7, 7, 7 }
5291 }, {
5292 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5293 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5294 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5295 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5296 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5297 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5298 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5299 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5300 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5301 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5302 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5303 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5304 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5305 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5306 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5307 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5308 "\xaa\xaa\xaa",
5309 .ksize = 131,
5310 .plaintext = "Test Using Large"
5311 "r Than Block-Siz"
5312 "e Key - Hash Key"
5313 " First",
5314 .psize = 54,
5315 .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78"
5316 "\x03\x70\x16\x70\x6a\x0e\x57\xbc"
5317 "\x52\x81\x39\x83\x6b\x9a\x42\xc3"
5318 "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96"
5319 "\x16\xfd\x66\x91\x38\xd3\x3a\x11"
5320 "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc",
5321 }, {
5322 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5323 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5324 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5325 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5326 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5327 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5328 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5329 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5330 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5331 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5332 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5333 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5334 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5335 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5336 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5337 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5338 "\xaa\xaa\xaa",
5339 .ksize = 131,
5340 .plaintext =
5341 "This is a test u"
5342 "sing a larger th"
5343 "an block-size ke"
5344 "y and a larger t"
5345 "han block-size d"
5346 "ata. The key nee"
5347 "ds to be hashed "
5348 "before being use"
5349 "d by the HMAC al"
5350 "gorithm.",
5351 .psize = 152,
5352 .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37"
5353 "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e"
5354 "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a"
5355 "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5"
5356 "\xa9\x00\xed\xce\x01\xf5\xf6\x1e"
5357 "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8",
5358 },
5359};
5360
Eric Biggersb13b1e02017-02-24 15:46:59 -08005361static const struct hash_testvec hmac_sha3_512_tv_template[] = {
raveendra padasalagi98eca722016-07-01 11:16:54 +05305362 {
5363 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5364 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5365 "\x0b\x0b\x0b\x0b",
5366 .ksize = 20,
5367 .plaintext = "Hi There",
5368 .psize = 8,
5369 .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5"
5370 "\xc5\x04\xbd\x3a\x41\x46\x5a\xac"
5371 "\xec\x15\x77\x0a\x7c\xab\xac\x53"
5372 "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba"
5373 "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f"
5374 "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2"
5375 "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05"
5376 "\x37\xc0\xa0\xb8\x64\x07\x68\x9e",
5377 }, {
5378 .key = "Jefe",
5379 .ksize = 4,
5380 .plaintext = "what do ya want for nothing?",
5381 .psize = 28,
5382 .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c"
5383 "\x7a\x36\x47\xb7\x47\x29\x2b\x83"
5384 "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf"
5385 "\x56\x65\xe4\xc5\xe7\x09\x35\x0b"
5386 "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0"
5387 "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e"
5388 "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83"
5389 "\x96\x02\x75\xbe\xb4\xe6\x20\x24",
5390 .np = 4,
5391 .tap = { 7, 7, 7, 7 }
5392 }, {
5393 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5394 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5395 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5396 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5397 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5398 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5399 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5400 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5401 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5402 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5403 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5404 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5405 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5406 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5407 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5408 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5409 "\xaa\xaa\xaa",
5410 .ksize = 131,
5411 .plaintext = "Test Using Large"
5412 "r Than Block-Siz"
5413 "e Key - Hash Key"
5414 " First",
5415 .psize = 54,
5416 .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0"
5417 "\x90\xed\x69\x11\xa4\xb6\x55\x24"
5418 "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58"
5419 "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a"
5420 "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab"
5421 "\x27\xe8\x3f\xde\x9e\x11\xf6\x34"
5422 "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2"
5423 "\xee\xe7\xfc\x87\x24\x26\xc3\xa4",
5424 }, {
5425 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5426 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5427 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5428 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5429 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5430 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5431 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5432 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5433 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5434 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5435 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5436 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5437 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5438 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5439 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5440 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5441 "\xaa\xaa\xaa",
5442 .ksize = 131,
5443 .plaintext =
5444 "This is a test u"
5445 "sing a larger th"
5446 "an block-size ke"
5447 "y and a larger t"
5448 "han block-size d"
5449 "ata. The key nee"
5450 "ds to be hashed "
5451 "before being use"
5452 "d by the HMAC al"
5453 "gorithm.",
5454 .psize = 152,
5455 .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3"
5456 "\x2c\x9a\xb8\x33\x66\x84\x11\x28"
5457 "\x62\xc3\xdb\x61\xad\xcc\xa3\x18"
5458 "\x29\x35\x5e\xaf\x46\xfd\x5c\x73"
5459 "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6"
5460 "\x52\xfb\x38\x11\xb5\x77\xb1\xb1"
5461 "\xd1\xb9\x78\x9f\x97\xae\x5b\x83"
5462 "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba",
5463 },
5464};
5465
Herbert Xuda7f0332008-07-31 17:08:25 +08005466/*
Martin Willieee9dc62015-06-01 13:43:59 +02005467 * Poly1305 test vectors from RFC7539 A.3.
5468 */
5469
Eric Biggersb13b1e02017-02-24 15:46:59 -08005470static const struct hash_testvec poly1305_tv_template[] = {
Martin Willieee9dc62015-06-01 13:43:59 +02005471 { /* Test Vector #1 */
Martin Willieee9dc62015-06-01 13:43:59 +02005472 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
5473 "\x00\x00\x00\x00\x00\x00\x00\x00"
5474 "\x00\x00\x00\x00\x00\x00\x00\x00"
5475 "\x00\x00\x00\x00\x00\x00\x00\x00"
5476 "\x00\x00\x00\x00\x00\x00\x00\x00"
5477 "\x00\x00\x00\x00\x00\x00\x00\x00"
5478 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005479 "\x00\x00\x00\x00\x00\x00\x00\x00"
5480 "\x00\x00\x00\x00\x00\x00\x00\x00"
5481 "\x00\x00\x00\x00\x00\x00\x00\x00"
5482 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005483 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005484 .psize = 96,
Martin Willieee9dc62015-06-01 13:43:59 +02005485 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
5486 "\x00\x00\x00\x00\x00\x00\x00\x00",
5487 }, { /* Test Vector #2 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005488 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005489 "\x00\x00\x00\x00\x00\x00\x00\x00"
5490 "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005491 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
5492 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
Martin Willieee9dc62015-06-01 13:43:59 +02005493 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
5494 "\x6f\x20\x74\x68\x65\x20\x49\x45"
5495 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
5496 "\x64\x65\x64\x20\x62\x79\x20\x74"
5497 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
5498 "\x69\x62\x75\x74\x6f\x72\x20\x66"
5499 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
5500 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
5501 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
5502 "\x20\x70\x61\x72\x74\x20\x6f\x66"
5503 "\x20\x61\x6e\x20\x49\x45\x54\x46"
5504 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
5505 "\x74\x2d\x44\x72\x61\x66\x74\x20"
5506 "\x6f\x72\x20\x52\x46\x43\x20\x61"
5507 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
5508 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
5509 "\x20\x6d\x61\x64\x65\x20\x77\x69"
5510 "\x74\x68\x69\x6e\x20\x74\x68\x65"
5511 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
5512 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
5513 "\x45\x54\x46\x20\x61\x63\x74\x69"
5514 "\x76\x69\x74\x79\x20\x69\x73\x20"
5515 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
5516 "\x65\x64\x20\x61\x6e\x20\x22\x49"
5517 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
5518 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
5519 "\x22\x2e\x20\x53\x75\x63\x68\x20"
5520 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5521 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
5522 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
5523 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5524 "\x74\x73\x20\x69\x6e\x20\x49\x45"
5525 "\x54\x46\x20\x73\x65\x73\x73\x69"
5526 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
5527 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
5528 "\x77\x72\x69\x74\x74\x65\x6e\x20"
5529 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
5530 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
5531 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
5532 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
5533 "\x64\x65\x20\x61\x74\x20\x61\x6e"
5534 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
5535 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
5536 "\x20\x77\x68\x69\x63\x68\x20\x61"
5537 "\x72\x65\x20\x61\x64\x64\x72\x65"
5538 "\x73\x73\x65\x64\x20\x74\x6f",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005539 .psize = 407,
Martin Willieee9dc62015-06-01 13:43:59 +02005540 .digest = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
5541 "\xf0\xef\xca\x96\x22\x7a\x86\x3e",
5542 }, { /* Test Vector #3 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005543 .plaintext = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
Martin Willieee9dc62015-06-01 13:43:59 +02005544 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
5545 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005546 "\x00\x00\x00\x00\x00\x00\x00\x00"
5547 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
Martin Willieee9dc62015-06-01 13:43:59 +02005548 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
5549 "\x6f\x20\x74\x68\x65\x20\x49\x45"
5550 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
5551 "\x64\x65\x64\x20\x62\x79\x20\x74"
5552 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
5553 "\x69\x62\x75\x74\x6f\x72\x20\x66"
5554 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
5555 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
5556 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
5557 "\x20\x70\x61\x72\x74\x20\x6f\x66"
5558 "\x20\x61\x6e\x20\x49\x45\x54\x46"
5559 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
5560 "\x74\x2d\x44\x72\x61\x66\x74\x20"
5561 "\x6f\x72\x20\x52\x46\x43\x20\x61"
5562 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
5563 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
5564 "\x20\x6d\x61\x64\x65\x20\x77\x69"
5565 "\x74\x68\x69\x6e\x20\x74\x68\x65"
5566 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
5567 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
5568 "\x45\x54\x46\x20\x61\x63\x74\x69"
5569 "\x76\x69\x74\x79\x20\x69\x73\x20"
5570 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
5571 "\x65\x64\x20\x61\x6e\x20\x22\x49"
5572 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
5573 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
5574 "\x22\x2e\x20\x53\x75\x63\x68\x20"
5575 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5576 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
5577 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
5578 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5579 "\x74\x73\x20\x69\x6e\x20\x49\x45"
5580 "\x54\x46\x20\x73\x65\x73\x73\x69"
5581 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
5582 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
5583 "\x77\x72\x69\x74\x74\x65\x6e\x20"
5584 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
5585 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
5586 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
5587 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
5588 "\x64\x65\x20\x61\x74\x20\x61\x6e"
5589 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
5590 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
5591 "\x20\x77\x68\x69\x63\x68\x20\x61"
5592 "\x72\x65\x20\x61\x64\x64\x72\x65"
5593 "\x73\x73\x65\x64\x20\x74\x6f",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005594 .psize = 407,
Martin Willieee9dc62015-06-01 13:43:59 +02005595 .digest = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf"
5596 "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0",
5597 }, { /* Test Vector #4 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005598 .plaintext = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
Martin Willieee9dc62015-06-01 13:43:59 +02005599 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
5600 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005601 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
5602 "\x27\x54\x77\x61\x73\x20\x62\x72"
Martin Willieee9dc62015-06-01 13:43:59 +02005603 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
5604 "\x6e\x64\x20\x74\x68\x65\x20\x73"
5605 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
5606 "\x76\x65\x73\x0a\x44\x69\x64\x20"
5607 "\x67\x79\x72\x65\x20\x61\x6e\x64"
5608 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
5609 "\x69\x6e\x20\x74\x68\x65\x20\x77"
5610 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
5611 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
5612 "\x65\x72\x65\x20\x74\x68\x65\x20"
5613 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
5614 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
5615 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
5616 "\x72\x61\x74\x68\x73\x20\x6f\x75"
5617 "\x74\x67\x72\x61\x62\x65\x2e",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005618 .psize = 159,
Martin Willieee9dc62015-06-01 13:43:59 +02005619 .digest = "\x45\x41\x66\x9a\x7e\xaa\xee\x61"
5620 "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62",
5621 }, { /* Test Vector #5 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005622 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005623 "\x00\x00\x00\x00\x00\x00\x00\x00"
5624 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005625 "\x00\x00\x00\x00\x00\x00\x00\x00"
5626 "\xff\xff\xff\xff\xff\xff\xff\xff"
5627 "\xff\xff\xff\xff\xff\xff\xff\xff",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005628 .psize = 48,
5629 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005630 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005631 }, { /* Test Vector #6 */
5632 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
5633 "\x00\x00\x00\x00\x00\x00\x00\x00"
5634 "\xff\xff\xff\xff\xff\xff\xff\xff"
5635 "\xff\xff\xff\xff\xff\xff\xff\xff"
5636 "\x02\x00\x00\x00\x00\x00\x00\x00"
5637 "\x00\x00\x00\x00\x00\x00\x00\x00",
5638 .psize = 48,
Martin Willieee9dc62015-06-01 13:43:59 +02005639 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
5640 "\x00\x00\x00\x00\x00\x00\x00\x00",
5641 }, { /* Test Vector #7 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005642 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005643 "\x00\x00\x00\x00\x00\x00\x00\x00"
5644 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005645 "\x00\x00\x00\x00\x00\x00\x00\x00"
5646 "\xff\xff\xff\xff\xff\xff\xff\xff"
Martin Willieee9dc62015-06-01 13:43:59 +02005647 "\xff\xff\xff\xff\xff\xff\xff\xff"
5648 "\xf0\xff\xff\xff\xff\xff\xff\xff"
5649 "\xff\xff\xff\xff\xff\xff\xff\xff"
5650 "\x11\x00\x00\x00\x00\x00\x00\x00"
5651 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005652 .psize = 80,
Martin Willieee9dc62015-06-01 13:43:59 +02005653 .digest = "\x05\x00\x00\x00\x00\x00\x00\x00"
5654 "\x00\x00\x00\x00\x00\x00\x00\x00",
5655 }, { /* Test Vector #8 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005656 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005657 "\x00\x00\x00\x00\x00\x00\x00\x00"
5658 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005659 "\x00\x00\x00\x00\x00\x00\x00\x00"
5660 "\xff\xff\xff\xff\xff\xff\xff\xff"
Martin Willieee9dc62015-06-01 13:43:59 +02005661 "\xff\xff\xff\xff\xff\xff\xff\xff"
5662 "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
5663 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
5664 "\x01\x01\x01\x01\x01\x01\x01\x01"
5665 "\x01\x01\x01\x01\x01\x01\x01\x01",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005666 .psize = 80,
Martin Willieee9dc62015-06-01 13:43:59 +02005667 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
5668 "\x00\x00\x00\x00\x00\x00\x00\x00",
5669 }, { /* Test Vector #9 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005670 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005671 "\x00\x00\x00\x00\x00\x00\x00\x00"
5672 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005673 "\x00\x00\x00\x00\x00\x00\x00\x00"
5674 "\xfd\xff\xff\xff\xff\xff\xff\xff"
Martin Willieee9dc62015-06-01 13:43:59 +02005675 "\xff\xff\xff\xff\xff\xff\xff\xff",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005676 .psize = 48,
Martin Willieee9dc62015-06-01 13:43:59 +02005677 .digest = "\xfa\xff\xff\xff\xff\xff\xff\xff"
5678 "\xff\xff\xff\xff\xff\xff\xff\xff",
5679 }, { /* Test Vector #10 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005680 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005681 "\x04\x00\x00\x00\x00\x00\x00\x00"
5682 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005683 "\x00\x00\x00\x00\x00\x00\x00\x00"
5684 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
Martin Willieee9dc62015-06-01 13:43:59 +02005685 "\x00\x00\x00\x00\x00\x00\x00\x00"
5686 "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
5687 "\x01\x00\x00\x00\x00\x00\x00\x00"
5688 "\x00\x00\x00\x00\x00\x00\x00\x00"
5689 "\x00\x00\x00\x00\x00\x00\x00\x00"
5690 "\x01\x00\x00\x00\x00\x00\x00\x00"
5691 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005692 .psize = 96,
Martin Willieee9dc62015-06-01 13:43:59 +02005693 .digest = "\x14\x00\x00\x00\x00\x00\x00\x00"
5694 "\x55\x00\x00\x00\x00\x00\x00\x00",
5695 }, { /* Test Vector #11 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005696 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005697 "\x04\x00\x00\x00\x00\x00\x00\x00"
5698 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005699 "\x00\x00\x00\x00\x00\x00\x00\x00"
5700 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
Martin Willieee9dc62015-06-01 13:43:59 +02005701 "\x00\x00\x00\x00\x00\x00\x00\x00"
5702 "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
5703 "\x01\x00\x00\x00\x00\x00\x00\x00"
5704 "\x00\x00\x00\x00\x00\x00\x00\x00"
5705 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005706 .psize = 80,
Martin Willieee9dc62015-06-01 13:43:59 +02005707 .digest = "\x13\x00\x00\x00\x00\x00\x00\x00"
5708 "\x00\x00\x00\x00\x00\x00\x00\x00",
5709 },
5710};
5711
Eric Biggers26609a22018-11-16 17:26:29 -08005712/* NHPoly1305 test vectors from https://github.com/google/adiantum */
5713static const struct hash_testvec nhpoly1305_tv_template[] = {
5714 {
5715 .key = "\xd2\x5d\x4c\xdd\x8d\x2b\x7f\x7a"
5716 "\xd9\xbe\x71\xec\xd1\x83\x52\xe3"
5717 "\xe1\xad\xd7\x5c\x0a\x75\x9d\xec"
5718 "\x1d\x13\x7e\x5d\x71\x07\xc9\xe4"
5719 "\x57\x2d\x44\x68\xcf\xd8\xd6\xc5"
5720 "\x39\x69\x7d\x32\x75\x51\x4f\x7e"
5721 "\xb2\x4c\xc6\x90\x51\x6e\xd9\xd6"
5722 "\xa5\x8b\x2d\xf1\x94\xf9\xf7\x5e"
5723 "\x2c\x84\x7b\x41\x0f\x88\x50\x89"
5724 "\x30\xd9\xa1\x38\x46\x6c\xc0\x4f"
5725 "\xe8\xdf\xdc\x66\xab\x24\x43\x41"
5726 "\x91\x55\x29\x65\x86\x28\x5e\x45"
5727 "\xd5\x2d\xb7\x80\x08\x9a\xc3\xd4"
5728 "\x9a\x77\x0a\xd4\xef\x3e\xe6\x3f"
5729 "\x6f\x2f\x9b\x3a\x7d\x12\x1e\x80"
5730 "\x6c\x44\xa2\x25\xe1\xf6\x60\xe9"
5731 "\x0d\xaf\xc5\x3c\xa5\x79\xae\x64"
5732 "\xbc\xa0\x39\xa3\x4d\x10\xe5\x4d"
5733 "\xd5\xe7\x89\x7a\x13\xee\x06\x78"
5734 "\xdc\xa4\xdc\x14\x27\xe6\x49\x38"
5735 "\xd0\xe0\x45\x25\x36\xc5\xf4\x79"
5736 "\x2e\x9a\x98\x04\xe4\x2b\x46\x52"
5737 "\x7c\x33\xca\xe2\x56\x51\x50\xe2"
5738 "\xa5\x9a\xae\x18\x6a\x13\xf8\xd2"
5739 "\x21\x31\x66\x02\xe2\xda\x8d\x7e"
5740 "\x41\x19\xb2\x61\xee\x48\x8f\xf1"
5741 "\x65\x24\x2e\x1e\x68\xce\x05\xd9"
5742 "\x2a\xcf\xa5\x3a\x57\xdd\x35\x91"
5743 "\x93\x01\xca\x95\xfc\x2b\x36\x04"
5744 "\xe6\x96\x97\x28\xf6\x31\xfe\xa3"
5745 "\x9d\xf6\x6a\x1e\x80\x8d\xdc\xec"
5746 "\xaf\x66\x11\x13\x02\x88\xd5\x27"
5747 "\x33\xb4\x1a\xcd\xa3\xf6\xde\x31"
5748 "\x8e\xc0\x0e\x6c\xd8\x5a\x97\x5e"
5749 "\xdd\xfd\x60\x69\x38\x46\x3f\x90"
5750 "\x5e\x97\xd3\x32\x76\xc7\x82\x49"
5751 "\xfe\xba\x06\x5f\x2f\xa2\xfd\xff"
5752 "\x80\x05\x40\xe4\x33\x03\xfb\x10"
5753 "\xc0\xde\x65\x8c\xc9\x8d\x3a\x9d"
5754 "\xb5\x7b\x36\x4b\xb5\x0c\xcf\x00"
5755 "\x9c\x87\xe4\x49\xad\x90\xda\x4a"
5756 "\xdd\xbd\xff\xe2\x32\x57\xd6\x78"
5757 "\x36\x39\x6c\xd3\x5b\x9b\x88\x59"
5758 "\x2d\xf0\x46\xe4\x13\x0e\x2b\x35"
5759 "\x0d\x0f\x73\x8a\x4f\x26\x84\x75"
5760 "\x88\x3c\xc5\x58\x66\x18\x1a\xb4"
5761 "\x64\x51\x34\x27\x1b\xa4\x11\xc9"
5762 "\x6d\x91\x8a\xfa\x32\x60\x9d\xd7"
5763 "\x87\xe5\xaa\x43\x72\xf8\xda\xd1"
5764 "\x48\x44\x13\x61\xdc\x8c\x76\x17"
5765 "\x0c\x85\x4e\xf3\xdd\xa2\x42\xd2"
5766 "\x74\xc1\x30\x1b\xeb\x35\x31\x29"
5767 "\x5b\xd7\x4c\x94\x46\x35\xa1\x23"
5768 "\x50\xf2\xa2\x8e\x7e\x4f\x23\x4f"
5769 "\x51\xff\xe2\xc9\xa3\x7d\x56\x8b"
5770 "\x41\xf2\xd0\xc5\x57\x7e\x59\xac"
5771 "\xbb\x65\xf3\xfe\xf7\x17\xef\x63"
5772 "\x7c\x6f\x23\xdd\x22\x8e\xed\x84"
5773 "\x0e\x3b\x09\xb3\xf3\xf4\x8f\xcd"
5774 "\x37\xa8\xe1\xa7\x30\xdb\xb1\xa2"
5775 "\x9c\xa2\xdf\x34\x17\x3e\x68\x44"
5776 "\xd0\xde\x03\x50\xd1\x48\x6b\x20"
5777 "\xe2\x63\x45\xa5\xea\x87\xc2\x42"
5778 "\x95\x03\x49\x05\xed\xe0\x90\x29"
5779 "\x1a\xb8\xcf\x9b\x43\xcf\x29\x7a"
5780 "\x63\x17\x41\x9f\xe0\xc9\x10\xfd"
5781 "\x2c\x56\x8c\x08\x55\xb4\xa9\x27"
5782 "\x0f\x23\xb1\x05\x6a\x12\x46\xc7"
5783 "\xe1\xfe\x28\x93\x93\xd7\x2f\xdc"
5784 "\x98\x30\xdb\x75\x8a\xbe\x97\x7a"
5785 "\x02\xfb\x8c\xba\xbe\x25\x09\xbe"
5786 "\xce\xcb\xa2\xef\x79\x4d\x0e\x9d"
5787 "\x1b\x9d\xb6\x39\x34\x38\xfa\x07"
5788 "\xec\xe8\xfc\x32\x85\x1d\xf7\x85"
5789 "\x63\xc3\x3c\xc0\x02\x75\xd7\x3f"
5790 "\xb2\x68\x60\x66\x65\x81\xc6\xb1"
5791 "\x42\x65\x4b\x4b\x28\xd7\xc7\xaa"
5792 "\x9b\xd2\xdc\x1b\x01\xe0\x26\x39"
5793 "\x01\xc1\x52\x14\xd1\x3f\xb7\xe6"
5794 "\x61\x41\xc7\x93\xd2\xa2\x67\xc6"
5795 "\xf7\x11\xb5\xf5\xea\xdd\x19\xfb"
5796 "\x4d\x21\x12\xd6\x7d\xf1\x10\xb0"
5797 "\x89\x07\xc7\x5a\x52\x73\x70\x2f"
5798 "\x32\xef\x65\x2b\x12\xb2\xf0\xf5"
5799 "\x20\xe0\x90\x59\x7e\x64\xf1\x4c"
5800 "\x41\xb3\xa5\x91\x08\xe6\x5e\x5f"
5801 "\x05\x56\x76\xb4\xb0\xcd\x70\x53"
5802 "\x10\x48\x9c\xff\xc2\x69\x55\x24"
5803 "\x87\xef\x84\xea\xfb\xa7\xbf\xa0"
5804 "\x91\x04\xad\x4f\x8b\x57\x54\x4b"
5805 "\xb6\xe9\xd1\xac\x37\x2f\x1d\x2e"
5806 "\xab\xa5\xa4\xe8\xff\xfb\xd9\x39"
5807 "\x2f\xb7\xac\xd1\xfe\x0b\x9a\x80"
5808 "\x0f\xb6\xf4\x36\x39\x90\x51\xe3"
5809 "\x0a\x2f\xb6\x45\x76\x89\xcd\x61"
5810 "\xfe\x48\x5f\x75\x1d\x13\x00\x62"
5811 "\x80\x24\x47\xe7\xbc\x37\xd7\xe3"
5812 "\x15\xe8\x68\x22\xaf\x80\x6f\x4b"
5813 "\xa8\x9f\x01\x10\x48\x14\xc3\x02"
5814 "\x52\xd2\xc7\x75\x9b\x52\x6d\x30"
5815 "\xac\x13\x85\xc8\xf7\xa3\x58\x4b"
5816 "\x49\xf7\x1c\x45\x55\x8c\x39\x9a"
5817 "\x99\x6d\x97\x27\x27\xe6\xab\xdd"
5818 "\x2c\x42\x1b\x35\xdd\x9d\x73\xbb"
5819 "\x6c\xf3\x64\xf1\xfb\xb9\xf7\xe6"
5820 "\x4a\x3c\xc0\x92\xc0\x2e\xb7\x1a"
5821 "\xbe\xab\xb3\x5a\xe5\xea\xb1\x48"
5822 "\x58\x13\x53\x90\xfd\xc3\x8e\x54"
5823 "\xf9\x18\x16\x73\xe8\xcb\x6d\x39"
5824 "\x0e\xd7\xe0\xfe\xb6\x9f\x43\x97"
5825 "\xe8\xd0\x85\x56\x83\x3e\x98\x68"
5826 "\x7f\xbd\x95\xa8\x9a\x61\x21\x8f"
5827 "\x06\x98\x34\xa6\xc8\xd6\x1d\xf3"
5828 "\x3d\x43\xa4\x9a\x8c\xe5\xd3\x5a"
5829 "\x32\xa2\x04\x22\xa4\x19\x1a\x46"
5830 "\x42\x7e\x4d\xe5\xe0\xe6\x0e\xca"
5831 "\xd5\x58\x9d\x2c\xaf\xda\x33\x5c"
5832 "\xb0\x79\x9e\xc9\xfc\xca\xf0\x2f"
5833 "\xa8\xb2\x77\xeb\x7a\xa2\xdd\x37"
5834 "\x35\x83\x07\xd6\x02\x1a\xb6\x6c"
5835 "\x24\xe2\x59\x08\x0e\xfd\x3e\x46"
5836 "\xec\x40\x93\xf4\x00\x26\x4f\x2a"
5837 "\xff\x47\x2f\xeb\x02\x92\x26\x5b"
5838 "\x53\x17\xc2\x8d\x2a\xc7\xa3\x1b"
5839 "\xcd\xbc\xa7\xe8\xd1\x76\xe3\x80"
5840 "\x21\xca\x5d\x3b\xe4\x9c\x8f\xa9"
5841 "\x5b\x7f\x29\x7f\x7c\xd8\xed\x6d"
5842 "\x8c\xb2\x86\x85\xe7\x77\xf2\x85"
5843 "\xab\x38\xa9\x9d\xc1\x4e\xc5\x64"
5844 "\x33\x73\x8b\x59\x03\xad\x05\xdf"
5845 "\x25\x98\x31\xde\xef\x13\xf1\x9b"
5846 "\x3c\x91\x9d\x7b\xb1\xfa\xe6\xbf"
5847 "\x5b\xed\xa5\x55\xe6\xea\x6c\x74"
5848 "\xf4\xb9\xe4\x45\x64\x72\x81\xc2"
5849 "\x4c\x28\xd4\xcd\xac\xe2\xde\xf9"
5850 "\xeb\x5c\xeb\x61\x60\x5a\xe5\x28",
5851 .ksize = 1088,
5852 .plaintext = "",
5853 .psize = 0,
5854 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
5855 "\x00\x00\x00\x00\x00\x00\x00\x00",
5856 }, {
5857 .key = "\x29\x21\x43\xcb\xcb\x13\x07\xde"
5858 "\xbf\x48\xdf\x8a\x7f\xa2\x84\xde"
5859 "\x72\x23\x9d\xf5\xf0\x07\xf2\x4c"
5860 "\x20\x3a\x93\xb9\xcd\x5d\xfe\xcb"
5861 "\x99\x2c\x2b\x58\xc6\x50\x5f\x94"
5862 "\x56\xc3\x7c\x0d\x02\x3f\xb8\x5e"
5863 "\x7b\xc0\x6c\x51\x34\x76\xc0\x0e"
5864 "\xc6\x22\xc8\x9e\x92\xa0\x21\xc9"
5865 "\x85\x5c\x7c\xf8\xe2\x64\x47\xc9"
5866 "\xe4\xa2\x57\x93\xf8\xa2\x69\xcd"
5867 "\x62\x98\x99\xf4\xd7\x7b\x14\xb1"
5868 "\xd8\x05\xff\x04\x15\xc9\xe1\x6e"
5869 "\x9b\xe6\x50\x6b\x0b\x3f\x22\x1f"
5870 "\x08\xde\x0c\x5b\x08\x7e\xc6\x2f"
5871 "\x6c\xed\xd6\xb2\x15\xa4\xb3\xf9"
5872 "\xa7\x46\x38\x2a\xea\x69\xa5\xde"
5873 "\x02\xc3\x96\x89\x4d\x55\x3b\xed"
5874 "\x3d\x3a\x85\x77\xbf\x97\x45\x5c"
5875 "\x9e\x02\x69\xe2\x1b\x68\xbe\x96"
5876 "\xfb\x64\x6f\x0f\xf6\x06\x40\x67"
5877 "\xfa\x04\xe3\x55\xfa\xbe\xa4\x60"
5878 "\xef\x21\x66\x97\xe6\x9d\x5c\x1f"
5879 "\x62\x37\xaa\x31\xde\xe4\x9c\x28"
5880 "\x95\xe0\x22\x86\xf4\x4d\xf3\x07"
5881 "\xfd\x5f\x3a\x54\x2c\x51\x80\x71"
5882 "\xba\x78\x69\x5b\x65\xab\x1f\x81"
5883 "\xed\x3b\xff\x34\xa3\xfb\xbc\x73"
5884 "\x66\x7d\x13\x7f\xdf\x6e\xe2\xe2"
5885 "\xeb\x4f\x6c\xda\x7d\x33\x57\xd0"
5886 "\xd3\x7c\x95\x4f\x33\x58\x21\xc7"
5887 "\xc0\xe5\x6f\x42\x26\xc6\x1f\x5e"
5888 "\x85\x1b\x98\x9a\xa2\x1e\x55\x77"
5889 "\x23\xdf\x81\x5e\x79\x55\x05\xfc"
5890 "\xfb\xda\xee\xba\x5a\xba\xf7\x77"
5891 "\x7f\x0e\xd3\xe1\x37\xfe\x8d\x2b"
5892 "\xd5\x3f\xfb\xd0\xc0\x3c\x0b\x3f"
5893 "\xcf\x3c\x14\xcf\xfb\x46\x72\x4c"
5894 "\x1f\x39\xe2\xda\x03\x71\x6d\x23"
5895 "\xef\x93\xcd\x39\xd9\x37\x80\x4d"
5896 "\x65\x61\xd1\x2c\x03\xa9\x47\x72"
5897 "\x4d\x1e\x0e\x16\x33\x0f\x21\x17"
5898 "\xec\x92\xea\x6f\x37\x22\xa4\xd8"
5899 "\x03\x33\x9e\xd8\x03\x69\x9a\xe8"
5900 "\xb2\x57\xaf\x78\x99\x05\x12\xab"
5901 "\x48\x90\x80\xf0\x12\x9b\x20\x64"
5902 "\x7a\x1d\x47\x5f\xba\x3c\xf9\xc3"
5903 "\x0a\x0d\x8d\xa1\xf9\x1b\x82\x13"
5904 "\x3e\x0d\xec\x0a\x83\xc0\x65\xe1"
5905 "\xe9\x95\xff\x97\xd6\xf2\xe4\xd5"
5906 "\x86\xc0\x1f\x29\x27\x63\xd7\xde"
5907 "\xb7\x0a\x07\x99\x04\x2d\xa3\x89"
5908 "\xa2\x43\xcf\xf3\xe1\x43\xac\x4a"
5909 "\x06\x97\xd0\x05\x4f\x87\xfa\xf9"
5910 "\x9b\xbf\x52\x70\xbd\xbc\x6c\xf3"
5911 "\x03\x13\x60\x41\x28\x09\xec\xcc"
5912 "\xb1\x1a\xec\xd6\xfb\x6f\x2a\x89"
5913 "\x5d\x0b\x53\x9c\x59\xc1\x84\x21"
5914 "\x33\x51\x47\x19\x31\x9c\xd4\x0a"
5915 "\x4d\x04\xec\x50\x90\x61\xbd\xbc"
5916 "\x7e\xc8\xd9\x6c\x98\x1d\x45\x41"
5917 "\x17\x5e\x97\x1c\xc5\xa8\xe8\xea"
5918 "\x46\x58\x53\xf7\x17\xd5\xad\x11"
5919 "\xc8\x54\xf5\x7a\x33\x90\xf5\x19"
5920 "\xba\x36\xb4\xfc\x52\xa5\x72\x3d"
5921 "\x14\xbb\x55\xa7\xe9\xe3\x12\xf7"
5922 "\x1c\x30\xa2\x82\x03\xbf\x53\x91"
5923 "\x2e\x60\x41\x9f\x5b\x69\x39\xf6"
5924 "\x4d\xc8\xf8\x46\x7a\x7f\xa4\x98"
5925 "\x36\xff\x06\xcb\xca\xe7\x33\xf2"
5926 "\xc0\x4a\xf4\x3c\x14\x44\x5f\x6b"
5927 "\x75\xef\x02\x36\x75\x08\x14\xfd"
5928 "\x10\x8e\xa5\x58\xd0\x30\x46\x49"
5929 "\xaf\x3a\xf8\x40\x3d\x35\xdb\x84"
5930 "\x11\x2e\x97\x6a\xb7\x87\x7f\xad"
5931 "\xf1\xfa\xa5\x63\x60\xd8\x5e\xbf"
5932 "\x41\x78\x49\xcf\x77\xbb\x56\xbb"
5933 "\x7d\x01\x67\x05\x22\xc8\x8f\x41"
5934 "\xba\x81\xd2\xca\x2c\x38\xac\x76"
5935 "\x06\xc1\x1a\xc2\xce\xac\x90\x67"
5936 "\x57\x3e\x20\x12\x5b\xd9\x97\x58"
5937 "\x65\x05\xb7\x04\x61\x7e\xd8\x3a"
5938 "\xbf\x55\x3b\x13\xe9\x34\x5a\x37"
5939 "\x36\xcb\x94\x45\xc5\x32\xb3\xa0"
5940 "\x0c\x3e\x49\xc5\xd3\xed\xa7\xf0"
5941 "\x1c\x69\xcc\xea\xcc\x83\xc9\x16"
5942 "\x95\x72\x4b\xf4\x89\xd5\xb9\x10"
5943 "\xf6\x2d\x60\x15\xea\x3c\x06\x66"
5944 "\x9f\x82\xad\x17\xce\xd2\xa4\x48"
5945 "\x7c\x65\xd9\xf8\x02\x4d\x9b\x4c"
5946 "\x89\x06\x3a\x34\x85\x48\x89\x86"
5947 "\xf9\x24\xa9\x54\x72\xdb\x44\x95"
5948 "\xc7\x44\x1c\x19\x11\x4c\x04\xdc"
5949 "\x13\xb9\x67\xc8\xc3\x3a\x6a\x50"
5950 "\xfa\xd1\xfb\xe1\x88\xb6\xf1\xa3"
5951 "\xc5\x3b\xdc\x38\x45\x16\x26\x02"
5952 "\x3b\xb8\x8f\x8b\x58\x7d\x23\x04"
5953 "\x50\x6b\x81\x9f\xae\x66\xac\x6f"
5954 "\xcf\x2a\x9d\xf1\xfd\x1d\x57\x07"
5955 "\xbe\x58\xeb\x77\x0c\xe3\xc2\x19"
5956 "\x14\x74\x1b\x51\x1c\x4f\x41\xf3"
5957 "\x32\x89\xb3\xe7\xde\x62\xf6\x5f"
5958 "\xc7\x6a\x4a\x2a\x5b\x0f\x5f\x87"
5959 "\x9c\x08\xb9\x02\x88\xc8\x29\xb7"
5960 "\x94\x52\xfa\x52\xfe\xaa\x50\x10"
5961 "\xba\x48\x75\x5e\x11\x1b\xe6\x39"
5962 "\xd7\x82\x2c\x87\xf1\x1e\xa4\x38"
5963 "\x72\x3e\x51\xe7\xd8\x3e\x5b\x7b"
5964 "\x31\x16\x89\xba\xd6\xad\x18\x5e"
5965 "\xba\xf8\x12\xb3\xf4\x6c\x47\x30"
5966 "\xc0\x38\x58\xb3\x10\x8d\x58\x5d"
5967 "\xb4\xfb\x19\x7e\x41\xc3\x66\xb8"
5968 "\xd6\x72\x84\xe1\x1a\xc2\x71\x4c"
5969 "\x0d\x4a\x21\x7a\xab\xa2\xc0\x36"
5970 "\x15\xc5\xe9\x46\xd7\x29\x17\x76"
5971 "\x5e\x47\x36\x7f\x72\x05\xa7\xcc"
5972 "\x36\x63\xf9\x47\x7d\xe6\x07\x3c"
5973 "\x8b\x79\x1d\x96\x61\x8d\x90\x65"
5974 "\x7c\xf5\xeb\x4e\x6e\x09\x59\x6d"
5975 "\x62\x50\x1b\x0f\xe0\xdc\x78\xf2"
5976 "\x5b\x83\x1a\xa1\x11\x75\xfd\x18"
5977 "\xd7\xe2\x8d\x65\x14\x21\xce\xbe"
5978 "\xb5\x87\xe3\x0a\xda\x24\x0a\x64"
5979 "\xa9\x9f\x03\x8d\x46\x5d\x24\x1a"
5980 "\x8a\x0c\x42\x01\xca\xb1\x5f\x7c"
5981 "\xa5\xac\x32\x4a\xb8\x07\x91\x18"
5982 "\x6f\xb0\x71\x3c\xc9\xb1\xa8\xf8"
5983 "\x5f\x69\xa5\xa1\xca\x9e\x7a\xaa"
5984 "\xac\xe9\xc7\x47\x41\x75\x25\xc3"
5985 "\x73\xe2\x0b\xdd\x6d\x52\x71\xbe"
5986 "\xc5\xdc\xb4\xe7\x01\x26\x53\x77"
5987 "\x86\x90\x85\x68\x6b\x7b\x03\x53"
5988 "\xda\x52\x52\x51\x68\xc8\xf3\xec"
5989 "\x6c\xd5\x03\x7a\xa3\x0e\xb4\x02"
5990 "\x5f\x1a\xab\xee\xca\x67\x29\x7b"
5991 "\xbd\x96\x59\xb3\x8b\x32\x7a\x92"
5992 "\x9f\xd8\x25\x2b\xdf\xc0\x4c\xda",
5993 .ksize = 1088,
5994 .plaintext = "\xbc\xda\x81\xa8\x78\x79\x1c\xbf"
5995 "\x77\x53\xba\x4c\x30\x5b\xb8\x33",
5996 .psize = 16,
5997 .digest = "\x04\xbf\x7f\x6a\xce\x72\xea\x6a"
5998 "\x79\xdb\xb0\xc9\x60\xf6\x12\xcc",
5999 .np = 6,
6000 .tap = { 4, 4, 1, 1, 1, 5 },
6001 }, {
6002 .key = "\x65\x4d\xe3\xf8\xd2\x4c\xac\x28"
6003 "\x68\xf5\xb3\x81\x71\x4b\xa1\xfa"
6004 "\x04\x0e\xd3\x81\x36\xbe\x0c\x81"
6005 "\x5e\xaf\xbc\x3a\xa4\xc0\x8e\x8b"
6006 "\x55\x63\xd3\x52\x97\x88\xd6\x19"
6007 "\xbc\x96\xdf\x49\xff\x04\x63\xf5"
6008 "\x0c\x11\x13\xaa\x9e\x1f\x5a\xf7"
6009 "\xdd\xbd\x37\x80\xc3\xd0\xbe\xa7"
6010 "\x05\xc8\x3c\x98\x1e\x05\x3c\x84"
6011 "\x39\x61\xc4\xed\xed\x71\x1b\xc4"
6012 "\x74\x45\x2c\xa1\x56\x70\x97\xfd"
6013 "\x44\x18\x07\x7d\xca\x60\x1f\x73"
6014 "\x3b\x6d\x21\xcb\x61\x87\x70\x25"
6015 "\x46\x21\xf1\x1f\x21\x91\x31\x2d"
6016 "\x5d\xcc\xb7\xd1\x84\x3e\x3d\xdb"
6017 "\x03\x53\x2a\x82\xa6\x9a\x95\xbc"
6018 "\x1a\x1e\x0a\x5e\x07\x43\xab\x43"
6019 "\xaf\x92\x82\x06\x91\x04\x09\xf4"
6020 "\x17\x0a\x9a\x2c\x54\xdb\xb8\xf4"
6021 "\xd0\xf0\x10\x66\x24\x8d\xcd\xda"
6022 "\xfe\x0e\x45\x9d\x6f\xc4\x4e\xf4"
6023 "\x96\xaf\x13\xdc\xa9\xd4\x8c\xc4"
6024 "\xc8\x57\x39\x3c\xc2\xd3\x0a\x76"
6025 "\x4a\x1f\x75\x83\x44\xc7\xd1\x39"
6026 "\xd8\xb5\x41\xba\x73\x87\xfa\x96"
6027 "\xc7\x18\x53\xfb\x9b\xda\xa0\x97"
6028 "\x1d\xee\x60\x85\x9e\x14\xc3\xce"
6029 "\xc4\x05\x29\x3b\x95\x30\xa3\xd1"
6030 "\x9f\x82\x6a\x04\xf5\xa7\x75\x57"
6031 "\x82\x04\xfe\x71\x51\x71\xb1\x49"
6032 "\x50\xf8\xe0\x96\xf1\xfa\xa8\x88"
6033 "\x3f\xa0\x86\x20\xd4\x60\x79\x59"
6034 "\x17\x2d\xd1\x09\xf4\xec\x05\x57"
6035 "\xcf\x62\x7e\x0e\x7e\x60\x78\xe6"
6036 "\x08\x60\x29\xd8\xd5\x08\x1a\x24"
6037 "\xc4\x6c\x24\xe7\x92\x08\x3d\x8a"
6038 "\x98\x7a\xcf\x99\x0a\x65\x0e\xdc"
6039 "\x8c\x8a\xbe\x92\x82\x91\xcc\x62"
6040 "\x30\xb6\xf4\x3f\xc6\x8a\x7f\x12"
6041 "\x4a\x8a\x49\xfa\x3f\x5c\xd4\x5a"
6042 "\xa6\x82\xa3\xe6\xaa\x34\x76\xb2"
6043 "\xab\x0a\x30\xef\x6c\x77\x58\x3f"
6044 "\x05\x6b\xcc\x5c\xae\xdc\xd7\xb9"
6045 "\x51\x7e\x8d\x32\x5b\x24\x25\xbe"
6046 "\x2b\x24\x01\xcf\x80\xda\x16\xd8"
6047 "\x90\x72\x2c\xad\x34\x8d\x0c\x74"
6048 "\x02\xcb\xfd\xcf\x6e\xef\x97\xb5"
6049 "\x4c\xf2\x68\xca\xde\x43\x9e\x8a"
6050 "\xc5\x5f\x31\x7f\x14\x71\x38\xec"
6051 "\xbd\x98\xe5\x71\xc4\xb5\xdb\xef"
6052 "\x59\xd2\xca\xc0\xc1\x86\x75\x01"
6053 "\xd4\x15\x0d\x6f\xa4\xf7\x7b\x37"
6054 "\x47\xda\x18\x93\x63\xda\xbe\x9e"
6055 "\x07\xfb\xb2\x83\xd5\xc4\x34\x55"
6056 "\xee\x73\xa1\x42\x96\xf9\x66\x41"
6057 "\xa4\xcc\xd2\x93\x6e\xe1\x0a\xbb"
6058 "\xd2\xdd\x18\x23\xe6\x6b\x98\x0b"
6059 "\x8a\x83\x59\x2c\xc3\xa6\x59\x5b"
6060 "\x01\x22\x59\xf7\xdc\xb0\x87\x7e"
6061 "\xdb\x7d\xf4\x71\x41\xab\xbd\xee"
6062 "\x79\xbe\x3c\x01\x76\x0b\x2d\x0a"
6063 "\x42\xc9\x77\x8c\xbb\x54\x95\x60"
6064 "\x43\x2e\xe0\x17\x52\xbd\x90\xc9"
6065 "\xc2\x2c\xdd\x90\x24\x22\x76\x40"
6066 "\x5c\xb9\x41\xc9\xa1\xd5\xbd\xe3"
6067 "\x44\xe0\xa4\xab\xcc\xb8\xe2\x32"
6068 "\x02\x15\x04\x1f\x8c\xec\x5d\x14"
6069 "\xac\x18\xaa\xef\x6e\x33\x19\x6e"
6070 "\xde\xfe\x19\xdb\xeb\x61\xca\x18"
6071 "\xad\xd8\x3d\xbf\x09\x11\xc7\xa5"
6072 "\x86\x0b\x0f\xe5\x3e\xde\xe8\xd9"
6073 "\x0a\x69\x9e\x4c\x20\xff\xf9\xc5"
6074 "\xfa\xf8\xf3\x7f\xa5\x01\x4b\x5e"
6075 "\x0f\xf0\x3b\x68\xf0\x46\x8c\x2a"
6076 "\x7a\xc1\x8f\xa0\xfe\x6a\x5b\x44"
6077 "\x70\x5c\xcc\x92\x2c\x6f\x0f\xbd"
6078 "\x25\x3e\xb7\x8e\x73\x58\xda\xc9"
6079 "\xa5\xaa\x9e\xf3\x9b\xfd\x37\x3e"
6080 "\xe2\x88\xa4\x7b\xc8\x5c\xa8\x93"
6081 "\x0e\xe7\x9a\x9c\x2e\x95\x18\x9f"
6082 "\xc8\x45\x0c\x88\x9e\x53\x4f\x3a"
6083 "\x76\xc1\x35\xfa\x17\xd8\xac\xa0"
6084 "\x0c\x2d\x47\x2e\x4f\x69\x9b\xf7"
6085 "\xd0\xb6\x96\x0c\x19\xb3\x08\x01"
6086 "\x65\x7a\x1f\xc7\x31\x86\xdb\xc8"
6087 "\xc1\x99\x8f\xf8\x08\x4a\x9d\x23"
6088 "\x22\xa8\xcf\x27\x01\x01\x88\x93"
6089 "\x9c\x86\x45\xbd\xe0\x51\xca\x52"
6090 "\x84\xba\xfe\x03\xf7\xda\xc5\xce"
6091 "\x3e\x77\x75\x86\xaf\x84\xc8\x05"
6092 "\x44\x01\x0f\x02\xf3\x58\xb0\x06"
6093 "\x5a\xd7\x12\x30\x8d\xdf\x1f\x1f"
6094 "\x0a\xe6\xd2\xea\xf6\x3a\x7a\x99"
6095 "\x63\xe8\xd2\xc1\x4a\x45\x8b\x40"
6096 "\x4d\x0a\xa9\x76\x92\xb3\xda\x87"
6097 "\x36\x33\xf0\x78\xc3\x2f\x5f\x02"
6098 "\x1a\x6a\x2c\x32\xcd\x76\xbf\xbd"
6099 "\x5a\x26\x20\x28\x8c\x8c\xbc\x52"
6100 "\x3d\x0a\xc9\xcb\xab\xa4\x21\xb0"
6101 "\x54\x40\x81\x44\xc7\xd6\x1c\x11"
6102 "\x44\xc6\x02\x92\x14\x5a\xbf\x1a"
6103 "\x09\x8a\x18\xad\xcd\x64\x3d\x53"
6104 "\x4a\xb6\xa5\x1b\x57\x0e\xef\xe0"
6105 "\x8c\x44\x5f\x7d\xbd\x6c\xfd\x60"
6106 "\xae\x02\x24\xb6\x99\xdd\x8c\xaf"
6107 "\x59\x39\x75\x3c\xd1\x54\x7b\x86"
6108 "\xcc\x99\xd9\x28\x0c\xb0\x94\x62"
6109 "\xf9\x51\xd1\x19\x96\x2d\x66\xf5"
6110 "\x55\xcf\x9e\x59\xe2\x6b\x2c\x08"
6111 "\xc0\x54\x48\x24\x45\xc3\x8c\x73"
6112 "\xea\x27\x6e\x66\x7d\x1d\x0e\x6e"
6113 "\x13\xe8\x56\x65\x3a\xb0\x81\x5c"
6114 "\xf0\xe8\xd8\x00\x6b\xcd\x8f\xad"
6115 "\xdd\x53\xf3\xa4\x6c\x43\xd6\x31"
6116 "\xaf\xd2\x76\x1e\x91\x12\xdb\x3c"
6117 "\x8c\xc2\x81\xf0\x49\xdb\xe2\x6b"
6118 "\x76\x62\x0a\x04\xe4\xaa\x8a\x7c"
6119 "\x08\x0b\x5d\xd0\xee\x1d\xfb\xc4"
6120 "\x02\x75\x42\xd6\xba\xa7\x22\xa8"
6121 "\x47\x29\xb7\x85\x6d\x93\x3a\xdb"
6122 "\x00\x53\x0b\xa2\xeb\xf8\xfe\x01"
6123 "\x6f\x8a\x31\xd6\x17\x05\x6f\x67"
6124 "\x88\x95\x32\xfe\x4f\xa6\x4b\xf8"
6125 "\x03\xe4\xcd\x9a\x18\xe8\x4e\x2d"
6126 "\xf7\x97\x9a\x0c\x7d\x9f\x7e\x44"
6127 "\x69\x51\xe0\x32\x6b\x62\x86\x8f"
6128 "\xa6\x8e\x0b\x21\x96\xe5\xaf\x77"
6129 "\xc0\x83\xdf\xa5\x0e\xd0\xa1\x04"
6130 "\xaf\xc1\x10\xcb\x5a\x40\xe4\xe3"
6131 "\x38\x7e\x07\xe8\x4d\xfa\xed\xc5"
6132 "\xf0\x37\xdf\xbb\x8a\xcf\x3d\xdc"
6133 "\x61\xd2\xc6\x2b\xff\x07\xc9\x2f"
6134 "\x0c\x2d\x5c\x07\xa8\x35\x6a\xfc"
6135 "\xae\x09\x03\x45\x74\x51\x4d\xc4"
6136 "\xb8\x23\x87\x4a\x99\x27\x20\x87"
6137 "\x62\x44\x0a\x4a\xce\x78\x47\x22",
6138 .ksize = 1088,
6139 .plaintext = "\x8e\xb0\x4c\xde\x9c\x4a\x04\x5a"
6140 "\xf6\xa9\x7f\x45\x25\xa5\x7b\x3a"
6141 "\xbc\x4d\x73\x39\x81\xb5\xbd\x3d"
6142 "\x21\x6f\xd7\x37\x50\x3c\x7b\x28"
6143 "\xd1\x03\x3a\x17\xed\x7b\x7c\x2a"
6144 "\x16\xbc\xdf\x19\x89\x52\x71\x31"
6145 "\xb6\xc0\xfd\xb5\xd3\xba\x96\x99"
6146 "\xb6\x34\x0b\xd0\x99\x93\xfc\x1a"
6147 "\x01\x3c\x85\xc6\x9b\x78\x5c\x8b"
6148 "\xfe\xae\xd2\xbf\xb2\x6f\xf9\xed"
6149 "\xc8\x25\x17\xfe\x10\x3b\x7d\xda"
6150 "\xf4\x8d\x35\x4b\x7c\x7b\x82\xe7"
6151 "\xc2\xb3\xee\x60\x4a\x03\x86\xc9"
6152 "\x4e\xb5\xc4\xbe\xd2\xbd\x66\xf1"
6153 "\x13\xf1\x09\xab\x5d\xca\x63\x1f"
6154 "\xfc\xfb\x57\x2a\xfc\xca\x66\xd8"
6155 "\x77\x84\x38\x23\x1d\xac\xd3\xb3"
6156 "\x7a\xad\x4c\x70\xfa\x9c\xc9\x61"
6157 "\xa6\x1b\xba\x33\x4b\x4e\x33\xec"
6158 "\xa0\xa1\x64\x39\x40\x05\x1c\xc2"
6159 "\x3f\x49\x9d\xae\xf2\xc5\xf2\xc5"
6160 "\xfe\xe8\xf4\xc2\xf9\x96\x2d\x28"
6161 "\x92\x30\x44\xbc\xd2\x7f\xe1\x6e"
6162 "\x62\x02\x8f\x3d\x1c\x80\xda\x0e"
6163 "\x6a\x90\x7e\x75\xff\xec\x3e\xc4"
6164 "\xcd\x16\x34\x3b\x05\x6d\x4d\x20"
6165 "\x1c\x7b\xf5\x57\x4f\xfa\x3d\xac"
6166 "\xd0\x13\x55\xe8\xb3\xe1\x1b\x78"
6167 "\x30\xe6\x9f\x84\xd4\x69\xd1\x08"
6168 "\x12\x77\xa7\x4a\xbd\xc0\xf2\xd2"
6169 "\x78\xdd\xa3\x81\x12\xcb\x6c\x14"
6170 "\x90\x61\xe2\x84\xc6\x2b\x16\xcc"
6171 "\x40\x99\x50\x88\x01\x09\x64\x4f"
6172 "\x0a\x80\xbe\x61\xae\x46\xc9\x0a"
6173 "\x5d\xe0\xfb\x72\x7a\x1a\xdd\x61"
6174 "\x63\x20\x05\xa0\x4a\xf0\x60\x69"
6175 "\x7f\x92\xbc\xbf\x4e\x39\x4d\xdd"
6176 "\x74\xd1\xb7\xc0\x5a\x34\xb7\xae"
6177 "\x76\x65\x2e\xbc\x36\xb9\x04\x95"
6178 "\x42\xe9\x6f\xca\x78\xb3\x72\x07"
6179 "\xa3\xba\x02\x94\x67\x4c\xb1\xd7"
6180 "\xe9\x30\x0d\xf0\x3b\xb8\x10\x6d"
6181 "\xea\x2b\x21\xbf\x74\x59\x82\x97"
6182 "\x85\xaa\xf1\xd7\x54\x39\xeb\x05"
6183 "\xbd\xf3\x40\xa0\x97\xe6\x74\xfe"
6184 "\xb4\x82\x5b\xb1\x36\xcb\xe8\x0d"
6185 "\xce\x14\xd9\xdf\xf1\x94\x22\xcd"
6186 "\xd6\x00\xba\x04\x4c\x05\x0c\xc0"
6187 "\xd1\x5a\xeb\x52\xd5\xa8\x8e\xc8"
6188 "\x97\xa1\xaa\xc1\xea\xc1\xbe\x7c"
6189 "\x36\xb3\x36\xa0\xc6\x76\x66\xc5"
6190 "\xe2\xaf\xd6\x5c\xe2\xdb\x2c\xb3"
6191 "\x6c\xb9\x99\x7f\xff\x9f\x03\x24"
6192 "\xe1\x51\x44\x66\xd8\x0c\x5d\x7f"
6193 "\x5c\x85\x22\x2a\xcf\x6d\x79\x28"
6194 "\xab\x98\x01\x72\xfe\x80\x87\x5f"
6195 "\x46\xba\xef\x81\x24\xee\xbf\xb0"
6196 "\x24\x74\xa3\x65\x97\x12\xc4\xaf"
6197 "\x8b\xa0\x39\xda\x8a\x7e\x74\x6e"
6198 "\x1b\x42\xb4\x44\x37\xfc\x59\xfd"
6199 "\x86\xed\xfb\x8c\x66\x33\xda\x63"
6200 "\x75\xeb\xe1\xa4\x85\x4f\x50\x8f"
6201 "\x83\x66\x0d\xd3\x37\xfa\xe6\x9c"
6202 "\x4f\x30\x87\x35\x18\xe3\x0b\xb7"
6203 "\x6e\x64\x54\xcd\x70\xb3\xde\x54"
6204 "\xb7\x1d\xe6\x4c\x4d\x55\x12\x12"
6205 "\xaf\x5f\x7f\x5e\xee\x9d\xe8\x8e"
6206 "\x32\x9d\x4e\x75\xeb\xc6\xdd\xaa"
6207 "\x48\x82\xa4\x3f\x3c\xd7\xd3\xa8"
6208 "\x63\x9e\x64\xfe\xe3\x97\x00\x62"
6209 "\xe5\x40\x5d\xc3\xad\x72\xe1\x28"
6210 "\x18\x50\xb7\x75\xef\xcd\x23\xbf"
6211 "\x3f\xc0\x51\x36\xf8\x41\xc3\x08"
6212 "\xcb\xf1\x8d\x38\x34\xbd\x48\x45"
6213 "\x75\xed\xbc\x65\x7b\xb5\x0c\x9b"
6214 "\xd7\x67\x7d\x27\xb4\xc4\x80\xd7"
6215 "\xa9\xb9\xc7\x4a\x97\xaa\xda\xc8"
6216 "\x3c\x74\xcf\x36\x8f\xe4\x41\xe3"
6217 "\xd4\xd3\x26\xa7\xf3\x23\x9d\x8f"
6218 "\x6c\x20\x05\x32\x3e\xe0\xc3\xc8"
6219 "\x56\x3f\xa7\x09\xb7\xfb\xc7\xf7"
6220 "\xbe\x2a\xdd\x0f\x06\x7b\x0d\xdd"
6221 "\xb0\xb4\x86\x17\xfd\xb9\x04\xe5"
6222 "\xc0\x64\x5d\xad\x2a\x36\x38\xdb"
6223 "\x24\xaf\x5b\xff\xca\xf9\x41\xe8"
6224 "\xf9\x2f\x1e\x5e\xf9\xf5\xd5\xf2"
6225 "\xb2\x88\xca\xc9\xa1\x31\xe2\xe8"
6226 "\x10\x95\x65\xbf\xf1\x11\x61\x7a"
6227 "\x30\x1a\x54\x90\xea\xd2\x30\xf6"
6228 "\xa5\xad\x60\xf9\x4d\x84\x21\x1b"
6229 "\xe4\x42\x22\xc8\x12\x4b\xb0\x58"
6230 "\x3e\x9c\x2d\x32\x95\x0a\x8e\xb0"
6231 "\x0a\x7e\x77\x2f\xe8\x97\x31\x6a"
6232 "\xf5\x59\xb4\x26\xe6\x37\x12\xc9"
6233 "\xcb\xa0\x58\x33\x6f\xd5\x55\x55"
6234 "\x3c\xa1\x33\xb1\x0b\x7e\x2e\xb4"
6235 "\x43\x2a\x84\x39\xf0\x9c\xf4\x69"
6236 "\x4f\x1e\x79\xa6\x15\x1b\x87\xbb"
6237 "\xdb\x9b\xe0\xf1\x0b\xba\xe3\x6e"
6238 "\xcc\x2f\x49\x19\x22\x29\xfc\x71"
6239 "\xbb\x77\x38\x18\x61\xaf\x85\x76"
6240 "\xeb\xd1\x09\xcc\x86\x04\x20\x9a"
6241 "\x66\x53\x2f\x44\x8b\xc6\xa3\xd2"
6242 "\x5f\xc7\x79\x82\x66\xa8\x6e\x75"
6243 "\x7d\x94\xd1\x86\x75\x0f\xa5\x4f"
6244 "\x3c\x7a\x33\xce\xd1\x6e\x9d\x7b"
6245 "\x1f\x91\x37\xb8\x37\x80\xfb\xe0"
6246 "\x52\x26\xd0\x9a\xd4\x48\x02\x41"
6247 "\x05\xe3\x5a\x94\xf1\x65\x61\x19"
6248 "\xb8\x88\x4e\x2b\xea\xba\x8b\x58"
6249 "\x8b\x42\x01\x00\xa8\xfe\x00\x5c"
6250 "\xfe\x1c\xee\x31\x15\x69\xfa\xb3"
6251 "\x9b\x5f\x22\x8e\x0d\x2c\xe3\xa5"
6252 "\x21\xb9\x99\x8a\x8e\x94\x5a\xef"
6253 "\x13\x3e\x99\x96\x79\x6e\xd5\x42"
6254 "\x36\x03\xa9\xe2\xca\x65\x4e\x8a"
6255 "\x8a\x30\xd2\x7d\x74\xe7\xf0\xaa"
6256 "\x23\x26\xdd\xcb\x82\x39\xfc\x9d"
6257 "\x51\x76\x21\x80\xa2\xbe\x93\x03"
6258 "\x47\xb0\xc1\xb6\xdc\x63\xfd\x9f"
6259 "\xca\x9d\xa5\xca\x27\x85\xe2\xd8"
6260 "\x15\x5b\x7e\x14\x7a\xc4\x89\xcc"
6261 "\x74\x14\x4b\x46\xd2\xce\xac\x39"
6262 "\x6b\x6a\x5a\xa4\x0e\xe3\x7b\x15"
6263 "\x94\x4b\x0f\x74\xcb\x0c\x7f\xa9"
6264 "\xbe\x09\x39\xa3\xdd\x56\x5c\xc7"
6265 "\x99\x56\x65\x39\xf4\x0b\x7d\x87"
6266 "\xec\xaa\xe3\x4d\x22\x65\x39\x4e",
6267 .psize = 1024,
6268 .digest = "\x64\x3a\xbc\xc3\x3f\x74\x40\x51"
6269 "\x6e\x56\x01\x1a\x51\xec\x36\xde",
6270 .np = 8,
6271 .tap = { 64, 203, 267, 28, 263, 62, 54, 83 },
6272 }, {
6273 .key = "\x1b\x82\x2e\x1b\x17\x23\xb9\x6d"
6274 "\xdc\x9c\xda\x99\x07\xe3\x5f\xd8"
6275 "\xd2\xf8\x43\x80\x8d\x86\x7d\x80"
6276 "\x1a\xd0\xcc\x13\xb9\x11\x05\x3f"
6277 "\x7e\xcf\x7e\x80\x0e\xd8\x25\x48"
6278 "\x8b\xaa\x63\x83\x92\xd0\x72\xf5"
6279 "\x4f\x67\x7e\x50\x18\x25\xa4\xd1"
6280 "\xe0\x7e\x1e\xba\xd8\xa7\x6e\xdb"
6281 "\x1a\xcc\x0d\xfe\x9f\x6d\x22\x35"
6282 "\xe1\xe6\xe0\xa8\x7b\x9c\xb1\x66"
6283 "\xa3\xf8\xff\x4d\x90\x84\x28\xbc"
6284 "\xdc\x19\xc7\x91\x49\xfc\xf6\x33"
6285 "\xc9\x6e\x65\x7f\x28\x6f\x68\x2e"
6286 "\xdf\x1a\x75\xe9\xc2\x0c\x96\xb9"
6287 "\x31\x22\xc4\x07\xc6\x0a\x2f\xfd"
6288 "\x36\x06\x5f\x5c\xc5\xb1\x3a\xf4"
6289 "\x5e\x48\xa4\x45\x2b\x88\xa7\xee"
6290 "\xa9\x8b\x52\xcc\x99\xd9\x2f\xb8"
6291 "\xa4\x58\x0a\x13\xeb\x71\x5a\xfa"
6292 "\xe5\x5e\xbe\xf2\x64\xad\x75\xbc"
6293 "\x0b\x5b\x34\x13\x3b\x23\x13\x9a"
6294 "\x69\x30\x1e\x9a\xb8\x03\xb8\x8b"
6295 "\x3e\x46\x18\x6d\x38\xd9\xb3\xd8"
6296 "\xbf\xf1\xd0\x28\xe6\x51\x57\x80"
6297 "\x5e\x99\xfb\xd0\xce\x1e\x83\xf7"
6298 "\xe9\x07\x5a\x63\xa9\xef\xce\xa5"
6299 "\xfb\x3f\x37\x17\xfc\x0b\x37\x0e"
6300 "\xbb\x4b\x21\x62\xb7\x83\x0e\xa9"
6301 "\x9e\xb0\xc4\xad\x47\xbe\x35\xe7"
6302 "\x51\xb2\xf2\xac\x2b\x65\x7b\x48"
6303 "\xe3\x3f\x5f\xb6\x09\x04\x0c\x58"
6304 "\xce\x99\xa9\x15\x2f\x4e\xc1\xf2"
6305 "\x24\x48\xc0\xd8\x6c\xd3\x76\x17"
6306 "\x83\x5d\xe6\xe3\xfd\x01\x8e\xf7"
6307 "\x42\xa5\x04\x29\x30\xdf\xf9\x00"
6308 "\x4a\xdc\x71\x22\x1a\x33\x15\xb6"
6309 "\xd7\x72\xfb\x9a\xb8\xeb\x2b\x38"
6310 "\xea\xa8\x61\xa8\x90\x11\x9d\x73"
6311 "\x2e\x6c\xce\x81\x54\x5a\x9f\xcd"
6312 "\xcf\xd5\xbd\x26\x5d\x66\xdb\xfb"
6313 "\xdc\x1e\x7c\x10\xfe\x58\x82\x10"
6314 "\x16\x24\x01\xce\x67\x55\x51\xd1"
6315 "\xdd\x6b\x44\xa3\x20\x8e\xa9\xa6"
6316 "\x06\xa8\x29\x77\x6e\x00\x38\x5b"
6317 "\xde\x4d\x58\xd8\x1f\x34\xdf\xf9"
6318 "\x2c\xac\x3e\xad\xfb\x92\x0d\x72"
6319 "\x39\xa4\xac\x44\x10\xc0\x43\xc4"
6320 "\xa4\x77\x3b\xfc\xc4\x0d\x37\xd3"
6321 "\x05\x84\xda\x53\x71\xf8\x80\xd3"
6322 "\x34\x44\xdb\x09\xb4\x2b\x8e\xe3"
6323 "\x00\x75\x50\x9e\x43\x22\x00\x0b"
6324 "\x7c\x70\xab\xd4\x41\xf1\x93\xcd"
6325 "\x25\x2d\x84\x74\xb5\xf2\x92\xcd"
6326 "\x0a\x28\xea\x9a\x49\x02\x96\xcb"
6327 "\x85\x9e\x2f\x33\x03\x86\x1d\xdc"
6328 "\x1d\x31\xd5\xfc\x9d\xaa\xc5\xe9"
6329 "\x9a\xc4\x57\xf5\x35\xed\xf4\x4b"
6330 "\x3d\x34\xc2\x29\x13\x86\x36\x42"
6331 "\x5d\xbf\x90\x86\x13\x77\xe5\xc3"
6332 "\x62\xb4\xfe\x0b\x70\x39\x35\x65"
6333 "\x02\xea\xf6\xce\x57\x0c\xbb\x74"
6334 "\x29\xe3\xfd\x60\x90\xfd\x10\x38"
6335 "\xd5\x4e\x86\xbd\x37\x70\xf0\x97"
6336 "\xa6\xab\x3b\x83\x64\x52\xca\x66"
6337 "\x2f\xf9\xa4\xca\x3a\x55\x6b\xb0"
6338 "\xe8\x3a\x34\xdb\x9e\x48\x50\x2f"
6339 "\x3b\xef\xfd\x08\x2d\x5f\xc1\x37"
6340 "\x5d\xbe\x73\xe4\xd8\xe9\xac\xca"
6341 "\x8a\xaa\x48\x7c\x5c\xf4\xa6\x96"
6342 "\x5f\xfa\x70\xa6\xb7\x8b\x50\xcb"
6343 "\xa6\xf5\xa9\xbd\x7b\x75\x4c\x22"
6344 "\x0b\x19\x40\x2e\xc9\x39\x39\x32"
6345 "\x83\x03\xa8\xa4\x98\xe6\x8e\x16"
6346 "\xb9\xde\x08\xc5\xfc\xbf\xad\x39"
6347 "\xa8\xc7\x93\x6c\x6f\x23\xaf\xc1"
6348 "\xab\xe1\xdf\xbb\x39\xae\x93\x29"
6349 "\x0e\x7d\x80\x8d\x3e\x65\xf3\xfd"
6350 "\x96\x06\x65\x90\xa1\x28\x64\x4b"
6351 "\x69\xf9\xa8\x84\x27\x50\xfc\x87"
6352 "\xf7\xbf\x55\x8e\x56\x13\x58\x7b"
6353 "\x85\xb4\x6a\x72\x0f\x40\xf1\x4f"
6354 "\x83\x81\x1f\x76\xde\x15\x64\x7a"
6355 "\x7a\x80\xe4\xc7\x5e\x63\x01\x91"
6356 "\xd7\x6b\xea\x0b\x9b\xa2\x99\x3b"
6357 "\x6c\x88\xd8\xfd\x59\x3c\x8d\x22"
6358 "\x86\x56\xbe\xab\xa1\x37\x08\x01"
6359 "\x50\x85\x69\x29\xee\x9f\xdf\x21"
6360 "\x3e\x20\x20\xf5\xb0\xbb\x6b\xd0"
6361 "\x9c\x41\x38\xec\x54\x6f\x2d\xbd"
6362 "\x0f\xe1\xbd\xf1\x2b\x6e\x60\x56"
6363 "\x29\xe5\x7a\x70\x1c\xe2\xfc\x97"
6364 "\x82\x68\x67\xd9\x3d\x1f\xfb\xd8"
6365 "\x07\x9f\xbf\x96\x74\xba\x6a\x0e"
6366 "\x10\x48\x20\xd8\x13\x1e\xb5\x44"
6367 "\xf2\xcc\xb1\x8b\xfb\xbb\xec\xd7"
6368 "\x37\x70\x1f\x7c\x55\xd2\x4b\xb9"
6369 "\xfd\x70\x5e\xa3\x91\x73\x63\x52"
6370 "\x13\x47\x5a\x06\xfb\x01\x67\xa5"
6371 "\xc0\xd0\x49\x19\x56\x66\x9a\x77"
6372 "\x64\xaf\x8c\x25\x91\x52\x87\x0e"
6373 "\x18\xf3\x5f\x97\xfd\x71\x13\xf8"
6374 "\x05\xa5\x39\xcc\x65\xd3\xcc\x63"
6375 "\x5b\xdb\x5f\x7e\x5f\x6e\xad\xc4"
6376 "\xf4\xa0\xc5\xc2\x2b\x4d\x97\x38"
6377 "\x4f\xbc\xfa\x33\x17\xb4\x47\xb9"
6378 "\x43\x24\x15\x8d\xd2\xed\x80\x68"
6379 "\x84\xdb\x04\x80\xca\x5e\x6a\x35"
6380 "\x2c\x2c\xe7\xc5\x03\x5f\x54\xb0"
6381 "\x5e\x4f\x1d\x40\x54\x3d\x78\x9a"
6382 "\xac\xda\x80\x27\x4d\x15\x4c\x1a"
6383 "\x6e\x80\xc9\xc4\x3b\x84\x0e\xd9"
6384 "\x2e\x93\x01\x8c\xc3\xc8\x91\x4b"
6385 "\xb3\xaa\x07\x04\x68\x5b\x93\xa5"
6386 "\xe7\xc4\x9d\xe7\x07\xee\xf5\x3b"
6387 "\x40\x89\xcc\x60\x34\x9d\xb4\x06"
6388 "\x1b\xef\x92\xe6\xc1\x2a\x7d\x0f"
6389 "\x81\xaa\x56\xe3\xd7\xed\xa7\xd4"
6390 "\xa7\x3a\x49\xc4\xad\x81\x5c\x83"
6391 "\x55\x8e\x91\x54\xb7\x7d\x65\xa5"
6392 "\x06\x16\xd5\x9a\x16\xc1\xb0\xa2"
6393 "\x06\xd8\x98\x47\x73\x7e\x73\xa0"
6394 "\xb8\x23\xb1\x52\xbf\x68\x74\x5d"
6395 "\x0b\xcb\xfa\x8c\x46\xe3\x24\xe6"
6396 "\xab\xd4\x69\x8d\x8c\xf2\x8a\x59"
6397 "\xbe\x48\x46\x50\x8c\x9a\xe8\xe3"
6398 "\x31\x55\x0a\x06\xed\x4f\xf8\xb7"
6399 "\x4f\xe3\x85\x17\x30\xbd\xd5\x20"
6400 "\xe7\x5b\xb2\x32\xcf\x6b\x16\x44"
6401 "\xd2\xf5\x7e\xd7\xd1\x2f\xee\x64"
6402 "\x3e\x9d\x10\xef\x27\x35\x43\x64"
6403 "\x67\xfb\x7a\x7b\xe0\x62\x31\x9a"
6404 "\x4d\xdf\xa5\xab\xc0\x20\xbb\x01"
6405 "\xe9\x7b\x54\xf1\xde\xb2\x79\x50"
6406 "\x6c\x4b\x91\xdb\x7f\xbb\x50\xc1"
6407 "\x55\x44\x38\x9a\xe0\x9f\xe8\x29"
6408 "\x6f\x15\xf8\x4e\xa6\xec\xa0\x60",
6409 .ksize = 1088,
6410 .plaintext = "\x15\x68\x9e\x2f\xad\x15\x52\xdf"
6411 "\xf0\x42\x62\x24\x2a\x2d\xea\xbf"
6412 "\xc7\xf3\xb4\x1a\xf5\xed\xb2\x08"
6413 "\x15\x60\x1c\x00\x77\xbf\x0b\x0e"
6414 "\xb7\x2c\xcf\x32\x3a\xc7\x01\x77"
6415 "\xef\xa6\x75\xd0\x29\xc7\x68\x20"
6416 "\xb2\x92\x25\xbf\x12\x34\xe9\xa4"
6417 "\xfd\x32\x7b\x3f\x7c\xbd\xa5\x02"
6418 "\x38\x41\xde\xc9\xc1\x09\xd9\xfc"
6419 "\x6e\x78\x22\x83\x18\xf7\x50\x8d"
6420 "\x8f\x9c\x2d\x02\xa5\x30\xac\xff"
6421 "\xea\x63\x2e\x80\x37\x83\xb0\x58"
6422 "\xda\x2f\xef\x21\x55\xba\x7b\xb1"
6423 "\xb6\xed\xf5\xd2\x4d\xaa\x8c\xa9"
6424 "\xdd\xdb\x0f\xb4\xce\xc1\x9a\xb1"
6425 "\xc1\xdc\xbd\xab\x86\xc2\xdf\x0b"
6426 "\xe1\x2c\xf9\xbe\xf6\xd8\xda\x62"
6427 "\x72\xdd\x98\x09\x52\xc0\xc4\xb6"
6428 "\x7b\x17\x5c\xf5\xd8\x4b\x88\xd6"
6429 "\x6b\xbf\x84\x4a\x3f\xf5\x4d\xd2"
6430 "\x94\xe2\x9c\xff\xc7\x3c\xd9\xc8"
6431 "\x37\x38\xbc\x8c\xf3\xe7\xb7\xd0"
6432 "\x1d\x78\xc4\x39\x07\xc8\x5e\x79"
6433 "\xb6\x5a\x90\x5b\x6e\x97\xc9\xd4"
6434 "\x82\x9c\xf3\x83\x7a\xe7\x97\xfc"
6435 "\x1d\xbb\xef\xdb\xce\xe0\x82\xad"
6436 "\xca\x07\x6c\x54\x62\x6f\x81\xe6"
6437 "\x7a\x5a\x96\x6e\x80\x3a\xa2\x37"
6438 "\x6f\xc6\xa4\x29\xc3\x9e\x19\x94"
6439 "\x9f\xb0\x3e\x38\xfb\x3c\x2b\x7d"
6440 "\xaa\xb8\x74\xda\x54\x23\x51\x12"
6441 "\x4b\x96\x36\x8f\x91\x4f\x19\x37"
6442 "\x83\xc9\xdd\xc7\x1a\x32\x2d\xab"
6443 "\xc7\x89\xe2\x07\x47\x6c\xe8\xa6"
6444 "\x70\x6b\x8e\x0c\xda\x5c\x6a\x59"
6445 "\x27\x33\x0e\xe1\xe1\x20\xe8\xc8"
6446 "\xae\xdc\xd0\xe3\x6d\xa8\xa6\x06"
6447 "\x41\xb4\xd4\xd4\xcf\x91\x3e\x06"
6448 "\xb0\x9a\xf7\xf1\xaa\xa6\x23\x92"
6449 "\x10\x86\xf0\x94\xd1\x7c\x2e\x07"
6450 "\x30\xfb\xc5\xd8\xf3\x12\xa9\xe8"
6451 "\x22\x1c\x97\x1a\xad\x96\xb0\xa1"
6452 "\x72\x6a\x6b\xb4\xfd\xf7\xe8\xfa"
6453 "\xe2\x74\xd8\x65\x8d\x35\x17\x4b"
6454 "\x00\x23\x5c\x8c\x70\xad\x71\xa2"
6455 "\xca\xc5\x6c\x59\xbf\xb4\xc0\x6d"
6456 "\x86\x98\x3e\x19\x5a\x90\x92\xb1"
6457 "\x66\x57\x6a\x91\x68\x7c\xbc\xf3"
6458 "\xf1\xdb\x94\xf8\x48\xf1\x36\xd8"
6459 "\x78\xac\x1c\xa9\xcc\xd6\x27\xba"
6460 "\x91\x54\x22\xf5\xe6\x05\x3f\xcc"
6461 "\xc2\x8f\x2c\x3b\x2b\xc3\x2b\x2b"
6462 "\x3b\xb8\xb6\x29\xb7\x2f\x94\xb6"
6463 "\x7b\xfc\x94\x3e\xd0\x7a\x41\x59"
6464 "\x7b\x1f\x9a\x09\xa6\xed\x4a\x82"
6465 "\x9d\x34\x1c\xbd\x4e\x1c\x3a\x66"
6466 "\x80\x74\x0e\x9a\x4f\x55\x54\x47"
6467 "\x16\xba\x2a\x0a\x03\x35\x99\xa3"
6468 "\x5c\x63\x8d\xa2\x72\x8b\x17\x15"
6469 "\x68\x39\x73\xeb\xec\xf2\xe8\xf5"
6470 "\x95\x32\x27\xd6\xc4\xfe\xb0\x51"
6471 "\xd5\x0c\x50\xc5\xcd\x6d\x16\xb3"
6472 "\xa3\x1e\x95\x69\xad\x78\x95\x06"
6473 "\xb9\x46\xf2\x6d\x24\x5a\x99\x76"
6474 "\x73\x6a\x91\xa6\xac\x12\xe1\x28"
6475 "\x79\xbc\x08\x4e\x97\x00\x98\x63"
6476 "\x07\x1c\x4e\xd1\x68\xf3\xb3\x81"
6477 "\xa8\xa6\x5f\xf1\x01\xc9\xc1\xaf"
6478 "\x3a\x96\xf9\x9d\xb5\x5a\x5f\x8f"
6479 "\x7e\xc1\x7e\x77\x0a\x40\xc8\x8e"
6480 "\xfc\x0e\xed\xe1\x0d\xb0\xe5\x5e"
6481 "\x5e\x6f\xf5\x7f\xab\x33\x7d\xcd"
6482 "\xf0\x09\x4b\xb2\x11\x37\xdc\x65"
6483 "\x97\x32\x62\x71\x3a\x29\x54\xb9"
6484 "\xc7\xa4\xbf\x75\x0f\xf9\x40\xa9"
6485 "\x8d\xd7\x8b\xa7\xe0\x9a\xbe\x15"
6486 "\xc6\xda\xd8\x00\x14\x69\x1a\xaf"
6487 "\x5f\x79\xc3\xf5\xbb\x6c\x2a\x9d"
6488 "\xdd\x3c\x5f\x97\x21\xe1\x3a\x03"
6489 "\x84\x6a\xe9\x76\x11\x1f\xd3\xd5"
6490 "\xf0\x54\x20\x4d\xc2\x91\xc3\xa4"
6491 "\x36\x25\xbe\x1b\x2a\x06\xb7\xf3"
6492 "\xd1\xd0\x55\x29\x81\x4c\x83\xa3"
6493 "\xa6\x84\x1e\x5c\xd1\xd0\x6c\x90"
6494 "\xa4\x11\xf0\xd7\x63\x6a\x48\x05"
6495 "\xbc\x48\x18\x53\xcd\xb0\x8d\xdb"
6496 "\xdc\xfe\x55\x11\x5c\x51\xb3\xab"
6497 "\xab\x63\x3e\x31\x5a\x8b\x93\x63"
6498 "\x34\xa9\xba\x2b\x69\x1a\xc0\xe3"
6499 "\xcb\x41\xbc\xd7\xf5\x7f\x82\x3e"
6500 "\x01\xa3\x3c\x72\xf4\xfe\xdf\xbe"
6501 "\xb1\x67\x17\x2b\x37\x60\x0d\xca"
6502 "\x6f\xc3\x94\x2c\xd2\x92\x6d\x9d"
6503 "\x75\x18\x77\xaa\x29\x38\x96\xed"
6504 "\x0e\x20\x70\x92\xd5\xd0\xb4\x00"
6505 "\xc0\x31\xf2\xc9\x43\x0e\x75\x1d"
6506 "\x4b\x64\xf2\x1f\xf2\x29\x6c\x7b"
6507 "\x7f\xec\x59\x7d\x8c\x0d\xd4\xd3"
6508 "\xac\x53\x4c\xa3\xde\x42\x92\x95"
6509 "\x6d\xa3\x4f\xd0\xe6\x3d\xe7\xec"
6510 "\x7a\x4d\x68\xf1\xfe\x67\x66\x09"
6511 "\x83\x22\xb1\x98\x43\x8c\xab\xb8"
6512 "\x45\xe6\x6d\xdf\x5e\x50\x71\xce"
6513 "\xf5\x4e\x40\x93\x2b\xfa\x86\x0e"
6514 "\xe8\x30\xbd\x82\xcc\x1c\x9c\x5f"
6515 "\xad\xfd\x08\x31\xbe\x52\xe7\xe6"
6516 "\xf2\x06\x01\x62\x25\x15\x99\x74"
6517 "\x33\x51\x52\x57\x3f\x57\x87\x61"
6518 "\xb9\x7f\x29\x3d\xcd\x92\x5e\xa6"
6519 "\x5c\x3b\xf1\xed\x5f\xeb\x82\xed"
6520 "\x56\x7b\x61\xe7\xfd\x02\x47\x0e"
6521 "\x2a\x15\xa4\xce\x43\x86\x9b\xe1"
6522 "\x2b\x4c\x2a\xd9\x42\x97\xf7\x9a"
6523 "\xe5\x47\x46\x48\xd3\x55\x6f\x4d"
6524 "\xd9\xeb\x4b\xdd\x7b\x21\x2f\xb3"
6525 "\xa8\x36\x28\xdf\xca\xf1\xf6\xd9"
6526 "\x10\xf6\x1c\xfd\x2e\x0c\x27\xe0"
6527 "\x01\xb3\xff\x6d\x47\x08\x4d\xd4"
6528 "\x00\x25\xee\x55\x4a\xe9\xe8\x5b"
6529 "\xd8\xf7\x56\x12\xd4\x50\xb2\xe5"
6530 "\x51\x6f\x34\x63\x69\xd2\x4e\x96"
6531 "\x4e\xbc\x79\xbf\x18\xae\xc6\x13"
6532 "\x80\x92\x77\xb0\xb4\x0f\x29\x94"
6533 "\x6f\x4c\xbb\x53\x11\x36\xc3\x9f"
6534 "\x42\x8e\x96\x8a\x91\xc8\xe9\xfc"
6535 "\xfe\xbf\x7c\x2d\x6f\xf9\xb8\x44"
6536 "\x89\x1b\x09\x53\x0a\x2a\x92\xc3"
6537 "\x54\x7a\x3a\xf9\xe2\xe4\x75\x87"
6538 "\xa0\x5e\x4b\x03\x7a\x0d\x8a\xf4"
6539 "\x55\x59\x94\x2b\x63\x96\x0e\xf5",
6540 .psize = 1040,
6541 .digest = "\xb5\xb9\x08\xb3\x24\x3e\x03\xf0"
6542 "\xd6\x0b\x57\xbc\x0a\x6d\x89\x59",
6543 }, {
6544 .key = "\xf6\x34\x42\x71\x35\x52\x8b\x58"
6545 "\x02\x3a\x8e\x4a\x8d\x41\x13\xe9"
6546 "\x7f\xba\xb9\x55\x9d\x73\x4d\xf8"
6547 "\x3f\x5d\x73\x15\xff\xd3\x9e\x7f"
6548 "\x20\x2a\x6a\xa8\xd1\xf0\x8f\x12"
6549 "\x6b\x02\xd8\x6c\xde\xba\x80\x22"
6550 "\x19\x37\xc8\xd0\x4e\x89\x17\x7c"
6551 "\x7c\xdd\x88\xfd\x41\xc0\x04\xb7"
6552 "\x1d\xac\x19\xe3\x20\xc7\x16\xcf"
6553 "\x58\xee\x1d\x7a\x61\x69\xa9\x12"
6554 "\x4b\xef\x4f\xb6\x38\xdd\x78\xf8"
6555 "\x28\xee\x70\x08\xc7\x7c\xcc\xc8"
6556 "\x1e\x41\xf5\x80\x86\x70\xd0\xf0"
6557 "\xa3\x87\x6b\x0a\x00\xd2\x41\x28"
6558 "\x74\x26\xf1\x24\xf3\xd0\x28\x77"
6559 "\xd7\xcd\xf6\x2d\x61\xf4\xa2\x13"
6560 "\x77\xb4\x6f\xa0\xf4\xfb\xd6\xb5"
6561 "\x38\x9d\x5a\x0c\x51\xaf\xad\x63"
6562 "\x27\x67\x8c\x01\xea\x42\x1a\x66"
6563 "\xda\x16\x7c\x3c\x30\x0c\x66\x53"
6564 "\x1c\x88\xa4\x5c\xb2\xe3\x78\x0a"
6565 "\x13\x05\x6d\xe2\xaf\xb3\xe4\x75"
6566 "\x00\x99\x58\xee\x76\x09\x64\xaa"
6567 "\xbb\x2e\xb1\x81\xec\xd8\x0e\xd3"
6568 "\x0c\x33\x5d\xb7\x98\xef\x36\xb6"
6569 "\xd2\x65\x69\x41\x70\x12\xdc\x25"
6570 "\x41\x03\x99\x81\x41\x19\x62\x13"
6571 "\xd1\x0a\x29\xc5\x8c\xe0\x4c\xf3"
6572 "\xd6\xef\x4c\xf4\x1d\x83\x2e\x6d"
6573 "\x8e\x14\x87\xed\x80\xe0\xaa\xd3"
6574 "\x08\x04\x73\x1a\x84\x40\xf5\x64"
6575 "\xbd\x61\x32\x65\x40\x42\xfb\xb0"
6576 "\x40\xf6\x40\x8d\xc7\x7f\x14\xd0"
6577 "\x83\x99\xaa\x36\x7e\x60\xc6\xbf"
6578 "\x13\x8a\xf9\x21\xe4\x7e\x68\x87"
6579 "\xf3\x33\x86\xb4\xe0\x23\x7e\x0a"
6580 "\x21\xb1\xf5\xad\x67\x3c\x9c\x9d"
6581 "\x09\xab\xaf\x5f\xba\xe0\xd0\x82"
6582 "\x48\x22\x70\xb5\x6d\x53\xd6\x0e"
6583 "\xde\x64\x92\x41\xb0\xd3\xfb\xda"
6584 "\x21\xfe\xab\xea\x20\xc4\x03\x58"
6585 "\x18\x2e\x7d\x2f\x03\xa9\x47\x66"
6586 "\xdf\x7b\xa4\x6b\x34\x6b\x55\x9c"
6587 "\x4f\xd7\x9c\x47\xfb\xa9\x42\xec"
6588 "\x5a\x12\xfd\xfe\x76\xa0\x92\x9d"
6589 "\xfe\x1e\x16\xdd\x24\x2a\xe4\x27"
6590 "\xd5\xa9\xf2\x05\x4f\x83\xa2\xaf"
6591 "\xfe\xee\x83\x7a\xad\xde\xdf\x9a"
6592 "\x80\xd5\x81\x14\x93\x16\x7e\x46"
6593 "\x47\xc2\x14\xef\x49\x6e\xb9\xdb"
6594 "\x40\xe8\x06\x6f\x9c\x2a\xfd\x62"
6595 "\x06\x46\xfd\x15\x1d\x36\x61\x6f"
6596 "\x77\x77\x5e\x64\xce\x78\x1b\x85"
6597 "\xbf\x50\x9a\xfd\x67\xa6\x1a\x65"
6598 "\xad\x5b\x33\x30\xf1\x71\xaa\xd9"
6599 "\x23\x0d\x92\x24\x5f\xae\x57\xb0"
6600 "\x24\x37\x0a\x94\x12\xfb\xb5\xb1"
6601 "\xd3\xb8\x1d\x12\x29\xb0\x80\x24"
6602 "\x2d\x47\x9f\x96\x1f\x95\xf1\xb1"
6603 "\xda\x35\xf6\x29\xe0\xe1\x23\x96"
6604 "\xc7\xe8\x22\x9b\x7c\xac\xf9\x41"
6605 "\x39\x01\xe5\x73\x15\x5e\x99\xec"
6606 "\xb4\xc1\xf4\xe7\xa7\x97\x6a\xd5"
6607 "\x90\x9a\xa0\x1d\xf3\x5a\x8b\x5f"
6608 "\xdf\x01\x52\xa4\x93\x31\x97\xb0"
6609 "\x93\x24\xb5\xbc\xb2\x14\x24\x98"
6610 "\x4a\x8f\x19\x85\xc3\x2d\x0f\x74"
6611 "\x9d\x16\x13\x80\x5e\x59\x62\x62"
6612 "\x25\xe0\xd1\x2f\x64\xef\xba\xac"
6613 "\xcd\x09\x07\x15\x8a\xcf\x73\xb5"
6614 "\x8b\xc9\xd8\x24\xb0\x53\xd5\x6f"
6615 "\xe1\x2b\x77\xb1\xc5\xe4\xa7\x0e"
6616 "\x18\x45\xab\x36\x03\x59\xa8\xbd"
6617 "\x43\xf0\xd8\x2c\x1a\x69\x96\xbb"
6618 "\x13\xdf\x6c\x33\x77\xdf\x25\x34"
6619 "\x5b\xa5\x5b\x8c\xf9\x51\x05\xd4"
6620 "\x8b\x8b\x44\x87\x49\xfc\xa0\x8f"
6621 "\x45\x15\x5b\x40\x42\xc4\x09\x92"
6622 "\x98\x0c\x4d\xf4\x26\x37\x1b\x13"
6623 "\x76\x01\x93\x8d\x4f\xe6\xed\x18"
6624 "\xd0\x79\x7b\x3f\x44\x50\xcb\xee"
6625 "\xf7\x4a\xc9\x9e\xe0\x96\x74\xa7"
6626 "\xe6\x93\xb2\x53\xca\x55\xa8\xdc"
6627 "\x1e\x68\x07\x87\xb7\x2e\xc1\x08"
6628 "\xb2\xa4\x5b\xaf\xc6\xdb\x5c\x66"
6629 "\x41\x1c\x51\xd9\xb0\x07\x00\x0d"
6630 "\xf0\x4c\xdc\x93\xde\xa9\x1e\x8e"
6631 "\xd3\x22\x62\xd8\x8b\x88\x2c\xea"
6632 "\x5e\xf1\x6e\x14\x40\xc7\xbe\xaa"
6633 "\x42\x28\xd0\x26\x30\x78\x01\x9b"
6634 "\x83\x07\xbc\x94\xc7\x57\xa2\x9f"
6635 "\x03\x07\xff\x16\xff\x3c\x6e\x48"
6636 "\x0a\xd0\xdd\x4c\xf6\x64\x9a\xf1"
6637 "\xcd\x30\x12\x82\x2c\x38\xd3\x26"
6638 "\x83\xdb\xab\x3e\xc6\xf8\xe6\xfa"
6639 "\x77\x0a\x78\x82\x75\xf8\x63\x51"
6640 "\x59\xd0\x8d\x24\x9f\x25\xe6\xa3"
6641 "\x4c\xbc\x34\xfc\xe3\x10\xc7\x62"
6642 "\xd4\x23\xc8\x3d\xa7\xc6\xa6\x0a"
6643 "\x4f\x7e\x29\x9d\x6d\xbe\xb5\xf1"
6644 "\xdf\xa4\x53\xfa\xc0\x23\x0f\x37"
6645 "\x84\x68\xd0\xb5\xc8\xc6\xae\xf8"
6646 "\xb7\x8d\xb3\x16\xfe\x8f\x87\xad"
6647 "\xd0\xc1\x08\xee\x12\x1c\x9b\x1d"
6648 "\x90\xf8\xd1\x63\xa4\x92\x3c\xf0"
6649 "\xc7\x34\xd8\xf1\x14\xed\xa3\xbc"
6650 "\x17\x7e\xd4\x62\x42\x54\x57\x2c"
6651 "\x3e\x7a\x35\x35\x17\x0f\x0b\x7f"
6652 "\x81\xa1\x3f\xd0\xcd\xc8\x3b\x96"
6653 "\xe9\xe0\x4a\x04\xe1\xb6\x3c\xa1"
6654 "\xd6\xca\xc4\xbd\xb6\xb5\x95\x34"
6655 "\x12\x9d\xc5\x96\xf2\xdf\xba\x54"
6656 "\x76\xd1\xb2\x6b\x3b\x39\xe0\xb9"
6657 "\x18\x62\xfb\xf7\xfc\x12\xf1\x5f"
6658 "\x7e\xc7\xe3\x59\x4c\xa6\xc2\x3d"
6659 "\x40\x15\xf9\xa3\x95\x64\x4c\x74"
6660 "\x8b\x73\x77\x33\x07\xa7\x04\x1d"
6661 "\x33\x5a\x7e\x8f\xbd\x86\x01\x4f"
6662 "\x3e\xb9\x27\x6f\xe2\x41\xf7\x09"
6663 "\x67\xfd\x29\x28\xc5\xe4\xf6\x18"
6664 "\x4c\x1b\x49\xb2\x9c\x5b\xf6\x81"
6665 "\x4f\xbb\x5c\xcc\x0b\xdf\x84\x23"
6666 "\x58\xd6\x28\x34\x93\x3a\x25\x97"
6667 "\xdf\xb2\xc3\x9e\x97\x38\x0b\x7d"
6668 "\x10\xb3\x54\x35\x23\x8c\x64\xee"
6669 "\xf0\xd8\x66\xff\x8b\x22\xd2\x5b"
6670 "\x05\x16\x3c\x89\xf7\xb1\x75\xaf"
6671 "\xc0\xae\x6a\x4f\x3f\xaf\x9a\xf4"
6672 "\xf4\x9a\x24\xd9\x80\x82\xc0\x12"
6673 "\xde\x96\xd1\xbe\x15\x0b\x8d\x6a"
6674 "\xd7\x12\xe4\x85\x9f\x83\xc9\xc3"
6675 "\xff\x0b\xb5\xaf\x3b\xd8\x6d\x67"
6676 "\x81\x45\xe6\xac\xec\xc1\x7b\x16"
6677 "\x18\x0a\xce\x4b\xc0\x2e\x76\xbc"
6678 "\x1b\xfa\xb4\x34\xb8\xfc\x3e\xc8"
6679 "\x5d\x90\x71\x6d\x7a\x79\xef\x06",
6680 .ksize = 1088,
6681 .plaintext = "\xaa\x5d\x54\xcb\xea\x1e\x46\x0f"
6682 "\x45\x87\x70\x51\x8a\x66\x7a\x33"
6683 "\xb4\x18\xff\xa9\x82\xf9\x45\x4b"
6684 "\x93\xae\x2e\x7f\xab\x98\xfe\xbf"
6685 "\x01\xee\xe5\xa0\x37\x8f\x57\xa6"
6686 "\xb0\x76\x0d\xa4\xd6\x28\x2b\x5d"
6687 "\xe1\x03\xd6\x1c\x6f\x34\x0d\xe7"
6688 "\x61\x2d\x2e\xe5\xae\x5d\x47\xc7"
6689 "\x80\x4b\x18\x8f\xa8\x99\xbc\x28"
6690 "\xed\x1d\x9d\x86\x7d\xd7\x41\xd1"
6691 "\xe0\x2b\xe1\x8c\x93\x2a\xa7\x80"
6692 "\xe1\x07\xa0\xa9\x9f\x8c\x8d\x1a"
6693 "\x55\xfc\x6b\x24\x7a\xbd\x3e\x51"
6694 "\x68\x4b\x26\x59\xc8\xa7\x16\xd9"
6695 "\xb9\x61\x13\xde\x8b\x63\x1c\xf6"
6696 "\x60\x01\xfb\x08\xb3\x5b\x0a\xbf"
6697 "\x34\x73\xda\x87\x87\x3d\x6f\x97"
6698 "\x4a\x0c\xa3\x58\x20\xa2\xc0\x81"
6699 "\x5b\x8c\xef\xa9\xc2\x01\x1e\x64"
6700 "\x83\x8c\xbc\x03\xb6\xd0\x29\x9f"
6701 "\x54\xe2\xce\x8b\xc2\x07\x85\x78"
6702 "\x25\x38\x96\x4c\xb4\xbe\x17\x4a"
6703 "\x65\xa6\xfa\x52\x9d\x66\x9d\x65"
6704 "\x4a\xd1\x01\x01\xf0\xcb\x13\xcc"
6705 "\xa5\x82\xf3\xf2\x66\xcd\x3f\x9d"
6706 "\xd1\xaa\xe4\x67\xea\xf2\xad\x88"
6707 "\x56\x76\xa7\x9b\x59\x3c\xb1\x5d"
6708 "\x78\xfd\x69\x79\x74\x78\x43\x26"
6709 "\x7b\xde\x3f\xf1\xf5\x4e\x14\xd9"
6710 "\x15\xf5\x75\xb5\x2e\x19\xf3\x0c"
6711 "\x48\x72\xd6\x71\x6d\x03\x6e\xaa"
6712 "\xa7\x08\xf9\xaa\x70\xa3\x0f\x4d"
6713 "\x12\x8a\xdd\xe3\x39\x73\x7e\xa7"
6714 "\xea\x1f\x6d\x06\x26\x2a\xf2\xc5"
6715 "\x52\xb4\xbf\xfd\x52\x0c\x06\x60"
6716 "\x90\xd1\xb2\x7b\x56\xae\xac\x58"
6717 "\x5a\x6b\x50\x2a\xf5\xe0\x30\x3c"
6718 "\x2a\x98\x0f\x1b\x5b\x0a\x84\x6c"
6719 "\x31\xae\x92\xe2\xd4\xbb\x7f\x59"
6720 "\x26\x10\xb9\x89\x37\x68\x26\xbf"
6721 "\x41\xc8\x49\xc4\x70\x35\x7d\xff"
6722 "\x2d\x7f\xf6\x8a\x93\x68\x8c\x78"
6723 "\x0d\x53\xce\x7d\xff\x7d\xfb\xae"
6724 "\x13\x1b\x75\xc4\x78\xd7\x71\xd8"
6725 "\xea\xd3\xf4\x9d\x95\x64\x8e\xb4"
6726 "\xde\xb8\xe4\xa6\x68\xc8\xae\x73"
6727 "\x58\xaf\xa8\xb0\x5a\x20\xde\x87"
6728 "\x43\xb9\x0f\xe3\xad\x41\x4b\xd5"
6729 "\xb7\xad\x16\x00\xa6\xff\xf6\x74"
6730 "\xbf\x8c\x9f\xb3\x58\x1b\xb6\x55"
6731 "\xa9\x90\x56\x28\xf0\xb5\x13\x4e"
6732 "\x9e\xf7\x25\x86\xe0\x07\x7b\x98"
6733 "\xd8\x60\x5d\x38\x95\x3c\xe4\x22"
6734 "\x16\x2f\xb2\xa2\xaf\xe8\x90\x17"
6735 "\xec\x11\x83\x1a\xf4\xa9\x26\xda"
6736 "\x39\x72\xf5\x94\x61\x05\x51\xec"
6737 "\xa8\x30\x8b\x2c\x13\xd0\x72\xac"
6738 "\xb9\xd2\xa0\x4c\x4b\x78\xe8\x6e"
6739 "\x04\x85\xe9\x04\x49\x82\x91\xff"
6740 "\x89\xe5\xab\x4c\xaa\x37\x03\x12"
6741 "\xca\x8b\x74\x10\xfd\x9e\xd9\x7b"
6742 "\xcb\xdb\x82\x6e\xce\x2e\x33\x39"
6743 "\xce\xd2\x84\x6e\x34\x71\x51\x6e"
6744 "\x0d\xd6\x01\x87\xc7\xfa\x0a\xd3"
6745 "\xad\x36\xf3\x4c\x9f\x96\x5e\x62"
6746 "\x62\x54\xc3\x03\x78\xd6\xab\xdd"
6747 "\x89\x73\x55\x25\x30\xf8\xa7\xe6"
6748 "\x4f\x11\x0c\x7c\x0a\xa1\x2b\x7b"
6749 "\x3d\x0d\xde\x81\xd4\x9d\x0b\xae"
6750 "\xdf\x00\xf9\x4c\xb6\x90\x8e\x16"
6751 "\xcb\x11\xc8\xd1\x2e\x73\x13\x75"
6752 "\x75\x3e\xaa\xf5\xee\x02\xb3\x18"
6753 "\xa6\x2d\xf5\x3b\x51\xd1\x1f\x47"
6754 "\x6b\x2c\xdb\xc4\x10\xe0\xc8\xba"
6755 "\x9d\xac\xb1\x9d\x75\xd5\x41\x0e"
6756 "\x7e\xbe\x18\x5b\xa4\x1f\xf8\x22"
6757 "\x4c\xc1\x68\xda\x6d\x51\x34\x6c"
6758 "\x19\x59\xec\xb5\xb1\xec\xa7\x03"
6759 "\xca\x54\x99\x63\x05\x6c\xb1\xac"
6760 "\x9c\x31\xd6\xdb\xba\x7b\x14\x12"
6761 "\x7a\xc3\x2f\xbf\x8d\xdc\x37\x46"
6762 "\xdb\xd2\xbc\xd4\x2f\xab\x30\xd5"
6763 "\xed\x34\x99\x8e\x83\x3e\xbe\x4c"
6764 "\x86\x79\x58\xe0\x33\x8d\x9a\xb8"
6765 "\xa9\xa6\x90\x46\xa2\x02\xb8\xdd"
6766 "\xf5\xf9\x1a\x5c\x8c\x01\xaa\x6e"
6767 "\xb4\x22\x12\xf5\x0c\x1b\x9b\x7a"
6768 "\xc3\x80\xf3\x06\x00\x5f\x30\xd5"
6769 "\x06\xdb\x7d\x82\xc2\xd4\x0b\x4c"
6770 "\x5f\xe9\xc5\xf5\xdf\x97\x12\xbf"
6771 "\x56\xaf\x9b\x69\xcd\xee\x30\xb4"
6772 "\xa8\x71\xff\x3e\x7d\x73\x7a\xb4"
6773 "\x0d\xa5\x46\x7a\xf3\xf4\x15\x87"
6774 "\x5d\x93\x2b\x8c\x37\x64\xb5\xdd"
6775 "\x48\xd1\xe5\x8c\xae\xd4\xf1\x76"
6776 "\xda\xf4\xba\x9e\x25\x0e\xad\xa3"
6777 "\x0d\x08\x7c\xa8\x82\x16\x8d\x90"
6778 "\x56\x40\x16\x84\xe7\x22\x53\x3a"
6779 "\x58\xbc\xb9\x8f\x33\xc8\xc2\x84"
6780 "\x22\xe6\x0d\xe7\xb3\xdc\x5d\xdf"
6781 "\xd7\x2a\x36\xe4\x16\x06\x07\xd2"
6782 "\x97\x60\xb2\xf5\x5e\x14\xc9\xfd"
6783 "\x8b\x05\xd1\xce\xee\x9a\x65\x99"
6784 "\xb7\xae\x19\xb7\xc8\xbc\xd5\xa2"
6785 "\x7b\x95\xe1\xcc\xba\x0d\xdc\x8a"
6786 "\x1d\x59\x52\x50\xaa\x16\x02\x82"
6787 "\xdf\x61\x33\x2e\x44\xce\x49\xc7"
6788 "\xe5\xc6\x2e\x76\xcf\x80\x52\xf0"
6789 "\x3d\x17\x34\x47\x3f\xd3\x80\x48"
6790 "\xa2\xba\xd5\xc7\x7b\x02\x28\xdb"
6791 "\xac\x44\xc7\x6e\x05\x5c\xc2\x79"
6792 "\xb3\x7d\x6a\x47\x77\x66\xf1\x38"
6793 "\xf0\xf5\x4f\x27\x1a\x31\xca\x6c"
6794 "\x72\x95\x92\x8e\x3f\xb0\xec\x1d"
6795 "\xc7\x2a\xff\x73\xee\xdf\x55\x80"
6796 "\x93\xd2\xbd\x34\xd3\x9f\x00\x51"
6797 "\xfb\x2e\x41\xba\x6c\x5a\x7c\x17"
6798 "\x7f\xe6\x70\xac\x8d\x39\x3f\x77"
6799 "\xe2\x23\xac\x8f\x72\x4e\xe4\x53"
6800 "\xcc\xf1\x1b\xf1\x35\xfe\x52\xa4"
6801 "\xd6\xb8\x40\x6b\xc1\xfd\xa0\xa1"
6802 "\xf5\x46\x65\xc2\x50\xbb\x43\xe2"
6803 "\xd1\x43\x28\x34\x74\xf5\x87\xa0"
6804 "\xf2\x5e\x27\x3b\x59\x2b\x3e\x49"
6805 "\xdf\x46\xee\xaf\x71\xd7\x32\x36"
6806 "\xc7\x14\x0b\x58\x6e\x3e\x2d\x41"
6807 "\xfa\x75\x66\x3a\x54\xe0\xb2\xb9"
6808 "\xaf\xdd\x04\x80\x15\x19\x3f\x6f"
6809 "\xce\x12\xb4\xd8\xe8\x89\x3c\x05"
6810 "\x30\xeb\xf3\x3d\xcd\x27\xec\xdc"
6811 "\x56\x70\x12\xcf\x78\x2b\x77\xbf"
6812 "\x22\xf0\x1b\x17\x9c\xcc\xd6\x1b"
6813 "\x2d\x3d\xa0\x3b\xd8\xc9\x70\xa4"
6814 "\x7a\x3e\x07\xb9\x06\xc3\xfa\xb0"
6815 "\x33\xee\xc1\xd8\xf6\xe0\xf0\xb2"
6816 "\x61\x12\x69\xb0\x5f\x28\x99\xda"
6817 "\xc3\x61\x48\xfa\x07\x16\x03\xc4"
6818 "\xa8\xe1\x3c\xe8\x0e\x64\x15\x30"
6819 "\xc1\x9d\x84\x2f\x73\x98\x0e\x3a"
6820 "\xf2\x86\x21\xa4\x9e\x1d\xb5\x86"
6821 "\x16\xdb\x2b\x9a\x06\x64\x8e\x79"
6822 "\x8d\x76\x3e\xc3\xc2\x64\x44\xe3"
6823 "\xda\xbc\x1a\x52\xd7\x61\x03\x65"
6824 "\x54\x32\x77\x01\xed\x9d\x8a\x43"
6825 "\x25\x24\xe3\xc1\xbe\xb8\x2f\xcb"
6826 "\x89\x14\x64\xab\xf6\xa0\x6e\x02"
6827 "\x57\xe4\x7d\xa9\x4e\x9a\x03\x36"
6828 "\xad\xf1\xb1\xfc\x0b\xe6\x79\x51"
6829 "\x9f\x81\x77\xc4\x14\x78\x9d\xbf"
6830 "\xb6\xd6\xa3\x8c\xba\x0b\x26\xe7"
6831 "\xc8\xb9\x5c\xcc\xe1\x5f\xd5\xc6"
6832 "\xc4\xca\xc2\xa3\x45\xba\x94\x13"
6833 "\xb2\x8f\xc3\x54\x01\x09\xe7\x8b"
6834 "\xda\x2a\x0a\x11\x02\x43\xcb\x57"
6835 "\xc9\xcc\xb5\x5c\xab\xc4\xec\x54"
6836 "\x00\x06\x34\xe1\x6e\x03\x89\x7c"
6837 "\xc6\xfb\x6a\xc7\x60\x43\xd6\xc5"
6838 "\xb5\x68\x72\x89\x8f\x42\xc3\x74"
6839 "\xbd\x25\xaa\x9f\x67\xb5\xdf\x26"
6840 "\x20\xe8\xb7\x01\x3c\xe4\x77\xce"
6841 "\xc4\x65\xa7\x23\x79\xea\x33\xc7"
6842 "\x82\x14\x5c\x82\xf2\x4e\x3d\xf6"
6843 "\xc6\x4a\x0e\x29\xbb\xec\x44\xcd"
6844 "\x2f\xd1\x4f\x21\x71\xa9\xce\x0f"
6845 "\x5c\xf2\x72\x5c\x08\x2e\x21\xd2"
6846 "\xc3\x29\x13\xd8\xac\xc3\xda\x13"
6847 "\x1a\x9d\xa7\x71\x1d\x27\x1d\x27"
6848 "\x1d\xea\xab\x44\x79\xad\xe5\xeb"
6849 "\xef\x1f\x22\x0a\x44\x4f\xcb\x87"
6850 "\xa7\x58\x71\x0e\x66\xf8\x60\xbf"
6851 "\x60\x74\x4a\xb4\xec\x2e\xfe\xd3"
6852 "\xf5\xb8\xfe\x46\x08\x50\x99\x6c"
6853 "\x66\xa5\xa8\x34\x44\xb5\xe5\xf0"
6854 "\xdd\x2c\x67\x4e\x35\x96\x8e\x67"
6855 "\x48\x3f\x5f\x37\x44\x60\x51\x2e"
6856 "\x14\x91\x5e\x57\xc3\x0e\x79\x77"
6857 "\x2f\x03\xf4\xe2\x1c\x72\xbf\x85"
6858 "\x5d\xd3\x17\xdf\x6c\xc5\x70\x24"
6859 "\x42\xdf\x51\x4e\x2a\xb2\xd2\x5b"
6860 "\x9e\x69\x83\x41\x11\xfe\x73\x22"
6861 "\xde\x8a\x9e\xd8\x8a\xfb\x20\x38"
6862 "\xd8\x47\x6f\xd5\xed\x8f\x41\xfd"
6863 "\x13\x7a\x18\x03\x7d\x0f\xcd\x7d"
6864 "\xa6\x7d\x31\x9e\xf1\x8f\x30\xa3"
6865 "\x8b\x4c\x24\xb7\xf5\x48\xd7\xd9"
6866 "\x12\xe7\x84\x97\x5c\x31\x6d\xfb"
6867 "\xdf\xf3\xd3\xd1\xd5\x0c\x30\x06"
6868 "\x01\x6a\xbc\x6c\x78\x7b\xa6\x50"
6869 "\xfa\x0f\x3c\x42\x2d\xa5\xa3\x3b"
6870 "\xcf\x62\x50\xff\x71\x6d\xe7\xda"
6871 "\x27\xab\xc6\x67\x16\x65\x68\x64"
6872 "\xc7\xd5\x5f\x81\xa9\xf6\x65\xb3"
6873 "\x5e\x43\x91\x16\xcd\x3d\x55\x37"
6874 "\x55\xb3\xf0\x28\xc5\x54\x19\xc0"
6875 "\xe0\xd6\x2a\x61\xd4\xc8\x72\x51"
6876 "\xe9\xa1\x7b\x48\x21\xad\x44\x09"
6877 "\xe4\x01\x61\x3c\x8a\x5b\xf9\xa1"
6878 "\x6e\x1b\xdf\xc0\x04\xa8\x8b\xf2"
6879 "\x21\xbe\x34\x7b\xfc\xa1\xcd\xc9"
6880 "\xa9\x96\xf4\xa4\x4c\xf7\x4e\x8f"
6881 "\x84\xcc\xd3\xa8\x92\x77\x8f\x36"
6882 "\xe2\x2e\x8c\x33\xe8\x84\xa6\x0c"
6883 "\x6c\x8a\xda\x14\x32\xc2\x96\xff"
6884 "\xc6\x4a\xc2\x9b\x30\x7f\xd1\x29"
6885 "\xc0\xd5\x78\x41\x00\x80\x80\x03"
6886 "\x2a\xb1\xde\x26\x03\x48\x49\xee"
6887 "\x57\x14\x76\x51\x3c\x36\x5d\x0a"
6888 "\x5c\x9f\xe8\xd8\x53\xdb\x4f\xd4"
6889 "\x38\xbf\x66\xc9\x75\x12\x18\x75"
6890 "\x34\x2d\x93\x22\x96\x51\x24\x6e"
6891 "\x4e\xd9\x30\xea\x67\xff\x92\x1c"
6892 "\x16\x26\xe9\xb5\x33\xab\x8c\x22"
6893 "\x47\xdb\xa0\x2c\x08\xf0\x12\x69"
6894 "\x7e\x93\x52\xda\xa5\xe5\xca\xc1"
6895 "\x0f\x55\x2a\xbd\x09\x30\x88\x1b"
6896 "\x9c\xc6\x9f\xe6\xdb\xa6\x92\xeb"
6897 "\xf4\xbd\x5c\xc4\xdb\xc6\x71\x09"
6898 "\xab\x5e\x48\x0c\xed\x6f\xda\x8e"
6899 "\x8d\x0c\x98\x71\x7d\x10\xd0\x9c"
6900 "\x20\x9b\x79\x53\x26\x5d\xb9\x85"
6901 "\x8a\x31\xb8\xc5\x1c\x97\xde\x88"
6902 "\x61\x55\x7f\x7c\x21\x06\xea\xc4"
6903 "\x5f\xaf\xf2\xf0\xd5\x5e\x7d\xb4"
6904 "\x6e\xcf\xe9\xae\x1b\x0e\x11\x80"
6905 "\xc1\x9a\x74\x7e\x52\x6f\xa0\xb7"
6906 "\x24\xcd\x8d\x0a\x11\x40\x63\x72"
6907 "\xfa\xe2\xc5\xb3\x94\xef\x29\xa2"
6908 "\x1a\x23\x43\x04\x37\x55\x0d\xe9"
6909 "\x83\xb2\x29\x51\x49\x64\xa0\xbd"
6910 "\xde\x73\xfd\xa5\x7c\x95\x70\x62"
6911 "\x58\xdc\xe2\xd0\xbf\x98\xf5\x8a"
6912 "\x6a\xfd\xce\xa8\x0e\x42\x2a\xeb"
6913 "\xd2\xff\x83\x27\x53\x5c\xa0\x6e"
6914 "\x93\xef\xe2\xb9\x5d\x35\xd6\x98"
6915 "\xf6\x71\x19\x7a\x54\xa1\xa7\xe8"
6916 "\x09\xfe\xf6\x9e\xc7\xbd\x3e\x29"
6917 "\xbd\x6b\x17\xf4\xe7\x3e\x10\x5c"
6918 "\xc1\xd2\x59\x4f\x4b\x12\x1a\x5b"
6919 "\x50\x80\x59\xb9\xec\x13\x66\xa8"
6920 "\xd2\x31\x7b\x6a\x61\x22\xdd\x7d"
6921 "\x61\xee\x87\x16\x46\x9f\xf9\xc7"
6922 "\x41\xee\x74\xf8\xd0\x96\x2c\x76"
6923 "\x2a\xac\x7d\x6e\x9f\x0e\x7f\x95"
6924 "\xfe\x50\x16\xb2\x23\xca\x62\xd5"
6925 "\x68\xcf\x07\x3f\x3f\x97\x85\x2a"
6926 "\x0c\x25\x45\xba\xdb\x32\xcb\x83"
6927 "\x8c\x4f\xe0\x6d\x9a\x99\xf9\xc9"
6928 "\xda\xd4\x19\x31\xc1\x7c\x6d\xd9"
6929 "\x9c\x56\xd3\xec\xc1\x81\x4c\xed"
6930 "\x28\x9d\x87\xeb\x19\xd7\x1a\x4f"
6931 "\x04\x6a\xcb\x1f\xcf\x1f\xa2\x16"
6932 "\xfc\x2a\x0d\xa1\x14\x2d\xfa\xc5"
6933 "\x5a\xd2\xc5\xf9\x19\x7c\x20\x1f"
6934 "\x2d\x10\xc0\x66\x7c\xd9\x2d\xe5"
6935 "\x88\x70\x59\xa7\x85\xd5\x2e\x7c"
6936 "\x5c\xe3\xb7\x12\xd6\x97\x3f\x29",
6937 .psize = 2048,
6938 .digest = "\x37\x90\x92\xc2\xeb\x01\x87\xd9"
6939 "\x95\xc7\x91\xc3\x17\x8b\x38\x52",
6940 }
6941};
6942
6943
Martin Willieee9dc62015-06-01 13:43:59 +02006944/*
Herbert Xuda7f0332008-07-31 17:08:25 +08006945 * DES test vectors.
6946 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006947static const struct cipher_testvec des_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08006948 { /* From Applied Cryptography */
6949 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6950 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006951 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
6952 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
6953 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006954 }, { /* Same key, different plaintext block */
6955 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6956 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006957 .ptext = "\x22\x33\x44\x55\x66\x77\x88\x99",
6958 .ctext = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
6959 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006960 }, { /* Sbox test from NBS */
6961 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
6962 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006963 .ptext = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
6964 .ctext = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
6965 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006966 }, { /* Three blocks */
6967 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6968 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006969 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08006970 "\x22\x33\x44\x55\x66\x77\x88\x99"
6971 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006972 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08006973 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
6974 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006975 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08006976 }, { /* Weak key */
David Howells09e21782015-04-28 15:36:36 +01006977 .fail = true,
Herbert Xuda7f0332008-07-31 17:08:25 +08006978 .wk = 1,
6979 .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
6980 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006981 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
6982 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
6983 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006984 }, { /* Two blocks -- for testing encryption across pages */
6985 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6986 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006987 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08006988 "\x22\x33\x44\x55\x66\x77\x88\x99",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006989 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08006990 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006991 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08006992 .np = 2,
6993 .tap = { 8, 8 }
Eric Biggers097012e2018-05-20 22:50:25 -07006994 }, {
6995 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6996 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006997 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Eric Biggers097012e2018-05-20 22:50:25 -07006998 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006999 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Eric Biggers097012e2018-05-20 22:50:25 -07007000 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007001 .len = 16,
Eric Biggers097012e2018-05-20 22:50:25 -07007002 .np = 2,
7003 .tap = { 8, 8 }
7004 }, {
7005 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7006 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007007 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Eric Biggers097012e2018-05-20 22:50:25 -07007008 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007009 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Eric Biggers097012e2018-05-20 22:50:25 -07007010 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007011 .len = 16,
Eric Biggers097012e2018-05-20 22:50:25 -07007012 .np = 3,
7013 .tap = { 3, 12, 1 }
Herbert Xuda7f0332008-07-31 17:08:25 +08007014 }, { /* Four blocks -- for testing encryption with chunking */
7015 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7016 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007017 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08007018 "\x22\x33\x44\x55\x66\x77\x88\x99"
7019 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
7020 "\x22\x33\x44\x55\x66\x77\x88\x99",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007021 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08007022 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
7023 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
7024 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007025 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +08007026 .np = 3,
7027 .tap = { 14, 10, 8 }
7028 }, {
7029 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7030 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007031 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08007032 "\x22\x33\x44\x55\x66\x77\x88\x99"
7033 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007034 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08007035 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
7036 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007037 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08007038 .np = 4,
7039 .tap = { 2, 1, 3, 18 }
7040 }, {
7041 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7042 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007043 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08007044 "\x22\x33\x44\x55\x66\x77\x88\x99",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007045 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08007046 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007047 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08007048 .np = 5,
7049 .tap = { 2, 2, 2, 2, 8 }
7050 }, {
7051 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7052 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007053 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
7054 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
7055 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007056 .np = 8,
7057 .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007058 }, { /* Generated with Crypto++ */
7059 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
7060 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007061 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007062 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
7063 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
7064 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
7065 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
7066 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
7067 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
7068 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
7069 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
7070 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
7071 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
7072 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
7073 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
7074 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
7075 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
7076 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
7077 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
7078 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
7079 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
7080 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
7081 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
7082 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
7083 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
7084 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
7085 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
7086 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
7087 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
7088 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
7089 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
7090 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
7091 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007092 .ctext = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007093 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
7094 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
7095 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
7096 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
7097 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
7098 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
7099 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
7100 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
7101 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
7102 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
7103 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
7104 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
7105 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
7106 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
7107 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
7108 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
7109 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
7110 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
7111 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
7112 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
7113 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
7114 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
7115 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
7116 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
7117 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
7118 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
7119 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
7120 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
7121 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
7122 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007123 .len = 248,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007124 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02007125 .np = 3,
7126 .tap = { 248 - 10, 2, 8 },
Herbert Xuda7f0332008-07-31 17:08:25 +08007127 },
7128};
7129
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007130static const struct cipher_testvec des_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08007131 { /* From OpenSSL */
7132 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7133 .klen = 8,
7134 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007135 .ptext = "\x37\x36\x35\x34\x33\x32\x31\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +08007136 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7137 "\x68\x65\x20\x74\x69\x6d\x65\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007138 .ctext = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
Herbert Xuda7f0332008-07-31 17:08:25 +08007139 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
7140 "\x46\x8e\x91\x15\x78\x88\xba\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007141 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08007142 }, { /* FIPS Pub 81 */
7143 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7144 .klen = 8,
7145 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007146 .ptext = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
7147 .ctext = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
7148 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007149 }, {
7150 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7151 .klen = 8,
7152 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007153 .ptext = "\x68\x65\x20\x74\x69\x6d\x65\x20",
7154 .ctext = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
7155 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007156 }, {
7157 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7158 .klen = 8,
7159 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007160 .ptext = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
7161 .ctext = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
7162 .len = 8,
Eric Biggers17880f12018-05-20 22:50:26 -07007163 .np = 2,
7164 .tap = { 4, 4 },
7165 .also_non_np = 1,
Herbert Xuda7f0332008-07-31 17:08:25 +08007166 }, { /* Copy of openssl vector for chunk testing */
7167 /* From OpenSSL */
7168 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7169 .klen = 8,
7170 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007171 .ptext = "\x37\x36\x35\x34\x33\x32\x31\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +08007172 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7173 "\x68\x65\x20\x74\x69\x6d\x65\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007174 .ctext = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
Herbert Xuda7f0332008-07-31 17:08:25 +08007175 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
7176 "\x46\x8e\x91\x15\x78\x88\xba\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007177 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08007178 .np = 2,
7179 .tap = { 13, 11 }
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007180 }, { /* Generated with Crypto++ */
7181 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
7182 .klen = 8,
7183 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007184 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007185 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
7186 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
7187 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
7188 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
7189 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
7190 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
7191 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
7192 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
7193 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
7194 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
7195 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
7196 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
7197 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
7198 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
7199 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
7200 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
7201 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
7202 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
7203 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
7204 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
7205 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
7206 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
7207 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
7208 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
7209 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
7210 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
7211 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
7212 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
7213 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
7214 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007215 .ctext = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007216 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
7217 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
7218 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
7219 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
7220 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
7221 "\x81\x72\x74\xDE\x30\x19\x69\x49"
7222 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
7223 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
7224 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
7225 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
7226 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
7227 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
7228 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
7229 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
7230 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
7231 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
7232 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
7233 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
7234 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
7235 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
7236 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
7237 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
7238 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
7239 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
7240 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
7241 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
7242 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
7243 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
7244 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
7245 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007246 .len = 248,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007247 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02007248 .np = 3,
7249 .tap = { 248 - 10, 2, 8 },
Herbert Xuda7f0332008-07-31 17:08:25 +08007250 },
7251};
7252
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007253static const struct cipher_testvec des_ctr_tv_template[] = {
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007254 { /* Generated with Crypto++ */
7255 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
7256 .klen = 8,
7257 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007258 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007259 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
7260 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
7261 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
7262 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
7263 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
7264 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
7265 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
7266 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
7267 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
7268 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
7269 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
7270 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
7271 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
7272 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
7273 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
7274 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
7275 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
7276 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
7277 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
7278 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
7279 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
7280 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
7281 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
7282 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
7283 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
7284 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
7285 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
7286 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
7287 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
7288 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007289 .ctext = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007290 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
7291 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
7292 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
7293 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
7294 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
7295 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
7296 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
7297 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
7298 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
7299 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
7300 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
7301 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
7302 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
7303 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
7304 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
7305 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
7306 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
7307 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
7308 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
7309 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
7310 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
7311 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
7312 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
7313 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
7314 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
7315 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
7316 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
7317 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
7318 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
7319 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007320 .len = 248,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007321 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02007322 .np = 3,
7323 .tap = { 248 - 10, 2, 8 },
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007324 }, { /* Generated with Crypto++ */
7325 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
7326 .klen = 8,
7327 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007328 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007329 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
7330 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
7331 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
7332 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
7333 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
7334 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
7335 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
7336 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
7337 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
7338 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
7339 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
7340 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
7341 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
7342 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
7343 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
7344 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
7345 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
7346 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
7347 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
7348 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
7349 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
7350 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
7351 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
7352 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
7353 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
7354 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
7355 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
7356 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
7357 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
7358 "\xC6\x2F\xBB\x24\x8D\x19\x82",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007359 .ctext = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007360 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
7361 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
7362 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
7363 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
7364 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
7365 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
7366 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
7367 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
7368 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
7369 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
7370 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
7371 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
7372 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
7373 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
7374 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
7375 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
7376 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
7377 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
7378 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
7379 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
7380 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
7381 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
7382 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
7383 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
7384 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
7385 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
7386 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
7387 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
7388 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
7389 "\x91\x45\x05\x3E\x58\xBF\x32",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007390 .len = 247,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007391 .also_non_np = 1,
7392 .np = 2,
7393 .tap = { 247 - 8, 8 },
7394 },
7395};
7396
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007397static const struct cipher_testvec des3_ede_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08007398 { /* These are from openssl */
7399 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7400 "\x55\x55\x55\x55\x55\x55\x55\x55"
7401 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7402 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007403 .ptext = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
7404 .ctext = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
7405 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007406 }, {
7407 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
7408 "\x86\x02\x87\x66\x59\x08\x21\x98"
7409 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
7410 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007411 .ptext = "\x73\x71\x75\x69\x67\x67\x6c\x65",
7412 .ctext = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
7413 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007414 }, {
7415 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
7416 "\x91\x07\xd0\x15\x89\x19\x01\x01"
7417 "\x19\x07\x92\x10\x98\x1a\x01\x01",
7418 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007419 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
7420 .ctext = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
7421 .len = 8,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007422 }, { /* Generated with Crypto++ */
7423 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
7424 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
7425 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
7426 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007427 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007428 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
7429 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
7430 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
7431 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
7432 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
7433 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
7434 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
7435 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
7436 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
7437 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
7438 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
7439 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
7440 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
7441 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
7442 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
7443 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
7444 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
7445 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
7446 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
7447 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
7448 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
7449 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
7450 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
7451 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
7452 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
7453 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
7454 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
7455 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
7456 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
7457 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
7458 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
7459 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
7460 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
7461 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
7462 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
7463 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
7464 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
7465 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
7466 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
7467 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
7468 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
7469 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
7470 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
7471 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
7472 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
7473 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
7474 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
7475 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
7476 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
7477 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
7478 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
7479 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
7480 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
7481 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
7482 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
7483 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
7484 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
7485 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
7486 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
7487 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
7488 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007489 .ctext = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007490 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
7491 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
7492 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
7493 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
7494 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
7495 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
7496 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
7497 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
7498 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
7499 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
7500 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
7501 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
7502 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
7503 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
7504 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
7505 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
7506 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
7507 "\x45\x86\x50\x01\x70\x35\x99\x92"
7508 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
7509 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
7510 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
7511 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
7512 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
7513 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
7514 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
7515 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
7516 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
7517 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
7518 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
7519 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
7520 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
7521 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
7522 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
7523 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
7524 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
7525 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
7526 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
7527 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
7528 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
7529 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
7530 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
7531 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
7532 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
7533 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
7534 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
7535 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
7536 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
7537 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
7538 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
7539 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
7540 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
7541 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
7542 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
7543 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
7544 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
7545 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
7546 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
7547 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
7548 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
7549 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
7550 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007551 .len = 496,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007552 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02007553 .np = 3,
7554 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08007555 },
7556};
7557
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007558static const struct cipher_testvec des3_ede_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08007559 { /* Generated from openssl */
7560 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
7561 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
7562 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
7563 .klen = 24,
7564 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007565 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Herbert Xuda7f0332008-07-31 17:08:25 +08007566 "\x53\x20\x63\x65\x65\x72\x73\x74"
7567 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
7568 "\x20\x79\x65\x53\x72\x63\x74\x65"
7569 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
7570 "\x79\x6e\x53\x20\x63\x65\x65\x72"
7571 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
7572 "\x6e\x61\x20\x79\x65\x53\x72\x63"
7573 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
7574 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
7575 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
7576 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
7577 "\x72\x63\x74\x65\x20\x73\x6f\x54"
7578 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
7579 "\x63\x65\x65\x72\x73\x74\x54\x20"
7580 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007581 .ctext = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
Herbert Xuda7f0332008-07-31 17:08:25 +08007582 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
7583 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
7584 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
7585 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
7586 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
7587 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
7588 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
7589 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
7590 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
7591 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
7592 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
7593 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
7594 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
7595 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
7596 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007597 .len = 128,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007598 }, { /* Generated with Crypto++ */
7599 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
7600 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
7601 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
7602 .klen = 24,
7603 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
7604 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007605 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007606 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
7607 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
7608 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
7609 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
7610 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
7611 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
7612 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
7613 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
7614 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
7615 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
7616 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
7617 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
7618 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
7619 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
7620 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
7621 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
7622 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
7623 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
7624 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
7625 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
7626 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
7627 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
7628 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
7629 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
7630 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
7631 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
7632 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
7633 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
7634 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
7635 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
7636 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
7637 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
7638 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
7639 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
7640 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
7641 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
7642 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
7643 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
7644 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
7645 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
7646 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
7647 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
7648 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
7649 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
7650 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
7651 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
7652 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
7653 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
7654 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
7655 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
7656 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
7657 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
7658 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
7659 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
7660 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
7661 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
7662 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
7663 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
7664 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
7665 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
7666 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007667 .ctext = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007668 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
7669 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
7670 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
7671 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
7672 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
7673 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
7674 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
7675 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
7676 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
7677 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
7678 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
7679 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
7680 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
7681 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
7682 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
7683 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
7684 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
7685 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
7686 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
7687 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
7688 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
7689 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
7690 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
7691 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
7692 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
7693 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
7694 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
7695 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
7696 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
7697 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
7698 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
7699 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
7700 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
7701 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
7702 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
7703 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
7704 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
7705 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
7706 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
7707 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
7708 "\x73\x50\x08\x56\x20\x9B\x94\x23"
7709 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
7710 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
7711 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
7712 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
7713 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
7714 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
7715 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
7716 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
7717 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
7718 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
7719 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
7720 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
7721 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
7722 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
7723 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
7724 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
7725 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
7726 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
7727 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
7728 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007729 .len = 496,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007730 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02007731 .np = 3,
7732 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08007733 },
7734};
7735
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007736static const struct cipher_testvec des3_ede_ctr_tv_template[] = {
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007737 { /* Generated with Crypto++ */
7738 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
7739 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
7740 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
7741 .klen = 24,
7742 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
7743 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007744 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007745 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
7746 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
7747 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
7748 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
7749 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
7750 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
7751 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
7752 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
7753 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
7754 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
7755 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
7756 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
7757 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
7758 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
7759 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
7760 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
7761 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
7762 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
7763 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
7764 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
7765 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
7766 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
7767 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
7768 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
7769 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
7770 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
7771 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
7772 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
7773 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
7774 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
7775 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
7776 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
7777 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
7778 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
7779 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
7780 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
7781 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
7782 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
7783 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
7784 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
7785 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
7786 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
7787 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
7788 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
7789 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
7790 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
7791 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
7792 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
7793 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
7794 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
7795 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
7796 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
7797 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
7798 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
7799 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
7800 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
7801 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
7802 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
7803 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
7804 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
7805 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007806 .ctext = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007807 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
7808 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
7809 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
7810 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
7811 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
7812 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
7813 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
7814 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
7815 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
7816 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
7817 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
7818 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
7819 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
7820 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
7821 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
7822 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
7823 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
7824 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
7825 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
7826 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
7827 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
7828 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
7829 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
7830 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
7831 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
7832 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
7833 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
7834 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
7835 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
7836 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
7837 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
7838 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
7839 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
7840 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
7841 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
7842 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
7843 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
7844 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
7845 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
7846 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
7847 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
7848 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
7849 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
7850 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
7851 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
7852 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
7853 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
7854 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
7855 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
7856 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
7857 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
7858 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
7859 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
7860 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
7861 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
7862 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
7863 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
7864 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
7865 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
7866 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
7867 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007868 .len = 496,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007869 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02007870 .np = 3,
7871 .tap = { 496 - 20, 4, 16 },
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007872 }, { /* Generated with Crypto++ */
7873 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
7874 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
7875 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
7876 .klen = 24,
7877 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
7878 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007879 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007880 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
7881 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
7882 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
7883 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
7884 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
7885 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
7886 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
7887 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
7888 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
7889 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
7890 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
7891 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
7892 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
7893 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
7894 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
7895 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
7896 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
7897 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
7898 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
7899 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
7900 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
7901 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
7902 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
7903 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
7904 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
7905 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
7906 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
7907 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
7908 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
7909 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
7910 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
7911 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
7912 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
7913 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
7914 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
7915 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
7916 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
7917 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
7918 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
7919 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
7920 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
7921 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
7922 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
7923 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
7924 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
7925 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
7926 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
7927 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
7928 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
7929 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
7930 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
7931 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
7932 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
7933 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
7934 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
7935 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
7936 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
7937 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
7938 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
7939 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
7940 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
7941 "\x2E\xB1\x18",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007942 .ctext = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007943 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
7944 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
7945 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
7946 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
7947 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
7948 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
7949 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
7950 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
7951 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
7952 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
7953 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
7954 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
7955 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
7956 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
7957 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
7958 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
7959 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
7960 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
7961 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
7962 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
7963 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
7964 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
7965 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
7966 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
7967 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
7968 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
7969 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
7970 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
7971 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
7972 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
7973 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
7974 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
7975 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
7976 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
7977 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
7978 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
7979 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
7980 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
7981 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
7982 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
7983 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
7984 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
7985 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
7986 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
7987 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
7988 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
7989 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
7990 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
7991 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
7992 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
7993 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
7994 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
7995 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
7996 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
7997 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
7998 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
7999 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
8000 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
8001 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
8002 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
8003 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
8004 "\xF2\x79\xD9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008005 .len = 499,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03008006 .also_non_np = 1,
8007 .np = 2,
8008 .tap = { 499 - 16, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08008009 },
8010};
8011
8012/*
8013 * Blowfish test vectors.
8014 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008015static const struct cipher_testvec bf_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08008016 { /* DES test vectors from OpenSSL */
8017 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
8018 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008019 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
8020 .ctext = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
8021 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008022 }, {
8023 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
8024 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008025 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
8026 .ctext = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
8027 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008028 }, {
8029 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
8030 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008031 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
8032 .ctext = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
8033 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008034 }, { /* Vary the keylength... */
8035 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
8036 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
8037 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008038 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
8039 .ctext = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
8040 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008041 }, {
8042 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
8043 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
8044 "\x00\x11\x22\x33\x44",
8045 .klen = 21,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008046 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
8047 .ctext = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
8048 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008049 }, { /* Generated with bf488 */
8050 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
8051 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
8052 "\x00\x11\x22\x33\x44\x55\x66\x77"
8053 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
8054 "\x58\x40\x23\x64\x1a\xba\x61\x76"
8055 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
8056 "\xff\xff\xff\xff\xff\xff\xff\xff",
8057 .klen = 56,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008058 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
8059 .ctext = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
8060 .len = 8,
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008061 }, { /* Generated with Crypto++ */
8062 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8063 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8064 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8065 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8066 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008067 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008068 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8069 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8070 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008071 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8072 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8073 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8074 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8075 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8076 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8077 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8078 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8079 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8080 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8081 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8082 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8083 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8084 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8085 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8086 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8087 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8088 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8089 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8090 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8091 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8092 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8093 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8094 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8095 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8096 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8097 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8098 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8099 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8100 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8101 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8102 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8103 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8104 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8105 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8106 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8107 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8108 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8109 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8110 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8111 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8112 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8113 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8114 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8115 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8116 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8117 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8118 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8119 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8120 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8121 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8122 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8123 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8124 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8125 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8126 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8127 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8128 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8129 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008130 .ctext = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008131 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
8132 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
8133 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008134 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
8135 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
8136 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
8137 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
8138 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
8139 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
8140 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
8141 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
8142 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
8143 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
8144 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
8145 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
8146 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
8147 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
8148 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
8149 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
8150 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
8151 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
8152 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
8153 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
8154 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
8155 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
8156 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
8157 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
8158 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
8159 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
8160 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
8161 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
8162 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
8163 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
8164 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
8165 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
8166 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
8167 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
8168 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
8169 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
8170 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
8171 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
8172 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
8173 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
8174 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
8175 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
8176 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
8177 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
8178 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
8179 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
8180 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
8181 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
8182 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
8183 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
8184 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
8185 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
8186 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
8187 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
8188 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
8189 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
8190 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
8191 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
8192 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008193 .len = 504,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03008194 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02008195 .np = 3,
8196 .tap = { 504 - 10, 2, 8 },
Herbert Xuda7f0332008-07-31 17:08:25 +08008197 },
8198};
8199
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008200static const struct cipher_testvec bf_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08008201 { /* From OpenSSL */
8202 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8203 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
8204 .klen = 16,
8205 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008206 .ptext = "\x37\x36\x35\x34\x33\x32\x31\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +08008207 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
8208 "\x68\x65\x20\x74\x69\x6d\x65\x20"
8209 "\x66\x6f\x72\x20\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008210 .ctext = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
Herbert Xuda7f0332008-07-31 17:08:25 +08008211 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
8212 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
8213 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008214 .len = 32,
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008215 }, { /* Generated with Crypto++ */
8216 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8217 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8218 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8219 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8220 .klen = 32,
8221 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008222 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008223 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8224 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8225 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008226 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8227 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8228 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8229 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8230 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8231 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8232 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8233 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8234 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8235 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8236 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8237 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8238 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8239 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8240 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8241 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8242 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8243 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8244 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8245 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8246 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8247 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8248 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8249 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8250 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8251 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8252 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8253 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8254 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8255 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8256 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8257 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8258 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8259 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8260 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8261 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8262 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8263 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8264 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8265 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8266 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8267 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8268 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8269 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8270 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8271 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8272 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8273 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8274 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8275 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8276 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8277 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8278 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8279 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8280 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8281 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8282 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8283 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8284 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008285 .ctext = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008286 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
8287 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
8288 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008289 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
8290 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
8291 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
8292 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
8293 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
8294 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
8295 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
8296 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
8297 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
8298 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
8299 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
8300 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
8301 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
8302 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
8303 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
8304 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
8305 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
8306 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
8307 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
8308 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
8309 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
8310 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
8311 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
8312 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
8313 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
8314 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
8315 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
8316 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
8317 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
8318 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
8319 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
8320 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
8321 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
8322 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
8323 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
8324 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
8325 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
8326 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
8327 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
8328 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
8329 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
8330 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
8331 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
8332 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
8333 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
8334 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
8335 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
8336 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
8337 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
8338 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
8339 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
8340 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
8341 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
8342 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
8343 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
8344 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
8345 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
8346 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
8347 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008348 .len = 504,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03008349 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02008350 .np = 3,
8351 .tap = { 504 - 10, 2, 8 },
Herbert Xuda7f0332008-07-31 17:08:25 +08008352 },
8353};
8354
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008355static const struct cipher_testvec bf_ctr_tv_template[] = {
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008356 { /* Generated with Crypto++ */
8357 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8358 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8359 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8360 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8361 .klen = 32,
8362 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008363 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008364 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8365 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8366 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008367 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8368 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8369 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8370 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8371 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8372 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8373 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8374 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8375 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8376 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8377 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8378 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8379 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8380 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8381 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8382 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8383 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8384 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8385 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8386 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8387 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8388 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8389 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8390 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8391 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8392 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8393 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8394 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8395 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8396 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8397 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8398 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8399 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8400 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8401 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8402 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8403 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8404 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8405 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8406 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8407 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8408 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8409 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8410 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8411 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8412 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8413 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8414 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8415 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8416 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8417 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8418 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8419 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8420 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8421 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8422 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8423 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8424 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8425 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008426 .ctext = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008427 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
8428 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
8429 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008430 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
8431 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
8432 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
8433 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
8434 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
8435 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
8436 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
8437 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
8438 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
8439 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
8440 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
8441 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
8442 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
8443 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
8444 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
8445 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
8446 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
8447 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
8448 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
8449 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
8450 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
8451 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
8452 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
8453 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
8454 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
8455 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
8456 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
8457 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
8458 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
8459 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
8460 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
8461 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
8462 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
8463 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
8464 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
8465 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
8466 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
8467 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
8468 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
8469 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
8470 "\x82\x63\x11\xB3\x54\x49\x00\x08"
8471 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
8472 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
8473 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
8474 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
8475 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
8476 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
8477 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
8478 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
8479 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
8480 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
8481 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
8482 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
8483 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
8484 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
8485 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
8486 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
8487 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
8488 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008489 .len = 504,
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008490 }, { /* Generated with Crypto++ */
8491 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8492 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8493 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8494 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8495 .klen = 32,
8496 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008497 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008498 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8499 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8500 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8501 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008502 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8503 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8504 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8505 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8506 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8507 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8508 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8509 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8510 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8511 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8512 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8513 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8514 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8515 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8516 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8517 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8518 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8519 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8520 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8521 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8522 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8523 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8524 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8525 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8526 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8527 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8528 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8529 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8530 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8531 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8532 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8533 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8534 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8535 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8536 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8537 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8538 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8539 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8540 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8541 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8542 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8543 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8544 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8545 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8546 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8547 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8548 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8549 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8550 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8551 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8552 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8553 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8554 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8555 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8556 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8557 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8558 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8559 "\x2B\xC2\x59\xF0\x64\xFB\x92",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008560 .ctext = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008561 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
8562 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
8563 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
8564 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008565 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
8566 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
8567 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
8568 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
8569 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
8570 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
8571 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
8572 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
8573 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
8574 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
8575 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
8576 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
8577 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
8578 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
8579 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
8580 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
8581 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
8582 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
8583 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
8584 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
8585 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
8586 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
8587 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
8588 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
8589 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
8590 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
8591 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
8592 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
8593 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
8594 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
8595 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
8596 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
8597 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
8598 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
8599 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
8600 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
8601 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
8602 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
8603 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
8604 "\x82\x63\x11\xB3\x54\x49\x00\x08"
8605 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
8606 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
8607 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
8608 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
8609 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
8610 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
8611 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
8612 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
8613 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
8614 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
8615 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
8616 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
8617 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
8618 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
8619 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
8620 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
8621 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
8622 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008623 .len = 503,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03008624 .also_non_np = 1,
8625 .np = 2,
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008626 .tap = { 503 - 8, 8 },
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008627 }, { /* Generated with Crypto++ */
8628 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8629 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8630 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8631 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8632 .klen = 32,
8633 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008634 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008635 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8636 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8637 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8638 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8639 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8640 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8641 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8642 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8643 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8644 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8645 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8646 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8647 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8648 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8649 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8650 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8651 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8652 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8653 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8654 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8655 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8656 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8657 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8658 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8659 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8660 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8661 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8662 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8663 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8664 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8665 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8666 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8667 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8668 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8669 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8670 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8671 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8672 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8673 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8674 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8675 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8676 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8677 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8678 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8679 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8680 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8681 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8682 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8683 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8684 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8685 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8686 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8687 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8688 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8689 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8690 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8691 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8692 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8693 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8694 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8695 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8696 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008697 .ctext = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008698 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
8699 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
8700 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
8701 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
8702 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
8703 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
8704 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
8705 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
8706 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
8707 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
8708 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
8709 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
8710 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
8711 "\x0B\x82\x59\x14\x26\x67\x08\x09"
8712 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
8713 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
8714 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
8715 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
8716 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
8717 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
8718 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
8719 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
8720 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
8721 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
8722 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
8723 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
8724 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
8725 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
8726 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
8727 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
8728 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
8729 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
8730 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
8731 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
8732 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
8733 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
8734 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
8735 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
8736 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
8737 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
8738 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
8739 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
8740 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
8741 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
8742 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
8743 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
8744 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
8745 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
8746 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
8747 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
8748 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
8749 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
8750 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
8751 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
8752 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
8753 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
8754 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
8755 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
8756 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
8757 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
8758 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
8759 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008760 .len = 504,
Herbert Xuda7f0332008-07-31 17:08:25 +08008761 },
8762};
8763
8764/*
8765 * Twofish test vectors.
8766 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008767static const struct cipher_testvec tf_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08008768 {
8769 .key = zeroed_string,
8770 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008771 .ptext = zeroed_string,
8772 .ctext = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +08008773 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008774 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08008775 }, {
8776 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8777 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8778 "\x00\x11\x22\x33\x44\x55\x66\x77",
8779 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008780 .ptext = zeroed_string,
8781 .ctext = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
Herbert Xuda7f0332008-07-31 17:08:25 +08008782 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008783 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08008784 }, {
8785 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8786 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
8787 "\x00\x11\x22\x33\x44\x55\x66\x77"
8788 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
8789 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008790 .ptext = zeroed_string,
8791 .ctext = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +08008792 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008793 .len = 16,
Jussi Kivilinna573da622011-10-10 23:03:12 +03008794 }, { /* Generated with Crypto++ */
8795 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
8796 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
8797 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
8798 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
8799 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008800 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03008801 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8802 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8803 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8804 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8805 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8806 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02008807 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8808 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8809 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8810 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8811 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8812 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8813 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8814 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8815 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8816 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8817 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8818 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8819 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8820 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8821 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8822 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8823 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8824 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8825 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8826 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8827 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8828 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8829 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8830 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8831 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8832 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8833 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8834 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8835 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8836 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8837 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8838 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8839 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8840 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8841 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8842 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8843 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8844 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8845 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8846 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8847 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8848 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8849 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8850 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8851 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8852 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8853 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8854 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8855 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8856 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8857 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8858 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8859 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8860 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8861 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008862 .ctext = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
Jussi Kivilinna573da622011-10-10 23:03:12 +03008863 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
8864 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
8865 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
8866 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
8867 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
8868 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02008869 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
8870 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
8871 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
8872 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
8873 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
8874 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
8875 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
8876 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
8877 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
8878 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
8879 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
8880 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
8881 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
8882 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
8883 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
8884 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
8885 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
8886 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
8887 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
8888 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
8889 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
8890 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
8891 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
8892 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
8893 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
8894 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
8895 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
8896 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
8897 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
8898 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
8899 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
8900 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
8901 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
8902 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
8903 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
8904 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
8905 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
8906 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
8907 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
8908 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
8909 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
8910 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
8911 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
8912 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
8913 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
8914 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
8915 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
8916 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
8917 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
8918 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
8919 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
8920 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
8921 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
8922 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
8923 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008924 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03008925 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02008926 .np = 3,
8927 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08008928 },
8929};
8930
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008931static const struct cipher_testvec tf_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08008932 { /* Generated with Nettle */
8933 .key = zeroed_string,
8934 .klen = 16,
8935 .iv = zeroed_string,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008936 .ptext = zeroed_string,
8937 .ctext = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +08008938 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008939 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08008940 }, {
8941 .key = zeroed_string,
8942 .klen = 16,
8943 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
8944 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008945 .ptext = zeroed_string,
8946 .ctext = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
Herbert Xuda7f0332008-07-31 17:08:25 +08008947 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008948 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08008949 }, {
8950 .key = zeroed_string,
8951 .klen = 16,
8952 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8953 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008954 .ptext = zeroed_string,
8955 .ctext = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
Herbert Xuda7f0332008-07-31 17:08:25 +08008956 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008957 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08008958 }, {
8959 .key = zeroed_string,
8960 .klen = 16,
8961 .iv = zeroed_string,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008962 .ptext = zeroed_string,
8963 .ctext = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +08008964 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
8965 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
8966 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
8967 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
8968 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008969 .len = 48,
Jussi Kivilinna573da622011-10-10 23:03:12 +03008970 }, { /* Generated with Crypto++ */
8971 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8972 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8973 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8974 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8975 .klen = 32,
8976 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8977 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008978 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03008979 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8980 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8981 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8982 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8983 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8984 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02008985 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8986 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8987 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8988 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8989 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8990 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8991 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8992 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8993 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8994 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8995 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8996 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8997 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8998 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8999 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9000 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9001 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9002 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9003 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9004 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9005 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9006 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9007 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9008 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9009 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9010 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9011 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9012 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9013 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9014 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9015 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9016 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9017 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9018 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9019 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9020 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9021 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9022 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9023 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9024 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9025 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9026 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9027 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9028 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9029 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9030 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9031 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9032 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9033 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9034 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9035 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9036 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9037 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9038 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9039 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009040 .ctext = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009041 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
9042 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
9043 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
9044 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
9045 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
9046 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009047 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
9048 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
9049 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
9050 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
9051 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
9052 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
9053 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
9054 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
9055 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
9056 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
9057 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
9058 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
9059 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
9060 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
9061 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
9062 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
9063 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
9064 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
9065 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
9066 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
9067 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
9068 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
9069 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
9070 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
9071 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
9072 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
9073 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
9074 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
9075 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
9076 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
9077 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
9078 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
9079 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
9080 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
9081 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
9082 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
9083 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
9084 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
9085 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
9086 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
9087 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
9088 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
9089 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
9090 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
9091 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
9092 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
9093 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
9094 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
9095 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
9096 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
9097 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
9098 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
9099 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
9100 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
9101 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009102 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03009103 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02009104 .np = 3,
9105 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08009106 },
9107};
9108
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009109static const struct cipher_testvec tf_ctr_tv_template[] = {
Jussi Kivilinna573da622011-10-10 23:03:12 +03009110 { /* Generated with Crypto++ */
9111 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9112 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9113 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9114 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9115 .klen = 32,
9116 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9117 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009118 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009119 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9120 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9121 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9122 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9123 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9124 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009125 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9126 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9127 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9128 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9129 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9130 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9131 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9132 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9133 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9134 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9135 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9136 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9137 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9138 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9139 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9140 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9141 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9142 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9143 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9144 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9145 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9146 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9147 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9148 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9149 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9150 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9151 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9152 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9153 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9154 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9155 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9156 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9157 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9158 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9159 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9160 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9161 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9162 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9163 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9164 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9165 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9166 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9167 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9168 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9169 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9170 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9171 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9172 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9173 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9174 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9175 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9176 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9177 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9178 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9179 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009180 .ctext = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009181 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9182 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9183 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9184 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9185 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9186 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009187 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9188 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9189 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9190 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9191 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9192 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9193 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9194 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9195 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9196 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9197 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9198 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9199 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9200 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9201 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9202 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9203 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9204 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9205 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9206 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9207 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9208 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9209 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9210 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9211 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9212 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9213 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9214 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9215 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9216 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9217 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9218 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9219 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9220 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9221 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9222 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9223 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9224 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9225 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9226 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9227 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9228 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9229 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9230 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9231 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9232 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9233 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9234 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9235 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9236 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9237 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9238 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9239 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9240 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9241 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009242 .len = 496,
Jussi Kivilinna573da622011-10-10 23:03:12 +03009243 }, { /* Generated with Crypto++ */
9244 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9245 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9246 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9247 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9248 .klen = 32,
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009249 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9250 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009251 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009252 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9253 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9254 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9255 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9256 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9257 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9258 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9259 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9260 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9261 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9262 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9263 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9264 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9265 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9266 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9267 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9268 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9269 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9270 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9271 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9272 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9273 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9274 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9275 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9276 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9277 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9278 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9279 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9280 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9281 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9282 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9283 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9284 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9285 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9286 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9287 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9288 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9289 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9290 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9291 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9292 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9293 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9294 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9295 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9296 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9297 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9298 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9299 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9300 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9301 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9302 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9303 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9304 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9305 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9306 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9307 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9308 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9309 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9310 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9311 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9312 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009313 .ctext = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009314 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9315 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9316 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9317 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9318 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9319 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9320 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9321 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9322 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9323 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9324 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9325 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9326 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9327 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9328 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9329 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9330 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9331 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9332 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9333 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9334 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9335 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9336 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9337 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9338 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9339 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9340 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9341 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9342 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9343 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9344 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9345 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9346 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9347 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9348 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9349 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9350 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9351 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9352 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9353 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9354 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9355 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9356 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9357 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9358 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9359 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9360 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9361 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9362 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9363 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9364 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9365 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9366 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9367 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9368 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9369 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9370 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9371 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9372 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9373 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9374 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009375 .len = 496,
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009376 }, { /* Generated with Crypto++ */
9377 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9378 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9379 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9380 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9381 .klen = 32,
Jussi Kivilinna573da622011-10-10 23:03:12 +03009382 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9383 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009384 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009385 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9386 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9387 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9388 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9389 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9390 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9391 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009392 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9393 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9394 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9395 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9396 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9397 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9398 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9399 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9400 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9401 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9402 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9403 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9404 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9405 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9406 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9407 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9408 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9409 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9410 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9411 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9412 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9413 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9414 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9415 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9416 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9417 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9418 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9419 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9420 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9421 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9422 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9423 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9424 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9425 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9426 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9427 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9428 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9429 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9430 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9431 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9432 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9433 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9434 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9435 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9436 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9437 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9438 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9439 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9440 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9441 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9442 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9443 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9444 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9445 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9446 "\x2B\xC2\x59",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009447 .ctext = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009448 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9449 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9450 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9451 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9452 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9453 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9454 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009455 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9456 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9457 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9458 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9459 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9460 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9461 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9462 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9463 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9464 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9465 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9466 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9467 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9468 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9469 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9470 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9471 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9472 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9473 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9474 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9475 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9476 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9477 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9478 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9479 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9480 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9481 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9482 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9483 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9484 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9485 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9486 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9487 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9488 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9489 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9490 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9491 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9492 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9493 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9494 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9495 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9496 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9497 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9498 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9499 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9500 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9501 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9502 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9503 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9504 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9505 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9506 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9507 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9508 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9509 "\x6C\x82\x9D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009510 .len = 499,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03009511 .also_non_np = 1,
9512 .np = 2,
9513 .tap = { 499 - 16, 16 },
Jussi Kivilinna573da622011-10-10 23:03:12 +03009514 },
9515};
9516
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009517static const struct cipher_testvec tf_lrw_tv_template[] = {
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009518 /* Generated from AES-LRW test vectors */
9519 {
9520 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9521 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9522 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9523 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9524 .klen = 32,
9525 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9526 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009527 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009528 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009529 .ctext = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009530 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009531 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009532 }, {
9533 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9534 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9535 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9536 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9537 .klen = 32,
9538 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9539 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009540 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009541 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009542 .ctext = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009543 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009544 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009545 }, {
9546 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9547 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9548 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9549 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9550 .klen = 32,
9551 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9552 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009553 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009554 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009555 .ctext = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009556 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009557 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009558 }, {
9559 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9560 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9561 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9562 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9563 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9564 .klen = 40,
9565 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9566 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009567 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009568 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009569 .ctext = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009570 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009571 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009572 }, {
9573 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9574 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9575 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9576 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9577 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9578 .klen = 40,
9579 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9580 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009581 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009582 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009583 .ctext = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009584 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009585 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009586 }, {
9587 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9588 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9589 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9590 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9591 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9592 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9593 .klen = 48,
9594 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9595 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009596 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009597 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009598 .ctext = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009599 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009600 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009601 }, {
9602 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9603 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9604 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9605 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9606 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9607 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9608 .klen = 48,
9609 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9610 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009611 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009612 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009613 .ctext = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009614 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009615 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009616 }, {
9617 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9618 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9619 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9620 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9621 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9622 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9623 .klen = 48,
9624 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9625 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009626 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009627 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9628 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9629 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9630 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9631 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9632 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9633 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9634 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9635 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9636 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9637 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9638 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9639 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9640 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9641 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9642 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9643 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9644 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9645 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9646 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9647 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9648 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9649 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9650 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9651 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9652 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9653 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9654 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9655 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9656 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9657 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9658 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9659 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9660 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9661 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9662 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9663 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9664 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
9665 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
9666 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
9667 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
9668 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
9669 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
9670 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
9671 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
9672 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
9673 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
9674 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
9675 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
9676 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
9677 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
9678 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
9679 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
9680 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
9681 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
9682 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
9683 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
9684 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
9685 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
9686 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
9687 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
9688 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
9689 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009690 .ctext = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009691 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
9692 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
9693 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
9694 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
9695 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
9696 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
9697 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
9698 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
9699 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
9700 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
9701 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
9702 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
9703 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
9704 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
9705 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
9706 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
9707 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
9708 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
9709 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
9710 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
9711 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
9712 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
9713 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
9714 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
9715 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
9716 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
9717 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
9718 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
9719 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
9720 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
9721 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
9722 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
9723 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
9724 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
9725 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
9726 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
9727 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
9728 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
9729 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
9730 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
9731 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
9732 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
9733 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
9734 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
9735 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
9736 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
9737 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
9738 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
9739 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
9740 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
9741 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
9742 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
9743 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
9744 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
9745 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
9746 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
9747 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
9748 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
9749 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
9750 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
9751 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
9752 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
9753 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009754 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03009755 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02009756 .np = 3,
9757 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009758 },
9759};
9760
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009761static const struct cipher_testvec tf_xts_tv_template[] = {
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009762 /* Generated from AES-XTS test vectors */
9763{
9764 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
9765 "\x00\x00\x00\x00\x00\x00\x00\x00"
9766 "\x00\x00\x00\x00\x00\x00\x00\x00"
9767 "\x00\x00\x00\x00\x00\x00\x00\x00",
9768 .klen = 32,
9769 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9770 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009771 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009772 "\x00\x00\x00\x00\x00\x00\x00\x00"
9773 "\x00\x00\x00\x00\x00\x00\x00\x00"
9774 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009775 .ctext = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009776 "\x30\x74\xe4\x44\x52\x77\x97\x43"
9777 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
9778 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009779 .len = 32,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009780 }, {
9781 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
9782 "\x11\x11\x11\x11\x11\x11\x11\x11"
9783 "\x22\x22\x22\x22\x22\x22\x22\x22"
9784 "\x22\x22\x22\x22\x22\x22\x22\x22",
9785 .klen = 32,
9786 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
9787 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009788 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009789 "\x44\x44\x44\x44\x44\x44\x44\x44"
9790 "\x44\x44\x44\x44\x44\x44\x44\x44"
9791 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009792 .ctext = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009793 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
9794 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
9795 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009796 .len = 32,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009797 }, {
9798 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
9799 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
9800 "\x22\x22\x22\x22\x22\x22\x22\x22"
9801 "\x22\x22\x22\x22\x22\x22\x22\x22",
9802 .klen = 32,
9803 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
9804 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009805 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009806 "\x44\x44\x44\x44\x44\x44\x44\x44"
9807 "\x44\x44\x44\x44\x44\x44\x44\x44"
9808 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009809 .ctext = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009810 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
9811 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
9812 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009813 .len = 32,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009814 }, {
9815 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
9816 "\x23\x53\x60\x28\x74\x71\x35\x26"
9817 "\x31\x41\x59\x26\x53\x58\x97\x93"
9818 "\x23\x84\x62\x64\x33\x83\x27\x95",
9819 .klen = 32,
9820 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9821 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009822 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009823 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9824 "\x10\x11\x12\x13\x14\x15\x16\x17"
9825 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9826 "\x20\x21\x22\x23\x24\x25\x26\x27"
9827 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9828 "\x30\x31\x32\x33\x34\x35\x36\x37"
9829 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9830 "\x40\x41\x42\x43\x44\x45\x46\x47"
9831 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9832 "\x50\x51\x52\x53\x54\x55\x56\x57"
9833 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9834 "\x60\x61\x62\x63\x64\x65\x66\x67"
9835 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9836 "\x70\x71\x72\x73\x74\x75\x76\x77"
9837 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9838 "\x80\x81\x82\x83\x84\x85\x86\x87"
9839 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9840 "\x90\x91\x92\x93\x94\x95\x96\x97"
9841 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9842 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9843 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9844 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9845 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9846 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9847 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9848 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9849 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9850 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9851 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9852 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9853 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9854 "\x00\x01\x02\x03\x04\x05\x06\x07"
9855 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9856 "\x10\x11\x12\x13\x14\x15\x16\x17"
9857 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9858 "\x20\x21\x22\x23\x24\x25\x26\x27"
9859 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9860 "\x30\x31\x32\x33\x34\x35\x36\x37"
9861 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9862 "\x40\x41\x42\x43\x44\x45\x46\x47"
9863 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9864 "\x50\x51\x52\x53\x54\x55\x56\x57"
9865 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9866 "\x60\x61\x62\x63\x64\x65\x66\x67"
9867 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9868 "\x70\x71\x72\x73\x74\x75\x76\x77"
9869 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9870 "\x80\x81\x82\x83\x84\x85\x86\x87"
9871 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9872 "\x90\x91\x92\x93\x94\x95\x96\x97"
9873 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9874 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9875 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9876 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9877 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9878 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9879 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9880 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9881 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9882 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9883 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9884 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9885 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009886 .ctext = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009887 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
9888 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
9889 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
9890 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
9891 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
9892 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
9893 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
9894 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
9895 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
9896 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
9897 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
9898 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
9899 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
9900 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
9901 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
9902 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
9903 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
9904 "\x39\x80\x39\x09\x97\x65\xf2\x83"
9905 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
9906 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
9907 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
9908 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
9909 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
9910 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
9911 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
9912 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
9913 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
9914 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
9915 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
9916 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
9917 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
9918 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
9919 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
9920 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
9921 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
9922 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
9923 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
9924 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
9925 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
9926 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
9927 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
9928 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
9929 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
9930 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
9931 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
9932 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
9933 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
9934 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
9935 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
9936 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
9937 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
9938 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
9939 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
9940 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
9941 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
9942 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
9943 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
9944 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
9945 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
9946 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
9947 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
9948 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
9949 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009950 .len = 512,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009951 }, {
9952 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
9953 "\x23\x53\x60\x28\x74\x71\x35\x26"
9954 "\x62\x49\x77\x57\x24\x70\x93\x69"
9955 "\x99\x59\x57\x49\x66\x96\x76\x27"
9956 "\x31\x41\x59\x26\x53\x58\x97\x93"
9957 "\x23\x84\x62\x64\x33\x83\x27\x95"
9958 "\x02\x88\x41\x97\x16\x93\x99\x37"
9959 "\x51\x05\x82\x09\x74\x94\x45\x92",
9960 .klen = 64,
9961 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
9962 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009963 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03009964 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9965 "\x10\x11\x12\x13\x14\x15\x16\x17"
9966 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9967 "\x20\x21\x22\x23\x24\x25\x26\x27"
9968 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9969 "\x30\x31\x32\x33\x34\x35\x36\x37"
9970 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9971 "\x40\x41\x42\x43\x44\x45\x46\x47"
9972 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9973 "\x50\x51\x52\x53\x54\x55\x56\x57"
9974 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9975 "\x60\x61\x62\x63\x64\x65\x66\x67"
9976 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9977 "\x70\x71\x72\x73\x74\x75\x76\x77"
9978 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9979 "\x80\x81\x82\x83\x84\x85\x86\x87"
9980 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9981 "\x90\x91\x92\x93\x94\x95\x96\x97"
9982 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9983 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9984 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9985 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9986 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9987 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9988 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9989 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
9990 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
9991 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
9992 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
9993 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
9994 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
9995 "\x00\x01\x02\x03\x04\x05\x06\x07"
9996 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9997 "\x10\x11\x12\x13\x14\x15\x16\x17"
9998 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9999 "\x20\x21\x22\x23\x24\x25\x26\x27"
10000 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10001 "\x30\x31\x32\x33\x34\x35\x36\x37"
10002 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10003 "\x40\x41\x42\x43\x44\x45\x46\x47"
10004 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10005 "\x50\x51\x52\x53\x54\x55\x56\x57"
10006 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10007 "\x60\x61\x62\x63\x64\x65\x66\x67"
10008 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10009 "\x70\x71\x72\x73\x74\x75\x76\x77"
10010 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10011 "\x80\x81\x82\x83\x84\x85\x86\x87"
10012 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10013 "\x90\x91\x92\x93\x94\x95\x96\x97"
10014 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10015 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10016 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10017 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10018 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10019 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10020 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10021 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10022 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10023 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10024 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10025 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10026 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010027 .ctext = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010028 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10029 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10030 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10031 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10032 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10033 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10034 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10035 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10036 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10037 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10038 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10039 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10040 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10041 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10042 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10043 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10044 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10045 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10046 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10047 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10048 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10049 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10050 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10051 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10052 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10053 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10054 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10055 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10056 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10057 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10058 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10059 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10060 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10061 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10062 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10063 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10064 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10065 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10066 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10067 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10068 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10069 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10070 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10071 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10072 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10073 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10074 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10075 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10076 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10077 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10078 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10079 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10080 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10081 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10082 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10083 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10084 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10085 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10086 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10087 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10088 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10089 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10090 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010091 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030010092 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020010093 .np = 3,
10094 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010095 },
10096};
10097
Herbert Xuda7f0332008-07-31 17:08:25 +080010098/*
10099 * Serpent test vectors. These are backwards because Serpent writes
10100 * octet sequences in right-to-left mode.
10101 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010102static const struct cipher_testvec serpent_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080010103 {
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010104 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080010105 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010106 .ctext = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
Herbert Xuda7f0332008-07-31 17:08:25 +080010107 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010108 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010109 }, {
10110 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10111 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10112 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010113 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080010114 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010115 .ctext = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
Herbert Xuda7f0332008-07-31 17:08:25 +080010116 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010117 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010118 }, {
10119 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10120 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10121 "\x10\x11\x12\x13\x14\x15\x16\x17"
10122 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
10123 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010124 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080010125 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010126 .ctext = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +080010127 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010128 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010129 }, {
10130 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
10131 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010132 .ptext = zeroed_string,
10133 .ctext = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
Herbert Xuda7f0332008-07-31 17:08:25 +080010134 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010135 .len = 16,
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010136 }, { /* Generated with Crypto++ */
10137 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10138 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10139 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10140 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10141 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010142 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010143 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10144 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10145 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10146 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10147 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10148 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10149 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10150 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10151 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10152 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10153 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10154 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10155 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10156 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10157 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10158 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010159 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10160 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10161 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10162 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10163 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10164 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10165 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10166 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10167 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10168 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10169 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10170 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10171 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10172 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10173 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10174 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10175 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10176 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10177 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10178 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10179 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10180 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10181 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10182 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10183 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10184 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10185 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10186 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10187 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10188 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10189 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10190 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10191 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10192 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10193 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10194 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10195 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10196 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10197 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10198 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10199 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10200 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10201 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10202 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10203 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010204 .ctext = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010205 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
10206 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
10207 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
10208 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
10209 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
10210 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
10211 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
10212 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
10213 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
10214 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
10215 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
10216 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
10217 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
10218 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
10219 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
10220 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010221 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
10222 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
10223 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
10224 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
10225 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
10226 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
10227 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
10228 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
10229 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
10230 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
10231 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
10232 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
10233 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
10234 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
10235 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
10236 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
10237 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
10238 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
10239 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
10240 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
10241 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
10242 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
10243 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
10244 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
10245 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
10246 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
10247 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
10248 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
10249 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
10250 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
10251 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
10252 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
10253 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
10254 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
10255 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
10256 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
10257 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
10258 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
10259 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
10260 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
10261 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
10262 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
10263 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
10264 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
10265 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010266 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030010267 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020010268 .np = 3,
10269 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080010270 },
10271};
10272
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010273static const struct cipher_testvec tnepres_tv_template[] = {
Eric Biggersa0e20b92018-05-20 22:50:27 -070010274 { /* KeySize=0 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010275 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010276 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010277 .ctext = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010278 "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010279 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010280 },
Herbert Xuda7f0332008-07-31 17:08:25 +080010281 { /* KeySize=128, PT=0, I=1 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010282 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080010283 "\x00\x00\x00\x00\x00\x00\x00\x00",
10284 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
10285 "\x00\x00\x00\x00\x00\x00\x00\x00",
10286 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010287 .ctext = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
Herbert Xuda7f0332008-07-31 17:08:25 +080010288 "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010289 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010290 }, { /* KeySize=128 */
10291 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10292 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10293 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010294 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010295 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010296 .ctext = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010297 "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010298 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010299 }, { /* KeySize=128, I=121 */
10300 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
10301 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010302 .ptext = zeroed_string,
10303 .ctext = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010304 "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010305 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010306 }, { /* KeySize=192, PT=0, I=1 */
10307 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
10308 "\x00\x00\x00\x00\x00\x00\x00\x00"
10309 "\x00\x00\x00\x00\x00\x00\x00\x00",
10310 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010311 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080010312 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010313 .ctext = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
Herbert Xuda7f0332008-07-31 17:08:25 +080010314 "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010315 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010316 }, { /* KeySize=256, PT=0, I=1 */
10317 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
10318 "\x00\x00\x00\x00\x00\x00\x00\x00"
10319 "\x00\x00\x00\x00\x00\x00\x00\x00"
10320 "\x00\x00\x00\x00\x00\x00\x00\x00",
10321 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010322 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080010323 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010324 .ctext = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
Herbert Xuda7f0332008-07-31 17:08:25 +080010325 "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010326 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010327 }, { /* KeySize=256, I=257 */
10328 .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
10329 "\x17\x16\x15\x14\x13\x12\x11\x10"
10330 "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
10331 "\x07\x06\x05\x04\x03\x02\x01\x00",
10332 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010333 .ptext = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
Herbert Xuda7f0332008-07-31 17:08:25 +080010334 "\x07\x06\x05\x04\x03\x02\x01\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010335 .ctext = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
Herbert Xuda7f0332008-07-31 17:08:25 +080010336 "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010337 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010338 }, { /* KeySize=256 */
10339 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10340 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10341 "\x10\x11\x12\x13\x14\x15\x16\x17"
10342 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
10343 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010344 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010345 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010346 .ctext = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010347 "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010348 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010349 }
Herbert Xuda7f0332008-07-31 17:08:25 +080010350};
10351
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010352static const struct cipher_testvec serpent_cbc_tv_template[] = {
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010353 { /* Generated with Crypto++ */
10354 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10355 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10356 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10357 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10358 .klen = 32,
10359 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10360 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010361 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010362 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10363 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10364 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10365 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10366 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10367 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10368 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10369 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10370 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10371 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10372 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10373 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10374 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10375 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10376 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10377 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010378 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10379 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10380 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10381 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10382 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10383 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10384 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10385 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10386 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10387 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10388 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10389 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10390 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10391 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10392 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10393 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10394 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10395 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10396 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10397 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10398 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10399 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10400 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10401 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10402 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10403 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10404 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10405 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10406 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10407 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10408 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10409 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10410 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10411 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10412 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10413 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10414 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10415 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10416 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10417 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10418 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10419 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10420 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10421 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10422 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010423 .ctext = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010424 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
10425 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
10426 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
10427 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
10428 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
10429 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
10430 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
10431 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
10432 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
10433 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
10434 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
10435 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
10436 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
10437 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
10438 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
10439 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010440 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
10441 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
10442 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
10443 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
10444 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
10445 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
10446 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
10447 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
10448 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
10449 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
10450 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
10451 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
10452 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
10453 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
10454 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
10455 "\x81\x92\x66\x67\x15\x1E\x39\x98"
10456 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
10457 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
10458 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
10459 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
10460 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
10461 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
10462 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
10463 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
10464 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
10465 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
10466 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
10467 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
10468 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
10469 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
10470 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
10471 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
10472 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
10473 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
10474 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
10475 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
10476 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
10477 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
10478 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
10479 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
10480 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
10481 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
10482 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
10483 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
10484 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010485 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030010486 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020010487 .np = 3,
10488 .tap = { 496 - 20, 4, 16 },
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010489 },
10490};
10491
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010492static const struct cipher_testvec serpent_ctr_tv_template[] = {
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010493 { /* Generated with Crypto++ */
10494 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10495 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10496 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10497 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10498 .klen = 32,
10499 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10500 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010501 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010502 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10503 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10504 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10505 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10506 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10507 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10508 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10509 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10510 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10511 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10512 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10513 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10514 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10515 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10516 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10517 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010518 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10519 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10520 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10521 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10522 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10523 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10524 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10525 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10526 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10527 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10528 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10529 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10530 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10531 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10532 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10533 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10534 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10535 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10536 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10537 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10538 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10539 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10540 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10541 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10542 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10543 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10544 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10545 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10546 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10547 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10548 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10549 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10550 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10551 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10552 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10553 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10554 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10555 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10556 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10557 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10558 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10559 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10560 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10561 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10562 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010563 .ctext = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010564 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10565 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10566 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10567 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10568 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10569 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10570 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10571 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10572 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10573 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10574 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10575 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10576 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10577 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10578 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10579 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010580 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
10581 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10582 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10583 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10584 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10585 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10586 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10587 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10588 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10589 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10590 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10591 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10592 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10593 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10594 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10595 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10596 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10597 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10598 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10599 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10600 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10601 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10602 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10603 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10604 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10605 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10606 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10607 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10608 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10609 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10610 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10611 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10612 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10613 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10614 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10615 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10616 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10617 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10618 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10619 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10620 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10621 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10622 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10623 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10624 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010625 .len = 496,
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010626 }, { /* Generated with Crypto++ */
10627 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10628 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10629 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10630 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10631 .klen = 32,
10632 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10633 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010634 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010635 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10636 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10637 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10638 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10639 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10640 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10641 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10642 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10643 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10644 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10645 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10646 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10647 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10648 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10649 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10650 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10651 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010652 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10653 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10654 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10655 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10656 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10657 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10658 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10659 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10660 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10661 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10662 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10663 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10664 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10665 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10666 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10667 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10668 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10669 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10670 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10671 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10672 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10673 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10674 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10675 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10676 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10677 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10678 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10679 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10680 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10681 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10682 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10683 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10684 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10685 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10686 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10687 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10688 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10689 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10690 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10691 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10692 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10693 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10694 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10695 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
10696 "\x2B\xC2\x59",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010697 .ctext = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010698 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10699 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10700 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10701 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10702 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10703 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10704 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10705 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10706 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10707 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10708 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10709 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10710 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10711 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10712 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10713 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
10714 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010715 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10716 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10717 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10718 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10719 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10720 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10721 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10722 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10723 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10724 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10725 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10726 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10727 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10728 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10729 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10730 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10731 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10732 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10733 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10734 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10735 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10736 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10737 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10738 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10739 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10740 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10741 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10742 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10743 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10744 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10745 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10746 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10747 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10748 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10749 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10750 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10751 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10752 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10753 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10754 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10755 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10756 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10757 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10758 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
10759 "\x38\xE2\xE5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010760 .len = 499,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030010761 .also_non_np = 1,
10762 .np = 2,
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010763 .tap = { 499 - 16, 16 },
Jussi Kivilinna549595a2012-09-19 09:42:59 +030010764 }, { /* Generated with Crypto++ */
10765 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10766 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10767 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10768 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10769 .klen = 32,
10770 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
10771 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010772 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030010773 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10774 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10775 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10776 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10777 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10778 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10779 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10780 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10781 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10782 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10783 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10784 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10785 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10786 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10787 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10788 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10789 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10790 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10791 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10792 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10793 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10794 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10795 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10796 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10797 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10798 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10799 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10800 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10801 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10802 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10803 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10804 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10805 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10806 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10807 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10808 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10809 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10810 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10811 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10812 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10813 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10814 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10815 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10816 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10817 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10818 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10819 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10820 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10821 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10822 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10823 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10824 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10825 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10826 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10827 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10828 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10829 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10830 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10831 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10832 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10833 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010834 .ctext = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030010835 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
10836 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
10837 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
10838 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
10839 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
10840 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
10841 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
10842 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
10843 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
10844 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
10845 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
10846 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
10847 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
10848 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
10849 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
10850 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
10851 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
10852 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
10853 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
10854 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
10855 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
10856 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
10857 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
10858 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
10859 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
10860 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
10861 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
10862 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
10863 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
10864 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
10865 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
10866 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
10867 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
10868 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
10869 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
10870 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
10871 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
10872 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
10873 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
10874 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
10875 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
10876 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
10877 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
10878 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
10879 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
10880 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
10881 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
10882 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
10883 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
10884 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
10885 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
10886 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
10887 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
10888 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
10889 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
10890 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
10891 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
10892 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
10893 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
10894 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
10895 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010896 .len = 496,
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010897 },
10898};
10899
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010900static const struct cipher_testvec serpent_lrw_tv_template[] = {
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010901 /* Generated from AES-LRW test vectors */
10902 {
10903 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
10904 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
10905 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
10906 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
10907 .klen = 32,
10908 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10909 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010910 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010911 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010912 .ctext = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010913 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010914 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010915 }, {
10916 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
10917 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
10918 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
10919 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
10920 .klen = 32,
10921 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10922 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010923 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010924 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010925 .ctext = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010926 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010927 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010928 }, {
10929 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
10930 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
10931 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
10932 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
10933 .klen = 32,
10934 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10935 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010936 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010937 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010938 .ctext = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010939 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010940 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010941 }, {
10942 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
10943 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
10944 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
10945 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
10946 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
10947 .klen = 40,
10948 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10949 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010950 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010951 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010952 .ctext = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010953 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010954 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010955 }, {
10956 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
10957 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
10958 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
10959 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
10960 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
10961 .klen = 40,
10962 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10963 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010964 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010965 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010966 .ctext = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010967 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010968 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010969 }, {
10970 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10971 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10972 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10973 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10974 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10975 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10976 .klen = 48,
10977 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10978 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010979 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010980 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010981 .ctext = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010982 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010983 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010984 }, {
10985 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
10986 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
10987 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
10988 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
10989 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
10990 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
10991 .klen = 48,
10992 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10993 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010994 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010995 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010996 .ctext = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010997 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010998 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030010999 }, {
11000 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
11001 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
11002 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
11003 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
11004 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
11005 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
11006 .klen = 48,
11007 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11008 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011009 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011010 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
11011 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
11012 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
11013 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
11014 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
11015 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
11016 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
11017 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
11018 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
11019 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
11020 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
11021 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
11022 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
11023 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
11024 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
11025 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
11026 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
11027 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
11028 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
11029 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
11030 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
11031 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
11032 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
11033 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
11034 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
11035 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
11036 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
11037 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
11038 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
11039 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
11040 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
11041 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
11042 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
11043 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
11044 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
11045 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
11046 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
11047 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
11048 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
11049 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
11050 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
11051 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
11052 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
11053 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
11054 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
11055 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
11056 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
11057 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
11058 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
11059 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
11060 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
11061 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
11062 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
11063 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
11064 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
11065 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
11066 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
11067 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
11068 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
11069 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
11070 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
11071 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
11072 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011073 .ctext = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011074 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
11075 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
11076 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
11077 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
11078 "\xce\xab\xda\x33\x30\x20\x12\xfa"
11079 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
11080 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
11081 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
11082 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
11083 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
11084 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
11085 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
11086 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
11087 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
11088 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
11089 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
11090 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
11091 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
11092 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
11093 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
11094 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
11095 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
11096 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
11097 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
11098 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
11099 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
11100 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
11101 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
11102 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
11103 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
11104 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
11105 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
11106 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
11107 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
11108 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
11109 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
11110 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
11111 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
11112 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
11113 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
11114 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
11115 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
11116 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
11117 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
11118 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
11119 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
11120 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
11121 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
11122 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
11123 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
11124 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
11125 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
11126 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
11127 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
11128 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
11129 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
11130 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
11131 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
11132 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
11133 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
11134 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
11135 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
11136 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011137 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030011138 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020011139 .np = 3,
11140 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011141 },
11142};
11143
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011144static const struct cipher_testvec serpent_xts_tv_template[] = {
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011145 /* Generated from AES-XTS test vectors */
11146 {
11147 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
11148 "\x00\x00\x00\x00\x00\x00\x00\x00"
11149 "\x00\x00\x00\x00\x00\x00\x00\x00"
11150 "\x00\x00\x00\x00\x00\x00\x00\x00",
11151 .klen = 32,
11152 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11153 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011154 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011155 "\x00\x00\x00\x00\x00\x00\x00\x00"
11156 "\x00\x00\x00\x00\x00\x00\x00\x00"
11157 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011158 .ctext = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011159 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
11160 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
11161 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011162 .len = 32,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011163 }, {
11164 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
11165 "\x11\x11\x11\x11\x11\x11\x11\x11"
11166 "\x22\x22\x22\x22\x22\x22\x22\x22"
11167 "\x22\x22\x22\x22\x22\x22\x22\x22",
11168 .klen = 32,
11169 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11170 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011171 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011172 "\x44\x44\x44\x44\x44\x44\x44\x44"
11173 "\x44\x44\x44\x44\x44\x44\x44\x44"
11174 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011175 .ctext = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011176 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
11177 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
11178 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011179 .len = 32,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011180 }, {
11181 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
11182 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
11183 "\x22\x22\x22\x22\x22\x22\x22\x22"
11184 "\x22\x22\x22\x22\x22\x22\x22\x22",
11185 .klen = 32,
11186 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11187 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011188 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011189 "\x44\x44\x44\x44\x44\x44\x44\x44"
11190 "\x44\x44\x44\x44\x44\x44\x44\x44"
11191 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011192 .ctext = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011193 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
11194 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
11195 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011196 .len = 32,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011197 }, {
11198 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11199 "\x23\x53\x60\x28\x74\x71\x35\x26"
11200 "\x31\x41\x59\x26\x53\x58\x97\x93"
11201 "\x23\x84\x62\x64\x33\x83\x27\x95",
11202 .klen = 32,
11203 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11204 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011205 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011206 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11207 "\x10\x11\x12\x13\x14\x15\x16\x17"
11208 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11209 "\x20\x21\x22\x23\x24\x25\x26\x27"
11210 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11211 "\x30\x31\x32\x33\x34\x35\x36\x37"
11212 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11213 "\x40\x41\x42\x43\x44\x45\x46\x47"
11214 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11215 "\x50\x51\x52\x53\x54\x55\x56\x57"
11216 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11217 "\x60\x61\x62\x63\x64\x65\x66\x67"
11218 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11219 "\x70\x71\x72\x73\x74\x75\x76\x77"
11220 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11221 "\x80\x81\x82\x83\x84\x85\x86\x87"
11222 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11223 "\x90\x91\x92\x93\x94\x95\x96\x97"
11224 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11225 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11226 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11227 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11228 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11229 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11230 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11231 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11232 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11233 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11234 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11235 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11236 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11237 "\x00\x01\x02\x03\x04\x05\x06\x07"
11238 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11239 "\x10\x11\x12\x13\x14\x15\x16\x17"
11240 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11241 "\x20\x21\x22\x23\x24\x25\x26\x27"
11242 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11243 "\x30\x31\x32\x33\x34\x35\x36\x37"
11244 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11245 "\x40\x41\x42\x43\x44\x45\x46\x47"
11246 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11247 "\x50\x51\x52\x53\x54\x55\x56\x57"
11248 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11249 "\x60\x61\x62\x63\x64\x65\x66\x67"
11250 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11251 "\x70\x71\x72\x73\x74\x75\x76\x77"
11252 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11253 "\x80\x81\x82\x83\x84\x85\x86\x87"
11254 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11255 "\x90\x91\x92\x93\x94\x95\x96\x97"
11256 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11257 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11258 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11259 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11260 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11261 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11262 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11263 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11264 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11265 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11266 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11267 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11268 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011269 .ctext = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011270 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
11271 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
11272 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
11273 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
11274 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
11275 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
11276 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
11277 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
11278 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
11279 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
11280 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
11281 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
11282 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
11283 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
11284 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
11285 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
11286 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
11287 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
11288 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
11289 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
11290 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
11291 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
11292 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
11293 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
11294 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
11295 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
11296 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
11297 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
11298 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
11299 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
11300 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
11301 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
11302 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
11303 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
11304 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
11305 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
11306 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
11307 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
11308 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
11309 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
11310 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
11311 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
11312 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
11313 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
11314 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
11315 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
11316 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
11317 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
11318 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
11319 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
11320 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
11321 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
11322 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
11323 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
11324 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
11325 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
11326 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
11327 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
11328 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
11329 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
11330 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
11331 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
11332 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011333 .len = 512,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011334 }, {
11335 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11336 "\x23\x53\x60\x28\x74\x71\x35\x26"
11337 "\x62\x49\x77\x57\x24\x70\x93\x69"
11338 "\x99\x59\x57\x49\x66\x96\x76\x27"
11339 "\x31\x41\x59\x26\x53\x58\x97\x93"
11340 "\x23\x84\x62\x64\x33\x83\x27\x95"
11341 "\x02\x88\x41\x97\x16\x93\x99\x37"
11342 "\x51\x05\x82\x09\x74\x94\x45\x92",
11343 .klen = 64,
11344 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
11345 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011346 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011347 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11348 "\x10\x11\x12\x13\x14\x15\x16\x17"
11349 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11350 "\x20\x21\x22\x23\x24\x25\x26\x27"
11351 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11352 "\x30\x31\x32\x33\x34\x35\x36\x37"
11353 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11354 "\x40\x41\x42\x43\x44\x45\x46\x47"
11355 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11356 "\x50\x51\x52\x53\x54\x55\x56\x57"
11357 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11358 "\x60\x61\x62\x63\x64\x65\x66\x67"
11359 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11360 "\x70\x71\x72\x73\x74\x75\x76\x77"
11361 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11362 "\x80\x81\x82\x83\x84\x85\x86\x87"
11363 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11364 "\x90\x91\x92\x93\x94\x95\x96\x97"
11365 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11366 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11367 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11368 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11369 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11370 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11371 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11372 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11373 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11374 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11375 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11376 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11377 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11378 "\x00\x01\x02\x03\x04\x05\x06\x07"
11379 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11380 "\x10\x11\x12\x13\x14\x15\x16\x17"
11381 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11382 "\x20\x21\x22\x23\x24\x25\x26\x27"
11383 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11384 "\x30\x31\x32\x33\x34\x35\x36\x37"
11385 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11386 "\x40\x41\x42\x43\x44\x45\x46\x47"
11387 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11388 "\x50\x51\x52\x53\x54\x55\x56\x57"
11389 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11390 "\x60\x61\x62\x63\x64\x65\x66\x67"
11391 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11392 "\x70\x71\x72\x73\x74\x75\x76\x77"
11393 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11394 "\x80\x81\x82\x83\x84\x85\x86\x87"
11395 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11396 "\x90\x91\x92\x93\x94\x95\x96\x97"
11397 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11398 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11399 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11400 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11401 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11402 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11403 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11404 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11405 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11406 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11407 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11408 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11409 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011410 .ctext = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011411 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
11412 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
11413 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
11414 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
11415 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
11416 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
11417 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
11418 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
11419 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
11420 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
11421 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
11422 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
11423 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
11424 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
11425 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
11426 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
11427 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
11428 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
11429 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
11430 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
11431 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
11432 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
11433 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
11434 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
11435 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
11436 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
11437 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
11438 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
11439 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
11440 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
11441 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
11442 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
11443 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
11444 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
11445 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
11446 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
11447 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
11448 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
11449 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
11450 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
11451 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
11452 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
11453 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
11454 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
11455 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
11456 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
11457 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
11458 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
11459 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
11460 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
11461 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
11462 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
11463 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
11464 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
11465 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
11466 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
11467 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
11468 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
11469 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
11470 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
11471 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
11472 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
11473 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011474 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030011475 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020011476 .np = 3,
11477 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011478 },
11479};
11480
Eric Biggersda7a0ab2018-02-14 10:42:19 -080011481/*
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011482 * SM4 test vectors taken from the "The SM4 Blockcipher Algorithm And Its
11483 * Modes Of Operations" draft RFC
11484 * https://datatracker.ietf.org/doc/draft-ribose-cfrg-sm4
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011485 */
11486
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011487static const struct cipher_testvec sm4_tv_template[] = {
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011488 { /* GB/T 32907-2016 Example 1. */
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011489 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11490 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11491 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011492 .ptext = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011493 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011494 .ctext = "\x68\x1E\xDF\x34\xD2\x06\x96\x5E"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011495 "\x86\xB3\xE9\x4F\x53\x6E\x42\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011496 .len = 16,
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011497 }, { /* Last 10 iterations of GB/T 32907-2016 Example 2. */
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011498 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11499 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11500 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011501 .ptext = "\x99\x4a\xc3\xe7\xc3\x57\x89\x6a"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011502 "\x81\xfc\xa8\xe\x38\x3e\xef\x80"
11503 "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
11504 "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
11505 "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
11506 "\xad\x57\x15\xab\x31\x5d\xc\xef"
11507 "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
11508 "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
11509 "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
11510 "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
11511 "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
11512 "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
11513 "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
11514 "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
11515 "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
11516 "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
11517 "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
11518 "\xed\xce\x0\x19\xe\x16\x2\x6e"
11519 "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
11520 "\x31\x51\xec\x47\xc3\x51\x83\xc1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011521 .ctext = "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011522 "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
11523 "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
11524 "\xad\x57\x15\xab\x31\x5d\xc\xef"
11525 "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
11526 "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
11527 "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
11528 "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
11529 "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
11530 "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
11531 "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
11532 "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
11533 "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
11534 "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
11535 "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
11536 "\xed\xce\x0\x19\xe\x16\x2\x6e"
11537 "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
11538 "\x31\x51\xec\x47\xc3\x51\x83\xc1"
11539 "\x59\x52\x98\xc7\xc6\xfd\x27\x1f"
11540 "\x4\x2\xf8\x4\xc3\x3d\x3f\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011541 .len = 160
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011542 }, { /* A.2.1.1 SM4-ECB Example 1 */
11543 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11544 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11545 .klen = 16,
11546 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11547 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11548 "\xee\xee\xee\xee\xff\xff\xff\xff"
11549 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11550 .ctext = "\x5e\xc8\x14\x3d\xe5\x09\xcf\xf7"
11551 "\xb5\x17\x9f\x8f\x47\x4b\x86\x19"
11552 "\x2f\x1d\x30\x5a\x7f\xb1\x7d\xf9"
11553 "\x85\xf8\x1c\x84\x82\x19\x23\x04",
11554 .len = 32,
11555 }, { /* A.2.1.2 SM4-ECB Example 2 */
11556 .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10"
11557 "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
11558 .klen = 16,
11559 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11560 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11561 "\xee\xee\xee\xee\xff\xff\xff\xff"
11562 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11563 .ctext = "\xC5\x87\x68\x97\xE4\xA5\x9B\xBB"
11564 "\xA7\x2A\x10\xC8\x38\x72\x24\x5B"
11565 "\x12\xDD\x90\xBC\x2D\x20\x06\x92"
11566 "\xB5\x29\xA4\x15\x5A\xC9\xE6\x00",
11567 .len = 32,
11568 }
11569};
11570
11571static const struct cipher_testvec sm4_cbc_tv_template[] = {
11572 { /* A.2.2.1 SM4-CBC Example 1 */
11573 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11574 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11575 .klen = 16,
11576 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11577 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11578 "\xee\xee\xee\xee\xff\xff\xff\xff"
11579 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11580 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11581 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
11582 .ctext = "\x78\xEB\xB1\x1C\xC4\x0B\x0A\x48"
11583 "\x31\x2A\xAE\xB2\x04\x02\x44\xCB"
11584 "\x4C\xB7\x01\x69\x51\x90\x92\x26"
11585 "\x97\x9B\x0D\x15\xDC\x6A\x8F\x6D",
11586 .len = 32,
11587 }, { /* A.2.2.2 SM4-CBC Example 2 */
11588 .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10"
11589 "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
11590 .klen = 16,
11591 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11592 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11593 "\xee\xee\xee\xee\xff\xff\xff\xff"
11594 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11595 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11596 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
11597 .ctext = "\x0d\x3a\x6d\xdc\x2d\x21\xc6\x98"
11598 "\x85\x72\x15\x58\x7b\x7b\xb5\x9a"
11599 "\x91\xf2\xc1\x47\x91\x1a\x41\x44"
11600 "\x66\x5e\x1f\xa1\xd4\x0b\xae\x38",
11601 .len = 32,
11602 }
11603};
11604
11605static const struct cipher_testvec sm4_ctr_tv_template[] = {
11606 { /* A.2.5.1 SM4-CTR Example 1 */
11607 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11608 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11609 .klen = 16,
11610 .ptext = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
11611 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb"
11612 "\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc"
11613 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
11614 "\xee\xee\xee\xee\xee\xee\xee\xee"
11615 "\xff\xff\xff\xff\xff\xff\xff\xff"
11616 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
11617 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb",
11618 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11619 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
11620 .ctext = "\xac\x32\x36\xcb\x97\x0c\xc2\x07"
11621 "\x91\x36\x4c\x39\x5a\x13\x42\xd1"
11622 "\xa3\xcb\xc1\x87\x8c\x6f\x30\xcd"
11623 "\x07\x4c\xce\x38\x5c\xdd\x70\xc7"
11624 "\xf2\x34\xbc\x0e\x24\xc1\x19\x80"
11625 "\xfd\x12\x86\x31\x0c\xe3\x7b\x92"
11626 "\x6e\x02\xfc\xd0\xfa\xa0\xba\xf3"
11627 "\x8b\x29\x33\x85\x1d\x82\x45\x14",
11628 .len = 64,
11629 }, { /* A.2.5.2 SM4-CTR Example 2 */
11630 .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10"
11631 "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
11632 .klen = 16,
11633 .ptext = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
11634 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb"
11635 "\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc"
11636 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
11637 "\xee\xee\xee\xee\xee\xee\xee\xee"
11638 "\xff\xff\xff\xff\xff\xff\xff\xff"
11639 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
11640 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb",
11641 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11642 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
11643 .ctext = "\x5d\xcc\xcd\x25\xb9\x5a\xb0\x74"
11644 "\x17\xa0\x85\x12\xee\x16\x0e\x2f"
11645 "\x8f\x66\x15\x21\xcb\xba\xb4\x4c"
11646 "\xc8\x71\x38\x44\x5b\xc2\x9e\x5c"
11647 "\x0a\xe0\x29\x72\x05\xd6\x27\x04"
11648 "\x17\x3b\x21\x23\x9b\x88\x7f\x6c"
11649 "\x8c\xb5\xb8\x00\x91\x7a\x24\x88"
11650 "\x28\x4b\xde\x9e\x16\xea\x29\x06",
11651 .len = 64,
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011652 }
11653};
11654
Herbert Xuda7f0332008-07-31 17:08:25 +080011655/* Cast6 test vectors from RFC 2612 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011656static const struct cipher_testvec cast6_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080011657 {
11658 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
11659 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
11660 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011661 .ptext = zeroed_string,
11662 .ctext = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080011663 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011664 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080011665 }, {
11666 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
11667 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
11668 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
11669 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011670 .ptext = zeroed_string,
11671 .ctext = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
Herbert Xuda7f0332008-07-31 17:08:25 +080011672 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011673 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080011674 }, {
11675 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
11676 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
11677 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
11678 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
11679 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011680 .ptext = zeroed_string,
11681 .ctext = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080011682 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011683 .len = 16,
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011684 }, { /* Generated from TF test vectors */
11685 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11686 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11687 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11688 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11689 .klen = 32,
11690 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11691 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011692 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011693 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11694 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11695 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11696 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11697 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11698 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11699 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11700 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11701 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11702 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11703 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11704 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11705 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11706 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11707 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11708 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11709 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11710 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11711 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11712 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11713 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11714 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11715 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11716 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11717 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11718 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11719 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11720 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11721 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11722 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11723 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11724 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11725 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11726 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11727 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11728 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11729 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11730 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11731 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11732 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11733 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11734 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11735 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11736 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11737 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11738 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11739 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11740 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11741 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11742 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11743 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11744 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11745 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11746 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11747 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11748 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11749 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11750 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11751 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11752 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11753 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011754 .ctext = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011755 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
11756 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
11757 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
11758 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
11759 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
11760 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
11761 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
11762 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
11763 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
11764 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
11765 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
11766 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
11767 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
11768 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
11769 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
11770 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
11771 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
11772 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
11773 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
11774 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
11775 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
11776 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
11777 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
11778 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
11779 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
11780 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
11781 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
11782 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
11783 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
11784 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
11785 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
11786 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
11787 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
11788 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
11789 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
11790 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
11791 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
11792 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
11793 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
11794 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
11795 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
11796 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
11797 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
11798 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
11799 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
11800 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
11801 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
11802 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
11803 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
11804 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
11805 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
11806 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
11807 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
11808 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
11809 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
11810 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
11811 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
11812 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
11813 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
11814 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
11815 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011816 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030011817 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020011818 .np = 3,
11819 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080011820 },
11821};
11822
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011823static const struct cipher_testvec cast6_cbc_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011824 { /* Generated from TF test vectors */
11825 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11826 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11827 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11828 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11829 .klen = 32,
11830 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11831 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011832 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011833 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11834 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11835 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11836 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11837 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11838 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11839 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11840 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11841 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11842 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11843 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11844 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11845 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11846 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11847 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11848 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11849 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11850 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11851 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11852 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11853 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11854 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11855 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11856 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11857 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11858 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11859 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11860 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11861 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11862 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11863 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11864 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11865 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11866 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11867 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11868 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11869 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11870 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11871 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11872 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11873 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11874 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11875 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11876 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11877 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11878 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11879 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11880 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11881 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11882 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11883 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11884 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11885 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11886 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11887 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11888 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11889 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11890 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11891 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11892 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11893 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011894 .ctext = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011895 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
11896 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
11897 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
11898 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
11899 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
11900 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
11901 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
11902 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
11903 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
11904 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
11905 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
11906 "\x23\x16\x47\x72\x81\x13\x3A\x72"
11907 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
11908 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
11909 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
11910 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
11911 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
11912 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
11913 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
11914 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
11915 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
11916 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
11917 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
11918 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
11919 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
11920 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
11921 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
11922 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
11923 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
11924 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
11925 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
11926 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
11927 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
11928 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
11929 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
11930 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
11931 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
11932 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
11933 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
11934 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
11935 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
11936 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
11937 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
11938 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
11939 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
11940 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
11941 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
11942 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
11943 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
11944 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
11945 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
11946 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
11947 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
11948 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
11949 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
11950 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
11951 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
11952 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
11953 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
11954 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
11955 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011956 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030011957 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020011958 .np = 3,
11959 .tap = { 496 - 20, 4, 16 },
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011960 },
11961};
11962
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011963static const struct cipher_testvec cast6_ctr_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011964 { /* Generated from TF test vectors */
11965 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11966 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11967 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11968 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11969 .klen = 32,
11970 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11971 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011972 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011973 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030011974 "\x3A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011975 .ctext = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030011976 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
11977 "\x57",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011978 .len = 17,
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030011979 }, { /* Generated from TF test vectors */
11980 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11981 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11982 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11983 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11984 .klen = 32,
11985 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
11986 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011987 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030011988 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011989 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11990 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11991 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11992 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11993 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11994 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11995 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11996 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11997 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11998 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11999 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12000 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12001 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12002 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12003 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12004 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12005 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12006 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12007 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12008 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12009 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12010 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12011 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12012 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12013 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12014 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12015 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12016 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12017 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12018 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12019 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12020 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12021 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12022 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12023 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12024 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12025 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12026 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12027 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12028 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12029 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12030 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12031 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12032 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12033 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12034 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12035 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12036 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12037 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12038 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12039 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12040 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12041 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12042 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12043 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12044 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12045 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12046 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12047 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12048 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012049 .ctext = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012050 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12051 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
12052 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
12053 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
12054 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
12055 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
12056 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
12057 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
12058 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
12059 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
12060 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
12061 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
12062 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
12063 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
12064 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
12065 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
12066 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
12067 "\x49\x61\x22\x52\x64\x8C\x46\x41"
12068 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
12069 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
12070 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
12071 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
12072 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
12073 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
12074 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
12075 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
12076 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
12077 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
12078 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
12079 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
12080 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
12081 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
12082 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
12083 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
12084 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
12085 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
12086 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
12087 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
12088 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
12089 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
12090 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
12091 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
12092 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
12093 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
12094 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
12095 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
12096 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
12097 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
12098 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
12099 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
12100 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
12101 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
12102 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
12103 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
12104 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
12105 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
12106 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
12107 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
12108 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
12109 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
12110 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012111 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030012112 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020012113 .np = 3,
12114 .tap = { 496 - 20, 4, 16 },
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012115 },
12116};
12117
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012118static const struct cipher_testvec cast6_lrw_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012119 { /* Generated from TF test vectors */
12120 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12121 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12122 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12123 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12124 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12125 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12126 .klen = 48,
12127 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12128 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012129 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012130 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12131 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12132 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12133 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12134 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12135 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12136 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12137 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12138 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12139 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12140 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12141 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12142 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12143 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12144 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12145 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12146 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12147 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12148 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12149 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12150 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12151 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12152 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12153 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12154 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12155 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12156 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12157 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12158 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12159 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12160 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12161 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12162 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12163 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12164 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12165 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12166 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12167 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12168 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12169 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12170 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12171 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12172 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12173 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12174 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12175 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12176 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12177 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12178 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12179 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12180 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12181 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12182 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12183 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12184 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12185 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12186 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12187 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12188 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12189 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12190 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12191 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12192 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012193 .ctext = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012194 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
12195 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
12196 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
12197 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
12198 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
12199 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
12200 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
12201 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
12202 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
12203 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
12204 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
12205 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
12206 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
12207 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
12208 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
12209 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
12210 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
12211 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
12212 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
12213 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
12214 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
12215 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
12216 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
12217 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
12218 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
12219 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
12220 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
12221 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
12222 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
12223 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
12224 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
12225 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
12226 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
12227 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
12228 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
12229 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
12230 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
12231 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
12232 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
12233 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
12234 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
12235 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
12236 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
12237 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
12238 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
12239 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
12240 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
12241 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
12242 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
12243 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
12244 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
12245 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
12246 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
12247 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
12248 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
12249 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
12250 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
12251 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
12252 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
12253 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
12254 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
12255 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
12256 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012257 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030012258 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020012259 .np = 3,
12260 .tap = { 512 - 20, 4, 16 },
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012261 },
12262};
12263
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012264static const struct cipher_testvec cast6_xts_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012265 { /* Generated from TF test vectors */
12266 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
12267 "\x23\x53\x60\x28\x74\x71\x35\x26"
12268 "\x62\x49\x77\x57\x24\x70\x93\x69"
12269 "\x99\x59\x57\x49\x66\x96\x76\x27"
12270 "\x31\x41\x59\x26\x53\x58\x97\x93"
12271 "\x23\x84\x62\x64\x33\x83\x27\x95"
12272 "\x02\x88\x41\x97\x16\x93\x99\x37"
12273 "\x51\x05\x82\x09\x74\x94\x45\x92",
12274 .klen = 64,
12275 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
12276 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012277 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012278 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12279 "\x10\x11\x12\x13\x14\x15\x16\x17"
12280 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12281 "\x20\x21\x22\x23\x24\x25\x26\x27"
12282 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12283 "\x30\x31\x32\x33\x34\x35\x36\x37"
12284 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12285 "\x40\x41\x42\x43\x44\x45\x46\x47"
12286 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12287 "\x50\x51\x52\x53\x54\x55\x56\x57"
12288 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12289 "\x60\x61\x62\x63\x64\x65\x66\x67"
12290 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12291 "\x70\x71\x72\x73\x74\x75\x76\x77"
12292 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12293 "\x80\x81\x82\x83\x84\x85\x86\x87"
12294 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12295 "\x90\x91\x92\x93\x94\x95\x96\x97"
12296 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12297 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12298 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12299 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12300 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12301 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12302 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12303 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12304 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12305 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12306 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12307 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12308 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
12309 "\x00\x01\x02\x03\x04\x05\x06\x07"
12310 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12311 "\x10\x11\x12\x13\x14\x15\x16\x17"
12312 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12313 "\x20\x21\x22\x23\x24\x25\x26\x27"
12314 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12315 "\x30\x31\x32\x33\x34\x35\x36\x37"
12316 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12317 "\x40\x41\x42\x43\x44\x45\x46\x47"
12318 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12319 "\x50\x51\x52\x53\x54\x55\x56\x57"
12320 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12321 "\x60\x61\x62\x63\x64\x65\x66\x67"
12322 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12323 "\x70\x71\x72\x73\x74\x75\x76\x77"
12324 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12325 "\x80\x81\x82\x83\x84\x85\x86\x87"
12326 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12327 "\x90\x91\x92\x93\x94\x95\x96\x97"
12328 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12329 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12330 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12331 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12332 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12333 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12334 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12335 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12336 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12337 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12338 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12339 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12340 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012341 .ctext = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012342 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
12343 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
12344 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
12345 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
12346 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
12347 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
12348 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
12349 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
12350 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
12351 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
12352 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
12353 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
12354 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
12355 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
12356 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
12357 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
12358 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
12359 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
12360 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
12361 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
12362 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
12363 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
12364 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
12365 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
12366 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
12367 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
12368 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
12369 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
12370 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
12371 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
12372 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
12373 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
12374 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
12375 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
12376 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
12377 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
12378 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
12379 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
12380 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
12381 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
12382 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
12383 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
12384 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
12385 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
12386 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
12387 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
12388 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
12389 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
12390 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
12391 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
12392 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
12393 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
12394 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
12395 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
12396 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
12397 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
12398 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
12399 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
12400 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
12401 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
12402 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
12403 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
12404 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012405 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030012406 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020012407 .np = 3,
12408 .tap = { 512 - 20, 4, 16 },
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012409 },
12410};
12411
Herbert Xuda7f0332008-07-31 17:08:25 +080012412/*
12413 * AES test vectors.
12414 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012415static const struct cipher_testvec aes_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080012416 { /* From FIPS-197 */
12417 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
12418 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12419 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012420 .ptext = "\x00\x11\x22\x33\x44\x55\x66\x77"
Herbert Xuda7f0332008-07-31 17:08:25 +080012421 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012422 .ctext = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
Herbert Xuda7f0332008-07-31 17:08:25 +080012423 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012424 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080012425 }, {
12426 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
12427 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12428 "\x10\x11\x12\x13\x14\x15\x16\x17",
12429 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012430 .ptext = "\x00\x11\x22\x33\x44\x55\x66\x77"
Herbert Xuda7f0332008-07-31 17:08:25 +080012431 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012432 .ctext = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
Herbert Xuda7f0332008-07-31 17:08:25 +080012433 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012434 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080012435 }, {
12436 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
12437 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12438 "\x10\x11\x12\x13\x14\x15\x16\x17"
12439 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12440 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012441 .ptext = "\x00\x11\x22\x33\x44\x55\x66\x77"
Herbert Xuda7f0332008-07-31 17:08:25 +080012442 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012443 .ctext = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
Herbert Xuda7f0332008-07-31 17:08:25 +080012444 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012445 .len = 16,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012446 }, { /* Generated with Crypto++ */
12447 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
12448 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
12449 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
12450 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
12451 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012452 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012453 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
12454 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
12455 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
12456 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
12457 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
12458 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
12459 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
12460 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
12461 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
12462 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
12463 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
12464 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
12465 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
12466 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
12467 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
12468 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
12469 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
12470 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
12471 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
12472 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
12473 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
12474 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
12475 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
12476 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
12477 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
12478 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
12479 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
12480 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
12481 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
12482 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
12483 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
12484 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
12485 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
12486 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
12487 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
12488 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
12489 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
12490 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
12491 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
12492 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
12493 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
12494 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
12495 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
12496 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
12497 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
12498 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
12499 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
12500 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
12501 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
12502 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
12503 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
12504 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
12505 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
12506 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
12507 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
12508 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
12509 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
12510 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
12511 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
12512 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
12513 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012514 .ctext = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012515 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
12516 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
12517 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
12518 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
12519 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
12520 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
12521 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
12522 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
12523 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
12524 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
12525 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
12526 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
12527 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
12528 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
12529 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
12530 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
12531 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
12532 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
12533 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
12534 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
12535 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
12536 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
12537 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
12538 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
12539 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
12540 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
12541 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
12542 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
12543 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
12544 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
12545 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
12546 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
12547 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
12548 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
12549 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
12550 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
12551 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
12552 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
12553 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
12554 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
12555 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
12556 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
12557 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
12558 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
12559 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
12560 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
12561 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
12562 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
12563 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
12564 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
12565 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
12566 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
12567 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
12568 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
12569 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
12570 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
12571 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
12572 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
12573 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
12574 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
12575 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012576 .len = 496,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012577 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020012578 .np = 3,
12579 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080012580 },
12581};
12582
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012583static const struct cipher_testvec aes_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080012584 { /* From RFC 3602 */
12585 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12586 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12587 .klen = 16,
12588 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12589 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012590 .ptext = "Single block msg",
12591 .ctext = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +080012592 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012593 .len = 16,
LABBE Corentin0d8dc962015-07-06 13:37:33 +020012594 .also_non_np = 1,
12595 .np = 8,
12596 .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
Herbert Xuda7f0332008-07-31 17:08:25 +080012597 }, {
12598 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12599 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12600 .klen = 16,
12601 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12602 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012603 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080012604 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12605 "\x10\x11\x12\x13\x14\x15\x16\x17"
12606 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012607 .ctext = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
Herbert Xuda7f0332008-07-31 17:08:25 +080012608 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12609 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12610 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012611 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080012612 }, { /* From NIST SP800-38A */
12613 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12614 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12615 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12616 .klen = 24,
12617 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12618 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012619 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Herbert Xuda7f0332008-07-31 17:08:25 +080012620 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12621 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12622 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12623 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12624 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12625 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12626 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012627 .ctext = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
Herbert Xuda7f0332008-07-31 17:08:25 +080012628 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12629 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12630 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12631 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
12632 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
12633 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12634 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012635 .len = 64,
Herbert Xuda7f0332008-07-31 17:08:25 +080012636 }, {
12637 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12638 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12639 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12640 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12641 .klen = 32,
12642 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12643 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012644 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Herbert Xuda7f0332008-07-31 17:08:25 +080012645 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12646 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12647 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12648 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12649 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12650 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12651 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012652 .ctext = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
Herbert Xuda7f0332008-07-31 17:08:25 +080012653 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
12654 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
12655 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
12656 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
12657 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
12658 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
12659 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012660 .len = 64,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012661 }, { /* Generated with Crypto++ */
12662 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
12663 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
12664 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
12665 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
12666 .klen = 32,
12667 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
12668 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012669 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012670 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
12671 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
12672 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
12673 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
12674 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
12675 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
12676 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
12677 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
12678 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
12679 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
12680 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
12681 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
12682 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
12683 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
12684 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
12685 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
12686 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
12687 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
12688 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
12689 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
12690 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
12691 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
12692 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
12693 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
12694 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
12695 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
12696 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
12697 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
12698 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
12699 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
12700 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
12701 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
12702 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
12703 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
12704 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
12705 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
12706 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
12707 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
12708 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
12709 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
12710 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
12711 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
12712 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
12713 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
12714 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
12715 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
12716 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
12717 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
12718 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
12719 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
12720 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
12721 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
12722 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
12723 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
12724 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
12725 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
12726 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
12727 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
12728 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
12729 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
12730 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012731 .ctext = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012732 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
12733 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
12734 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
12735 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
12736 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
12737 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
12738 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
12739 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
12740 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
12741 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
12742 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
12743 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
12744 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
12745 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
12746 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
12747 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
12748 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
12749 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
12750 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
12751 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
12752 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
12753 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
12754 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
12755 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
12756 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
12757 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
12758 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
12759 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
12760 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
12761 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
12762 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
12763 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
12764 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
12765 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
12766 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
12767 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
12768 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
12769 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
12770 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
12771 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
12772 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
12773 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
12774 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
12775 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
12776 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
12777 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
12778 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
12779 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
12780 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
12781 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
12782 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
12783 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
12784 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
12785 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
12786 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
12787 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
12788 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
12789 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
12790 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
12791 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
12792 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012793 .len = 496,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012794 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020012795 .np = 3,
12796 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080012797 },
12798};
12799
Dmitry Eremin-Solenikov7da66672018-10-20 02:01:53 +030012800static const struct cipher_testvec aes_cfb_tv_template[] = {
12801 { /* From NIST SP800-38A */
12802 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
12803 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
12804 .klen = 16,
12805 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12806 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12807 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12808 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12809 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12810 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12811 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12812 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12813 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12814 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12815 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
12816 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
12817 "\xc8\xa6\x45\x37\xa0\xb3\xa9\x3f"
12818 "\xcd\xe3\xcd\xad\x9f\x1c\xe5\x8b"
12819 "\x26\x75\x1f\x67\xa3\xcb\xb1\x40"
12820 "\xb1\x80\x8c\xf1\x87\xa4\xf4\xdf"
12821 "\xc0\x4b\x05\x35\x7c\x5d\x1c\x0e"
12822 "\xea\xc4\xc6\x6f\x9f\xf7\xf2\xe6",
12823 .len = 64,
12824 }, {
12825 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12826 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12827 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12828 .klen = 24,
12829 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12830 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12831 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12832 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12833 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12834 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12835 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12836 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12837 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12838 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12839 .ctext = "\xcd\xc8\x0d\x6f\xdd\xf1\x8c\xab"
12840 "\x34\xc2\x59\x09\xc9\x9a\x41\x74"
12841 "\x67\xce\x7f\x7f\x81\x17\x36\x21"
12842 "\x96\x1a\x2b\x70\x17\x1d\x3d\x7a"
12843 "\x2e\x1e\x8a\x1d\xd5\x9b\x88\xb1"
12844 "\xc8\xe6\x0f\xed\x1e\xfa\xc4\xc9"
12845 "\xc0\x5f\x9f\x9c\xa9\x83\x4f\xa0"
12846 "\x42\xae\x8f\xba\x58\x4b\x09\xff",
12847 .len = 64,
12848 }, {
12849 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12850 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12851 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12852 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12853 .klen = 32,
12854 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12855 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12856 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12857 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12858 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12859 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12860 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12861 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12862 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12863 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12864 .ctext = "\xdc\x7e\x84\xbf\xda\x79\x16\x4b"
12865 "\x7e\xcd\x84\x86\x98\x5d\x38\x60"
12866 "\x39\xff\xed\x14\x3b\x28\xb1\xc8"
12867 "\x32\x11\x3c\x63\x31\xe5\x40\x7b"
12868 "\xdf\x10\x13\x24\x15\xe5\x4b\x92"
12869 "\xa1\x3e\xd0\xa8\x26\x7a\xe2\xf9"
12870 "\x75\xa3\x85\x74\x1a\xb9\xce\xf8"
12871 "\x20\x31\x62\x3d\x55\xb1\xe4\x71",
12872 .len = 64,
Eric Biggers394a9e02019-01-03 20:16:10 -080012873 .also_non_np = 1,
12874 .np = 2,
12875 .tap = { 31, 33 },
12876 }, { /* > 16 bytes, not a multiple of 16 bytes */
12877 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
12878 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
12879 .klen = 16,
12880 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12881 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12882 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12883 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12884 "\xae",
12885 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
12886 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
12887 "\xc8",
12888 .len = 17,
12889 }, { /* < 16 bytes */
12890 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
12891 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
12892 .klen = 16,
12893 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12894 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12895 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f",
12896 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad",
12897 .len = 7,
Dmitry Eremin-Solenikov7da66672018-10-20 02:01:53 +030012898 },
12899};
12900
Eric Biggersb13b1e02017-02-24 15:46:59 -080012901static const struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020012902 { /* Input data from RFC 2410 Case 1 */
12903#ifdef __LITTLE_ENDIAN
12904 .key = "\x08\x00" /* rta length */
12905 "\x01\x00" /* rta type */
12906#else
12907 .key = "\x00\x08" /* rta length */
12908 "\x00\x01" /* rta type */
12909#endif
12910 "\x00\x00\x00\x00" /* enc key length */
12911 "\x00\x00\x00\x00\x00\x00\x00\x00"
12912 "\x00\x00\x00\x00\x00\x00\x00\x00",
12913 .klen = 8 + 16 + 0,
12914 .iv = "",
12915 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12916 .ilen = 8,
12917 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12918 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
12919 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
12920 .rlen = 8 + 16,
12921 }, { /* Input data from RFC 2410 Case 2 */
12922#ifdef __LITTLE_ENDIAN
12923 .key = "\x08\x00" /* rta length */
12924 "\x01\x00" /* rta type */
12925#else
12926 .key = "\x00\x08" /* rta length */
12927 "\x00\x01" /* rta type */
12928#endif
12929 "\x00\x00\x00\x00" /* enc key length */
12930 "\x00\x00\x00\x00\x00\x00\x00\x00"
12931 "\x00\x00\x00\x00\x00\x00\x00\x00",
12932 .klen = 8 + 16 + 0,
12933 .iv = "",
12934 .input = "Network Security People Have A Strange Sense Of Humor",
12935 .ilen = 53,
12936 .result = "Network Security People Have A Strange Sense Of Humor"
12937 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
12938 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
12939 .rlen = 53 + 16,
12940 },
12941};
12942
Eric Biggersb13b1e02017-02-24 15:46:59 -080012943static const struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020012944 {
12945#ifdef __LITTLE_ENDIAN
12946 .key = "\x08\x00" /* rta length */
12947 "\x01\x00" /* rta type */
12948#else
12949 .key = "\x00\x08" /* rta length */
12950 "\x00\x01" /* rta type */
12951#endif
12952 "\x00\x00\x00\x00" /* enc key length */
12953 "\x00\x00\x00\x00\x00\x00\x00\x00"
12954 "\x00\x00\x00\x00\x00\x00\x00\x00",
12955 .klen = 8 + 16 + 0,
12956 .iv = "",
12957 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12958 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
12959 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
12960 .ilen = 8 + 16,
12961 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12962 .rlen = 8,
12963 }, {
12964#ifdef __LITTLE_ENDIAN
12965 .key = "\x08\x00" /* rta length */
12966 "\x01\x00" /* rta type */
12967#else
12968 .key = "\x00\x08" /* rta length */
12969 "\x00\x01" /* rta type */
12970#endif
12971 "\x00\x00\x00\x00" /* enc key length */
12972 "\x00\x00\x00\x00\x00\x00\x00\x00"
12973 "\x00\x00\x00\x00\x00\x00\x00\x00",
12974 .klen = 8 + 16 + 0,
12975 .iv = "",
12976 .input = "Network Security People Have A Strange Sense Of Humor"
12977 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
12978 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
12979 .ilen = 53 + 16,
12980 .result = "Network Security People Have A Strange Sense Of Humor",
12981 .rlen = 53,
12982 },
12983};
12984
Eric Biggersb13b1e02017-02-24 15:46:59 -080012985static const struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
Horia Geantae46e9a42012-07-03 19:16:54 +030012986 { /* RFC 3602 Case 1 */
12987#ifdef __LITTLE_ENDIAN
12988 .key = "\x08\x00" /* rta length */
12989 "\x01\x00" /* rta type */
12990#else
12991 .key = "\x00\x08" /* rta length */
12992 "\x00\x01" /* rta type */
12993#endif
12994 "\x00\x00\x00\x10" /* enc key length */
12995 "\x00\x00\x00\x00\x00\x00\x00\x00"
12996 "\x00\x00\x00\x00\x00\x00\x00\x00"
12997 "\x00\x00\x00\x00"
12998 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12999 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13000 .klen = 8 + 20 + 16,
13001 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13002 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Herbert Xu7079ce62015-07-30 17:53:14 +080013003 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13004 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13005 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013006 .input = "Single block msg",
13007 .ilen = 16,
13008 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
13009 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
13010 "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
13011 "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
13012 "\x03\x71\xa2\x06",
13013 .rlen = 16 + 20,
13014 }, { /* RFC 3602 Case 2 */
13015#ifdef __LITTLE_ENDIAN
13016 .key = "\x08\x00" /* rta length */
13017 "\x01\x00" /* rta type */
13018#else
13019 .key = "\x00\x08" /* rta length */
13020 "\x00\x01" /* rta type */
13021#endif
13022 "\x00\x00\x00\x10" /* enc key length */
13023 "\x20\x21\x22\x23\x24\x25\x26\x27"
13024 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13025 "\x30\x31\x32\x33"
13026 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13027 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13028 .klen = 8 + 20 + 16,
13029 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13030 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Herbert Xu7079ce62015-07-30 17:53:14 +080013031 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13032 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13033 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013034 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13035 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13036 "\x10\x11\x12\x13\x14\x15\x16\x17"
13037 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13038 .ilen = 32,
13039 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
13040 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13041 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13042 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
13043 "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
13044 "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
13045 "\x65\x39\xf8\xde",
13046 .rlen = 32 + 20,
13047 }, { /* RFC 3602 Case 3 */
13048#ifdef __LITTLE_ENDIAN
13049 .key = "\x08\x00" /* rta length */
13050 "\x01\x00" /* rta type */
13051#else
13052 .key = "\x00\x08" /* rta length */
13053 "\x00\x01" /* rta type */
13054#endif
13055 "\x00\x00\x00\x10" /* enc key length */
13056 "\x11\x22\x33\x44\x55\x66\x77\x88"
13057 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13058 "\x22\x33\x44\x55"
13059 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
13060 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
13061 .klen = 8 + 20 + 16,
13062 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13063 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
Herbert Xu7079ce62015-07-30 17:53:14 +080013064 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13065 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
13066 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013067 .input = "This is a 48-byte message (exactly 3 AES blocks)",
13068 .ilen = 48,
13069 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
13070 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
13071 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
13072 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
13073 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
13074 "\x85\x79\x69\x5d\x83\xba\x26\x84"
13075 "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
13076 "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
13077 "\x8d\x62\xf2\x1e",
13078 .rlen = 48 + 20,
13079 }, { /* RFC 3602 Case 4 */
13080#ifdef __LITTLE_ENDIAN
13081 .key = "\x08\x00" /* rta length */
13082 "\x01\x00" /* rta type */
13083#else
13084 .key = "\x00\x08" /* rta length */
13085 "\x00\x01" /* rta type */
13086#endif
13087 "\x00\x00\x00\x10" /* enc key length */
13088 "\x11\x22\x33\x44\x55\x66\x77\x88"
13089 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13090 "\x22\x33\x44\x55"
13091 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
13092 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
13093 .klen = 8 + 20 + 16,
13094 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13095 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
Herbert Xu7079ce62015-07-30 17:53:14 +080013096 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13097 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
13098 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013099 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13100 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13101 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13102 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13103 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13104 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13105 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13106 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
13107 .ilen = 64,
13108 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
13109 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
13110 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
13111 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
13112 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
13113 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
13114 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
13115 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
13116 "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
13117 "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
13118 "\x1d\xbe\xc6\xe9",
13119 .rlen = 64 + 20,
13120 }, { /* RFC 3602 Case 5 */
13121#ifdef __LITTLE_ENDIAN
13122 .key = "\x08\x00" /* rta length */
13123 "\x01\x00" /* rta type */
13124#else
13125 .key = "\x00\x08" /* rta length */
13126 "\x00\x01" /* rta type */
13127#endif
13128 "\x00\x00\x00\x10" /* enc key length */
13129 "\x11\x22\x33\x44\x55\x66\x77\x88"
13130 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13131 "\x22\x33\x44\x55"
13132 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
13133 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
13134 .klen = 8 + 20 + 16,
13135 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13136 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
Herbert Xu7079ce62015-07-30 17:53:14 +080013137 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13138 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13139 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
13140 .alen = 24,
Horia Geantae46e9a42012-07-03 19:16:54 +030013141 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
13142 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
13143 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13144 "\x10\x11\x12\x13\x14\x15\x16\x17"
13145 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13146 "\x20\x21\x22\x23\x24\x25\x26\x27"
13147 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13148 "\x30\x31\x32\x33\x34\x35\x36\x37"
13149 "\x01\x02\x03\x04\x05\x06\x07\x08"
13150 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
13151 .ilen = 80,
13152 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
13153 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
13154 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
13155 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
13156 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
13157 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
13158 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
13159 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
13160 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
13161 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
13162 "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
13163 "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
13164 "\x85\xe1\x59\xf7",
13165 .rlen = 80 + 20,
13166 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
13167#ifdef __LITTLE_ENDIAN
13168 .key = "\x08\x00" /* rta length */
13169 "\x01\x00" /* rta type */
13170#else
13171 .key = "\x00\x08" /* rta length */
13172 "\x00\x01" /* rta type */
13173#endif
13174 "\x00\x00\x00\x18" /* enc key length */
13175 "\x11\x22\x33\x44\x55\x66\x77\x88"
13176 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13177 "\x22\x33\x44\x55"
13178 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13179 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13180 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13181 .klen = 8 + 20 + 24,
13182 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13183 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013184 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13185 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13186 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013187 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13188 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13189 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13190 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13191 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13192 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13193 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13194 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13195 .ilen = 64,
13196 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13197 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13198 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13199 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13200 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13201 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13202 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13203 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
13204 "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
13205 "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
13206 "\x47\x4c\xfc\x36",
13207 .rlen = 64 + 20,
13208 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
13209#ifdef __LITTLE_ENDIAN
13210 .key = "\x08\x00" /* rta length */
13211 "\x01\x00" /* rta type */
13212#else
13213 .key = "\x00\x08" /* rta length */
13214 "\x00\x01" /* rta type */
13215#endif
13216 "\x00\x00\x00\x20" /* enc key length */
13217 "\x11\x22\x33\x44\x55\x66\x77\x88"
13218 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13219 "\x22\x33\x44\x55"
13220 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13221 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13222 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13223 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13224 .klen = 8 + 20 + 32,
13225 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13226 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013227 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13228 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13229 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013230 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13231 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13232 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13233 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13234 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13235 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13236 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13237 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13238 .ilen = 64,
13239 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
13240 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13241 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13242 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13243 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13244 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13245 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13246 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
13247 "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
13248 "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
13249 "\x51\xee\xd6\x4e",
13250 .rlen = 64 + 20,
13251 },
13252};
13253
Eric Biggersb13b1e02017-02-24 15:46:59 -080013254static const struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020013255 { /* Input data from RFC 2410 Case 1 */
13256#ifdef __LITTLE_ENDIAN
13257 .key = "\x08\x00" /* rta length */
13258 "\x01\x00" /* rta type */
13259#else
13260 .key = "\x00\x08" /* rta length */
13261 "\x00\x01" /* rta type */
13262#endif
13263 "\x00\x00\x00\x00" /* enc key length */
13264 "\x00\x00\x00\x00\x00\x00\x00\x00"
13265 "\x00\x00\x00\x00\x00\x00\x00\x00"
13266 "\x00\x00\x00\x00",
13267 .klen = 8 + 20 + 0,
13268 .iv = "",
13269 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
13270 .ilen = 8,
13271 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
13272 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
13273 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
13274 "\x8c\x5e\xe4\x08",
13275 .rlen = 8 + 20,
13276 }, { /* Input data from RFC 2410 Case 2 */
13277#ifdef __LITTLE_ENDIAN
13278 .key = "\x08\x00" /* rta length */
13279 "\x01\x00" /* rta type */
13280#else
13281 .key = "\x00\x08" /* rta length */
13282 "\x00\x01" /* rta type */
13283#endif
13284 "\x00\x00\x00\x00" /* enc key length */
13285 "\x00\x00\x00\x00\x00\x00\x00\x00"
13286 "\x00\x00\x00\x00\x00\x00\x00\x00"
13287 "\x00\x00\x00\x00",
13288 .klen = 8 + 20 + 0,
13289 .iv = "",
13290 .input = "Network Security People Have A Strange Sense Of Humor",
13291 .ilen = 53,
13292 .result = "Network Security People Have A Strange Sense Of Humor"
13293 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
13294 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
13295 "\x91\x56\xe4\xd6",
13296 .rlen = 53 + 20,
13297 },
13298};
13299
Eric Biggersb13b1e02017-02-24 15:46:59 -080013300static const struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020013301 {
13302#ifdef __LITTLE_ENDIAN
13303 .key = "\x08\x00" /* rta length */
13304 "\x01\x00" /* rta type */
13305#else
13306 .key = "\x00\x08" /* rta length */
13307 "\x00\x01" /* rta type */
13308#endif
13309 "\x00\x00\x00\x00" /* enc key length */
13310 "\x00\x00\x00\x00\x00\x00\x00\x00"
13311 "\x00\x00\x00\x00\x00\x00\x00\x00"
13312 "\x00\x00\x00\x00",
13313 .klen = 8 + 20 + 0,
13314 .iv = "",
13315 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
13316 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
13317 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
13318 "\x8c\x5e\xe4\x08",
13319 .ilen = 8 + 20,
13320 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
13321 .rlen = 8,
13322 }, {
13323#ifdef __LITTLE_ENDIAN
13324 .key = "\x08\x00" /* rta length */
13325 "\x01\x00" /* rta type */
13326#else
13327 .key = "\x00\x08" /* rta length */
13328 "\x00\x01" /* rta type */
13329#endif
13330 "\x00\x00\x00\x00" /* enc key length */
13331 "\x00\x00\x00\x00\x00\x00\x00\x00"
13332 "\x00\x00\x00\x00\x00\x00\x00\x00"
13333 "\x00\x00\x00\x00",
13334 .klen = 8 + 20 + 0,
13335 .iv = "",
13336 .input = "Network Security People Have A Strange Sense Of Humor"
13337 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
13338 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
13339 "\x91\x56\xe4\xd6",
13340 .ilen = 53 + 20,
13341 .result = "Network Security People Have A Strange Sense Of Humor",
13342 .rlen = 53,
13343 },
13344};
13345
Eric Biggersb13b1e02017-02-24 15:46:59 -080013346static const struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
Horia Geantae46e9a42012-07-03 19:16:54 +030013347 { /* RFC 3602 Case 1 */
13348#ifdef __LITTLE_ENDIAN
13349 .key = "\x08\x00" /* rta length */
13350 "\x01\x00" /* rta type */
13351#else
13352 .key = "\x00\x08" /* rta length */
13353 "\x00\x01" /* rta type */
13354#endif
13355 "\x00\x00\x00\x10" /* enc key length */
13356 "\x00\x00\x00\x00\x00\x00\x00\x00"
13357 "\x00\x00\x00\x00\x00\x00\x00\x00"
13358 "\x00\x00\x00\x00\x00\x00\x00\x00"
13359 "\x00\x00\x00\x00\x00\x00\x00\x00"
13360 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13361 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13362 .klen = 8 + 32 + 16,
13363 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13364 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Herbert Xu7079ce62015-07-30 17:53:14 +080013365 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13366 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13367 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013368 .input = "Single block msg",
13369 .ilen = 16,
13370 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
13371 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
13372 "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
13373 "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
13374 "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
13375 "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
13376 .rlen = 16 + 32,
13377 }, { /* RFC 3602 Case 2 */
13378#ifdef __LITTLE_ENDIAN
13379 .key = "\x08\x00" /* rta length */
13380 "\x01\x00" /* rta type */
13381#else
13382 .key = "\x00\x08" /* rta length */
13383 "\x00\x01" /* rta type */
13384#endif
13385 "\x00\x00\x00\x10" /* enc key length */
13386 "\x20\x21\x22\x23\x24\x25\x26\x27"
13387 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13388 "\x30\x31\x32\x33\x34\x35\x36\x37"
13389 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13390 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13391 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13392 .klen = 8 + 32 + 16,
13393 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13394 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Herbert Xu7079ce62015-07-30 17:53:14 +080013395 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13396 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13397 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013398 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13399 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13400 "\x10\x11\x12\x13\x14\x15\x16\x17"
13401 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13402 .ilen = 32,
13403 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
13404 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13405 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13406 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
13407 "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
13408 "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
13409 "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
13410 "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
13411 .rlen = 32 + 32,
13412 }, { /* RFC 3602 Case 3 */
13413#ifdef __LITTLE_ENDIAN
13414 .key = "\x08\x00" /* rta length */
13415 "\x01\x00" /* rta type */
13416#else
13417 .key = "\x00\x08" /* rta length */
13418 "\x00\x01" /* rta type */
13419#endif
13420 "\x00\x00\x00\x10" /* enc key length */
13421 "\x11\x22\x33\x44\x55\x66\x77\x88"
13422 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13423 "\x22\x33\x44\x55\x66\x77\x88\x99"
13424 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13425 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
13426 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
13427 .klen = 8 + 32 + 16,
13428 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13429 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
Herbert Xu7079ce62015-07-30 17:53:14 +080013430 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13431 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
13432 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013433 .input = "This is a 48-byte message (exactly 3 AES blocks)",
13434 .ilen = 48,
13435 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
13436 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
13437 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
13438 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
13439 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
13440 "\x85\x79\x69\x5d\x83\xba\x26\x84"
13441 "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
13442 "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
13443 "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
13444 "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
13445 .rlen = 48 + 32,
13446 }, { /* RFC 3602 Case 4 */
13447#ifdef __LITTLE_ENDIAN
13448 .key = "\x08\x00" /* rta length */
13449 "\x01\x00" /* rta type */
13450#else
13451 .key = "\x00\x08" /* rta length */
13452 "\x00\x01" /* rta type */
13453#endif
13454 "\x00\x00\x00\x10" /* enc key length */
13455 "\x11\x22\x33\x44\x55\x66\x77\x88"
13456 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13457 "\x22\x33\x44\x55\x66\x77\x88\x99"
13458 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13459 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
13460 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
13461 .klen = 8 + 32 + 16,
13462 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13463 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
Herbert Xu7079ce62015-07-30 17:53:14 +080013464 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13465 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
13466 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013467 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13468 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13469 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13470 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13471 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13472 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13473 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13474 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
13475 .ilen = 64,
13476 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
13477 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
13478 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
13479 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
13480 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
13481 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
13482 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
13483 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
13484 "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
13485 "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
13486 "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
13487 "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
13488 .rlen = 64 + 32,
13489 }, { /* RFC 3602 Case 5 */
13490#ifdef __LITTLE_ENDIAN
13491 .key = "\x08\x00" /* rta length */
13492 "\x01\x00" /* rta type */
13493#else
13494 .key = "\x00\x08" /* rta length */
13495 "\x00\x01" /* rta type */
13496#endif
13497 "\x00\x00\x00\x10" /* enc key length */
13498 "\x11\x22\x33\x44\x55\x66\x77\x88"
13499 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13500 "\x22\x33\x44\x55\x66\x77\x88\x99"
13501 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13502 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
13503 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
13504 .klen = 8 + 32 + 16,
13505 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13506 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
Herbert Xu7079ce62015-07-30 17:53:14 +080013507 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13508 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13509 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
13510 .alen = 24,
Horia Geantae46e9a42012-07-03 19:16:54 +030013511 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
13512 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
13513 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13514 "\x10\x11\x12\x13\x14\x15\x16\x17"
13515 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13516 "\x20\x21\x22\x23\x24\x25\x26\x27"
13517 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13518 "\x30\x31\x32\x33\x34\x35\x36\x37"
13519 "\x01\x02\x03\x04\x05\x06\x07\x08"
13520 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
13521 .ilen = 80,
13522 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
13523 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
13524 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
13525 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
13526 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
13527 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
13528 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
13529 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
13530 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
13531 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
13532 "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
13533 "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
13534 "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
13535 "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
13536 .rlen = 80 + 32,
13537 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
13538#ifdef __LITTLE_ENDIAN
13539 .key = "\x08\x00" /* rta length */
13540 "\x01\x00" /* rta type */
13541#else
13542 .key = "\x00\x08" /* rta length */
13543 "\x00\x01" /* rta type */
13544#endif
13545 "\x00\x00\x00\x18" /* enc key length */
13546 "\x11\x22\x33\x44\x55\x66\x77\x88"
13547 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13548 "\x22\x33\x44\x55\x66\x77\x88\x99"
13549 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13550 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13551 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13552 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13553 .klen = 8 + 32 + 24,
13554 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13555 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013556 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13557 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13558 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013559 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13560 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13561 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13562 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13563 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13564 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13565 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13566 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13567 .ilen = 64,
13568 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13569 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13570 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13571 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13572 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13573 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13574 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13575 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
13576 "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
13577 "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
13578 "\xca\x71\x85\x93\xf7\x85\x55\x8b"
13579 "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
13580 .rlen = 64 + 32,
13581 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
13582#ifdef __LITTLE_ENDIAN
13583 .key = "\x08\x00" /* rta length */
13584 "\x01\x00" /* rta type */
13585#else
13586 .key = "\x00\x08" /* rta length */
13587 "\x00\x01" /* rta type */
13588#endif
13589 "\x00\x00\x00\x20" /* enc key length */
13590 "\x11\x22\x33\x44\x55\x66\x77\x88"
13591 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13592 "\x22\x33\x44\x55\x66\x77\x88\x99"
13593 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13594 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13595 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13596 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13597 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13598 .klen = 8 + 32 + 32,
13599 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13600 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013601 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13602 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13603 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013604 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13605 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13606 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13607 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13608 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13609 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13610 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13611 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13612 .ilen = 64,
13613 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
13614 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13615 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13616 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13617 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13618 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13619 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13620 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
13621 "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
13622 "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
13623 "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
13624 "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
13625 .rlen = 64 + 32,
13626 },
13627};
13628
Eric Biggersb13b1e02017-02-24 15:46:59 -080013629static const struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
Horia Geantae46e9a42012-07-03 19:16:54 +030013630 { /* RFC 3602 Case 1 */
13631#ifdef __LITTLE_ENDIAN
13632 .key = "\x08\x00" /* rta length */
13633 "\x01\x00" /* rta type */
13634#else
13635 .key = "\x00\x08" /* rta length */
13636 "\x00\x01" /* rta type */
13637#endif
13638 "\x00\x00\x00\x10" /* enc key length */
13639 "\x00\x00\x00\x00\x00\x00\x00\x00"
13640 "\x00\x00\x00\x00\x00\x00\x00\x00"
13641 "\x00\x00\x00\x00\x00\x00\x00\x00"
13642 "\x00\x00\x00\x00\x00\x00\x00\x00"
13643 "\x00\x00\x00\x00\x00\x00\x00\x00"
13644 "\x00\x00\x00\x00\x00\x00\x00\x00"
13645 "\x00\x00\x00\x00\x00\x00\x00\x00"
13646 "\x00\x00\x00\x00\x00\x00\x00\x00"
13647 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13648 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13649 .klen = 8 + 64 + 16,
13650 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13651 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Herbert Xu7079ce62015-07-30 17:53:14 +080013652 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13653 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13654 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013655 .input = "Single block msg",
13656 .ilen = 16,
13657 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
13658 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
13659 "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
13660 "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
13661 "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
13662 "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
13663 "\xec\xbd\x50\x08\x07\x64\x1a\x49"
13664 "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
13665 "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
13666 "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
13667 .rlen = 16 + 64,
13668 }, { /* RFC 3602 Case 2 */
13669#ifdef __LITTLE_ENDIAN
13670 .key = "\x08\x00" /* rta length */
13671 "\x01\x00" /* rta type */
13672#else
13673 .key = "\x00\x08" /* rta length */
13674 "\x00\x01" /* rta type */
13675#endif
13676 "\x00\x00\x00\x10" /* enc key length */
13677 "\x20\x21\x22\x23\x24\x25\x26\x27"
13678 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13679 "\x30\x31\x32\x33\x34\x35\x36\x37"
13680 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13681 "\x40\x41\x42\x43\x44\x45\x46\x47"
13682 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13683 "\x50\x51\x52\x53\x54\x55\x56\x57"
13684 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13685 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13686 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13687 .klen = 8 + 64 + 16,
13688 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13689 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Herbert Xu7079ce62015-07-30 17:53:14 +080013690 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13691 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13692 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013693 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
13694 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13695 "\x10\x11\x12\x13\x14\x15\x16\x17"
13696 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
13697 .ilen = 32,
13698 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
13699 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13700 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13701 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
13702 "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
13703 "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
13704 "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
13705 "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
13706 "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
13707 "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
13708 "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
13709 "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
13710 .rlen = 32 + 64,
13711 }, { /* RFC 3602 Case 3 */
13712#ifdef __LITTLE_ENDIAN
13713 .key = "\x08\x00" /* rta length */
13714 "\x01\x00" /* rta type */
13715#else
13716 .key = "\x00\x08" /* rta length */
13717 "\x00\x01" /* rta type */
13718#endif
13719 "\x00\x00\x00\x10" /* enc key length */
13720 "\x11\x22\x33\x44\x55\x66\x77\x88"
13721 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13722 "\x22\x33\x44\x55\x66\x77\x88\x99"
13723 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13724 "\x33\x44\x55\x66\x77\x88\x99\xaa"
13725 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13726 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13727 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13728 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
13729 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
13730 .klen = 8 + 64 + 16,
13731 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13732 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
Herbert Xu7079ce62015-07-30 17:53:14 +080013733 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13734 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
13735 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013736 .input = "This is a 48-byte message (exactly 3 AES blocks)",
13737 .ilen = 48,
13738 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
13739 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
13740 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
13741 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
13742 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
13743 "\x85\x79\x69\x5d\x83\xba\x26\x84"
13744 "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
13745 "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
13746 "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
13747 "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
13748 "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
13749 "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
13750 "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
13751 "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
13752 .rlen = 48 + 64,
13753 }, { /* RFC 3602 Case 4 */
13754#ifdef __LITTLE_ENDIAN
13755 .key = "\x08\x00" /* rta length */
13756 "\x01\x00" /* rta type */
13757#else
13758 .key = "\x00\x08" /* rta length */
13759 "\x00\x01" /* rta type */
13760#endif
13761 "\x00\x00\x00\x10" /* enc key length */
13762 "\x11\x22\x33\x44\x55\x66\x77\x88"
13763 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13764 "\x22\x33\x44\x55\x66\x77\x88\x99"
13765 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13766 "\x33\x44\x55\x66\x77\x88\x99\xaa"
13767 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13768 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13769 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13770 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
13771 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
13772 .klen = 8 + 64 + 16,
13773 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13774 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
Herbert Xu7079ce62015-07-30 17:53:14 +080013775 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13776 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
13777 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013778 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13779 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13780 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13781 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13782 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13783 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13784 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13785 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
13786 .ilen = 64,
13787 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
13788 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
13789 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
13790 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
13791 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
13792 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
13793 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
13794 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
13795 "\x82\xcd\x42\x28\x21\x20\x15\xcc"
13796 "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
13797 "\x61\x32\x82\x85\xcf\x27\xed\xb4"
13798 "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
13799 "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
13800 "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
13801 "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
13802 "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
13803 .rlen = 64 + 64,
13804 }, { /* RFC 3602 Case 5 */
13805#ifdef __LITTLE_ENDIAN
13806 .key = "\x08\x00" /* rta length */
13807 "\x01\x00" /* rta type */
13808#else
13809 .key = "\x00\x08" /* rta length */
13810 "\x00\x01" /* rta type */
13811#endif
13812 "\x00\x00\x00\x10" /* enc key length */
13813 "\x11\x22\x33\x44\x55\x66\x77\x88"
13814 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13815 "\x22\x33\x44\x55\x66\x77\x88\x99"
13816 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13817 "\x33\x44\x55\x66\x77\x88\x99\xaa"
13818 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13819 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13820 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13821 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
13822 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
13823 .klen = 8 + 64 + 16,
13824 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13825 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
Herbert Xu7079ce62015-07-30 17:53:14 +080013826 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13827 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13828 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
13829 .alen = 24,
Horia Geantae46e9a42012-07-03 19:16:54 +030013830 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
13831 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
13832 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13833 "\x10\x11\x12\x13\x14\x15\x16\x17"
13834 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13835 "\x20\x21\x22\x23\x24\x25\x26\x27"
13836 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13837 "\x30\x31\x32\x33\x34\x35\x36\x37"
13838 "\x01\x02\x03\x04\x05\x06\x07\x08"
13839 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
13840 .ilen = 80,
13841 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
13842 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
13843 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
13844 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
13845 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
13846 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
13847 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
13848 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
13849 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
13850 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
13851 "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
13852 "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
13853 "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
13854 "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
13855 "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
13856 "\x92\x26\xc1\x76\x20\x11\xeb\xba"
13857 "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
13858 "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
13859 .rlen = 80 + 64,
13860 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
13861#ifdef __LITTLE_ENDIAN
13862 .key = "\x08\x00" /* rta length */
13863 "\x01\x00" /* rta type */
13864#else
13865 .key = "\x00\x08" /* rta length */
13866 "\x00\x01" /* rta type */
13867#endif
13868 "\x00\x00\x00\x18" /* enc key length */
13869 "\x11\x22\x33\x44\x55\x66\x77\x88"
13870 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13871 "\x22\x33\x44\x55\x66\x77\x88\x99"
13872 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13873 "\x33\x44\x55\x66\x77\x88\x99\xaa"
13874 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13875 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13876 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13877 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13878 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13879 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13880 .klen = 8 + 64 + 24,
13881 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13882 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013883 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13884 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13885 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013886 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13887 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13888 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13889 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13890 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13891 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13892 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13893 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13894 .ilen = 64,
13895 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
13896 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13897 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13898 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13899 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13900 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13901 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13902 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
13903 "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
13904 "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
13905 "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
13906 "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
13907 "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
13908 "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
13909 "\x8d\x43\x98\xa7\x94\x16\x07\x02"
13910 "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
13911 .rlen = 64 + 64,
13912 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
13913#ifdef __LITTLE_ENDIAN
13914 .key = "\x08\x00" /* rta length */
13915 "\x01\x00" /* rta type */
13916#else
13917 .key = "\x00\x08" /* rta length */
13918 "\x00\x01" /* rta type */
13919#endif
13920 "\x00\x00\x00\x20" /* enc key length */
13921 "\x11\x22\x33\x44\x55\x66\x77\x88"
13922 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13923 "\x22\x33\x44\x55\x66\x77\x88\x99"
13924 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13925 "\x33\x44\x55\x66\x77\x88\x99\xaa"
13926 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13927 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13928 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13929 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13930 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13931 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13932 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13933 .klen = 8 + 64 + 32,
13934 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13935 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013936 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13937 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13938 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030013939 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13940 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13941 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13942 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13943 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13944 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13945 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13946 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13947 .ilen = 64,
13948 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
13949 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13950 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13951 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13952 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13953 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13954 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13955 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
13956 "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
13957 "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
13958 "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
13959 "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
13960 "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
13961 "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
13962 "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
13963 "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
13964 .rlen = 64 + 64,
13965 },
13966};
13967
Eric Biggersb13b1e02017-02-24 15:46:59 -080013968static const struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053013969 { /*Generated with cryptopp*/
13970#ifdef __LITTLE_ENDIAN
13971 .key = "\x08\x00" /* rta length */
13972 "\x01\x00" /* rta type */
13973#else
13974 .key = "\x00\x08" /* rta length */
13975 "\x00\x01" /* rta type */
13976#endif
13977 "\x00\x00\x00\x08" /* enc key length */
13978 "\x11\x22\x33\x44\x55\x66\x77\x88"
13979 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13980 "\x22\x33\x44\x55"
13981 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
13982 .klen = 8 + 20 + 8,
13983 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080013984 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13985 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13986 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053013987 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13988 "\x53\x20\x63\x65\x65\x72\x73\x74"
13989 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13990 "\x20\x79\x65\x53\x72\x63\x74\x65"
13991 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13992 "\x79\x6e\x53\x20\x63\x65\x65\x72"
13993 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13994 "\x6e\x61\x20\x79\x65\x53\x72\x63"
13995 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13996 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13997 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13998 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13999 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14000 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14001 "\x63\x65\x65\x72\x73\x74\x54\x20"
14002 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14003 .ilen = 128,
14004 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
14005 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14006 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14007 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14008 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14009 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14010 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14011 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14012 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14013 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14014 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14015 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14016 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14017 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14018 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14019 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14020 "\x95\x16\x20\x09\xf5\x95\x19\xfd"
14021 "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
14022 "\x5c\x44\xa9\x37",
14023 .rlen = 128 + 20,
14024 },
14025};
14026
Eric Biggersb13b1e02017-02-24 15:46:59 -080014027static const struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014028 { /*Generated with cryptopp*/
14029#ifdef __LITTLE_ENDIAN
14030 .key = "\x08\x00" /* rta length */
14031 "\x01\x00" /* rta type */
14032#else
14033 .key = "\x00\x08" /* rta length */
14034 "\x00\x01" /* rta type */
14035#endif
14036 "\x00\x00\x00\x08" /* enc key length */
14037 "\x11\x22\x33\x44\x55\x66\x77\x88"
14038 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14039 "\x22\x33\x44\x55\x66\x77\x88\x99"
14040 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
14041 .klen = 8 + 24 + 8,
14042 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014043 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14044 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14045 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014046 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
14047 "\x53\x20\x63\x65\x65\x72\x73\x74"
14048 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14049 "\x20\x79\x65\x53\x72\x63\x74\x65"
14050 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14051 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14052 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14053 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14054 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14055 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14056 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14057 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14058 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14059 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14060 "\x63\x65\x65\x72\x73\x74\x54\x20"
14061 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14062 .ilen = 128,
14063 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
14064 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14065 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14066 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14067 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14068 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14069 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14070 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14071 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14072 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14073 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14074 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14075 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14076 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14077 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14078 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14079 "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
14080 "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
14081 "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
14082 .rlen = 128 + 24,
14083 },
14084};
14085
Eric Biggersb13b1e02017-02-24 15:46:59 -080014086static const struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014087 { /*Generated with cryptopp*/
14088#ifdef __LITTLE_ENDIAN
14089 .key = "\x08\x00" /* rta length */
14090 "\x01\x00" /* rta type */
14091#else
14092 .key = "\x00\x08" /* rta length */
14093 "\x00\x01" /* rta type */
14094#endif
14095 "\x00\x00\x00\x08" /* enc key length */
14096 "\x11\x22\x33\x44\x55\x66\x77\x88"
14097 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14098 "\x22\x33\x44\x55\x66\x77\x88\x99"
14099 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14100 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
14101 .klen = 8 + 32 + 8,
14102 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014103 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14104 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14105 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014106 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
14107 "\x53\x20\x63\x65\x65\x72\x73\x74"
14108 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14109 "\x20\x79\x65\x53\x72\x63\x74\x65"
14110 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14111 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14112 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14113 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14114 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14115 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14116 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14117 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14118 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14119 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14120 "\x63\x65\x65\x72\x73\x74\x54\x20"
14121 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14122 .ilen = 128,
14123 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
14124 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14125 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14126 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14127 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14128 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14129 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14130 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14131 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14132 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14133 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14134 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14135 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14136 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14137 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14138 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14139 "\xc6\x58\xa1\x60\x70\x91\x39\x36"
14140 "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
14141 "\xde\x63\xde\x76\x52\xde\x9f\xba"
14142 "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
14143 .rlen = 128 + 32,
14144 },
14145};
14146
Eric Biggersb13b1e02017-02-24 15:46:59 -080014147static const struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014148 { /*Generated with cryptopp*/
14149#ifdef __LITTLE_ENDIAN
14150 .key = "\x08\x00" /* rta length */
14151 "\x01\x00" /* rta type */
14152#else
14153 .key = "\x00\x08" /* rta length */
14154 "\x00\x01" /* rta type */
14155#endif
14156 "\x00\x00\x00\x08" /* enc key length */
14157 "\x11\x22\x33\x44\x55\x66\x77\x88"
14158 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14159 "\x22\x33\x44\x55\x66\x77\x88\x99"
14160 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14161 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14162 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14163 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
14164 .klen = 8 + 48 + 8,
14165 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014166 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14167 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14168 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014169 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
14170 "\x53\x20\x63\x65\x65\x72\x73\x74"
14171 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14172 "\x20\x79\x65\x53\x72\x63\x74\x65"
14173 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14174 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14175 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14176 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14177 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14178 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14179 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14180 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14181 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14182 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14183 "\x63\x65\x65\x72\x73\x74\x54\x20"
14184 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14185 .ilen = 128,
14186 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
14187 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14188 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14189 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14190 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14191 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14192 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14193 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14194 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14195 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14196 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14197 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14198 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14199 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14200 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14201 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14202 "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
14203 "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
14204 "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
14205 "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
14206 "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
14207 "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
14208 .rlen = 128 + 48,
14209 },
14210};
14211
Eric Biggersb13b1e02017-02-24 15:46:59 -080014212static const struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014213 { /*Generated with cryptopp*/
14214#ifdef __LITTLE_ENDIAN
14215 .key = "\x08\x00" /* rta length */
14216 "\x01\x00" /* rta type */
14217#else
14218 .key = "\x00\x08" /* rta length */
14219 "\x00\x01" /* rta type */
14220#endif
14221 "\x00\x00\x00\x08" /* enc key length */
14222 "\x11\x22\x33\x44\x55\x66\x77\x88"
14223 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14224 "\x22\x33\x44\x55\x66\x77\x88\x99"
14225 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14226 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14227 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14228 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14229 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14230 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
14231 .klen = 8 + 64 + 8,
14232 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014233 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14234 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14235 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014236 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
14237 "\x53\x20\x63\x65\x65\x72\x73\x74"
14238 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14239 "\x20\x79\x65\x53\x72\x63\x74\x65"
14240 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14241 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14242 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14243 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14244 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14245 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14246 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14247 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14248 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14249 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14250 "\x63\x65\x65\x72\x73\x74\x54\x20"
14251 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14252 .ilen = 128,
14253 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
14254 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14255 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14256 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14257 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14258 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14259 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14260 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14261 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14262 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14263 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14264 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14265 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14266 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14267 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14268 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14269 "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
14270 "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
14271 "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
14272 "\x58\x83\xda\x67\xfb\x21\x24\xa2"
14273 "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
14274 "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
14275 "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
14276 "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
14277 .rlen = 128 + 64,
14278 },
14279};
14280
Eric Biggersb13b1e02017-02-24 15:46:59 -080014281static const struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014282 { /*Generated with cryptopp*/
14283#ifdef __LITTLE_ENDIAN
14284 .key = "\x08\x00" /* rta length */
14285 "\x01\x00" /* rta type */
14286#else
14287 .key = "\x00\x08" /* rta length */
14288 "\x00\x01" /* rta type */
14289#endif
14290 "\x00\x00\x00\x18" /* enc key length */
14291 "\x11\x22\x33\x44\x55\x66\x77\x88"
14292 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14293 "\x22\x33\x44\x55"
14294 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14295 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14296 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14297 .klen = 8 + 20 + 24,
14298 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014299 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14300 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14301 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014302 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
14303 "\x53\x20\x63\x65\x65\x72\x73\x74"
14304 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14305 "\x20\x79\x65\x53\x72\x63\x74\x65"
14306 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14307 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14308 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14309 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14310 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14311 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14312 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14313 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14314 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14315 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14316 "\x63\x65\x65\x72\x73\x74\x54\x20"
14317 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14318 .ilen = 128,
14319 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
14320 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14321 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14322 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14323 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14324 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14325 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14326 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14327 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14328 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14329 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14330 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14331 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14332 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14333 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14334 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14335 "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
14336 "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
14337 "\xd1\x60\x91\xb3",
14338 .rlen = 128 + 20,
14339 },
14340};
14341
Eric Biggersb13b1e02017-02-24 15:46:59 -080014342static const struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014343 { /*Generated with cryptopp*/
14344#ifdef __LITTLE_ENDIAN
14345 .key = "\x08\x00" /* rta length */
14346 "\x01\x00" /* rta type */
14347#else
14348 .key = "\x00\x08" /* rta length */
14349 "\x00\x01" /* rta type */
14350#endif
14351 "\x00\x00\x00\x18" /* enc key length */
14352 "\x11\x22\x33\x44\x55\x66\x77\x88"
14353 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14354 "\x22\x33\x44\x55\x66\x77\x88\x99"
14355 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14356 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14357 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14358 .klen = 8 + 24 + 24,
14359 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014360 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14361 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14362 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014363 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
14364 "\x53\x20\x63\x65\x65\x72\x73\x74"
14365 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14366 "\x20\x79\x65\x53\x72\x63\x74\x65"
14367 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14368 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14369 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14370 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14371 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14372 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14373 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14374 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14375 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14376 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14377 "\x63\x65\x65\x72\x73\x74\x54\x20"
14378 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14379 .ilen = 128,
14380 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
14381 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14382 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14383 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14384 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14385 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14386 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14387 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14388 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14389 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14390 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14391 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14392 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14393 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14394 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14395 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14396 "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
14397 "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
14398 "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
14399 .rlen = 128 + 24,
14400 },
14401};
14402
Eric Biggersb13b1e02017-02-24 15:46:59 -080014403static const struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014404 { /*Generated with cryptopp*/
14405#ifdef __LITTLE_ENDIAN
14406 .key = "\x08\x00" /* rta length */
14407 "\x01\x00" /* rta type */
14408#else
14409 .key = "\x00\x08" /* rta length */
14410 "\x00\x01" /* rta type */
14411#endif
14412 "\x00\x00\x00\x18" /* enc key length */
14413 "\x11\x22\x33\x44\x55\x66\x77\x88"
14414 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14415 "\x22\x33\x44\x55\x66\x77\x88\x99"
14416 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14417 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14418 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14419 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14420 .klen = 8 + 32 + 24,
14421 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014422 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14423 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14424 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014425 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
14426 "\x53\x20\x63\x65\x65\x72\x73\x74"
14427 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14428 "\x20\x79\x65\x53\x72\x63\x74\x65"
14429 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14430 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14431 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14432 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14433 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14434 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14435 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14436 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14437 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14438 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14439 "\x63\x65\x65\x72\x73\x74\x54\x20"
14440 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14441 .ilen = 128,
14442 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
14443 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14444 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14445 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14446 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14447 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14448 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14449 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14450 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14451 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14452 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14453 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14454 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14455 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14456 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14457 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14458 "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
14459 "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
14460 "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
14461 "\xca\x43\x95\xdf\x80\x61\x81\xa9",
14462 .rlen = 128 + 32,
14463 },
14464};
14465
Eric Biggersb13b1e02017-02-24 15:46:59 -080014466static const struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014467 { /*Generated with cryptopp*/
14468#ifdef __LITTLE_ENDIAN
14469 .key = "\x08\x00" /* rta length */
14470 "\x01\x00" /* rta type */
14471#else
14472 .key = "\x00\x08" /* rta length */
14473 "\x00\x01" /* rta type */
14474#endif
14475 "\x00\x00\x00\x18" /* enc key length */
14476 "\x11\x22\x33\x44\x55\x66\x77\x88"
14477 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14478 "\x22\x33\x44\x55\x66\x77\x88\x99"
14479 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14480 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14481 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14482 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14483 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14484 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14485 .klen = 8 + 48 + 24,
14486 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014487 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14488 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14489 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014490 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
14491 "\x53\x20\x63\x65\x65\x72\x73\x74"
14492 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14493 "\x20\x79\x65\x53\x72\x63\x74\x65"
14494 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14495 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14496 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14497 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14498 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14499 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14500 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14501 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14502 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14503 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14504 "\x63\x65\x65\x72\x73\x74\x54\x20"
14505 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14506 .ilen = 128,
14507 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
14508 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14509 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14510 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14511 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14512 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14513 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14514 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14515 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14516 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14517 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14518 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14519 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14520 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14521 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14522 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14523 "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
14524 "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
14525 "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
14526 "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
14527 "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
14528 "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
14529 .rlen = 128 + 48,
14530 },
14531};
14532
Eric Biggersb13b1e02017-02-24 15:46:59 -080014533static const struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014534 { /*Generated with cryptopp*/
14535#ifdef __LITTLE_ENDIAN
14536 .key = "\x08\x00" /* rta length */
14537 "\x01\x00" /* rta type */
14538#else
14539 .key = "\x00\x08" /* rta length */
14540 "\x00\x01" /* rta type */
14541#endif
14542 "\x00\x00\x00\x18" /* enc key length */
14543 "\x11\x22\x33\x44\x55\x66\x77\x88"
14544 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14545 "\x22\x33\x44\x55\x66\x77\x88\x99"
14546 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14547 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14548 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14549 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14550 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14551 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14552 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14553 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14554 .klen = 8 + 64 + 24,
14555 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014556 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14557 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14558 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014559 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
14560 "\x53\x20\x63\x65\x65\x72\x73\x74"
14561 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14562 "\x20\x79\x65\x53\x72\x63\x74\x65"
14563 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14564 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14565 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14566 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14567 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14568 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14569 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14570 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14571 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14572 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14573 "\x63\x65\x65\x72\x73\x74\x54\x20"
14574 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
14575 .ilen = 128,
14576 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
14577 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14578 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14579 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14580 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14581 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14582 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14583 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14584 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14585 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14586 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14587 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14588 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14589 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14590 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14591 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14592 "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
14593 "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
14594 "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
14595 "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
14596 "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
14597 "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
14598 "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
14599 "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
14600 .rlen = 128 + 64,
14601 },
14602};
14603
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014604static const struct cipher_testvec aes_lrw_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080014605 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
14606 { /* LRW-32-AES 1 */
14607 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
14608 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
14609 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
14610 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
14611 .klen = 32,
14612 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14613 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014614 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014615 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014616 .ctext = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
Herbert Xuda7f0332008-07-31 17:08:25 +080014617 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014618 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014619 }, { /* LRW-32-AES 2 */
14620 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
14621 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
14622 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
14623 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
14624 .klen = 32,
14625 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14626 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014627 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014628 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014629 .ctext = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
Herbert Xuda7f0332008-07-31 17:08:25 +080014630 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014631 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014632 }, { /* LRW-32-AES 3 */
14633 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
14634 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
14635 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
14636 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
14637 .klen = 32,
14638 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14639 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014640 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014641 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014642 .ctext = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
Herbert Xuda7f0332008-07-31 17:08:25 +080014643 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014644 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014645 }, { /* LRW-32-AES 4 */
14646 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
14647 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
14648 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
14649 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
14650 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
14651 .klen = 40,
14652 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14653 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014654 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014655 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014656 .ctext = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
Herbert Xuda7f0332008-07-31 17:08:25 +080014657 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014658 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014659 }, { /* LRW-32-AES 5 */
14660 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
14661 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
14662 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
14663 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
14664 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
14665 .klen = 40,
14666 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14667 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014668 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014669 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014670 .ctext = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
Herbert Xuda7f0332008-07-31 17:08:25 +080014671 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014672 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014673 }, { /* LRW-32-AES 6 */
14674 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14675 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14676 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14677 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14678 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14679 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14680 .klen = 48,
14681 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14682 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014683 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014684 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014685 .ctext = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
Herbert Xuda7f0332008-07-31 17:08:25 +080014686 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014687 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014688 }, { /* LRW-32-AES 7 */
14689 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
14690 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
14691 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
14692 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
14693 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
14694 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
14695 .klen = 48,
14696 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14697 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014698 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014699 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014700 .ctext = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
Herbert Xuda7f0332008-07-31 17:08:25 +080014701 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014702 .len = 16,
Ondrej Mosnacekdc6d6d52018-09-13 10:51:32 +020014703 }, { /* Test counter wrap-around, modified from LRW-32-AES 1 */
14704 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
14705 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
14706 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
14707 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
14708 .klen = 32,
14709 .iv = "\xff\xff\xff\xff\xff\xff\xff\xff"
14710 "\xff\xff\xff\xff\xff\xff\xff\xff",
14711 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
14712 "\x38\x39\x41\x42\x43\x44\x45\x46"
14713 "\x30\x31\x32\x33\x34\x35\x36\x37"
14714 "\x38\x39\x41\x42\x43\x44\x45\x46"
14715 "\x30\x31\x32\x33\x34\x35\x36\x37"
14716 "\x38\x39\x41\x42\x43\x44\x45\x46",
14717 .ctext = "\x47\x90\x50\xf6\xf4\x8d\x5c\x7f"
14718 "\x84\xc7\x83\x95\x2d\xa2\x02\xc0"
14719 "\xda\x7f\xa3\xc0\x88\x2a\x0a\x50"
14720 "\xfb\xc1\x78\x03\x39\xfe\x1d\xe5"
14721 "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
14722 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
14723 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080014724 }, {
14725/* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
14726 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14727 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14728 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14729 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14730 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14731 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14732 .klen = 48,
14733 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14734 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014735 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Herbert Xuda7f0332008-07-31 17:08:25 +080014736 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
14737 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
14738 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
14739 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
14740 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
14741 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
14742 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
14743 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
14744 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
14745 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
14746 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
14747 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
14748 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
14749 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
14750 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
14751 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
14752 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
14753 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
14754 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
14755 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
14756 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
14757 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
14758 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
14759 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
14760 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
14761 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
14762 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
14763 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
14764 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
14765 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
14766 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
14767 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
14768 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
14769 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
14770 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
14771 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
14772 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
14773 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
14774 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
14775 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
14776 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
14777 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
14778 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
14779 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
14780 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
14781 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
14782 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
14783 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
14784 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
14785 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
14786 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
14787 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
14788 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
14789 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
14790 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
14791 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
14792 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
14793 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
14794 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
14795 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
14796 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
14797 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
14798 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014799 .ctext = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
Herbert Xuda7f0332008-07-31 17:08:25 +080014800 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
14801 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
14802 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
14803 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
14804 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
14805 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
14806 "\xe8\x58\x46\x97\x39\x51\x07\xde"
14807 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
14808 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
14809 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
14810 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
14811 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
14812 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
14813 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
14814 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
14815 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
14816 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
14817 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
14818 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
14819 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
14820 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
14821 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
14822 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
14823 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
14824 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
14825 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
14826 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
14827 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
14828 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
14829 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
14830 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
14831 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
14832 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
14833 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
14834 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
14835 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
14836 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
14837 "\xb8\x79\x78\x97\x94\xff\x72\x13"
14838 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
14839 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
14840 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
14841 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
14842 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
14843 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
14844 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
14845 "\x1e\x86\x53\x11\x53\x94\x00\xee"
14846 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
14847 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
14848 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
14849 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
14850 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
14851 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
14852 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
14853 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
14854 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
14855 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
14856 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
14857 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
14858 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
14859 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
14860 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
14861 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
14862 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014863 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030014864 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020014865 .np = 3,
14866 .tap = { 512 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080014867 }
14868};
14869
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014870static const struct cipher_testvec aes_xts_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080014871 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
14872 { /* XTS-AES 1 */
14873 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
14874 "\x00\x00\x00\x00\x00\x00\x00\x00"
14875 "\x00\x00\x00\x00\x00\x00\x00\x00"
14876 "\x00\x00\x00\x00\x00\x00\x00\x00",
14877 .klen = 32,
Stephan Mueller10faa8c2016-08-25 15:15:01 +020014878 .fips_skip = 1,
Herbert Xuda7f0332008-07-31 17:08:25 +080014879 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14880 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014881 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080014882 "\x00\x00\x00\x00\x00\x00\x00\x00"
14883 "\x00\x00\x00\x00\x00\x00\x00\x00"
14884 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014885 .ctext = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
Herbert Xuda7f0332008-07-31 17:08:25 +080014886 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
14887 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
14888 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014889 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080014890 }, { /* XTS-AES 2 */
14891 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
14892 "\x11\x11\x11\x11\x11\x11\x11\x11"
14893 "\x22\x22\x22\x22\x22\x22\x22\x22"
14894 "\x22\x22\x22\x22\x22\x22\x22\x22",
14895 .klen = 32,
14896 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
14897 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014898 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Herbert Xuda7f0332008-07-31 17:08:25 +080014899 "\x44\x44\x44\x44\x44\x44\x44\x44"
14900 "\x44\x44\x44\x44\x44\x44\x44\x44"
14901 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014902 .ctext = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
Herbert Xuda7f0332008-07-31 17:08:25 +080014903 "\x39\x33\x40\x38\xac\xef\x83\x8b"
14904 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
14905 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014906 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080014907 }, { /* XTS-AES 3 */
14908 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
14909 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
14910 "\x22\x22\x22\x22\x22\x22\x22\x22"
14911 "\x22\x22\x22\x22\x22\x22\x22\x22",
14912 .klen = 32,
14913 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
14914 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014915 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Herbert Xuda7f0332008-07-31 17:08:25 +080014916 "\x44\x44\x44\x44\x44\x44\x44\x44"
14917 "\x44\x44\x44\x44\x44\x44\x44\x44"
14918 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014919 .ctext = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
Herbert Xuda7f0332008-07-31 17:08:25 +080014920 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
14921 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
14922 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014923 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080014924 }, { /* XTS-AES 4 */
14925 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
14926 "\x23\x53\x60\x28\x74\x71\x35\x26"
14927 "\x31\x41\x59\x26\x53\x58\x97\x93"
14928 "\x23\x84\x62\x64\x33\x83\x27\x95",
14929 .klen = 32,
14930 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14931 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014932 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080014933 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14934 "\x10\x11\x12\x13\x14\x15\x16\x17"
14935 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14936 "\x20\x21\x22\x23\x24\x25\x26\x27"
14937 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14938 "\x30\x31\x32\x33\x34\x35\x36\x37"
14939 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14940 "\x40\x41\x42\x43\x44\x45\x46\x47"
14941 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14942 "\x50\x51\x52\x53\x54\x55\x56\x57"
14943 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14944 "\x60\x61\x62\x63\x64\x65\x66\x67"
14945 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14946 "\x70\x71\x72\x73\x74\x75\x76\x77"
14947 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14948 "\x80\x81\x82\x83\x84\x85\x86\x87"
14949 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14950 "\x90\x91\x92\x93\x94\x95\x96\x97"
14951 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14952 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14953 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14954 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14955 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14956 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14957 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14958 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14959 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14960 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14961 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14962 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14963 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14964 "\x00\x01\x02\x03\x04\x05\x06\x07"
14965 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14966 "\x10\x11\x12\x13\x14\x15\x16\x17"
14967 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14968 "\x20\x21\x22\x23\x24\x25\x26\x27"
14969 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14970 "\x30\x31\x32\x33\x34\x35\x36\x37"
14971 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14972 "\x40\x41\x42\x43\x44\x45\x46\x47"
14973 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14974 "\x50\x51\x52\x53\x54\x55\x56\x57"
14975 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14976 "\x60\x61\x62\x63\x64\x65\x66\x67"
14977 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14978 "\x70\x71\x72\x73\x74\x75\x76\x77"
14979 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14980 "\x80\x81\x82\x83\x84\x85\x86\x87"
14981 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14982 "\x90\x91\x92\x93\x94\x95\x96\x97"
14983 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14984 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14985 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14986 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14987 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14988 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14989 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14990 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14991 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14992 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14993 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14994 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14995 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014996 .ctext = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
Herbert Xuda7f0332008-07-31 17:08:25 +080014997 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
14998 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
14999 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
15000 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
15001 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
15002 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
15003 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
15004 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
15005 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
15006 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
15007 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
15008 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
15009 "\x22\x97\x61\x46\xae\x20\xce\x84"
15010 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
15011 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
15012 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
15013 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
15014 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
15015 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
15016 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
15017 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
15018 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
15019 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
15020 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
15021 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
15022 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
15023 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
15024 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
15025 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
15026 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
15027 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
15028 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
15029 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
15030 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
15031 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
15032 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
15033 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
15034 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
15035 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
15036 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
15037 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
15038 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
15039 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
15040 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
15041 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
15042 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
15043 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
15044 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
15045 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
15046 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
15047 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
15048 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
15049 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
15050 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
15051 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
15052 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
15053 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
15054 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
15055 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
15056 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
15057 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
15058 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
15059 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015060 .len = 512,
Jarod Wilson5165e5b2011-05-31 15:23:57 +100015061 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
15062 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
15063 "\x23\x53\x60\x28\x74\x71\x35\x26"
15064 "\x62\x49\x77\x57\x24\x70\x93\x69"
15065 "\x99\x59\x57\x49\x66\x96\x76\x27"
15066 "\x31\x41\x59\x26\x53\x58\x97\x93"
15067 "\x23\x84\x62\x64\x33\x83\x27\x95"
15068 "\x02\x88\x41\x97\x16\x93\x99\x37"
15069 "\x51\x05\x82\x09\x74\x94\x45\x92",
15070 .klen = 64,
15071 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
15072 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015073 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jarod Wilson5165e5b2011-05-31 15:23:57 +100015074 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15075 "\x10\x11\x12\x13\x14\x15\x16\x17"
15076 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15077 "\x20\x21\x22\x23\x24\x25\x26\x27"
15078 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15079 "\x30\x31\x32\x33\x34\x35\x36\x37"
15080 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15081 "\x40\x41\x42\x43\x44\x45\x46\x47"
15082 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15083 "\x50\x51\x52\x53\x54\x55\x56\x57"
15084 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15085 "\x60\x61\x62\x63\x64\x65\x66\x67"
15086 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15087 "\x70\x71\x72\x73\x74\x75\x76\x77"
15088 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15089 "\x80\x81\x82\x83\x84\x85\x86\x87"
15090 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15091 "\x90\x91\x92\x93\x94\x95\x96\x97"
15092 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15093 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15094 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15095 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15096 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15097 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15098 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15099 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15100 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15101 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15102 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15103 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15104 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15105 "\x00\x01\x02\x03\x04\x05\x06\x07"
15106 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15107 "\x10\x11\x12\x13\x14\x15\x16\x17"
15108 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15109 "\x20\x21\x22\x23\x24\x25\x26\x27"
15110 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15111 "\x30\x31\x32\x33\x34\x35\x36\x37"
15112 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15113 "\x40\x41\x42\x43\x44\x45\x46\x47"
15114 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15115 "\x50\x51\x52\x53\x54\x55\x56\x57"
15116 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15117 "\x60\x61\x62\x63\x64\x65\x66\x67"
15118 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15119 "\x70\x71\x72\x73\x74\x75\x76\x77"
15120 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15121 "\x80\x81\x82\x83\x84\x85\x86\x87"
15122 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15123 "\x90\x91\x92\x93\x94\x95\x96\x97"
15124 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15125 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15126 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15127 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15128 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15129 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15130 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15131 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15132 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15133 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15134 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15135 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15136 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015137 .ctext = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
Jarod Wilson5165e5b2011-05-31 15:23:57 +100015138 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
15139 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
15140 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
15141 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
15142 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
15143 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
15144 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
15145 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
15146 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
15147 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
15148 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
15149 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
15150 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
15151 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
15152 "\x00\x02\x08\x87\x89\x14\x29\xca"
15153 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
15154 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
15155 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
15156 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
15157 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
15158 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
15159 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
15160 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
15161 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
15162 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
15163 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
15164 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
15165 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
15166 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
15167 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
15168 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
15169 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
15170 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
15171 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
15172 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
15173 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
15174 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
15175 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
15176 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
15177 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
15178 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
15179 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
15180 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
15181 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
15182 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
15183 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
15184 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
15185 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
15186 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
15187 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
15188 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
15189 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
15190 "\x94\x30\x54\xff\x84\x01\x14\x93"
15191 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
15192 "\x53\x76\x44\x1a\x77\xed\x43\x85"
15193 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
15194 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
15195 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
15196 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
15197 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
15198 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
15199 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
15200 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015201 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030015202 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020015203 .np = 3,
15204 .tap = { 512 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080015205 }
15206};
15207
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015208static const struct cipher_testvec aes_ctr_tv_template[] = {
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015209 { /* From NIST Special Publication 800-38A, Appendix F.5 */
15210 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
15211 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
15212 .klen = 16,
15213 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15214 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015215 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015216 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15217 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15218 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15219 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15220 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15221 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15222 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015223 .ctext = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015224 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
15225 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
15226 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
15227 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
15228 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
15229 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
15230 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015231 .len = 64,
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015232 }, {
15233 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15234 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15235 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15236 .klen = 24,
15237 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15238 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015239 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015240 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15241 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15242 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15243 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15244 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15245 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15246 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015247 .ctext = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015248 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
15249 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
15250 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
15251 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
15252 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
15253 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
15254 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015255 .len = 64,
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015256 }, {
15257 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15258 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15259 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15260 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15261 .klen = 32,
15262 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15263 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015264 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015265 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15266 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15267 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15268 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15269 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15270 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15271 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015272 .ctext = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015273 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
15274 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
15275 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
15276 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
15277 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
15278 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
15279 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015280 .len = 64,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015281 }, { /* Generated with Crypto++ */
15282 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15283 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15284 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15285 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15286 .klen = 32,
15287 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
15288 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015289 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015290 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15291 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15292 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15293 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15294 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15295 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15296 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15297 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15298 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15299 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15300 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15301 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15302 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15303 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15304 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15305 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15306 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15307 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15308 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15309 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15310 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15311 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15312 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15313 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15314 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15315 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15316 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15317 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15318 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15319 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15320 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15321 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15322 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15323 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15324 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15325 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15326 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15327 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15328 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15329 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15330 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15331 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15332 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15333 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15334 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15335 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15336 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15337 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15338 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15339 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15340 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15341 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15342 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15343 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15344 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15345 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15346 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15347 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15348 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15349 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15350 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015351 .ctext = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015352 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
15353 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
15354 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
15355 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
15356 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
15357 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
15358 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
15359 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
15360 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
15361 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
15362 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
15363 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
15364 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
15365 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
15366 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
15367 "\x34\x4B\x31\x69\x84\x66\x96\x44"
15368 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
15369 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
15370 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
15371 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
15372 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
15373 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
15374 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
15375 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
15376 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
15377 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
15378 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
15379 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
15380 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
15381 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
15382 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
15383 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
15384 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
15385 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
15386 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
15387 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
15388 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
15389 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
15390 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
15391 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
15392 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
15393 "\x85\x99\x22\xE8\x91\x38\x70\x83"
15394 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
15395 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
15396 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
15397 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
15398 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
15399 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
15400 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
15401 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
15402 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
15403 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
15404 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
15405 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
15406 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
15407 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
15408 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
15409 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
15410 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
15411 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
15412 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015413 .len = 496,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015414 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020015415 .np = 3,
15416 .tap = { 496 - 20, 4, 16 },
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015417 }, { /* Generated with Crypto++ */
15418 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15419 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15420 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15421 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15422 .klen = 32,
15423 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15424 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015425 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015426 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15427 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15428 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15429 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15430 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15431 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15432 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15433 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15434 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15435 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15436 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15437 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15438 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15439 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15440 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15441 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15442 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15443 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15444 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15445 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15446 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15447 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15448 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15449 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15450 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15451 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15452 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15453 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15454 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15455 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15456 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15457 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15458 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15459 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15460 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15461 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15462 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15463 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15464 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15465 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15466 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15467 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15468 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15469 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15470 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15471 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15472 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15473 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15474 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15475 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15476 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15477 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15478 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15479 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15480 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15481 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15482 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15483 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15484 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15485 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15486 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
15487 "\x7B\xE4\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015488 .ctext = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015489 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
15490 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
15491 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
15492 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
15493 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
15494 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
15495 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
15496 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
15497 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
15498 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
15499 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
15500 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
15501 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
15502 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
15503 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
15504 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
15505 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
15506 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
15507 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
15508 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
15509 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
15510 "\x45\x18\x18\x74\x19\xAD\x71\x01"
15511 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
15512 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
15513 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
15514 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
15515 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
15516 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
15517 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
15518 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
15519 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
15520 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
15521 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
15522 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
15523 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
15524 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
15525 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
15526 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
15527 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
15528 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
15529 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
15530 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
15531 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
15532 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
15533 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
15534 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
15535 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
15536 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
15537 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
15538 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
15539 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
15540 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
15541 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
15542 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
15543 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
15544 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
15545 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
15546 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
15547 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
15548 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
15549 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
15550 "\xFB\xF2\x3F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015551 .len = 499,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015552 .also_non_np = 1,
15553 .np = 2,
15554 .tap = { 499 - 16, 16 },
15555 },
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015556};
15557
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015558static const struct cipher_testvec aes_ctr_rfc3686_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080015559 { /* From RFC 3686 */
15560 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
15561 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
15562 "\x00\x00\x00\x30",
15563 .klen = 20,
15564 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015565 .ptext = "Single block msg",
15566 .ctext = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
Herbert Xuda7f0332008-07-31 17:08:25 +080015567 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015568 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080015569 }, {
15570 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
15571 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
15572 "\x00\x6c\xb6\xdb",
15573 .klen = 20,
15574 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015575 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080015576 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15577 "\x10\x11\x12\x13\x14\x15\x16\x17"
15578 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015579 .ctext = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
Herbert Xuda7f0332008-07-31 17:08:25 +080015580 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
15581 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
15582 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015583 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080015584 }, {
15585 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
15586 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
15587 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
15588 "\x00\x00\x00\x48",
15589 .klen = 28,
15590 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015591 .ptext = "Single block msg",
15592 .ctext = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
Herbert Xuda7f0332008-07-31 17:08:25 +080015593 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015594 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080015595 }, {
15596 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
15597 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
15598 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
15599 "\x00\x96\xb0\x3b",
15600 .klen = 28,
15601 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015602 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080015603 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15604 "\x10\x11\x12\x13\x14\x15\x16\x17"
15605 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015606 .ctext = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +080015607 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
15608 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
15609 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015610 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080015611 }, {
15612 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
15613 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
15614 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
15615 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
15616 "\x00\x00\x00\x60",
15617 .klen = 36,
15618 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015619 .ptext = "Single block msg",
15620 .ctext = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
Herbert Xuda7f0332008-07-31 17:08:25 +080015621 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015622 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080015623 }, {
15624 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
15625 "\x07\x96\x36\x58\x79\xef\xf8\x86"
15626 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
15627 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
15628 "\x00\xfa\xac\x24",
15629 .klen = 36,
15630 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015631 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080015632 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15633 "\x10\x11\x12\x13\x14\x15\x16\x17"
15634 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015635 .ctext = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
Herbert Xuda7f0332008-07-31 17:08:25 +080015636 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
15637 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
15638 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015639 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080015640 }, {
15641 // generated using Crypto++
15642 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15643 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15644 "\x10\x11\x12\x13\x14\x15\x16\x17"
15645 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15646 "\x00\x00\x00\x00",
15647 .klen = 32 + 4,
15648 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015649 .ptext =
Herbert Xuda7f0332008-07-31 17:08:25 +080015650 "\x00\x01\x02\x03\x04\x05\x06\x07"
15651 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15652 "\x10\x11\x12\x13\x14\x15\x16\x17"
15653 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15654 "\x20\x21\x22\x23\x24\x25\x26\x27"
15655 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15656 "\x30\x31\x32\x33\x34\x35\x36\x37"
15657 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15658 "\x40\x41\x42\x43\x44\x45\x46\x47"
15659 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15660 "\x50\x51\x52\x53\x54\x55\x56\x57"
15661 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15662 "\x60\x61\x62\x63\x64\x65\x66\x67"
15663 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15664 "\x70\x71\x72\x73\x74\x75\x76\x77"
15665 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15666 "\x80\x81\x82\x83\x84\x85\x86\x87"
15667 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15668 "\x90\x91\x92\x93\x94\x95\x96\x97"
15669 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15670 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15671 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15672 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15673 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15674 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15675 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15676 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15677 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15678 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15679 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15680 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15681 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15682 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
15683 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
15684 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
15685 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
15686 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
15687 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
15688 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
15689 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
15690 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
15691 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
15692 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
15693 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
15694 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
15695 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
15696 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
15697 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
15698 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
15699 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
15700 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
15701 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
15702 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
15703 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
15704 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
15705 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
15706 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
15707 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
15708 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
15709 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
15710 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
15711 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
15712 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
15713 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
15714 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
15715 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
15716 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
15717 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
15718 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
15719 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
15720 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
15721 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
15722 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
15723 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
15724 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
15725 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
15726 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
15727 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
15728 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
15729 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
15730 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
15731 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
15732 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
15733 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
15734 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
15735 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
15736 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
15737 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
15738 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
15739 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
15740 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
15741 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
15742 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
15743 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
15744 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
15745 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
15746 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
15747 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
15748 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
15749 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
15750 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
15751 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
15752 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
15753 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
15754 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
15755 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
15756 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
15757 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
15758 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
15759 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
15760 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
15761 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
15762 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
15763 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
15764 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
15765 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
15766 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
15767 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
15768 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
15769 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
15770 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
15771 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
15772 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
15773 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
15774 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
15775 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
15776 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
15777 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
15778 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
15779 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
15780 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
15781 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
15782 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
15783 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
15784 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
15785 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
15786 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
15787 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
15788 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
15789 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
15790 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
15791 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
15792 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
15793 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
15794 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
15795 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
15796 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
15797 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
15798 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
15799 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
15800 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
15801 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
15802 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
15803 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
15804 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
15805 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
15806 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
15807 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
15808 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
15809 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
15810 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
15811 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
15812 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
15813 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
15814 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
15815 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
15816 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
15817 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
15818 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
15819 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
15820 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
15821 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
15822 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
15823 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
15824 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
15825 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
15826 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
15827 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
15828 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
15829 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
15830 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
15831 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
15832 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
15833 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
15834 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
15835 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
15836 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
15837 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
15838 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
15839 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
15840 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
15841 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
15842 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
15843 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
15844 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
15845 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
15846 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
15847 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
15848 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
15849 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
15850 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
15851 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
15852 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
15853 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
15854 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
15855 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
15856 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
15857 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
15858 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
15859 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
15860 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
15861 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
15862 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
15863 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
15864 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
15865 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
15866 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
15867 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
15868 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
15869 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
15870 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
15871 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
15872 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
15873 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
15874 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
15875 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
15876 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
15877 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
15878 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
15879 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
15880 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
15881 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
15882 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
15883 "\x38\x47\x56\x65\x74\x83\x92\xa1"
15884 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
15885 "\x28\x37\x46\x55\x64\x73\x82\x91"
15886 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
15887 "\x18\x27\x36\x45\x54\x63\x72\x81"
15888 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
15889 "\x08\x17\x26\x35\x44\x53\x62\x71"
15890 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
15891 "\xf8\x07\x16\x25\x34\x43\x52\x61"
15892 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
15893 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
15894 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
15895 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
15896 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
15897 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
15898 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
15899 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
15900 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
15901 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
15902 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
15903 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
15904 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
15905 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
15906 "\x00\x11\x22\x33\x44\x55\x66\x77"
15907 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
15908 "\x10\x21\x32\x43\x54\x65\x76\x87"
15909 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
15910 "\x20\x31\x42\x53\x64\x75\x86\x97"
15911 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
15912 "\x30\x41\x52\x63\x74\x85\x96\xa7"
15913 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
15914 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
15915 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
15916 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
15917 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
15918 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
15919 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
15920 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
15921 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
15922 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
15923 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
15924 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
15925 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
15926 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
15927 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
15928 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
15929 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
15930 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
15931 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
15932 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
15933 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
15934 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
15935 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
15936 "\xf0\x01\x12\x23\x34\x45\x56\x67"
15937 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
15938 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
15939 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
15940 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
15941 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
15942 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
15943 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
15944 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
15945 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
15946 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
15947 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
15948 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
15949 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
15950 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
15951 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
15952 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
15953 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
15954 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
15955 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
15956 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
15957 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
15958 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
15959 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
15960 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
15961 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
15962 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
15963 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
15964 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
15965 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
15966 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
15967 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
15968 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
15969 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
15970 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
15971 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
15972 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
15973 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
15974 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
15975 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
15976 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
15977 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
15978 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
15979 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
15980 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
15981 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
15982 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
15983 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
15984 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
15985 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
15986 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
15987 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
15988 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
15989 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
15990 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
15991 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
15992 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
15993 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
15994 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
15995 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
15996 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
15997 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
15998 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
15999 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
16000 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
16001 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
16002 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
16003 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
16004 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
16005 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
16006 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
16007 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
16008 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
16009 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
16010 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
16011 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
16012 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
16013 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
16014 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
16015 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
16016 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
16017 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
16018 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
16019 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
16020 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
16021 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
16022 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
16023 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
16024 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
16025 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
16026 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
16027 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
16028 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
16029 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
16030 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
16031 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
16032 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
16033 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
16034 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
16035 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
16036 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
16037 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
16038 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
16039 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
16040 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
16041 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
16042 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
16043 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
16044 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
16045 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
16046 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
16047 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
16048 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
16049 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
16050 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
16051 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
16052 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
16053 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
16054 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
16055 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
16056 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
16057 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
16058 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
16059 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
16060 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
16061 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
16062 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
16063 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
16064 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
16065 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
16066 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
16067 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
16068 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
16069 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
16070 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
16071 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
16072 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
16073 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
16074 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
16075 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
16076 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
16077 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
16078 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
16079 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
16080 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
16081 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
16082 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
16083 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
16084 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
16085 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
16086 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
16087 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
16088 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
16089 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
16090 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
16091 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
16092 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
16093 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
16094 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
16095 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
16096 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
16097 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
16098 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
16099 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
16100 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
16101 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
16102 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
16103 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
16104 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
16105 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
16106 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
16107 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
16108 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
16109 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
16110 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
16111 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
16112 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
16113 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
16114 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
16115 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
16116 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
16117 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
16118 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
16119 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
16120 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
16121 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
16122 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
16123 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
16124 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
16125 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
16126 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
16127 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
16128 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
16129 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
16130 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
16131 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
16132 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
16133 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
16134 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
16135 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
16136 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
16137 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
16138 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
16139 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
16140 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
16141 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
16142 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
16143 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
16144 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
16145 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
16146 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
16147 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
16148 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
16149 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
16150 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
16151 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
16152 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
16153 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
16154 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
16155 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
16156 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
16157 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
16158 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
16159 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
16160 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
16161 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
16162 "\x00\x21\x42\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016163 .ctext =
Herbert Xuda7f0332008-07-31 17:08:25 +080016164 "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
16165 "\xae\xff\x91\x3a\x44\xcf\x38\x32"
16166 "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
16167 "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
16168 "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
16169 "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
16170 "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
16171 "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
16172 "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
16173 "\x18\xff\x75\x6d\x06\x2d\x00\xab"
16174 "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
16175 "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
16176 "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
16177 "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
16178 "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
16179 "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
16180 "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
16181 "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
16182 "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
16183 "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
16184 "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
16185 "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
16186 "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
16187 "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
16188 "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
16189 "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
16190 "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
16191 "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
16192 "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
16193 "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
16194 "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
16195 "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
16196 "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
16197 "\x6a\x25\x15\x33\x4e\x45\x08\xec"
16198 "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
16199 "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
16200 "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
16201 "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
16202 "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
16203 "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
16204 "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
16205 "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
16206 "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
16207 "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
16208 "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
16209 "\x04\x02\xef\xd3\x44\xde\x76\x31"
16210 "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
16211 "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
16212 "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
16213 "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
16214 "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
16215 "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
16216 "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
16217 "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
16218 "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
16219 "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
16220 "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
16221 "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
16222 "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
16223 "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
16224 "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
16225 "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
16226 "\x32\x03\xed\xf0\x50\x1c\x56\x39"
16227 "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
16228 "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
16229 "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
16230 "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
16231 "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
16232 "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
16233 "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
16234 "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
16235 "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
16236 "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
16237 "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
16238 "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
16239 "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
16240 "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
16241 "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
16242 "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
16243 "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
16244 "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
16245 "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
16246 "\x69\x3a\x29\x23\xac\x86\x32\xa5"
16247 "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
16248 "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
16249 "\x59\x6a\xd3\x50\x59\x43\x59\xde"
16250 "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
16251 "\x18\x34\x0d\x1a\x63\x33\xed\x10"
16252 "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
16253 "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
16254 "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
16255 "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
16256 "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
16257 "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
16258 "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
16259 "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
16260 "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
16261 "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
16262 "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
16263 "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
16264 "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
16265 "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
16266 "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
16267 "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
16268 "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
16269 "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
16270 "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
16271 "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
16272 "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
16273 "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
16274 "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
16275 "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
16276 "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
16277 "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
16278 "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
16279 "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
16280 "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
16281 "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
16282 "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
16283 "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
16284 "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
16285 "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
16286 "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
16287 "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
16288 "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
16289 "\x26\x39\x83\x94\xef\x27\xd8\x53"
16290 "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
16291 "\x43\x7c\x95\x0a\x53\xef\x66\xda"
16292 "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
16293 "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
16294 "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
16295 "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
16296 "\x88\xee\x73\xcf\x66\x2f\x52\x56"
16297 "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
16298 "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
16299 "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
16300 "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
16301 "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
16302 "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
16303 "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
16304 "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
16305 "\xba\x61\x34\x38\x7c\xda\x48\x3e"
16306 "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
16307 "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
16308 "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
16309 "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
16310 "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
16311 "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
16312 "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
16313 "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
16314 "\x35\x12\xe3\x36\x28\x27\x36\x58"
16315 "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
16316 "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
16317 "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
16318 "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
16319 "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
16320 "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
16321 "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
16322 "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
16323 "\x89\xf3\x78\x35\x44\x62\x78\x72"
16324 "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
16325 "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
16326 "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
16327 "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
16328 "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
16329 "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
16330 "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
16331 "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
16332 "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
16333 "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
16334 "\xd2\x49\x77\x81\x6d\x90\x70\xae"
16335 "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
16336 "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
16337 "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
16338 "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
16339 "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
16340 "\x45\x42\x27\x75\x50\xe5\xee\xb8"
16341 "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
16342 "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
16343 "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
16344 "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
16345 "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
16346 "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
16347 "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
16348 "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
16349 "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
16350 "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
16351 "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
16352 "\xa9\x21\x2b\x92\x94\x87\x62\x57"
16353 "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
16354 "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
16355 "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
16356 "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
16357 "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
16358 "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
16359 "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
16360 "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
16361 "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
16362 "\x69\x34\x78\x61\x24\x21\x9c\x8a"
16363 "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
16364 "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
16365 "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
16366 "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
16367 "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
16368 "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
16369 "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
16370 "\xb1\x95\x28\x86\x20\xe9\x17\x49"
16371 "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
16372 "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
16373 "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
16374 "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
16375 "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
16376 "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
16377 "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
16378 "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
16379 "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
16380 "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
16381 "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
16382 "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
16383 "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
16384 "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
16385 "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
16386 "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
16387 "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
16388 "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
16389 "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
16390 "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
16391 "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
16392 "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
16393 "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
16394 "\x29\x90\x46\x30\x92\x69\x7d\x13"
16395 "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
16396 "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
16397 "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
16398 "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
16399 "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
16400 "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
16401 "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
16402 "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
16403 "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
16404 "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
16405 "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
16406 "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
16407 "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
16408 "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
16409 "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
16410 "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
16411 "\x77\x65\x08\x60\x11\x76\x4c\x8d"
16412 "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
16413 "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
16414 "\x03\xd1\x24\x95\xec\x6d\xab\x38"
16415 "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
16416 "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
16417 "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
16418 "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
16419 "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
16420 "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
16421 "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
16422 "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
16423 "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
16424 "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
16425 "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
16426 "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
16427 "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
16428 "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
16429 "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
16430 "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
16431 "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
16432 "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
16433 "\xe5\x79\x81\x73\xcd\x43\x59\x68"
16434 "\x73\x02\x3b\x78\x21\x72\x43\x00"
16435 "\x49\x17\xf7\x00\xaf\x68\x24\x53"
16436 "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
16437 "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
16438 "\x11\x94\x13\x69\x51\x09\x28\xde"
16439 "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
16440 "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
16441 "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
16442 "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
16443 "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
16444 "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
16445 "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
16446 "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
16447 "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
16448 "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
16449 "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
16450 "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
16451 "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
16452 "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
16453 "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
16454 "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
16455 "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
16456 "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
16457 "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
16458 "\x69\xdc\xab\x24\x57\x60\x47\xc1"
16459 "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
16460 "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
16461 "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
16462 "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
16463 "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
16464 "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
16465 "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
16466 "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
16467 "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
16468 "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
16469 "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
16470 "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
16471 "\x85\x62\x82\x70\x18\xe2\x9a\x78"
16472 "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
16473 "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
16474 "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
16475 "\x35\xf3\x61\x06\x72\x84\xc4\x32"
16476 "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
16477 "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
16478 "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
16479 "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
16480 "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
16481 "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
16482 "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
16483 "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
16484 "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
16485 "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
16486 "\x4f\x73\x38\x09\x75\x64\x48\xe0"
16487 "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
16488 "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
16489 "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
16490 "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
16491 "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
16492 "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
16493 "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
16494 "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
16495 "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
16496 "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
16497 "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
16498 "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
16499 "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
16500 "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
16501 "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
16502 "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
16503 "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
16504 "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
16505 "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
16506 "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
16507 "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
16508 "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
16509 "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
16510 "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
16511 "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
16512 "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
16513 "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
16514 "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
16515 "\xce\x4d\x5f\x18\x60\xce\x87\x22"
16516 "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
16517 "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
16518 "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
16519 "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
16520 "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
16521 "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
16522 "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
16523 "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
16524 "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
16525 "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
16526 "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
16527 "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
16528 "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
16529 "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
16530 "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
16531 "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
16532 "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
16533 "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
16534 "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
16535 "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
16536 "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
16537 "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
16538 "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
16539 "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
16540 "\xce\x54\xf9\x18\x58\xb5\xff\x44"
16541 "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
16542 "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
16543 "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
16544 "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
16545 "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
16546 "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
16547 "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
16548 "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
16549 "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
16550 "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
16551 "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
16552 "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
16553 "\x0c\xd6\x04\x14\xde\x51\x74\x75"
16554 "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
16555 "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
16556 "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
16557 "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
16558 "\x75\x46\x65\x4e\x07\x34\x37\xa3"
16559 "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
16560 "\x69\x24\x0e\x38\x67\x43\x8c\xde"
16561 "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
16562 "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
16563 "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
16564 "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
16565 "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
16566 "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
16567 "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
16568 "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
16569 "\x91\x7d\x62\x64\x96\x72\xde\xfc"
16570 "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
16571 "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
16572 "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
16573 "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
16574 "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
16575 "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
16576 "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
16577 "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
16578 "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
16579 "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
16580 "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
16581 "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
16582 "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
16583 "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
16584 "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
16585 "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
16586 "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
16587 "\xae\xed\x39\x88\x42\x11\x3c\xed"
16588 "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
16589 "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
16590 "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
16591 "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
16592 "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
16593 "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
16594 "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
16595 "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
16596 "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
16597 "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
16598 "\x34\x17\xde\xba\x47\xf1\x06\x18"
16599 "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
16600 "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
16601 "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
16602 "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
16603 "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
16604 "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
16605 "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
16606 "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
16607 "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
16608 "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
16609 "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
16610 "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
16611 "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
16612 "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
16613 "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
16614 "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
16615 "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
16616 "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
16617 "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
16618 "\x2c\x56\x39\x79\x0f\x69\x44\x75"
16619 "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
16620 "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
16621 "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
16622 "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
16623 "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
16624 "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
16625 "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
16626 "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
16627 "\x63\x9b\xce\x61\x24\x79\xc0\x70"
16628 "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
16629 "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
16630 "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
16631 "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
16632 "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
16633 "\x74\x56\x58\x40\x02\x37\x52\x2c"
16634 "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
16635 "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
16636 "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
16637 "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
16638 "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
16639 "\xed\x38\x80\x36\x72\x43\x27\x49"
16640 "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
16641 "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
16642 "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
16643 "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
16644 "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
16645 "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
16646 "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
16647 "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
16648 "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
16649 "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
16650 "\x12\xee\x30\xfe\xd8\x30\xef\x34"
16651 "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
16652 "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
16653 "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
16654 "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
16655 "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
16656 "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
16657 "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
16658 "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
16659 "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
16660 "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
16661 "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
16662 "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
16663 "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
16664 "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
16665 "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
16666 "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
16667 "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
16668 "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
16669 "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
16670 "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
16671 "\x44\x12\xfb\x73\x77\xd4\x13\x39"
16672 "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
16673 "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
16674 "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
16675 "\x4b\xef\x31\x18\xea\xac\xb1\x84"
16676 "\x21\xed\xda\x86",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016677 .len = 4100,
Herbert Xuda7f0332008-07-31 17:08:25 +080016678 .np = 2,
16679 .tap = { 4064, 36 },
16680 },
16681};
16682
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016683static const struct cipher_testvec aes_ofb_tv_template[] = {
Eric Biggersb3e3e2d2019-01-03 20:16:12 -080016684 { /* From NIST Special Publication 800-38A, Appendix F.5 */
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100016685 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
16686 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
16687 .klen = 16,
16688 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
16689 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016690 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100016691 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16692 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16693 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16694 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16695 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16696 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16697 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016698 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100016699 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
16700 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
16701 "\x3c\x52\xda\xc5\x4e\xd8\x25"
16702 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
16703 "\x44\xf7\xa8\x22\x60\xed\xcc"
16704 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
16705 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016706 .len = 64,
Eric Biggersb3e3e2d2019-01-03 20:16:12 -080016707 .also_non_np = 1,
16708 .np = 2,
16709 .tap = { 31, 33 },
16710 }, { /* > 16 bytes, not a multiple of 16 bytes */
16711 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
16712 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
16713 .klen = 16,
16714 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16715 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16716 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16717 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16718 "\xae",
16719 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
16720 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
16721 "\x77",
16722 .len = 17,
16723 }, { /* < 16 bytes */
16724 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
16725 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
16726 .klen = 16,
16727 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16728 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16729 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f",
16730 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad",
16731 .len = 7,
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100016732 }
16733};
16734
Eric Biggersb13b1e02017-02-24 15:46:59 -080016735static const struct aead_testvec aes_gcm_enc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080016736 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
16737 .key = zeroed_string,
16738 .klen = 16,
16739 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
16740 "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
16741 .rlen = 16,
16742 }, {
16743 .key = zeroed_string,
16744 .klen = 16,
16745 .input = zeroed_string,
16746 .ilen = 16,
16747 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
16748 "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
16749 "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
16750 "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
16751 .rlen = 32,
16752 }, {
16753 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16754 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16755 .klen = 16,
16756 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16757 "\xde\xca\xf8\x88",
16758 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16759 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16760 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16761 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16762 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16763 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16764 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16765 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16766 .ilen = 64,
16767 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
16768 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
16769 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
16770 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
16771 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
16772 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
16773 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
16774 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
16775 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
16776 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
16777 .rlen = 80,
16778 }, {
16779 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16780 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16781 .klen = 16,
16782 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16783 "\xde\xca\xf8\x88",
16784 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16785 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16786 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16787 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16788 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16789 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16790 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16791 "\xba\x63\x7b\x39",
16792 .ilen = 60,
16793 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16794 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16795 "\xab\xad\xda\xd2",
16796 .alen = 20,
16797 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
16798 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
16799 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
16800 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
16801 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
16802 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
16803 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
16804 "\x3d\x58\xe0\x91"
16805 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
16806 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
16807 .rlen = 76,
16808 }, {
16809 .key = zeroed_string,
16810 .klen = 24,
16811 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
16812 "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
16813 .rlen = 16,
16814 }, {
16815 .key = zeroed_string,
16816 .klen = 24,
16817 .input = zeroed_string,
16818 .ilen = 16,
16819 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
16820 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
16821 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
16822 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
16823 .rlen = 32,
16824 }, {
16825 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16826 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16827 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
16828 .klen = 24,
16829 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16830 "\xde\xca\xf8\x88",
16831 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16832 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16833 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16834 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16835 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16836 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16837 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16838 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16839 .ilen = 64,
16840 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
16841 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
16842 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
16843 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
16844 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
16845 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
16846 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
16847 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
16848 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
16849 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
16850 .rlen = 80,
16851 }, {
16852 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16853 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16854 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
16855 .klen = 24,
16856 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16857 "\xde\xca\xf8\x88",
16858 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16859 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16860 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16861 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16862 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16863 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16864 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16865 "\xba\x63\x7b\x39",
16866 .ilen = 60,
16867 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16868 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16869 "\xab\xad\xda\xd2",
16870 .alen = 20,
16871 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
16872 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
16873 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
16874 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
16875 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
16876 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
16877 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
16878 "\xcc\xda\x27\x10"
16879 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
16880 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
16881 .rlen = 76,
16882 .np = 2,
16883 .tap = { 32, 28 },
16884 .anp = 2,
16885 .atap = { 8, 12 }
16886 }, {
16887 .key = zeroed_string,
16888 .klen = 32,
16889 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
16890 "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
16891 .rlen = 16,
16892 }
16893};
16894
Eric Biggersb13b1e02017-02-24 15:46:59 -080016895static const struct aead_testvec aes_gcm_dec_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080016896 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
16897 .key = zeroed_string,
16898 .klen = 32,
16899 .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
16900 "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
16901 "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
16902 "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
16903 .ilen = 32,
16904 .result = zeroed_string,
16905 .rlen = 16,
16906 }, {
16907 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16908 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16909 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16910 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16911 .klen = 32,
16912 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16913 "\xde\xca\xf8\x88",
16914 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
16915 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
16916 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
16917 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
16918 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
16919 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
16920 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
16921 "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
16922 "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
16923 "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
16924 .ilen = 80,
16925 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16926 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16927 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16928 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16929 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16930 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16931 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16932 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16933 .rlen = 64,
16934 }, {
16935 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16936 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
16937 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16938 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16939 .klen = 32,
16940 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16941 "\xde\xca\xf8\x88",
16942 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
16943 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
16944 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
16945 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
16946 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
16947 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
16948 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
16949 "\xbc\xc9\xf6\x62"
16950 "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
16951 "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
16952 .ilen = 76,
16953 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16954 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
16955 "\xab\xad\xda\xd2",
16956 .alen = 20,
16957 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16958 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16959 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16960 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16961 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16962 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16963 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16964 "\xba\x63\x7b\x39",
16965 .rlen = 60,
16966 .np = 2,
16967 .tap = { 48, 28 },
16968 .anp = 3,
16969 .atap = { 8, 8, 4 }
16970 }, {
16971 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16972 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16973 .klen = 16,
16974 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
16975 "\xde\xca\xf8\x88",
16976 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
16977 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
16978 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
16979 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
16980 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
16981 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
16982 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
16983 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
16984 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
16985 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
16986 .ilen = 80,
16987 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
16988 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
16989 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
16990 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
16991 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
16992 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
16993 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
16994 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
16995 .rlen = 64,
16996 }, {
16997 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16998 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
16999 .klen = 16,
17000 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17001 "\xde\xca\xf8\x88",
17002 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
17003 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
17004 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
17005 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
17006 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
17007 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
17008 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
17009 "\x3d\x58\xe0\x91"
17010 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
17011 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
17012 .ilen = 76,
17013 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17014 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17015 "\xab\xad\xda\xd2",
17016 .alen = 20,
17017 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17018 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17019 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17020 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17021 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17022 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17023 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17024 "\xba\x63\x7b\x39",
17025 .rlen = 60,
17026 }, {
17027 .key = zeroed_string,
17028 .klen = 24,
17029 .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
17030 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
17031 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
17032 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
17033 .ilen = 32,
17034 .result = zeroed_string,
17035 .rlen = 16,
17036 }, {
17037 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17038 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17039 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
17040 .klen = 24,
17041 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17042 "\xde\xca\xf8\x88",
17043 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
17044 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
17045 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
17046 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
17047 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
17048 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
17049 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
17050 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
17051 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
17052 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
17053 .ilen = 80,
17054 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17055 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17056 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17057 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17058 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17059 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17060 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17061 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
17062 .rlen = 64,
17063 }, {
17064 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17065 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17066 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
17067 .klen = 24,
17068 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17069 "\xde\xca\xf8\x88",
17070 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
17071 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
17072 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
17073 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
17074 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
17075 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
17076 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
17077 "\xcc\xda\x27\x10"
17078 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
17079 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
17080 .ilen = 76,
17081 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17082 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17083 "\xab\xad\xda\xd2",
17084 .alen = 20,
17085 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
17086 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17087 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17088 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17089 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17090 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17091 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17092 "\xba\x63\x7b\x39",
17093 .rlen = 60,
17094 }
17095};
17096
Eric Biggersb13b1e02017-02-24 15:46:59 -080017097static const struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
Herbert Xu85375442015-07-09 07:17:25 +080017098 { /* Generated using Crypto++ */
Adrian Hoban69435b92010-11-04 15:02:04 -040017099 .key = zeroed_string,
17100 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017101 .iv = zeroed_string,
17102 .input = zeroed_string,
17103 .ilen = 16,
17104 .assoc = zeroed_string,
17105 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040017106 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
Herbert Xu85375442015-07-09 07:17:25 +080017107 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
17108 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
17109 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
Adrian Hoban69435b92010-11-04 15:02:04 -040017110 .rlen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017111 },{
Adrian Hoban69435b92010-11-04 15:02:04 -040017112 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17113 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017114 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017115 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017116 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
17117 .input = zeroed_string,
17118 .ilen = 16,
17119 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
17120 "\x00\x00\x00\x00\x00\x00\x00\x01",
17121 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040017122 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
Herbert Xu85375442015-07-09 07:17:25 +080017123 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
17124 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
17125 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
Adrian Hoban69435b92010-11-04 15:02:04 -040017126 .rlen = 32,
17127
Herbert Xu85375442015-07-09 07:17:25 +080017128 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017129 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17130 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017131 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017132 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017133 .iv = zeroed_string,
17134 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
17135 "\x01\x01\x01\x01\x01\x01\x01\x01",
17136 .ilen = 16,
17137 .assoc = zeroed_string,
17138 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040017139 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080017140 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
17141 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
17142 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
Adrian Hoban69435b92010-11-04 15:02:04 -040017143 .rlen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017144 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017145 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17146 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017147 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017148 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017149 .iv = zeroed_string,
17150 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
17151 "\x01\x01\x01\x01\x01\x01\x01\x01",
17152 .ilen = 16,
17153 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17154 "\x00\x00\x00\x00\x00\x00\x00\x00",
17155 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040017156 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080017157 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
17158 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
17159 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
Adrian Hoban69435b92010-11-04 15:02:04 -040017160 .rlen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017161 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017162 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17163 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017164 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017165 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017166 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
17167 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
17168 "\x01\x01\x01\x01\x01\x01\x01\x01",
17169 .ilen = 16,
17170 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17171 "\x00\x00\x00\x00\x00\x00\x00\x01",
17172 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040017173 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080017174 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
17175 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
17176 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
Adrian Hoban69435b92010-11-04 15:02:04 -040017177 .rlen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017178 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017179 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17180 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017181 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017182 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017183 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
17184 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
17185 "\x01\x01\x01\x01\x01\x01\x01\x01"
17186 "\x01\x01\x01\x01\x01\x01\x01\x01"
17187 "\x01\x01\x01\x01\x01\x01\x01\x01"
17188 "\x01\x01\x01\x01\x01\x01\x01\x01"
17189 "\x01\x01\x01\x01\x01\x01\x01\x01"
17190 "\x01\x01\x01\x01\x01\x01\x01\x01"
17191 "\x01\x01\x01\x01\x01\x01\x01\x01",
17192 .ilen = 64,
17193 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17194 "\x00\x00\x00\x00\x00\x00\x00\x01",
17195 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040017196 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080017197 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
17198 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
17199 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
17200 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
17201 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
17202 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
17203 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
17204 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
17205 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
Adrian Hoban69435b92010-11-04 15:02:04 -040017206 .rlen = 80,
Herbert Xu85375442015-07-09 07:17:25 +080017207 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017208 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
17209 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
Herbert Xu85375442015-07-09 07:17:25 +080017210 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017211 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017212 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
17213 .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
17214 "\xff\xff\xff\xff\xff\xff\xff\xff"
17215 "\xff\xff\xff\xff\xff\xff\xff\xff"
17216 "\xff\xff\xff\xff\xff\xff\xff\xff"
17217 "\xff\xff\xff\xff\xff\xff\xff\xff"
17218 "\xff\xff\xff\xff\xff\xff\xff\xff"
17219 "\xff\xff\xff\xff\xff\xff\xff\xff"
17220 "\xff\xff\xff\xff\xff\xff\xff\xff"
17221 "\xff\xff\xff\xff\xff\xff\xff\xff"
17222 "\xff\xff\xff\xff\xff\xff\xff\xff"
17223 "\xff\xff\xff\xff\xff\xff\xff\xff"
17224 "\xff\xff\xff\xff\xff\xff\xff\xff"
17225 "\xff\xff\xff\xff\xff\xff\xff\xff"
17226 "\xff\xff\xff\xff\xff\xff\xff\xff"
17227 "\xff\xff\xff\xff\xff\xff\xff\xff"
17228 "\xff\xff\xff\xff\xff\xff\xff\xff"
17229 "\xff\xff\xff\xff\xff\xff\xff\xff"
17230 "\xff\xff\xff\xff\xff\xff\xff\xff"
17231 "\xff\xff\xff\xff\xff\xff\xff\xff"
17232 "\xff\xff\xff\xff\xff\xff\xff\xff"
17233 "\xff\xff\xff\xff\xff\xff\xff\xff"
17234 "\xff\xff\xff\xff\xff\xff\xff\xff"
17235 "\xff\xff\xff\xff\xff\xff\xff\xff"
17236 "\xff\xff\xff\xff\xff\xff\xff\xff",
17237 .ilen = 192,
17238 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
17239 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
17240 "\x89\xab\xcd\xef",
17241 .alen = 20,
Adrian Hoban69435b92010-11-04 15:02:04 -040017242 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
17243 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
17244 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
17245 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
17246 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
17247 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
17248 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
17249 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
17250 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
17251 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
17252 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
17253 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
17254 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
17255 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
17256 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
17257 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
17258 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
17259 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
17260 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
17261 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
17262 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
17263 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
17264 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
17265 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
17266 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
17267 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
17268 .rlen = 208,
Herbert Xu8f69b762015-06-16 13:54:26 +080017269 }, { /* From draft-mcgrew-gcm-test-01 */
17270 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17271 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17272 "\x2E\x44\x3B\x68",
17273 .klen = 20,
17274 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
17275 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
17276 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
17277 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
17278 "\x38\xD3\x01\x00\x00\x01\x00\x00"
17279 "\x00\x00\x00\x00\x04\x5F\x73\x69"
17280 "\x70\x04\x5F\x75\x64\x70\x03\x73"
17281 "\x69\x70\x09\x63\x79\x62\x65\x72"
17282 "\x63\x69\x74\x79\x02\x64\x6B\x00"
17283 "\x00\x21\x00\x01\x01\x02\x02\x01",
17284 .ilen = 72,
17285 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080017286 "\x00\x00\x00\x00\x49\x56\xED\x7E"
17287 "\x3B\x24\x4C\xFE",
17288 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017289 .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
17290 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
17291 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
17292 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
17293 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
17294 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
17295 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
17296 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
17297 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
17298 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
17299 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
17300 .rlen = 88,
17301 }, {
17302 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17303 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17304 "\xCA\xFE\xBA\xBE",
17305 .klen = 20,
17306 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17307 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
17308 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
17309 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
17310 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
17311 "\x00\x01\x00\x00\x00\x00\x00\x00"
17312 "\x03\x73\x69\x70\x09\x63\x79\x62"
17313 "\x65\x72\x63\x69\x74\x79\x02\x64"
17314 "\x6B\x00\x00\x01\x00\x01\x00\x01",
17315 .ilen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080017316 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17317 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17318 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080017319 .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
17320 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
17321 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
17322 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
17323 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
17324 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
17325 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
17326 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
17327 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
17328 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
17329 .rlen = 80,
17330 }, {
17331 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17332 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17333 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17334 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17335 "\x11\x22\x33\x44",
17336 .klen = 36,
17337 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
17338 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
17339 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
17340 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
17341 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
17342 "\x70\x02\x40\x00\x20\xBF\x00\x00"
17343 "\x02\x04\x05\xB4\x01\x01\x04\x02"
17344 "\x01\x02\x02\x01",
17345 .ilen = 52,
Herbert Xu85375442015-07-09 07:17:25 +080017346 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
17347 "\x01\x02\x03\x04\x05\x06\x07\x08",
17348 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080017349 .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
17350 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
17351 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
17352 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
17353 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
17354 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
17355 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
17356 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
17357 "\x15\x95\x6C\x96",
17358 .rlen = 68,
17359 }, {
17360 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
17361 "\x00\x00\x00\x00\x00\x00\x00\x00"
17362 "\x00\x00\x00\x00",
17363 .klen = 20,
17364 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
17365 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
17366 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
17367 "\x01\x01\x01\x01\x08\x00\x07\x5C"
17368 "\x02\x00\x44\x00\x61\x62\x63\x64"
17369 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17370 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17371 "\x75\x76\x77\x61\x62\x63\x64\x65"
17372 "\x66\x67\x68\x69\x01\x02\x02\x01",
17373 .ilen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080017374 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
17375 "\x00\x00\x00\x00\x00\x00\x00\x00",
17376 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080017377 .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
17378 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
17379 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
17380 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
17381 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
17382 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
17383 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
17384 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
17385 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
17386 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
17387 .rlen = 80,
17388 }, {
17389 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17390 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17391 "\x57\x69\x0E\x43",
17392 .klen = 20,
17393 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17394 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
17395 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
17396 "\x01\x01\x01\x01\x08\x00\x08\x5C"
17397 "\x02\x00\x43\x00\x61\x62\x63\x64"
17398 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17399 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17400 "\x75\x76\x77\x61\x62\x63\x64\x65"
17401 "\x66\x67\x68\x69\x01\x02\x02\x01",
17402 .ilen = 64,
17403 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080017404 "\x10\x10\x10\x10\x4E\x28\x00\x00"
17405 "\xA2\xFC\xA1\xA3",
17406 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017407 .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
17408 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
17409 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
17410 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
17411 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
17412 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
17413 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
17414 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
17415 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
17416 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
17417 .rlen = 80,
17418 }, {
17419 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17420 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17421 "\x57\x69\x0E\x43",
17422 .klen = 20,
17423 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17424 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
17425 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
17426 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
17427 "\x01\x02\x02\x01",
17428 .ilen = 28,
17429 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080017430 "\x10\x10\x10\x10\x4E\x28\x00\x00"
17431 "\xA2\xFC\xA1\xA3",
17432 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017433 .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
17434 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
17435 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
17436 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
17437 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
17438 "\xE7\xD0\x5D\x35",
17439 .rlen = 44,
17440 }, {
17441 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17442 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17443 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17444 "\xCA\xFE\xBA\xBE",
17445 .klen = 28,
17446 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17447 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
17448 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
17449 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
17450 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
17451 "\x50\x10\x16\xD0\x75\x68\x00\x01",
17452 .ilen = 40,
Herbert Xu85375442015-07-09 07:17:25 +080017453 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17454 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17455 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080017456 .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
17457 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
17458 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
17459 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
17460 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
17461 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
17462 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
17463 .rlen = 56,
17464 }, {
17465 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17466 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17467 "\xDE\xCA\xF8\x88",
17468 .klen = 20,
17469 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
17470 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
17471 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
17472 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
17473 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
17474 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
17475 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
17476 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
17477 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
17478 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
17479 "\x23\x01\x01\x01",
17480 .ilen = 76,
17481 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080017482 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
17483 "\xCE\xFA\xCE\x74",
17484 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017485 .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
17486 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
17487 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
17488 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
17489 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
17490 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
17491 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
17492 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
17493 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
17494 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
17495 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
17496 "\x69\x62\x34\x36",
17497 .rlen = 92,
17498 }, {
17499 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17500 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17501 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17502 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17503 "\x73\x61\x6C\x74",
17504 .klen = 36,
17505 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
17506 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
17507 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
17508 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
17509 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
17510 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
17511 .ilen = 40,
17512 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080017513 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
17514 "\x69\x76\x65\x63",
17515 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017516 .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
17517 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
17518 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
17519 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
17520 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
17521 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
17522 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
17523 .rlen = 56,
17524 }, {
17525 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17526 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17527 "\x57\x69\x0E\x43",
17528 .klen = 20,
17529 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17530 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
17531 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
17532 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
17533 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
17534 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
17535 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
17536 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
17537 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
17538 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
17539 "\x15\x01\x01\x01",
17540 .ilen = 76,
17541 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080017542 "\x10\x10\x10\x10\x4E\x28\x00\x00"
17543 "\xA2\xFC\xA1\xA3",
17544 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017545 .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
17546 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
17547 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
17548 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
17549 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
17550 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
17551 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
17552 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
17553 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
17554 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
17555 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
17556 "\x8C\xAA\x81\xE2",
17557 .rlen = 92,
17558 }, {
17559 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17560 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17561 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17562 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17563 "\x73\x61\x6C\x74",
17564 .klen = 36,
17565 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
17566 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
17567 "\x6C\x65\x73\x01\x74\x68\x65\x01"
17568 "\x6E\x65\x74\x77\x65\x01\x64\x65"
17569 "\x66\x69\x6E\x65\x01\x74\x68\x65"
17570 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
17571 "\x67\x69\x65\x73\x01\x74\x68\x61"
17572 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
17573 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
17574 "\x72\x72\x6F\x77\x01\x02\x02\x01",
17575 .ilen = 72,
17576 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080017577 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
17578 "\x69\x76\x65\x63",
17579 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017580 .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
17581 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
17582 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
17583 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
17584 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
17585 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
17586 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
17587 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
17588 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
17589 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
17590 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
17591 .rlen = 88,
17592 }, {
17593 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
17594 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
17595 "\xD9\x66\x42\x67",
17596 .klen = 20,
17597 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
17598 .input = "\x01\x02\x02\x01",
17599 .ilen = 4,
Herbert Xu85375442015-07-09 07:17:25 +080017600 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
17601 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
17602 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080017603 .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
17604 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
17605 "\x04\xBE\xF2\x70",
17606 .rlen = 20,
17607 }, {
17608 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17609 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17610 "\xDE\xCA\xF8\x88",
17611 .klen = 20,
17612 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
17613 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
17614 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
17615 "\x62\x65\x00\x01",
17616 .ilen = 20,
17617 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080017618 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
17619 "\xCE\xFA\xCE\x74",
17620 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017621 .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
17622 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
17623 "\x43\x33\x21\x64\x41\x25\x03\x52"
17624 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
17625 "\x43\xAF\x8C\x3E",
17626 .rlen = 36,
17627 }, {
17628 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
17629 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
17630 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
17631 "\x62\x65\x66\x6F\x72\x65\x69\x61"
17632 "\x74\x75\x72\x6E",
17633 .klen = 36,
17634 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
17635 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
17636 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
17637 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
17638 "\x02\x00\x07\x00\x61\x62\x63\x64"
17639 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17640 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17641 "\x01\x02\x02\x01",
17642 .ilen = 52,
17643 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
Herbert Xu85375442015-07-09 07:17:25 +080017644 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
17645 "\x67\x65\x74\x6D",
17646 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017647 .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
17648 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
17649 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
17650 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
17651 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
17652 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
17653 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
17654 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
17655 "\x9F\xB4\xC0\x53",
17656 .rlen = 68,
17657 }, {
17658 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17659 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17660 "\x57\x69\x0E\x43",
17661 .klen = 20,
17662 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
17663 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
17664 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
17665 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
17666 "\x02\x00\x07\x00\x61\x62\x63\x64"
17667 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17668 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17669 "\x01\x02\x02\x01",
17670 .ilen = 52,
17671 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080017672 "\x10\x10\x10\x10\x4E\x28\x00\x00"
17673 "\xA2\xFC\xA1\xA3",
17674 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017675 .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
17676 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
17677 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
17678 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
17679 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
17680 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
17681 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
17682 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
17683 "\x40\xD7\xCB\x05",
17684 .rlen = 68,
17685 }, {
17686 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17687 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17688 "\x22\x43\x3C\x64",
17689 .klen = 20,
17690 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
17691 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
17692 "\x61\x62\x63\x64\x65\x66\x67\x68"
17693 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
17694 "\x71\x72\x73\x74\x01\x02\x02\x01",
17695 .ilen = 32,
17696 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080017697 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
17698 "\x3A\x23\x4B\xFD",
17699 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017700 .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
17701 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
17702 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
17703 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
17704 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
17705 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
17706 .rlen = 48,
Adrian Hoban69435b92010-11-04 15:02:04 -040017707 }
17708};
17709
Eric Biggersb13b1e02017-02-24 15:46:59 -080017710static const struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
Herbert Xu85375442015-07-09 07:17:25 +080017711 { /* Generated using Crypto++ */
Adrian Hoban69435b92010-11-04 15:02:04 -040017712 .key = zeroed_string,
17713 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017714 .iv = zeroed_string,
Adrian Hoban69435b92010-11-04 15:02:04 -040017715 .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
Herbert Xu85375442015-07-09 07:17:25 +080017716 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
17717 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
17718 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
Adrian Hoban69435b92010-11-04 15:02:04 -040017719 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017720 .assoc = zeroed_string,
17721 .alen = 16,
17722 .result = zeroed_string,
17723 .rlen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040017724
Herbert Xu85375442015-07-09 07:17:25 +080017725 },{
Adrian Hoban69435b92010-11-04 15:02:04 -040017726 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17727 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017728 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017729 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017730 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Adrian Hoban69435b92010-11-04 15:02:04 -040017731 .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
Herbert Xu85375442015-07-09 07:17:25 +080017732 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
17733 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
17734 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
Adrian Hoban69435b92010-11-04 15:02:04 -040017735 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017736 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
17737 "\x00\x00\x00\x00\x00\x00\x00\x01",
17738 .alen = 16,
17739 .result = zeroed_string,
17740 .rlen = 16,
17741 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017742 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17743 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017744 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017745 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017746 .iv = zeroed_string,
Adrian Hoban69435b92010-11-04 15:02:04 -040017747 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080017748 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
17749 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
17750 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
Adrian Hoban69435b92010-11-04 15:02:04 -040017751 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017752 .assoc = zeroed_string,
17753 .alen = 16,
17754 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
17755 "\x01\x01\x01\x01\x01\x01\x01\x01",
17756 .rlen = 16,
17757 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017758 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17759 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017760 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017761 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017762 .iv = zeroed_string,
Adrian Hoban69435b92010-11-04 15:02:04 -040017763 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080017764 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
17765 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
17766 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
Adrian Hoban69435b92010-11-04 15:02:04 -040017767 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017768 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17769 "\x00\x00\x00\x00\x00\x00\x00\x00",
17770 .alen = 16,
17771 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
17772 "\x01\x01\x01\x01\x01\x01\x01\x01",
17773 .rlen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040017774
Herbert Xu85375442015-07-09 07:17:25 +080017775 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017776 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17777 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017778 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017779 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017780 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Adrian Hoban69435b92010-11-04 15:02:04 -040017781 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080017782 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
17783 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
17784 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
Adrian Hoban69435b92010-11-04 15:02:04 -040017785 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017786 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17787 "\x00\x00\x00\x00\x00\x00\x00\x01",
17788 .alen = 16,
17789 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
17790 "\x01\x01\x01\x01\x01\x01\x01\x01",
17791 .rlen = 16,
17792 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017793 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17794 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017795 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017796 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017797 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Adrian Hoban69435b92010-11-04 15:02:04 -040017798 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080017799 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
17800 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
17801 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
17802 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
17803 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
17804 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
17805 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
17806 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
17807 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
Adrian Hoban69435b92010-11-04 15:02:04 -040017808 .ilen = 80,
Herbert Xu85375442015-07-09 07:17:25 +080017809 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17810 "\x00\x00\x00\x00\x00\x00\x00\x01",
17811 .alen = 16,
17812 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
17813 "\x01\x01\x01\x01\x01\x01\x01\x01"
17814 "\x01\x01\x01\x01\x01\x01\x01\x01"
17815 "\x01\x01\x01\x01\x01\x01\x01\x01"
17816 "\x01\x01\x01\x01\x01\x01\x01\x01"
17817 "\x01\x01\x01\x01\x01\x01\x01\x01"
17818 "\x01\x01\x01\x01\x01\x01\x01\x01"
17819 "\x01\x01\x01\x01\x01\x01\x01\x01",
17820 .rlen = 64,
17821 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017822 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
17823 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
Herbert Xu85375442015-07-09 07:17:25 +080017824 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017825 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017826 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
Adrian Hoban69435b92010-11-04 15:02:04 -040017827 .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
17828 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
17829 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
17830 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
17831 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
17832 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
17833 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
17834 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
17835 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
17836 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
17837 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
17838 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
17839 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
17840 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
17841 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
17842 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
17843 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
17844 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
17845 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
17846 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
17847 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
17848 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
17849 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
17850 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
17851 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
17852 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
17853 .ilen = 208,
Herbert Xu85375442015-07-09 07:17:25 +080017854 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
17855 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
17856 "\x89\xab\xcd\xef",
17857 .alen = 20,
17858 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
17859 "\xff\xff\xff\xff\xff\xff\xff\xff"
17860 "\xff\xff\xff\xff\xff\xff\xff\xff"
17861 "\xff\xff\xff\xff\xff\xff\xff\xff"
17862 "\xff\xff\xff\xff\xff\xff\xff\xff"
17863 "\xff\xff\xff\xff\xff\xff\xff\xff"
17864 "\xff\xff\xff\xff\xff\xff\xff\xff"
17865 "\xff\xff\xff\xff\xff\xff\xff\xff"
17866 "\xff\xff\xff\xff\xff\xff\xff\xff"
17867 "\xff\xff\xff\xff\xff\xff\xff\xff"
17868 "\xff\xff\xff\xff\xff\xff\xff\xff"
17869 "\xff\xff\xff\xff\xff\xff\xff\xff"
17870 "\xff\xff\xff\xff\xff\xff\xff\xff"
17871 "\xff\xff\xff\xff\xff\xff\xff\xff"
17872 "\xff\xff\xff\xff\xff\xff\xff\xff"
17873 "\xff\xff\xff\xff\xff\xff\xff\xff"
17874 "\xff\xff\xff\xff\xff\xff\xff\xff"
17875 "\xff\xff\xff\xff\xff\xff\xff\xff"
17876 "\xff\xff\xff\xff\xff\xff\xff\xff"
17877 "\xff\xff\xff\xff\xff\xff\xff\xff"
17878 "\xff\xff\xff\xff\xff\xff\xff\xff"
17879 "\xff\xff\xff\xff\xff\xff\xff\xff"
17880 "\xff\xff\xff\xff\xff\xff\xff\xff"
17881 "\xff\xff\xff\xff\xff\xff\xff\xff",
17882 .rlen = 192,
Herbert Xu8f69b762015-06-16 13:54:26 +080017883 }, {
17884 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17885 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17886 "\x2E\x44\x3B\x68",
17887 .klen = 20,
17888 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
17889 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
17890 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
17891 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
17892 "\x38\xD3\x01\x00\x00\x01\x00\x00"
17893 "\x00\x00\x00\x00\x04\x5F\x73\x69"
17894 "\x70\x04\x5F\x75\x64\x70\x03\x73"
17895 "\x69\x70\x09\x63\x79\x62\x65\x72"
17896 "\x63\x69\x74\x79\x02\x64\x6B\x00"
17897 "\x00\x21\x00\x01\x01\x02\x02\x01",
17898 .rlen = 72,
17899 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080017900 "\x00\x00\x00\x00\x49\x56\xED\x7E"
17901 "\x3B\x24\x4C\xFE",
17902 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017903 .input = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
17904 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
17905 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
17906 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
17907 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
17908 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
17909 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
17910 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
17911 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
17912 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
17913 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
17914 .ilen = 88,
17915 }, {
17916 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17917 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17918 "\xCA\xFE\xBA\xBE",
17919 .klen = 20,
17920 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17921 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
17922 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
17923 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
17924 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
17925 "\x00\x01\x00\x00\x00\x00\x00\x00"
17926 "\x03\x73\x69\x70\x09\x63\x79\x62"
17927 "\x65\x72\x63\x69\x74\x79\x02\x64"
17928 "\x6B\x00\x00\x01\x00\x01\x00\x01",
17929 .rlen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080017930 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17931 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17932 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080017933 .input = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
17934 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
17935 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
17936 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
17937 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
17938 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
17939 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
17940 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
17941 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
17942 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
17943 .ilen = 80,
17944 }, {
17945 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17946 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17947 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17948 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17949 "\x11\x22\x33\x44",
17950 .klen = 36,
17951 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
17952 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
17953 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
17954 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
17955 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
17956 "\x70\x02\x40\x00\x20\xBF\x00\x00"
17957 "\x02\x04\x05\xB4\x01\x01\x04\x02"
17958 "\x01\x02\x02\x01",
17959 .rlen = 52,
Herbert Xu85375442015-07-09 07:17:25 +080017960 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
17961 "\x01\x02\x03\x04\x05\x06\x07\x08",
17962 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080017963 .input = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
17964 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
17965 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
17966 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
17967 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
17968 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
17969 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
17970 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
17971 "\x15\x95\x6C\x96",
17972 .ilen = 68,
17973 }, {
17974 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
17975 "\x00\x00\x00\x00\x00\x00\x00\x00"
17976 "\x00\x00\x00\x00",
17977 .klen = 20,
17978 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
17979 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
17980 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
17981 "\x01\x01\x01\x01\x08\x00\x07\x5C"
17982 "\x02\x00\x44\x00\x61\x62\x63\x64"
17983 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17984 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17985 "\x75\x76\x77\x61\x62\x63\x64\x65"
17986 "\x66\x67\x68\x69\x01\x02\x02\x01",
17987 .rlen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080017988 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
17989 "\x00\x00\x00\x00\x00\x00\x00\x00",
17990 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080017991 .input = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
17992 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
17993 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
17994 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
17995 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
17996 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
17997 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
17998 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
17999 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
18000 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
18001 .ilen = 80,
18002 }, {
18003 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18004 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18005 "\x57\x69\x0E\x43",
18006 .klen = 20,
18007 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18008 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
18009 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
18010 "\x01\x01\x01\x01\x08\x00\x08\x5C"
18011 "\x02\x00\x43\x00\x61\x62\x63\x64"
18012 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18013 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18014 "\x75\x76\x77\x61\x62\x63\x64\x65"
18015 "\x66\x67\x68\x69\x01\x02\x02\x01",
18016 .rlen = 64,
18017 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080018018 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18019 "\xA2\xFC\xA1\xA3",
18020 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018021 .input = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
18022 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
18023 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
18024 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
18025 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
18026 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
18027 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
18028 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
18029 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
18030 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
18031 .ilen = 80,
18032 }, {
18033 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18034 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18035 "\x57\x69\x0E\x43",
18036 .klen = 20,
18037 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18038 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
18039 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
18040 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
18041 "\x01\x02\x02\x01",
18042 .rlen = 28,
18043 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080018044 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18045 "\xA2\xFC\xA1\xA3",
18046 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018047 .input = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
18048 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
18049 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
18050 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
18051 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
18052 "\xE7\xD0\x5D\x35",
18053 .ilen = 44,
18054 }, {
18055 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18056 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18057 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18058 "\xCA\xFE\xBA\xBE",
18059 .klen = 28,
18060 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18061 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
18062 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
18063 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
18064 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
18065 "\x50\x10\x16\xD0\x75\x68\x00\x01",
18066 .rlen = 40,
Herbert Xu85375442015-07-09 07:17:25 +080018067 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18068 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18069 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080018070 .input = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
18071 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
18072 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
18073 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
18074 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
18075 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
18076 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
18077 .ilen = 56,
18078 }, {
18079 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18080 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18081 "\xDE\xCA\xF8\x88",
18082 .klen = 20,
18083 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18084 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
18085 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
18086 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18087 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
18088 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
18089 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
18090 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
18091 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
18092 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
18093 "\x23\x01\x01\x01",
18094 .rlen = 76,
18095 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080018096 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18097 "\xCE\xFA\xCE\x74",
18098 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018099 .input = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
18100 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
18101 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
18102 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
18103 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
18104 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
18105 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
18106 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
18107 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
18108 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
18109 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
18110 "\x69\x62\x34\x36",
18111 .ilen = 92,
18112 }, {
18113 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18114 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18115 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18116 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18117 "\x73\x61\x6C\x74",
18118 .klen = 36,
18119 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18120 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
18121 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
18122 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
18123 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
18124 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
18125 .rlen = 40,
18126 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080018127 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18128 "\x69\x76\x65\x63",
18129 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018130 .input = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
18131 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
18132 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
18133 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
18134 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
18135 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
18136 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
18137 .ilen = 56,
18138 }, {
18139 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18140 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18141 "\x57\x69\x0E\x43",
18142 .klen = 20,
18143 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18144 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
18145 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
18146 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18147 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
18148 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
18149 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
18150 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
18151 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
18152 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
18153 "\x15\x01\x01\x01",
18154 .rlen = 76,
18155 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080018156 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18157 "\xA2\xFC\xA1\xA3",
18158 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018159 .input = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
18160 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
18161 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
18162 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
18163 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
18164 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
18165 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
18166 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
18167 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
18168 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
18169 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
18170 "\x8C\xAA\x81\xE2",
18171 .ilen = 92,
18172 }, {
18173 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18174 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18175 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18176 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18177 "\x73\x61\x6C\x74",
18178 .klen = 36,
18179 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18180 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
18181 "\x6C\x65\x73\x01\x74\x68\x65\x01"
18182 "\x6E\x65\x74\x77\x65\x01\x64\x65"
18183 "\x66\x69\x6E\x65\x01\x74\x68\x65"
18184 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
18185 "\x67\x69\x65\x73\x01\x74\x68\x61"
18186 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
18187 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
18188 "\x72\x72\x6F\x77\x01\x02\x02\x01",
18189 .rlen = 72,
18190 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080018191 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18192 "\x69\x76\x65\x63",
18193 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018194 .input = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
18195 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
18196 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
18197 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
18198 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
18199 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
18200 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
18201 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
18202 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
18203 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
18204 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
18205 .ilen = 88,
18206 }, {
18207 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
18208 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
18209 "\xD9\x66\x42\x67",
18210 .klen = 20,
18211 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18212 .result = "\x01\x02\x02\x01",
18213 .rlen = 4,
Herbert Xu85375442015-07-09 07:17:25 +080018214 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
18215 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18216 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080018217 .input = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
18218 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
18219 "\x04\xBE\xF2\x70",
18220 .ilen = 20,
18221 }, {
18222 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18223 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18224 "\xDE\xCA\xF8\x88",
18225 .klen = 20,
18226 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18227 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
18228 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
18229 "\x62\x65\x00\x01",
18230 .rlen = 20,
18231 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080018232 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18233 "\xCE\xFA\xCE\x74",
18234 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018235 .input = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
18236 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
18237 "\x43\x33\x21\x64\x41\x25\x03\x52"
18238 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
18239 "\x43\xAF\x8C\x3E",
18240 .ilen = 36,
18241 }, {
18242 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
18243 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
18244 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
18245 "\x62\x65\x66\x6F\x72\x65\x69\x61"
18246 "\x74\x75\x72\x6E",
18247 .klen = 36,
18248 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
18249 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18250 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18251 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18252 "\x02\x00\x07\x00\x61\x62\x63\x64"
18253 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18254 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18255 "\x01\x02\x02\x01",
18256 .rlen = 52,
18257 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
Herbert Xu85375442015-07-09 07:17:25 +080018258 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
18259 "\x67\x65\x74\x6D",
18260 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018261 .input = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
18262 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
18263 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
18264 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
18265 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
18266 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
18267 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
18268 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
18269 "\x9F\xB4\xC0\x53",
18270 .ilen = 68,
18271 }, {
18272 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18273 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18274 "\x57\x69\x0E\x43",
18275 .klen = 20,
18276 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18277 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18278 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18279 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18280 "\x02\x00\x07\x00\x61\x62\x63\x64"
18281 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18282 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18283 "\x01\x02\x02\x01",
18284 .rlen = 52,
18285 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080018286 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18287 "\xA2\xFC\xA1\xA3",
18288 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018289 .input = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
18290 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
18291 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
18292 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
18293 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
18294 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
18295 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
18296 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
18297 "\x40\xD7\xCB\x05",
18298 .ilen = 68,
18299 }, {
18300 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18301 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18302 "\x22\x43\x3C\x64",
18303 .klen = 20,
18304 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
18305 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
18306 "\x61\x62\x63\x64\x65\x66\x67\x68"
18307 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
18308 "\x71\x72\x73\x74\x01\x02\x02\x01",
18309 .rlen = 32,
18310 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080018311 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
18312 "\x3A\x23\x4B\xFD",
18313 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080018314 .input = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
18315 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
18316 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
18317 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
18318 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
18319 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
18320 .ilen = 48,
Adrian Hoban69435b92010-11-04 15:02:04 -040018321 }
18322};
18323
Eric Biggersb13b1e02017-02-24 15:46:59 -080018324static const struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030018325 { /* From draft-mcgrew-gcm-test-01 */
18326 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
18327 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
18328 "\x22\x43\x3c\x64",
18329 .klen = 20,
18330 .iv = zeroed_string,
Herbert Xu0af8fbc2015-06-16 13:54:19 +080018331 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
18332 "\x00\x00\x00\x00\x00\x00\x00\x00",
18333 .alen = 16,
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030018334 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
18335 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18336 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18337 "\x02\x00\x07\x00\x61\x62\x63\x64"
18338 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18339 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18340 "\x01\x02\x02\x01",
18341 .ilen = 52,
18342 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
18343 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18344 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18345 "\x02\x00\x07\x00\x61\x62\x63\x64"
18346 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18347 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18348 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
18349 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
18350 "\xe4\x09\x9a\xaa",
18351 .rlen = 68,
18352 }
18353};
18354
Eric Biggersb13b1e02017-02-24 15:46:59 -080018355static const struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030018356 { /* From draft-mcgrew-gcm-test-01 */
18357 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
18358 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
18359 "\x22\x43\x3c\x64",
18360 .klen = 20,
18361 .iv = zeroed_string,
Herbert Xu0af8fbc2015-06-16 13:54:19 +080018362 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
18363 "\x00\x00\x00\x00\x00\x00\x00\x00",
18364 .alen = 16,
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030018365 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
18366 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18367 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18368 "\x02\x00\x07\x00\x61\x62\x63\x64"
18369 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18370 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18371 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
18372 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
18373 "\xe4\x09\x9a\xaa",
18374 .ilen = 68,
18375 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
18376 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18377 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18378 "\x02\x00\x07\x00\x61\x62\x63\x64"
18379 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18380 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18381 "\x01\x02\x02\x01",
18382 .rlen = 52,
18383 }, { /* nearly same as previous, but should fail */
18384 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
18385 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
18386 "\x22\x43\x3c\x64",
18387 .klen = 20,
18388 .iv = zeroed_string,
Herbert Xu0af8fbc2015-06-16 13:54:19 +080018389 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
18390 "\x00\x00\x00\x00\x00\x00\x00\x00",
18391 .alen = 16,
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030018392 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
18393 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18394 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18395 "\x02\x00\x07\x00\x61\x62\x63\x64"
18396 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18397 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18398 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
18399 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
18400 "\x00\x00\x00\x00",
18401 .ilen = 68,
18402 .novrfy = 1,
18403 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
18404 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18405 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18406 "\x02\x00\x07\x00\x61\x62\x63\x64"
18407 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18408 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18409 "\x01\x02\x02\x01",
18410 .rlen = 52,
18411 },
18412};
18413
Eric Biggersb13b1e02017-02-24 15:46:59 -080018414static const struct aead_testvec aes_ccm_enc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080018415 { /* From RFC 3610 */
18416 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18417 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18418 .klen = 16,
18419 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
18420 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18421 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
18422 .alen = 8,
18423 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18424 "\x10\x11\x12\x13\x14\x15\x16\x17"
18425 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
18426 .ilen = 23,
18427 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
18428 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
18429 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
18430 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
18431 .rlen = 31,
18432 }, {
18433 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18434 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18435 .klen = 16,
18436 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
18437 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18438 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
18439 "\x08\x09\x0a\x0b",
18440 .alen = 12,
18441 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
18442 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18443 "\x1c\x1d\x1e\x1f",
18444 .ilen = 20,
18445 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
18446 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
18447 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
18448 "\x7d\x9c\x2d\x93",
18449 .rlen = 28,
18450 }, {
18451 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18452 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18453 .klen = 16,
18454 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
18455 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18456 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
18457 .alen = 8,
18458 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18459 "\x10\x11\x12\x13\x14\x15\x16\x17"
18460 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18461 "\x20",
18462 .ilen = 25,
18463 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
18464 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
18465 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
18466 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
18467 "\x7e\x5f\x4e",
18468 .rlen = 35,
18469 }, {
18470 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18471 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18472 .klen = 16,
18473 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
18474 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18475 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
18476 "\x08\x09\x0a\x0b",
18477 .alen = 12,
18478 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
18479 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18480 "\x1c\x1d\x1e",
18481 .ilen = 19,
18482 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
18483 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
18484 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
18485 "\x4d\x99\x99\x88\xdd",
18486 .rlen = 29,
18487 }, {
18488 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18489 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18490 .klen = 16,
18491 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
18492 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18493 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
18494 .alen = 8,
18495 .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
18496 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
18497 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
18498 .ilen = 24,
18499 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
18500 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
18501 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
18502 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
18503 .rlen = 32,
18504 }, {
18505 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18506 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18507 .klen = 16,
18508 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
18509 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18510 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
18511 "\x20\xea\x60\xc0",
18512 .alen = 12,
18513 .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
18514 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
18515 "\x3a\x80\x3b\xa8\x7f",
18516 .ilen = 21,
18517 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
18518 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
18519 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
18520 "\x5a\xe0\x70\x45\x51",
18521 .rlen = 29,
18522 }, {
18523 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18524 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18525 .klen = 16,
18526 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
18527 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18528 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
18529 .alen = 8,
18530 .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
18531 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
18532 "\x98\x09\xd6\x7d\xbe\xdd\x18",
18533 .ilen = 23,
18534 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
18535 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
18536 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
18537 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
18538 "\xba",
18539 .rlen = 33,
Ard Biesheuvel45859882014-04-16 20:40:04 +080018540 }, {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018541 /* This is taken from FIPS CAVS. */
Ard Biesheuvel45859882014-04-16 20:40:04 +080018542 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
18543 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
18544 .klen = 16,
18545 .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
18546 .alen = 0,
18547 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
18548 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
18549 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
18550 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
18551 .ilen = 32,
18552 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
18553 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
18554 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
18555 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
18556 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
18557 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
18558 .rlen = 48,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018559 }, {
18560 .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
18561 "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
18562 .klen = 16,
18563 .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
18564 "\x30\x60\x15\x56\x00\x00\x00\x00",
18565 .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
18566 "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
18567 "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
18568 "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
18569 .alen = 32,
18570 .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
18571 "\xa9\x28\x63\xba\x12\xa3\x14\x85"
18572 "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
18573 "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
18574 .ilen = 32,
18575 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
18576 "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
18577 "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
18578 "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
18579 "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
18580 "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
18581 .rlen = 48,
18582 }, {
18583 .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
18584 "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
18585 "\x53\x14\x73\x66\x8d\x88\xf6\x80",
18586 .klen = 24,
18587 .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
18588 "\x50\x20\xda\xe2\x00\x00\x00\x00",
18589 .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
18590 "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
18591 "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
18592 "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
18593 .alen = 32,
18594 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
18595 "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
18596 .rlen = 16,
18597 }, {
18598 .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
18599 "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
18600 "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
18601 .klen = 24,
18602 .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
18603 "\xef\x09\x2e\x94\x00\x00\x00\x00",
18604 .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
18605 "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
18606 "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
18607 "\xe3\x00\x73\x69\x84\x69\x87\x79",
18608 .alen = 32,
18609 .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
18610 "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
18611 "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
18612 "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
18613 .ilen = 32,
18614 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
18615 "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
18616 "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
18617 "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
18618 "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
18619 "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
18620 .rlen = 48,
18621 }, {
18622 .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
18623 "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
18624 "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
18625 "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
18626 .klen = 32,
18627 .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
18628 "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
18629 .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
18630 "\x78\x2b\x94\x02\x29\x0f\x42\x27"
18631 "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
18632 "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
18633 .alen = 32,
18634 .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
18635 "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
18636 "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
18637 "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
18638 .ilen = 32,
18639 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
18640 "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
18641 "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
18642 "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
18643 "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
18644 .rlen = 40,
18645 }, {
18646 .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
18647 "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
18648 "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
18649 "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
18650 .klen = 32,
18651 .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
Laura Abbott1c68bb02017-02-28 14:07:25 -080018652 "\x43\xf6\x1e\x50\0\0\0\0",
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018653 .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
18654 "\x13\x02\x01\x0c\x83\x4c\x96\x35"
18655 "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
18656 "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
18657 .alen = 32,
18658 .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
18659 "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
18660 "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
18661 "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
18662 .ilen = 32,
18663 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
18664 "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
18665 "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
18666 "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
18667 "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
18668 "\x7b\x72\x8a\xf7",
18669 .rlen = 44,
18670 }, {
18671 .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
18672 "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
18673 "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
18674 "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
18675 .klen = 32,
18676 .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
18677 "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
18678 .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
18679 "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
18680 "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
18681 "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
18682 .alen = 32,
18683 .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
18684 "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
18685 "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
18686 "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
18687 .ilen = 32,
18688 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
18689 "\xef\xbb\x80\x21\x04\x6c\x58\x09"
18690 "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
18691 "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
18692 "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
18693 "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
18694 .rlen = 48,
Eric Biggersde845da2019-01-13 15:32:25 -080018695 }, {
18696 /* This is taken from FIPS CAVS. */
18697 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
18698 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
18699 .klen = 16,
18700 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
18701 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
18702 .alen = 0,
18703 .input = "\x00",
18704 .ilen = 0,
18705 .result = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
18706 .rlen = 8,
18707 .novrfy = 1,
18708 }, {
18709 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
18710 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
18711 .klen = 16,
18712 .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81"
18713 "\x7f\x88\x94\x68\x00\x00\x00\x00",
18714 .alen = 0,
18715 .input = "\x00",
18716 .ilen = 0,
18717 .result = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
18718 .rlen = 8,
18719 }, {
18720 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
18721 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
18722 .klen = 16,
18723 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
18724 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
18725 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
18726 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
18727 "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
18728 "\xd8\x94\x99\x91\x81\x54\x62\x57",
18729 .alen = 32,
18730 .input = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
18731 "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
18732 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
18733 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
18734 .ilen = 32,
18735 .result = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
18736 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
18737 "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
18738 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
18739 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
18740 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
18741 .rlen = 48,
18742 .novrfy = 1,
18743 }, {
18744 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
18745 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
18746 .klen = 16,
18747 .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
18748 "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
18749 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
18750 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
18751 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
18752 "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
18753 .alen = 32,
18754 .input = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
18755 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
18756 "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
18757 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
18758 .ilen = 32,
18759 .result = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
18760 "\xad\x83\x52\x6d\x71\x03\x25\x1c"
18761 "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
18762 "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
18763 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
18764 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
18765 .rlen = 48,
18766 }, {
18767 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
18768 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
18769 "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
18770 .klen = 24,
18771 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18772 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18773 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
18774 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
18775 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
18776 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
18777 .alen = 32,
18778 .input = "\x00",
18779 .ilen = 0,
18780 .result = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
18781 .rlen = 8,
18782 }, {
18783 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18784 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18785 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
18786 .klen = 24,
18787 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18788 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18789 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
18790 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
18791 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
18792 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
18793 .alen = 32,
18794 .input = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
18795 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
18796 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
18797 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
18798 .ilen = 32,
18799 .result = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
18800 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
18801 "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
18802 "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
18803 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
18804 .rlen = 40,
18805 }, {
18806 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18807 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18808 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
18809 .klen = 24,
18810 .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
18811 "\xad\x71\xaa\x1f\x00\x00\x00\x00",
18812 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
18813 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
18814 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
18815 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
18816 .alen = 32,
18817 .input = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
18818 "\x99\x2a\xa8\xca\x04\x25\x45\x90"
18819 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
18820 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
18821 .ilen = 32,
18822 .result = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
18823 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
18824 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
18825 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
18826 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
18827 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
18828 .rlen = 48,
18829 .novrfy = 1,
18830 }, {
18831 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
18832 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
18833 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
18834 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
18835 .klen = 32,
18836 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18837 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18838 .alen = 0,
18839 .input = "\x00",
18840 .ilen = 0,
18841 .result = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
18842 .rlen = 8,
18843 }, {
18844 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
18845 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
18846 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
18847 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
18848 .klen = 32,
18849 .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
18850 "\x36\x58\xe0\x6b\x00\x00\x00\x00",
18851 .alen = 0,
18852 .input = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
18853 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
18854 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
18855 "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
18856 .ilen = 32,
18857 .result = "\x48\x01\x5e\x02\x24\x04\x66\x47"
18858 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
18859 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
18860 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
18861 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
18862 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
18863 .rlen = 48,
18864 .novrfy = 1,
18865 }, {
18866 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18867 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18868 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
18869 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
18870 .klen = 32,
18871 .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
18872 "\x44\x89\x40\x7b\x00\x00\x00\x00",
18873 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
18874 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
18875 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
18876 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
18877 .alen = 32,
18878 .input = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
18879 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
18880 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
18881 "\x04\x49\x3b\x19\x93\x57\x25\x5d",
18882 .ilen = 32,
18883 .result = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
18884 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
18885 "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
18886 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
18887 "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
18888 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
18889 .rlen = 48,
18890 },
Herbert Xuda7f0332008-07-31 17:08:25 +080018891};
18892
Eric Biggersb13b1e02017-02-24 15:46:59 -080018893static const struct aead_testvec aes_ccm_dec_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080018894 { /* From RFC 3610 */
18895 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18896 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18897 .klen = 16,
18898 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
18899 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18900 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
18901 .alen = 8,
18902 .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
18903 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
18904 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
18905 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
18906 .ilen = 31,
18907 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18908 "\x10\x11\x12\x13\x14\x15\x16\x17"
18909 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
18910 .rlen = 23,
18911 }, {
18912 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18913 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18914 .klen = 16,
18915 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
18916 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18917 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
18918 "\x08\x09\x0a\x0b",
18919 .alen = 12,
18920 .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
18921 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
18922 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
18923 "\x7d\x9c\x2d\x93",
18924 .ilen = 28,
18925 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
18926 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18927 "\x1c\x1d\x1e\x1f",
18928 .rlen = 20,
18929 }, {
18930 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18931 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18932 .klen = 16,
18933 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
18934 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18935 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
18936 .alen = 8,
18937 .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
18938 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
18939 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
18940 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
18941 "\x7e\x5f\x4e",
18942 .ilen = 35,
18943 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18944 "\x10\x11\x12\x13\x14\x15\x16\x17"
18945 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18946 "\x20",
18947 .rlen = 25,
18948 }, {
18949 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18950 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18951 .klen = 16,
18952 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
18953 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18954 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
18955 "\x08\x09\x0a\x0b",
18956 .alen = 12,
18957 .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
18958 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
18959 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
18960 "\x4d\x99\x99\x88\xdd",
18961 .ilen = 29,
18962 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
18963 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18964 "\x1c\x1d\x1e",
18965 .rlen = 19,
18966 }, {
18967 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18968 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18969 .klen = 16,
18970 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
18971 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18972 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
18973 .alen = 8,
18974 .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
18975 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
18976 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
18977 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
18978 .ilen = 32,
18979 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
18980 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
18981 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
18982 .rlen = 24,
18983 }, {
18984 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18985 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18986 .klen = 16,
18987 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
18988 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18989 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
18990 "\x20\xea\x60\xc0",
18991 .alen = 12,
18992 .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
18993 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
18994 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
18995 "\x5a\xe0\x70\x45\x51",
18996 .ilen = 29,
18997 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
18998 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
18999 "\x3a\x80\x3b\xa8\x7f",
19000 .rlen = 21,
19001 }, {
19002 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
19003 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
19004 .klen = 16,
19005 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
19006 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
19007 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
19008 .alen = 8,
19009 .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
19010 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
19011 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
19012 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
19013 "\xba",
19014 .ilen = 33,
19015 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
19016 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
19017 "\x98\x09\xd6\x7d\xbe\xdd\x18",
19018 .rlen = 23,
Jarod Wilson5d667322009-05-04 19:23:40 +080019019 }, {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019020 /* This is taken from FIPS CAVS. */
Jarod Wilson5d667322009-05-04 19:23:40 +080019021 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019022 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
19023 .klen = 16,
19024 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
19025 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019026 .alen = 0,
19027 .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
19028 .ilen = 8,
19029 .result = "\x00",
19030 .rlen = 0,
19031 .novrfy = 1,
19032 }, {
19033 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019034 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
19035 .klen = 16,
19036 .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81"
19037 "\x7f\x88\x94\x68\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019038 .alen = 0,
19039 .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
19040 .ilen = 8,
19041 .result = "\x00",
19042 .rlen = 0,
19043 }, {
19044 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019045 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
19046 .klen = 16,
19047 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
19048 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019049 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
19050 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
19051 "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
19052 "\xd8\x94\x99\x91\x81\x54\x62\x57",
19053 .alen = 32,
19054 .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
19055 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
19056 "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
19057 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
19058 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
19059 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
19060 .ilen = 48,
19061 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
19062 "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
19063 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
19064 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
19065 .rlen = 32,
19066 .novrfy = 1,
19067 }, {
19068 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019069 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
19070 .klen = 16,
19071 .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
19072 "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019073 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
19074 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
19075 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
19076 "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
19077 .alen = 32,
19078 .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
19079 "\xad\x83\x52\x6d\x71\x03\x25\x1c"
19080 "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
19081 "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
19082 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
19083 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
19084 .ilen = 48,
19085 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
19086 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
19087 "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
19088 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
19089 .rlen = 32,
19090 }, {
19091 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
19092 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019093 "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
19094 .klen = 24,
19095 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
19096 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019097 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
19098 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
19099 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
19100 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
19101 .alen = 32,
19102 .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
19103 .ilen = 8,
19104 .result = "\x00",
19105 .rlen = 0,
19106 }, {
19107 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
19108 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019109 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
19110 .klen = 24,
19111 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
19112 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019113 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
19114 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
19115 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
19116 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
19117 .alen = 32,
19118 .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
19119 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
19120 "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
19121 "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
19122 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
19123 .ilen = 40,
19124 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
19125 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
19126 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
19127 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
19128 .rlen = 32,
19129 }, {
19130 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
19131 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019132 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
19133 .klen = 24,
19134 .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
19135 "\xad\x71\xaa\x1f\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019136 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
19137 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
19138 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
19139 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
19140 .alen = 32,
19141 .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
19142 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
19143 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
19144 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
19145 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
19146 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
19147 .ilen = 48,
19148 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
19149 "\x99\x2a\xa8\xca\x04\x25\x45\x90"
19150 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
19151 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
19152 .rlen = 32,
19153 .novrfy = 1,
19154 }, {
19155 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
19156 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
19157 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019158 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
19159 .klen = 32,
19160 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
19161 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019162 .alen = 0,
19163 .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
19164 .ilen = 8,
19165 .result = "\x00",
19166 .rlen = 0,
19167 }, {
19168 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
19169 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
19170 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019171 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
19172 .klen = 32,
19173 .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
19174 "\x36\x58\xe0\x6b\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019175 .alen = 0,
19176 .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
19177 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
19178 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
19179 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
19180 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
19181 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
19182 .ilen = 48,
19183 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
19184 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
19185 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
19186 "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
19187 .rlen = 32,
19188 .novrfy = 1,
19189 }, {
19190 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
19191 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
19192 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019193 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
19194 .klen = 32,
19195 .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
19196 "\x44\x89\x40\x7b\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080019197 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
19198 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
19199 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
19200 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
19201 .alen = 32,
19202 .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
19203 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
19204 "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
19205 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
19206 "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
19207 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
19208 .ilen = 48,
19209 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
19210 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
19211 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
19212 "\x04\x49\x3b\x19\x93\x57\x25\x5d",
19213 .rlen = 32,
19214 },
19215};
19216
Jarod Wilsone08ca2d2009-05-04 19:46:29 +080019217/*
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019218 * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
19219 * use a 13-byte nonce, we only support an 11-byte nonce. Worse,
19220 * they use AD lengths which are not valid ESP header lengths.
19221 *
19222 * These vectors are copied/generated from the ones for rfc4106 with
19223 * the key truncated by one byte..
19224 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080019225static const struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019226 { /* Generated using Crypto++ */
19227 .key = zeroed_string,
19228 .klen = 19,
19229 .iv = zeroed_string,
19230 .input = zeroed_string,
19231 .ilen = 16,
19232 .assoc = zeroed_string,
19233 .alen = 16,
19234 .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
19235 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
19236 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
19237 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
19238 .rlen = 32,
19239 },{
19240 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19241 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19242 "\x00\x00\x00",
19243 .klen = 19,
19244 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
19245 .input = zeroed_string,
19246 .ilen = 16,
19247 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
19248 "\x00\x00\x00\x00\x00\x00\x00\x01",
19249 .alen = 16,
19250 .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
19251 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
19252 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
19253 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
19254 .rlen = 32,
19255
19256 }, {
19257 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19258 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19259 "\x00\x00\x00",
19260 .klen = 19,
19261 .iv = zeroed_string,
19262 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19263 "\x01\x01\x01\x01\x01\x01\x01\x01",
19264 .ilen = 16,
19265 .assoc = zeroed_string,
19266 .alen = 16,
19267 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
19268 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
19269 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
19270 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
19271 .rlen = 32,
19272 }, {
19273 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19274 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19275 "\x00\x00\x00",
19276 .klen = 19,
19277 .iv = zeroed_string,
19278 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19279 "\x01\x01\x01\x01\x01\x01\x01\x01",
19280 .ilen = 16,
19281 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
19282 "\x00\x00\x00\x00\x00\x00\x00\x00",
19283 .alen = 16,
19284 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
19285 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
19286 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
19287 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
19288 .rlen = 32,
19289 }, {
19290 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19291 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19292 "\x00\x00\x00",
19293 .klen = 19,
19294 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
19295 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19296 "\x01\x01\x01\x01\x01\x01\x01\x01",
19297 .ilen = 16,
19298 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
19299 "\x00\x00\x00\x00\x00\x00\x00\x01",
19300 .alen = 16,
19301 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
19302 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
19303 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
19304 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
19305 .rlen = 32,
19306 }, {
19307 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19308 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19309 "\x00\x00\x00",
19310 .klen = 19,
19311 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
19312 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
19313 "\x01\x01\x01\x01\x01\x01\x01\x01"
19314 "\x01\x01\x01\x01\x01\x01\x01\x01"
19315 "\x01\x01\x01\x01\x01\x01\x01\x01"
19316 "\x01\x01\x01\x01\x01\x01\x01\x01"
19317 "\x01\x01\x01\x01\x01\x01\x01\x01"
19318 "\x01\x01\x01\x01\x01\x01\x01\x01"
19319 "\x01\x01\x01\x01\x01\x01\x01\x01",
19320 .ilen = 64,
19321 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
19322 "\x00\x00\x00\x00\x00\x00\x00\x01",
19323 .alen = 16,
19324 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
19325 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
19326 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
19327 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
19328 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
19329 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
19330 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
19331 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
19332 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
19333 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
19334 .rlen = 80,
19335 }, {
19336 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19337 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19338 "\x00\x00\x00",
19339 .klen = 19,
19340 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
19341 .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
19342 "\xff\xff\xff\xff\xff\xff\xff\xff"
19343 "\xff\xff\xff\xff\xff\xff\xff\xff"
19344 "\xff\xff\xff\xff\xff\xff\xff\xff"
19345 "\xff\xff\xff\xff\xff\xff\xff\xff"
19346 "\xff\xff\xff\xff\xff\xff\xff\xff"
19347 "\xff\xff\xff\xff\xff\xff\xff\xff"
19348 "\xff\xff\xff\xff\xff\xff\xff\xff"
19349 "\xff\xff\xff\xff\xff\xff\xff\xff"
19350 "\xff\xff\xff\xff\xff\xff\xff\xff"
19351 "\xff\xff\xff\xff\xff\xff\xff\xff"
19352 "\xff\xff\xff\xff\xff\xff\xff\xff"
19353 "\xff\xff\xff\xff\xff\xff\xff\xff"
19354 "\xff\xff\xff\xff\xff\xff\xff\xff"
19355 "\xff\xff\xff\xff\xff\xff\xff\xff"
19356 "\xff\xff\xff\xff\xff\xff\xff\xff"
19357 "\xff\xff\xff\xff\xff\xff\xff\xff"
19358 "\xff\xff\xff\xff\xff\xff\xff\xff"
19359 "\xff\xff\xff\xff\xff\xff\xff\xff"
19360 "\xff\xff\xff\xff\xff\xff\xff\xff"
19361 "\xff\xff\xff\xff\xff\xff\xff\xff"
19362 "\xff\xff\xff\xff\xff\xff\xff\xff"
19363 "\xff\xff\xff\xff\xff\xff\xff\xff"
19364 "\xff\xff\xff\xff\xff\xff\xff\xff",
19365 .ilen = 192,
19366 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
19367 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
19368 "\x89\xab\xcd\xef",
19369 .alen = 20,
19370 .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
19371 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
19372 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
19373 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
19374 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
19375 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
19376 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
19377 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
19378 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
19379 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
19380 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
19381 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
19382 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
19383 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
19384 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
19385 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
19386 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
19387 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
19388 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
19389 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
19390 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
19391 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
19392 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
19393 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
19394 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
19395 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
19396 .rlen = 208,
19397 }, { /* From draft-mcgrew-gcm-test-01 */
19398 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
19399 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
19400 "\x2E\x44\x3B",
19401 .klen = 19,
19402 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
19403 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
19404 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
19405 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
19406 "\x38\xD3\x01\x00\x00\x01\x00\x00"
19407 "\x00\x00\x00\x00\x04\x5F\x73\x69"
19408 "\x70\x04\x5F\x75\x64\x70\x03\x73"
19409 "\x69\x70\x09\x63\x79\x62\x65\x72"
19410 "\x63\x69\x74\x79\x02\x64\x6B\x00"
19411 "\x00\x21\x00\x01\x01\x02\x02\x01",
19412 .ilen = 72,
19413 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
19414 "\x00\x00\x00\x00\x49\x56\xED\x7E"
19415 "\x3B\x24\x4C\xFE",
19416 .alen = 20,
19417 .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
19418 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
19419 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
19420 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
19421 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
19422 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
19423 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
19424 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
19425 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
19426 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
19427 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
19428 .rlen = 88,
19429 }, {
19430 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
19431 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
19432 "\xCA\xFE\xBA",
19433 .klen = 19,
19434 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
19435 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
19436 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
19437 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
19438 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
19439 "\x00\x01\x00\x00\x00\x00\x00\x00"
19440 "\x03\x73\x69\x70\x09\x63\x79\x62"
19441 "\x65\x72\x63\x69\x74\x79\x02\x64"
19442 "\x6B\x00\x00\x01\x00\x01\x00\x01",
19443 .ilen = 64,
19444 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
19445 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
19446 .alen = 16,
19447 .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
19448 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
19449 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
19450 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
19451 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
19452 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
19453 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
19454 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
19455 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
19456 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
19457 .rlen = 80,
19458 }, {
19459 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19460 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19461 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19462 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19463 "\x11\x22\x33",
19464 .klen = 35,
19465 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
19466 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
19467 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
19468 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
19469 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
19470 "\x70\x02\x40\x00\x20\xBF\x00\x00"
19471 "\x02\x04\x05\xB4\x01\x01\x04\x02"
19472 "\x01\x02\x02\x01",
19473 .ilen = 52,
19474 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
19475 "\x01\x02\x03\x04\x05\x06\x07\x08",
19476 .alen = 16,
19477 .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
19478 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
19479 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
19480 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
19481 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
19482 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
19483 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
19484 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
19485 "\x5A\x48\x6A\x3E",
19486 .rlen = 68,
19487 }, {
19488 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
19489 "\x00\x00\x00\x00\x00\x00\x00\x00"
19490 "\x00\x00\x00",
19491 .klen = 19,
19492 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
19493 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
19494 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
19495 "\x01\x01\x01\x01\x08\x00\x07\x5C"
19496 "\x02\x00\x44\x00\x61\x62\x63\x64"
19497 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19498 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19499 "\x75\x76\x77\x61\x62\x63\x64\x65"
19500 "\x66\x67\x68\x69\x01\x02\x02\x01",
19501 .ilen = 64,
19502 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
19503 "\x00\x00\x00\x00\x00\x00\x00\x00",
19504 .alen = 16,
19505 .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
19506 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
19507 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
19508 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
19509 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
19510 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
19511 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
19512 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
19513 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
19514 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
19515 .rlen = 80,
19516 }, {
19517 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19518 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19519 "\x57\x69\x0E",
19520 .klen = 19,
19521 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19522 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
19523 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
19524 "\x01\x01\x01\x01\x08\x00\x08\x5C"
19525 "\x02\x00\x43\x00\x61\x62\x63\x64"
19526 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19527 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19528 "\x75\x76\x77\x61\x62\x63\x64\x65"
19529 "\x66\x67\x68\x69\x01\x02\x02\x01",
19530 .ilen = 64,
19531 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19532 "\x10\x10\x10\x10\x4E\x28\x00\x00"
19533 "\xA2\xFC\xA1\xA3",
19534 .alen = 20,
19535 .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
19536 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
19537 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
19538 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
19539 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
19540 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
19541 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
19542 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
19543 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
19544 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
19545 .rlen = 80,
19546 }, {
19547 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19548 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19549 "\x57\x69\x0E",
19550 .klen = 19,
19551 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19552 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
19553 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
19554 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
19555 "\x01\x02\x02\x01",
19556 .ilen = 28,
19557 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19558 "\x10\x10\x10\x10\x4E\x28\x00\x00"
19559 "\xA2\xFC\xA1\xA3",
19560 .alen = 20,
19561 .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
19562 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
19563 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
19564 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
19565 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
19566 "\x08\xB4\x22\xE4",
19567 .rlen = 44,
19568 }, {
19569 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
19570 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
19571 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
19572 "\xCA\xFE\xBA",
19573 .klen = 27,
19574 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
19575 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
19576 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
19577 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
19578 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
19579 "\x50\x10\x16\xD0\x75\x68\x00\x01",
19580 .ilen = 40,
19581 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
19582 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
19583 .alen = 16,
19584 .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
19585 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
19586 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
19587 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
19588 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
19589 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
19590 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
19591 .rlen = 56,
19592 }, {
19593 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19594 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19595 "\xDE\xCA\xF8",
19596 .klen = 19,
19597 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
19598 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
19599 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
19600 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
19601 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
19602 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
19603 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
19604 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
19605 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
19606 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
19607 "\x23\x01\x01\x01",
19608 .ilen = 76,
19609 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
19610 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
19611 "\xCE\xFA\xCE\x74",
19612 .alen = 20,
19613 .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
19614 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
19615 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
19616 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
19617 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
19618 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
19619 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
19620 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
19621 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
19622 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
19623 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
19624 "\x12\x25\x0B\xF9",
19625 .rlen = 92,
19626 }, {
19627 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19628 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19629 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19630 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19631 "\x73\x61\x6C",
19632 .klen = 35,
19633 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
19634 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
19635 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
19636 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
19637 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
19638 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
19639 .ilen = 40,
19640 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
19641 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
19642 "\x69\x76\x65\x63",
19643 .alen = 20,
19644 .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
19645 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
19646 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
19647 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
19648 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
19649 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
19650 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
19651 .rlen = 56,
19652 }, {
19653 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19654 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19655 "\x57\x69\x0E",
19656 .klen = 19,
19657 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19658 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
19659 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
19660 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
19661 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
19662 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
19663 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
19664 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
19665 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
19666 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
19667 "\x15\x01\x01\x01",
19668 .ilen = 76,
19669 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19670 "\x10\x10\x10\x10\x4E\x28\x00\x00"
19671 "\xA2\xFC\xA1\xA3",
19672 .alen = 20,
19673 .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
19674 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
19675 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
19676 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
19677 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
19678 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
19679 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
19680 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
19681 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
19682 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
19683 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
19684 "\xCC\xF7\x46\x6F",
19685 .rlen = 92,
19686 }, {
19687 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19688 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19689 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19690 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19691 "\x73\x61\x6C",
19692 .klen = 35,
19693 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
19694 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
19695 "\x6C\x65\x73\x01\x74\x68\x65\x01"
19696 "\x6E\x65\x74\x77\x65\x01\x64\x65"
19697 "\x66\x69\x6E\x65\x01\x74\x68\x65"
19698 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
19699 "\x67\x69\x65\x73\x01\x74\x68\x61"
19700 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
19701 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
19702 "\x72\x72\x6F\x77\x01\x02\x02\x01",
19703 .ilen = 72,
19704 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
19705 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
19706 "\x69\x76\x65\x63",
19707 .alen = 20,
19708 .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
19709 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
19710 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
19711 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
19712 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
19713 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
19714 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
19715 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
19716 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
19717 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
19718 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
19719 .rlen = 88,
19720 }, {
19721 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
19722 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
19723 "\xD9\x66\x42",
19724 .klen = 19,
19725 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
19726 .input = "\x01\x02\x02\x01",
19727 .ilen = 4,
19728 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
19729 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
19730 .alen = 16,
19731 .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
19732 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
19733 "\xF7\x61\x24\x62",
19734 .rlen = 20,
19735 }, {
19736 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19737 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19738 "\xDE\xCA\xF8",
19739 .klen = 19,
19740 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
19741 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
19742 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
19743 "\x62\x65\x00\x01",
19744 .ilen = 20,
19745 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
19746 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
19747 "\xCE\xFA\xCE\x74",
19748 .alen = 20,
19749 .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
19750 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
19751 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
19752 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
19753 "\x17\x17\x65\xAD",
19754 .rlen = 36,
19755 }, {
19756 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
19757 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
19758 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
19759 "\x62\x65\x66\x6F\x72\x65\x69\x61"
19760 "\x74\x75\x72",
19761 .klen = 35,
19762 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
19763 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
19764 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
19765 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
19766 "\x02\x00\x07\x00\x61\x62\x63\x64"
19767 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19768 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19769 "\x01\x02\x02\x01",
19770 .ilen = 52,
19771 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
19772 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
19773 "\x67\x65\x74\x6D",
19774 .alen = 20,
19775 .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
19776 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
19777 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
19778 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
19779 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
19780 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
19781 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
19782 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
19783 "\x39\xDB\xC8\xDC",
19784 .rlen = 68,
19785 }, {
19786 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19787 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19788 "\x57\x69\x0E",
19789 .klen = 19,
19790 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
19791 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
19792 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
19793 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
19794 "\x02\x00\x07\x00\x61\x62\x63\x64"
19795 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19796 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19797 "\x01\x02\x02\x01",
19798 .ilen = 52,
19799 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
19800 "\x10\x10\x10\x10\x4E\x28\x00\x00"
19801 "\xA2\xFC\xA1\xA3",
19802 .alen = 20,
19803 .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
19804 "\x10\x60\x54\x25\xEB\x80\x04\x93"
19805 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
19806 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
19807 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
19808 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
19809 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
19810 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
19811 "\xF4\x95\x5D\x4F",
19812 .rlen = 68,
19813 }, {
19814 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
19815 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
19816 "\x22\x43\x3C",
19817 .klen = 19,
19818 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
19819 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
19820 "\x61\x62\x63\x64\x65\x66\x67\x68"
19821 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
19822 "\x71\x72\x73\x74\x01\x02\x02\x01",
19823 .ilen = 32,
19824 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
19825 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
19826 "\x3A\x23\x4B\xFD",
19827 .alen = 20,
19828 .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
19829 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
19830 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
19831 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
19832 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
19833 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
19834 .rlen = 48,
19835 }
19836};
19837
Eric Biggersb13b1e02017-02-24 15:46:59 -080019838static const struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019839 { /* Generated using Crypto++ */
19840 .key = zeroed_string,
19841 .klen = 19,
19842 .iv = zeroed_string,
19843 .result = zeroed_string,
19844 .rlen = 16,
19845 .assoc = zeroed_string,
19846 .alen = 16,
19847 .input = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
19848 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
19849 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
19850 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
19851 .ilen = 32,
19852 },{
19853 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19854 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19855 "\x00\x00\x00",
19856 .klen = 19,
19857 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
19858 .result = zeroed_string,
19859 .rlen = 16,
19860 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
19861 "\x00\x00\x00\x00\x00\x00\x00\x01",
19862 .alen = 16,
19863 .input = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
19864 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
19865 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
19866 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
19867 .ilen = 32,
19868
19869 }, {
19870 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19871 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19872 "\x00\x00\x00",
19873 .klen = 19,
19874 .iv = zeroed_string,
19875 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19876 "\x01\x01\x01\x01\x01\x01\x01\x01",
19877 .rlen = 16,
19878 .assoc = zeroed_string,
19879 .alen = 16,
19880 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
19881 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
19882 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
19883 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
19884 .ilen = 32,
19885 }, {
19886 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19887 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19888 "\x00\x00\x00",
19889 .klen = 19,
19890 .iv = zeroed_string,
19891 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19892 "\x01\x01\x01\x01\x01\x01\x01\x01",
19893 .rlen = 16,
19894 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
19895 "\x00\x00\x00\x00\x00\x00\x00\x00",
19896 .alen = 16,
19897 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
19898 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
19899 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
19900 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
19901 .ilen = 32,
19902 }, {
19903 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19904 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19905 "\x00\x00\x00",
19906 .klen = 19,
19907 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
19908 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19909 "\x01\x01\x01\x01\x01\x01\x01\x01",
19910 .rlen = 16,
19911 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
19912 "\x00\x00\x00\x00\x00\x00\x00\x01",
19913 .alen = 16,
19914 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
19915 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
19916 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
19917 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
19918 .ilen = 32,
19919 }, {
19920 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
19921 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
19922 "\x00\x00\x00",
19923 .klen = 19,
19924 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
19925 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
19926 "\x01\x01\x01\x01\x01\x01\x01\x01"
19927 "\x01\x01\x01\x01\x01\x01\x01\x01"
19928 "\x01\x01\x01\x01\x01\x01\x01\x01"
19929 "\x01\x01\x01\x01\x01\x01\x01\x01"
19930 "\x01\x01\x01\x01\x01\x01\x01\x01"
19931 "\x01\x01\x01\x01\x01\x01\x01\x01"
19932 "\x01\x01\x01\x01\x01\x01\x01\x01",
19933 .rlen = 64,
19934 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
19935 "\x00\x00\x00\x00\x00\x00\x00\x01",
19936 .alen = 16,
19937 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
19938 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
19939 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
19940 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
19941 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
19942 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
19943 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
19944 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
19945 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
19946 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
19947 .ilen = 80,
19948 }, {
19949 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
19950 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
19951 "\x00\x00\x00",
19952 .klen = 19,
19953 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
19954 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
19955 "\xff\xff\xff\xff\xff\xff\xff\xff"
19956 "\xff\xff\xff\xff\xff\xff\xff\xff"
19957 "\xff\xff\xff\xff\xff\xff\xff\xff"
19958 "\xff\xff\xff\xff\xff\xff\xff\xff"
19959 "\xff\xff\xff\xff\xff\xff\xff\xff"
19960 "\xff\xff\xff\xff\xff\xff\xff\xff"
19961 "\xff\xff\xff\xff\xff\xff\xff\xff"
19962 "\xff\xff\xff\xff\xff\xff\xff\xff"
19963 "\xff\xff\xff\xff\xff\xff\xff\xff"
19964 "\xff\xff\xff\xff\xff\xff\xff\xff"
19965 "\xff\xff\xff\xff\xff\xff\xff\xff"
19966 "\xff\xff\xff\xff\xff\xff\xff\xff"
19967 "\xff\xff\xff\xff\xff\xff\xff\xff"
19968 "\xff\xff\xff\xff\xff\xff\xff\xff"
19969 "\xff\xff\xff\xff\xff\xff\xff\xff"
19970 "\xff\xff\xff\xff\xff\xff\xff\xff"
19971 "\xff\xff\xff\xff\xff\xff\xff\xff"
19972 "\xff\xff\xff\xff\xff\xff\xff\xff"
19973 "\xff\xff\xff\xff\xff\xff\xff\xff"
19974 "\xff\xff\xff\xff\xff\xff\xff\xff"
19975 "\xff\xff\xff\xff\xff\xff\xff\xff"
19976 "\xff\xff\xff\xff\xff\xff\xff\xff"
19977 "\xff\xff\xff\xff\xff\xff\xff\xff",
19978 .rlen = 192,
19979 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
19980 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
19981 "\x89\xab\xcd\xef",
19982 .alen = 20,
19983 .input = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
19984 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
19985 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
19986 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
19987 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
19988 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
19989 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
19990 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
19991 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
19992 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
19993 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
19994 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
19995 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
19996 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
19997 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
19998 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
19999 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
20000 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
20001 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
20002 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
20003 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
20004 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
20005 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
20006 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
20007 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
20008 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
20009 .ilen = 208,
20010 }, { /* From draft-mcgrew-gcm-test-01 */
20011 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
20012 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
20013 "\x2E\x44\x3B",
20014 .klen = 19,
20015 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
20016 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
20017 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
20018 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
20019 "\x38\xD3\x01\x00\x00\x01\x00\x00"
20020 "\x00\x00\x00\x00\x04\x5F\x73\x69"
20021 "\x70\x04\x5F\x75\x64\x70\x03\x73"
20022 "\x69\x70\x09\x63\x79\x62\x65\x72"
20023 "\x63\x69\x74\x79\x02\x64\x6B\x00"
20024 "\x00\x21\x00\x01\x01\x02\x02\x01",
20025 .rlen = 72,
20026 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
20027 "\x00\x00\x00\x00\x49\x56\xED\x7E"
20028 "\x3B\x24\x4C\xFE",
20029 .alen = 20,
20030 .input = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
20031 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
20032 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
20033 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
20034 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
20035 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
20036 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
20037 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
20038 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
20039 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
20040 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
20041 .ilen = 88,
20042 }, {
20043 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
20044 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
20045 "\xCA\xFE\xBA",
20046 .klen = 19,
20047 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
20048 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
20049 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
20050 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
20051 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
20052 "\x00\x01\x00\x00\x00\x00\x00\x00"
20053 "\x03\x73\x69\x70\x09\x63\x79\x62"
20054 "\x65\x72\x63\x69\x74\x79\x02\x64"
20055 "\x6B\x00\x00\x01\x00\x01\x00\x01",
20056 .rlen = 64,
20057 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
20058 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
20059 .alen = 16,
20060 .input = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
20061 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
20062 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
20063 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
20064 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
20065 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
20066 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
20067 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
20068 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
20069 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
20070 .ilen = 80,
20071 }, {
20072 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
20073 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
20074 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
20075 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
20076 "\x11\x22\x33",
20077 .klen = 35,
20078 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
20079 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
20080 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
20081 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
20082 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
20083 "\x70\x02\x40\x00\x20\xBF\x00\x00"
20084 "\x02\x04\x05\xB4\x01\x01\x04\x02"
20085 "\x01\x02\x02\x01",
20086 .rlen = 52,
20087 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
20088 "\x01\x02\x03\x04\x05\x06\x07\x08",
20089 .alen = 16,
20090 .input = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
20091 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
20092 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
20093 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
20094 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
20095 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
20096 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
20097 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
20098 "\x5A\x48\x6A\x3E",
20099 .ilen = 68,
20100 }, {
20101 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
20102 "\x00\x00\x00\x00\x00\x00\x00\x00"
20103 "\x00\x00\x00",
20104 .klen = 19,
20105 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
20106 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
20107 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
20108 "\x01\x01\x01\x01\x08\x00\x07\x5C"
20109 "\x02\x00\x44\x00\x61\x62\x63\x64"
20110 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
20111 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
20112 "\x75\x76\x77\x61\x62\x63\x64\x65"
20113 "\x66\x67\x68\x69\x01\x02\x02\x01",
20114 .rlen = 64,
20115 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
20116 "\x00\x00\x00\x00\x00\x00\x00\x00",
20117 .alen = 16,
20118 .input = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
20119 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
20120 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
20121 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
20122 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
20123 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
20124 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
20125 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
20126 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
20127 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
20128 .ilen = 80,
20129 }, {
20130 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
20131 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
20132 "\x57\x69\x0E",
20133 .klen = 19,
20134 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
20135 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
20136 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
20137 "\x01\x01\x01\x01\x08\x00\x08\x5C"
20138 "\x02\x00\x43\x00\x61\x62\x63\x64"
20139 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
20140 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
20141 "\x75\x76\x77\x61\x62\x63\x64\x65"
20142 "\x66\x67\x68\x69\x01\x02\x02\x01",
20143 .rlen = 64,
20144 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
20145 "\x10\x10\x10\x10\x4E\x28\x00\x00"
20146 "\xA2\xFC\xA1\xA3",
20147 .alen = 20,
20148 .input = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
20149 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
20150 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
20151 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
20152 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
20153 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
20154 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
20155 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
20156 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
20157 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
20158 .ilen = 80,
20159 }, {
20160 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
20161 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
20162 "\x57\x69\x0E",
20163 .klen = 19,
20164 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
20165 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
20166 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
20167 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
20168 "\x01\x02\x02\x01",
20169 .rlen = 28,
20170 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
20171 "\x10\x10\x10\x10\x4E\x28\x00\x00"
20172 "\xA2\xFC\xA1\xA3",
20173 .alen = 20,
20174 .input = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
20175 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
20176 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
20177 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
20178 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
20179 "\x08\xB4\x22\xE4",
20180 .ilen = 44,
20181 }, {
20182 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
20183 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
20184 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
20185 "\xCA\xFE\xBA",
20186 .klen = 27,
20187 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
20188 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
20189 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
20190 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
20191 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
20192 "\x50\x10\x16\xD0\x75\x68\x00\x01",
20193 .rlen = 40,
20194 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
20195 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
20196 .alen = 16,
20197 .input = "\x05\x22\x15\xD1\x52\x56\x85\x04"
20198 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
20199 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
20200 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
20201 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
20202 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
20203 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
20204 .ilen = 56,
20205 }, {
20206 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
20207 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
20208 "\xDE\xCA\xF8",
20209 .klen = 19,
20210 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
20211 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
20212 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
20213 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
20214 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
20215 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
20216 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
20217 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
20218 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
20219 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
20220 "\x23\x01\x01\x01",
20221 .rlen = 76,
20222 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
20223 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
20224 "\xCE\xFA\xCE\x74",
20225 .alen = 20,
20226 .input = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
20227 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
20228 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
20229 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
20230 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
20231 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
20232 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
20233 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
20234 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
20235 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
20236 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
20237 "\x12\x25\x0B\xF9",
20238 .ilen = 92,
20239 }, {
20240 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
20241 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
20242 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
20243 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
20244 "\x73\x61\x6C",
20245 .klen = 35,
20246 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
20247 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
20248 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
20249 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
20250 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
20251 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
20252 .rlen = 40,
20253 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
20254 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
20255 "\x69\x76\x65\x63",
20256 .alen = 20,
20257 .input = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
20258 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
20259 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
20260 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
20261 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
20262 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
20263 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
20264 .ilen = 56,
20265 }, {
20266 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
20267 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
20268 "\x57\x69\x0E",
20269 .klen = 19,
20270 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
20271 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
20272 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
20273 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
20274 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
20275 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
20276 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
20277 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
20278 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
20279 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
20280 "\x15\x01\x01\x01",
20281 .rlen = 76,
20282 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
20283 "\x10\x10\x10\x10\x4E\x28\x00\x00"
20284 "\xA2\xFC\xA1\xA3",
20285 .alen = 20,
20286 .input = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
20287 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
20288 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
20289 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
20290 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
20291 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
20292 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
20293 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
20294 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
20295 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
20296 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
20297 "\xCC\xF7\x46\x6F",
20298 .ilen = 92,
20299 }, {
20300 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
20301 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
20302 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
20303 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
20304 "\x73\x61\x6C",
20305 .klen = 35,
20306 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
20307 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
20308 "\x6C\x65\x73\x01\x74\x68\x65\x01"
20309 "\x6E\x65\x74\x77\x65\x01\x64\x65"
20310 "\x66\x69\x6E\x65\x01\x74\x68\x65"
20311 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
20312 "\x67\x69\x65\x73\x01\x74\x68\x61"
20313 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
20314 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
20315 "\x72\x72\x6F\x77\x01\x02\x02\x01",
20316 .rlen = 72,
20317 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
20318 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
20319 "\x69\x76\x65\x63",
20320 .alen = 20,
20321 .input = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
20322 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
20323 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
20324 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
20325 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
20326 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
20327 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
20328 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
20329 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
20330 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
20331 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
20332 .ilen = 88,
20333 }, {
20334 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
20335 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
20336 "\xD9\x66\x42",
20337 .klen = 19,
20338 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
20339 .result = "\x01\x02\x02\x01",
20340 .rlen = 4,
20341 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
20342 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
20343 .alen = 16,
20344 .input = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
20345 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
20346 "\xF7\x61\x24\x62",
20347 .ilen = 20,
20348 }, {
20349 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
20350 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
20351 "\xDE\xCA\xF8",
20352 .klen = 19,
20353 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
20354 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
20355 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
20356 "\x62\x65\x00\x01",
20357 .rlen = 20,
20358 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
20359 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
20360 "\xCE\xFA\xCE\x74",
20361 .alen = 20,
20362 .input = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
20363 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
20364 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
20365 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
20366 "\x17\x17\x65\xAD",
20367 .ilen = 36,
20368 }, {
20369 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
20370 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
20371 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
20372 "\x62\x65\x66\x6F\x72\x65\x69\x61"
20373 "\x74\x75\x72",
20374 .klen = 35,
20375 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
20376 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
20377 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
20378 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
20379 "\x02\x00\x07\x00\x61\x62\x63\x64"
20380 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
20381 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
20382 "\x01\x02\x02\x01",
20383 .rlen = 52,
20384 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
20385 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
20386 "\x67\x65\x74\x6D",
20387 .alen = 20,
20388 .input = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
20389 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
20390 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
20391 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
20392 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
20393 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
20394 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
20395 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
20396 "\x39\xDB\xC8\xDC",
20397 .ilen = 68,
20398 }, {
20399 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
20400 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
20401 "\x57\x69\x0E",
20402 .klen = 19,
20403 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
20404 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
20405 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
20406 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
20407 "\x02\x00\x07\x00\x61\x62\x63\x64"
20408 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
20409 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
20410 "\x01\x02\x02\x01",
20411 .rlen = 52,
20412 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
20413 "\x10\x10\x10\x10\x4E\x28\x00\x00"
20414 "\xA2\xFC\xA1\xA3",
20415 .alen = 20,
20416 .input = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
20417 "\x10\x60\x54\x25\xEB\x80\x04\x93"
20418 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
20419 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
20420 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
20421 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
20422 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
20423 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
20424 "\xF4\x95\x5D\x4F",
20425 .ilen = 68,
20426 }, {
20427 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
20428 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
20429 "\x22\x43\x3C",
20430 .klen = 19,
20431 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
20432 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
20433 "\x61\x62\x63\x64\x65\x66\x67\x68"
20434 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
20435 "\x71\x72\x73\x74\x01\x02\x02\x01",
20436 .rlen = 32,
20437 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
20438 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
20439 "\x3A\x23\x4B\xFD",
20440 .alen = 20,
20441 .input = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
20442 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
20443 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
20444 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
20445 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
20446 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
20447 .ilen = 48,
20448 }
20449};
20450
20451/*
Martin Williaf2b76b2015-06-01 13:44:01 +020020452 * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
20453 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080020454static const struct aead_testvec rfc7539_enc_tv_template[] = {
Martin Williaf2b76b2015-06-01 13:44:01 +020020455 {
20456 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
20457 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
20458 "\x90\x91\x92\x93\x94\x95\x96\x97"
20459 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
20460 .klen = 32,
20461 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
20462 "\x44\x45\x46\x47",
20463 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
20464 "\xc4\xc5\xc6\xc7",
20465 .alen = 12,
20466 .input = "\x4c\x61\x64\x69\x65\x73\x20\x61"
20467 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
20468 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
20469 "\x74\x68\x65\x20\x63\x6c\x61\x73"
20470 "\x73\x20\x6f\x66\x20\x27\x39\x39"
20471 "\x3a\x20\x49\x66\x20\x49\x20\x63"
20472 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
20473 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
20474 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
20475 "\x74\x69\x70\x20\x66\x6f\x72\x20"
20476 "\x74\x68\x65\x20\x66\x75\x74\x75"
20477 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
20478 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
20479 "\x75\x6c\x64\x20\x62\x65\x20\x69"
20480 "\x74\x2e",
20481 .ilen = 114,
20482 .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
20483 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
20484 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
20485 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
20486 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
20487 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
20488 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
20489 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
20490 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
20491 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
20492 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
20493 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
20494 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
20495 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
20496 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
20497 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
20498 "\x06\x91",
20499 .rlen = 130,
20500 }, {
20501 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
20502 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
20503 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
20504 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
20505 .klen = 32,
20506 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
20507 "\x05\x06\x07\x08",
20508 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
20509 "\x00\x00\x4e\x91",
20510 .alen = 12,
20511 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
20512 "\x2d\x44\x72\x61\x66\x74\x73\x20"
20513 "\x61\x72\x65\x20\x64\x72\x61\x66"
20514 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
20515 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
20516 "\x64\x20\x66\x6f\x72\x20\x61\x20"
20517 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
20518 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
20519 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
20520 "\x64\x20\x6d\x61\x79\x20\x62\x65"
20521 "\x20\x75\x70\x64\x61\x74\x65\x64"
20522 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
20523 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
20524 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
20525 "\x20\x62\x79\x20\x6f\x74\x68\x65"
20526 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
20527 "\x6e\x74\x73\x20\x61\x74\x20\x61"
20528 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
20529 "\x20\x49\x74\x20\x69\x73\x20\x69"
20530 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
20531 "\x69\x61\x74\x65\x20\x74\x6f\x20"
20532 "\x75\x73\x65\x20\x49\x6e\x74\x65"
20533 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
20534 "\x66\x74\x73\x20\x61\x73\x20\x72"
20535 "\x65\x66\x65\x72\x65\x6e\x63\x65"
20536 "\x20\x6d\x61\x74\x65\x72\x69\x61"
20537 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
20538 "\x63\x69\x74\x65\x20\x74\x68\x65"
20539 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
20540 "\x74\x68\x61\x6e\x20\x61\x73\x20"
20541 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
20542 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
20543 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
20544 "\x9d",
20545 .ilen = 265,
20546 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
20547 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
20548 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
20549 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
20550 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
20551 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
20552 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
20553 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
20554 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
20555 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
20556 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
20557 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
20558 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
20559 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
20560 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
20561 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
20562 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
20563 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
20564 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
20565 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
20566 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
20567 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
20568 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
20569 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
20570 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
20571 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
20572 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
20573 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
20574 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
20575 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
20576 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
20577 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
20578 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
20579 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
20580 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
20581 "\x38",
20582 .rlen = 281,
20583 },
20584};
20585
Eric Biggersb13b1e02017-02-24 15:46:59 -080020586static const struct aead_testvec rfc7539_dec_tv_template[] = {
Martin Williaf2b76b2015-06-01 13:44:01 +020020587 {
20588 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
20589 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
20590 "\x90\x91\x92\x93\x94\x95\x96\x97"
20591 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
20592 .klen = 32,
20593 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
20594 "\x44\x45\x46\x47",
20595 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
20596 "\xc4\xc5\xc6\xc7",
20597 .alen = 12,
20598 .input = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
20599 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
20600 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
20601 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
20602 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
20603 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
20604 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
20605 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
20606 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
20607 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
20608 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
20609 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
20610 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
20611 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
20612 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
20613 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
20614 "\x06\x91",
20615 .ilen = 130,
20616 .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
20617 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
20618 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
20619 "\x74\x68\x65\x20\x63\x6c\x61\x73"
20620 "\x73\x20\x6f\x66\x20\x27\x39\x39"
20621 "\x3a\x20\x49\x66\x20\x49\x20\x63"
20622 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
20623 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
20624 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
20625 "\x74\x69\x70\x20\x66\x6f\x72\x20"
20626 "\x74\x68\x65\x20\x66\x75\x74\x75"
20627 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
20628 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
20629 "\x75\x6c\x64\x20\x62\x65\x20\x69"
20630 "\x74\x2e",
20631 .rlen = 114,
20632 }, {
20633 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
20634 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
20635 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
20636 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
20637 .klen = 32,
20638 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
20639 "\x05\x06\x07\x08",
20640 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
20641 "\x00\x00\x4e\x91",
20642 .alen = 12,
20643 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
20644 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
20645 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
20646 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
20647 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
20648 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
20649 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
20650 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
20651 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
20652 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
20653 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
20654 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
20655 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
20656 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
20657 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
20658 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
20659 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
20660 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
20661 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
20662 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
20663 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
20664 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
20665 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
20666 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
20667 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
20668 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
20669 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
20670 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
20671 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
20672 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
20673 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
20674 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
20675 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
20676 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
20677 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
20678 "\x38",
20679 .ilen = 281,
20680 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
20681 "\x2d\x44\x72\x61\x66\x74\x73\x20"
20682 "\x61\x72\x65\x20\x64\x72\x61\x66"
20683 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
20684 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
20685 "\x64\x20\x66\x6f\x72\x20\x61\x20"
20686 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
20687 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
20688 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
20689 "\x64\x20\x6d\x61\x79\x20\x62\x65"
20690 "\x20\x75\x70\x64\x61\x74\x65\x64"
20691 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
20692 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
20693 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
20694 "\x20\x62\x79\x20\x6f\x74\x68\x65"
20695 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
20696 "\x6e\x74\x73\x20\x61\x74\x20\x61"
20697 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
20698 "\x20\x49\x74\x20\x69\x73\x20\x69"
20699 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
20700 "\x69\x61\x74\x65\x20\x74\x6f\x20"
20701 "\x75\x73\x65\x20\x49\x6e\x74\x65"
20702 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
20703 "\x66\x74\x73\x20\x61\x73\x20\x72"
20704 "\x65\x66\x65\x72\x65\x6e\x63\x65"
20705 "\x20\x6d\x61\x74\x65\x72\x69\x61"
20706 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
20707 "\x63\x69\x74\x65\x20\x74\x68\x65"
20708 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
20709 "\x74\x68\x61\x6e\x20\x61\x73\x20"
20710 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
20711 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
20712 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
20713 "\x9d",
20714 .rlen = 265,
20715 },
20716};
20717
20718/*
Martin Willi59007582015-06-01 13:44:03 +020020719 * draft-irtf-cfrg-chacha20-poly1305
20720 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080020721static const struct aead_testvec rfc7539esp_enc_tv_template[] = {
Martin Willi59007582015-06-01 13:44:03 +020020722 {
20723 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
20724 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
20725 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
20726 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
20727 "\x00\x00\x00\x00",
20728 .klen = 36,
20729 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
20730 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
Herbert Xu74790922015-07-16 12:35:08 +080020731 "\x00\x00\x4e\x91\x01\x02\x03\x04"
20732 "\x05\x06\x07\x08",
20733 .alen = 20,
Martin Willi59007582015-06-01 13:44:03 +020020734 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
20735 "\x2d\x44\x72\x61\x66\x74\x73\x20"
20736 "\x61\x72\x65\x20\x64\x72\x61\x66"
20737 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
20738 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
20739 "\x64\x20\x66\x6f\x72\x20\x61\x20"
20740 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
20741 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
20742 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
20743 "\x64\x20\x6d\x61\x79\x20\x62\x65"
20744 "\x20\x75\x70\x64\x61\x74\x65\x64"
20745 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
20746 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
20747 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
20748 "\x20\x62\x79\x20\x6f\x74\x68\x65"
20749 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
20750 "\x6e\x74\x73\x20\x61\x74\x20\x61"
20751 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
20752 "\x20\x49\x74\x20\x69\x73\x20\x69"
20753 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
20754 "\x69\x61\x74\x65\x20\x74\x6f\x20"
20755 "\x75\x73\x65\x20\x49\x6e\x74\x65"
20756 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
20757 "\x66\x74\x73\x20\x61\x73\x20\x72"
20758 "\x65\x66\x65\x72\x65\x6e\x63\x65"
20759 "\x20\x6d\x61\x74\x65\x72\x69\x61"
20760 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
20761 "\x63\x69\x74\x65\x20\x74\x68\x65"
20762 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
20763 "\x74\x68\x61\x6e\x20\x61\x73\x20"
20764 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
20765 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
20766 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
20767 "\x9d",
20768 .ilen = 265,
20769 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
20770 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
20771 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
20772 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
20773 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
20774 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
20775 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
20776 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
20777 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
20778 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
20779 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
20780 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
20781 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
20782 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
20783 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
20784 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
20785 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
20786 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
20787 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
20788 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
20789 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
20790 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
20791 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
20792 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
20793 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
20794 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
20795 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
20796 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
20797 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
20798 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
20799 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
20800 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
20801 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
20802 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
20803 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
20804 "\x38",
20805 .rlen = 281,
20806 },
20807};
20808
Eric Biggersb13b1e02017-02-24 15:46:59 -080020809static const struct aead_testvec rfc7539esp_dec_tv_template[] = {
Martin Willi59007582015-06-01 13:44:03 +020020810 {
20811 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
20812 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
20813 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
20814 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
20815 "\x00\x00\x00\x00",
20816 .klen = 36,
20817 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
20818 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
Herbert Xu74790922015-07-16 12:35:08 +080020819 "\x00\x00\x4e\x91\x01\x02\x03\x04"
20820 "\x05\x06\x07\x08",
20821 .alen = 20,
Martin Willi59007582015-06-01 13:44:03 +020020822 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
20823 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
20824 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
20825 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
20826 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
20827 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
20828 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
20829 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
20830 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
20831 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
20832 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
20833 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
20834 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
20835 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
20836 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
20837 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
20838 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
20839 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
20840 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
20841 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
20842 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
20843 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
20844 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
20845 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
20846 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
20847 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
20848 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
20849 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
20850 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
20851 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
20852 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
20853 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
20854 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
20855 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
20856 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
20857 "\x38",
20858 .ilen = 281,
20859 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
20860 "\x2d\x44\x72\x61\x66\x74\x73\x20"
20861 "\x61\x72\x65\x20\x64\x72\x61\x66"
20862 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
20863 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
20864 "\x64\x20\x66\x6f\x72\x20\x61\x20"
20865 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
20866 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
20867 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
20868 "\x64\x20\x6d\x61\x79\x20\x62\x65"
20869 "\x20\x75\x70\x64\x61\x74\x65\x64"
20870 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
20871 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
20872 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
20873 "\x20\x62\x79\x20\x6f\x74\x68\x65"
20874 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
20875 "\x6e\x74\x73\x20\x61\x74\x20\x61"
20876 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
20877 "\x20\x49\x74\x20\x69\x73\x20\x69"
20878 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
20879 "\x69\x61\x74\x65\x20\x74\x6f\x20"
20880 "\x75\x73\x65\x20\x49\x6e\x74\x65"
20881 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
20882 "\x66\x74\x73\x20\x61\x73\x20\x72"
20883 "\x65\x66\x65\x72\x65\x6e\x63\x65"
20884 "\x20\x6d\x61\x74\x65\x72\x69\x61"
20885 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
20886 "\x63\x69\x74\x65\x20\x74\x68\x65"
20887 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
20888 "\x74\x68\x61\x6e\x20\x61\x73\x20"
20889 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
20890 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
20891 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
20892 "\x9d",
20893 .rlen = 265,
20894 },
20895};
20896
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020020897static const struct aead_testvec aegis128_enc_tv_template[] = {
20898 {
20899 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
20900 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
20901 .klen = 16,
20902 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
20903 "\x40\x6d\x59\x48\xfc\x92\x61\x03",
20904 .assoc = "",
20905 .alen = 0,
20906 .input = "",
20907 .ilen = 0,
20908 .result = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
20909 "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
20910 .rlen = 16,
20911 }, {
20912 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
20913 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
20914 .klen = 16,
20915 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
20916 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
20917 .assoc = "",
20918 .alen = 0,
20919 .input = "\x79",
20920 .ilen = 1,
20921 .result = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
20922 "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
20923 "\xcc",
20924 .rlen = 17,
20925 }, {
20926 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
20927 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
20928 .klen = 16,
20929 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
20930 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
20931 .assoc = "",
20932 .alen = 0,
20933 .input = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
20934 "\x82\x8e\x16\xb4\xed\x6d\x47",
20935 .ilen = 15,
20936 .result = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
20937 "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
20938 "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
20939 "\x7a\x21\x16\xb3\xe6\x67\x66",
20940 .rlen = 31,
20941 }, {
20942 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
20943 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
20944 .klen = 16,
20945 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
20946 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
20947 .assoc = "",
20948 .alen = 0,
20949 .input = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
20950 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
20951 .ilen = 16,
20952 .result = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
20953 "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
20954 "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
20955 "\x51\x10\x16\x27\x70\x9b\x64\x29",
20956 .rlen = 32,
20957 }, {
20958 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
20959 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
20960 .klen = 16,
20961 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
20962 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
20963 .assoc = "",
20964 .alen = 0,
20965 .input = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
20966 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
20967 "\xd3",
20968 .ilen = 17,
20969 .result = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
20970 "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
20971 "\x46\x80\xb1\x0e\x18\x30\x40\x97"
20972 "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
20973 "\x3b",
20974 .rlen = 33,
20975 }, {
20976 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
20977 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
20978 .klen = 16,
20979 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
20980 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
20981 .assoc = "",
20982 .alen = 0,
20983 .input = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
20984 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
20985 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
20986 "\x88\x11\x39\x12\x1c\x3a\xbb",
20987 .ilen = 31,
20988 .result = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
20989 "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
20990 "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
20991 "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
20992 "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
20993 "\x75\xc4\x53\x01\x89\x45\x59",
20994 .rlen = 47,
20995 }, {
20996 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
20997 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
20998 .klen = 16,
20999 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21000 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
21001 .assoc = "",
21002 .alen = 0,
21003 .input = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21004 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21005 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21006 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21007 .ilen = 32,
21008 .result = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
21009 "\x95\xf4\x58\x38\x14\x83\x27\x01"
21010 "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
21011 "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
21012 "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
21013 "\x51\x52\x77\xf2\x5e\x85\x80\x41",
21014 .rlen = 48,
21015 }, {
21016 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21017 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
21018 .klen = 16,
21019 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21020 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
21021 .assoc = "\xd5",
21022 .alen = 1,
21023 .input = "",
21024 .ilen = 0,
21025 .result = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
21026 "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
21027 .rlen = 16,
21028 }, {
21029 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21030 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
21031 .klen = 16,
21032 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21033 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
21034 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21035 "\x68\x75\x16\xf8\xcb\x7e\xa7",
21036 .alen = 15,
21037 .input = "",
21038 .ilen = 0,
21039 .result = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
21040 "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
21041 .rlen = 16,
21042 }, {
21043 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21044 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
21045 .klen = 16,
21046 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21047 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
21048 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21049 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21050 .alen = 16,
21051 .input = "",
21052 .ilen = 0,
21053 .result = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
21054 "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
21055 .rlen = 16,
21056 }, {
21057 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21058 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
21059 .klen = 16,
21060 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21061 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
21062 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21063 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21064 "\x07",
21065 .alen = 17,
21066 .input = "",
21067 .ilen = 0,
21068 .result = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
21069 "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
21070 .rlen = 16,
21071 }, {
21072 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21073 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
21074 .klen = 16,
21075 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21076 "\xca\xcd\xff\x88\xba\x22\xbe\x47",
21077 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21078 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21079 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21080 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21081 .alen = 31,
21082 .input = "",
21083 .ilen = 0,
21084 .result = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
21085 "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
21086 .rlen = 16,
21087 }, {
21088 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21089 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
21090 .klen = 16,
21091 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21092 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
21093 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21094 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21095 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21096 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21097 .alen = 32,
21098 .input = "",
21099 .ilen = 0,
21100 .result = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
21101 "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
21102 .rlen = 16,
21103 }, {
21104 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21105 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
21106 .klen = 16,
21107 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21108 "\xcc\x81\x63\xab\xae\x6b\x43\x54",
21109 .assoc = "\x40",
21110 .alen = 1,
21111 .input = "\x4f",
21112 .ilen = 1,
21113 .result = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
21114 "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
21115 "\x39",
21116 .rlen = 17,
21117 }, {
21118 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
21119 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
21120 .klen = 16,
21121 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
21122 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
21123 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
21124 "\x6d\x92\x42\x61\xa7\x58\x37",
21125 .alen = 15,
21126 .input = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
21127 "\x8d\xc8\x6e\x85\xa5\x21\x67",
21128 .ilen = 15,
21129 .result = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
21130 "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
21131 "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
21132 "\x98\xbd\x71\x7a\xef\xa4\xfa",
21133 .rlen = 31,
21134 }, {
21135 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
21136 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
21137 .klen = 16,
21138 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
21139 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
21140 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
21141 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
21142 .alen = 16,
21143 .input = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
21144 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
21145 .ilen = 16,
21146 .result = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
21147 "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
21148 "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
21149 "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
21150 .rlen = 32,
21151 }, {
21152 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21153 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
21154 .klen = 16,
21155 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21156 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
21157 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21158 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21159 "\x05",
21160 .alen = 17,
21161 .input = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21162 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21163 "\xd0",
21164 .ilen = 17,
21165 .result = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
21166 "\x38\x2d\x69\x90\x1c\x71\x38\x98"
21167 "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
21168 "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
21169 "\x93",
21170 .rlen = 33,
21171 }, {
21172 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21173 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
21174 .klen = 16,
21175 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21176 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
21177 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21178 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21179 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21180 "\x68\x28\x73\x40\x9f\x96\x4a",
21181 .alen = 31,
21182 .input = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21183 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21184 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21185 "\x98\x34\xab\x37\x56\xae\x32",
21186 .ilen = 31,
21187 .result = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
21188 "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
21189 "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
21190 "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
21191 "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
21192 "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
21193 .rlen = 47,
21194 }, {
21195 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21196 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
21197 .klen = 16,
21198 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21199 "\x50\xc4\xde\x82\x90\x21\x11\x73",
21200 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21201 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21202 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21203 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21204 .alen = 32,
21205 .input = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21206 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21207 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21208 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21209 .ilen = 32,
21210 .result = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
21211 "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
21212 "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
21213 "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
21214 "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
21215 "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
21216 .rlen = 48,
21217 }, {
21218 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21219 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
21220 .klen = 16,
21221 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21222 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
21223 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21224 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21225 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21226 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21227 "\x9d",
21228 .alen = 33,
21229 .input = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21230 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21231 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21232 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21233 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21234 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21235 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21236 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21237 "\xbd",
21238 .ilen = 65,
21239 .result = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
21240 "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
21241 "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
21242 "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
21243 "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
21244 "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
21245 "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
21246 "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
21247 "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
21248 "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
21249 "\x3f",
21250 .rlen = 81,
21251 }, {
21252 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21253 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
21254 .klen = 16,
21255 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21256 "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
21257 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21258 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21259 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21260 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21261 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21262 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21263 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21264 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21265 "\x54",
21266 .alen = 65,
21267 .input = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
21268 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
21269 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
21270 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
21271 "\x2f",
21272 .ilen = 33,
21273 .result = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
21274 "\x77\x09\xac\x74\xef\xd2\x56\xae"
21275 "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
21276 "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
21277 "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
21278 "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
21279 "\x39",
21280 .rlen = 49,
21281 }, {
21282 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
21283 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
21284 .klen = 16,
21285 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
21286 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
21287 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
21288 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
21289 .alen = 16,
21290 .input = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
21291 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
21292 .ilen = 16,
21293 .result = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
21294 "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
21295 "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
21296 "\xde\x20\x59\x77\xc1\x74\x90",
21297 .rlen = 31,
21298 }, {
21299 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
21300 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
21301 .klen = 16,
21302 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
21303 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
21304 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
21305 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
21306 .alen = 16,
21307 .input = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
21308 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
21309 .ilen = 16,
21310 .result = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
21311 "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
21312 "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
21313 "\xe9\xe0\x17\x45\x70\x12",
21314 .rlen = 30,
21315 }, {
21316 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
21317 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
21318 .klen = 16,
21319 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
21320 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
21321 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
21322 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
21323 .alen = 16,
21324 .input = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21325 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21326 .ilen = 16,
21327 .result = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
21328 "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
21329 "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
21330 .rlen = 24,
21331 },
21332};
21333
21334/*
21335 * AEGIS-128 test vectors - generated via reference implementation from
21336 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
21337 *
21338 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
21339 * (see crypto_aead/aegis128/)
21340 */
21341static const struct aead_testvec aegis128_dec_tv_template[] = {
21342 {
21343 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21344 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
21345 .klen = 16,
21346 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21347 "\x40\x6d\x59\x48\xfc\x92\x61\x03",
21348 .assoc = "",
21349 .alen = 0,
21350 .input = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
21351 "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
21352 .ilen = 16,
21353 .result = "",
21354 .rlen = 0,
21355 }, {
21356 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21357 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
21358 .klen = 16,
21359 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21360 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
21361 .assoc = "",
21362 .alen = 0,
21363 .input = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
21364 "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
21365 "\xcc",
21366 .ilen = 17,
21367 .result = "\x79",
21368 .rlen = 1,
21369 }, {
21370 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21371 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
21372 .klen = 16,
21373 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21374 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
21375 .assoc = "",
21376 .alen = 0,
21377 .input = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
21378 "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
21379 "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
21380 "\x7a\x21\x16\xb3\xe6\x67\x66",
21381 .ilen = 31,
21382 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21383 "\x82\x8e\x16\xb4\xed\x6d\x47",
21384 .rlen = 15,
21385 }, {
21386 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21387 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
21388 .klen = 16,
21389 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21390 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
21391 .assoc = "",
21392 .alen = 0,
21393 .input = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
21394 "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
21395 "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
21396 "\x51\x10\x16\x27\x70\x9b\x64\x29",
21397 .ilen = 32,
21398 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21399 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21400 .rlen = 16,
21401 }, {
21402 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21403 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
21404 .klen = 16,
21405 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21406 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
21407 .assoc = "",
21408 .alen = 0,
21409 .input = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
21410 "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
21411 "\x46\x80\xb1\x0e\x18\x30\x40\x97"
21412 "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
21413 "\x3b",
21414 .ilen = 33,
21415 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21416 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21417 "\xd3",
21418 .rlen = 17,
21419 }, {
21420 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21421 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
21422 .klen = 16,
21423 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21424 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
21425 .assoc = "",
21426 .alen = 0,
21427 .input = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
21428 "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
21429 "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
21430 "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
21431 "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
21432 "\x75\xc4\x53\x01\x89\x45\x59",
21433 .ilen = 47,
21434 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21435 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21436 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21437 "\x88\x11\x39\x12\x1c\x3a\xbb",
21438 .rlen = 31,
21439 }, {
21440 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21441 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
21442 .klen = 16,
21443 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21444 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
21445 .assoc = "",
21446 .alen = 0,
21447 .input = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
21448 "\x95\xf4\x58\x38\x14\x83\x27\x01"
21449 "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
21450 "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
21451 "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
21452 "\x51\x52\x77\xf2\x5e\x85\x80\x41",
21453 .ilen = 48,
21454 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21455 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21456 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21457 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21458 .rlen = 32,
21459 }, {
21460 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21461 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
21462 .klen = 16,
21463 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21464 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
21465 .assoc = "\xd5",
21466 .alen = 1,
21467 .input = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
21468 "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
21469 .ilen = 16,
21470 .result = "",
21471 .rlen = 0,
21472 }, {
21473 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21474 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
21475 .klen = 16,
21476 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21477 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
21478 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21479 "\x68\x75\x16\xf8\xcb\x7e\xa7",
21480 .alen = 15,
21481 .input = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
21482 "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
21483 .ilen = 16,
21484 .result = "",
21485 .rlen = 0,
21486 }, {
21487 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21488 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
21489 .klen = 16,
21490 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21491 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
21492 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21493 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21494 .alen = 16,
21495 .input = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
21496 "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
21497 .ilen = 16,
21498 .result = "",
21499 .rlen = 0,
21500 }, {
21501 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21502 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
21503 .klen = 16,
21504 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21505 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
21506 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21507 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21508 "\x07",
21509 .alen = 17,
21510 .input = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
21511 "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
21512 .ilen = 16,
21513 .result = "",
21514 .rlen = 0,
21515 }, {
21516 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21517 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
21518 .klen = 16,
21519 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21520 "\xca\xcd\xff\x88\xba\x22\xbe\x47",
21521 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21522 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21523 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21524 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21525 .alen = 31,
21526 .input = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
21527 "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
21528 .ilen = 16,
21529 .result = "",
21530 .rlen = 0,
21531 }, {
21532 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21533 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
21534 .klen = 16,
21535 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21536 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
21537 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21538 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21539 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21540 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21541 .alen = 32,
21542 .input = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
21543 "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
21544 .ilen = 16,
21545 .result = "",
21546 .rlen = 0,
21547 }, {
21548 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21549 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
21550 .klen = 16,
21551 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21552 "\xcc\x81\x63\xab\xae\x6b\x43\x54",
21553 .assoc = "\x40",
21554 .alen = 1,
21555 .input = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
21556 "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
21557 "\x39",
21558 .ilen = 17,
21559 .result = "\x4f",
21560 .rlen = 1,
21561 }, {
21562 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
21563 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
21564 .klen = 16,
21565 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
21566 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
21567 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
21568 "\x6d\x92\x42\x61\xa7\x58\x37",
21569 .alen = 15,
21570 .input = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
21571 "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
21572 "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
21573 "\x98\xbd\x71\x7a\xef\xa4\xfa",
21574 .ilen = 31,
21575 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
21576 "\x8d\xc8\x6e\x85\xa5\x21\x67",
21577 .rlen = 15,
21578 }, {
21579 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
21580 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
21581 .klen = 16,
21582 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
21583 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
21584 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
21585 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
21586 .alen = 16,
21587 .input = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
21588 "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
21589 "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
21590 "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
21591 .ilen = 32,
21592 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
21593 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
21594 .rlen = 16,
21595 }, {
21596 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21597 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
21598 .klen = 16,
21599 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21600 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
21601 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21602 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21603 "\x05",
21604 .alen = 17,
21605 .input = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
21606 "\x38\x2d\x69\x90\x1c\x71\x38\x98"
21607 "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
21608 "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
21609 "\x93",
21610 .ilen = 33,
21611 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21612 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21613 "\xd0",
21614 .rlen = 17,
21615 }, {
21616 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21617 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
21618 .klen = 16,
21619 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21620 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
21621 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21622 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21623 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21624 "\x68\x28\x73\x40\x9f\x96\x4a",
21625 .alen = 31,
21626 .input = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
21627 "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
21628 "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
21629 "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
21630 "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
21631 "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
21632 .ilen = 47,
21633 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21634 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21635 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21636 "\x98\x34\xab\x37\x56\xae\x32",
21637 .rlen = 31,
21638 }, {
21639 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21640 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
21641 .klen = 16,
21642 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21643 "\x50\xc4\xde\x82\x90\x21\x11\x73",
21644 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21645 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21646 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21647 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21648 .alen = 32,
21649 .input = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
21650 "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
21651 "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
21652 "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
21653 "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
21654 "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
21655 .ilen = 48,
21656 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21657 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21658 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21659 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21660 .rlen = 32,
21661 }, {
21662 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21663 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
21664 .klen = 16,
21665 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21666 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
21667 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21668 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21669 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21670 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21671 "\x9d",
21672 .alen = 33,
21673 .input = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
21674 "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
21675 "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
21676 "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
21677 "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
21678 "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
21679 "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
21680 "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
21681 "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
21682 "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
21683 "\x3f",
21684 .ilen = 81,
21685 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21686 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21687 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21688 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21689 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21690 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21691 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21692 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21693 "\xbd",
21694 .rlen = 65,
21695 }, {
21696 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21697 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
21698 .klen = 16,
21699 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21700 "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
21701 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21702 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21703 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21704 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21705 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21706 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21707 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21708 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21709 "\x54",
21710 .alen = 65,
21711 .input = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
21712 "\x77\x09\xac\x74\xef\xd2\x56\xae"
21713 "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
21714 "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
21715 "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
21716 "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
21717 "\x39",
21718 .ilen = 49,
21719 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
21720 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
21721 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
21722 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
21723 "\x2f",
21724 .rlen = 33,
21725 }, {
21726 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
21727 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
21728 .klen = 16,
21729 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
21730 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
21731 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
21732 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
21733 .alen = 16,
21734 .input = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
21735 "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
21736 "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
21737 "\xde\x20\x59\x77\xc1\x74\x90",
21738 .ilen = 31,
21739 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
21740 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
21741 .rlen = 16,
21742 }, {
21743 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
21744 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
21745 .klen = 16,
21746 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
21747 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
21748 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
21749 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
21750 .alen = 16,
21751 .input = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
21752 "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
21753 "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
21754 "\xe9\xe0\x17\x45\x70\x12",
21755 .ilen = 30,
21756 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
21757 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
21758 .rlen = 16,
21759 }, {
21760 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
21761 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
21762 .klen = 16,
21763 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
21764 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
21765 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
21766 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
21767 .alen = 16,
21768 .input = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
21769 "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
21770 "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
21771 .ilen = 24,
21772 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21773 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21774 .rlen = 16,
21775 },
21776};
21777
21778/*
21779 * AEGIS-128L test vectors - generated via reference implementation from
21780 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
21781 *
21782 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
21783 * (see crypto_aead/aegis128l/)
21784 */
21785static const struct aead_testvec aegis128l_enc_tv_template[] = {
21786 {
21787 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21788 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
21789 .klen = 16,
21790 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21791 "\x40\x6d\x59\x48\xfc\x92\x61\x03",
21792 .assoc = "",
21793 .alen = 0,
21794 .input = "",
21795 .ilen = 0,
21796 .result = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
21797 "\x20\x72\x78\xdd\x93\xc8\x57\xef",
21798 .rlen = 16,
21799 }, {
21800 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21801 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
21802 .klen = 16,
21803 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21804 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
21805 .assoc = "",
21806 .alen = 0,
21807 .input = "\x79",
21808 .ilen = 1,
21809 .result = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
21810 "\x40\xb3\x71\xc5\x22\x58\x31\x77"
21811 "\x6d",
21812 .rlen = 17,
21813 }, {
21814 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21815 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
21816 .klen = 16,
21817 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21818 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
21819 .assoc = "",
21820 .alen = 0,
21821 .input = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21822 "\x82\x8e\x16\xb4\xed\x6d\x47",
21823 .ilen = 15,
21824 .result = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
21825 "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
21826 "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
21827 "\xe1\xa8\x04\x7f\xe1\x71\xbe",
21828 .rlen = 31,
21829 }, {
21830 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21831 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
21832 .klen = 16,
21833 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21834 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
21835 .assoc = "",
21836 .alen = 0,
21837 .input = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21838 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21839 .ilen = 16,
21840 .result = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
21841 "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
21842 "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
21843 "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
21844 .rlen = 32,
21845 }, {
21846 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21847 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
21848 .klen = 16,
21849 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21850 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
21851 .assoc = "",
21852 .alen = 0,
21853 .input = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21854 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21855 "\xd3",
21856 .ilen = 17,
21857 .result = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
21858 "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
21859 "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
21860 "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
21861 "\xf8",
21862 .rlen = 33,
21863 }, {
21864 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21865 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
21866 .klen = 16,
21867 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21868 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
21869 .assoc = "",
21870 .alen = 0,
21871 .input = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21872 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21873 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21874 "\x88\x11\x39\x12\x1c\x3a\xbb",
21875 .ilen = 31,
21876 .result = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
21877 "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
21878 "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
21879 "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
21880 "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
21881 "\x59\x28\x88\x3c\x79\x10\x6b",
21882 .rlen = 47,
21883 }, {
21884 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21885 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
21886 .klen = 16,
21887 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21888 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
21889 .assoc = "",
21890 .alen = 0,
21891 .input = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21892 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21893 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21894 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21895 .ilen = 32,
21896 .result = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
21897 "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
21898 "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
21899 "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
21900 "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
21901 "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
21902 .rlen = 48,
21903 }, {
21904 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21905 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
21906 .klen = 16,
21907 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21908 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
21909 .assoc = "\xd5",
21910 .alen = 1,
21911 .input = "",
21912 .ilen = 0,
21913 .result = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
21914 "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
21915 .rlen = 16,
21916 }, {
21917 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21918 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
21919 .klen = 16,
21920 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21921 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
21922 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21923 "\x68\x75\x16\xf8\xcb\x7e\xa7",
21924 .alen = 15,
21925 .input = "",
21926 .ilen = 0,
21927 .result = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
21928 "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
21929 .rlen = 16,
21930 }, {
21931 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21932 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
21933 .klen = 16,
21934 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21935 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
21936 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21937 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21938 .alen = 16,
21939 .input = "",
21940 .ilen = 0,
21941 .result = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
21942 "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
21943 .rlen = 16,
21944 }, {
21945 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21946 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
21947 .klen = 16,
21948 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21949 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
21950 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21951 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21952 "\x07",
21953 .alen = 17,
21954 .input = "",
21955 .ilen = 0,
21956 .result = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
21957 "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
21958 .rlen = 16,
21959 }, {
21960 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21961 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
21962 .klen = 16,
21963 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21964 "\xca\xcd\xff\x88\xba\x22\xbe\x47",
21965 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21966 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21967 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21968 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21969 .alen = 31,
21970 .input = "",
21971 .ilen = 0,
21972 .result = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
21973 "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
21974 .rlen = 16,
21975 }, {
21976 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21977 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
21978 .klen = 16,
21979 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21980 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
21981 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21982 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21983 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21984 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21985 .alen = 32,
21986 .input = "",
21987 .ilen = 0,
21988 .result = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
21989 "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
21990 .rlen = 16,
21991 }, {
21992 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21993 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
21994 .klen = 16,
21995 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21996 "\xcc\x81\x63\xab\xae\x6b\x43\x54",
21997 .assoc = "\x40",
21998 .alen = 1,
21999 .input = "\x4f",
22000 .ilen = 1,
22001 .result = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
22002 "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
22003 "\xf4",
22004 .rlen = 17,
22005 }, {
22006 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22007 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
22008 .klen = 16,
22009 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22010 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
22011 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22012 "\x6d\x92\x42\x61\xa7\x58\x37",
22013 .alen = 15,
22014 .input = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22015 "\x8d\xc8\x6e\x85\xa5\x21\x67",
22016 .ilen = 15,
22017 .result = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
22018 "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
22019 "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
22020 "\x20\x63\x0b\x49\x7e\x97\x08",
22021 .rlen = 31,
22022 }, {
22023 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22024 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
22025 .klen = 16,
22026 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22027 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
22028 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22029 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22030 .alen = 16,
22031 .input = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22032 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22033 .ilen = 16,
22034 .result = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
22035 "\x78\x08\x12\xec\x09\xaf\x53\x14"
22036 "\x90\x3e\x3d\x76\xad\x71\x21\x08"
22037 "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
22038 .rlen = 32,
22039 }, {
22040 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22041 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
22042 .klen = 16,
22043 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22044 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
22045 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22046 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22047 "\x05",
22048 .alen = 17,
22049 .input = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22050 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
22051 "\xd0",
22052 .ilen = 17,
22053 .result = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
22054 "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
22055 "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
22056 "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
22057 "\x7d",
22058 .rlen = 33,
22059 }, {
22060 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22061 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
22062 .klen = 16,
22063 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22064 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
22065 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22066 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22067 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22068 "\x68\x28\x73\x40\x9f\x96\x4a",
22069 .alen = 31,
22070 .input = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22071 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
22072 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
22073 "\x98\x34\xab\x37\x56\xae\x32",
22074 .ilen = 31,
22075 .result = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
22076 "\x0d\x19\x15\x61\x65\x3b\x06\x26"
22077 "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
22078 "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
22079 "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
22080 "\xed\x90\xce\xb9\xcd\xcc\xa1",
22081 .rlen = 47,
22082 }, {
22083 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22084 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
22085 .klen = 16,
22086 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22087 "\x50\xc4\xde\x82\x90\x21\x11\x73",
22088 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22089 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22090 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22091 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22092 .alen = 32,
22093 .input = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
22094 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
22095 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
22096 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
22097 .ilen = 32,
22098 .result = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
22099 "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
22100 "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
22101 "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
22102 "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
22103 "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
22104 .rlen = 48,
22105 }, {
22106 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22107 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
22108 .klen = 16,
22109 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22110 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
22111 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22112 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22113 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22114 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22115 "\x9d",
22116 .alen = 33,
22117 .input = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22118 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
22119 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
22120 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
22121 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
22122 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
22123 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
22124 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
22125 "\xbd",
22126 .ilen = 65,
22127 .result = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
22128 "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
22129 "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
22130 "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
22131 "\xbc\x46\x76\x48\x82\xc7\x57\x96"
22132 "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
22133 "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
22134 "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
22135 "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
22136 "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
22137 "\x01",
22138 .rlen = 81,
22139 }, {
22140 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22141 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
22142 .klen = 16,
22143 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22144 "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
22145 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22146 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22147 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22148 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22149 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
22150 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
22151 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
22152 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
22153 "\x54",
22154 .alen = 65,
22155 .input = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22156 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
22157 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
22158 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
22159 "\x2f",
22160 .ilen = 33,
22161 .result = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
22162 "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
22163 "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
22164 "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
22165 "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
22166 "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
22167 "\x9f",
22168 .rlen = 49,
22169 }, {
22170 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22171 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
22172 .klen = 16,
22173 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22174 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
22175 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22176 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22177 .alen = 16,
22178 .input = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22179 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22180 .ilen = 16,
22181 .result = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
22182 "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
22183 "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
22184 "\x05\xa8\x31\x50\x11\x19\x44",
22185 .rlen = 31,
22186 }, {
22187 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22188 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
22189 .klen = 16,
22190 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22191 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
22192 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22193 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22194 .alen = 16,
22195 .input = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22196 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22197 .ilen = 16,
22198 .result = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
22199 "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
22200 "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
22201 "\x21\x93\x2e\x31\x84\x83",
22202 .rlen = 30,
22203 }, {
22204 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22205 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
22206 .klen = 16,
22207 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22208 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
22209 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22210 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22211 .alen = 16,
22212 .input = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22213 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22214 .ilen = 16,
22215 .result = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
22216 "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
22217 "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
22218 .rlen = 24,
22219 },
22220};
22221
22222static const struct aead_testvec aegis128l_dec_tv_template[] = {
22223 {
22224 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22225 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
22226 .klen = 16,
22227 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
22228 "\x40\x6d\x59\x48\xfc\x92\x61\x03",
22229 .assoc = "",
22230 .alen = 0,
22231 .input = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
22232 "\x20\x72\x78\xdd\x93\xc8\x57\xef",
22233 .ilen = 16,
22234 .result = "",
22235 .rlen = 0,
22236 }, {
22237 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22238 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
22239 .klen = 16,
22240 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
22241 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
22242 .assoc = "",
22243 .alen = 0,
22244 .input = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
22245 "\x40\xb3\x71\xc5\x22\x58\x31\x77"
22246 "\x6d",
22247 .ilen = 17,
22248 .result = "\x79",
22249 .rlen = 1,
22250 }, {
22251 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22252 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
22253 .klen = 16,
22254 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
22255 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
22256 .assoc = "",
22257 .alen = 0,
22258 .input = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
22259 "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
22260 "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
22261 "\xe1\xa8\x04\x7f\xe1\x71\xbe",
22262 .ilen = 31,
22263 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22264 "\x82\x8e\x16\xb4\xed\x6d\x47",
22265 .rlen = 15,
22266 }, {
22267 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22268 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
22269 .klen = 16,
22270 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
22271 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
22272 .assoc = "",
22273 .alen = 0,
22274 .input = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
22275 "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
22276 "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
22277 "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
22278 .ilen = 32,
22279 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22280 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22281 .rlen = 16,
22282 }, {
22283 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22284 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
22285 .klen = 16,
22286 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
22287 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
22288 .assoc = "",
22289 .alen = 0,
22290 .input = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
22291 "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
22292 "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
22293 "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
22294 "\xf8",
22295 .ilen = 33,
22296 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22297 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
22298 "\xd3",
22299 .rlen = 17,
22300 }, {
22301 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22302 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
22303 .klen = 16,
22304 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
22305 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
22306 .assoc = "",
22307 .alen = 0,
22308 .input = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
22309 "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
22310 "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
22311 "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
22312 "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
22313 "\x59\x28\x88\x3c\x79\x10\x6b",
22314 .ilen = 47,
22315 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22316 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
22317 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
22318 "\x88\x11\x39\x12\x1c\x3a\xbb",
22319 .rlen = 31,
22320 }, {
22321 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22322 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
22323 .klen = 16,
22324 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
22325 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
22326 .assoc = "",
22327 .alen = 0,
22328 .input = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
22329 "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
22330 "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
22331 "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
22332 "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
22333 "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
22334 .ilen = 48,
22335 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22336 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
22337 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
22338 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
22339 .rlen = 32,
22340 }, {
22341 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22342 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
22343 .klen = 16,
22344 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
22345 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
22346 .assoc = "\xd5",
22347 .alen = 1,
22348 .input = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
22349 "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
22350 .ilen = 16,
22351 .result = "",
22352 .rlen = 0,
22353 }, {
22354 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22355 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
22356 .klen = 16,
22357 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22358 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
22359 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
22360 "\x68\x75\x16\xf8\xcb\x7e\xa7",
22361 .alen = 15,
22362 .input = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
22363 "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
22364 .ilen = 16,
22365 .result = "",
22366 .rlen = 0,
22367 }, {
22368 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22369 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
22370 .klen = 16,
22371 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22372 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
22373 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
22374 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
22375 .alen = 16,
22376 .input = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
22377 "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
22378 .ilen = 16,
22379 .result = "",
22380 .rlen = 0,
22381 }, {
22382 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22383 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
22384 .klen = 16,
22385 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22386 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
22387 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
22388 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
22389 "\x07",
22390 .alen = 17,
22391 .input = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
22392 "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
22393 .ilen = 16,
22394 .result = "",
22395 .rlen = 0,
22396 }, {
22397 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22398 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
22399 .klen = 16,
22400 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22401 "\xca\xcd\xff\x88\xba\x22\xbe\x47",
22402 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
22403 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
22404 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
22405 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
22406 .alen = 31,
22407 .input = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
22408 "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
22409 .ilen = 16,
22410 .result = "",
22411 .rlen = 0,
22412 }, {
22413 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22414 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
22415 .klen = 16,
22416 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22417 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
22418 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
22419 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
22420 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
22421 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
22422 .alen = 32,
22423 .input = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
22424 "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
22425 .ilen = 16,
22426 .result = "",
22427 .rlen = 0,
22428 }, {
22429 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22430 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
22431 .klen = 16,
22432 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
22433 "\xcc\x81\x63\xab\xae\x6b\x43\x54",
22434 .assoc = "\x40",
22435 .alen = 1,
22436 .input = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
22437 "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
22438 "\xf4",
22439 .ilen = 17,
22440 .result = "\x4f",
22441 .rlen = 1,
22442 }, {
22443 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22444 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
22445 .klen = 16,
22446 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22447 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
22448 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22449 "\x6d\x92\x42\x61\xa7\x58\x37",
22450 .alen = 15,
22451 .input = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
22452 "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
22453 "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
22454 "\x20\x63\x0b\x49\x7e\x97\x08",
22455 .ilen = 31,
22456 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22457 "\x8d\xc8\x6e\x85\xa5\x21\x67",
22458 .rlen = 15,
22459 }, {
22460 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22461 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
22462 .klen = 16,
22463 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22464 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
22465 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22466 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22467 .alen = 16,
22468 .input = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
22469 "\x78\x08\x12\xec\x09\xaf\x53\x14"
22470 "\x90\x3e\x3d\x76\xad\x71\x21\x08"
22471 "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
22472 .ilen = 32,
22473 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22474 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22475 .rlen = 16,
22476 }, {
22477 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22478 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
22479 .klen = 16,
22480 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22481 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
22482 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22483 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22484 "\x05",
22485 .alen = 17,
22486 .input = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
22487 "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
22488 "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
22489 "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
22490 "\x7d",
22491 .ilen = 33,
22492 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22493 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
22494 "\xd0",
22495 .rlen = 17,
22496 }, {
22497 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22498 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
22499 .klen = 16,
22500 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22501 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
22502 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22503 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22504 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22505 "\x68\x28\x73\x40\x9f\x96\x4a",
22506 .alen = 31,
22507 .input = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
22508 "\x0d\x19\x15\x61\x65\x3b\x06\x26"
22509 "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
22510 "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
22511 "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
22512 "\xed\x90\xce\xb9\xcd\xcc\xa1",
22513 .ilen = 47,
22514 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22515 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
22516 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
22517 "\x98\x34\xab\x37\x56\xae\x32",
22518 .rlen = 31,
22519 }, {
22520 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22521 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
22522 .klen = 16,
22523 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22524 "\x50\xc4\xde\x82\x90\x21\x11\x73",
22525 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22526 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22527 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22528 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22529 .alen = 32,
22530 .input = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
22531 "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
22532 "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
22533 "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
22534 "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
22535 "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
22536 .ilen = 48,
22537 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
22538 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
22539 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
22540 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
22541 .rlen = 32,
22542 }, {
22543 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22544 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
22545 .klen = 16,
22546 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22547 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
22548 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22549 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22550 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22551 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22552 "\x9d",
22553 .alen = 33,
22554 .input = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
22555 "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
22556 "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
22557 "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
22558 "\xbc\x46\x76\x48\x82\xc7\x57\x96"
22559 "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
22560 "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
22561 "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
22562 "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
22563 "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
22564 "\x01",
22565 .ilen = 81,
22566 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22567 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
22568 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
22569 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
22570 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
22571 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
22572 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
22573 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
22574 "\xbd",
22575 .rlen = 65,
22576 }, {
22577 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22578 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
22579 .klen = 16,
22580 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22581 "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
22582 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22583 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22584 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22585 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22586 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
22587 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
22588 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
22589 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
22590 "\x54",
22591 .alen = 65,
22592 .input = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
22593 "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
22594 "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
22595 "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
22596 "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
22597 "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
22598 "\x9f",
22599 .ilen = 49,
22600 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22601 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
22602 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
22603 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
22604 "\x2f",
22605 .rlen = 33,
22606 }, {
22607 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22608 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
22609 .klen = 16,
22610 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22611 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
22612 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22613 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22614 .alen = 16,
22615 .input = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
22616 "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
22617 "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
22618 "\x05\xa8\x31\x50\x11\x19\x44",
22619 .ilen = 31,
22620 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22621 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22622 .rlen = 16,
22623 }, {
22624 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22625 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
22626 .klen = 16,
22627 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22628 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
22629 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22630 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22631 .alen = 16,
22632 .input = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
22633 "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
22634 "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
22635 "\x21\x93\x2e\x31\x84\x83",
22636 .ilen = 30,
22637 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22638 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22639 .rlen = 16,
22640 }, {
22641 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22642 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
22643 .klen = 16,
22644 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22645 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
22646 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22647 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22648 .alen = 16,
22649 .input = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
22650 "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
22651 "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
22652 .ilen = 24,
22653 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22654 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22655 .rlen = 16,
22656 },
22657};
22658
22659/*
22660 * AEGIS-256 test vectors - generated via reference implementation from
22661 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
22662 *
22663 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
22664 * (see crypto_aead/aegis256/)
22665 */
22666static const struct aead_testvec aegis256_enc_tv_template[] = {
22667 {
22668 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22669 "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
22670 "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
22671 "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
22672 .klen = 32,
22673 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
22674 "\x40\x6d\x59\x48\xfc\x92\x61\x03"
22675 "\x95\x61\x05\x42\x82\x50\xc0\x0c"
22676 "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
22677 .assoc = "",
22678 .alen = 0,
22679 .input = "",
22680 .ilen = 0,
22681 .result = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
22682 "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
22683 .rlen = 16,
22684 }, {
22685 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22686 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
22687 "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
22688 "\xf1\x38\x16\xce\x90\x76\x87\x8c",
22689 .klen = 32,
22690 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
22691 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
22692 "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
22693 "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
22694 .assoc = "",
22695 .alen = 0,
22696 .input = "\x79",
22697 .ilen = 1,
22698 .result = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
22699 "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
22700 "\x8b",
22701 .rlen = 17,
22702 }, {
22703 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22704 "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
22705 "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
22706 "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
22707 .klen = 32,
22708 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
22709 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
22710 "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
22711 "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
22712 .assoc = "",
22713 .alen = 0,
22714 .input = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22715 "\x82\x8e\x16\xb4\xed\x6d\x47",
22716 .ilen = 15,
22717 .result = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
22718 "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
22719 "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
22720 "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
22721 .rlen = 31,
22722 }, {
22723 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22724 "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
22725 "\x49\xf7\xa5\xad\x50\x88\x66\x53"
22726 "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
22727 .klen = 32,
22728 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
22729 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
22730 "\x14\xa8\x28\xce\x92\x30\x46\x59"
22731 "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
22732 .assoc = "",
22733 .alen = 0,
22734 .input = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22735 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22736 .ilen = 16,
22737 .result = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
22738 "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
22739 "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
22740 "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
22741 .rlen = 32,
22742 }, {
22743 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22744 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
22745 "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
22746 "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
22747 .klen = 32,
22748 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
22749 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
22750 "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
22751 "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
22752 .assoc = "",
22753 .alen = 0,
22754 .input = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22755 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
22756 "\xd3",
22757 .ilen = 17,
22758 .result = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
22759 "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
22760 "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
22761 "\xc0\x00\x39\x13\xb5\x51\x68\x44"
22762 "\xad",
22763 .rlen = 33,
22764 }, {
22765 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22766 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
22767 "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
22768 "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
22769 .klen = 32,
22770 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
22771 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
22772 "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
22773 "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
22774 .assoc = "",
22775 .alen = 0,
22776 .input = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22777 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
22778 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
22779 "\x88\x11\x39\x12\x1c\x3a\xbb",
22780 .ilen = 31,
22781 .result = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
22782 "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
22783 "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
22784 "\x89\x85\x23\x15\xb8\x79\x07\x4c"
22785 "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
22786 "\xc4\x1f\x12\x27\xcf\x77\x90",
22787 .rlen = 47,
22788 }, {
22789 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22790 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
22791 "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
22792 "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
22793 .klen = 32,
22794 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
22795 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
22796 "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
22797 "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
22798 .assoc = "",
22799 .alen = 0,
22800 .input = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22801 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
22802 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
22803 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
22804 .ilen = 32,
22805 .result = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
22806 "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
22807 "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
22808 "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
22809 "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
22810 "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
22811 .rlen = 48,
22812 }, {
22813 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22814 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
22815 "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
22816 "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
22817 .klen = 32,
22818 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
22819 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
22820 "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
22821 "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
22822 .assoc = "\xd5",
22823 .alen = 1,
22824 .input = "",
22825 .ilen = 0,
22826 .result = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
22827 "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
22828 .rlen = 16,
22829 }, {
22830 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22831 "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
22832 "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
22833 "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
22834 .klen = 32,
22835 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22836 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
22837 "\xe8\x73\x62\x64\xab\x50\xd0\xda"
22838 "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
22839 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
22840 "\x68\x75\x16\xf8\xcb\x7e\xa7",
22841 .alen = 15,
22842 .input = "",
22843 .ilen = 0,
22844 .result = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
22845 "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
22846 .rlen = 16,
22847 }, {
22848 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22849 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
22850 "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
22851 "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
22852 .klen = 32,
22853 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22854 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
22855 "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
22856 "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
22857 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
22858 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
22859 .alen = 16,
22860 .input = "",
22861 .ilen = 0,
22862 .result = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
22863 "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
22864 .rlen = 16,
22865 }, {
22866 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22867 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
22868 "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
22869 "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
22870 .klen = 32,
22871 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22872 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
22873 "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
22874 "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
22875 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
22876 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
22877 "\x07",
22878 .alen = 17,
22879 .input = "",
22880 .ilen = 0,
22881 .result = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
22882 "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
22883 .rlen = 16,
22884 }, {
22885 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22886 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
22887 "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
22888 "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
22889 .klen = 32,
22890 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22891 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
22892 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
22893 "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
22894 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
22895 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
22896 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
22897 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
22898 .alen = 31,
22899 .input = "",
22900 .ilen = 0,
22901 .result = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
22902 "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
22903 .rlen = 16,
22904 }, {
22905 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22906 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
22907 "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
22908 "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
22909 .klen = 32,
22910 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22911 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
22912 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
22913 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
22914 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
22915 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
22916 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
22917 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
22918 .alen = 32,
22919 .input = "",
22920 .ilen = 0,
22921 .result = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
22922 "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
22923 .rlen = 16,
22924 }, {
22925 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22926 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
22927 "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
22928 "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
22929 .klen = 32,
22930 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
22931 "\xcc\x81\x63\xab\xae\x6b\x43\x54"
22932 "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
22933 "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
22934 .assoc = "\x40",
22935 .alen = 1,
22936 .input = "\x4f",
22937 .ilen = 1,
22938 .result = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
22939 "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
22940 "\xc7",
22941 .rlen = 17,
22942 }, {
22943 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22944 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
22945 "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
22946 "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
22947 .klen = 32,
22948 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22949 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
22950 "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
22951 "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
22952 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22953 "\x6d\x92\x42\x61\xa7\x58\x37",
22954 .alen = 15,
22955 .input = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22956 "\x8d\xc8\x6e\x85\xa5\x21\x67",
22957 .ilen = 15,
22958 .result = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
22959 "\x7e\x98\x83\x02\x34\x23\xf7\x94"
22960 "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
22961 "\x14\x80\x6a\xa7\x1b\xae\x1d",
22962 .rlen = 31,
22963 }, {
22964 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22965 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
22966 "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
22967 "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
22968 .klen = 32,
22969 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22970 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
22971 "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
22972 "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
22973 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22974 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22975 .alen = 16,
22976 .input = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22977 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22978 .ilen = 16,
22979 .result = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
22980 "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
22981 "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
22982 "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
22983 .rlen = 32,
22984 }, {
22985 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22986 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
22987 "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
22988 "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
22989 .klen = 32,
22990 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22991 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22992 "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
22993 "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
22994 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22995 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22996 "\x05",
22997 .alen = 17,
22998 .input = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22999 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
23000 "\xd0",
23001 .ilen = 17,
23002 .result = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
23003 "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
23004 "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
23005 "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
23006 "\x55",
23007 .rlen = 33,
23008 }, {
23009 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
23010 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
23011 "\x9a\x97\x48\xe9\x98\x48\x82\xba"
23012 "\x07\x11\x04\x54\x32\x67\x7b\xf5",
23013 .klen = 32,
23014 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
23015 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
23016 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
23017 "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
23018 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
23019 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
23020 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
23021 "\x68\x28\x73\x40\x9f\x96\x4a",
23022 .alen = 31,
23023 .input = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
23024 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
23025 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
23026 "\x98\x34\xab\x37\x56\xae\x32",
23027 .ilen = 31,
23028 .result = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
23029 "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
23030 "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
23031 "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
23032 "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
23033 "\xdf\xb8\xea\xd8\xa9\x38\xed",
23034 .rlen = 47,
23035 }, {
23036 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
23037 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
23038 "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
23039 "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
23040 .klen = 32,
23041 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
23042 "\x50\xc4\xde\x82\x90\x21\x11\x73"
23043 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
23044 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
23045 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
23046 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
23047 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
23048 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
23049 .alen = 32,
23050 .input = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
23051 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
23052 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
23053 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
23054 .ilen = 32,
23055 .result = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
23056 "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
23057 "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
23058 "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
23059 "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
23060 "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
23061 .rlen = 48,
23062 }, {
23063 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
23064 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
23065 "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
23066 "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
23067 .klen = 32,
23068 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
23069 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
23070 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
23071 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
23072 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
23073 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
23074 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
23075 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
23076 "\x9d",
23077 .alen = 33,
23078 .input = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
23079 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
23080 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
23081 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
23082 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
23083 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
23084 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
23085 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
23086 "\xbd",
23087 .ilen = 65,
23088 .result = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
23089 "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
23090 "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
23091 "\x1a\x93\x33\x79\x97\x82\x81\xc0"
23092 "\x96\xc2\x00\xab\x39\xae\xa1\x62"
23093 "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
23094 "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
23095 "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
23096 "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
23097 "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
23098 "\x65",
23099 .rlen = 81,
23100 }, {
23101 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
23102 "\x32\x42\x15\x80\x85\xa1\x65\xfe"
23103 "\x19\xde\x6b\x76\xa8\x28\x08\x07"
23104 "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
23105 .klen = 32,
23106 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
23107 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
23108 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
23109 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
23110 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
23111 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
23112 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
23113 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
23114 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
23115 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
23116 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
23117 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
23118 "\x54",
23119 .alen = 65,
23120 .input = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
23121 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
23122 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
23123 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
23124 "\x2f",
23125 .ilen = 33,
23126 .result = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
23127 "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
23128 "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
23129 "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
23130 "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
23131 "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
23132 "\xda",
23133 .rlen = 49,
23134 }, {
23135 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
23136 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
23137 "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
23138 "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
23139 .klen = 32,
23140 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
23141 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
23142 "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
23143 "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
23144 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
23145 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
23146 .alen = 16,
23147 .input = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
23148 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
23149 .ilen = 16,
23150 .result = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
23151 "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
23152 "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
23153 "\xc7\xff\xbd\xbc\x85\x09\x0b",
23154 .rlen = 31,
23155 }, {
23156 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
23157 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
23158 "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
23159 "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
23160 .klen = 32,
23161 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
23162 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
23163 "\x39\x14\x05\xa0\xf3\x10\xec\x41"
23164 "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
23165 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
23166 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
23167 .alen = 16,
23168 .input = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
23169 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
23170 .ilen = 16,
23171 .result = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
23172 "\x6c\xd9\x84\x63\x70\x97\x61\x37"
23173 "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
23174 "\x62\xd5\xc8\xf0\x46\x1a",
23175 .rlen = 30,
23176 }, {
23177 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
23178 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
23179 "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
23180 "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
23181 .klen = 32,
23182 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
23183 "\xd5\x07\x58\x59\x72\xd7\xde\x92"
23184 "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
23185 "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
23186 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
23187 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
23188 .alen = 16,
23189 .input = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
23190 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
23191 .ilen = 16,
23192 .result = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
23193 "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
23194 "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
23195 .rlen = 24,
23196 },
23197};
23198
23199static const struct aead_testvec aegis256_dec_tv_template[] = {
23200 {
23201 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
23202 "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
23203 "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
23204 "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
23205 .klen = 32,
23206 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
23207 "\x40\x6d\x59\x48\xfc\x92\x61\x03"
23208 "\x95\x61\x05\x42\x82\x50\xc0\x0c"
23209 "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
23210 .assoc = "",
23211 .alen = 0,
23212 .input = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
23213 "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
23214 .ilen = 16,
23215 .result = "",
23216 .rlen = 0,
23217 }, {
23218 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
23219 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
23220 "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
23221 "\xf1\x38\x16\xce\x90\x76\x87\x8c",
23222 .klen = 32,
23223 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
23224 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
23225 "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
23226 "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
23227 .assoc = "",
23228 .alen = 0,
23229 .input = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
23230 "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
23231 "\x8b",
23232 .ilen = 17,
23233 .result = "\x79",
23234 .rlen = 1,
23235 }, {
23236 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
23237 "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
23238 "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
23239 "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
23240 .klen = 32,
23241 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
23242 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
23243 "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
23244 "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
23245 .assoc = "",
23246 .alen = 0,
23247 .input = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
23248 "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
23249 "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
23250 "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
23251 .ilen = 31,
23252 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
23253 "\x82\x8e\x16\xb4\xed\x6d\x47",
23254 .rlen = 15,
23255 }, {
23256 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
23257 "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
23258 "\x49\xf7\xa5\xad\x50\x88\x66\x53"
23259 "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
23260 .klen = 32,
23261 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
23262 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
23263 "\x14\xa8\x28\xce\x92\x30\x46\x59"
23264 "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
23265 .assoc = "",
23266 .alen = 0,
23267 .input = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
23268 "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
23269 "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
23270 "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
23271 .ilen = 32,
23272 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
23273 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
23274 .rlen = 16,
23275 }, {
23276 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
23277 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
23278 "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
23279 "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
23280 .klen = 32,
23281 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
23282 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
23283 "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
23284 "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
23285 .assoc = "",
23286 .alen = 0,
23287 .input = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
23288 "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
23289 "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
23290 "\xc0\x00\x39\x13\xb5\x51\x68\x44"
23291 "\xad",
23292 .ilen = 33,
23293 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
23294 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
23295 "\xd3",
23296 .rlen = 17,
23297 }, {
23298 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
23299 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
23300 "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
23301 "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
23302 .klen = 32,
23303 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
23304 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
23305 "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
23306 "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
23307 .assoc = "",
23308 .alen = 0,
23309 .input = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
23310 "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
23311 "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
23312 "\x89\x85\x23\x15\xb8\x79\x07\x4c"
23313 "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
23314 "\xc4\x1f\x12\x27\xcf\x77\x90",
23315 .ilen = 47,
23316 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
23317 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
23318 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
23319 "\x88\x11\x39\x12\x1c\x3a\xbb",
23320 .rlen = 31,
23321 }, {
23322 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
23323 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
23324 "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
23325 "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
23326 .klen = 32,
23327 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
23328 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
23329 "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
23330 "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
23331 .assoc = "",
23332 .alen = 0,
23333 .input = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
23334 "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
23335 "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
23336 "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
23337 "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
23338 "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
23339 .ilen = 48,
23340 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
23341 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
23342 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
23343 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
23344 .rlen = 32,
23345 }, {
23346 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
23347 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
23348 "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
23349 "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
23350 .klen = 32,
23351 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
23352 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
23353 "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
23354 "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
23355 .assoc = "\xd5",
23356 .alen = 1,
23357 .input = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
23358 "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
23359 .ilen = 16,
23360 .result = "",
23361 .rlen = 0,
23362 }, {
23363 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
23364 "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
23365 "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
23366 "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
23367 .klen = 32,
23368 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
23369 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
23370 "\xe8\x73\x62\x64\xab\x50\xd0\xda"
23371 "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
23372 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
23373 "\x68\x75\x16\xf8\xcb\x7e\xa7",
23374 .alen = 15,
23375 .input = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
23376 "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
23377 .ilen = 16,
23378 .result = "",
23379 .rlen = 0,
23380 }, {
23381 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
23382 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
23383 "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
23384 "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
23385 .klen = 32,
23386 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
23387 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
23388 "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
23389 "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
23390 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
23391 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
23392 .alen = 16,
23393 .input = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
23394 "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
23395 .ilen = 16,
23396 .result = "",
23397 .rlen = 0,
23398 }, {
23399 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
23400 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
23401 "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
23402 "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
23403 .klen = 32,
23404 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
23405 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
23406 "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
23407 "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
23408 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
23409 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
23410 "\x07",
23411 .alen = 17,
23412 .input = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
23413 "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
23414 .ilen = 16,
23415 .result = "",
23416 .rlen = 0,
23417 }, {
23418 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
23419 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
23420 "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
23421 "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
23422 .klen = 32,
23423 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
23424 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
23425 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
23426 "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
23427 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
23428 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
23429 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
23430 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
23431 .alen = 31,
23432 .input = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
23433 "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
23434 .ilen = 16,
23435 .result = "",
23436 .rlen = 0,
23437 }, {
23438 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
23439 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
23440 "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
23441 "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
23442 .klen = 32,
23443 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
23444 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
23445 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
23446 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
23447 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
23448 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
23449 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
23450 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
23451 .alen = 32,
23452 .input = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
23453 "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
23454 .ilen = 16,
23455 .result = "",
23456 .rlen = 0,
23457 }, {
23458 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
23459 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
23460 "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
23461 "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
23462 .klen = 32,
23463 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
23464 "\xcc\x81\x63\xab\xae\x6b\x43\x54"
23465 "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
23466 "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
23467 .assoc = "\x40",
23468 .alen = 1,
23469 .input = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
23470 "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
23471 "\xc7",
23472 .ilen = 17,
23473 .result = "\x4f",
23474 .rlen = 1,
23475 }, {
23476 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
23477 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
23478 "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
23479 "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
23480 .klen = 32,
23481 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
23482 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
23483 "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
23484 "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
23485 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
23486 "\x6d\x92\x42\x61\xa7\x58\x37",
23487 .alen = 15,
23488 .input = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
23489 "\x7e\x98\x83\x02\x34\x23\xf7\x94"
23490 "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
23491 "\x14\x80\x6a\xa7\x1b\xae\x1d",
23492 .ilen = 31,
23493 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
23494 "\x8d\xc8\x6e\x85\xa5\x21\x67",
23495 .rlen = 15,
23496 }, {
23497 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
23498 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
23499 "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
23500 "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
23501 .klen = 32,
23502 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
23503 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
23504 "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
23505 "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
23506 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
23507 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
23508 .alen = 16,
23509 .input = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
23510 "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
23511 "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
23512 "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
23513 .ilen = 32,
23514 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
23515 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
23516 .rlen = 16,
23517 }, {
23518 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
23519 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
23520 "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
23521 "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
23522 .klen = 32,
23523 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
23524 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
23525 "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
23526 "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
23527 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
23528 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
23529 "\x05",
23530 .alen = 17,
23531 .input = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
23532 "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
23533 "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
23534 "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
23535 "\x55",
23536 .ilen = 33,
23537 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
23538 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
23539 "\xd0",
23540 .rlen = 17,
23541 }, {
23542 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
23543 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
23544 "\x9a\x97\x48\xe9\x98\x48\x82\xba"
23545 "\x07\x11\x04\x54\x32\x67\x7b\xf5",
23546 .klen = 32,
23547 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
23548 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
23549 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
23550 "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
23551 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
23552 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
23553 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
23554 "\x68\x28\x73\x40\x9f\x96\x4a",
23555 .alen = 31,
23556 .input = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
23557 "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
23558 "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
23559 "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
23560 "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
23561 "\xdf\xb8\xea\xd8\xa9\x38\xed",
23562 .ilen = 47,
23563 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
23564 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
23565 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
23566 "\x98\x34\xab\x37\x56\xae\x32",
23567 .rlen = 31,
23568 }, {
23569 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
23570 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
23571 "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
23572 "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
23573 .klen = 32,
23574 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
23575 "\x50\xc4\xde\x82\x90\x21\x11\x73"
23576 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
23577 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
23578 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
23579 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
23580 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
23581 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
23582 .alen = 32,
23583 .input = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
23584 "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
23585 "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
23586 "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
23587 "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
23588 "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
23589 .ilen = 48,
23590 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
23591 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
23592 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
23593 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
23594 .rlen = 32,
23595 }, {
23596 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
23597 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
23598 "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
23599 "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
23600 .klen = 32,
23601 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
23602 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
23603 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
23604 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
23605 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
23606 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
23607 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
23608 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
23609 "\x9d",
23610 .alen = 33,
23611 .input = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
23612 "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
23613 "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
23614 "\x1a\x93\x33\x79\x97\x82\x81\xc0"
23615 "\x96\xc2\x00\xab\x39\xae\xa1\x62"
23616 "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
23617 "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
23618 "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
23619 "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
23620 "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
23621 "\x65",
23622 .ilen = 81,
23623 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
23624 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
23625 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
23626 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
23627 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
23628 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
23629 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
23630 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
23631 "\xbd",
23632 .rlen = 65,
23633 }, {
23634 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
23635 "\x32\x42\x15\x80\x85\xa1\x65\xfe"
23636 "\x19\xde\x6b\x76\xa8\x28\x08\x07"
23637 "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
23638 .klen = 32,
23639 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
23640 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
23641 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
23642 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
23643 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
23644 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
23645 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
23646 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
23647 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
23648 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
23649 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
23650 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
23651 "\x54",
23652 .alen = 65,
23653 .input = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
23654 "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
23655 "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
23656 "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
23657 "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
23658 "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
23659 "\xda",
23660 .ilen = 49,
23661 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
23662 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
23663 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
23664 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
23665 "\x2f",
23666 .rlen = 33,
23667 }, {
23668 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
23669 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
23670 "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
23671 "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
23672 .klen = 32,
23673 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
23674 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
23675 "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
23676 "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
23677 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
23678 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
23679 .alen = 16,
23680 .input = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
23681 "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
23682 "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
23683 "\xc7\xff\xbd\xbc\x85\x09\x0b",
23684 .ilen = 31,
23685 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
23686 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
23687 .rlen = 16,
23688 }, {
23689 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
23690 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
23691 "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
23692 "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
23693 .klen = 32,
23694 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
23695 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
23696 "\x39\x14\x05\xa0\xf3\x10\xec\x41"
23697 "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
23698 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
23699 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
23700 .alen = 16,
23701 .input = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
23702 "\x6c\xd9\x84\x63\x70\x97\x61\x37"
23703 "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
23704 "\x62\xd5\xc8\xf0\x46\x1a",
23705 .ilen = 30,
23706 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
23707 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
23708 .rlen = 16,
23709 }, {
23710 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
23711 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
23712 "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
23713 "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
23714 .klen = 32,
23715 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
23716 "\xd5\x07\x58\x59\x72\xd7\xde\x92"
23717 "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
23718 "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
23719 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
23720 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
23721 .alen = 16,
23722 .input = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
23723 "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
23724 "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
23725 .ilen = 24,
23726 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
23727 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
23728 .rlen = 16,
23729 },
23730};
23731
Martin Willi59007582015-06-01 13:44:03 +020023732/*
Ondrej Mosnacek4feb4c52018-05-11 14:19:10 +020023733 * MORUS-640 test vectors - generated via reference implementation from
23734 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
23735 *
23736 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
23737 * (see crypto_aead/morus640128v2/)
23738 */
23739static const struct aead_testvec morus640_enc_tv_template[] = {
23740 {
23741 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
23742 "\x00\x00\x00\x00\x00\x00\x00\x00",
23743 .klen = 16,
23744 .iv = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
23745 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
23746 .assoc = "",
23747 .alen = 0,
23748 .input = "",
23749 .ilen = 0,
23750 .result = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
23751 "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
23752 .rlen = 16,
23753 }, {
23754 .key = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
23755 "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
23756 .klen = 16,
23757 .iv = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
23758 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
23759 .assoc = "",
23760 .alen = 0,
23761 .input = "\x69",
23762 .ilen = 1,
23763 .result = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
23764 "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
23765 "\x09",
23766 .rlen = 17,
23767 }, {
23768 .key = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
23769 "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
23770 .klen = 16,
23771 .iv = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
23772 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
23773 .assoc = "",
23774 .alen = 0,
23775 .input = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
23776 "\x62\x58\xe9\x8f\xef\xa4\x17",
23777 .ilen = 15,
23778 .result = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
23779 "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
23780 "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
23781 "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
23782 .rlen = 31,
23783 }, {
23784 .key = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
23785 "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
23786 .klen = 16,
23787 .iv = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
23788 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
23789 .assoc = "",
23790 .alen = 0,
23791 .input = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
23792 "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
23793 .ilen = 16,
23794 .result = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
23795 "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
23796 "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
23797 "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
23798 .rlen = 32,
23799 }, {
23800 .key = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
23801 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
23802 .klen = 16,
23803 .iv = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
23804 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
23805 .assoc = "",
23806 .alen = 0,
23807 .input = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
23808 "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
23809 "\x09",
23810 .ilen = 17,
23811 .result = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
23812 "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
23813 "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
23814 "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
23815 "\x0d",
23816 .rlen = 33,
23817 }, {
23818 .key = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
23819 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
23820 .klen = 16,
23821 .iv = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
23822 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
23823 .assoc = "",
23824 .alen = 0,
23825 .input = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
23826 "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
23827 "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
23828 "\x57\x05\x01\x1c\x66\x22\xd3",
23829 .ilen = 31,
23830 .result = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
23831 "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
23832 "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
23833 "\x36\x12\x12\xed\xa3\x31\xc5\x30"
23834 "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
23835 "\x75\xfa\x6c\x17\xc6\x73\xca",
23836 .rlen = 47,
23837 }, {
23838 .key = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
23839 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
23840 .klen = 16,
23841 .iv = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
23842 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
23843 .assoc = "",
23844 .alen = 0,
23845 .input = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
23846 "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
23847 "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
23848 "\x19\x33\xe0\xf4\x40\x81\x72\x28",
23849 .ilen = 32,
23850 .result = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
23851 "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
23852 "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
23853 "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
23854 "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
23855 "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
23856 .rlen = 48,
23857 }, {
23858 .key = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
23859 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
23860 .klen = 16,
23861 .iv = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
23862 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
23863 .assoc = "\xc5",
23864 .alen = 1,
23865 .input = "",
23866 .ilen = 0,
23867 .result = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
23868 "\x09\x48\x39\x69\x9c\xb3\x62\x46",
23869 .rlen = 16,
23870 }, {
23871 .key = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
23872 "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
23873 .klen = 16,
23874 .iv = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
23875 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
23876 .assoc = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
23877 "\x47\x3e\xe9\xd4\xcc\xb5\x76",
23878 .alen = 15,
23879 .input = "",
23880 .ilen = 0,
23881 .result = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
23882 "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
23883 .rlen = 16,
23884 }, {
23885 .key = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
23886 "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
23887 .klen = 16,
23888 .iv = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
23889 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
23890 .assoc = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
23891 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
23892 .alen = 16,
23893 .input = "",
23894 .ilen = 0,
23895 .result = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
23896 "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
23897 .rlen = 16,
23898 }, {
23899 .key = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
23900 "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
23901 .klen = 16,
23902 .iv = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
23903 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
23904 .assoc = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
23905 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
23906 "\x3c",
23907 .alen = 17,
23908 .input = "",
23909 .ilen = 0,
23910 .result = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
23911 "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
23912 .rlen = 16,
23913 }, {
23914 .key = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
23915 "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
23916 .klen = 16,
23917 .iv = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
23918 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
23919 .assoc = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
23920 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
23921 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
23922 "\xaf\x0b\x02\x38\xcc\x44\xa7",
23923 .alen = 31,
23924 .input = "",
23925 .ilen = 0,
23926 .result = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
23927 "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
23928 .rlen = 16,
23929 }, {
23930 .key = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
23931 "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
23932 .klen = 16,
23933 .iv = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
23934 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
23935 .assoc = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
23936 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
23937 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
23938 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
23939 .alen = 32,
23940 .input = "",
23941 .ilen = 0,
23942 .result = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
23943 "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
23944 .rlen = 16,
23945 }, {
23946 .key = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
23947 "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
23948 .klen = 16,
23949 .iv = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
23950 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
23951 .assoc = "\x31",
23952 .alen = 1,
23953 .input = "\x40",
23954 .ilen = 1,
23955 .result = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
23956 "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
23957 "\x22",
23958 .rlen = 17,
23959 }, {
23960 .key = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
23961 "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
23962 .klen = 16,
23963 .iv = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
23964 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
23965 .assoc = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
23966 "\x4d\x5b\x15\x3c\xa8\x8f\x06",
23967 .alen = 15,
23968 .input = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
23969 "\x6d\x92\x42\x61\xa7\x58\x37",
23970 .ilen = 15,
23971 .result = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
23972 "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
23973 "\x07\x95\xa7\x44\x74\xf7\x22\xff"
23974 "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
23975 .rlen = 31,
23976 }, {
23977 .key = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
23978 "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
23979 .klen = 16,
23980 .iv = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
23981 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
23982 .assoc = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
23983 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
23984 .alen = 16,
23985 .input = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
23986 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
23987 .ilen = 16,
23988 .result = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
23989 "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
23990 "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
23991 "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
23992 .rlen = 32,
23993 }, {
23994 .key = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
23995 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
23996 .klen = 16,
23997 .iv = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
23998 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
23999 .assoc = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
24000 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
24001 "\x3b",
24002 .alen = 17,
24003 .input = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
24004 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
24005 "\x05",
24006 .ilen = 17,
24007 .result = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
24008 "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
24009 "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
24010 "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
24011 "\x83",
24012 .rlen = 33,
24013 }, {
24014 .key = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
24015 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
24016 .klen = 16,
24017 .iv = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
24018 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
24019 .assoc = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
24020 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
24021 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
24022 "\x38\x1d\x3b\x4a\xe9\x7e\x62",
24023 .alen = 31,
24024 .input = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
24025 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
24026 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
24027 "\x68\x28\x73\x40\x9f\x96\x4a",
24028 .ilen = 31,
24029 .result = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
24030 "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
24031 "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
24032 "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
24033 "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
24034 "\xf1\x5a\x66\x69\xe0\xca\x83",
24035 .rlen = 47,
24036 }, {
24037 .key = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
24038 "\x10\x57\x85\x39\x93\x8f\xaf\x70",
24039 .klen = 16,
24040 .iv = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
24041 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
24042 .assoc = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
24043 "\x50\xc4\xde\x82\x90\x21\x11\x73"
24044 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
24045 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
24046 .alen = 32,
24047 .input = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
24048 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
24049 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
24050 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
24051 .ilen = 32,
24052 .result = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
24053 "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
24054 "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
24055 "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
24056 "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
24057 "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
24058 .rlen = 48,
24059 }, {
24060 .key = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
24061 "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
24062 .klen = 16,
24063 .iv = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
24064 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
24065 .assoc = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
24066 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
24067 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
24068 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
24069 "\x1a",
24070 .alen = 33,
24071 .input = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
24072 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
24073 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
24074 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
24075 "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
24076 "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
24077 "\x75\x73\x20\x30\x59\x54\xb2\xf0"
24078 "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
24079 "\x8a",
24080 .ilen = 65,
24081 .result = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
24082 "\xb1\x37\xde\x95\x06\x90\x11\x08"
24083 "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
24084 "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
24085 "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
24086 "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
24087 "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
24088 "\xef\x35\x25\x48\xed\xcf\x29\xa8"
24089 "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
24090 "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
24091 "\xc4",
24092 .rlen = 81,
24093 }, {
24094 .key = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
24095 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
24096 .klen = 16,
24097 .iv = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
24098 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
24099 .assoc = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
24100 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
24101 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
24102 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
24103 "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
24104 "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
24105 "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
24106 "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
24107 "\x21",
24108 .alen = 65,
24109 .input = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
24110 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
24111 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
24112 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
24113 "\xac",
24114 .ilen = 33,
24115 .result = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
24116 "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
24117 "\xf3\x78\x63\x34\x89\x79\x39\x6b"
24118 "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
24119 "\x54\x0b\xea\x05\xa6\x95\x64\xed"
24120 "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
24121 "\x66",
24122 .rlen = 49,
24123 }, {
24124 .key = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
24125 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
24126 .klen = 16,
24127 .iv = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
24128 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
24129 .assoc = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
24130 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
24131 .alen = 16,
24132 .input = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
24133 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
24134 .ilen = 16,
24135 .result = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
24136 "\x33\x98\x87\xde\x08\xb6\xb6\xae"
24137 "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
24138 "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
24139 .rlen = 31,
24140 }, {
24141 .key = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
24142 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
24143 .klen = 16,
24144 .iv = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
24145 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
24146 .assoc = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
24147 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
24148 .alen = 16,
24149 .input = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
24150 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
24151 .ilen = 16,
24152 .result = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
24153 "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
24154 "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
24155 "\x03\xde\x85\x71\x5d\x34",
24156 .rlen = 30,
24157 }, {
24158 .key = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
24159 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
24160 .klen = 16,
24161 .iv = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
24162 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
24163 .assoc = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
24164 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
24165 .alen = 16,
24166 .input = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
24167 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
24168 .ilen = 16,
24169 .result = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
24170 "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
24171 "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
24172 .rlen = 24,
24173 }, {
24174 .key = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
24175 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
24176 .klen = 16,
24177 .iv = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
24178 "\x36\xab\xde\xc6\x6d\x32\x70\x17",
24179 .assoc = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
24180 "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
24181 .alen = 16,
24182 .input = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
24183 "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
24184 .ilen = 16,
24185 .result = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
24186 "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
24187 "\x6e",
24188 .rlen = 17,
24189 },
24190};
24191
24192static const struct aead_testvec morus640_dec_tv_template[] = {
24193 {
24194 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
24195 "\x00\x00\x00\x00\x00\x00\x00\x00",
24196 .klen = 16,
24197 .iv = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
24198 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
24199 .assoc = "",
24200 .alen = 0,
24201 .input = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
24202 "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
24203 .ilen = 16,
24204 .result = "",
24205 .rlen = 0,
24206 }, {
24207 .key = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
24208 "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
24209 .klen = 16,
24210 .iv = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
24211 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
24212 .assoc = "",
24213 .alen = 0,
24214 .input = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
24215 "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
24216 "\x09",
24217 .ilen = 17,
24218 .result = "\x69",
24219 .rlen = 1,
24220 }, {
24221 .key = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
24222 "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
24223 .klen = 16,
24224 .iv = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
24225 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
24226 .assoc = "",
24227 .alen = 0,
24228 .input = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
24229 "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
24230 "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
24231 "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
24232 .ilen = 31,
24233 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
24234 "\x62\x58\xe9\x8f\xef\xa4\x17",
24235 .rlen = 15,
24236 }, {
24237 .key = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
24238 "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
24239 .klen = 16,
24240 .iv = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
24241 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
24242 .assoc = "",
24243 .alen = 0,
24244 .input = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
24245 "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
24246 "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
24247 "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
24248 .ilen = 32,
24249 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
24250 "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
24251 .rlen = 16,
24252 }, {
24253 .key = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
24254 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
24255 .klen = 16,
24256 .iv = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
24257 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
24258 .assoc = "",
24259 .alen = 0,
24260 .input = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
24261 "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
24262 "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
24263 "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
24264 "\x0d",
24265 .ilen = 33,
24266 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
24267 "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
24268 "\x09",
24269 .rlen = 17,
24270 }, {
24271 .key = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
24272 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
24273 .klen = 16,
24274 .iv = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
24275 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
24276 .assoc = "",
24277 .alen = 0,
24278 .input = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
24279 "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
24280 "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
24281 "\x36\x12\x12\xed\xa3\x31\xc5\x30"
24282 "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
24283 "\x75\xfa\x6c\x17\xc6\x73\xca",
24284 .ilen = 47,
24285 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
24286 "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
24287 "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
24288 "\x57\x05\x01\x1c\x66\x22\xd3",
24289 .rlen = 31,
24290 }, {
24291 .key = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
24292 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
24293 .klen = 16,
24294 .iv = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
24295 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
24296 .assoc = "",
24297 .alen = 0,
24298 .input = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
24299 "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
24300 "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
24301 "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
24302 "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
24303 "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
24304 .ilen = 48,
24305 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
24306 "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
24307 "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
24308 "\x19\x33\xe0\xf4\x40\x81\x72\x28",
24309 .rlen = 32,
24310 }, {
24311 .key = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
24312 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
24313 .klen = 16,
24314 .iv = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
24315 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
24316 .assoc = "\xc5",
24317 .alen = 1,
24318 .input = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
24319 "\x09\x48\x39\x69\x9c\xb3\x62\x46",
24320 .ilen = 16,
24321 .result = "",
24322 .rlen = 0,
24323 }, {
24324 .key = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
24325 "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
24326 .klen = 16,
24327 .iv = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
24328 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
24329 .assoc = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
24330 "\x47\x3e\xe9\xd4\xcc\xb5\x76",
24331 .alen = 15,
24332 .input = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
24333 "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
24334 .ilen = 16,
24335 .result = "",
24336 .rlen = 0,
24337 }, {
24338 .key = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
24339 "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
24340 .klen = 16,
24341 .iv = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
24342 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
24343 .assoc = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
24344 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
24345 .alen = 16,
24346 .input = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
24347 "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
24348 .ilen = 16,
24349 .result = "",
24350 .rlen = 0,
24351 }, {
24352 .key = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
24353 "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
24354 .klen = 16,
24355 .iv = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
24356 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
24357 .assoc = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
24358 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
24359 "\x3c",
24360 .alen = 17,
24361 .input = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
24362 "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
24363 .ilen = 16,
24364 .result = "",
24365 .rlen = 0,
24366 }, {
24367 .key = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
24368 "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
24369 .klen = 16,
24370 .iv = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
24371 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
24372 .assoc = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
24373 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
24374 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
24375 "\xaf\x0b\x02\x38\xcc\x44\xa7",
24376 .alen = 31,
24377 .input = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
24378 "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
24379 .ilen = 16,
24380 .result = "",
24381 .rlen = 0,
24382 }, {
24383 .key = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
24384 "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
24385 .klen = 16,
24386 .iv = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
24387 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
24388 .assoc = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
24389 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
24390 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
24391 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
24392 .alen = 32,
24393 .input = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
24394 "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
24395 .ilen = 16,
24396 .result = "",
24397 .rlen = 0,
24398 }, {
24399 .key = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
24400 "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
24401 .klen = 16,
24402 .iv = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
24403 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
24404 .assoc = "\x31",
24405 .alen = 1,
24406 .input = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
24407 "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
24408 "\x22",
24409 .ilen = 17,
24410 .result = "\x40",
24411 .rlen = 1,
24412 }, {
24413 .key = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
24414 "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
24415 .klen = 16,
24416 .iv = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
24417 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
24418 .assoc = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
24419 "\x4d\x5b\x15\x3c\xa8\x8f\x06",
24420 .alen = 15,
24421 .input = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
24422 "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
24423 "\x07\x95\xa7\x44\x74\xf7\x22\xff"
24424 "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
24425 .ilen = 31,
24426 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
24427 "\x6d\x92\x42\x61\xa7\x58\x37",
24428 .rlen = 15,
24429 }, {
24430 .key = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
24431 "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
24432 .klen = 16,
24433 .iv = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
24434 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
24435 .assoc = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
24436 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
24437 .alen = 16,
24438 .input = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
24439 "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
24440 "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
24441 "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
24442 .ilen = 32,
24443 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
24444 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
24445 .rlen = 16,
24446 }, {
24447 .key = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
24448 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
24449 .klen = 16,
24450 .iv = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
24451 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
24452 .assoc = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
24453 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
24454 "\x3b",
24455 .alen = 17,
24456 .input = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
24457 "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
24458 "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
24459 "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
24460 "\x83",
24461 .ilen = 33,
24462 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
24463 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
24464 "\x05",
24465 .rlen = 17,
24466 }, {
24467 .key = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
24468 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
24469 .klen = 16,
24470 .iv = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
24471 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
24472 .assoc = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
24473 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
24474 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
24475 "\x38\x1d\x3b\x4a\xe9\x7e\x62",
24476 .alen = 31,
24477 .input = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
24478 "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
24479 "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
24480 "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
24481 "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
24482 "\xf1\x5a\x66\x69\xe0\xca\x83",
24483 .ilen = 47,
24484 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
24485 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
24486 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
24487 "\x68\x28\x73\x40\x9f\x96\x4a",
24488 .rlen = 31,
24489 }, {
24490 .key = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
24491 "\x10\x57\x85\x39\x93\x8f\xaf\x70",
24492 .klen = 16,
24493 .iv = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
24494 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
24495 .assoc = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
24496 "\x50\xc4\xde\x82\x90\x21\x11\x73"
24497 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
24498 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
24499 .alen = 32,
24500 .input = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
24501 "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
24502 "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
24503 "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
24504 "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
24505 "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
24506 .ilen = 48,
24507 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
24508 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
24509 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
24510 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
24511 .rlen = 32,
24512 }, {
24513 .key = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
24514 "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
24515 .klen = 16,
24516 .iv = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
24517 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
24518 .assoc = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
24519 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
24520 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
24521 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
24522 "\x1a",
24523 .alen = 33,
24524 .input = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
24525 "\xb1\x37\xde\x95\x06\x90\x11\x08"
24526 "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
24527 "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
24528 "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
24529 "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
24530 "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
24531 "\xef\x35\x25\x48\xed\xcf\x29\xa8"
24532 "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
24533 "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
24534 "\xc4",
24535 .ilen = 81,
24536 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
24537 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
24538 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
24539 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
24540 "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
24541 "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
24542 "\x75\x73\x20\x30\x59\x54\xb2\xf0"
24543 "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
24544 "\x8a",
24545 .rlen = 65,
24546 }, {
24547 .key = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
24548 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
24549 .klen = 16,
24550 .iv = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
24551 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
24552 .assoc = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
24553 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
24554 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
24555 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
24556 "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
24557 "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
24558 "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
24559 "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
24560 "\x21",
24561 .alen = 65,
24562 .input = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
24563 "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
24564 "\xf3\x78\x63\x34\x89\x79\x39\x6b"
24565 "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
24566 "\x54\x0b\xea\x05\xa6\x95\x64\xed"
24567 "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
24568 "\x66",
24569 .ilen = 49,
24570 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
24571 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
24572 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
24573 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
24574 "\xac",
24575 .rlen = 33,
24576 }, {
24577 .key = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
24578 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
24579 .klen = 16,
24580 .iv = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
24581 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
24582 .assoc = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
24583 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
24584 .alen = 16,
24585 .input = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
24586 "\x33\x98\x87\xde\x08\xb6\xb6\xae"
24587 "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
24588 "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
24589 .ilen = 31,
24590 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
24591 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
24592 .rlen = 16,
24593 }, {
24594 .key = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
24595 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
24596 .klen = 16,
24597 .iv = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
24598 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
24599 .assoc = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
24600 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
24601 .alen = 16,
24602 .input = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
24603 "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
24604 "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
24605 "\x03\xde\x85\x71\x5d\x34",
24606 .ilen = 30,
24607 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
24608 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
24609 .rlen = 16,
24610 }, {
24611 .key = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
24612 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
24613 .klen = 16,
24614 .iv = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
24615 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
24616 .assoc = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
24617 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
24618 .alen = 16,
24619 .input = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
24620 "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
24621 "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
24622 .ilen = 24,
24623 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
24624 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
24625 .rlen = 16,
24626 }, {
24627 .key = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
24628 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
24629 .klen = 16,
24630 .iv = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
24631 "\x36\xab\xde\xc6\x6d\x32\x70\x17",
24632 .assoc = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
24633 "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
24634 .alen = 16,
24635 .input = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
24636 "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
24637 "\x6e",
24638 .ilen = 17,
24639 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
24640 "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
24641 .rlen = 16,
24642 },
24643};
24644
24645/*
24646 * MORUS-1280 test vectors - generated via reference implementation from
24647 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
24648 *
24649 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
24650 * (see crypto_aead/morus1280128v2/ and crypto_aead/morus1280256v2/ )
24651 */
24652static const struct aead_testvec morus1280_enc_tv_template[] = {
24653 {
24654 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
24655 "\x00\x00\x00\x00\x00\x00\x00\x00",
24656 .klen = 16,
24657 .iv = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
24658 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
24659 .assoc = "",
24660 .alen = 0,
24661 .input = "",
24662 .ilen = 0,
24663 .result = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
24664 "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
24665 .rlen = 16,
24666 }, {
24667 .key = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
24668 "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
24669 .klen = 16,
24670 .iv = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
24671 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
24672 .assoc = "",
24673 .alen = 0,
24674 .input = "\x69",
24675 .ilen = 1,
24676 .result = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
24677 "\x96\xda\x76\x34\x33\x4e\xd5\x39"
24678 "\x73",
24679 .rlen = 17,
24680 }, {
24681 .key = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
24682 "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
24683 .klen = 16,
24684 .iv = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
24685 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
24686 .assoc = "",
24687 .alen = 0,
24688 .input = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
24689 "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
24690 "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
24691 "\x13\x7d\x64\x93\xd7\x05\xf5",
24692 .ilen = 31,
24693 .result = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
24694 "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
24695 "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
24696 "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
24697 "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
24698 "\xa4\x21\x74\xcf\x19\x16\x59",
24699 .rlen = 47,
24700 }, {
24701 .key = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
24702 "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
24703 .klen = 16,
24704 .iv = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
24705 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
24706 .assoc = "",
24707 .alen = 0,
24708 .input = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
24709 "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
24710 "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
24711 "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
24712 .ilen = 32,
24713 .result = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
24714 "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
24715 "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
24716 "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
24717 "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
24718 "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
24719 .rlen = 48,
24720 }, {
24721 .key = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
24722 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
24723 .klen = 16,
24724 .iv = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
24725 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
24726 .assoc = "",
24727 .alen = 0,
24728 .input = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
24729 "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
24730 "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
24731 "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
24732 "\xc4",
24733 .ilen = 33,
24734 .result = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
24735 "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
24736 "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
24737 "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
24738 "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
24739 "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
24740 "\xd0",
24741 .rlen = 49,
24742 }, {
24743 .key = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
24744 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
24745 .klen = 16,
24746 .iv = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
24747 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
24748 .assoc = "",
24749 .alen = 0,
24750 .input = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
24751 "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
24752 "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
24753 "\x57\x05\x01\x1c\x66\x22\xd3\x51"
24754 "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
24755 "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
24756 "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
24757 "\xe6\x16\xa2\xac\xde\x47\x40",
24758 .ilen = 63,
24759 .result = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
24760 "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
24761 "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
24762 "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
24763 "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
24764 "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
24765 "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
24766 "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
24767 "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
24768 "\x99\x7a\x72\x9c\x54\x31\xa1",
24769 .rlen = 79,
24770 }, {
24771 .key = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
24772 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
24773 .klen = 16,
24774 .iv = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
24775 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
24776 .assoc = "",
24777 .alen = 0,
24778 .input = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
24779 "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
24780 "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
24781 "\x19\x33\xe0\xf4\x40\x81\x72\x28"
24782 "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
24783 "\xb0\x68\x69\xf2\x27\x35\x91\x84"
24784 "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
24785 "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
24786 .ilen = 64,
24787 .result = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
24788 "\xa5\x07\x12\xa7\x12\x39\x60\x66"
24789 "\x30\x81\x4a\x03\x78\x28\x45\x52"
24790 "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
24791 "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
24792 "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
24793 "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
24794 "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
24795 "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
24796 "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
24797 .rlen = 80,
24798 }, {
24799 .key = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
24800 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
24801 .klen = 16,
24802 .iv = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
24803 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
24804 .assoc = "\xc5",
24805 .alen = 1,
24806 .input = "",
24807 .ilen = 0,
24808 .result = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
24809 "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
24810 .rlen = 16,
24811 }, {
24812 .key = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
24813 "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
24814 .klen = 16,
24815 .iv = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
24816 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
24817 .assoc = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
24818 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
24819 "\xe8\x73\x62\x64\xab\x50\xd0\xda"
24820 "\x6b\x83\x66\xaf\x3e\x27\xc9",
24821 .alen = 31,
24822 .input = "",
24823 .ilen = 0,
24824 .result = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
24825 "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
24826 .rlen = 16,
24827 }, {
24828 .key = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
24829 "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
24830 .klen = 16,
24831 .iv = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
24832 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
24833 .assoc = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
24834 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
24835 "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
24836 "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
24837 .alen = 32,
24838 .input = "",
24839 .ilen = 0,
24840 .result = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
24841 "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
24842 .rlen = 16,
24843 }, {
24844 .key = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
24845 "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
24846 .klen = 16,
24847 .iv = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
24848 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
24849 .assoc = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
24850 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
24851 "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
24852 "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
24853 "\x97",
24854 .alen = 33,
24855 .input = "",
24856 .ilen = 0,
24857 .result = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
24858 "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
24859 .rlen = 16,
24860 }, {
24861 .key = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
24862 "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
24863 .klen = 16,
24864 .iv = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
24865 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
24866 .assoc = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
24867 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
24868 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
24869 "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
24870 "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
24871 "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
24872 "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
24873 "\xcd\x2c\x45\x58\xbd\x8e\x80",
24874 .alen = 63,
24875 .input = "",
24876 .ilen = 0,
24877 .result = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
24878 "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
24879 .rlen = 16,
24880 }, {
24881 .key = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
24882 "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
24883 .klen = 16,
24884 .iv = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
24885 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
24886 .assoc = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
24887 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
24888 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
24889 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
24890 "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
24891 "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
24892 "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
24893 "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
24894 .alen = 64,
24895 .input = "",
24896 .ilen = 0,
24897 .result = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
24898 "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
24899 .rlen = 16,
24900 }, {
24901 .key = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
24902 "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
24903 .klen = 16,
24904 .iv = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
24905 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
24906 .assoc = "\x31",
24907 .alen = 1,
24908 .input = "\x40",
24909 .ilen = 1,
24910 .result = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
24911 "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
24912 "\xbf",
24913 .rlen = 17,
24914 }, {
24915 .key = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
24916 "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
24917 .klen = 16,
24918 .iv = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
24919 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
24920 .assoc = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
24921 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
24922 "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
24923 "\xf4\x94\x9f\xc1\x5a\x61\x85",
24924 .alen = 31,
24925 .input = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
24926 "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
24927 "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
24928 "\x24\xa0\xd6\xb7\x11\x79\x6c",
24929 .ilen = 31,
24930 .result = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
24931 "\x63\x09\x08\x58\xb5\x56\xbd\x72"
24932 "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
24933 "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
24934 "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
24935 "\x85\x87\x17\x09\x42\xed\x4e",
24936 .rlen = 47,
24937 }, {
24938 .key = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
24939 "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
24940 .klen = 16,
24941 .iv = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
24942 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
24943 .assoc = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
24944 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
24945 "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
24946 "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
24947 .alen = 32,
24948 .input = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
24949 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
24950 "\xdb\x74\x36\x23\x11\x58\x3f\x93"
24951 "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
24952 .ilen = 32,
24953 .result = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
24954 "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
24955 "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
24956 "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
24957 "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
24958 "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
24959 .rlen = 48,
24960 }, {
24961 .key = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
24962 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
24963 .klen = 16,
24964 .iv = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
24965 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
24966 .assoc = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
24967 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
24968 "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
24969 "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
24970 "\xee",
24971 .alen = 33,
24972 .input = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
24973 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
24974 "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
24975 "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
24976 "\x72",
24977 .ilen = 33,
24978 .result = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
24979 "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
24980 "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
24981 "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
24982 "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
24983 "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
24984 "\x5e",
24985 .rlen = 49,
24986 }, {
24987 .key = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
24988 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
24989 .klen = 16,
24990 .iv = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
24991 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
24992 .assoc = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
24993 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
24994 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
24995 "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
24996 "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
24997 "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
24998 "\x10\x0b\x56\x85\xad\x54\xaa\x66"
24999 "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
25000 .alen = 63,
25001 .input = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
25002 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
25003 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
25004 "\x68\x28\x73\x40\x9f\x96\x4a\x60"
25005 "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
25006 "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
25007 "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
25008 "\x9c\x44\xb2\xa4\x99\x98\x34",
25009 .ilen = 63,
25010 .result = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
25011 "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
25012 "\xef\x36\x19\xae\x91\xfa\xd6\x63"
25013 "\x46\xea\x8a\x39\x14\x21\xa6\x37"
25014 "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
25015 "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
25016 "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
25017 "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
25018 "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
25019 "\x4f\x20\x37\xdb\x7b\x22\xa3",
25020 .rlen = 79,
25021 }, {
25022 .key = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
25023 "\x10\x57\x85\x39\x93\x8f\xaf\x70",
25024 .klen = 16,
25025 .iv = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
25026 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
25027 .assoc = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
25028 "\x50\xc4\xde\x82\x90\x21\x11\x73"
25029 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
25030 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
25031 "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
25032 "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
25033 "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
25034 "\x77\x47\x63\x14\x95\x3d\xe4\x34",
25035 .alen = 64,
25036 .input = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
25037 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
25038 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
25039 "\x29\x56\x52\x19\x79\xf5\xe9\x37"
25040 "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
25041 "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
25042 "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
25043 "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
25044 .ilen = 64,
25045 .result = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
25046 "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
25047 "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
25048 "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
25049 "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
25050 "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
25051 "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
25052 "\xec\x99\x7d\x61\xb3\x15\x93\xed"
25053 "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
25054 "\x95\x74\x44\xd5\x54\xa6\x27\x06",
25055 .rlen = 80,
25056 }, {
25057 .key = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
25058 "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
25059 .klen = 16,
25060 .iv = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
25061 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
25062 .assoc = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
25063 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
25064 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
25065 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
25066 "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
25067 "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
25068 "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
25069 "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
25070 "\x58",
25071 .alen = 65,
25072 .input = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
25073 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
25074 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
25075 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
25076 "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
25077 "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
25078 "\x75\x73\x20\x30\x59\x54\xb2\xf0"
25079 "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
25080 "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
25081 "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
25082 "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
25083 "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
25084 "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
25085 "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
25086 "\x33\x16\x59\x6c\x3b\xef\x88\xad"
25087 "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
25088 "\x36",
25089 .ilen = 129,
25090 .result = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
25091 "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
25092 "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
25093 "\x38\xa4\x74\xa5\x04\x15\x63\x05"
25094 "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
25095 "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
25096 "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
25097 "\x42\x01\xe6\xbc\x75\x15\x87\xee"
25098 "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
25099 "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
25100 "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
25101 "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
25102 "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
25103 "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
25104 "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
25105 "\x4f\x61\x64\x37\x22\x36\x6d\x78"
25106 "\xed\xed\x35\xe8\x83\xa5\xec\x25"
25107 "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
25108 "\x20",
25109 .rlen = 145,
25110 }, {
25111 .key = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
25112 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
25113 .klen = 16,
25114 .iv = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
25115 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
25116 .assoc = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
25117 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
25118 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
25119 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
25120 "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
25121 "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
25122 "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
25123 "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
25124 "\x21\xf7\x42\x89\xac\x12\x2a\x54"
25125 "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
25126 "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
25127 "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
25128 "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
25129 "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
25130 "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
25131 "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
25132 "\x51",
25133 .alen = 129,
25134 .input = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
25135 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
25136 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
25137 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
25138 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
25139 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
25140 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
25141 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
25142 "\x54",
25143 .ilen = 65,
25144 .result = "\x36\x78\xb9\x22\xde\x62\x35\x55"
25145 "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
25146 "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
25147 "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
25148 "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
25149 "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
25150 "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
25151 "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
25152 "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
25153 "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
25154 "\xa2",
25155 .rlen = 81,
25156 }, {
25157 .key = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
25158 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
25159 .klen = 16,
25160 .iv = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
25161 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
25162 .assoc = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
25163 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
25164 "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
25165 "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
25166 .alen = 32,
25167 .input = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
25168 "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
25169 "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
25170 "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
25171 .ilen = 32,
25172 .result = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
25173 "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
25174 "\x89\x14\x33\x70\x0a\xbc\xea\x39"
25175 "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
25176 "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
25177 "\x2f\x03\x30\x05\x47\xaf\x34",
25178 .rlen = 47,
25179 }, {
25180 .key = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
25181 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
25182 .klen = 16,
25183 .iv = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
25184 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
25185 .assoc = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
25186 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
25187 "\x39\x14\x05\xa0\xf3\x10\xec\x41"
25188 "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
25189 .alen = 32,
25190 .input = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
25191 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
25192 "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
25193 "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
25194 .ilen = 32,
25195 .result = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
25196 "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
25197 "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
25198 "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
25199 "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
25200 "\xb9\x9c\xe5\xef\xf2\x05",
25201 .rlen = 46,
25202 }, {
25203 .key = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
25204 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
25205 .klen = 16,
25206 .iv = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
25207 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
25208 .assoc = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
25209 "\xd5\x07\x58\x59\x72\xd7\xde\x92"
25210 "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
25211 "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
25212 .alen = 32,
25213 .input = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
25214 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
25215 "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
25216 "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
25217 .ilen = 32,
25218 .result = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
25219 "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
25220 "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
25221 "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
25222 "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
25223 .rlen = 40,
25224 }, {
25225 .key = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
25226 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
25227 .klen = 16,
25228 .iv = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
25229 "\x36\xab\xde\xc6\x6d\x32\x70\x17",
25230 .assoc = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
25231 "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
25232 "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
25233 "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
25234 .alen = 32,
25235 .input = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
25236 "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
25237 "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
25238 "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
25239 .ilen = 32,
25240 .result = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
25241 "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
25242 "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
25243 "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
25244 "\x1a",
25245 .rlen = 33,
25246 }, {
25247 .key = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
25248 "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
25249 "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
25250 "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
25251 .klen = 32,
25252 .iv = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
25253 "\xb7\x85\x90\x58\x67\x57\x33\x1d",
25254 .assoc = "",
25255 .alen = 0,
25256 .input = "",
25257 .ilen = 0,
25258 .result = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
25259 "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
25260 .rlen = 16,
25261 }, {
25262 .key = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
25263 "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
25264 "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
25265 "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
25266 .klen = 32,
25267 .iv = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
25268 "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
25269 .assoc = "",
25270 .alen = 0,
25271 .input = "\x53",
25272 .ilen = 1,
25273 .result = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
25274 "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
25275 "\x53",
25276 .rlen = 17,
25277 }, {
25278 .key = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
25279 "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
25280 "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
25281 "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
25282 .klen = 32,
25283 .iv = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
25284 "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
25285 .assoc = "",
25286 .alen = 0,
25287 .input = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
25288 "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
25289 "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
25290 "\xf6\xf0\x27\xb4\x25\x4c\x83",
25291 .ilen = 31,
25292 .result = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
25293 "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
25294 "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
25295 "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
25296 "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
25297 "\xb8\x4d\x11\x42\xd1\xf8\xf1",
25298 .rlen = 47,
25299 }, {
25300 .key = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
25301 "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
25302 "\xa2\x40\x45\x77\x90\x80\x37\xce"
25303 "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
25304 .klen = 32,
25305 .iv = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
25306 "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
25307 .assoc = "",
25308 .alen = 0,
25309 .input = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
25310 "\x7a\x81\xff\x55\x52\x56\xdc\x33"
25311 "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
25312 "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
25313 .ilen = 32,
25314 .result = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
25315 "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
25316 "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
25317 "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
25318 "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
25319 "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
25320 .rlen = 48,
25321 }, {
25322 .key = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
25323 "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
25324 "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
25325 "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
25326 .klen = 32,
25327 .iv = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
25328 "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
25329 .assoc = "",
25330 .alen = 0,
25331 .input = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
25332 "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
25333 "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
25334 "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
25335 "\x2e",
25336 .ilen = 33,
25337 .result = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
25338 "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
25339 "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
25340 "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
25341 "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
25342 "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
25343 "\x32",
25344 .rlen = 49,
25345 }, {
25346 .key = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
25347 "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
25348 "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
25349 "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
25350 .klen = 32,
25351 .iv = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
25352 "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
25353 .assoc = "",
25354 .alen = 0,
25355 .input = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
25356 "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
25357 "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
25358 "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
25359 "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
25360 "\x22\xda\x52\x8b\x7d\x11\x98\xea"
25361 "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
25362 "\x20\x76\x5a\xdc\x4e\x71\x13",
25363 .ilen = 63,
25364 .result = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
25365 "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
25366 "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
25367 "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
25368 "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
25369 "\x01\xb7\x39\xa6\x51\x15\xca\xff"
25370 "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
25371 "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
25372 "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
25373 "\xaa\x2d\xfc\x4e\x35\x05\x59",
25374 .rlen = 79,
25375 }, {
25376 .key = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
25377 "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
25378 "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
25379 "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
25380 .klen = 32,
25381 .iv = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
25382 "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
25383 .assoc = "",
25384 .alen = 0,
25385 .input = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
25386 "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
25387 "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
25388 "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
25389 "\x4b\x62\x87\x7c\x15\x38\xda\x70"
25390 "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
25391 "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
25392 "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
25393 .ilen = 64,
25394 .result = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
25395 "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
25396 "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
25397 "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
25398 "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
25399 "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
25400 "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
25401 "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
25402 "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
25403 "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
25404 .rlen = 80,
25405 }, {
25406 .key = "\x90\x96\x36\xea\x03\x74\x18\x7a"
25407 "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
25408 "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
25409 "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
25410 .klen = 32,
25411 .iv = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
25412 "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
25413 .assoc = "\xaf",
25414 .alen = 1,
25415 .input = "",
25416 .ilen = 0,
25417 .result = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
25418 "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
25419 .rlen = 16,
25420 }, {
25421 .key = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
25422 "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
25423 "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
25424 "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
25425 .klen = 32,
25426 .iv = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
25427 "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
25428 .assoc = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
25429 "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
25430 "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
25431 "\x4e\xf6\x29\xd1\x8b\x6f\x56",
25432 .alen = 31,
25433 .input = "",
25434 .ilen = 0,
25435 .result = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
25436 "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
25437 .rlen = 16,
25438 }, {
25439 .key = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
25440 "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
25441 "\xa0\xce\x8a\x91\xae\x40\x43\x68"
25442 "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
25443 .klen = 32,
25444 .iv = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
25445 "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
25446 .assoc = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
25447 "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
25448 "\x35\x2f\x90\xd3\x31\x90\x04\x74"
25449 "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
25450 .alen = 32,
25451 .input = "",
25452 .ilen = 0,
25453 .result = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
25454 "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
25455 .rlen = 16,
25456 }, {
25457 .key = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
25458 "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
25459 "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
25460 "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
25461 .klen = 32,
25462 .iv = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
25463 "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
25464 .assoc = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
25465 "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
25466 "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
25467 "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
25468 "\x01",
25469 .alen = 33,
25470 .input = "",
25471 .ilen = 0,
25472 .result = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
25473 "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
25474 .rlen = 16,
25475 }, {
25476 .key = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
25477 "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
25478 "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
25479 "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
25480 .klen = 32,
25481 .iv = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
25482 "\x41\xe5\x36\x97\x25\xe7\x90\x61",
25483 .assoc = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
25484 "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
25485 "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
25486 "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
25487 "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
25488 "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
25489 "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
25490 "\x07\x8c\xfc\x88\x2d\xb8\x53",
25491 .alen = 63,
25492 .input = "",
25493 .ilen = 0,
25494 .result = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
25495 "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
25496 .rlen = 16,
25497 }, {
25498 .key = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
25499 "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
25500 "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
25501 "\xf3\x95\x35\x46\x86\xbb\x04\x03",
25502 .klen = 32,
25503 .iv = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
25504 "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
25505 .assoc = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
25506 "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
25507 "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
25508 "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
25509 "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
25510 "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
25511 "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
25512 "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
25513 .alen = 64,
25514 .input = "",
25515 .ilen = 0,
25516 .result = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
25517 "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
25518 .rlen = 16,
25519 }, {
25520 .key = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
25521 "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
25522 "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
25523 "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
25524 .klen = 32,
25525 .iv = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
25526 "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
25527 .assoc = "\x1a",
25528 .alen = 1,
25529 .input = "\x29",
25530 .ilen = 1,
25531 .result = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
25532 "\x17\x75\x81\x16\xdf\x26\xff\x67"
25533 "\x92",
25534 .rlen = 17,
25535 }, {
25536 .key = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
25537 "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
25538 "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
25539 "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
25540 .klen = 32,
25541 .iv = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
25542 "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
25543 .assoc = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
25544 "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
25545 "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
25546 "\xd6\x07\x62\xe3\xa8\xa9\x12",
25547 .alen = 31,
25548 .input = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
25549 "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
25550 "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
25551 "\x06\x13\x9a\xd9\x5e\xc0\xfa",
25552 .ilen = 31,
25553 .result = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
25554 "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
25555 "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
25556 "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
25557 "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
25558 "\x76\xc3\xf5\x3a\x76\xfd\x4a",
25559 .rlen = 47,
25560 }, {
25561 .key = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
25562 "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
25563 "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
25564 "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
25565 .klen = 32,
25566 .iv = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
25567 "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
25568 .assoc = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
25569 "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
25570 "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
25571 "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
25572 .alen = 32,
25573 .input = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
25574 "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
25575 "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
25576 "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
25577 .ilen = 32,
25578 .result = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
25579 "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
25580 "\x62\x48\x08\x64\x86\x6a\xdf\xec"
25581 "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
25582 "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
25583 "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
25584 .rlen = 48,
25585 }, {
25586 .key = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
25587 "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
25588 "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
25589 "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
25590 .klen = 32,
25591 .iv = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
25592 "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
25593 .assoc = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
25594 "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
25595 "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
25596 "\x59\x62\x20\x94\x5c\x67\x50\xc8"
25597 "\x58",
25598 .alen = 33,
25599 .input = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
25600 "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
25601 "\x28\x30\x64\x92\x96\x98\x72\x2e"
25602 "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
25603 "\xdb",
25604 .ilen = 33,
25605 .result = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
25606 "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
25607 "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
25608 "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
25609 "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
25610 "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
25611 "\xc3",
25612 .rlen = 49,
25613 }, {
25614 .key = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
25615 "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
25616 "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
25617 "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
25618 .klen = 32,
25619 .iv = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
25620 "\x46\x02\x63\x00\x01\xc1\x20\x87",
25621 .assoc = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
25622 "\x66\x39\x8f\x24\xff\x8a\x50\x08"
25623 "\x88\x42\xed\xf6\x5a\x90\x14\x42"
25624 "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
25625 "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
25626 "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
25627 "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
25628 "\xe2\xa3\x84\x04\x0b\xe1\xce",
25629 .alen = 63,
25630 .input = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
25631 "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
25632 "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
25633 "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
25634 "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
25635 "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
25636 "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
25637 "\xd5\xa4\x6a\xd4\x09\xc2\x08",
25638 .ilen = 63,
25639 .result = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
25640 "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
25641 "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
25642 "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
25643 "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
25644 "\x1b\x49\x21\x34\x23\x63\x55\x5e"
25645 "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
25646 "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
25647 "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
25648 "\x7f\xfa\xf0\xbf\xc4\x98\x78",
25649 .rlen = 79,
25650 }, {
25651 .key = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
25652 "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
25653 "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
25654 "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
25655 .klen = 32,
25656 .iv = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
25657 "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
25658 .assoc = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
25659 "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
25660 "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
25661 "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
25662 "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
25663 "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
25664 "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
25665 "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
25666 .alen = 64,
25667 .input = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
25668 "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
25669 "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
25670 "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
25671 "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
25672 "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
25673 "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
25674 "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
25675 .ilen = 64,
25676 .result = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
25677 "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
25678 "\x35\x35\x60\x9d\x06\x40\x65\xc1"
25679 "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
25680 "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
25681 "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
25682 "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
25683 "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
25684 "\xce\x9e\x34\x81\xf0\x89\x11\x13"
25685 "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
25686 .rlen = 80,
25687 }, {
25688 .key = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
25689 "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
25690 "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
25691 "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
25692 .klen = 32,
25693 .iv = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
25694 "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
25695 .assoc = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
25696 "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
25697 "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
25698 "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
25699 "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
25700 "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
25701 "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
25702 "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
25703 "\x04",
25704 .alen = 65,
25705 .input = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
25706 "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
25707 "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
25708 "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
25709 "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
25710 "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
25711 "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
25712 "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
25713 "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
25714 "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
25715 "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
25716 "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
25717 "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
25718 "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
25719 "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
25720 "\x07\x68\x22\x2a\x88\x25\x53\xb2"
25721 "\x2f",
25722 .ilen = 129,
25723 .result = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
25724 "\x85\x43\x88\xd0\xd7\x78\x60\x19"
25725 "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
25726 "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
25727 "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
25728 "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
25729 "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
25730 "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
25731 "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
25732 "\x20\xf8\x12\x54\x50\xb3\x11\xda"
25733 "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
25734 "\x38\x67\x56\x65\x59\xda\xe6\x97"
25735 "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
25736 "\x91\x59\x38\x18\x00\xe8\xba\x92"
25737 "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
25738 "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
25739 "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
25740 "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
25741 "\xa5",
25742 .rlen = 145,
25743 }, {
25744 .key = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
25745 "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
25746 "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
25747 "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
25748 .klen = 32,
25749 .iv = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
25750 "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
25751 .assoc = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
25752 "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
25753 "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
25754 "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
25755 "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
25756 "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
25757 "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
25758 "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
25759 "\xce\x83\x2a\x88\x07\x55\xbb\x89"
25760 "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
25761 "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
25762 "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
25763 "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
25764 "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
25765 "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
25766 "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
25767 "\x4b",
25768 .alen = 129,
25769 .input = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
25770 "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
25771 "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
25772 "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
25773 "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
25774 "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
25775 "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
25776 "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
25777 "\x00",
25778 .ilen = 65,
25779 .result = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
25780 "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
25781 "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
25782 "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
25783 "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
25784 "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
25785 "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
25786 "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
25787 "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
25788 "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
25789 "\x72",
25790 .rlen = 81,
25791 }, {
25792 .key = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
25793 "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
25794 "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
25795 "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
25796 .klen = 32,
25797 .iv = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
25798 "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
25799 .assoc = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
25800 "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
25801 "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
25802 "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
25803 .alen = 32,
25804 .input = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
25805 "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
25806 "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
25807 "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
25808 .ilen = 32,
25809 .result = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
25810 "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
25811 "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
25812 "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
25813 "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
25814 "\x69\x0e\x36\x5f\x2f\x22\x8c",
25815 .rlen = 47,
25816 }, {
25817 .key = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
25818 "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
25819 "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
25820 "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
25821 .klen = 32,
25822 .iv = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
25823 "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
25824 .assoc = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
25825 "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
25826 "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
25827 "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
25828 .alen = 32,
25829 .input = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
25830 "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
25831 "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
25832 "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
25833 .ilen = 32,
25834 .result = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
25835 "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
25836 "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
25837 "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
25838 "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
25839 "\x5b\x6f\x7b\xe2\x8c\xe8",
25840 .rlen = 46,
25841 }, {
25842 .key = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
25843 "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
25844 "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
25845 "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
25846 .klen = 32,
25847 .iv = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
25848 "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
25849 .assoc = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
25850 "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
25851 "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
25852 "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
25853 .alen = 32,
25854 .input = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
25855 "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
25856 "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
25857 "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
25858 .ilen = 32,
25859 .result = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
25860 "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
25861 "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
25862 "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
25863 "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
25864 .rlen = 40,
25865 }, {
25866 .key = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
25867 "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
25868 "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
25869 "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
25870 .klen = 32,
25871 .iv = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
25872 "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
25873 .assoc = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
25874 "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
25875 "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
25876 "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
25877 .alen = 32,
25878 .input = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
25879 "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
25880 "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
25881 "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
25882 .ilen = 32,
25883 .result = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
25884 "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
25885 "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
25886 "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
25887 "\x56",
25888 .rlen = 33,
25889 },
25890};
25891
25892static const struct aead_testvec morus1280_dec_tv_template[] = {
25893 {
25894 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
25895 "\x00\x00\x00\x00\x00\x00\x00\x00",
25896 .klen = 16,
25897 .iv = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
25898 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
25899 .assoc = "",
25900 .alen = 0,
25901 .input = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
25902 "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
25903 .ilen = 16,
25904 .result = "",
25905 .rlen = 0,
25906 }, {
25907 .key = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
25908 "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
25909 .klen = 16,
25910 .iv = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
25911 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
25912 .assoc = "",
25913 .alen = 0,
25914 .input = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
25915 "\x96\xda\x76\x34\x33\x4e\xd5\x39"
25916 "\x73",
25917 .ilen = 17,
25918 .result = "\x69",
25919 .rlen = 1,
25920 }, {
25921 .key = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
25922 "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
25923 .klen = 16,
25924 .iv = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
25925 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
25926 .assoc = "",
25927 .alen = 0,
25928 .input = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
25929 "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
25930 "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
25931 "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
25932 "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
25933 "\xa4\x21\x74\xcf\x19\x16\x59",
25934 .ilen = 47,
25935 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
25936 "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
25937 "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
25938 "\x13\x7d\x64\x93\xd7\x05\xf5",
25939 .rlen = 31,
25940 }, {
25941 .key = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
25942 "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
25943 .klen = 16,
25944 .iv = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
25945 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
25946 .assoc = "",
25947 .alen = 0,
25948 .input = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
25949 "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
25950 "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
25951 "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
25952 "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
25953 "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
25954 .ilen = 48,
25955 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
25956 "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
25957 "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
25958 "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
25959 .rlen = 32,
25960 }, {
25961 .key = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
25962 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
25963 .klen = 16,
25964 .iv = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
25965 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
25966 .assoc = "",
25967 .alen = 0,
25968 .input = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
25969 "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
25970 "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
25971 "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
25972 "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
25973 "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
25974 "\xd0",
25975 .ilen = 49,
25976 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
25977 "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
25978 "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
25979 "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
25980 "\xc4",
25981 .rlen = 33,
25982 }, {
25983 .key = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
25984 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
25985 .klen = 16,
25986 .iv = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
25987 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
25988 .assoc = "",
25989 .alen = 0,
25990 .input = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
25991 "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
25992 "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
25993 "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
25994 "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
25995 "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
25996 "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
25997 "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
25998 "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
25999 "\x99\x7a\x72\x9c\x54\x31\xa1",
26000 .ilen = 79,
26001 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
26002 "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
26003 "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
26004 "\x57\x05\x01\x1c\x66\x22\xd3\x51"
26005 "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
26006 "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
26007 "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
26008 "\xe6\x16\xa2\xac\xde\x47\x40",
26009 .rlen = 63,
26010 }, {
26011 .key = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
26012 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
26013 .klen = 16,
26014 .iv = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
26015 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
26016 .assoc = "",
26017 .alen = 0,
26018 .input = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
26019 "\xa5\x07\x12\xa7\x12\x39\x60\x66"
26020 "\x30\x81\x4a\x03\x78\x28\x45\x52"
26021 "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
26022 "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
26023 "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
26024 "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
26025 "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
26026 "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
26027 "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
26028 .ilen = 80,
26029 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
26030 "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
26031 "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
26032 "\x19\x33\xe0\xf4\x40\x81\x72\x28"
26033 "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
26034 "\xb0\x68\x69\xf2\x27\x35\x91\x84"
26035 "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
26036 "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
26037 .rlen = 64,
26038 }, {
26039 .key = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
26040 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
26041 .klen = 16,
26042 .iv = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
26043 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
26044 .assoc = "\xc5",
26045 .alen = 1,
26046 .input = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
26047 "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
26048 .ilen = 16,
26049 .result = "",
26050 .rlen = 0,
26051 }, {
26052 .key = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
26053 "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
26054 .klen = 16,
26055 .iv = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
26056 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
26057 .assoc = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
26058 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
26059 "\xe8\x73\x62\x64\xab\x50\xd0\xda"
26060 "\x6b\x83\x66\xaf\x3e\x27\xc9",
26061 .alen = 31,
26062 .input = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
26063 "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
26064 .ilen = 16,
26065 .result = "",
26066 .rlen = 0,
26067 }, {
26068 .key = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
26069 "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
26070 .klen = 16,
26071 .iv = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
26072 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
26073 .assoc = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
26074 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
26075 "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
26076 "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
26077 .alen = 32,
26078 .input = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
26079 "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
26080 .ilen = 16,
26081 .result = "",
26082 .rlen = 0,
26083 }, {
26084 .key = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
26085 "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
26086 .klen = 16,
26087 .iv = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
26088 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
26089 .assoc = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
26090 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
26091 "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
26092 "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
26093 "\x97",
26094 .alen = 33,
26095 .input = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
26096 "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
26097 .ilen = 16,
26098 .result = "",
26099 .rlen = 0,
26100 }, {
26101 .key = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
26102 "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
26103 .klen = 16,
26104 .iv = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
26105 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
26106 .assoc = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
26107 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
26108 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
26109 "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
26110 "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
26111 "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
26112 "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
26113 "\xcd\x2c\x45\x58\xbd\x8e\x80",
26114 .alen = 63,
26115 .input = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
26116 "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
26117 .ilen = 16,
26118 .result = "",
26119 .rlen = 0,
26120 }, {
26121 .key = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
26122 "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
26123 .klen = 16,
26124 .iv = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
26125 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
26126 .assoc = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
26127 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
26128 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
26129 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
26130 "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
26131 "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
26132 "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
26133 "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
26134 .alen = 64,
26135 .input = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
26136 "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
26137 .ilen = 16,
26138 .result = "",
26139 .rlen = 0,
26140 }, {
26141 .key = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
26142 "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
26143 .klen = 16,
26144 .iv = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
26145 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
26146 .assoc = "\x31",
26147 .alen = 1,
26148 .input = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
26149 "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
26150 "\xbf",
26151 .ilen = 17,
26152 .result = "\x40",
26153 .rlen = 1,
26154 }, {
26155 .key = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
26156 "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
26157 .klen = 16,
26158 .iv = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
26159 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
26160 .assoc = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
26161 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
26162 "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
26163 "\xf4\x94\x9f\xc1\x5a\x61\x85",
26164 .alen = 31,
26165 .input = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
26166 "\x63\x09\x08\x58\xb5\x56\xbd\x72"
26167 "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
26168 "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
26169 "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
26170 "\x85\x87\x17\x09\x42\xed\x4e",
26171 .ilen = 47,
26172 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
26173 "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
26174 "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
26175 "\x24\xa0\xd6\xb7\x11\x79\x6c",
26176 .rlen = 31,
26177 }, {
26178 .key = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
26179 "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
26180 .klen = 16,
26181 .iv = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
26182 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
26183 .assoc = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
26184 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
26185 "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
26186 "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
26187 .alen = 32,
26188 .input = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
26189 "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
26190 "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
26191 "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
26192 "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
26193 "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
26194 .ilen = 48,
26195 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
26196 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
26197 "\xdb\x74\x36\x23\x11\x58\x3f\x93"
26198 "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
26199 .rlen = 32,
26200 }, {
26201 .key = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
26202 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
26203 .klen = 16,
26204 .iv = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
26205 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
26206 .assoc = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
26207 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
26208 "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
26209 "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
26210 "\xee",
26211 .alen = 33,
26212 .input = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
26213 "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
26214 "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
26215 "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
26216 "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
26217 "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
26218 "\x5e",
26219 .ilen = 49,
26220 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
26221 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
26222 "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
26223 "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
26224 "\x72",
26225 .rlen = 33,
26226 }, {
26227 .key = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
26228 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
26229 .klen = 16,
26230 .iv = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
26231 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
26232 .assoc = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
26233 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
26234 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
26235 "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
26236 "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
26237 "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
26238 "\x10\x0b\x56\x85\xad\x54\xaa\x66"
26239 "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
26240 .alen = 63,
26241 .input = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
26242 "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
26243 "\xef\x36\x19\xae\x91\xfa\xd6\x63"
26244 "\x46\xea\x8a\x39\x14\x21\xa6\x37"
26245 "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
26246 "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
26247 "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
26248 "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
26249 "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
26250 "\x4f\x20\x37\xdb\x7b\x22\xa3",
26251 .ilen = 79,
26252 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
26253 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
26254 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
26255 "\x68\x28\x73\x40\x9f\x96\x4a\x60"
26256 "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
26257 "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
26258 "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
26259 "\x9c\x44\xb2\xa4\x99\x98\x34",
26260 .rlen = 63,
26261 }, {
26262 .key = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
26263 "\x10\x57\x85\x39\x93\x8f\xaf\x70",
26264 .klen = 16,
26265 .iv = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
26266 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
26267 .assoc = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
26268 "\x50\xc4\xde\x82\x90\x21\x11\x73"
26269 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
26270 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
26271 "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
26272 "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
26273 "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
26274 "\x77\x47\x63\x14\x95\x3d\xe4\x34",
26275 .alen = 64,
26276 .input = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
26277 "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
26278 "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
26279 "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
26280 "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
26281 "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
26282 "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
26283 "\xec\x99\x7d\x61\xb3\x15\x93\xed"
26284 "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
26285 "\x95\x74\x44\xd5\x54\xa6\x27\x06",
26286 .ilen = 80,
26287 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
26288 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
26289 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
26290 "\x29\x56\x52\x19\x79\xf5\xe9\x37"
26291 "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
26292 "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
26293 "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
26294 "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
26295 .rlen = 64,
26296 }, {
26297 .key = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
26298 "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
26299 .klen = 16,
26300 .iv = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
26301 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
26302 .assoc = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
26303 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
26304 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
26305 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
26306 "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
26307 "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
26308 "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
26309 "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
26310 "\x58",
26311 .alen = 65,
26312 .input = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
26313 "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
26314 "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
26315 "\x38\xa4\x74\xa5\x04\x15\x63\x05"
26316 "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
26317 "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
26318 "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
26319 "\x42\x01\xe6\xbc\x75\x15\x87\xee"
26320 "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
26321 "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
26322 "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
26323 "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
26324 "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
26325 "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
26326 "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
26327 "\x4f\x61\x64\x37\x22\x36\x6d\x78"
26328 "\xed\xed\x35\xe8\x83\xa5\xec\x25"
26329 "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
26330 "\x20",
26331 .ilen = 145,
26332 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
26333 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
26334 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
26335 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
26336 "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
26337 "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
26338 "\x75\x73\x20\x30\x59\x54\xb2\xf0"
26339 "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
26340 "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
26341 "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
26342 "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
26343 "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
26344 "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
26345 "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
26346 "\x33\x16\x59\x6c\x3b\xef\x88\xad"
26347 "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
26348 "\x36",
26349 .rlen = 129,
26350 }, {
26351 .key = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
26352 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
26353 .klen = 16,
26354 .iv = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
26355 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
26356 .assoc = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
26357 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
26358 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
26359 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
26360 "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
26361 "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
26362 "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
26363 "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
26364 "\x21\xf7\x42\x89\xac\x12\x2a\x54"
26365 "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
26366 "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
26367 "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
26368 "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
26369 "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
26370 "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
26371 "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
26372 "\x51",
26373 .alen = 129,
26374 .input = "\x36\x78\xb9\x22\xde\x62\x35\x55"
26375 "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
26376 "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
26377 "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
26378 "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
26379 "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
26380 "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
26381 "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
26382 "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
26383 "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
26384 "\xa2",
26385 .ilen = 81,
26386 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
26387 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
26388 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
26389 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
26390 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
26391 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
26392 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
26393 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
26394 "\x54",
26395 .rlen = 65,
26396 }, {
26397 .key = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
26398 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
26399 .klen = 16,
26400 .iv = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
26401 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
26402 .assoc = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
26403 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
26404 "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
26405 "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
26406 .alen = 32,
26407 .input = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
26408 "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
26409 "\x89\x14\x33\x70\x0a\xbc\xea\x39"
26410 "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
26411 "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
26412 "\x2f\x03\x30\x05\x47\xaf\x34",
26413 .ilen = 47,
26414 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
26415 "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
26416 "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
26417 "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
26418 .rlen = 32,
26419 }, {
26420 .key = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
26421 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
26422 .klen = 16,
26423 .iv = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
26424 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
26425 .assoc = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
26426 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
26427 "\x39\x14\x05\xa0\xf3\x10\xec\x41"
26428 "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
26429 .alen = 32,
26430 .input = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
26431 "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
26432 "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
26433 "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
26434 "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
26435 "\xb9\x9c\xe5\xef\xf2\x05",
26436 .ilen = 46,
26437 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
26438 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
26439 "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
26440 "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
26441 .rlen = 32,
26442 }, {
26443 .key = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
26444 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
26445 .klen = 16,
26446 .iv = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
26447 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
26448 .assoc = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
26449 "\xd5\x07\x58\x59\x72\xd7\xde\x92"
26450 "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
26451 "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
26452 .alen = 32,
26453 .input = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
26454 "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
26455 "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
26456 "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
26457 "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
26458 .ilen = 40,
26459 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
26460 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
26461 "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
26462 "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
26463 .rlen = 32,
26464 }, {
26465 .key = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
26466 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
26467 .klen = 16,
26468 .iv = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
26469 "\x36\xab\xde\xc6\x6d\x32\x70\x17",
26470 .assoc = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
26471 "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
26472 "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
26473 "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
26474 .alen = 32,
26475 .input = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
26476 "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
26477 "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
26478 "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
26479 "\x1a",
26480 .ilen = 33,
26481 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
26482 "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
26483 "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
26484 "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
26485 .rlen = 32,
26486 }, {
26487 .key = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
26488 "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
26489 "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
26490 "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
26491 .klen = 32,
26492 .iv = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
26493 "\xb7\x85\x90\x58\x67\x57\x33\x1d",
26494 .assoc = "",
26495 .alen = 0,
26496 .input = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
26497 "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
26498 .ilen = 16,
26499 .result = "",
26500 .rlen = 0,
26501 }, {
26502 .key = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
26503 "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
26504 "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
26505 "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
26506 .klen = 32,
26507 .iv = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
26508 "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
26509 .assoc = "",
26510 .alen = 0,
26511 .input = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
26512 "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
26513 "\x53",
26514 .ilen = 17,
26515 .result = "\x53",
26516 .rlen = 1,
26517 }, {
26518 .key = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
26519 "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
26520 "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
26521 "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
26522 .klen = 32,
26523 .iv = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
26524 "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
26525 .assoc = "",
26526 .alen = 0,
26527 .input = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
26528 "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
26529 "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
26530 "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
26531 "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
26532 "\xb8\x4d\x11\x42\xd1\xf8\xf1",
26533 .ilen = 47,
26534 .result = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
26535 "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
26536 "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
26537 "\xf6\xf0\x27\xb4\x25\x4c\x83",
26538 .rlen = 31,
26539 }, {
26540 .key = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
26541 "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
26542 "\xa2\x40\x45\x77\x90\x80\x37\xce"
26543 "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
26544 .klen = 32,
26545 .iv = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
26546 "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
26547 .assoc = "",
26548 .alen = 0,
26549 .input = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
26550 "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
26551 "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
26552 "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
26553 "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
26554 "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
26555 .ilen = 48,
26556 .result = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
26557 "\x7a\x81\xff\x55\x52\x56\xdc\x33"
26558 "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
26559 "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
26560 .rlen = 32,
26561 }, {
26562 .key = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
26563 "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
26564 "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
26565 "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
26566 .klen = 32,
26567 .iv = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
26568 "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
26569 .assoc = "",
26570 .alen = 0,
26571 .input = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
26572 "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
26573 "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
26574 "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
26575 "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
26576 "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
26577 "\x32",
26578 .ilen = 49,
26579 .result = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
26580 "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
26581 "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
26582 "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
26583 "\x2e",
26584 .rlen = 33,
26585 }, {
26586 .key = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
26587 "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
26588 "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
26589 "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
26590 .klen = 32,
26591 .iv = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
26592 "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
26593 .assoc = "",
26594 .alen = 0,
26595 .input = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
26596 "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
26597 "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
26598 "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
26599 "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
26600 "\x01\xb7\x39\xa6\x51\x15\xca\xff"
26601 "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
26602 "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
26603 "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
26604 "\xaa\x2d\xfc\x4e\x35\x05\x59",
26605 .ilen = 79,
26606 .result = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
26607 "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
26608 "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
26609 "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
26610 "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
26611 "\x22\xda\x52\x8b\x7d\x11\x98\xea"
26612 "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
26613 "\x20\x76\x5a\xdc\x4e\x71\x13",
26614 .rlen = 63,
26615 }, {
26616 .key = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
26617 "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
26618 "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
26619 "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
26620 .klen = 32,
26621 .iv = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
26622 "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
26623 .assoc = "",
26624 .alen = 0,
26625 .input = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
26626 "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
26627 "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
26628 "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
26629 "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
26630 "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
26631 "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
26632 "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
26633 "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
26634 "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
26635 .ilen = 80,
26636 .result = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
26637 "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
26638 "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
26639 "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
26640 "\x4b\x62\x87\x7c\x15\x38\xda\x70"
26641 "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
26642 "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
26643 "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
26644 .rlen = 64,
26645 }, {
26646 .key = "\x90\x96\x36\xea\x03\x74\x18\x7a"
26647 "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
26648 "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
26649 "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
26650 .klen = 32,
26651 .iv = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
26652 "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
26653 .assoc = "\xaf",
26654 .alen = 1,
26655 .input = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
26656 "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
26657 .ilen = 16,
26658 .result = "",
26659 .rlen = 0,
26660 }, {
26661 .key = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
26662 "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
26663 "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
26664 "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
26665 .klen = 32,
26666 .iv = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
26667 "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
26668 .assoc = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
26669 "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
26670 "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
26671 "\x4e\xf6\x29\xd1\x8b\x6f\x56",
26672 .alen = 31,
26673 .input = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
26674 "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
26675 .ilen = 16,
26676 .result = "",
26677 .rlen = 0,
26678 }, {
26679 .key = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
26680 "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
26681 "\xa0\xce\x8a\x91\xae\x40\x43\x68"
26682 "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
26683 .klen = 32,
26684 .iv = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
26685 "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
26686 .assoc = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
26687 "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
26688 "\x35\x2f\x90\xd3\x31\x90\x04\x74"
26689 "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
26690 .alen = 32,
26691 .input = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
26692 "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
26693 .ilen = 16,
26694 .result = "",
26695 .rlen = 0,
26696 }, {
26697 .key = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
26698 "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
26699 "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
26700 "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
26701 .klen = 32,
26702 .iv = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
26703 "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
26704 .assoc = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
26705 "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
26706 "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
26707 "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
26708 "\x01",
26709 .alen = 33,
26710 .input = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
26711 "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
26712 .ilen = 16,
26713 .result = "",
26714 .rlen = 0,
26715 }, {
26716 .key = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
26717 "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
26718 "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
26719 "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
26720 .klen = 32,
26721 .iv = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
26722 "\x41\xe5\x36\x97\x25\xe7\x90\x61",
26723 .assoc = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
26724 "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
26725 "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
26726 "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
26727 "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
26728 "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
26729 "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
26730 "\x07\x8c\xfc\x88\x2d\xb8\x53",
26731 .alen = 63,
26732 .input = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
26733 "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
26734 .ilen = 16,
26735 .result = "",
26736 .rlen = 0,
26737 }, {
26738 .key = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
26739 "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
26740 "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
26741 "\xf3\x95\x35\x46\x86\xbb\x04\x03",
26742 .klen = 32,
26743 .iv = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
26744 "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
26745 .assoc = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
26746 "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
26747 "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
26748 "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
26749 "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
26750 "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
26751 "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
26752 "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
26753 .alen = 64,
26754 .input = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
26755 "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
26756 .ilen = 16,
26757 .result = "",
26758 .rlen = 0,
26759 }, {
26760 .key = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
26761 "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
26762 "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
26763 "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
26764 .klen = 32,
26765 .iv = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
26766 "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
26767 .assoc = "\x1a",
26768 .alen = 1,
26769 .input = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
26770 "\x17\x75\x81\x16\xdf\x26\xff\x67"
26771 "\x92",
26772 .ilen = 17,
26773 .result = "\x29",
26774 .rlen = 1,
26775 }, {
26776 .key = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
26777 "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
26778 "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
26779 "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
26780 .klen = 32,
26781 .iv = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
26782 "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
26783 .assoc = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
26784 "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
26785 "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
26786 "\xd6\x07\x62\xe3\xa8\xa9\x12",
26787 .alen = 31,
26788 .input = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
26789 "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
26790 "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
26791 "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
26792 "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
26793 "\x76\xc3\xf5\x3a\x76\xfd\x4a",
26794 .ilen = 47,
26795 .result = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
26796 "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
26797 "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
26798 "\x06\x13\x9a\xd9\x5e\xc0\xfa",
26799 .rlen = 31,
26800 }, {
26801 .key = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
26802 "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
26803 "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
26804 "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
26805 .klen = 32,
26806 .iv = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
26807 "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
26808 .assoc = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
26809 "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
26810 "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
26811 "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
26812 .alen = 32,
26813 .input = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
26814 "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
26815 "\x62\x48\x08\x64\x86\x6a\xdf\xec"
26816 "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
26817 "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
26818 "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
26819 .ilen = 48,
26820 .result = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
26821 "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
26822 "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
26823 "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
26824 .rlen = 32,
26825 }, {
26826 .key = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
26827 "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
26828 "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
26829 "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
26830 .klen = 32,
26831 .iv = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
26832 "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
26833 .assoc = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
26834 "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
26835 "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
26836 "\x59\x62\x20\x94\x5c\x67\x50\xc8"
26837 "\x58",
26838 .alen = 33,
26839 .input = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
26840 "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
26841 "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
26842 "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
26843 "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
26844 "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
26845 "\xc3",
26846 .ilen = 49,
26847 .result = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
26848 "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
26849 "\x28\x30\x64\x92\x96\x98\x72\x2e"
26850 "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
26851 "\xdb",
26852 .rlen = 33,
26853 }, {
26854 .key = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
26855 "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
26856 "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
26857 "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
26858 .klen = 32,
26859 .iv = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
26860 "\x46\x02\x63\x00\x01\xc1\x20\x87",
26861 .assoc = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
26862 "\x66\x39\x8f\x24\xff\x8a\x50\x08"
26863 "\x88\x42\xed\xf6\x5a\x90\x14\x42"
26864 "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
26865 "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
26866 "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
26867 "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
26868 "\xe2\xa3\x84\x04\x0b\xe1\xce",
26869 .alen = 63,
26870 .input = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
26871 "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
26872 "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
26873 "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
26874 "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
26875 "\x1b\x49\x21\x34\x23\x63\x55\x5e"
26876 "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
26877 "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
26878 "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
26879 "\x7f\xfa\xf0\xbf\xc4\x98\x78",
26880 .ilen = 79,
26881 .result = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
26882 "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
26883 "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
26884 "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
26885 "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
26886 "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
26887 "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
26888 "\xd5\xa4\x6a\xd4\x09\xc2\x08",
26889 .rlen = 63,
26890 }, {
26891 .key = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
26892 "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
26893 "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
26894 "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
26895 .klen = 32,
26896 .iv = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
26897 "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
26898 .assoc = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
26899 "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
26900 "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
26901 "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
26902 "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
26903 "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
26904 "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
26905 "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
26906 .alen = 64,
26907 .input = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
26908 "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
26909 "\x35\x35\x60\x9d\x06\x40\x65\xc1"
26910 "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
26911 "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
26912 "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
26913 "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
26914 "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
26915 "\xce\x9e\x34\x81\xf0\x89\x11\x13"
26916 "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
26917 .ilen = 80,
26918 .result = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
26919 "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
26920 "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
26921 "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
26922 "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
26923 "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
26924 "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
26925 "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
26926 .rlen = 64,
26927 }, {
26928 .key = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
26929 "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
26930 "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
26931 "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
26932 .klen = 32,
26933 .iv = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
26934 "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
26935 .assoc = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
26936 "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
26937 "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
26938 "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
26939 "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
26940 "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
26941 "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
26942 "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
26943 "\x04",
26944 .alen = 65,
26945 .input = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
26946 "\x85\x43\x88\xd0\xd7\x78\x60\x19"
26947 "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
26948 "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
26949 "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
26950 "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
26951 "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
26952 "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
26953 "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
26954 "\x20\xf8\x12\x54\x50\xb3\x11\xda"
26955 "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
26956 "\x38\x67\x56\x65\x59\xda\xe6\x97"
26957 "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
26958 "\x91\x59\x38\x18\x00\xe8\xba\x92"
26959 "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
26960 "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
26961 "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
26962 "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
26963 "\xa5",
26964 .ilen = 145,
26965 .result = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
26966 "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
26967 "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
26968 "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
26969 "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
26970 "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
26971 "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
26972 "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
26973 "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
26974 "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
26975 "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
26976 "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
26977 "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
26978 "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
26979 "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
26980 "\x07\x68\x22\x2a\x88\x25\x53\xb2"
26981 "\x2f",
26982 .rlen = 129,
26983 }, {
26984 .key = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
26985 "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
26986 "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
26987 "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
26988 .klen = 32,
26989 .iv = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
26990 "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
26991 .assoc = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
26992 "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
26993 "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
26994 "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
26995 "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
26996 "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
26997 "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
26998 "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
26999 "\xce\x83\x2a\x88\x07\x55\xbb\x89"
27000 "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
27001 "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
27002 "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
27003 "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
27004 "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
27005 "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
27006 "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
27007 "\x4b",
27008 .alen = 129,
27009 .input = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
27010 "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
27011 "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
27012 "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
27013 "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
27014 "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
27015 "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
27016 "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
27017 "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
27018 "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
27019 "\x72",
27020 .ilen = 81,
27021 .result = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
27022 "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
27023 "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
27024 "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
27025 "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
27026 "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
27027 "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
27028 "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
27029 "\x00",
27030 .rlen = 65,
27031 }, {
27032 .key = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
27033 "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
27034 "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
27035 "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
27036 .klen = 32,
27037 .iv = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
27038 "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
27039 .assoc = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
27040 "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
27041 "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
27042 "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
27043 .alen = 32,
27044 .input = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
27045 "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
27046 "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
27047 "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
27048 "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
27049 "\x69\x0e\x36\x5f\x2f\x22\x8c",
27050 .ilen = 47,
27051 .result = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
27052 "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
27053 "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
27054 "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
27055 .rlen = 32,
27056 }, {
27057 .key = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
27058 "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
27059 "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
27060 "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
27061 .klen = 32,
27062 .iv = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
27063 "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
27064 .assoc = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
27065 "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
27066 "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
27067 "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
27068 .alen = 32,
27069 .input = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
27070 "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
27071 "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
27072 "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
27073 "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
27074 "\x5b\x6f\x7b\xe2\x8c\xe8",
27075 .ilen = 46,
27076 .result = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
27077 "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
27078 "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
27079 "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
27080 .rlen = 32,
27081 }, {
27082 .key = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
27083 "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
27084 "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
27085 "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
27086 .klen = 32,
27087 .iv = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
27088 "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
27089 .assoc = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
27090 "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
27091 "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
27092 "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
27093 .alen = 32,
27094 .input = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
27095 "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
27096 "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
27097 "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
27098 "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
27099 .ilen = 40,
27100 .result = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
27101 "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
27102 "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
27103 "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
27104 .rlen = 32,
27105 }, {
27106 .key = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
27107 "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
27108 "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
27109 "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
27110 .klen = 32,
27111 .iv = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
27112 "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
27113 .assoc = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
27114 "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
27115 "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
27116 "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
27117 .alen = 32,
27118 .input = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
27119 "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
27120 "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
27121 "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
27122 "\x56",
27123 .ilen = 33,
27124 .result = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
27125 "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
27126 "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
27127 "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
27128 .rlen = 32,
27129 },
27130};
27131
27132/*
Stephan Mueller35351982015-09-21 20:59:56 +020027133 * All key wrapping test vectors taken from
27134 * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
27135 *
27136 * Note: as documented in keywrap.c, the ivout for encryption is the first
27137 * semiblock of the ciphertext from the test vector. For decryption, iv is
27138 * the first semiblock of the ciphertext.
27139 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027140static const struct cipher_testvec aes_kw_tv_template[] = {
Stephan Mueller35351982015-09-21 20:59:56 +020027141 {
27142 .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
27143 "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
27144 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027145 .ptext = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
Stephan Mueller35351982015-09-21 20:59:56 +020027146 "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027147 .ctext = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
Stephan Mueller35351982015-09-21 20:59:56 +020027148 "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027149 .len = 16,
27150 .iv = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
27151 .generates_iv = true,
Eric Biggers4074a772018-05-20 22:50:28 -070027152 }, {
27153 .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
27154 "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
27155 "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
27156 "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
27157 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027158 .ptext = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
Eric Biggers4074a772018-05-20 22:50:28 -070027159 "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027160 .ctext = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
Eric Biggers4074a772018-05-20 22:50:28 -070027161 "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027162 .len = 16,
Stephan Mueller35351982015-09-21 20:59:56 +020027163 .iv = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027164 .generates_iv = true,
Stephan Mueller35351982015-09-21 20:59:56 +020027165 },
27166};
27167
27168/*
Jarod Wilsone08ca2d2009-05-04 19:46:29 +080027169 * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
27170 * test vectors, taken from Appendix B.2.9 and B.2.10:
27171 * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
27172 * Only AES-128 is supported at this time.
27173 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080027174static const struct cprng_testvec ansi_cprng_aes_tv_template[] = {
Jarod Wilsone08ca2d2009-05-04 19:46:29 +080027175 {
27176 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
27177 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
27178 .klen = 16,
27179 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
27180 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
27181 .dtlen = 16,
27182 .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
27183 "\x00\x00\x00\x00\x00\x00\x00\x00",
27184 .vlen = 16,
27185 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
27186 "\x84\x79\x66\x85\xc1\x2f\x76\x41",
27187 .rlen = 16,
27188 .loops = 1,
27189 }, {
27190 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
27191 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
27192 .klen = 16,
27193 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
27194 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
27195 .dtlen = 16,
27196 .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
27197 "\x00\x00\x00\x00\x00\x00\x00\x00",
27198 .vlen = 16,
27199 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
27200 "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
27201 .rlen = 16,
27202 .loops = 1,
27203 }, {
27204 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
27205 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
27206 .klen = 16,
27207 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
27208 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
27209 .dtlen = 16,
27210 .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
27211 "\x00\x00\x00\x00\x00\x00\x00\x00",
27212 .vlen = 16,
27213 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
27214 "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
27215 .rlen = 16,
27216 .loops = 1,
27217 }, {
27218 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
27219 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
27220 .klen = 16,
27221 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
27222 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
27223 .dtlen = 16,
27224 .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
27225 "\x00\x00\x00\x00\x00\x00\x00\x00",
27226 .vlen = 16,
27227 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
27228 "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
27229 .rlen = 16,
27230 .loops = 1,
27231 }, {
27232 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
27233 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
27234 .klen = 16,
27235 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
27236 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
27237 .dtlen = 16,
27238 .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
27239 "\x00\x00\x00\x00\x00\x00\x00\x00",
27240 .vlen = 16,
27241 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
27242 "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
27243 .rlen = 16,
27244 .loops = 1,
27245 }, { /* Monte Carlo Test */
27246 .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
27247 "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
27248 .klen = 16,
27249 .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
27250 "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
27251 .dtlen = 16,
27252 .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
27253 "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
27254 .vlen = 16,
27255 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
27256 "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
27257 .rlen = 16,
27258 .loops = 10000,
27259 },
27260};
27261
Stephan Mueller3332ee22014-05-31 17:24:38 +020027262/*
27263 * SP800-90A DRBG Test vectors from
27264 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
27265 *
27266 * Test vectors for DRBG with prediction resistance. All types of DRBGs
27267 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
27268 * w/o personalization string, w/ and w/o additional input string).
27269 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080027270static const struct drbg_testvec drbg_pr_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020027271 {
27272 .entropy = (unsigned char *)
27273 "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
27274 "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
27275 "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
27276 "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
27277 .entropylen = 48,
27278 .entpra = (unsigned char *)
27279 "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
27280 "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
27281 "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
27282 .entprb = (unsigned char *)
27283 "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
27284 "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
27285 "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
27286 .entprlen = 32,
27287 .expected = (unsigned char *)
27288 "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
27289 "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
27290 "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
27291 "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
27292 "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
27293 "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
27294 "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
27295 "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
27296 "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
27297 "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
27298 "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
27299 .expectedlen = 128,
27300 .addtla = NULL,
27301 .addtlb = NULL,
27302 .addtllen = 0,
27303 .pers = NULL,
27304 .perslen = 0,
27305 }, {
27306 .entropy = (unsigned char *)
27307 "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
27308 "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
27309 "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
27310 "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
27311 .entropylen = 48,
27312 .entpra = (unsigned char *)
27313 "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
27314 "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
27315 "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
27316 .entprb = (unsigned char *)
27317 "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
27318 "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
27319 "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
27320 .entprlen = 32,
27321 .expected = (unsigned char *)
27322 "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
27323 "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
27324 "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
27325 "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
27326 "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
27327 "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
27328 "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
27329 "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
27330 "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
27331 "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
27332 "\x50\x47\xa3\x63\x81\x16\xaf\x19",
27333 .expectedlen = 128,
27334 .addtla = (unsigned char *)
27335 "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
27336 "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
27337 "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
27338 .addtlb = (unsigned char *)
27339 "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
27340 "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
27341 "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
27342 .addtllen = 32,
27343 .pers = NULL,
27344 .perslen = 0,
27345 }, {
27346 .entropy = (unsigned char *)
27347 "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
27348 "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
27349 "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
27350 "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
27351 .entropylen = 48,
27352 .entpra = (unsigned char *)
27353 "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
27354 "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
27355 "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
27356 .entprb = (unsigned char *)
27357 "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
27358 "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
27359 "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
27360 .entprlen = 32,
27361 .expected = (unsigned char *)
27362 "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
27363 "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
27364 "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
27365 "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
27366 "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
27367 "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
27368 "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
27369 "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
27370 "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
27371 "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
27372 "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
27373 .expectedlen = 128,
27374 .addtla = NULL,
27375 .addtlb = NULL,
27376 .addtllen = 0,
27377 .pers = (unsigned char *)
27378 "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
27379 "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
27380 "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
27381 .perslen = 32,
27382 }, {
27383 .entropy = (unsigned char *)
27384 "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
27385 "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
27386 "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
27387 "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
27388 .entropylen = 48,
27389 .entpra = (unsigned char *)
27390 "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
27391 "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
27392 "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
27393 .entprb = (unsigned char *)
27394 "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
27395 "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
27396 "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
27397 .entprlen = 32,
27398 .expected = (unsigned char *)
27399 "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
27400 "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
27401 "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
27402 "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
27403 "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
27404 "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
27405 "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
27406 "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
27407 "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
27408 "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
27409 "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
27410 .expectedlen = 128,
27411 .addtla = (unsigned char *)
27412 "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
27413 "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
27414 "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
27415 .addtlb = (unsigned char *)
27416 "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
27417 "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
27418 "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
27419 .addtllen = 32,
27420 .pers = (unsigned char *)
27421 "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
27422 "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
27423 "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
27424 .perslen = 32,
27425 },
27426};
27427
Eric Biggersb13b1e02017-02-24 15:46:59 -080027428static const struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020027429 {
27430 .entropy = (unsigned char *)
27431 "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
27432 "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
27433 "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
27434 "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
27435 .entropylen = 48,
27436 .entpra = (unsigned char *)
27437 "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
27438 "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
27439 "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
27440 .entprb = (unsigned char *)
27441 "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
27442 "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
27443 "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
27444 .entprlen = 32,
27445 .expected = (unsigned char *)
27446 "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
27447 "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
27448 "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
27449 "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
27450 "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
27451 "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
27452 "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
27453 "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
27454 "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
27455 "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
27456 "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
27457 .expectedlen = 128,
27458 .addtla = NULL,
27459 .addtlb = NULL,
27460 .addtllen = 0,
27461 .pers = NULL,
27462 .perslen = 0,
27463 }, {
27464 .entropy = (unsigned char *)
27465 "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
27466 "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
27467 "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
27468 "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
27469 .entropylen = 48,
27470 .entpra = (unsigned char *)
27471 "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
27472 "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
27473 "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
27474 .entprb = (unsigned char *)
27475 "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
27476 "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
27477 "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
27478 .entprlen = 32,
27479 .expected = (unsigned char *)
27480 "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
27481 "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
27482 "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
27483 "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
27484 "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
27485 "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
27486 "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
27487 "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
27488 "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
27489 "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
27490 "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
27491 .expectedlen = 128,
27492 .addtla = (unsigned char *)
27493 "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
27494 "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
27495 "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
27496 .addtlb = (unsigned char *)
27497 "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
27498 "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
27499 "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
27500 .addtllen = 32,
27501 .pers = NULL,
27502 .perslen = 0,
27503 }, {
27504 .entropy = (unsigned char *)
27505 "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
27506 "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
27507 "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
27508 "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
27509 .entropylen = 48,
27510 .entpra = (unsigned char *)
27511 "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
27512 "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
27513 "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
27514 .entprb = (unsigned char *)
27515 "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
27516 "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
27517 "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
27518 .entprlen = 32,
27519 .expected = (unsigned char *)
27520 "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
27521 "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
27522 "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
27523 "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
27524 "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
27525 "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
27526 "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
27527 "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
27528 "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
27529 "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
27530 "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
27531 .expectedlen = 128,
27532 .addtla = NULL,
27533 .addtlb = NULL,
27534 .addtllen = 0,
27535 .pers = (unsigned char *)
27536 "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
27537 "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
27538 "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
27539 .perslen = 32,
27540 }, {
27541 .entropy = (unsigned char *)
27542 "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
27543 "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
27544 "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
27545 "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
27546 .entropylen = 48,
27547 .entpra = (unsigned char *)
27548 "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
27549 "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
27550 "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
27551 .entprb = (unsigned char *)
27552 "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
27553 "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
27554 "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
27555 .entprlen = 32,
27556 .expected = (unsigned char *)
27557 "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
27558 "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
27559 "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
27560 "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
27561 "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
27562 "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
27563 "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
27564 "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
27565 "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
27566 "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
27567 "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
27568 .expectedlen = 128,
27569 .addtla = (unsigned char *)
27570 "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
27571 "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
27572 "\x86\x88\x55\x28\xc1\x69\xdd\x76",
27573 .addtlb = (unsigned char *)
27574 "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
27575 "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
27576 "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
27577 .addtllen = 32,
27578 .pers = (unsigned char *)
27579 "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
27580 "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
27581 "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
27582 .perslen = 32,
27583 },
27584};
27585
Eric Biggersb13b1e02017-02-24 15:46:59 -080027586static const struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020027587 {
27588 .entropy = (unsigned char *)
27589 "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
27590 "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
27591 .entropylen = 24,
27592 .entpra = (unsigned char *)
27593 "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
27594 "\xb4\xec\x80\xb1",
27595 .entprb = (unsigned char *)
27596 "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
27597 "\x28\x07\xeb\xc2",
27598 .entprlen = 16,
27599 .expected = (unsigned char *)
27600 "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
27601 "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
27602 "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
27603 "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
27604 "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
27605 "\x8a\xf1\x23\xa8",
27606 .expectedlen = 64,
27607 .addtla = NULL,
27608 .addtlb = NULL,
27609 .addtllen = 0,
27610 .pers = NULL,
27611 .perslen = 0,
27612 }, {
27613 .entropy = (unsigned char *)
27614 "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
27615 "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
27616 .entropylen = 24,
27617 .entpra = (unsigned char *)
27618 "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
27619 "\x67\xd1\x08\xf8",
27620 .entprb = (unsigned char *)
27621 "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
27622 "\xd4\xba\x04\x58",
27623 .entprlen = 16,
27624 .expected = (unsigned char *)
27625 "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
27626 "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
27627 "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
27628 "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
27629 "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
27630 "\xc1\x02\x41\x82",
27631 .expectedlen = 64,
27632 .addtla = (unsigned char *)
27633 "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
27634 "\xeb\xb3\x01\x76",
27635 .addtlb = (unsigned char *)
27636 "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
27637 "\xd0\x7f\xcc\x43",
27638 .addtllen = 16,
27639 .pers = NULL,
27640 .perslen = 0,
27641 }, {
27642 .entropy = (unsigned char *)
27643 "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
27644 "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
27645 .entropylen = 24,
27646 .entpra = (unsigned char *)
27647 "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
27648 "\xc3\x0f\xe3\xb0",
27649 .entprb = (unsigned char *)
27650 "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
27651 "\xd6\x9c\x9d\xe8",
27652 .entprlen = 16,
27653 .expected = (unsigned char *)
27654 "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
27655 "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
27656 "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
27657 "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
27658 "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
27659 "\x72\x82\x0c\xcf",
27660 .expectedlen = 64,
27661 .addtla = NULL,
27662 .addtlb = NULL,
27663 .addtllen = 0,
27664 .pers = (unsigned char *)
27665 "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
27666 "\x21\x52\xb3\xad",
27667 .perslen = 16,
27668 }, {
27669 .entropy = (unsigned char *)
27670 "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
27671 "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
27672 .entropylen = 24,
27673 .entpra = (unsigned char *)
27674 "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
27675 "\xc4\x2c\xe8\x10",
27676 .entprb = (unsigned char *)
27677 "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
27678 "\x08\xf7\xa5\x01",
27679 .entprlen = 16,
27680 .expected = (unsigned char *)
27681 "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
27682 "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
27683 "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
27684 "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
27685 "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
27686 "\x23\xc5\x1f\x68",
27687 .expectedlen = 64,
27688 .addtla = (unsigned char *)
27689 "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
27690 "\x23\x6d\xad\x1d",
27691 .addtlb = (unsigned char *)
27692 "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
27693 "\xbc\x59\x31\x8c",
27694 .addtllen = 16,
27695 .pers = (unsigned char *)
27696 "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
27697 "\x37\x3c\x5c\x0b",
27698 .perslen = 16,
27699 },
27700};
27701
27702/*
27703 * SP800-90A DRBG Test vectors from
27704 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
27705 *
27706 * Test vectors for DRBG without prediction resistance. All types of DRBGs
27707 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
27708 * w/o personalization string, w/ and w/o additional input string).
27709 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080027710static const struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020027711 {
27712 .entropy = (unsigned char *)
27713 "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
27714 "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
27715 "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
27716 "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
27717 .entropylen = 48,
27718 .expected = (unsigned char *)
27719 "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
27720 "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
27721 "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
27722 "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
27723 "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
27724 "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
27725 "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
27726 "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
27727 "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
27728 "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
27729 "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
27730 .expectedlen = 128,
27731 .addtla = NULL,
27732 .addtlb = NULL,
27733 .addtllen = 0,
27734 .pers = NULL,
27735 .perslen = 0,
27736 }, {
27737 .entropy = (unsigned char *)
27738 "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
27739 "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
27740 "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
27741 "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
27742 .entropylen = 48,
27743 .expected = (unsigned char *)
27744 "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
27745 "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
27746 "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
27747 "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
27748 "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
27749 "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
27750 "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
27751 "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
27752 "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
27753 "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
27754 "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
27755 .expectedlen = 128,
27756 .addtla = (unsigned char *)
27757 "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
27758 "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
27759 "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
27760 .addtlb = (unsigned char *)
27761 "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
27762 "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
27763 "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
27764 .addtllen = 32,
27765 .pers = NULL,
27766 .perslen = 0,
27767 }, {
27768 .entropy = (unsigned char *)
27769 "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
27770 "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
27771 "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
27772 "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
27773 .entropylen = 48,
27774 .expected = (unsigned char *)
27775 "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
27776 "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
27777 "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
27778 "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
27779 "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
27780 "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
27781 "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
27782 "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
27783 "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
27784 "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
27785 "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
27786 .expectedlen = 128,
27787 .addtla = NULL,
27788 .addtlb = NULL,
27789 .addtllen = 0,
27790 .pers = (unsigned char *)
27791 "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
27792 "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
27793 "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
27794 .perslen = 32,
27795 }, {
27796 .entropy = (unsigned char *)
27797 "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
27798 "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
27799 "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
27800 "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
27801 .entropylen = 48,
27802 .expected = (unsigned char *)
27803 "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
27804 "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
27805 "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
27806 "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
27807 "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
27808 "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
27809 "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
27810 "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
27811 "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
27812 "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
27813 "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
27814 .expectedlen = 128,
27815 .addtla = (unsigned char *)
27816 "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
27817 "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
27818 "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
27819 .addtlb = (unsigned char *)
27820 "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
27821 "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
27822 "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
27823 .addtllen = 32,
27824 .pers = (unsigned char *)
27825 "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
27826 "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
27827 "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
27828 .perslen = 32,
27829 },
27830};
27831
Eric Biggersb13b1e02017-02-24 15:46:59 -080027832static const struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020027833 {
27834 .entropy = (unsigned char *)
27835 "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
27836 "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
27837 "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
27838 "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
27839 .entropylen = 48,
27840 .expected = (unsigned char *)
27841 "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
27842 "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
27843 "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
27844 "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
27845 "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
27846 "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
27847 "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
27848 "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
27849 "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
27850 "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
27851 "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
27852 .expectedlen = 128,
27853 .addtla = NULL,
27854 .addtlb = NULL,
27855 .addtllen = 0,
27856 .pers = NULL,
27857 .perslen = 0,
27858 }, {
27859 .entropy = (unsigned char *)
27860 "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
27861 "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
27862 "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
27863 "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
27864 .entropylen = 48,
27865 .expected = (unsigned char *)
27866 "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
27867 "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
27868 "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
27869 "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
27870 "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
27871 "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
27872 "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
27873 "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
27874 "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
27875 "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
27876 "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
27877 .expectedlen = 128,
27878 .addtla = (unsigned char *)
27879 "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
27880 "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
27881 "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
27882 .addtlb = (unsigned char *)
27883 "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
27884 "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
27885 "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
27886 .addtllen = 32,
27887 .pers = NULL,
27888 .perslen = 0,
27889 }, {
27890 .entropy = (unsigned char *)
27891 "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
27892 "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
27893 "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
27894 "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
27895 .entropylen = 48,
27896 .expected = (unsigned char *)
27897 "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
27898 "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
27899 "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
27900 "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
27901 "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
27902 "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
27903 "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
27904 "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
27905 "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
27906 "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
27907 "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
27908 .expectedlen = 128,
27909 .addtla = NULL,
27910 .addtlb = NULL,
27911 .addtllen = 0,
27912 .pers = (unsigned char *)
27913 "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
27914 "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
27915 "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
27916 .perslen = 32,
27917 }, {
27918 .entropy = (unsigned char *)
27919 "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
27920 "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
27921 "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
27922 "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
27923 .entropylen = 48,
27924 .expected = (unsigned char *)
27925 "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
27926 "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
27927 "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
27928 "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
27929 "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
27930 "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
27931 "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
27932 "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
27933 "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
27934 "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
27935 "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
27936 .expectedlen = 128,
27937 .addtla = (unsigned char *)
27938 "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
27939 "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
27940 "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
27941 .addtlb = (unsigned char *)
27942 "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
27943 "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
27944 "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
27945 .addtllen = 32,
27946 .pers = (unsigned char *)
27947 "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
27948 "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
27949 "\x36\x60\x3b\xca\x37\xc9\xee\x29",
27950 .perslen = 32,
27951 },
27952};
27953
Eric Biggersb13b1e02017-02-24 15:46:59 -080027954static const struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020027955 {
27956 .entropy = (unsigned char *)
27957 "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
27958 "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
27959 "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
27960 "\xac\x9b\xbb\x00",
27961 .entropylen = 40,
27962 .expected = (unsigned char *)
27963 "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
27964 "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
27965 "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
27966 "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
27967 "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
27968 "\x9a\x9d\xf1\x0d",
27969 .expectedlen = 64,
27970 .addtla = NULL,
27971 .addtlb = NULL,
27972 .addtllen = 0,
27973 .pers = NULL,
27974 .perslen = 0,
27975 },
27976};
27977
Eric Biggersb13b1e02017-02-24 15:46:59 -080027978static const struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020027979 {
27980 .entropy = (unsigned char *)
27981 "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
27982 "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
27983 "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
27984 "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
27985 .entropylen = 48,
27986 .expected = (unsigned char *)
27987 "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
27988 "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
27989 "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
27990 "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
27991 "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
27992 "\xb4\xf0\x7e\x1d",
27993 .expectedlen = 64,
27994 .addtla = NULL,
27995 .addtlb = NULL,
27996 .addtllen = 0,
27997 .pers = NULL,
27998 .perslen = 0,
27999 },
28000};
28001
Eric Biggersb13b1e02017-02-24 15:46:59 -080028002static const struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020028003 {
28004 .entropy = (unsigned char *)
28005 "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
28006 "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
28007 .entropylen = 24,
28008 .expected = (unsigned char *)
28009 "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
28010 "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
28011 "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
28012 "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
28013 "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
28014 "\xcb\x2d\xd6\xb0",
28015 .expectedlen = 64,
28016 .addtla = NULL,
28017 .addtlb = NULL,
28018 .addtllen = 0,
28019 .pers = NULL,
28020 .perslen = 0,
28021 }, {
28022 .entropy = (unsigned char *)
28023 "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
28024 "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
28025 .entropylen = 24,
28026 .expected = (unsigned char *)
28027 "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
28028 "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
28029 "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
28030 "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
28031 "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
28032 "\xc3\xdf\xb3\x81",
28033 .expectedlen = 64,
28034 .addtla = (unsigned char *)
28035 "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
28036 "\x91\x4d\x81\x56",
28037 .addtlb = (unsigned char *)
28038 "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
28039 "\x4a\x55\xd1\xc6",
28040 .addtllen = 16,
28041 .pers = NULL,
28042 .perslen = 0,
28043 }, {
28044 .entropy = (unsigned char *)
28045 "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
28046 "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
28047 .entropylen = 24,
28048 .expected = (unsigned char *)
28049 "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
28050 "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
28051 "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
28052 "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
28053 "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
28054 "\x34\x30\x0c\x3d",
28055 .expectedlen = 64,
28056 .addtla = NULL,
28057 .addtlb = NULL,
28058 .addtllen = 0,
28059 .pers = (unsigned char *)
28060 "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
28061 "\x0b\xc6\x97\x54",
28062 .perslen = 16,
28063 }, {
28064 .entropy = (unsigned char *)
28065 "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
28066 "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
28067 .entropylen = 24,
28068 .expected = (unsigned char *)
28069 "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
28070 "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
28071 "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
28072 "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
28073 "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
28074 "\x2b\x49\x1e\x5c",
28075 .expectedlen = 64,
28076 .addtla = (unsigned char *)
28077 "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
28078 "\x44\x85\xe7\xfe",
28079 .addtlb = (unsigned char *)
28080 "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
28081 "\x82\x16\x62\x7f",
28082 .addtllen = 16,
28083 .pers = (unsigned char *)
28084 "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
28085 "\x8e\xcf\xe0\x02",
28086 .perslen = 16,
28087 },
28088};
28089
Herbert Xuda7f0332008-07-31 17:08:25 +080028090/* Cast5 test vectors from RFC 2144 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028091static const struct cipher_testvec cast5_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028092 {
28093 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
28094 "\x23\x45\x67\x89\x34\x56\x78\x9a",
28095 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028096 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
28097 .ctext = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
28098 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028099 }, {
28100 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
28101 "\x23\x45",
28102 .klen = 10,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028103 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
28104 .ctext = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
28105 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028106 }, {
28107 .key = "\x01\x23\x45\x67\x12",
28108 .klen = 5,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028109 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
28110 .ctext = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
28111 .len = 8,
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028112 }, { /* Generated from TF test vectors */
28113 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28114 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
28115 .klen = 16,
28116 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028117 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028118 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28119 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28120 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28121 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28122 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28123 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28124 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28125 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28126 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28127 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28128 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28129 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28130 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28131 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28132 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28133 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28134 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28135 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28136 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28137 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28138 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28139 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28140 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28141 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28142 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28143 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28144 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28145 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28146 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28147 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28148 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28149 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28150 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28151 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28152 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28153 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28154 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28155 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28156 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28157 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28158 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28159 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28160 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28161 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28162 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28163 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28164 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28165 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28166 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28167 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28168 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28169 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28170 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28171 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28172 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28173 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28174 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28175 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28176 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28177 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28178 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028179 .ctext = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028180 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
28181 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
28182 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
28183 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
28184 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
28185 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
28186 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
28187 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
28188 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
28189 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
28190 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
28191 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
28192 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
28193 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
28194 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
28195 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
28196 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
28197 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
28198 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
28199 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
28200 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
28201 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
28202 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
28203 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
28204 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
28205 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
28206 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
28207 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
28208 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
28209 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
28210 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
28211 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
28212 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
28213 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
28214 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
28215 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
28216 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
28217 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
28218 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
28219 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
28220 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
28221 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
28222 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
28223 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
28224 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
28225 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
28226 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
28227 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
28228 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
28229 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
28230 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
28231 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
28232 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
28233 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
28234 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
28235 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
28236 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
28237 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
28238 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
28239 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
28240 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028241 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030028242 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020028243 .np = 3,
28244 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080028245 },
28246};
28247
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028248static const struct cipher_testvec cast5_cbc_tv_template[] = {
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028249 { /* Generated from TF test vectors */
28250 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28251 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
28252 .klen = 16,
28253 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028254 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028255 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28256 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28257 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28258 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28259 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28260 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28261 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28262 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28263 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28264 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28265 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28266 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28267 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28268 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28269 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28270 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28271 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28272 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28273 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28274 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28275 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28276 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28277 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28278 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28279 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28280 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28281 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28282 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28283 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28284 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28285 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28286 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28287 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28288 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28289 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28290 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28291 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28292 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28293 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28294 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28295 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28296 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28297 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28298 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28299 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28300 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28301 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28302 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28303 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28304 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28305 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28306 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28307 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28308 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28309 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28310 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28311 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28312 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28313 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28314 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28315 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028316 .ctext = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028317 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
28318 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
28319 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
28320 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
28321 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
28322 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
28323 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
28324 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
28325 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
28326 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
28327 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
28328 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
28329 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
28330 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
28331 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
28332 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
28333 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
28334 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
28335 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
28336 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
28337 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
28338 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
28339 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
28340 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
28341 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
28342 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
28343 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
28344 "\x90\x12\x37\x49\x27\x98\x69\x18"
28345 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
28346 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
28347 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
28348 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
28349 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
28350 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
28351 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
28352 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
28353 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
28354 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
28355 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
28356 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
28357 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
28358 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
28359 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
28360 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
28361 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
28362 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
28363 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
28364 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
28365 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
28366 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
28367 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
28368 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
28369 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
28370 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
28371 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
28372 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
28373 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
28374 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
28375 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
28376 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
28377 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028378 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030028379 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020028380 .np = 3,
28381 .tap = { 496 - 20, 4, 16 },
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028382 },
28383};
28384
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028385static const struct cipher_testvec cast5_ctr_tv_template[] = {
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028386 { /* Generated from TF test vectors */
28387 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28388 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
28389 .klen = 16,
28390 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028391 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028392 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030028393 "\x3A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028394 .ctext = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030028395 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
28396 "\x0C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028397 .len = 17,
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030028398 }, { /* Generated from TF test vectors */
28399 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28400 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
28401 .klen = 16,
28402 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028403 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030028404 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028405 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28406 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28407 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28408 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28409 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28410 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28411 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28412 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28413 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28414 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28415 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28416 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28417 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28418 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28419 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28420 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28421 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28422 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28423 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28424 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28425 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28426 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28427 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28428 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28429 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28430 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28431 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28432 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28433 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28434 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28435 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28436 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28437 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28438 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28439 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28440 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28441 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28442 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28443 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28444 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28445 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28446 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28447 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28448 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28449 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28450 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28451 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28452 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28453 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28454 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28455 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28456 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28457 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28458 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28459 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28460 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28461 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28462 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28463 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28464 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028465 .ctext = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020028466 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
28467 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
28468 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
28469 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
28470 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
28471 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
28472 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
28473 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
28474 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
28475 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
28476 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
28477 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
28478 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
28479 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
28480 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
28481 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
28482 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
28483 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
28484 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
28485 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
28486 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
28487 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
28488 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
28489 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
28490 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
28491 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
28492 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
28493 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
28494 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
28495 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
28496 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
28497 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
28498 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
28499 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
28500 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
28501 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
28502 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
28503 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
28504 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
28505 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
28506 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
28507 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
28508 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
28509 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
28510 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
28511 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
28512 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
28513 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
28514 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
28515 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
28516 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
28517 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
28518 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
28519 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
28520 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
28521 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
28522 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
28523 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
28524 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
28525 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
28526 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028527 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030028528 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020028529 .np = 3,
28530 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080028531 },
28532};
28533
28534/*
28535 * ARC4 test vectors from OpenSSL
28536 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028537static const struct cipher_testvec arc4_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028538 {
28539 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
28540 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028541 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
28542 .ctext = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
28543 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028544 }, {
28545 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
28546 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028547 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
28548 .ctext = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
28549 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028550 }, {
28551 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
28552 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028553 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
28554 .ctext = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
28555 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028556 }, {
28557 .key = "\xef\x01\x23\x45",
28558 .klen = 4,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028559 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080028560 "\x00\x00\x00\x00\x00\x00\x00\x00"
28561 "\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028562 .ctext = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
Herbert Xuda7f0332008-07-31 17:08:25 +080028563 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
28564 "\x36\xb6\x78\x58",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028565 .len = 20,
Herbert Xuda7f0332008-07-31 17:08:25 +080028566 }, {
28567 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
28568 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028569 .ptext = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
Herbert Xuda7f0332008-07-31 17:08:25 +080028570 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
28571 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
28572 "\x12\x34\x56\x78",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028573 .ctext = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
Herbert Xuda7f0332008-07-31 17:08:25 +080028574 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
28575 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
28576 "\x40\x01\x1e\xcf",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028577 .len = 28,
Herbert Xuda7f0332008-07-31 17:08:25 +080028578 }, {
28579 .key = "\xef\x01\x23\x45",
28580 .klen = 4,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028581 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080028582 "\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028583 .ctext = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
Herbert Xuda7f0332008-07-31 17:08:25 +080028584 "\xbd\x61",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028585 .len = 10,
Herbert Xuda7f0332008-07-31 17:08:25 +080028586 }, {
28587 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
28588 "\x00\x00\x00\x00\x00\x00\x00\x00",
28589 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028590 .ptext = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
28591 .ctext = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
28592 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028593 },
28594};
28595
28596/*
28597 * TEA test vectors
28598 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028599static const struct cipher_testvec tea_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028600 {
28601 .key = zeroed_string,
28602 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028603 .ptext = zeroed_string,
28604 .ctext = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
28605 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028606 }, {
28607 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
28608 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
28609 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028610 .ptext = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
28611 .ctext = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
28612 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028613 }, {
28614 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
28615 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
28616 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028617 .ptext = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
Herbert Xuda7f0332008-07-31 17:08:25 +080028618 "\x65\x73\x74\x5f\x76\x65\x63\x74",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028619 .ctext = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
Herbert Xuda7f0332008-07-31 17:08:25 +080028620 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028621 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028622 }, {
28623 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
28624 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
28625 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028626 .ptext = "\x54\x65\x61\x20\x69\x73\x20\x67"
Herbert Xuda7f0332008-07-31 17:08:25 +080028627 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
28628 "\x79\x6f\x75\x21\x21\x21\x20\x72"
28629 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028630 .ctext = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
Herbert Xuda7f0332008-07-31 17:08:25 +080028631 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
28632 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
28633 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028634 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080028635 }
28636};
28637
28638/*
28639 * XTEA test vectors
28640 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028641static const struct cipher_testvec xtea_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028642 {
28643 .key = zeroed_string,
28644 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028645 .ptext = zeroed_string,
28646 .ctext = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
28647 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028648 }, {
28649 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
28650 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
28651 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028652 .ptext = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
28653 .ctext = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
28654 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028655 }, {
28656 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
28657 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
28658 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028659 .ptext = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
Herbert Xuda7f0332008-07-31 17:08:25 +080028660 "\x65\x73\x74\x5f\x76\x65\x63\x74",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028661 .ctext = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
Herbert Xuda7f0332008-07-31 17:08:25 +080028662 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028663 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028664 }, {
28665 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
28666 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
28667 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028668 .ptext = "\x54\x65\x61\x20\x69\x73\x20\x67"
Herbert Xuda7f0332008-07-31 17:08:25 +080028669 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
28670 "\x79\x6f\x75\x21\x21\x21\x20\x72"
28671 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028672 .ctext = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
Herbert Xuda7f0332008-07-31 17:08:25 +080028673 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
28674 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
28675 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028676 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080028677 }
28678};
28679
28680/*
28681 * KHAZAD test vectors.
28682 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028683static const struct cipher_testvec khazad_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028684 {
28685 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
28686 "\x00\x00\x00\x00\x00\x00\x00\x00",
28687 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028688 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
28689 .ctext = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
28690 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028691 }, {
28692 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
28693 "\x38\x38\x38\x38\x38\x38\x38\x38",
28694 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028695 .ptext = "\x38\x38\x38\x38\x38\x38\x38\x38",
28696 .ctext = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
28697 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028698 }, {
28699 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
28700 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
28701 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028702 .ptext = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
28703 .ctext = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
28704 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028705 }, {
28706 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
28707 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
28708 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028709 .ptext = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
28710 .ctext = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
28711 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028712 }, {
28713 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
28714 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
28715 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028716 .ptext = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
Herbert Xuda7f0332008-07-31 17:08:25 +080028717 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028718 .ctext = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +080028719 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028720 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028721 },
28722};
28723
28724/*
28725 * Anubis test vectors.
28726 */
28727
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028728static const struct cipher_testvec anubis_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028729 {
28730 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
28731 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
28732 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028733 .ptext = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
Herbert Xuda7f0332008-07-31 17:08:25 +080028734 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028735 .ctext = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
Herbert Xuda7f0332008-07-31 17:08:25 +080028736 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028737 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028738 }, {
28739
28740 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
28741 "\x03\x03\x03\x03\x03\x03\x03\x03"
28742 "\x03\x03\x03\x03",
28743 .klen = 20,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028744 .ptext = "\x03\x03\x03\x03\x03\x03\x03\x03"
Herbert Xuda7f0332008-07-31 17:08:25 +080028745 "\x03\x03\x03\x03\x03\x03\x03\x03",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028746 .ctext = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
Herbert Xuda7f0332008-07-31 17:08:25 +080028747 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028748 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028749 }, {
28750 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
28751 "\x24\x24\x24\x24\x24\x24\x24\x24"
28752 "\x24\x24\x24\x24\x24\x24\x24\x24"
28753 "\x24\x24\x24\x24",
28754 .klen = 28,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028755 .ptext = "\x24\x24\x24\x24\x24\x24\x24\x24"
Herbert Xuda7f0332008-07-31 17:08:25 +080028756 "\x24\x24\x24\x24\x24\x24\x24\x24",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028757 .ctext = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
Herbert Xuda7f0332008-07-31 17:08:25 +080028758 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028759 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028760 }, {
28761 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
28762 "\x25\x25\x25\x25\x25\x25\x25\x25"
28763 "\x25\x25\x25\x25\x25\x25\x25\x25"
28764 "\x25\x25\x25\x25\x25\x25\x25\x25",
28765 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028766 .ptext = "\x25\x25\x25\x25\x25\x25\x25\x25"
Herbert Xuda7f0332008-07-31 17:08:25 +080028767 "\x25\x25\x25\x25\x25\x25\x25\x25",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028768 .ctext = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
Herbert Xuda7f0332008-07-31 17:08:25 +080028769 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028770 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028771 }, {
28772 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
28773 "\x35\x35\x35\x35\x35\x35\x35\x35"
28774 "\x35\x35\x35\x35\x35\x35\x35\x35"
28775 "\x35\x35\x35\x35\x35\x35\x35\x35"
28776 "\x35\x35\x35\x35\x35\x35\x35\x35",
28777 .klen = 40,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028778 .ptext = "\x35\x35\x35\x35\x35\x35\x35\x35"
Herbert Xuda7f0332008-07-31 17:08:25 +080028779 "\x35\x35\x35\x35\x35\x35\x35\x35",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028780 .ctext = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
Herbert Xuda7f0332008-07-31 17:08:25 +080028781 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028782 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028783 },
28784};
28785
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028786static const struct cipher_testvec anubis_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028787 {
28788 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
28789 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
28790 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028791 .ptext = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
Herbert Xuda7f0332008-07-31 17:08:25 +080028792 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
28793 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
28794 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028795 .ctext = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
Herbert Xuda7f0332008-07-31 17:08:25 +080028796 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
28797 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
28798 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028799 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080028800 }, {
28801 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
28802 "\x35\x35\x35\x35\x35\x35\x35\x35"
28803 "\x35\x35\x35\x35\x35\x35\x35\x35"
28804 "\x35\x35\x35\x35\x35\x35\x35\x35"
28805 "\x35\x35\x35\x35\x35\x35\x35\x35",
28806 .klen = 40,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028807 .ptext = "\x35\x35\x35\x35\x35\x35\x35\x35"
Herbert Xuda7f0332008-07-31 17:08:25 +080028808 "\x35\x35\x35\x35\x35\x35\x35\x35"
28809 "\x35\x35\x35\x35\x35\x35\x35\x35"
28810 "\x35\x35\x35\x35\x35\x35\x35\x35",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028811 .ctext = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
Herbert Xuda7f0332008-07-31 17:08:25 +080028812 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
28813 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
28814 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028815 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080028816 },
28817};
28818
28819/*
28820 * XETA test vectors
28821 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028822static const struct cipher_testvec xeta_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028823 {
28824 .key = zeroed_string,
28825 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028826 .ptext = zeroed_string,
28827 .ctext = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
28828 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028829 }, {
28830 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
28831 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
28832 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028833 .ptext = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
28834 .ctext = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
28835 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028836 }, {
28837 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
28838 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
28839 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028840 .ptext = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
Herbert Xuda7f0332008-07-31 17:08:25 +080028841 "\x65\x73\x74\x5f\x76\x65\x63\x74",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028842 .ctext = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
Herbert Xuda7f0332008-07-31 17:08:25 +080028843 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028844 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028845 }, {
28846 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
28847 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
28848 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028849 .ptext = "\x54\x65\x61\x20\x69\x73\x20\x67"
Herbert Xuda7f0332008-07-31 17:08:25 +080028850 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
28851 "\x79\x6f\x75\x21\x21\x21\x20\x72"
28852 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028853 .ctext = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
Herbert Xuda7f0332008-07-31 17:08:25 +080028854 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
28855 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
28856 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028857 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080028858 }
28859};
28860
28861/*
28862 * FCrypt test vectors
28863 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028864static const struct cipher_testvec fcrypt_pcbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028865 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
28866 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
28867 .klen = 8,
28868 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028869 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
28870 .ctext = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
28871 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028872 }, {
28873 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
28874 .klen = 8,
28875 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028876 .ptext = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
28877 .ctext = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
28878 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080028879 }, { /* From Arla */
28880 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
28881 .klen = 8,
28882 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028883 .ptext = "The quick brown fox jumps over the lazy dogs.\0\0",
28884 .ctext = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
Herbert Xuda7f0332008-07-31 17:08:25 +080028885 "\xee\xac\x98\x62\x44\x51\xe4\x84"
28886 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
28887 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
28888 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
28889 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028890 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080028891 }, {
28892 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
28893 .klen = 8,
28894 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028895 .ptext = "The quick brown fox jumps over the lazy dogs.\0\0",
28896 .ctext = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
Herbert Xuda7f0332008-07-31 17:08:25 +080028897 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
28898 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
28899 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
28900 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
28901 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028902 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080028903 }, { /* split-page version */
28904 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
28905 .klen = 8,
28906 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028907 .ptext = "The quick brown fox jumps over the lazy dogs.\0\0",
28908 .ctext = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
Herbert Xuda7f0332008-07-31 17:08:25 +080028909 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
28910 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
28911 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
28912 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
28913 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028914 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080028915 .np = 2,
28916 .tap = { 20, 28 },
28917 }
28918};
28919
28920/*
28921 * CAMELLIA test vectors.
28922 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028923static const struct cipher_testvec camellia_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080028924 {
28925 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
28926 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
28927 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028928 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Herbert Xuda7f0332008-07-31 17:08:25 +080028929 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028930 .ctext = "\x67\x67\x31\x38\x54\x96\x69\x73"
Herbert Xuda7f0332008-07-31 17:08:25 +080028931 "\x08\x57\x06\x56\x48\xea\xbe\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028932 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028933 }, {
28934 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
28935 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
28936 "\x00\x11\x22\x33\x44\x55\x66\x77",
28937 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028938 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Herbert Xuda7f0332008-07-31 17:08:25 +080028939 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028940 .ctext = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
Herbert Xuda7f0332008-07-31 17:08:25 +080028941 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028942 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080028943 }, {
28944 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
28945 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
28946 "\x00\x11\x22\x33\x44\x55\x66\x77"
28947 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
28948 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028949 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Herbert Xuda7f0332008-07-31 17:08:25 +080028950 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028951 .ctext = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
Herbert Xuda7f0332008-07-31 17:08:25 +080028952 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028953 .len = 16,
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030028954 }, { /* Generated with Crypto++ */
Jussi Kivilinna08406052012-03-05 20:26:21 +020028955 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
28956 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
28957 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
28958 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
28959 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028960 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028961 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28962 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28963 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28964 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030028965 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28966 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28967 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28968 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28969 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28970 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28971 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28972 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28973 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28974 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28975 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28976 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28977 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28978 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28979 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28980 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28981 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28982 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28983 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28984 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28985 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28986 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28987 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28988 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28989 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28990 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28991 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28992 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28993 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28994 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28995 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28996 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28997 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28998 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28999 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29000 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29001 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29002 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29003 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29004 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29005 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29006 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29007 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29008 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29009 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29010 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29011 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29012 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29013 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29014 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29015 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29016 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29017 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29018 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29019 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29020 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030029021 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29022 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29023 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29024 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29025 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29026 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29027 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29028 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29029 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29030 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29031 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29032 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29033 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29034 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29035 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29036 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29037 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29038 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29039 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29040 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29041 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29042 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29043 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29044 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29045 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29046 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29047 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29048 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29049 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29050 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29051 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29052 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29053 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29054 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29055 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29056 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29057 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29058 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29059 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29060 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29061 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29062 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29063 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29064 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29065 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29066 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29067 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29068 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29069 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29070 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29071 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29072 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29073 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29074 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29075 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29076 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29077 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29078 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29079 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29080 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29081 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29082 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29083 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29084 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29085 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029086 .ctext = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029087 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
29088 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
29089 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
29090 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030029091 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
29092 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
29093 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
29094 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
29095 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
29096 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
29097 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
29098 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
29099 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
29100 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
29101 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
29102 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
29103 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
29104 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
29105 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
29106 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
29107 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
29108 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
29109 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
29110 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
29111 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
29112 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
29113 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
29114 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
29115 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
29116 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
29117 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
29118 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
29119 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
29120 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
29121 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
29122 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
29123 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
29124 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
29125 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
29126 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
29127 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
29128 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
29129 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
29130 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
29131 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
29132 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
29133 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
29134 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
29135 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
29136 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
29137 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
29138 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
29139 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
29140 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
29141 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
29142 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
29143 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
29144 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
29145 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
29146 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030029147 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
29148 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
29149 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
29150 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
29151 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
29152 "\xED\x28\x39\xE9\x63\xED\x41\x70"
29153 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
29154 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
29155 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
29156 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
29157 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
29158 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
29159 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
29160 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
29161 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
29162 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
29163 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
29164 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
29165 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
29166 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
29167 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
29168 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
29169 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
29170 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
29171 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
29172 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
29173 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
29174 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
29175 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
29176 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
29177 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
29178 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
29179 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
29180 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
29181 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
29182 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
29183 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
29184 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
29185 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
29186 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
29187 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
29188 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
29189 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
29190 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
29191 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
29192 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
29193 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
29194 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
29195 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
29196 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
29197 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
29198 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
29199 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
29200 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
29201 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
29202 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
29203 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
29204 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
29205 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
29206 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
29207 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
29208 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
29209 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
29210 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
29211 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029212 .len = 1008,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030029213 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020029214 .np = 3,
29215 .tap = { 1008 - 20, 4, 16 },
Jussi Kivilinna08406052012-03-05 20:26:21 +020029216 },
Herbert Xuda7f0332008-07-31 17:08:25 +080029217};
29218
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029219static const struct cipher_testvec camellia_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080029220 {
29221 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
29222 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
29223 .klen = 16,
29224 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
29225 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029226 .ptext = "Single block msg",
29227 .ctext = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +080029228 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029229 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080029230 }, {
29231 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
29232 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
29233 .klen = 16,
29234 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
29235 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029236 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080029237 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29238 "\x10\x11\x12\x13\x14\x15\x16\x17"
29239 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029240 .ctext = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
Herbert Xuda7f0332008-07-31 17:08:25 +080029241 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
29242 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
29243 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029244 .len = 32,
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030029245 }, { /* Generated with Crypto++ */
Jussi Kivilinna08406052012-03-05 20:26:21 +020029246 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29247 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29248 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29249 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29250 .klen = 32,
29251 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29252 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029253 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029254 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29255 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29256 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29257 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030029258 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29259 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29260 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29261 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29262 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29263 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29264 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29265 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29266 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29267 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29268 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29269 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29270 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29271 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29272 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29273 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29274 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29275 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29276 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29277 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29278 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29279 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29280 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29281 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29282 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29283 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29284 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29285 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29286 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29287 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29288 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29289 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29290 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29291 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29292 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29293 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29294 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29295 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29296 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29297 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29298 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29299 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29300 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29301 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29302 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29303 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29304 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29305 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29306 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29307 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29308 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29309 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29310 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29311 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29312 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29313 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030029314 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29315 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29316 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29317 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29318 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29319 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29320 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29321 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29322 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29323 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29324 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29325 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29326 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29327 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29328 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29329 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29330 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29331 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29332 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29333 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29334 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29335 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29336 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29337 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29338 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29339 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29340 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29341 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29342 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29343 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29344 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29345 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29346 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29347 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29348 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29349 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29350 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29351 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29352 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29353 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29354 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29355 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29356 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29357 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29358 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29359 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29360 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29361 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29362 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29363 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29364 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29365 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29366 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29367 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29368 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29369 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29370 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29371 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29372 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29373 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29374 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29375 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29376 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29377 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29378 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029379 .ctext = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029380 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
29381 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
29382 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
29383 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030029384 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
29385 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
29386 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
29387 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
29388 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
29389 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
29390 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
29391 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
29392 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
29393 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
29394 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
29395 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
29396 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
29397 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
29398 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
29399 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
29400 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
29401 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
29402 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
29403 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
29404 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
29405 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
29406 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
29407 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
29408 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
29409 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
29410 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
29411 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
29412 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
29413 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
29414 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
29415 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
29416 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
29417 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
29418 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
29419 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
29420 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
29421 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
29422 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
29423 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
29424 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
29425 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
29426 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
29427 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
29428 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
29429 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
29430 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
29431 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
29432 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
29433 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
29434 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
29435 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
29436 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
29437 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
29438 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
29439 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030029440 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
29441 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
29442 "\x21\x41\x56\x72\x13\xE1\x86\x07"
29443 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
29444 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
29445 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
29446 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
29447 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
29448 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
29449 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
29450 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
29451 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
29452 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
29453 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
29454 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
29455 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
29456 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
29457 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
29458 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
29459 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
29460 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
29461 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
29462 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
29463 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
29464 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
29465 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
29466 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
29467 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
29468 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
29469 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
29470 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
29471 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
29472 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
29473 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
29474 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
29475 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
29476 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
29477 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
29478 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
29479 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
29480 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
29481 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
29482 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
29483 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
29484 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
29485 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
29486 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
29487 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
29488 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
29489 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
29490 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
29491 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
29492 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
29493 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
29494 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
29495 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
29496 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
29497 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
29498 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
29499 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
29500 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
29501 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
29502 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
29503 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
29504 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029505 .len = 1008,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030029506 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020029507 .np = 3,
29508 .tap = { 1008 - 20, 4, 16 },
Jussi Kivilinna08406052012-03-05 20:26:21 +020029509 },
Herbert Xuda7f0332008-07-31 17:08:25 +080029510};
29511
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029512static const struct cipher_testvec camellia_ctr_tv_template[] = {
Jussi Kivilinna08406052012-03-05 20:26:21 +020029513 { /* Generated with Crypto++ */
29514 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29515 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29516 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29517 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29518 .klen = 32,
29519 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29520 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029521 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029522 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29523 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29524 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29525 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030029526 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29527 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29528 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29529 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29530 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29531 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29532 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29533 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29534 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29535 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29536 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29537 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29538 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29539 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29540 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29541 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29542 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29543 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29544 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29545 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29546 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29547 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29548 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29549 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29550 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29551 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29552 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29553 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29554 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29555 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29556 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29557 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29558 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29559 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29560 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29561 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29562 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29563 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29564 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29565 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29566 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29567 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29568 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29569 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29570 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29571 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29572 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29573 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29574 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29575 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29576 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29577 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29578 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29579 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29580 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29581 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29582 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029583 .ctext = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029584 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29585 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29586 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29587 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030029588 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
29589 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29590 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29591 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29592 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29593 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29594 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29595 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29596 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29597 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29598 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29599 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29600 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29601 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29602 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29603 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29604 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29605 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29606 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29607 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29608 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29609 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29610 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29611 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29612 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29613 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29614 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29615 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29616 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29617 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29618 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29619 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29620 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29621 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29622 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29623 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29624 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29625 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29626 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29627 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29628 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29629 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29630 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29631 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29632 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29633 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29634 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29635 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29636 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29637 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29638 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29639 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29640 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29641 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29642 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29643 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29644 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029645 .len = 496,
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030029646 }, { /* Generated with Crypto++ */
Jussi Kivilinna08406052012-03-05 20:26:21 +020029647 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29648 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29649 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29650 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29651 .klen = 32,
29652 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
29653 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029654 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029655 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29656 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29657 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29658 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29659 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030029660 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29661 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29662 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29663 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29664 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29665 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29666 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29667 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29668 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29669 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29670 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29671 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29672 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29673 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29674 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29675 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29676 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29677 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29678 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29679 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29680 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29681 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29682 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29683 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29684 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29685 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29686 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29687 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29688 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29689 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29690 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29691 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29692 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29693 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29694 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29695 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29696 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29697 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29698 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29699 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29700 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29701 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29702 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29703 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29704 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29705 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29706 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29707 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29708 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29709 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29710 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29711 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29712 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29713 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29714 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
29715 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030029716 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29717 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29718 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29719 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29720 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29721 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29722 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29723 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29724 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29725 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29726 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29727 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29728 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29729 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29730 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29731 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29732 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29733 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
29734 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
29735 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
29736 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
29737 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
29738 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
29739 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
29740 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
29741 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
29742 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
29743 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
29744 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
29745 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
29746 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
29747 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
29748 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
29749 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
29750 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
29751 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
29752 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
29753 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
29754 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
29755 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
29756 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
29757 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
29758 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
29759 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
29760 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
29761 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
29762 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
29763 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
29764 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
29765 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
29766 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
29767 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
29768 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
29769 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
29770 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
29771 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
29772 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
29773 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
29774 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
29775 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
29776 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
29777 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
29778 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
29779 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
29780 "\xE4\x7B\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029781 .ctext = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029782 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
29783 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
29784 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
29785 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
29786 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030029787 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
29788 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
29789 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
29790 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
29791 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
29792 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
29793 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
29794 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
29795 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
29796 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
29797 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
29798 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
29799 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
29800 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
29801 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
29802 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
29803 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
29804 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
29805 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
29806 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
29807 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
29808 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
29809 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
29810 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
29811 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
29812 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
29813 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
29814 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
29815 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
29816 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
29817 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
29818 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
29819 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
29820 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
29821 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
29822 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
29823 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
29824 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
29825 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
29826 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
29827 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
29828 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
29829 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
29830 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
29831 "\x76\x44\x45\xF3\x24\x11\x57\x98"
29832 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
29833 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
29834 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
29835 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
29836 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
29837 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
29838 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
29839 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
29840 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
29841 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
29842 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030029843 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
29844 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
29845 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
29846 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
29847 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
29848 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
29849 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
29850 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
29851 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
29852 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
29853 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
29854 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
29855 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
29856 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
29857 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
29858 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
29859 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
29860 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
29861 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
29862 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
29863 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
29864 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
29865 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
29866 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
29867 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
29868 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
29869 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
29870 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
29871 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
29872 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
29873 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
29874 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
29875 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
29876 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
29877 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
29878 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
29879 "\x00\x70\x12\x56\x56\x50\xAD\x14"
29880 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
29881 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
29882 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
29883 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
29884 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
29885 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
29886 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
29887 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
29888 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
29889 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
29890 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
29891 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
29892 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
29893 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
29894 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
29895 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
29896 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
29897 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
29898 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
29899 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
29900 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
29901 "\x74\x28\x9D\x05\x30\x20\x62\x41"
29902 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
29903 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
29904 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
29905 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
29906 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
29907 "\xF1\x6B\xD9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029908 .len = 1011,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030029909 .also_non_np = 1,
29910 .np = 2,
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030029911 .tap = { 1011 - 16, 16 },
Jussi Kivilinna549595a2012-09-19 09:42:59 +030029912 }, { /* Generated with Crypto++ */
29913 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
29914 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
29915 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
29916 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
29917 .klen = 32,
29918 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
29919 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029920 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030029921 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
29922 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
29923 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
29924 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
29925 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
29926 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
29927 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
29928 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
29929 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
29930 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
29931 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
29932 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
29933 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
29934 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
29935 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
29936 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
29937 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
29938 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
29939 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
29940 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
29941 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
29942 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
29943 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
29944 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
29945 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
29946 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
29947 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
29948 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
29949 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
29950 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
29951 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
29952 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
29953 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
29954 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
29955 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
29956 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
29957 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
29958 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
29959 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
29960 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
29961 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
29962 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
29963 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
29964 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
29965 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
29966 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
29967 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
29968 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
29969 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
29970 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
29971 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
29972 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
29973 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
29974 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
29975 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
29976 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
29977 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
29978 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
29979 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
29980 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030029981 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
29982 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
29983 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
29984 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
29985 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
29986 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
29987 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
29988 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
29989 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
29990 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
29991 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
29992 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
29993 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
29994 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
29995 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
29996 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
29997 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
29998 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
29999 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
30000 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
30001 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
30002 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
30003 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
30004 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
30005 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
30006 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
30007 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
30008 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
30009 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
30010 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
30011 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
30012 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
30013 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
30014 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
30015 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
30016 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
30017 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
30018 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
30019 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
30020 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
30021 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
30022 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
30023 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
30024 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
30025 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
30026 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
30027 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
30028 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
30029 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
30030 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
30031 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
30032 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
30033 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
30034 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
30035 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
30036 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
30037 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
30038 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
30039 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
30040 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
30041 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
30042 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
30043 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
30044 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
30045 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030046 .ctext = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030030047 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
30048 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
30049 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
30050 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
30051 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
30052 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
30053 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
30054 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
30055 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
30056 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
30057 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
30058 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
30059 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
30060 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
30061 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
30062 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
30063 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
30064 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
30065 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
30066 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
30067 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
30068 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
30069 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
30070 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
30071 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
30072 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
30073 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
30074 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
30075 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
30076 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
30077 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
30078 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
30079 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
30080 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
30081 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
30082 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
30083 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
30084 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
30085 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
30086 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
30087 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
30088 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
30089 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
30090 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
30091 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
30092 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
30093 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
30094 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
30095 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
30096 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
30097 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
30098 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
30099 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
30100 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
30101 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
30102 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
30103 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
30104 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
30105 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
30106 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030030107 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
30108 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
30109 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
30110 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
30111 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
30112 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
30113 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
30114 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
30115 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
30116 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
30117 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
30118 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
30119 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
30120 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
30121 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
30122 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
30123 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
30124 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
30125 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
30126 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
30127 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
30128 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
30129 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
30130 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
30131 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
30132 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
30133 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
30134 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
30135 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
30136 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
30137 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
30138 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
30139 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
30140 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
30141 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
30142 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
30143 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
30144 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
30145 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
30146 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
30147 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
30148 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
30149 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
30150 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
30151 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
30152 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
30153 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
30154 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
30155 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
30156 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
30157 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
30158 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
30159 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
30160 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
30161 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
30162 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
30163 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
30164 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
30165 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
30166 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
30167 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
30168 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
30169 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
30170 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
30171 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030172 .len = 1008,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030173 },
30174};
30175
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030176static const struct cipher_testvec camellia_lrw_tv_template[] = {
Jussi Kivilinna08406052012-03-05 20:26:21 +020030177 /* Generated from AES-LRW test vectors */
30178 {
30179 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
30180 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
30181 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
30182 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
30183 .klen = 32,
30184 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30185 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030186 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030187 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030188 .ctext = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030189 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030190 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030191 }, {
30192 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
30193 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
30194 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
30195 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
30196 .klen = 32,
30197 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30198 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030199 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030200 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030201 .ctext = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030202 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030203 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030204 }, {
30205 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
30206 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
30207 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
30208 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
30209 .klen = 32,
30210 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30211 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030212 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030213 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030214 .ctext = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030215 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030216 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030217 }, {
30218 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
30219 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
30220 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
30221 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
30222 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
30223 .klen = 40,
30224 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30225 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030226 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030227 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030228 .ctext = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030229 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030230 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030231 }, {
30232 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
30233 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
30234 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
30235 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
30236 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
30237 .klen = 40,
30238 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30239 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030240 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030241 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030242 .ctext = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030243 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030244 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030245 }, {
30246 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30247 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30248 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30249 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30250 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30251 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30252 .klen = 48,
30253 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30254 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030255 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030256 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030257 .ctext = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030258 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030259 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030260 }, {
30261 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
30262 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
30263 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
30264 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
30265 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
30266 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
30267 .klen = 48,
30268 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30269 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030270 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030271 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030272 .ctext = "\x04\xab\x28\x37\x31\x7a\x26\xab"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030273 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030274 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030275 }, {
30276 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
30277 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
30278 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
30279 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
30280 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
30281 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
30282 .klen = 48,
30283 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30284 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030285 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030286 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
30287 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
30288 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
30289 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
30290 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
30291 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
30292 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
30293 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
30294 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
30295 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
30296 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
30297 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
30298 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
30299 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
30300 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
30301 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
30302 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
30303 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
30304 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
30305 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
30306 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
30307 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
30308 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
30309 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
30310 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
30311 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
30312 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
30313 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
30314 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
30315 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
30316 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
30317 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
30318 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
30319 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
30320 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
30321 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
30322 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
30323 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
30324 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
30325 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
30326 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
30327 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
30328 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
30329 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
30330 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
30331 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
30332 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
30333 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
30334 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
30335 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
30336 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
30337 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
30338 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
30339 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
30340 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
30341 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
30342 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
30343 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
30344 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
30345 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
30346 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
30347 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
30348 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030349 .ctext = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030350 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
30351 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
30352 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
30353 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
30354 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
30355 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
30356 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
30357 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
30358 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
30359 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
30360 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
30361 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
30362 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
30363 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
30364 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
30365 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
30366 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
30367 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
30368 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
30369 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
30370 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
30371 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
30372 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
30373 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
30374 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
30375 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
30376 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
30377 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
30378 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
30379 "\xed\x14\xa9\x57\x19\x63\x40\x04"
30380 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
30381 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
30382 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
30383 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
30384 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
30385 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
30386 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
30387 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
30388 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
30389 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
30390 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
30391 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
30392 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
30393 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
30394 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
30395 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
30396 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
30397 "\x35\xa5\x83\x04\x84\x01\x99\x56"
30398 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
30399 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
30400 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
30401 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
30402 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
30403 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
30404 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
30405 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
30406 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
30407 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
30408 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
30409 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
30410 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
30411 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
30412 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030413 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030030414 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020030415 .np = 3,
30416 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinna08406052012-03-05 20:26:21 +020030417 },
30418};
30419
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030420static const struct cipher_testvec camellia_xts_tv_template[] = {
Jussi Kivilinna08406052012-03-05 20:26:21 +020030421 /* Generated from AES-XTS test vectors */
30422 {
30423 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30424 "\x00\x00\x00\x00\x00\x00\x00\x00"
30425 "\x00\x00\x00\x00\x00\x00\x00\x00"
30426 "\x00\x00\x00\x00\x00\x00\x00\x00",
30427 .klen = 32,
30428 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30429 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030430 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030431 "\x00\x00\x00\x00\x00\x00\x00\x00"
30432 "\x00\x00\x00\x00\x00\x00\x00\x00"
30433 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030434 .ctext = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030435 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
30436 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
30437 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030438 .len = 32,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030439 }, {
30440 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
30441 "\x11\x11\x11\x11\x11\x11\x11\x11"
30442 "\x22\x22\x22\x22\x22\x22\x22\x22"
30443 "\x22\x22\x22\x22\x22\x22\x22\x22",
30444 .klen = 32,
30445 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
30446 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030447 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030448 "\x44\x44\x44\x44\x44\x44\x44\x44"
30449 "\x44\x44\x44\x44\x44\x44\x44\x44"
30450 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030451 .ctext = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030452 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
30453 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
30454 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030455 .len = 32,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030456 }, {
30457 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
30458 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
30459 "\x22\x22\x22\x22\x22\x22\x22\x22"
30460 "\x22\x22\x22\x22\x22\x22\x22\x22",
30461 .klen = 32,
30462 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
30463 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030464 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030465 "\x44\x44\x44\x44\x44\x44\x44\x44"
30466 "\x44\x44\x44\x44\x44\x44\x44\x44"
30467 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030468 .ctext = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030469 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
30470 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
30471 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030472 .len = 32,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030473 }, {
30474 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
30475 "\x23\x53\x60\x28\x74\x71\x35\x26"
30476 "\x31\x41\x59\x26\x53\x58\x97\x93"
30477 "\x23\x84\x62\x64\x33\x83\x27\x95",
30478 .klen = 32,
30479 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30480 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030481 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030482 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30483 "\x10\x11\x12\x13\x14\x15\x16\x17"
30484 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30485 "\x20\x21\x22\x23\x24\x25\x26\x27"
30486 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30487 "\x30\x31\x32\x33\x34\x35\x36\x37"
30488 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30489 "\x40\x41\x42\x43\x44\x45\x46\x47"
30490 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30491 "\x50\x51\x52\x53\x54\x55\x56\x57"
30492 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30493 "\x60\x61\x62\x63\x64\x65\x66\x67"
30494 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30495 "\x70\x71\x72\x73\x74\x75\x76\x77"
30496 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30497 "\x80\x81\x82\x83\x84\x85\x86\x87"
30498 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30499 "\x90\x91\x92\x93\x94\x95\x96\x97"
30500 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30501 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30502 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30503 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30504 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30505 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30506 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30507 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30508 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30509 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30510 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30511 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30512 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30513 "\x00\x01\x02\x03\x04\x05\x06\x07"
30514 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30515 "\x10\x11\x12\x13\x14\x15\x16\x17"
30516 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30517 "\x20\x21\x22\x23\x24\x25\x26\x27"
30518 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30519 "\x30\x31\x32\x33\x34\x35\x36\x37"
30520 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30521 "\x40\x41\x42\x43\x44\x45\x46\x47"
30522 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30523 "\x50\x51\x52\x53\x54\x55\x56\x57"
30524 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30525 "\x60\x61\x62\x63\x64\x65\x66\x67"
30526 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30527 "\x70\x71\x72\x73\x74\x75\x76\x77"
30528 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30529 "\x80\x81\x82\x83\x84\x85\x86\x87"
30530 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30531 "\x90\x91\x92\x93\x94\x95\x96\x97"
30532 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30533 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30534 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30535 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30536 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30537 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30538 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30539 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30540 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30541 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30542 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30543 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30544 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030545 .ctext = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030546 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
30547 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
30548 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
30549 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
30550 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
30551 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
30552 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
30553 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
30554 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
30555 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
30556 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
30557 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
30558 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
30559 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
30560 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
30561 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
30562 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
30563 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
30564 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
30565 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
30566 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
30567 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
30568 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
30569 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
30570 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
30571 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
30572 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
30573 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
30574 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
30575 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
30576 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
30577 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
30578 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
30579 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
30580 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
30581 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
30582 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
30583 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
30584 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
30585 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
30586 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
30587 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
30588 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
30589 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
30590 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
30591 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
30592 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
30593 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
30594 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
30595 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
30596 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
30597 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
30598 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
30599 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
30600 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
30601 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
30602 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
30603 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
30604 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
30605 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
30606 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
30607 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
30608 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030609 .len = 512,
Jussi Kivilinna08406052012-03-05 20:26:21 +020030610 }, {
30611 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
30612 "\x23\x53\x60\x28\x74\x71\x35\x26"
30613 "\x62\x49\x77\x57\x24\x70\x93\x69"
30614 "\x99\x59\x57\x49\x66\x96\x76\x27"
30615 "\x31\x41\x59\x26\x53\x58\x97\x93"
30616 "\x23\x84\x62\x64\x33\x83\x27\x95"
30617 "\x02\x88\x41\x97\x16\x93\x99\x37"
30618 "\x51\x05\x82\x09\x74\x94\x45\x92",
30619 .klen = 64,
30620 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
30621 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030622 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030623 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30624 "\x10\x11\x12\x13\x14\x15\x16\x17"
30625 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30626 "\x20\x21\x22\x23\x24\x25\x26\x27"
30627 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30628 "\x30\x31\x32\x33\x34\x35\x36\x37"
30629 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30630 "\x40\x41\x42\x43\x44\x45\x46\x47"
30631 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30632 "\x50\x51\x52\x53\x54\x55\x56\x57"
30633 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30634 "\x60\x61\x62\x63\x64\x65\x66\x67"
30635 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30636 "\x70\x71\x72\x73\x74\x75\x76\x77"
30637 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30638 "\x80\x81\x82\x83\x84\x85\x86\x87"
30639 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30640 "\x90\x91\x92\x93\x94\x95\x96\x97"
30641 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30642 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30643 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30644 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30645 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30646 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30647 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30648 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30649 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30650 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30651 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30652 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30653 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30654 "\x00\x01\x02\x03\x04\x05\x06\x07"
30655 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30656 "\x10\x11\x12\x13\x14\x15\x16\x17"
30657 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30658 "\x20\x21\x22\x23\x24\x25\x26\x27"
30659 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30660 "\x30\x31\x32\x33\x34\x35\x36\x37"
30661 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30662 "\x40\x41\x42\x43\x44\x45\x46\x47"
30663 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30664 "\x50\x51\x52\x53\x54\x55\x56\x57"
30665 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30666 "\x60\x61\x62\x63\x64\x65\x66\x67"
30667 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30668 "\x70\x71\x72\x73\x74\x75\x76\x77"
30669 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30670 "\x80\x81\x82\x83\x84\x85\x86\x87"
30671 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30672 "\x90\x91\x92\x93\x94\x95\x96\x97"
30673 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30674 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30675 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30676 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30677 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30678 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30679 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30680 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30681 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30682 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30683 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30684 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30685 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030686 .ctext = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
Jussi Kivilinna08406052012-03-05 20:26:21 +020030687 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
30688 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
30689 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
30690 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
30691 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
30692 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
30693 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
30694 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
30695 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
30696 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
30697 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
30698 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
30699 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
30700 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
30701 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
30702 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
30703 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
30704 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
30705 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
30706 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
30707 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
30708 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
30709 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
30710 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
30711 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
30712 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
30713 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
30714 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
30715 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
30716 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
30717 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
30718 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
30719 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
30720 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
30721 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
30722 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
30723 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
30724 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
30725 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
30726 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
30727 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
30728 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
30729 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
30730 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
30731 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
30732 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
30733 "\x21\x17\xf8\x59\x15\x24\x64\x22"
30734 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
30735 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
30736 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
30737 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
30738 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
30739 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
30740 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
30741 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
30742 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
30743 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
30744 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
30745 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
30746 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
30747 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
30748 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
30749 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030750 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030030751 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020030752 .np = 3,
30753 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinna08406052012-03-05 20:26:21 +020030754 },
Herbert Xuda7f0332008-07-31 17:08:25 +080030755};
30756
30757/*
30758 * SEED test vectors
30759 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030760static const struct cipher_testvec seed_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080030761 {
30762 .key = zeroed_string,
30763 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030764 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080030765 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030766 .ctext = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
Herbert Xuda7f0332008-07-31 17:08:25 +080030767 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030768 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080030769 }, {
30770 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
30771 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
30772 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030773 .ptext = zeroed_string,
30774 .ctext = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
Herbert Xuda7f0332008-07-31 17:08:25 +080030775 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030776 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080030777 }, {
30778 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
30779 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
30780 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030781 .ptext = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080030782 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030783 .ctext = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
Herbert Xuda7f0332008-07-31 17:08:25 +080030784 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030785 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080030786 }, {
30787 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
30788 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
30789 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030790 .ptext = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
Herbert Xuda7f0332008-07-31 17:08:25 +080030791 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030792 .ctext = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080030793 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030794 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080030795 }
30796};
30797
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030798static const struct cipher_testvec salsa20_stream_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080030799 /*
30800 * Testvectors from verified.test-vectors submitted to ECRYPT.
30801 * They are truncated to size 39, 64, 111, 129 to test a variety
30802 * of input length.
30803 */
30804 { /* Set 3, vector 0 */
30805 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
30806 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
30807 .klen = 16,
30808 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030809 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080030810 "\x00\x00\x00\x00\x00\x00\x00\x00"
30811 "\x00\x00\x00\x00\x00\x00\x00\x00"
30812 "\x00\x00\x00\x00\x00\x00\x00\x00"
30813 "\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030814 .ctext = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
Herbert Xuda7f0332008-07-31 17:08:25 +080030815 "\x68\x02\x41\x0C\x68\x86\x88\x89"
30816 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
30817 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
30818 "\x58\x3F\x52\x79\x70\xEB\xC1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030819 .len = 39,
Herbert Xuda7f0332008-07-31 17:08:25 +080030820 }, { /* Set 5, vector 0 */
30821 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30822 "\x00\x00\x00\x00\x00\x00\x00\x00",
30823 .klen = 16,
30824 .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030825 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080030826 "\x00\x00\x00\x00\x00\x00\x00\x00"
30827 "\x00\x00\x00\x00\x00\x00\x00\x00"
30828 "\x00\x00\x00\x00\x00\x00\x00\x00"
30829 "\x00\x00\x00\x00\x00\x00\x00\x00"
30830 "\x00\x00\x00\x00\x00\x00\x00\x00"
30831 "\x00\x00\x00\x00\x00\x00\x00\x00"
30832 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030833 .ctext = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
Herbert Xuda7f0332008-07-31 17:08:25 +080030834 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
30835 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
30836 "\x46\x26\xBF\x44\x3F\x21\x97\x76"
30837 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
30838 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
30839 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
30840 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030841 .len = 64,
Herbert Xuda7f0332008-07-31 17:08:25 +080030842 }, { /* Set 3, vector 27 */
30843 .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
30844 "\x23\x24\x25\x26\x27\x28\x29\x2A"
30845 "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
30846 "\x33\x34\x35\x36\x37\x38\x39\x3A",
30847 .klen = 32,
30848 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030849 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080030850 "\x00\x00\x00\x00\x00\x00\x00\x00"
30851 "\x00\x00\x00\x00\x00\x00\x00\x00"
30852 "\x00\x00\x00\x00\x00\x00\x00\x00"
30853 "\x00\x00\x00\x00\x00\x00\x00\x00"
30854 "\x00\x00\x00\x00\x00\x00\x00\x00"
30855 "\x00\x00\x00\x00\x00\x00\x00\x00"
30856 "\x00\x00\x00\x00\x00\x00\x00\x00"
30857 "\x00\x00\x00\x00\x00\x00\x00\x00"
30858 "\x00\x00\x00\x00\x00\x00\x00\x00"
30859 "\x00\x00\x00\x00\x00\x00\x00\x00"
30860 "\x00\x00\x00\x00\x00\x00\x00\x00"
30861 "\x00\x00\x00\x00\x00\x00\x00\x00"
30862 "\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030863 .ctext = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
Herbert Xuda7f0332008-07-31 17:08:25 +080030864 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
30865 "\x87\xD9\x47\xF8\x28\x91\x35\x98"
30866 "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
30867 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
30868 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
30869 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
30870 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
30871 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
30872 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
30873 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
30874 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
30875 "\x95\x46\x45\x54\xE9\x75\x03\x08"
30876 "\x44\xAF\xE5\x8A\x81\x12\x09",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030877 .len = 111,
Herbert Xuda7f0332008-07-31 17:08:25 +080030878 }, { /* Set 5, vector 27 */
30879 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30880 "\x00\x00\x00\x00\x00\x00\x00\x00"
30881 "\x00\x00\x00\x00\x00\x00\x00\x00"
30882 "\x00\x00\x00\x00\x00\x00\x00\x00",
30883 .klen = 32,
30884 .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030885 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080030886 "\x00\x00\x00\x00\x00\x00\x00\x00"
30887 "\x00\x00\x00\x00\x00\x00\x00\x00"
30888 "\x00\x00\x00\x00\x00\x00\x00\x00"
30889 "\x00\x00\x00\x00\x00\x00\x00\x00"
30890 "\x00\x00\x00\x00\x00\x00\x00\x00"
30891 "\x00\x00\x00\x00\x00\x00\x00\x00"
30892 "\x00\x00\x00\x00\x00\x00\x00\x00"
30893 "\x00\x00\x00\x00\x00\x00\x00\x00"
30894 "\x00\x00\x00\x00\x00\x00\x00\x00"
30895 "\x00\x00\x00\x00\x00\x00\x00\x00"
30896 "\x00\x00\x00\x00\x00\x00\x00\x00"
30897 "\x00\x00\x00\x00\x00\x00\x00\x00"
30898 "\x00\x00\x00\x00\x00\x00\x00\x00"
30899 "\x00\x00\x00\x00\x00\x00\x00\x00"
30900 "\x00\x00\x00\x00\x00\x00\x00\x00"
30901 "\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030902 .ctext = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
Herbert Xuda7f0332008-07-31 17:08:25 +080030903 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
30904 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
30905 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
30906 "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
30907 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
30908 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
30909 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
30910 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
30911 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
30912 "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
30913 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
30914 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
30915 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
30916 "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
30917 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
30918 "\x5A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030919 .len = 129,
Herbert Xuda7f0332008-07-31 17:08:25 +080030920 }, { /* large test vector generated using Crypto++ */
30921 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
30922 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30923 "\x10\x11\x12\x13\x14\x15\x16\x17"
30924 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
30925 .klen = 32,
30926 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30927 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030928 .ptext =
Herbert Xuda7f0332008-07-31 17:08:25 +080030929 "\x00\x01\x02\x03\x04\x05\x06\x07"
30930 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
30931 "\x10\x11\x12\x13\x14\x15\x16\x17"
30932 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
30933 "\x20\x21\x22\x23\x24\x25\x26\x27"
30934 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
30935 "\x30\x31\x32\x33\x34\x35\x36\x37"
30936 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
30937 "\x40\x41\x42\x43\x44\x45\x46\x47"
30938 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
30939 "\x50\x51\x52\x53\x54\x55\x56\x57"
30940 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
30941 "\x60\x61\x62\x63\x64\x65\x66\x67"
30942 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
30943 "\x70\x71\x72\x73\x74\x75\x76\x77"
30944 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
30945 "\x80\x81\x82\x83\x84\x85\x86\x87"
30946 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
30947 "\x90\x91\x92\x93\x94\x95\x96\x97"
30948 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
30949 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
30950 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
30951 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
30952 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
30953 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
30954 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
30955 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
30956 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
30957 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
30958 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
30959 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
30960 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
30961 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
30962 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
30963 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
30964 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
30965 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
30966 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
30967 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
30968 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
30969 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
30970 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
30971 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
30972 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
30973 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
30974 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
30975 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
30976 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
30977 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
30978 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
30979 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
30980 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
30981 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
30982 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
30983 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
30984 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
30985 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
30986 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
30987 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
30988 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
30989 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
30990 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
30991 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
30992 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
30993 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
30994 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
30995 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
30996 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
30997 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
30998 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
30999 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
31000 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
31001 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
31002 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
31003 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
31004 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
31005 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
31006 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
31007 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
31008 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
31009 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
31010 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
31011 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
31012 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
31013 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
31014 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
31015 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
31016 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
31017 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
31018 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
31019 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
31020 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
31021 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
31022 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
31023 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
31024 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
31025 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
31026 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
31027 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
31028 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
31029 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
31030 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
31031 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
31032 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
31033 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
31034 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
31035 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
31036 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
31037 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
31038 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
31039 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
31040 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
31041 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
31042 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
31043 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
31044 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
31045 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
31046 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
31047 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
31048 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
31049 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
31050 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
31051 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
31052 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
31053 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
31054 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
31055 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
31056 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
31057 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
31058 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
31059 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
31060 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
31061 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
31062 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
31063 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
31064 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
31065 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
31066 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
31067 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
31068 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
31069 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
31070 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
31071 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
31072 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
31073 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
31074 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
31075 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
31076 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
31077 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
31078 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
31079 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
31080 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
31081 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
31082 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
31083 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
31084 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
31085 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
31086 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
31087 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
31088 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
31089 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
31090 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
31091 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
31092 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
31093 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
31094 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
31095 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
31096 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
31097 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
31098 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
31099 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
31100 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
31101 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
31102 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
31103 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
31104 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
31105 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
31106 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
31107 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
31108 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
31109 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
31110 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
31111 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
31112 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
31113 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
31114 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
31115 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
31116 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
31117 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
31118 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
31119 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
31120 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
31121 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
31122 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
31123 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
31124 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
31125 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
31126 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
31127 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
31128 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
31129 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
31130 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
31131 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
31132 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
31133 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
31134 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
31135 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
31136 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
31137 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
31138 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
31139 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
31140 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
31141 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
31142 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
31143 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
31144 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
31145 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
31146 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
31147 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
31148 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
31149 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
31150 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
31151 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
31152 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
31153 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
31154 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
31155 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
31156 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
31157 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
31158 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
31159 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
31160 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
31161 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
31162 "\x38\x47\x56\x65\x74\x83\x92\xa1"
31163 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
31164 "\x28\x37\x46\x55\x64\x73\x82\x91"
31165 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
31166 "\x18\x27\x36\x45\x54\x63\x72\x81"
31167 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
31168 "\x08\x17\x26\x35\x44\x53\x62\x71"
31169 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
31170 "\xf8\x07\x16\x25\x34\x43\x52\x61"
31171 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
31172 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
31173 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
31174 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
31175 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
31176 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
31177 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
31178 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
31179 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
31180 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
31181 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
31182 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
31183 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
31184 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
31185 "\x00\x11\x22\x33\x44\x55\x66\x77"
31186 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
31187 "\x10\x21\x32\x43\x54\x65\x76\x87"
31188 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
31189 "\x20\x31\x42\x53\x64\x75\x86\x97"
31190 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
31191 "\x30\x41\x52\x63\x74\x85\x96\xa7"
31192 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
31193 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
31194 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
31195 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
31196 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
31197 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
31198 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
31199 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
31200 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
31201 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
31202 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
31203 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
31204 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
31205 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
31206 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
31207 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
31208 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
31209 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
31210 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
31211 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
31212 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
31213 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
31214 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
31215 "\xf0\x01\x12\x23\x34\x45\x56\x67"
31216 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
31217 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
31218 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
31219 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
31220 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
31221 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
31222 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
31223 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
31224 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
31225 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
31226 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
31227 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
31228 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
31229 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
31230 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
31231 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
31232 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
31233 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
31234 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
31235 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
31236 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
31237 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
31238 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
31239 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
31240 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
31241 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
31242 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
31243 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
31244 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
31245 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
31246 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
31247 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
31248 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
31249 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
31250 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
31251 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
31252 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
31253 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
31254 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
31255 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
31256 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
31257 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
31258 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
31259 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
31260 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
31261 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
31262 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
31263 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
31264 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
31265 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
31266 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
31267 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
31268 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
31269 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
31270 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
31271 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
31272 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
31273 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
31274 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
31275 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
31276 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
31277 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
31278 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
31279 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
31280 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
31281 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
31282 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
31283 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
31284 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
31285 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
31286 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
31287 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
31288 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
31289 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
31290 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
31291 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
31292 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
31293 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
31294 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
31295 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
31296 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
31297 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
31298 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
31299 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
31300 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
31301 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
31302 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
31303 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
31304 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
31305 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
31306 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
31307 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
31308 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
31309 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
31310 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
31311 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
31312 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
31313 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
31314 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
31315 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
31316 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
31317 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
31318 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
31319 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
31320 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
31321 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
31322 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
31323 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
31324 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
31325 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
31326 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
31327 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
31328 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
31329 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
31330 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
31331 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
31332 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
31333 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
31334 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
31335 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
31336 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
31337 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
31338 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
31339 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
31340 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
31341 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
31342 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
31343 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
31344 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
31345 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
31346 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
31347 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
31348 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
31349 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
31350 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
31351 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
31352 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
31353 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
31354 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
31355 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
31356 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
31357 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
31358 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
31359 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
31360 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
31361 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
31362 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
31363 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
31364 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
31365 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
31366 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
31367 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
31368 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
31369 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
31370 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
31371 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
31372 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
31373 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
31374 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
31375 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
31376 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
31377 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
31378 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
31379 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
31380 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
31381 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
31382 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
31383 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
31384 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
31385 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
31386 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
31387 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
31388 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
31389 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
31390 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
31391 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
31392 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
31393 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
31394 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
31395 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
31396 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
31397 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
31398 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
31399 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
31400 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
31401 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
31402 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
31403 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
31404 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
31405 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
31406 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
31407 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
31408 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
31409 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
31410 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
31411 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
31412 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
31413 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
31414 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
31415 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
31416 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
31417 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
31418 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
31419 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
31420 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
31421 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
31422 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
31423 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
31424 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
31425 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
31426 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
31427 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
31428 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
31429 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
31430 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
31431 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
31432 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
31433 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
31434 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
31435 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
31436 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
31437 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
31438 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
31439 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
31440 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
31441 "\x00\x21\x42\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031442 .ctext =
Herbert Xuda7f0332008-07-31 17:08:25 +080031443 "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
31444 "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
31445 "\x29\x01\xce\x98\x55\x53\xf9\x0c"
31446 "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
31447 "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
31448 "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
31449 "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
31450 "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
31451 "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
31452 "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
31453 "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
31454 "\xbb\xde\x56\x86\xab\x65\x21\x30"
31455 "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
31456 "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
31457 "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
31458 "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
31459 "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
31460 "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
31461 "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
31462 "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
31463 "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
31464 "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
31465 "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
31466 "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
31467 "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
31468 "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
31469 "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
31470 "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
31471 "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
31472 "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
31473 "\x45\xff\x3f\xce\x55\xf6\x95\x10"
31474 "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
31475 "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
31476 "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
31477 "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
31478 "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
31479 "\x62\x08\x18\x7a\x25\x49\x28\xac"
31480 "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
31481 "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
31482 "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
31483 "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
31484 "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
31485 "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
31486 "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
31487 "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
31488 "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
31489 "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
31490 "\x33\xee\x14\x19\x22\x52\x89\xa7"
31491 "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
31492 "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
31493 "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
31494 "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
31495 "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
31496 "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
31497 "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
31498 "\x04\x07\x08\x52\xe6\xc0\xda\x93"
31499 "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
31500 "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
31501 "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
31502 "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
31503 "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
31504 "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
31505 "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
31506 "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
31507 "\x5a\x90\xae\x75\x0a\x74\x18\x89"
31508 "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
31509 "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
31510 "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
31511 "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
31512 "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
31513 "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
31514 "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
31515 "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
31516 "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
31517 "\x49\x97\x33\xab\x36\x14\x0a\x70"
31518 "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
31519 "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
31520 "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
31521 "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
31522 "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
31523 "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
31524 "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
31525 "\x47\x13\x28\x73\x3c\xbb\x00\x90"
31526 "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
31527 "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
31528 "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
31529 "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
31530 "\xad\x04\x07\xae\x22\x90\x4a\x93"
31531 "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
31532 "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
31533 "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
31534 "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
31535 "\x53\xf9\x80\x10\xde\x80\xa2\x41"
31536 "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
31537 "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
31538 "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
31539 "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
31540 "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
31541 "\xde\xff\x07\x44\xdd\x56\x1b\xad"
31542 "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
31543 "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
31544 "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
31545 "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
31546 "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
31547 "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
31548 "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
31549 "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
31550 "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
31551 "\x23\xf8\x66\x18\x14\x28\x34\x0f"
31552 "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
31553 "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
31554 "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
31555 "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
31556 "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
31557 "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
31558 "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
31559 "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
31560 "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
31561 "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
31562 "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
31563 "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
31564 "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
31565 "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
31566 "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
31567 "\xca\x8e\x61\x87\xde\xad\x80\xd2"
31568 "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
31569 "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
31570 "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
31571 "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
31572 "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
31573 "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
31574 "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
31575 "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
31576 "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
31577 "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
31578 "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
31579 "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
31580 "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
31581 "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
31582 "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
31583 "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
31584 "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
31585 "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
31586 "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
31587 "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
31588 "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
31589 "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
31590 "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
31591 "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
31592 "\x54\xda\x24\x6a\xc4\x41\x65\x46"
31593 "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
31594 "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
31595 "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
31596 "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
31597 "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
31598 "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
31599 "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
31600 "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
31601 "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
31602 "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
31603 "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
31604 "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
31605 "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
31606 "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
31607 "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
31608 "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
31609 "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
31610 "\xef\xcc\xa7\xec\xab\x43\x09\x18"
31611 "\xd3\xab\x68\xd1\x07\x99\x44\x47"
31612 "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
31613 "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
31614 "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
31615 "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
31616 "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
31617 "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
31618 "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
31619 "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
31620 "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
31621 "\x71\x6e\x9f\x58\x15\x67\x72\x87"
31622 "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
31623 "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
31624 "\xba\x41\x54\xac\xf0\xfc\x59\x12"
31625 "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
31626 "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
31627 "\x2e\x53\x49\x97\x94\x33\xae\x40"
31628 "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
31629 "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
31630 "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
31631 "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
31632 "\xce\x87\xad\xcc\x72\x05\x00\x29"
31633 "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
31634 "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
31635 "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
31636 "\xac\xc0\x79\x50\x69\xca\x59\x32"
31637 "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
31638 "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
31639 "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
31640 "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
31641 "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
31642 "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
31643 "\x05\x68\x6b\xab\xe3\x41\x49\xed"
31644 "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
31645 "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
31646 "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
31647 "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
31648 "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
31649 "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
31650 "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
31651 "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
31652 "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
31653 "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
31654 "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
31655 "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
31656 "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
31657 "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
31658 "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
31659 "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
31660 "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
31661 "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
31662 "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
31663 "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
31664 "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
31665 "\x85\x75\xe6\x43\xf6\x87\x08\x68"
31666 "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
31667 "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
31668 "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
31669 "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
31670 "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
31671 "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
31672 "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
31673 "\xaf\x55\xeb\x22\xac\x93\x68\x32"
31674 "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
31675 "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
31676 "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
31677 "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
31678 "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
31679 "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
31680 "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
31681 "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
31682 "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
31683 "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
31684 "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
31685 "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
31686 "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
31687 "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
31688 "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
31689 "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
31690 "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
31691 "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
31692 "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
31693 "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
31694 "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
31695 "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
31696 "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
31697 "\x38\x55\xab\x33\x26\xef\x9f\x43"
31698 "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
31699 "\x58\x09\x09\x1b\xc3\x65\x46\x46"
31700 "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
31701 "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
31702 "\x63\x86\xf2\x03\x67\x45\xd2\x72"
31703 "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
31704 "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
31705 "\x2b\x82\x39\xbd\x69\x54\xed\x62"
31706 "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
31707 "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
31708 "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
31709 "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
31710 "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
31711 "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
31712 "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
31713 "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
31714 "\x55\xad\xa4\xd1\x22\x54\x70\x94"
31715 "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
31716 "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
31717 "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
31718 "\x62\x36\x43\xb2\x82\x15\x75\x50"
31719 "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
31720 "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
31721 "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
31722 "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
31723 "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
31724 "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
31725 "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
31726 "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
31727 "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
31728 "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
31729 "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
31730 "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
31731 "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
31732 "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
31733 "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
31734 "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
31735 "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
31736 "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
31737 "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
31738 "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
31739 "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
31740 "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
31741 "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
31742 "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
31743 "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
31744 "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
31745 "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
31746 "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
31747 "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
31748 "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
31749 "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
31750 "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
31751 "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
31752 "\x42\x19\x23\x7d\xc8\x73\xee\x25"
31753 "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
31754 "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
31755 "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
31756 "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
31757 "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
31758 "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
31759 "\xdb\x87\xee\xef\x55\x89\x2a\x59"
31760 "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
31761 "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
31762 "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
31763 "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
31764 "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
31765 "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
31766 "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
31767 "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
31768 "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
31769 "\xae\xab\x86\x09\x89\xc9\xc2\x40"
31770 "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
31771 "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
31772 "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
31773 "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
31774 "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
31775 "\x95\xd9\x34\x34\x86\xc6\x41\x94"
31776 "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
31777 "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
31778 "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
31779 "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
31780 "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
31781 "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
31782 "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
31783 "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
31784 "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
31785 "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
31786 "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
31787 "\xa7\x33\x34\x86\xca\xe4\x96\x23"
31788 "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
31789 "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
31790 "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
31791 "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
31792 "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
31793 "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
31794 "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
31795 "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
31796 "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
31797 "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
31798 "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
31799 "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
31800 "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
31801 "\x68\xc8\x7f\x51\x22\x42\xef\x49"
31802 "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
31803 "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
31804 "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
31805 "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
31806 "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
31807 "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
31808 "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
31809 "\x73\x2e\x71\x79\x16\x06\x63\x28"
31810 "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
31811 "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
31812 "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
31813 "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
31814 "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
31815 "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
31816 "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
31817 "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
31818 "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
31819 "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
31820 "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
31821 "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
31822 "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
31823 "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
31824 "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
31825 "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
31826 "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
31827 "\x19\x07\xaf\x90\x62\x5c\x68\x98"
31828 "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
31829 "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
31830 "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
31831 "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
31832 "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
31833 "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
31834 "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
31835 "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
31836 "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
31837 "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
31838 "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
31839 "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
31840 "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
31841 "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
31842 "\x21\x33\x44\xfe\x7f\x35\x32\x93"
31843 "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
31844 "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
31845 "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
31846 "\x64\xf0\x48\xe5\x57\x99\xee\x75"
31847 "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
31848 "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
31849 "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
31850 "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
31851 "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
31852 "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
31853 "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
31854 "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
31855 "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
31856 "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
31857 "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
31858 "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
31859 "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
31860 "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
31861 "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
31862 "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
31863 "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
31864 "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
31865 "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
31866 "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
31867 "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
31868 "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
31869 "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
31870 "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
31871 "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
31872 "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
31873 "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
31874 "\x56\xf5\x4e\x01\x35\x27\x45\x77"
31875 "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
31876 "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
31877 "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
31878 "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
31879 "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
31880 "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
31881 "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
31882 "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
31883 "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
31884 "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
31885 "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
31886 "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
31887 "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
31888 "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
31889 "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
31890 "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
31891 "\x87\x8f\x03\x21\x28\x95\x0c\x89"
31892 "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
31893 "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
31894 "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
31895 "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
31896 "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
31897 "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
31898 "\x85\x73\x78\x45\x20\x7f\xae\x13"
31899 "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
31900 "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
31901 "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
31902 "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
31903 "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
31904 "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
31905 "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
31906 "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
31907 "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
31908 "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
31909 "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
31910 "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
31911 "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
31912 "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
31913 "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
31914 "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
31915 "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
31916 "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
31917 "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
31918 "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
31919 "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
31920 "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
31921 "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
31922 "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
31923 "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
31924 "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
31925 "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
31926 "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
31927 "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
31928 "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
31929 "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
31930 "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
31931 "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
31932 "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
31933 "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
31934 "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
31935 "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
31936 "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
31937 "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
31938 "\x6e\x12\x17\x72\x63\x57\xc7\xba"
31939 "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
31940 "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
31941 "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
31942 "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
31943 "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
31944 "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
31945 "\x0c\x24\x43\x31\x40\x57\xf1\x72"
31946 "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
31947 "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
31948 "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
31949 "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
31950 "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
31951 "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
31952 "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
31953 "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
31954 "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
31955 "\xaf\xdf\x11\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031956 .len = 4100,
Herbert Xuda7f0332008-07-31 17:08:25 +080031957 .np = 2,
31958 .tap = { 4064, 36 },
31959 },
31960};
31961
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031962static const struct cipher_testvec chacha20_tv_template[] = {
Martin Willi3590ebf2015-06-01 13:43:57 +020031963 { /* RFC7539 A.2. Test Vector #1 */
31964 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31965 "\x00\x00\x00\x00\x00\x00\x00\x00"
31966 "\x00\x00\x00\x00\x00\x00\x00\x00"
31967 "\x00\x00\x00\x00\x00\x00\x00\x00",
31968 .klen = 32,
31969 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31970 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031971 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willi3590ebf2015-06-01 13:43:57 +020031972 "\x00\x00\x00\x00\x00\x00\x00\x00"
31973 "\x00\x00\x00\x00\x00\x00\x00\x00"
31974 "\x00\x00\x00\x00\x00\x00\x00\x00"
31975 "\x00\x00\x00\x00\x00\x00\x00\x00"
31976 "\x00\x00\x00\x00\x00\x00\x00\x00"
31977 "\x00\x00\x00\x00\x00\x00\x00\x00"
31978 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031979 .ctext = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
Martin Willi3590ebf2015-06-01 13:43:57 +020031980 "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
31981 "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
31982 "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
31983 "\xda\x41\x59\x7c\x51\x57\x48\x8d"
31984 "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
31985 "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
31986 "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031987 .len = 64,
Martin Willi3590ebf2015-06-01 13:43:57 +020031988 }, { /* RFC7539 A.2. Test Vector #2 */
31989 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31990 "\x00\x00\x00\x00\x00\x00\x00\x00"
31991 "\x00\x00\x00\x00\x00\x00\x00\x00"
31992 "\x00\x00\x00\x00\x00\x00\x00\x01",
31993 .klen = 32,
31994 .iv = "\x01\x00\x00\x00\x00\x00\x00\x00"
31995 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031996 .ptext = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
Martin Willi3590ebf2015-06-01 13:43:57 +020031997 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
31998 "\x6f\x20\x74\x68\x65\x20\x49\x45"
31999 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
32000 "\x64\x65\x64\x20\x62\x79\x20\x74"
32001 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
32002 "\x69\x62\x75\x74\x6f\x72\x20\x66"
32003 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
32004 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
32005 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
32006 "\x20\x70\x61\x72\x74\x20\x6f\x66"
32007 "\x20\x61\x6e\x20\x49\x45\x54\x46"
32008 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
32009 "\x74\x2d\x44\x72\x61\x66\x74\x20"
32010 "\x6f\x72\x20\x52\x46\x43\x20\x61"
32011 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
32012 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
32013 "\x20\x6d\x61\x64\x65\x20\x77\x69"
32014 "\x74\x68\x69\x6e\x20\x74\x68\x65"
32015 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
32016 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
32017 "\x45\x54\x46\x20\x61\x63\x74\x69"
32018 "\x76\x69\x74\x79\x20\x69\x73\x20"
32019 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
32020 "\x65\x64\x20\x61\x6e\x20\x22\x49"
32021 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
32022 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
32023 "\x22\x2e\x20\x53\x75\x63\x68\x20"
32024 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32025 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
32026 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
32027 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32028 "\x74\x73\x20\x69\x6e\x20\x49\x45"
32029 "\x54\x46\x20\x73\x65\x73\x73\x69"
32030 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
32031 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
32032 "\x77\x72\x69\x74\x74\x65\x6e\x20"
32033 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
32034 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
32035 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
32036 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
32037 "\x64\x65\x20\x61\x74\x20\x61\x6e"
32038 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
32039 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
32040 "\x20\x77\x68\x69\x63\x68\x20\x61"
32041 "\x72\x65\x20\x61\x64\x64\x72\x65"
32042 "\x73\x73\x65\x64\x20\x74\x6f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070032043 .ctext = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
Martin Willi3590ebf2015-06-01 13:43:57 +020032044 "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
32045 "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
32046 "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
32047 "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
32048 "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
32049 "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
32050 "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
32051 "\x40\x42\xe0\x27\x85\xec\xec\xfa"
32052 "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
32053 "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
32054 "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
32055 "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
32056 "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
32057 "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
32058 "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
32059 "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
32060 "\xd6\x62\xab\x05\x26\x91\xca\x66"
32061 "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
32062 "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
32063 "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
32064 "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
32065 "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
32066 "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
32067 "\x08\x71\xcd\xac\x63\x89\x39\xe2"
32068 "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
32069 "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
32070 "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
32071 "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
32072 "\x37\x20\xfc\x88\xdc\x95\xed\x84"
32073 "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
32074 "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
32075 "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
32076 "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
32077 "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
32078 "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
32079 "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
32080 "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
32081 "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
32082 "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
32083 "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
32084 "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
32085 "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
32086 "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
32087 "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
32088 "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
32089 "\xc4\xfd\x80\x6c\x22\xf2\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070032090 .len = 375,
Ard Biesheuvel549f6412017-08-14 14:28:15 +010032091 .also_non_np = 1,
32092 .np = 3,
32093 .tap = { 375 - 20, 4, 16 },
32094
Martin Willi3590ebf2015-06-01 13:43:57 +020032095 }, { /* RFC7539 A.2. Test Vector #3 */
32096 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32097 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32098 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32099 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32100 .klen = 32,
32101 .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00"
32102 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070032103 .ptext = "\x27\x54\x77\x61\x73\x20\x62\x72"
Martin Willi3590ebf2015-06-01 13:43:57 +020032104 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
32105 "\x6e\x64\x20\x74\x68\x65\x20\x73"
32106 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
32107 "\x76\x65\x73\x0a\x44\x69\x64\x20"
32108 "\x67\x79\x72\x65\x20\x61\x6e\x64"
32109 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
32110 "\x69\x6e\x20\x74\x68\x65\x20\x77"
32111 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
32112 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
32113 "\x65\x72\x65\x20\x74\x68\x65\x20"
32114 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
32115 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
32116 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
32117 "\x72\x61\x74\x68\x73\x20\x6f\x75"
32118 "\x74\x67\x72\x61\x62\x65\x2e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070032119 .ctext = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
Martin Willi3590ebf2015-06-01 13:43:57 +020032120 "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
32121 "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
32122 "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
32123 "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
32124 "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
32125 "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
32126 "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
32127 "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
32128 "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
32129 "\x1a\x55\x32\x05\x57\x16\xea\xd6"
32130 "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
32131 "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
32132 "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
32133 "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
32134 "\x75\x7a\x79\x7a\xc1\x88\xd1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070032135 .len = 127,
Martin Willi6692cbc2015-07-16 19:14:04 +020032136 }, { /* Self-made test vector for long data */
32137 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32138 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32139 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32140 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32141 .klen = 32,
32142 .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00"
32143 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070032144 .ptext = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
Martin Willi6692cbc2015-07-16 19:14:04 +020032145 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
32146 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
32147 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
32148 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
32149 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
32150 "\x01\xc6\x67\xda\x03\x91\x18\x90"
32151 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
32152 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
32153 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
32154 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
32155 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
32156 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
32157 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
32158 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
32159 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
32160 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
32161 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
32162 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
32163 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
32164 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
32165 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
32166 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
32167 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
32168 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
32169 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
32170 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
32171 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
32172 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
32173 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
32174 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
32175 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
32176 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
32177 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
32178 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
32179 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
32180 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
32181 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
32182 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
32183 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
32184 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
32185 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
32186 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
32187 "\x49\x46\x00\x88\x22\x8d\xce\xea"
32188 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
32189 "\x72\x11\xf5\x50\x73\x04\x40\x47"
32190 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
32191 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
32192 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
32193 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
32194 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
32195 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
32196 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
32197 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
32198 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
32199 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
32200 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
32201 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
32202 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
32203 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
32204 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
32205 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
32206 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
32207 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
32208 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
32209 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
32210 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
32211 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
32212 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
32213 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
32214 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
32215 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
32216 "\x65\x69\x8a\x45\x29\xef\x74\x85"
32217 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
32218 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
32219 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
32220 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
32221 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
32222 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
32223 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
32224 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
32225 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
32226 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
32227 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
32228 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
32229 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
32230 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
32231 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
32232 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
32233 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
32234 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
32235 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
32236 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
32237 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
32238 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
32239 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
32240 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
32241 "\x25\x94\x10\x5f\x40\x00\x64\x99"
32242 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
32243 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
32244 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
32245 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
32246 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
32247 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
32248 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
32249 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
32250 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
32251 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
32252 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
32253 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
32254 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
32255 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
32256 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
32257 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
32258 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
32259 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
32260 "\xb9\x83\x90\xef\x20\x59\x46\xff"
32261 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
32262 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
32263 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
32264 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
32265 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
32266 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
32267 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
32268 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
32269 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
32270 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
32271 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
32272 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
32273 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
32274 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
32275 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
32276 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
32277 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
32278 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
32279 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
32280 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
32281 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
32282 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
32283 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
32284 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
32285 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
32286 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
32287 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
32288 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
32289 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
32290 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
32291 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
32292 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
32293 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
32294 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
32295 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
32296 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
32297 "\xca\x34\x83\x27\x10\x5b\x68\x45"
32298 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
32299 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
32300 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
32301 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
32302 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
32303 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
32304 "\x72",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070032305 .ctext = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
Martin Willi6692cbc2015-07-16 19:14:04 +020032306 "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
32307 "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
32308 "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
32309 "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
32310 "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
32311 "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
32312 "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
32313 "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
32314 "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
32315 "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
32316 "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
32317 "\x33\x4a\x71\x15\xfe\xee\x12\x54"
32318 "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
32319 "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
32320 "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
32321 "\x57\x0e\x94\x17\x26\x39\xbb\x54"
32322 "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
32323 "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
32324 "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
32325 "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
32326 "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
32327 "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
32328 "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
32329 "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
32330 "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
32331 "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
32332 "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
32333 "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
32334 "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
32335 "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
32336 "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
32337 "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
32338 "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
32339 "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
32340 "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
32341 "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
32342 "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
32343 "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
32344 "\xae\xe7\x61\x32\xef\x41\x6c\x75"
32345 "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
32346 "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
32347 "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
32348 "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
32349 "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
32350 "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
32351 "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
32352 "\xc1\x22\xf3\x79\xae\x95\x78\x66"
32353 "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
32354 "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
32355 "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
32356 "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
32357 "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
32358 "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
32359 "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
32360 "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
32361 "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
32362 "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
32363 "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
32364 "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
32365 "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
32366 "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
32367 "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
32368 "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
32369 "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
32370 "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
32371 "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
32372 "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
32373 "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
32374 "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
32375 "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
32376 "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
32377 "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
32378 "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
32379 "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
32380 "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
32381 "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
32382 "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
32383 "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
32384 "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
32385 "\x54\x1c\x34\x72\xde\x0c\x68\x39"
32386 "\x9d\x32\xa5\x75\x92\x13\x32\xea"
32387 "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
32388 "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
32389 "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
32390 "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
32391 "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
32392 "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
32393 "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
32394 "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
32395 "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
32396 "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
32397 "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
32398 "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
32399 "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
32400 "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
32401 "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
32402 "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
32403 "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
32404 "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
32405 "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
32406 "\x79\x61\x23\xe0\xa2\x99\x73\x55"
32407 "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
32408 "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
32409 "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
32410 "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
32411 "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
32412 "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
32413 "\x48\x56\xaa\x85\x22\xd8\x36\xed"
32414 "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
32415 "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
32416 "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
32417 "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
32418 "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
32419 "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
32420 "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
32421 "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
32422 "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
32423 "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
32424 "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
32425 "\xec\x83\x92\x99\x87\x47\xe0\x7c"
32426 "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
32427 "\x98\xb0\x87\xb6\x86\x13\x64\x33"
32428 "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
32429 "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
32430 "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
32431 "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
32432 "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
32433 "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
32434 "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
32435 "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
32436 "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
32437 "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
32438 "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
32439 "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
32440 "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
32441 "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
32442 "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
32443 "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
32444 "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
32445 "\x5f\xae\x25\x84\x22\x90\x5f\x26"
32446 "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
32447 "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
32448 "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
32449 "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
32450 "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
32451 "\x74\x06\x89\x0e\x90\xeb\x85\xff"
32452 "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
32453 "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
32454 "\x02\x85\x68\xd0\x03\x12\xde\x92"
32455 "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
32456 "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
32457 "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
32458 "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
32459 "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
32460 "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
32461 "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
32462 "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
32463 "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
32464 "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
32465 "\x98",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070032466 .len = 1281,
Ard Biesheuvel549f6412017-08-14 14:28:15 +010032467 .also_non_np = 1,
32468 .np = 3,
32469 .tap = { 1200, 1, 80 },
Martin Willi3590ebf2015-06-01 13:43:57 +020032470 },
32471};
32472
Eric Biggersde61d7a2018-11-16 17:26:20 -080032473static const struct cipher_testvec xchacha20_tv_template[] = {
32474 { /* from libsodium test/default/xchacha20.c */
32475 .key = "\x79\xc9\x97\x98\xac\x67\x30\x0b"
32476 "\xbb\x27\x04\xc9\x5c\x34\x1e\x32"
32477 "\x45\xf3\xdc\xb2\x17\x61\xb9\x8e"
32478 "\x52\xff\x45\xb2\x4f\x30\x4f\xc4",
32479 .klen = 32,
32480 .iv = "\xb3\x3f\xfd\x30\x96\x47\x9b\xcf"
32481 "\xbc\x9a\xee\x49\x41\x76\x88\xa0"
32482 "\xa2\x55\x4f\x8d\x95\x38\x94\x19"
32483 "\x00\x00\x00\x00\x00\x00\x00\x00",
32484 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
32485 "\x00\x00\x00\x00\x00\x00\x00\x00"
32486 "\x00\x00\x00\x00\x00\x00\x00\x00"
32487 "\x00\x00\x00\x00\x00",
32488 .ctext = "\xc6\xe9\x75\x81\x60\x08\x3a\xc6"
32489 "\x04\xef\x90\xe7\x12\xce\x6e\x75"
32490 "\xd7\x79\x75\x90\x74\x4e\x0c\xf0"
32491 "\x60\xf0\x13\x73\x9c",
32492 .len = 29,
32493 }, { /* from libsodium test/default/xchacha20.c */
32494 .key = "\x9d\x23\xbd\x41\x49\xcb\x97\x9c"
32495 "\xcf\x3c\x5c\x94\xdd\x21\x7e\x98"
32496 "\x08\xcb\x0e\x50\xcd\x0f\x67\x81"
32497 "\x22\x35\xea\xaf\x60\x1d\x62\x32",
32498 .klen = 32,
32499 .iv = "\xc0\x47\x54\x82\x66\xb7\xc3\x70"
32500 "\xd3\x35\x66\xa2\x42\x5c\xbf\x30"
32501 "\xd8\x2d\x1e\xaf\x52\x94\x10\x9e"
32502 "\x00\x00\x00\x00\x00\x00\x00\x00",
32503 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
32504 "\x00\x00\x00\x00\x00\x00\x00\x00"
32505 "\x00\x00\x00\x00\x00\x00\x00\x00"
32506 "\x00\x00\x00\x00\x00\x00\x00\x00"
32507 "\x00\x00\x00\x00\x00\x00\x00\x00"
32508 "\x00\x00\x00\x00\x00\x00\x00\x00"
32509 "\x00\x00\x00\x00\x00\x00\x00\x00"
32510 "\x00\x00\x00\x00\x00\x00\x00\x00"
32511 "\x00\x00\x00\x00\x00\x00\x00\x00"
32512 "\x00\x00\x00\x00\x00\x00\x00\x00"
32513 "\x00\x00\x00\x00\x00\x00\x00\x00"
32514 "\x00\x00\x00",
32515 .ctext = "\xa2\x12\x09\x09\x65\x94\xde\x8c"
32516 "\x56\x67\xb1\xd1\x3a\xd9\x3f\x74"
32517 "\x41\x06\xd0\x54\xdf\x21\x0e\x47"
32518 "\x82\xcd\x39\x6f\xec\x69\x2d\x35"
32519 "\x15\xa2\x0b\xf3\x51\xee\xc0\x11"
32520 "\xa9\x2c\x36\x78\x88\xbc\x46\x4c"
32521 "\x32\xf0\x80\x7a\xcd\x6c\x20\x3a"
32522 "\x24\x7e\x0d\xb8\x54\x14\x84\x68"
32523 "\xe9\xf9\x6b\xee\x4c\xf7\x18\xd6"
32524 "\x8d\x5f\x63\x7c\xbd\x5a\x37\x64"
32525 "\x57\x78\x8e\x6f\xae\x90\xfc\x31"
32526 "\x09\x7c\xfc",
32527 .len = 91,
Eric Biggers282c1482018-12-06 13:00:08 -080032528 }, { /* Taken from the ChaCha20 test vectors, appended 12 random bytes
32529 to the nonce, zero-padded the stream position from 4 to 8 bytes,
32530 and recomputed the ciphertext using libsodium's XChaCha20 */
Eric Biggersde61d7a2018-11-16 17:26:20 -080032531 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
32532 "\x00\x00\x00\x00\x00\x00\x00\x00"
32533 "\x00\x00\x00\x00\x00\x00\x00\x00"
32534 "\x00\x00\x00\x00\x00\x00\x00\x00",
32535 .klen = 32,
32536 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
32537 "\x00\x00\x00\x00\x67\xc6\x69\x73"
32538 "\x51\xff\x4a\xec\x29\xcd\xba\xab"
32539 "\x00\x00\x00\x00\x00\x00\x00\x00",
32540 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
32541 "\x00\x00\x00\x00\x00\x00\x00\x00"
32542 "\x00\x00\x00\x00\x00\x00\x00\x00"
32543 "\x00\x00\x00\x00\x00\x00\x00\x00"
32544 "\x00\x00\x00\x00\x00\x00\x00\x00"
32545 "\x00\x00\x00\x00\x00\x00\x00\x00"
32546 "\x00\x00\x00\x00\x00\x00\x00\x00"
32547 "\x00\x00\x00\x00\x00\x00\x00\x00",
32548 .ctext = "\x9c\x49\x2a\xe7\x8a\x2f\x93\xc7"
32549 "\xb3\x33\x6f\x82\x17\xd8\xc4\x1e"
32550 "\xad\x80\x11\x11\x1d\x4c\x16\x18"
32551 "\x07\x73\x9b\x4f\xdb\x7c\xcb\x47"
32552 "\xfd\xef\x59\x74\xfa\x3f\xe5\x4c"
32553 "\x9b\xd0\xea\xbc\xba\x56\xad\x32"
32554 "\x03\xdc\xf8\x2b\xc1\xe1\x75\x67"
32555 "\x23\x7b\xe6\xfc\xd4\x03\x86\x54",
32556 .len = 64,
Eric Biggers282c1482018-12-06 13:00:08 -080032557 }, { /* Derived from a ChaCha20 test vector, via the process above */
Eric Biggersde61d7a2018-11-16 17:26:20 -080032558 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
32559 "\x00\x00\x00\x00\x00\x00\x00\x00"
32560 "\x00\x00\x00\x00\x00\x00\x00\x00"
32561 "\x00\x00\x00\x00\x00\x00\x00\x01",
32562 .klen = 32,
32563 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
32564 "\x00\x00\x00\x02\xf2\xfb\xe3\x46"
32565 "\x7c\xc2\x54\xf8\x1b\xe8\xe7\x8d"
32566 "\x01\x00\x00\x00\x00\x00\x00\x00",
32567 .ptext = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
32568 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
32569 "\x6f\x20\x74\x68\x65\x20\x49\x45"
32570 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
32571 "\x64\x65\x64\x20\x62\x79\x20\x74"
32572 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
32573 "\x69\x62\x75\x74\x6f\x72\x20\x66"
32574 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
32575 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
32576 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
32577 "\x20\x70\x61\x72\x74\x20\x6f\x66"
32578 "\x20\x61\x6e\x20\x49\x45\x54\x46"
32579 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
32580 "\x74\x2d\x44\x72\x61\x66\x74\x20"
32581 "\x6f\x72\x20\x52\x46\x43\x20\x61"
32582 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
32583 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
32584 "\x20\x6d\x61\x64\x65\x20\x77\x69"
32585 "\x74\x68\x69\x6e\x20\x74\x68\x65"
32586 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
32587 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
32588 "\x45\x54\x46\x20\x61\x63\x74\x69"
32589 "\x76\x69\x74\x79\x20\x69\x73\x20"
32590 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
32591 "\x65\x64\x20\x61\x6e\x20\x22\x49"
32592 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
32593 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
32594 "\x22\x2e\x20\x53\x75\x63\x68\x20"
32595 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32596 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
32597 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
32598 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
32599 "\x74\x73\x20\x69\x6e\x20\x49\x45"
32600 "\x54\x46\x20\x73\x65\x73\x73\x69"
32601 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
32602 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
32603 "\x77\x72\x69\x74\x74\x65\x6e\x20"
32604 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
32605 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
32606 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
32607 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
32608 "\x64\x65\x20\x61\x74\x20\x61\x6e"
32609 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
32610 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
32611 "\x20\x77\x68\x69\x63\x68\x20\x61"
32612 "\x72\x65\x20\x61\x64\x64\x72\x65"
32613 "\x73\x73\x65\x64\x20\x74\x6f",
32614 .ctext = "\xf9\xab\x7a\x4a\x60\xb8\x5f\xa0"
32615 "\x50\xbb\x57\xce\xef\x8c\xc1\xd9"
32616 "\x24\x15\xb3\x67\x5e\x7f\x01\xf6"
32617 "\x1c\x22\xf6\xe5\x71\xb1\x43\x64"
32618 "\x63\x05\xd5\xfc\x5c\x3d\xc0\x0e"
32619 "\x23\xef\xd3\x3b\xd9\xdc\x7f\xa8"
32620 "\x58\x26\xb3\xd0\xc2\xd5\x04\x3f"
32621 "\x0a\x0e\x8f\x17\xe4\xcd\xf7\x2a"
32622 "\xb4\x2c\x09\xe4\x47\xec\x8b\xfb"
32623 "\x59\x37\x7a\xa1\xd0\x04\x7e\xaa"
32624 "\xf1\x98\x5f\x24\x3d\x72\x9a\x43"
32625 "\xa4\x36\x51\x92\x22\x87\xff\x26"
32626 "\xce\x9d\xeb\x59\x78\x84\x5e\x74"
32627 "\x97\x2e\x63\xc0\xef\x29\xf7\x8a"
32628 "\xb9\xee\x35\x08\x77\x6a\x35\x9a"
32629 "\x3e\xe6\x4f\x06\x03\x74\x1b\xc1"
32630 "\x5b\xb3\x0b\x89\x11\x07\xd3\xb7"
32631 "\x53\xd6\x25\x04\xd9\x35\xb4\x5d"
32632 "\x4c\x33\x5a\xc2\x42\x4c\xe6\xa4"
32633 "\x97\x6e\x0e\xd2\xb2\x8b\x2f\x7f"
32634 "\x28\xe5\x9f\xac\x4b\x2e\x02\xab"
32635 "\x85\xfa\xa9\x0d\x7c\x2d\x10\xe6"
32636 "\x91\xab\x55\x63\xf0\xde\x3a\x94"
32637 "\x25\x08\x10\x03\xc2\x68\xd1\xf4"
32638 "\xaf\x7d\x9c\x99\xf7\x86\x96\x30"
32639 "\x60\xfc\x0b\xe6\xa8\x80\x15\xb0"
32640 "\x81\xb1\x0c\xbe\xb9\x12\x18\x25"
32641 "\xe9\x0e\xb1\xe7\x23\xb2\xef\x4a"
32642 "\x22\x8f\xc5\x61\x89\xd4\xe7\x0c"
32643 "\x64\x36\x35\x61\xb6\x34\x60\xf7"
32644 "\x7b\x61\x37\x37\x12\x10\xa2\xf6"
32645 "\x7e\xdb\x7f\x39\x3f\xb6\x8e\x89"
32646 "\x9e\xf3\xfe\x13\x98\xbb\x66\x5a"
32647 "\xec\xea\xab\x3f\x9c\x87\xc4\x8c"
32648 "\x8a\x04\x18\x49\xfc\x77\x11\x50"
32649 "\x16\xe6\x71\x2b\xee\xc0\x9c\xb6"
32650 "\x87\xfd\x80\xff\x0b\x1d\x73\x38"
32651 "\xa4\x1d\x6f\xae\xe4\x12\xd7\x93"
32652 "\x9d\xcd\x38\x26\x09\x40\x52\xcd"
32653 "\x67\x01\x67\x26\xe0\x3e\x98\xa8"
32654 "\xe8\x1a\x13\x41\xbb\x90\x4d\x87"
32655 "\xbb\x42\x82\x39\xce\x3a\xd0\x18"
32656 "\x6d\x7b\x71\x8f\xbb\x2c\x6a\xd1"
32657 "\xbd\xf5\xc7\x8a\x7e\xe1\x1e\x0f"
32658 "\x0d\x0d\x13\x7c\xd9\xd8\x3c\x91"
32659 "\xab\xff\x1f\x12\xc3\xee\xe5\x65"
32660 "\x12\x8d\x7b\x61\xe5\x1f\x98",
32661 .len = 375,
32662 .also_non_np = 1,
32663 .np = 3,
32664 .tap = { 375 - 20, 4, 16 },
32665
Eric Biggers282c1482018-12-06 13:00:08 -080032666 }, { /* Derived from a ChaCha20 test vector, via the process above */
Eric Biggersde61d7a2018-11-16 17:26:20 -080032667 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32668 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32669 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32670 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32671 .klen = 32,
32672 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
32673 "\x00\x00\x00\x02\x76\x5a\x2e\x63"
32674 "\x33\x9f\xc9\x9a\x66\x32\x0d\xb7"
32675 "\x2a\x00\x00\x00\x00\x00\x00\x00",
32676 .ptext = "\x27\x54\x77\x61\x73\x20\x62\x72"
32677 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
32678 "\x6e\x64\x20\x74\x68\x65\x20\x73"
32679 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
32680 "\x76\x65\x73\x0a\x44\x69\x64\x20"
32681 "\x67\x79\x72\x65\x20\x61\x6e\x64"
32682 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
32683 "\x69\x6e\x20\x74\x68\x65\x20\x77"
32684 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
32685 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
32686 "\x65\x72\x65\x20\x74\x68\x65\x20"
32687 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
32688 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
32689 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
32690 "\x72\x61\x74\x68\x73\x20\x6f\x75"
32691 "\x74\x67\x72\x61\x62\x65\x2e",
32692 .ctext = "\x95\xb9\x51\xe7\x8f\xb4\xa4\x03"
32693 "\xca\x37\xcc\xde\x60\x1d\x8c\xe2"
32694 "\xf1\xbb\x8a\x13\x7f\x61\x85\xcc"
32695 "\xad\xf4\xf0\xdc\x86\xa6\x1e\x10"
32696 "\xbc\x8e\xcb\x38\x2b\xa5\xc8\x8f"
32697 "\xaa\x03\x3d\x53\x4a\x42\xb1\x33"
32698 "\xfc\xd3\xef\xf0\x8e\x7e\x10\x9c"
32699 "\x6f\x12\x5e\xd4\x96\xfe\x5b\x08"
32700 "\xb6\x48\xf0\x14\x74\x51\x18\x7c"
32701 "\x07\x92\xfc\xac\x9d\xf1\x94\xc0"
32702 "\xc1\x9d\xc5\x19\x43\x1f\x1d\xbb"
32703 "\x07\xf0\x1b\x14\x25\x45\xbb\xcb"
32704 "\x5c\xe2\x8b\x28\xf3\xcf\x47\x29"
32705 "\x27\x79\x67\x24\xa6\x87\xc2\x11"
32706 "\x65\x03\xfa\x45\xf7\x9e\x53\x7a"
32707 "\x99\xf1\x82\x25\x4f\x8d\x07",
32708 .len = 127,
Eric Biggers282c1482018-12-06 13:00:08 -080032709 }, { /* Derived from a ChaCha20 test vector, via the process above */
Eric Biggersde61d7a2018-11-16 17:26:20 -080032710 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
32711 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
32712 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
32713 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
32714 .klen = 32,
32715 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
32716 "\x00\x00\x00\x01\x31\x58\xa3\x5a"
32717 "\x25\x5d\x05\x17\x58\xe9\x5e\xd4"
32718 "\x1c\x00\x00\x00\x00\x00\x00\x00",
32719 .ptext = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
32720 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
32721 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
32722 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
32723 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
32724 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
32725 "\x01\xc6\x67\xda\x03\x91\x18\x90"
32726 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
32727 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
32728 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
32729 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
32730 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
32731 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
32732 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
32733 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
32734 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
32735 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
32736 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
32737 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
32738 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
32739 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
32740 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
32741 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
32742 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
32743 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
32744 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
32745 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
32746 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
32747 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
32748 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
32749 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
32750 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
32751 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
32752 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
32753 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
32754 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
32755 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
32756 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
32757 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
32758 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
32759 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
32760 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
32761 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
32762 "\x49\x46\x00\x88\x22\x8d\xce\xea"
32763 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
32764 "\x72\x11\xf5\x50\x73\x04\x40\x47"
32765 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
32766 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
32767 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
32768 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
32769 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
32770 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
32771 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
32772 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
32773 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
32774 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
32775 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
32776 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
32777 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
32778 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
32779 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
32780 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
32781 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
32782 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
32783 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
32784 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
32785 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
32786 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
32787 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
32788 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
32789 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
32790 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
32791 "\x65\x69\x8a\x45\x29\xef\x74\x85"
32792 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
32793 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
32794 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
32795 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
32796 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
32797 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
32798 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
32799 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
32800 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
32801 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
32802 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
32803 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
32804 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
32805 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
32806 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
32807 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
32808 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
32809 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
32810 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
32811 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
32812 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
32813 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
32814 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
32815 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
32816 "\x25\x94\x10\x5f\x40\x00\x64\x99"
32817 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
32818 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
32819 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
32820 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
32821 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
32822 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
32823 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
32824 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
32825 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
32826 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
32827 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
32828 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
32829 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
32830 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
32831 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
32832 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
32833 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
32834 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
32835 "\xb9\x83\x90\xef\x20\x59\x46\xff"
32836 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
32837 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
32838 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
32839 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
32840 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
32841 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
32842 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
32843 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
32844 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
32845 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
32846 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
32847 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
32848 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
32849 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
32850 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
32851 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
32852 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
32853 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
32854 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
32855 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
32856 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
32857 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
32858 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
32859 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
32860 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
32861 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
32862 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
32863 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
32864 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
32865 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
32866 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
32867 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
32868 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
32869 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
32870 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
32871 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
32872 "\xca\x34\x83\x27\x10\x5b\x68\x45"
32873 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
32874 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
32875 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
32876 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
32877 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
32878 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
32879 "\x72",
32880 .ctext = "\x3a\x92\xee\x53\x31\xaf\x2b\x60"
32881 "\x5f\x55\x8d\x00\x5d\xfc\x74\x97"
32882 "\x28\x54\xf4\xa5\x75\xf1\x9b\x25"
32883 "\x62\x1c\xc0\xe0\x13\xc8\x87\x53"
32884 "\xd0\xf3\xa7\x97\x1f\x3b\x1e\xea"
32885 "\xe0\xe5\x2a\xd1\xdd\xa4\x3b\x50"
32886 "\x45\xa3\x0d\x7e\x1b\xc9\xa0\xad"
32887 "\xb9\x2c\x54\xa6\xc7\x55\x16\xd0"
32888 "\xc5\x2e\x02\x44\x35\xd0\x7e\x67"
32889 "\xf2\xc4\x9b\xcd\x95\x10\xcc\x29"
32890 "\x4b\xfa\x86\x87\xbe\x40\x36\xbe"
32891 "\xe1\xa3\x52\x89\x55\x20\x9b\xc2"
32892 "\xab\xf2\x31\x34\x16\xad\xc8\x17"
32893 "\x65\x24\xc0\xff\x12\x37\xfe\x5a"
32894 "\x62\x3b\x59\x47\x6c\x5f\x3a\x8e"
32895 "\x3b\xd9\x30\xc8\x7f\x2f\x88\xda"
32896 "\x80\xfd\x02\xda\x7f\x9a\x7a\x73"
32897 "\x59\xc5\x34\x09\x9a\x11\xcb\xa7"
32898 "\xfc\xf6\xa1\xa0\x60\xfb\x43\xbb"
32899 "\xf1\xe9\xd7\xc6\x79\x27\x4e\xff"
32900 "\x22\xb4\x24\xbf\x76\xee\x47\xb9"
32901 "\x6d\x3f\x8b\xb0\x9c\x3c\x43\xdd"
32902 "\xff\x25\x2e\x6d\xa4\x2b\xfb\x5d"
32903 "\x1b\x97\x6c\x55\x0a\x82\x7a\x7b"
32904 "\x94\x34\xc2\xdb\x2f\x1f\xc1\xea"
32905 "\xd4\x4d\x17\x46\x3b\x51\x69\x09"
32906 "\xe4\x99\x32\x25\xfd\x94\xaf\xfb"
32907 "\x10\xf7\x4f\xdd\x0b\x3c\x8b\x41"
32908 "\xb3\x6a\xb7\xd1\x33\xa8\x0c\x2f"
32909 "\x62\x4c\x72\x11\xd7\x74\xe1\x3b"
32910 "\x38\x43\x66\x7b\x6c\x36\x48\xe7"
32911 "\xe3\xe7\x9d\xb9\x42\x73\x7a\x2a"
32912 "\x89\x20\x1a\x41\x80\x03\xf7\x8f"
32913 "\x61\x78\x13\xbf\xfe\x50\xf5\x04"
32914 "\x52\xf9\xac\x47\xf8\x62\x4b\xb2"
32915 "\x24\xa9\xbf\x64\xb0\x18\x69\xd2"
32916 "\xf5\xe4\xce\xc8\xb1\x87\x75\xd6"
32917 "\x2c\x24\x79\x00\x7d\x26\xfb\x44"
32918 "\xe7\x45\x7a\xee\x58\xa5\x83\xc1"
32919 "\xb4\x24\xab\x23\x2f\x4d\xd7\x4f"
32920 "\x1c\xc7\xaa\xa9\x50\xf4\xa3\x07"
32921 "\x12\x13\x89\x74\xdc\x31\x6a\xb2"
32922 "\xf5\x0f\x13\x8b\xb9\xdb\x85\x1f"
32923 "\xf5\xbc\x88\xd9\x95\xea\x31\x6c"
32924 "\x36\x60\xb6\x49\xdc\xc4\xf7\x55"
32925 "\x3f\x21\xc1\xb5\x92\x18\x5e\xbc"
32926 "\x9f\x87\x7f\xe7\x79\x25\x40\x33"
32927 "\xd6\xb9\x33\xd5\x50\xb3\xc7\x89"
32928 "\x1b\x12\xa0\x46\xdd\xa7\xd8\x3e"
32929 "\x71\xeb\x6f\x66\xa1\x26\x0c\x67"
32930 "\xab\xb2\x38\x58\x17\xd8\x44\x3b"
32931 "\x16\xf0\x8e\x62\x8d\x16\x10\x00"
32932 "\x32\x8b\xef\xb9\x28\xd3\xc5\xad"
32933 "\x0a\x19\xa2\xe4\x03\x27\x7d\x94"
32934 "\x06\x18\xcd\xd6\x27\x00\xf9\x1f"
32935 "\xb6\xb3\xfe\x96\x35\x5f\xc4\x1c"
32936 "\x07\x62\x10\x79\x68\x50\xf1\x7e"
32937 "\x29\xe7\xc4\xc4\xe7\xee\x54\xd6"
32938 "\x58\x76\x84\x6d\x8d\xe4\x59\x31"
32939 "\xe9\xf4\xdc\xa1\x1f\xe5\x1a\xd6"
32940 "\xe6\x64\x46\xf5\x77\x9c\x60\x7a"
32941 "\x5e\x62\xe3\x0a\xd4\x9f\x7a\x2d"
32942 "\x7a\xa5\x0a\x7b\x29\x86\x7a\x74"
32943 "\x74\x71\x6b\xca\x7d\x1d\xaa\xba"
32944 "\x39\x84\x43\x76\x35\xfe\x4f\x9b"
32945 "\xbb\xbb\xb5\x6a\x32\xb5\x5d\x41"
32946 "\x51\xf0\x5b\x68\x03\x47\x4b\x8a"
32947 "\xca\x88\xf6\x37\xbd\x73\x51\x70"
32948 "\x66\xfe\x9e\x5f\x21\x9c\xf3\xdd"
32949 "\xc3\xea\x27\xf9\x64\x94\xe1\x19"
32950 "\xa0\xa9\xab\x60\xe0\x0e\xf7\x78"
32951 "\x70\x86\xeb\xe0\xd1\x5c\x05\xd3"
32952 "\xd7\xca\xe0\xc0\x47\x47\x34\xee"
32953 "\x11\xa3\xa3\x54\x98\xb7\x49\x8e"
32954 "\x84\x28\x70\x2c\x9e\xfb\x55\x54"
32955 "\x4d\xf8\x86\xf7\x85\x7c\xbd\xf3"
32956 "\x17\xd8\x47\xcb\xac\xf4\x20\x85"
32957 "\x34\x66\xad\x37\x2d\x5e\x52\xda"
32958 "\x8a\xfe\x98\x55\x30\xe7\x2d\x2b"
32959 "\x19\x10\x8e\x7b\x66\x5e\xdc\xe0"
32960 "\x45\x1f\x7b\xb4\x08\xfb\x8f\xf6"
32961 "\x8c\x89\x21\x34\x55\x27\xb2\x76"
32962 "\xb2\x07\xd9\xd6\x68\x9b\xea\x6b"
32963 "\x2d\xb4\xc4\x35\xdd\xd2\x79\xae"
32964 "\xc7\xd6\x26\x7f\x12\x01\x8c\xa7"
32965 "\xe3\xdb\xa8\xf4\xf7\x2b\xec\x99"
32966 "\x11\x00\xf1\x35\x8c\xcf\xd5\xc9"
32967 "\xbd\x91\x36\x39\x70\xcf\x7d\x70"
32968 "\x47\x1a\xfc\x6b\x56\xe0\x3f\x9c"
32969 "\x60\x49\x01\x72\xa9\xaf\x2c\x9c"
32970 "\xe8\xab\xda\x8c\x14\x19\xf3\x75"
32971 "\x07\x17\x9d\x44\x67\x7a\x2e\xef"
32972 "\xb7\x83\x35\x4a\xd1\x3d\x1c\x84"
32973 "\x32\xdd\xaa\xea\xca\x1d\xdc\x72"
32974 "\x2c\xcc\x43\xcd\x5d\xe3\x21\xa4"
32975 "\xd0\x8a\x4b\x20\x12\xa3\xd5\x86"
32976 "\x76\x96\xff\x5f\x04\x57\x0f\xe6"
32977 "\xba\xe8\x76\x50\x0c\x64\x1d\x83"
32978 "\x9c\x9b\x9a\x9a\x58\x97\x9c\x5c"
32979 "\xb4\xa4\xa6\x3e\x19\xeb\x8f\x5a"
32980 "\x61\xb2\x03\x7b\x35\x19\xbe\xa7"
32981 "\x63\x0c\xfd\xdd\xf9\x90\x6c\x08"
32982 "\x19\x11\xd3\x65\x4a\xf5\x96\x92"
32983 "\x59\xaa\x9c\x61\x0c\x29\xa7\xf8"
32984 "\x14\x39\x37\xbf\x3c\xf2\x16\x72"
32985 "\x02\xfa\xa2\xf3\x18\x67\x5d\xcb"
32986 "\xdc\x4d\xbb\x96\xff\x70\x08\x2d"
32987 "\xc2\xa8\x52\xe1\x34\x5f\x72\xfe"
32988 "\x64\xbf\xca\xa7\x74\x38\xfb\x74"
32989 "\x55\x9c\xfa\x8a\xed\xfb\x98\xeb"
32990 "\x58\x2e\x6c\xe1\x52\x76\x86\xd7"
32991 "\xcf\xa1\xa4\xfc\xb2\x47\x41\x28"
32992 "\xa3\xc1\xe5\xfd\x53\x19\x28\x2b"
32993 "\x37\x04\x65\x96\x99\x7a\x28\x0f"
32994 "\x07\x68\x4b\xc7\x52\x0a\x55\x35"
32995 "\x40\x19\x95\x61\xe8\x59\x40\x1f"
32996 "\x9d\xbf\x78\x7d\x8f\x84\xff\x6f"
32997 "\xd0\xd5\x63\xd2\x22\xbd\xc8\x4e"
32998 "\xfb\xe7\x9f\x06\xe6\xe7\x39\x6d"
32999 "\x6a\x96\x9f\xf0\x74\x7e\xc9\x35"
33000 "\xb7\x26\xb8\x1c\x0a\xa6\x27\x2c"
33001 "\xa2\x2b\xfe\xbe\x0f\x07\x73\xae"
33002 "\x7f\x7f\x54\xf5\x7c\x6a\x0a\x56"
33003 "\x49\xd4\x81\xe5\x85\x53\x99\x1f"
33004 "\x95\x05\x13\x58\x8d\x0e\x1b\x90"
33005 "\xc3\x75\x48\x64\x58\x98\x67\x84"
33006 "\xae\xe2\x21\xa2\x8a\x04\x0a\x0b"
33007 "\x61\xaa\xb0\xd4\x28\x60\x7a\xf8"
33008 "\xbc\x52\xfb\x24\x7f\xed\x0d\x2a"
33009 "\x0a\xb2\xf9\xc6\x95\xb5\x11\xc9"
33010 "\xf4\x0f\x26\x11\xcf\x2a\x57\x87"
33011 "\x7a\xf3\xe7\x94\x65\xc2\xb5\xb3"
33012 "\xab\x98\xe3\xc1\x2b\x59\x19\x7c"
33013 "\xd6\xf3\xf9\xbf\xff\x6d\xc6\x82"
33014 "\x13\x2f\x4a\x2e\xcd\x26\xfe\x2d"
33015 "\x01\x70\xf4\xc2\x7f\x1f\x4c\xcb"
33016 "\x47\x77\x0c\xa0\xa3\x03\xec\xda"
33017 "\xa9\xbf\x0d\x2d\xae\xe4\xb8\x7b"
33018 "\xa9\xbc\x08\xb4\x68\x2e\xc5\x60"
33019 "\x8d\x87\x41\x2b\x0f\x69\xf0\xaf"
33020 "\x5f\xba\x72\x20\x0f\x33\xcd\x6d"
33021 "\x36\x7d\x7b\xd5\x05\xf1\x4b\x05"
33022 "\xc4\xfc\x7f\x80\xb9\x4d\xbd\xf7"
33023 "\x7c\x84\x07\x01\xc2\x40\x66\x5b"
33024 "\x98\xc7\x2c\xe3\x97\xfa\xdf\x87"
33025 "\xa0\x1f\xe9\x21\x42\x0f\x3b\xeb"
33026 "\x89\x1c\x3b\xca\x83\x61\x77\x68"
33027 "\x84\xbb\x60\x87\x38\x2e\x25\xd5"
33028 "\x9e\x04\x41\x70\xac\xda\xc0\x9c"
33029 "\x9c\x69\xea\x8d\x4e\x55\x2a\x29"
33030 "\xed\x05\x4b\x7b\x73\x71\x90\x59"
33031 "\x4d\xc8\xd8\x44\xf0\x4c\xe1\x5e"
33032 "\x84\x47\x55\xcc\x32\x3f\xe7\x97"
33033 "\x42\xc6\x32\xac\x40\xe5\xa5\xc7"
33034 "\x8b\xed\xdb\xf7\x83\xd6\xb1\xc2"
33035 "\x52\x5e\x34\xb7\xeb\x6e\xd9\xfc"
33036 "\xe5\x93\x9a\x97\x3e\xb0\xdc\xd9"
33037 "\xd7\x06\x10\xb6\x1d\x80\x59\xdd"
33038 "\x0d\xfe\x64\x35\xcd\x5d\xec\xf0"
33039 "\xba\xd0\x34\xc9\x2d\x91\xc5\x17"
33040 "\x11",
33041 .len = 1281,
33042 .also_non_np = 1,
33043 .np = 3,
33044 .tap = { 1200, 1, 80 },
Eric Biggers5569e8c2018-12-06 12:31:54 -080033045 }, { /* test vector from https://tools.ietf.org/html/draft-arciszewski-xchacha-02#appendix-A.3.2 */
33046 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
33047 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
33048 "\x90\x91\x92\x93\x94\x95\x96\x97"
33049 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
33050 .klen = 32,
33051 .iv = "\x40\x41\x42\x43\x44\x45\x46\x47"
33052 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
33053 "\x50\x51\x52\x53\x54\x55\x56\x58"
33054 "\x00\x00\x00\x00\x00\x00\x00\x00",
33055 .ptext = "\x54\x68\x65\x20\x64\x68\x6f\x6c"
33056 "\x65\x20\x28\x70\x72\x6f\x6e\x6f"
33057 "\x75\x6e\x63\x65\x64\x20\x22\x64"
33058 "\x6f\x6c\x65\x22\x29\x20\x69\x73"
33059 "\x20\x61\x6c\x73\x6f\x20\x6b\x6e"
33060 "\x6f\x77\x6e\x20\x61\x73\x20\x74"
33061 "\x68\x65\x20\x41\x73\x69\x61\x74"
33062 "\x69\x63\x20\x77\x69\x6c\x64\x20"
33063 "\x64\x6f\x67\x2c\x20\x72\x65\x64"
33064 "\x20\x64\x6f\x67\x2c\x20\x61\x6e"
33065 "\x64\x20\x77\x68\x69\x73\x74\x6c"
33066 "\x69\x6e\x67\x20\x64\x6f\x67\x2e"
33067 "\x20\x49\x74\x20\x69\x73\x20\x61"
33068 "\x62\x6f\x75\x74\x20\x74\x68\x65"
33069 "\x20\x73\x69\x7a\x65\x20\x6f\x66"
33070 "\x20\x61\x20\x47\x65\x72\x6d\x61"
33071 "\x6e\x20\x73\x68\x65\x70\x68\x65"
33072 "\x72\x64\x20\x62\x75\x74\x20\x6c"
33073 "\x6f\x6f\x6b\x73\x20\x6d\x6f\x72"
33074 "\x65\x20\x6c\x69\x6b\x65\x20\x61"
33075 "\x20\x6c\x6f\x6e\x67\x2d\x6c\x65"
33076 "\x67\x67\x65\x64\x20\x66\x6f\x78"
33077 "\x2e\x20\x54\x68\x69\x73\x20\x68"
33078 "\x69\x67\x68\x6c\x79\x20\x65\x6c"
33079 "\x75\x73\x69\x76\x65\x20\x61\x6e"
33080 "\x64\x20\x73\x6b\x69\x6c\x6c\x65"
33081 "\x64\x20\x6a\x75\x6d\x70\x65\x72"
33082 "\x20\x69\x73\x20\x63\x6c\x61\x73"
33083 "\x73\x69\x66\x69\x65\x64\x20\x77"
33084 "\x69\x74\x68\x20\x77\x6f\x6c\x76"
33085 "\x65\x73\x2c\x20\x63\x6f\x79\x6f"
33086 "\x74\x65\x73\x2c\x20\x6a\x61\x63"
33087 "\x6b\x61\x6c\x73\x2c\x20\x61\x6e"
33088 "\x64\x20\x66\x6f\x78\x65\x73\x20"
33089 "\x69\x6e\x20\x74\x68\x65\x20\x74"
33090 "\x61\x78\x6f\x6e\x6f\x6d\x69\x63"
33091 "\x20\x66\x61\x6d\x69\x6c\x79\x20"
33092 "\x43\x61\x6e\x69\x64\x61\x65\x2e",
33093 .ctext = "\x45\x59\xab\xba\x4e\x48\xc1\x61"
33094 "\x02\xe8\xbb\x2c\x05\xe6\x94\x7f"
33095 "\x50\xa7\x86\xde\x16\x2f\x9b\x0b"
33096 "\x7e\x59\x2a\x9b\x53\xd0\xd4\xe9"
33097 "\x8d\x8d\x64\x10\xd5\x40\xa1\xa6"
33098 "\x37\x5b\x26\xd8\x0d\xac\xe4\xfa"
33099 "\xb5\x23\x84\xc7\x31\xac\xbf\x16"
33100 "\xa5\x92\x3c\x0c\x48\xd3\x57\x5d"
33101 "\x4d\x0d\x2c\x67\x3b\x66\x6f\xaa"
33102 "\x73\x10\x61\x27\x77\x01\x09\x3a"
33103 "\x6b\xf7\xa1\x58\xa8\x86\x42\x92"
33104 "\xa4\x1c\x48\xe3\xa9\xb4\xc0\xda"
33105 "\xec\xe0\xf8\xd9\x8d\x0d\x7e\x05"
33106 "\xb3\x7a\x30\x7b\xbb\x66\x33\x31"
33107 "\x64\xec\x9e\x1b\x24\xea\x0d\x6c"
33108 "\x3f\xfd\xdc\xec\x4f\x68\xe7\x44"
33109 "\x30\x56\x19\x3a\x03\xc8\x10\xe1"
33110 "\x13\x44\xca\x06\xd8\xed\x8a\x2b"
33111 "\xfb\x1e\x8d\x48\xcf\xa6\xbc\x0e"
33112 "\xb4\xe2\x46\x4b\x74\x81\x42\x40"
33113 "\x7c\x9f\x43\x1a\xee\x76\x99\x60"
33114 "\xe1\x5b\xa8\xb9\x68\x90\x46\x6e"
33115 "\xf2\x45\x75\x99\x85\x23\x85\xc6"
33116 "\x61\xf7\x52\xce\x20\xf9\xda\x0c"
33117 "\x09\xab\x6b\x19\xdf\x74\xe7\x6a"
33118 "\x95\x96\x74\x46\xf8\xd0\xfd\x41"
33119 "\x5e\x7b\xee\x2a\x12\xa1\x14\xc2"
33120 "\x0e\xb5\x29\x2a\xe7\xa3\x49\xae"
33121 "\x57\x78\x20\xd5\x52\x0a\x1f\x3f"
33122 "\xb6\x2a\x17\xce\x6a\x7e\x68\xfa"
33123 "\x7c\x79\x11\x1d\x88\x60\x92\x0b"
33124 "\xc0\x48\xef\x43\xfe\x84\x48\x6c"
33125 "\xcb\x87\xc2\x5f\x0a\xe0\x45\xf0"
33126 "\xcc\xe1\xe7\x98\x9a\x9a\xa2\x20"
33127 "\xa2\x8b\xdd\x48\x27\xe7\x51\xa2"
33128 "\x4a\x6d\x5c\x62\xd7\x90\xa6\x63"
33129 "\x93\xb9\x31\x11\xc1\xa5\x5d\xd7"
33130 "\x42\x1a\x10\x18\x49\x74\xc7\xc5",
33131 .len = 304,
33132 }
Eric Biggersde61d7a2018-11-16 17:26:20 -080033133};
33134
Herbert Xuda7f0332008-07-31 17:08:25 +080033135/*
Eric Biggersaa762402018-11-16 17:26:22 -080033136 * Same as XChaCha20 test vectors above, but recomputed the ciphertext with
33137 * XChaCha12, using a modified libsodium.
33138 */
33139static const struct cipher_testvec xchacha12_tv_template[] = {
33140 {
33141 .key = "\x79\xc9\x97\x98\xac\x67\x30\x0b"
33142 "\xbb\x27\x04\xc9\x5c\x34\x1e\x32"
33143 "\x45\xf3\xdc\xb2\x17\x61\xb9\x8e"
33144 "\x52\xff\x45\xb2\x4f\x30\x4f\xc4",
33145 .klen = 32,
33146 .iv = "\xb3\x3f\xfd\x30\x96\x47\x9b\xcf"
33147 "\xbc\x9a\xee\x49\x41\x76\x88\xa0"
33148 "\xa2\x55\x4f\x8d\x95\x38\x94\x19"
33149 "\x00\x00\x00\x00\x00\x00\x00\x00",
33150 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
33151 "\x00\x00\x00\x00\x00\x00\x00\x00"
33152 "\x00\x00\x00\x00\x00\x00\x00\x00"
33153 "\x00\x00\x00\x00\x00",
33154 .ctext = "\x1b\x78\x7f\xd7\xa1\x41\x68\xab"
33155 "\x3d\x3f\xd1\x7b\x69\x56\xb2\xd5"
33156 "\x43\xce\xeb\xaf\x36\xf0\x29\x9d"
33157 "\x3a\xfb\x18\xae\x1b",
33158 .len = 29,
33159 }, {
33160 .key = "\x9d\x23\xbd\x41\x49\xcb\x97\x9c"
33161 "\xcf\x3c\x5c\x94\xdd\x21\x7e\x98"
33162 "\x08\xcb\x0e\x50\xcd\x0f\x67\x81"
33163 "\x22\x35\xea\xaf\x60\x1d\x62\x32",
33164 .klen = 32,
33165 .iv = "\xc0\x47\x54\x82\x66\xb7\xc3\x70"
33166 "\xd3\x35\x66\xa2\x42\x5c\xbf\x30"
33167 "\xd8\x2d\x1e\xaf\x52\x94\x10\x9e"
33168 "\x00\x00\x00\x00\x00\x00\x00\x00",
33169 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
33170 "\x00\x00\x00\x00\x00\x00\x00\x00"
33171 "\x00\x00\x00\x00\x00\x00\x00\x00"
33172 "\x00\x00\x00\x00\x00\x00\x00\x00"
33173 "\x00\x00\x00\x00\x00\x00\x00\x00"
33174 "\x00\x00\x00\x00\x00\x00\x00\x00"
33175 "\x00\x00\x00\x00\x00\x00\x00\x00"
33176 "\x00\x00\x00\x00\x00\x00\x00\x00"
33177 "\x00\x00\x00\x00\x00\x00\x00\x00"
33178 "\x00\x00\x00\x00\x00\x00\x00\x00"
33179 "\x00\x00\x00\x00\x00\x00\x00\x00"
33180 "\x00\x00\x00",
33181 .ctext = "\xfb\x32\x09\x1d\x83\x05\xae\x4c"
33182 "\x13\x1f\x12\x71\xf2\xca\xb2\xeb"
33183 "\x5b\x83\x14\x7d\x83\xf6\x57\x77"
33184 "\x2e\x40\x1f\x92\x2c\xf9\xec\x35"
33185 "\x34\x1f\x93\xdf\xfb\x30\xd7\x35"
33186 "\x03\x05\x78\xc1\x20\x3b\x7a\xe3"
33187 "\x62\xa3\x89\xdc\x11\x11\x45\xa8"
33188 "\x82\x89\xa0\xf1\x4e\xc7\x0f\x11"
33189 "\x69\xdd\x0c\x84\x2b\x89\x5c\xdc"
33190 "\xf0\xde\x01\xef\xc5\x65\x79\x23"
33191 "\x87\x67\xd6\x50\xd9\x8d\xd9\x92"
33192 "\x54\x5b\x0e",
33193 .len = 91,
33194 }, {
33195 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
33196 "\x00\x00\x00\x00\x00\x00\x00\x00"
33197 "\x00\x00\x00\x00\x00\x00\x00\x00"
33198 "\x00\x00\x00\x00\x00\x00\x00\x00",
33199 .klen = 32,
33200 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
33201 "\x00\x00\x00\x00\x67\xc6\x69\x73"
33202 "\x51\xff\x4a\xec\x29\xcd\xba\xab"
33203 "\x00\x00\x00\x00\x00\x00\x00\x00",
33204 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
33205 "\x00\x00\x00\x00\x00\x00\x00\x00"
33206 "\x00\x00\x00\x00\x00\x00\x00\x00"
33207 "\x00\x00\x00\x00\x00\x00\x00\x00"
33208 "\x00\x00\x00\x00\x00\x00\x00\x00"
33209 "\x00\x00\x00\x00\x00\x00\x00\x00"
33210 "\x00\x00\x00\x00\x00\x00\x00\x00"
33211 "\x00\x00\x00\x00\x00\x00\x00\x00",
33212 .ctext = "\xdf\x2d\xc6\x21\x2a\x9d\xa1\xbb"
33213 "\xc2\x77\x66\x0c\x5c\x46\xef\xa7"
33214 "\x79\x1b\xb9\xdf\x55\xe2\xf9\x61"
33215 "\x4c\x7b\xa4\x52\x24\xaf\xa2\xda"
33216 "\xd1\x8f\x8f\xa2\x9e\x53\x4d\xc4"
33217 "\xb8\x55\x98\x08\x7c\x08\xd4\x18"
33218 "\x67\x8f\xef\x50\xb1\x5f\xa5\x77"
33219 "\x4c\x25\xe7\x86\x26\x42\xca\x44",
33220 .len = 64,
33221 }, {
33222 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
33223 "\x00\x00\x00\x00\x00\x00\x00\x00"
33224 "\x00\x00\x00\x00\x00\x00\x00\x00"
33225 "\x00\x00\x00\x00\x00\x00\x00\x01",
33226 .klen = 32,
33227 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
33228 "\x00\x00\x00\x02\xf2\xfb\xe3\x46"
33229 "\x7c\xc2\x54\xf8\x1b\xe8\xe7\x8d"
33230 "\x01\x00\x00\x00\x00\x00\x00\x00",
33231 .ptext = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
33232 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
33233 "\x6f\x20\x74\x68\x65\x20\x49\x45"
33234 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
33235 "\x64\x65\x64\x20\x62\x79\x20\x74"
33236 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
33237 "\x69\x62\x75\x74\x6f\x72\x20\x66"
33238 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
33239 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
33240 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
33241 "\x20\x70\x61\x72\x74\x20\x6f\x66"
33242 "\x20\x61\x6e\x20\x49\x45\x54\x46"
33243 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
33244 "\x74\x2d\x44\x72\x61\x66\x74\x20"
33245 "\x6f\x72\x20\x52\x46\x43\x20\x61"
33246 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
33247 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
33248 "\x20\x6d\x61\x64\x65\x20\x77\x69"
33249 "\x74\x68\x69\x6e\x20\x74\x68\x65"
33250 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
33251 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
33252 "\x45\x54\x46\x20\x61\x63\x74\x69"
33253 "\x76\x69\x74\x79\x20\x69\x73\x20"
33254 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
33255 "\x65\x64\x20\x61\x6e\x20\x22\x49"
33256 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
33257 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
33258 "\x22\x2e\x20\x53\x75\x63\x68\x20"
33259 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
33260 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
33261 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
33262 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
33263 "\x74\x73\x20\x69\x6e\x20\x49\x45"
33264 "\x54\x46\x20\x73\x65\x73\x73\x69"
33265 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
33266 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
33267 "\x77\x72\x69\x74\x74\x65\x6e\x20"
33268 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
33269 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
33270 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
33271 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
33272 "\x64\x65\x20\x61\x74\x20\x61\x6e"
33273 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
33274 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
33275 "\x20\x77\x68\x69\x63\x68\x20\x61"
33276 "\x72\x65\x20\x61\x64\x64\x72\x65"
33277 "\x73\x73\x65\x64\x20\x74\x6f",
33278 .ctext = "\xe4\xa6\xc8\x30\xc4\x23\x13\xd6"
33279 "\x08\x4d\xc9\xb7\xa5\x64\x7c\xb9"
33280 "\x71\xe2\xab\x3e\xa8\x30\x8a\x1c"
33281 "\x4a\x94\x6d\x9b\xe0\xb3\x6f\xf1"
33282 "\xdc\xe3\x1b\xb3\xa9\x6d\x0d\xd6"
33283 "\xd0\xca\x12\xef\xe7\x5f\xd8\x61"
33284 "\x3c\x82\xd3\x99\x86\x3c\x6f\x66"
33285 "\x02\x06\xdc\x55\xf9\xed\xdf\x38"
33286 "\xb4\xa6\x17\x00\x7f\xef\xbf\x4f"
33287 "\xf8\x36\xf1\x60\x7e\x47\xaf\xdb"
33288 "\x55\x9b\x12\xcb\x56\x44\xa7\x1f"
33289 "\xd3\x1a\x07\x3b\x00\xec\xe6\x4c"
33290 "\xa2\x43\x27\xdf\x86\x19\x4f\x16"
33291 "\xed\xf9\x4a\xf3\x63\x6f\xfa\x7f"
33292 "\x78\x11\xf6\x7d\x97\x6f\xec\x6f"
33293 "\x85\x0f\x5c\x36\x13\x8d\x87\xe0"
33294 "\x80\xb1\x69\x0b\x98\x89\x9c\x4e"
33295 "\xf8\xdd\xee\x5c\x0a\x85\xce\xd4"
33296 "\xea\x1b\x48\xbe\x08\xf8\xe2\xa8"
33297 "\xa5\xb0\x3c\x79\xb1\x15\xb4\xb9"
33298 "\x75\x10\x95\x35\x81\x7e\x26\xe6"
33299 "\x78\xa4\x88\xcf\xdb\x91\x34\x18"
33300 "\xad\xd7\x8e\x07\x7d\xab\x39\xf9"
33301 "\xa3\x9e\xa5\x1d\xbb\xed\x61\xfd"
33302 "\xdc\xb7\x5a\x27\xfc\xb5\xc9\x10"
33303 "\xa8\xcc\x52\x7f\x14\x76\x90\xe7"
33304 "\x1b\x29\x60\x74\xc0\x98\x77\xbb"
33305 "\xe0\x54\xbb\x27\x49\x59\x1e\x62"
33306 "\x3d\xaf\x74\x06\xa4\x42\x6f\xc6"
33307 "\x52\x97\xc4\x1d\xc4\x9f\xe2\xe5"
33308 "\x38\x57\x91\xd1\xa2\x28\xcc\x40"
33309 "\xcc\x70\x59\x37\xfc\x9f\x4b\xda"
33310 "\xa0\xeb\x97\x9a\x7d\xed\x14\x5c"
33311 "\x9c\xb7\x93\x26\x41\xa8\x66\xdd"
33312 "\x87\x6a\xc0\xd3\xc2\xa9\x3e\xae"
33313 "\xe9\x72\xfe\xd1\xb3\xac\x38\xea"
33314 "\x4d\x15\xa9\xd5\x36\x61\xe9\x96"
33315 "\x6c\x23\xf8\x43\xe4\x92\x29\xd9"
33316 "\x8b\x78\xf7\x0a\x52\xe0\x19\x5b"
33317 "\x59\x69\x5b\x5d\xa1\x53\xc4\x68"
33318 "\xe1\xbb\xac\x89\x14\xe2\xe2\x85"
33319 "\x41\x18\xf5\xb3\xd1\xfa\x68\x19"
33320 "\x44\x78\xdc\xcf\xe7\x88\x2d\x52"
33321 "\x5f\x40\xb5\x7e\xf8\x88\xa2\xae"
33322 "\x4a\xb2\x07\x35\x9d\x9b\x07\x88"
33323 "\xb7\x00\xd0\x0c\xb6\xa0\x47\x59"
33324 "\xda\x4e\xc9\xab\x9b\x8a\x7b",
33325
33326 .len = 375,
33327 .also_non_np = 1,
33328 .np = 3,
33329 .tap = { 375 - 20, 4, 16 },
33330
33331 }, {
33332 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
33333 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
33334 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
33335 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
33336 .klen = 32,
33337 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
33338 "\x00\x00\x00\x02\x76\x5a\x2e\x63"
33339 "\x33\x9f\xc9\x9a\x66\x32\x0d\xb7"
33340 "\x2a\x00\x00\x00\x00\x00\x00\x00",
33341 .ptext = "\x27\x54\x77\x61\x73\x20\x62\x72"
33342 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
33343 "\x6e\x64\x20\x74\x68\x65\x20\x73"
33344 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
33345 "\x76\x65\x73\x0a\x44\x69\x64\x20"
33346 "\x67\x79\x72\x65\x20\x61\x6e\x64"
33347 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
33348 "\x69\x6e\x20\x74\x68\x65\x20\x77"
33349 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
33350 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
33351 "\x65\x72\x65\x20\x74\x68\x65\x20"
33352 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
33353 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
33354 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
33355 "\x72\x61\x74\x68\x73\x20\x6f\x75"
33356 "\x74\x67\x72\x61\x62\x65\x2e",
33357 .ctext = "\xb9\x68\xbc\x6a\x24\xbc\xcc\xd8"
33358 "\x9b\x2a\x8d\x5b\x96\xaf\x56\xe3"
33359 "\x11\x61\xe7\xa7\x9b\xce\x4e\x7d"
33360 "\x60\x02\x48\xac\xeb\xd5\x3a\x26"
33361 "\x9d\x77\x3b\xb5\x32\x13\x86\x8e"
33362 "\x20\x82\x26\x72\xae\x64\x1b\x7e"
33363 "\x2e\x01\x68\xb4\x87\x45\xa1\x24"
33364 "\xe4\x48\x40\xf0\xaa\xac\xee\xa9"
33365 "\xfc\x31\xad\x9d\x89\xa3\xbb\xd2"
33366 "\xe4\x25\x13\xad\x0f\x5e\xdf\x3c"
33367 "\x27\xab\xb8\x62\x46\x22\x30\x48"
33368 "\x55\x2c\x4e\x84\x78\x1d\x0d\x34"
33369 "\x8d\x3c\x91\x0a\x7f\x5b\x19\x9f"
33370 "\x97\x05\x4c\xa7\x62\x47\x8b\xc5"
33371 "\x44\x2e\x20\x33\xdd\xa0\x82\xa9"
33372 "\x25\x76\x37\xe6\x3c\x67\x5b",
33373 .len = 127,
33374 }, {
33375 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
33376 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
33377 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
33378 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
33379 .klen = 32,
33380 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
33381 "\x00\x00\x00\x01\x31\x58\xa3\x5a"
33382 "\x25\x5d\x05\x17\x58\xe9\x5e\xd4"
33383 "\x1c\x00\x00\x00\x00\x00\x00\x00",
33384 .ptext = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
33385 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
33386 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
33387 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
33388 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
33389 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
33390 "\x01\xc6\x67\xda\x03\x91\x18\x90"
33391 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
33392 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
33393 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
33394 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
33395 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
33396 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
33397 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
33398 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
33399 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
33400 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
33401 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
33402 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
33403 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
33404 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
33405 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
33406 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
33407 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
33408 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
33409 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
33410 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
33411 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
33412 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
33413 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
33414 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
33415 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
33416 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
33417 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
33418 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
33419 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
33420 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
33421 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
33422 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
33423 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
33424 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
33425 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
33426 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
33427 "\x49\x46\x00\x88\x22\x8d\xce\xea"
33428 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
33429 "\x72\x11\xf5\x50\x73\x04\x40\x47"
33430 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
33431 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
33432 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
33433 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
33434 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
33435 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
33436 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
33437 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
33438 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
33439 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
33440 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
33441 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
33442 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
33443 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
33444 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
33445 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
33446 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
33447 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
33448 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
33449 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
33450 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
33451 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
33452 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
33453 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
33454 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
33455 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
33456 "\x65\x69\x8a\x45\x29\xef\x74\x85"
33457 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
33458 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
33459 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
33460 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
33461 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
33462 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
33463 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
33464 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
33465 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
33466 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
33467 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
33468 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
33469 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
33470 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
33471 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
33472 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
33473 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
33474 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
33475 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
33476 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
33477 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
33478 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
33479 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
33480 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
33481 "\x25\x94\x10\x5f\x40\x00\x64\x99"
33482 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
33483 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
33484 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
33485 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
33486 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
33487 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
33488 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
33489 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
33490 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
33491 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
33492 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
33493 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
33494 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
33495 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
33496 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
33497 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
33498 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
33499 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
33500 "\xb9\x83\x90\xef\x20\x59\x46\xff"
33501 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
33502 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
33503 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
33504 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
33505 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
33506 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
33507 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
33508 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
33509 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
33510 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
33511 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
33512 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
33513 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
33514 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
33515 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
33516 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
33517 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
33518 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
33519 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
33520 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
33521 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
33522 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
33523 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
33524 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
33525 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
33526 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
33527 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
33528 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
33529 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
33530 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
33531 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
33532 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
33533 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
33534 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
33535 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
33536 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
33537 "\xca\x34\x83\x27\x10\x5b\x68\x45"
33538 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
33539 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
33540 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
33541 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
33542 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
33543 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
33544 "\x72",
33545 .ctext = "\xe1\xb6\x8b\x5c\x80\xb8\xcc\x08"
33546 "\x1b\x84\xb2\xd1\xad\xa4\x70\xac"
33547 "\x67\xa9\x39\x27\xac\xb4\x5b\xb7"
33548 "\x4c\x26\x77\x23\x1d\xce\x0a\xbe"
33549 "\x18\x9e\x42\x8b\xbd\x7f\xd6\xf1"
33550 "\xf1\x6b\xe2\x6d\x7f\x92\x0e\xcb"
33551 "\xb8\x79\xba\xb4\xac\x7e\x2d\xc0"
33552 "\x9e\x83\x81\x91\xd5\xea\xc3\x12"
33553 "\x8d\xa4\x26\x70\xa4\xf9\x71\x0b"
33554 "\xbd\x2e\xe1\xb3\x80\x42\x25\xb3"
33555 "\x0b\x31\x99\xe1\x0d\xde\xa6\x90"
33556 "\xf2\xa3\x10\xf7\xe5\xf3\x83\x1e"
33557 "\x2c\xfb\x4d\xf0\x45\x3d\x28\x3c"
33558 "\xb8\xf1\xcb\xbf\x67\xd8\x43\x5a"
33559 "\x9d\x7b\x73\x29\x88\x0f\x13\x06"
33560 "\x37\x50\x0d\x7c\xe6\x9b\x07\xdd"
33561 "\x7e\x01\x1f\x81\x90\x10\x69\xdb"
33562 "\xa4\xad\x8a\x5e\xac\x30\x72\xf2"
33563 "\x36\xcd\xe3\x23\x49\x02\x93\xfa"
33564 "\x3d\xbb\xe2\x98\x83\xeb\xe9\x8d"
33565 "\xb3\x8f\x11\xaa\x53\xdb\xaf\x2e"
33566 "\x95\x13\x99\x3d\x71\xbd\x32\x92"
33567 "\xdd\xfc\x9d\x5e\x6f\x63\x2c\xee"
33568 "\x91\x1f\x4c\x64\x3d\x87\x55\x0f"
33569 "\xcc\x3d\x89\x61\x53\x02\x57\x8f"
33570 "\xe4\x77\x29\x32\xaf\xa6\x2f\x0a"
33571 "\xae\x3c\x3f\x3f\xf4\xfb\x65\x52"
33572 "\xc5\xc1\x78\x78\x53\x28\xad\xed"
33573 "\xd1\x67\x37\xc7\x59\x70\xcd\x0a"
33574 "\xb8\x0f\x80\x51\x9f\xc0\x12\x5e"
33575 "\x06\x0a\x7e\xec\x24\x5f\x73\x00"
33576 "\xb1\x0b\x31\x47\x4f\x73\x8d\xb4"
33577 "\xce\xf3\x55\x45\x6c\x84\x27\xba"
33578 "\xb9\x6f\x03\x4a\xeb\x98\x88\x6e"
33579 "\x53\xed\x25\x19\x0d\x8f\xfe\xca"
33580 "\x60\xe5\x00\x93\x6e\x3c\xff\x19"
33581 "\xae\x08\x3b\x8a\xa6\x84\x05\xfe"
33582 "\x9b\x59\xa0\x8c\xc8\x05\x45\xf5"
33583 "\x05\x37\xdc\x45\x6f\x8b\x95\x8c"
33584 "\x4e\x11\x45\x7a\xce\x21\xa5\xf7"
33585 "\x71\x67\xb9\xce\xd7\xf9\xe9\x5e"
33586 "\x60\xf5\x53\x7a\xa8\x85\x14\x03"
33587 "\xa0\x92\xec\xf3\x51\x80\x84\xc4"
33588 "\xdc\x11\x9e\x57\xce\x4b\x45\xcf"
33589 "\x90\x95\x85\x0b\x96\xe9\xee\x35"
33590 "\x10\xb8\x9b\xf2\x59\x4a\xc6\x7e"
33591 "\x85\xe5\x6f\x38\x51\x93\x40\x0c"
33592 "\x99\xd7\x7f\x32\xa8\x06\x27\xd1"
33593 "\x2b\xd5\xb5\x3a\x1a\xe1\x5e\xda"
33594 "\xcd\x5a\x50\x30\x3c\xc7\xe7\x65"
33595 "\xa6\x07\x0b\x98\x91\xc6\x20\x27"
33596 "\x2a\x03\x63\x1b\x1e\x3d\xaf\xc8"
33597 "\x71\x48\x46\x6a\x64\x28\xf9\x3d"
33598 "\xd1\x1d\xab\xc8\x40\x76\xc2\x39"
33599 "\x4e\x00\x75\xd2\x0e\x82\x58\x8c"
33600 "\xd3\x73\x5a\xea\x46\x89\xbe\xfd"
33601 "\x4e\x2c\x0d\x94\xaa\x9b\x68\xac"
33602 "\x86\x87\x30\x7e\xa9\x16\xcd\x59"
33603 "\xd2\xa6\xbe\x0a\xd8\xf5\xfd\x2d"
33604 "\x49\x69\xd2\x1a\x90\xd2\x1b\xed"
33605 "\xff\x71\x04\x87\x87\x21\xc4\xb8"
33606 "\x1f\x5b\x51\x33\xd0\xd6\x59\x9a"
33607 "\x03\x0e\xd3\x8b\xfb\x57\x73\xfd"
33608 "\x5a\x52\x63\x82\xc8\x85\x2f\xcb"
33609 "\x74\x6d\x4e\xd9\x68\x37\x85\x6a"
33610 "\xd4\xfb\x94\xed\x8d\xd1\x1a\xaf"
33611 "\x76\xa7\xb7\x88\xd0\x2b\x4e\xda"
33612 "\xec\x99\x94\x27\x6f\x87\x8c\xdf"
33613 "\x4b\x5e\xa6\x66\xdd\xcb\x33\x7b"
33614 "\x64\x94\x31\xa8\x37\xa6\x1d\xdb"
33615 "\x0d\x5c\x93\xa4\x40\xf9\x30\x53"
33616 "\x4b\x74\x8d\xdd\xf6\xde\x3c\xac"
33617 "\x5c\x80\x01\x3a\xef\xb1\x9a\x02"
33618 "\x0c\x22\x8e\xe7\x44\x09\x74\x4c"
33619 "\xf2\x9a\x27\x69\x7f\x12\x32\x36"
33620 "\xde\x92\xdf\xde\x8f\x5b\x31\xab"
33621 "\x4a\x01\x26\xe0\xb1\xda\xe8\x37"
33622 "\x21\x64\xe8\xff\x69\xfc\x9e\x41"
33623 "\xd2\x96\x2d\x18\x64\x98\x33\x78"
33624 "\x24\x61\x73\x9b\x47\x29\xf1\xa7"
33625 "\xcb\x27\x0f\xf0\x85\x6d\x8c\x9d"
33626 "\x2c\x95\x9e\xe5\xb2\x8e\x30\x29"
33627 "\x78\x8a\x9d\x65\xb4\x8e\xde\x7b"
33628 "\xd9\x00\x50\xf5\x7f\x81\xc3\x1b"
33629 "\x25\x85\xeb\xc2\x8c\x33\x22\x1e"
33630 "\x68\x38\x22\x30\xd8\x2e\x00\x98"
33631 "\x85\x16\x06\x56\xb4\x81\x74\x20"
33632 "\x95\xdb\x1c\x05\x19\xe8\x23\x4d"
33633 "\x65\x5d\xcc\xd8\x7f\xc4\x2d\x0f"
33634 "\x57\x26\x71\x07\xad\xaa\x71\x9f"
33635 "\x19\x76\x2f\x25\x51\x88\xe4\xc0"
33636 "\x82\x6e\x08\x05\x37\x04\xee\x25"
33637 "\x23\x90\xe9\x4e\xce\x9b\x16\xc1"
33638 "\x31\xe7\x6e\x2c\x1b\xe1\x85\x9a"
33639 "\x0c\x8c\xbb\x12\x1e\x68\x7b\x93"
33640 "\xa9\x3c\x39\x56\x23\x3e\x6e\xc7"
33641 "\x77\x84\xd3\xe0\x86\x59\xaa\xb9"
33642 "\xd5\x53\x58\xc9\x0a\x83\x5f\x85"
33643 "\xd8\x47\x14\x67\x8a\x3c\x17\xe0"
33644 "\xab\x02\x51\xea\xf1\xf0\x4f\x30"
33645 "\x7d\xe0\x92\xc2\x5f\xfb\x19\x5a"
33646 "\x3f\xbd\xf4\x39\xa4\x31\x0c\x39"
33647 "\xd1\xae\x4e\xf7\x65\x7f\x1f\xce"
33648 "\xc2\x39\xd1\x84\xd4\xe5\x02\xe0"
33649 "\x58\xaa\xf1\x5e\x81\xaf\x7f\x72"
33650 "\x0f\x08\x99\x43\xb9\xd8\xac\x41"
33651 "\x35\x55\xf2\xb2\xd4\x98\xb8\x3b"
33652 "\x2b\x3c\x3e\x16\x06\x31\xfc\x79"
33653 "\x47\x38\x63\x51\xc5\xd0\x26\xd7"
33654 "\x43\xb4\x2b\xd9\xc5\x05\xf2\x9d"
33655 "\x18\xc9\x26\x82\x56\xd2\x11\x05"
33656 "\xb6\x89\xb4\x43\x9c\xb5\x9d\x11"
33657 "\x6c\x83\x37\x71\x27\x1c\xae\xbf"
33658 "\xcd\x57\xd2\xee\x0d\x5a\x15\x26"
33659 "\x67\x88\x80\x80\x1b\xdc\xc1\x62"
33660 "\xdd\x4c\xff\x92\x5c\x6c\xe1\xa0"
33661 "\xe3\x79\xa9\x65\x8c\x8c\x14\x42"
33662 "\xe5\x11\xd2\x1a\xad\xa9\x56\x6f"
33663 "\x98\xfc\x8a\x7b\x56\x1f\xc6\xc1"
33664 "\x52\x12\x92\x9b\x41\x0f\x4b\xae"
33665 "\x1b\x4a\xbc\xfe\x23\xb6\x94\x70"
33666 "\x04\x30\x9e\x69\x47\xbe\xb8\x8f"
33667 "\xca\x45\xd7\x8a\xf4\x78\x3e\xaa"
33668 "\x71\x17\xd8\x1e\xb8\x11\x8f\xbc"
33669 "\xc8\x1a\x65\x7b\x41\x89\x72\xc7"
33670 "\x5f\xbe\xc5\x2a\xdb\x5c\x54\xf9"
33671 "\x25\xa3\x7a\x80\x56\x9c\x8c\xab"
33672 "\x26\x19\x10\x36\xa6\xf3\x14\x79"
33673 "\x40\x98\x70\x68\xb7\x35\xd9\xb9"
33674 "\x27\xd4\xe7\x74\x5b\x3d\x97\xb4"
33675 "\xd9\xaa\xd9\xf2\xb5\x14\x84\x1f"
33676 "\xa9\xde\x12\x44\x5b\x00\xc0\xbc"
33677 "\xc8\x11\x25\x1b\x67\x7a\x15\x72"
33678 "\xa6\x31\x6f\xf4\x68\x7a\x86\x9d"
33679 "\x43\x1c\x5f\x16\xd3\xad\x2e\x52"
33680 "\xf3\xb4\xc3\xfa\x27\x2e\x68\x6c"
33681 "\x06\xe7\x4c\x4f\xa2\xe0\xe4\x21"
33682 "\x5d\x9e\x33\x58\x8d\xbf\xd5\x70"
33683 "\xf8\x80\xa5\xdd\xe7\x18\x79\xfa"
33684 "\x7b\xfd\x09\x69\x2c\x37\x32\xa8"
33685 "\x65\xfa\x8d\x8b\x5c\xcc\xe8\xf3"
33686 "\x37\xf6\xa6\xc6\x5c\xa2\x66\x79"
33687 "\xfa\x8a\xa7\xd1\x0b\x2e\x1b\x5e"
33688 "\x95\x35\x00\x76\xae\x42\xf7\x50"
33689 "\x51\x78\xfb\xb4\x28\x24\xde\x1a"
33690 "\x70\x8b\xed\xca\x3c\x5e\xe4\xbd"
33691 "\x28\xb5\xf3\x76\x4f\x67\x5d\x81"
33692 "\xb2\x60\x87\xd9\x7b\x19\x1a\xa7"
33693 "\x79\xa2\xfa\x3f\x9e\xa9\xd7\x25"
33694 "\x61\xe1\x74\x31\xa2\x77\xa0\x1b"
33695 "\xf6\xf7\xcb\xc5\xaa\x9e\xce\xf9"
33696 "\x9b\x96\xef\x51\xc3\x1a\x44\x96"
33697 "\xae\x17\x50\xab\x29\x08\xda\xcc"
33698 "\x1a\xb3\x12\xd0\x24\xe4\xe2\xe0"
33699 "\xc6\xe3\xcc\x82\xd0\xba\x47\x4c"
33700 "\x3f\x49\xd7\xe8\xb6\x61\xaa\x65"
33701 "\x25\x18\x40\x2d\x62\x25\x02\x71"
33702 "\x61\xa2\xc1\xb2\x13\xd2\x71\x3f"
33703 "\x43\x1a\xc9\x09\x92\xff\xd5\x57"
33704 "\xf0\xfc\x5e\x1c\xf1\xf5\xf9\xf3"
33705 "\x5b",
33706 .len = 1281,
33707 .also_non_np = 1,
33708 .np = 3,
33709 .tap = { 1200, 1, 80 },
Eric Biggers5569e8c2018-12-06 12:31:54 -080033710 }, {
33711 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
33712 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
33713 "\x90\x91\x92\x93\x94\x95\x96\x97"
33714 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
33715 .klen = 32,
33716 .iv = "\x40\x41\x42\x43\x44\x45\x46\x47"
33717 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
33718 "\x50\x51\x52\x53\x54\x55\x56\x58"
33719 "\x00\x00\x00\x00\x00\x00\x00\x00",
33720 .ptext = "\x54\x68\x65\x20\x64\x68\x6f\x6c"
33721 "\x65\x20\x28\x70\x72\x6f\x6e\x6f"
33722 "\x75\x6e\x63\x65\x64\x20\x22\x64"
33723 "\x6f\x6c\x65\x22\x29\x20\x69\x73"
33724 "\x20\x61\x6c\x73\x6f\x20\x6b\x6e"
33725 "\x6f\x77\x6e\x20\x61\x73\x20\x74"
33726 "\x68\x65\x20\x41\x73\x69\x61\x74"
33727 "\x69\x63\x20\x77\x69\x6c\x64\x20"
33728 "\x64\x6f\x67\x2c\x20\x72\x65\x64"
33729 "\x20\x64\x6f\x67\x2c\x20\x61\x6e"
33730 "\x64\x20\x77\x68\x69\x73\x74\x6c"
33731 "\x69\x6e\x67\x20\x64\x6f\x67\x2e"
33732 "\x20\x49\x74\x20\x69\x73\x20\x61"
33733 "\x62\x6f\x75\x74\x20\x74\x68\x65"
33734 "\x20\x73\x69\x7a\x65\x20\x6f\x66"
33735 "\x20\x61\x20\x47\x65\x72\x6d\x61"
33736 "\x6e\x20\x73\x68\x65\x70\x68\x65"
33737 "\x72\x64\x20\x62\x75\x74\x20\x6c"
33738 "\x6f\x6f\x6b\x73\x20\x6d\x6f\x72"
33739 "\x65\x20\x6c\x69\x6b\x65\x20\x61"
33740 "\x20\x6c\x6f\x6e\x67\x2d\x6c\x65"
33741 "\x67\x67\x65\x64\x20\x66\x6f\x78"
33742 "\x2e\x20\x54\x68\x69\x73\x20\x68"
33743 "\x69\x67\x68\x6c\x79\x20\x65\x6c"
33744 "\x75\x73\x69\x76\x65\x20\x61\x6e"
33745 "\x64\x20\x73\x6b\x69\x6c\x6c\x65"
33746 "\x64\x20\x6a\x75\x6d\x70\x65\x72"
33747 "\x20\x69\x73\x20\x63\x6c\x61\x73"
33748 "\x73\x69\x66\x69\x65\x64\x20\x77"
33749 "\x69\x74\x68\x20\x77\x6f\x6c\x76"
33750 "\x65\x73\x2c\x20\x63\x6f\x79\x6f"
33751 "\x74\x65\x73\x2c\x20\x6a\x61\x63"
33752 "\x6b\x61\x6c\x73\x2c\x20\x61\x6e"
33753 "\x64\x20\x66\x6f\x78\x65\x73\x20"
33754 "\x69\x6e\x20\x74\x68\x65\x20\x74"
33755 "\x61\x78\x6f\x6e\x6f\x6d\x69\x63"
33756 "\x20\x66\x61\x6d\x69\x6c\x79\x20"
33757 "\x43\x61\x6e\x69\x64\x61\x65\x2e",
33758 .ctext = "\x9f\x1a\xab\x8a\x95\xf4\x7e\xcd"
33759 "\xee\x34\xc0\x39\xd6\x23\x43\x94"
33760 "\xf6\x01\xc1\x7f\x60\x91\xa5\x23"
33761 "\x4a\x8a\xe6\xb1\x14\x8b\xd7\x58"
33762 "\xee\x02\xad\xab\xce\x1e\x7d\xdf"
33763 "\xf9\x49\x27\x69\xd0\x8d\x0c\x20"
33764 "\x6e\x17\xc4\xae\x87\x7a\xc6\x61"
33765 "\x91\xe2\x8e\x0a\x1d\x61\xcc\x38"
33766 "\x02\x64\x43\x49\xc6\xb2\x59\x59"
33767 "\x42\xe7\x9d\x83\x00\x60\x90\xd2"
33768 "\xb9\xcd\x97\x6e\xc7\x95\x71\xbc"
33769 "\x23\x31\x58\x07\xb3\xb4\xac\x0b"
33770 "\x87\x64\x56\xe5\xe3\xec\x63\xa1"
33771 "\x71\x8c\x08\x48\x33\x20\x29\x81"
33772 "\xea\x01\x25\x20\xc3\xda\xe6\xee"
33773 "\x6a\x03\xf6\x68\x4d\x26\xa0\x91"
33774 "\x9e\x44\xb8\xc1\xc0\x8f\x5a\x6a"
33775 "\xc0\xcd\xbf\x24\x5e\x40\x66\xd2"
33776 "\x42\x24\xb5\xbf\xc1\xeb\x12\x60"
33777 "\x56\xbe\xb1\xa6\xc4\x0f\xfc\x49"
33778 "\x69\x9f\xcc\x06\x5c\xe3\x26\xd7"
33779 "\x52\xc0\x42\xe8\xb4\x76\xc3\xee"
33780 "\xb2\x97\xe3\x37\x61\x29\x5a\xb5"
33781 "\x8e\xe8\x8c\xc5\x38\xcc\xcb\xec"
33782 "\x64\x1a\xa9\x12\x5f\xf7\x79\xdf"
33783 "\x64\xca\x77\x4e\xbd\xf9\x83\xa0"
33784 "\x13\x27\x3f\x31\x03\x63\x30\x26"
33785 "\x27\x0b\x3e\xb3\x23\x13\x61\x0b"
33786 "\x70\x1d\xd4\xad\x85\x1e\xbf\xdf"
33787 "\xc6\x8e\x4d\x08\xcc\x7e\x77\xbd"
33788 "\x1e\x18\x77\x38\x3a\xfe\xc0\x5d"
33789 "\x16\xfc\xf0\xa9\x2f\xe9\x17\xc7"
33790 "\xd3\x23\x17\x18\xa3\xe6\x54\x77"
33791 "\x6f\x1b\xbe\x8a\x6e\x7e\xca\x97"
33792 "\x08\x05\x36\x76\xaf\x12\x7a\x42"
33793 "\xf7\x7a\xc2\x35\xc3\xb4\x93\x40"
33794 "\x54\x14\x90\xa0\x4d\x65\x1c\x37"
33795 "\x50\x70\x44\x29\x6d\x6e\x62\x68",
33796 .len = 304,
33797 }
Eric Biggersaa762402018-11-16 17:26:22 -080033798};
33799
Eric Biggers059c2a42018-11-16 17:26:31 -080033800/* Adiantum test vectors from https://github.com/google/adiantum */
33801static const struct cipher_testvec adiantum_xchacha12_aes_tv_template[] = {
33802 {
33803 .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4"
33804 "\x6a\x99\xc2\xc4\xdf\xb1\xf4\xdd"
33805 "\x75\x20\x57\xea\x2c\x4f\xcd\xb2"
33806 "\xa5\x3d\x7b\x49\x1e\xab\xfd\x0f",
33807 .klen = 32,
33808 .iv = "\xdf\x63\xd4\xab\xd2\x49\xf3\xd8"
33809 "\x33\x81\x37\x60\x7d\xfa\x73\x08"
33810 "\xd8\x49\x6d\x80\xe8\x2f\x62\x54"
33811 "\xeb\x0e\xa9\x39\x5b\x45\x7f\x8a",
33812 .ptext = "\x67\xc9\xf2\x30\x84\x41\x8e\x43"
33813 "\xfb\xf3\xb3\x3e\x79\x36\x7f\xe8",
33814 .ctext = "\x6d\x32\x86\x18\x67\x86\x0f\x3f"
33815 "\x96\x7c\x9d\x28\x0d\x53\xec\x9f",
33816 .len = 16,
33817 .also_non_np = 1,
33818 .np = 2,
33819 .tap = { 14, 2 },
33820 }, {
33821 .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99"
33822 "\x5f\x1a\x5a\x44\x1d\x92\x0f\x27"
33823 "\xcc\x16\xd7\x2b\x85\x63\x99\xd3"
33824 "\xba\x96\xa1\xdb\xd2\x60\x68\xda",
33825 .klen = 32,
33826 .iv = "\xef\x58\x69\xb1\x2c\x5e\x9a\x47"
33827 "\x24\xc1\xb1\x69\xe1\x12\x93\x8f"
33828 "\x43\x3d\x6d\x00\xdb\x5e\xd8\xd9"
33829 "\x12\x9a\xfe\xd9\xff\x2d\xaa\xc4",
33830 .ptext = "\x5e\xa8\x68\x19\x85\x98\x12\x23"
33831 "\x26\x0a\xcc\xdb\x0a\x04\xb9\xdf"
33832 "\x4d\xb3\x48\x7b\xb0\xe3\xc8\x19"
33833 "\x43\x5a\x46\x06\x94\x2d\xf2",
33834 .ctext = "\xc7\xc6\xf1\x73\x8f\xc4\xff\x4a"
33835 "\x39\xbe\x78\xbe\x8d\x28\xc8\x89"
33836 "\x46\x63\xe7\x0c\x7d\x87\xe8\x4e"
33837 "\xc9\x18\x7b\xbe\x18\x60\x50",
33838 .len = 31,
33839 }, {
33840 .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7"
33841 "\x05\x91\x8f\xee\x85\x1f\x35\x7f"
33842 "\x80\x3d\xfc\x9b\x94\xf6\xfc\x9e"
33843 "\x19\x09\x00\xa9\x04\x31\x4f\x11",
33844 .klen = 32,
33845 .iv = "\xa1\xba\x49\x95\xff\x34\x6d\xb8"
33846 "\xcd\x87\x5d\x5e\xfd\xea\x85\xdb"
33847 "\x8a\x7b\x5e\xb2\x5d\x57\xdd\x62"
33848 "\xac\xa9\x8c\x41\x42\x94\x75\xb7",
33849 .ptext = "\x69\xb4\xe8\x8c\x37\xe8\x67\x82"
33850 "\xf1\xec\x5d\x04\xe5\x14\x91\x13"
33851 "\xdf\xf2\x87\x1b\x69\x81\x1d\x71"
33852 "\x70\x9e\x9c\x3b\xde\x49\x70\x11"
33853 "\xa0\xa3\xdb\x0d\x54\x4f\x66\x69"
33854 "\xd7\xdb\x80\xa7\x70\x92\x68\xce"
33855 "\x81\x04\x2c\xc6\xab\xae\xe5\x60"
33856 "\x15\xe9\x6f\xef\xaa\x8f\xa7\xa7"
33857 "\x63\x8f\xf2\xf0\x77\xf1\xa8\xea"
33858 "\xe1\xb7\x1f\x9e\xab\x9e\x4b\x3f"
33859 "\x07\x87\x5b\x6f\xcd\xa8\xaf\xb9"
33860 "\xfa\x70\x0b\x52\xb8\xa8\xa7\x9e"
33861 "\x07\x5f\xa6\x0e\xb3\x9b\x79\x13"
33862 "\x79\xc3\x3e\x8d\x1c\x2c\x68\xc8"
33863 "\x51\x1d\x3c\x7b\x7d\x79\x77\x2a"
33864 "\x56\x65\xc5\x54\x23\x28\xb0\x03",
33865 .ctext = "\x9e\x16\xab\xed\x4b\xa7\x42\x5a"
33866 "\xc6\xfb\x4e\x76\xff\xbe\x03\xa0"
33867 "\x0f\xe3\xad\xba\xe4\x98\x2b\x0e"
33868 "\x21\x48\xa0\xb8\x65\x48\x27\x48"
33869 "\x84\x54\x54\xb2\x9a\x94\x7b\xe6"
33870 "\x4b\x29\xe9\xcf\x05\x91\x80\x1a"
33871 "\x3a\xf3\x41\x96\x85\x1d\x9f\x74"
33872 "\x51\x56\x63\xfa\x7c\x28\x85\x49"
33873 "\xf7\x2f\xf9\xf2\x18\x46\xf5\x33"
33874 "\x80\xa3\x3c\xce\xb2\x57\x93\xf5"
33875 "\xae\xbd\xa9\xf5\x7b\x30\xc4\x93"
33876 "\x66\xe0\x30\x77\x16\xe4\xa0\x31"
33877 "\xba\x70\xbc\x68\x13\xf5\xb0\x9a"
33878 "\xc1\xfc\x7e\xfe\x55\x80\x5c\x48"
33879 "\x74\xa6\xaa\xa3\xac\xdc\xc2\xf5"
33880 "\x8d\xde\x34\x86\x78\x60\x75\x8d",
33881 .len = 128,
33882 .also_non_np = 1,
33883 .np = 4,
33884 .tap = { 104, 16, 4, 4 },
33885 }, {
33886 .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a"
33887 "\x25\x74\x29\x0d\x51\x8a\x0e\x13"
33888 "\xc1\x53\x5d\x30\x8d\xee\x75\x0d"
33889 "\x14\xd6\x69\xc9\x15\xa9\x0c\x60",
33890 .klen = 32,
33891 .iv = "\x65\x9b\xd4\xa8\x7d\x29\x1d\xf4"
33892 "\xc4\xd6\x9b\x6a\x28\xab\x64\xe2"
33893 "\x62\x81\x97\xc5\x81\xaa\xf9\x44"
33894 "\xc1\x72\x59\x82\xaf\x16\xc8\x2c",
33895 .ptext = "\xc7\x6b\x52\x6a\x10\xf0\xcc\x09"
33896 "\xc1\x12\x1d\x6d\x21\xa6\x78\xf5"
33897 "\x05\xa3\x69\x60\x91\x36\x98\x57"
33898 "\xba\x0c\x14\xcc\xf3\x2d\x73\x03"
33899 "\xc6\xb2\x5f\xc8\x16\x27\x37\x5d"
33900 "\xd0\x0b\x87\xb2\x50\x94\x7b\x58"
33901 "\x04\xf4\xe0\x7f\x6e\x57\x8e\xc9"
33902 "\x41\x84\xc1\xb1\x7e\x4b\x91\x12"
33903 "\x3a\x8b\x5d\x50\x82\x7b\xcb\xd9"
33904 "\x9a\xd9\x4e\x18\x06\x23\x9e\xd4"
33905 "\xa5\x20\x98\xef\xb5\xda\xe5\xc0"
33906 "\x8a\x6a\x83\x77\x15\x84\x1e\xae"
33907 "\x78\x94\x9d\xdf\xb7\xd1\xea\x67"
33908 "\xaa\xb0\x14\x15\xfa\x67\x21\x84"
33909 "\xd3\x41\x2a\xce\xba\x4b\x4a\xe8"
33910 "\x95\x62\xa9\x55\xf0\x80\xad\xbd"
33911 "\xab\xaf\xdd\x4f\xa5\x7c\x13\x36"
33912 "\xed\x5e\x4f\x72\xad\x4b\xf1\xd0"
33913 "\x88\x4e\xec\x2c\x88\x10\x5e\xea"
33914 "\x12\xc0\x16\x01\x29\xa3\xa0\x55"
33915 "\xaa\x68\xf3\xe9\x9d\x3b\x0d\x3b"
33916 "\x6d\xec\xf8\xa0\x2d\xf0\x90\x8d"
33917 "\x1c\xe2\x88\xd4\x24\x71\xf9\xb3"
33918 "\xc1\x9f\xc5\xd6\x76\x70\xc5\x2e"
33919 "\x9c\xac\xdb\x90\xbd\x83\x72\xba"
33920 "\x6e\xb5\xa5\x53\x83\xa9\xa5\xbf"
33921 "\x7d\x06\x0e\x3c\x2a\xd2\x04\xb5"
33922 "\x1e\x19\x38\x09\x16\xd2\x82\x1f"
33923 "\x75\x18\x56\xb8\x96\x0b\xa6\xf9"
33924 "\xcf\x62\xd9\x32\x5d\xa9\xd7\x1d"
33925 "\xec\xe4\xdf\x1b\xbe\xf1\x36\xee"
33926 "\xe3\x7b\xb5\x2f\xee\xf8\x53\x3d"
33927 "\x6a\xb7\x70\xa9\xfc\x9c\x57\x25"
33928 "\xf2\x89\x10\xd3\xb8\xa8\x8c\x30"
33929 "\xae\x23\x4f\x0e\x13\x66\x4f\xe1"
33930 "\xb6\xc0\xe4\xf8\xef\x93\xbd\x6e"
33931 "\x15\x85\x6b\xe3\x60\x81\x1d\x68"
33932 "\xd7\x31\x87\x89\x09\xab\xd5\x96"
33933 "\x1d\xf3\x6d\x67\x80\xca\x07\x31"
33934 "\x5d\xa7\xe4\xfb\x3e\xf2\x9b\x33"
33935 "\x52\x18\xc8\x30\xfe\x2d\xca\x1e"
33936 "\x79\x92\x7a\x60\x5c\xb6\x58\x87"
33937 "\xa4\x36\xa2\x67\x92\x8b\xa4\xb7"
33938 "\xf1\x86\xdf\xdc\xc0\x7e\x8f\x63"
33939 "\xd2\xa2\xdc\x78\xeb\x4f\xd8\x96"
33940 "\x47\xca\xb8\x91\xf9\xf7\x94\x21"
33941 "\x5f\x9a\x9f\x5b\xb8\x40\x41\x4b"
33942 "\x66\x69\x6a\x72\xd0\xcb\x70\xb7"
33943 "\x93\xb5\x37\x96\x05\x37\x4f\xe5"
33944 "\x8c\xa7\x5a\x4e\x8b\xb7\x84\xea"
33945 "\xc7\xfc\x19\x6e\x1f\x5a\xa1\xac"
33946 "\x18\x7d\x52\x3b\xb3\x34\x62\x99"
33947 "\xe4\x9e\x31\x04\x3f\xc0\x8d\x84"
33948 "\x17\x7c\x25\x48\x52\x67\x11\x27"
33949 "\x67\xbb\x5a\x85\xca\x56\xb2\x5c"
33950 "\xe6\xec\xd5\x96\x3d\x15\xfc\xfb"
33951 "\x22\x25\xf4\x13\xe5\x93\x4b\x9a"
33952 "\x77\xf1\x52\x18\xfa\x16\x5e\x49"
33953 "\x03\x45\xa8\x08\xfa\xb3\x41\x92"
33954 "\x79\x50\x33\xca\xd0\xd7\x42\x55"
33955 "\xc3\x9a\x0c\x4e\xd9\xa4\x3c\x86"
33956 "\x80\x9f\x53\xd1\xa4\x2e\xd1\xbc"
33957 "\xf1\x54\x6e\x93\xa4\x65\x99\x8e"
33958 "\xdf\x29\xc0\x64\x63\x07\xbb\xea",
33959 .ctext = "\x15\x97\xd0\x86\x18\x03\x9c\x51"
33960 "\xc5\x11\x36\x62\x13\x92\xe6\x73"
33961 "\x29\x79\xde\xa1\x00\x3e\x08\x64"
33962 "\x17\x1a\xbc\xd5\xfe\x33\x0e\x0c"
33963 "\x7c\x94\xa7\xc6\x3c\xbe\xac\xa2"
33964 "\x89\xe6\xbc\xdf\x0c\x33\x27\x42"
33965 "\x46\x73\x2f\xba\x4e\xa6\x46\x8f"
33966 "\xe4\xee\x39\x63\x42\x65\xa3\x88"
33967 "\x7a\xad\x33\x23\xa9\xa7\x20\x7f"
33968 "\x0b\xe6\x6a\xc3\x60\xda\x9e\xb4"
33969 "\xd6\x07\x8a\x77\x26\xd1\xab\x44"
33970 "\x99\x55\x03\x5e\xed\x8d\x7b\xbd"
33971 "\xc8\x21\xb7\x21\x30\x3f\xc0\xb5"
33972 "\xc8\xec\x6c\x23\xa6\xa3\x6d\xf1"
33973 "\x30\x0a\xd0\xa6\xa9\x28\x69\xae"
33974 "\x2a\xe6\x54\xac\x82\x9d\x6a\x95"
33975 "\x6f\x06\x44\xc5\x5a\x77\x6e\xec"
33976 "\xf8\xf8\x63\xb2\xe6\xaa\xbd\x8e"
33977 "\x0e\x8a\x62\x00\x03\xc8\x84\xdd"
33978 "\x47\x4a\xc3\x55\xba\xb7\xe7\xdf"
33979 "\x08\xbf\x62\xf5\xe8\xbc\xb6\x11"
33980 "\xe4\xcb\xd0\x66\x74\x32\xcf\xd4"
33981 "\xf8\x51\x80\x39\x14\x05\x12\xdb"
33982 "\x87\x93\xe2\x26\x30\x9c\x3a\x21"
33983 "\xe5\xd0\x38\x57\x80\x15\xe4\x08"
33984 "\x58\x05\x49\x7d\xe6\x92\x77\x70"
33985 "\xfb\x1e\x2d\x6a\x84\x00\xc8\x68"
33986 "\xf7\x1a\xdd\xf0\x7b\x38\x1e\xd8"
33987 "\x2c\x78\x78\x61\xcf\xe3\xde\x69"
33988 "\x1f\xd5\x03\xd5\x1a\xb4\xcf\x03"
33989 "\xc8\x7a\x70\x68\x35\xb4\xf6\xbe"
33990 "\x90\x62\xb2\x28\x99\x86\xf5\x44"
33991 "\x99\xeb\x31\xcf\xca\xdf\xd0\x21"
33992 "\xd6\x60\xf7\x0f\x40\xb4\x80\xb7"
33993 "\xab\xe1\x9b\x45\xba\x66\xda\xee"
33994 "\xdd\x04\x12\x40\x98\xe1\x69\xe5"
33995 "\x2b\x9c\x59\x80\xe7\x7b\xcc\x63"
33996 "\xa6\xc0\x3a\xa9\xfe\x8a\xf9\x62"
33997 "\x11\x34\x61\x94\x35\xfe\xf2\x99"
33998 "\xfd\xee\x19\xea\x95\xb6\x12\xbf"
33999 "\x1b\xdf\x02\x1a\xcc\x3e\x7e\x65"
34000 "\x78\x74\x10\x50\x29\x63\x28\xea"
34001 "\x6b\xab\xd4\x06\x4d\x15\x24\x31"
34002 "\xc7\x0a\xc9\x16\xb6\x48\xf0\xbf"
34003 "\x49\xdb\x68\x71\x31\x8f\x87\xe2"
34004 "\x13\x05\x64\xd6\x22\x0c\xf8\x36"
34005 "\x84\x24\x3e\x69\x5e\xb8\x9e\x16"
34006 "\x73\x6c\x83\x1e\xe0\x9f\x9e\xba"
34007 "\xe5\x59\x21\x33\x1b\xa9\x26\xc2"
34008 "\xc7\xd9\x30\x73\xb6\xa6\x73\x82"
34009 "\x19\xfa\x44\x4d\x40\x8b\x69\x04"
34010 "\x94\x74\xea\x6e\xb3\x09\x47\x01"
34011 "\x2a\xb9\x78\x34\x43\x11\xed\xd6"
34012 "\x8c\x95\x65\x1b\x85\x67\xa5\x40"
34013 "\xac\x9c\x05\x4b\x57\x4a\xa9\x96"
34014 "\x0f\xdd\x4f\xa1\xe0\xcf\x6e\xc7"
34015 "\x1b\xed\xa2\xb4\x56\x8c\x09\x6e"
34016 "\xa6\x65\xd7\x55\x81\xb7\xed\x11"
34017 "\x9b\x40\x75\xa8\x6b\x56\xaf\x16"
34018 "\x8b\x3d\xf4\xcb\xfe\xd5\x1d\x3d"
34019 "\x85\xc2\xc0\xde\x43\x39\x4a\x96"
34020 "\xba\x88\x97\xc0\xd6\x00\x0e\x27"
34021 "\x21\xb0\x21\x52\xba\xa7\x37\xaa"
34022 "\xcc\xbf\x95\xa8\xf4\xd0\x91\xf6",
34023 .len = 512,
34024 .also_non_np = 1,
34025 .np = 2,
34026 .tap = { 144, 368 },
34027 }
34028};
34029
34030/* Adiantum with XChaCha20 instead of XChaCha12 */
34031/* Test vectors from https://github.com/google/adiantum */
34032static const struct cipher_testvec adiantum_xchacha20_aes_tv_template[] = {
34033 {
34034 .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4"
34035 "\x6a\x99\xc2\xc4\xdf\xb1\xf4\xdd"
34036 "\x75\x20\x57\xea\x2c\x4f\xcd\xb2"
34037 "\xa5\x3d\x7b\x49\x1e\xab\xfd\x0f",
34038 .klen = 32,
34039 .iv = "\xdf\x63\xd4\xab\xd2\x49\xf3\xd8"
34040 "\x33\x81\x37\x60\x7d\xfa\x73\x08"
34041 "\xd8\x49\x6d\x80\xe8\x2f\x62\x54"
34042 "\xeb\x0e\xa9\x39\x5b\x45\x7f\x8a",
34043 .ptext = "\x67\xc9\xf2\x30\x84\x41\x8e\x43"
34044 "\xfb\xf3\xb3\x3e\x79\x36\x7f\xe8",
34045 .ctext = "\xf6\x78\x97\xd6\xaa\x94\x01\x27"
34046 "\x2e\x4d\x83\xe0\x6e\x64\x9a\xdf",
34047 .len = 16,
34048 .also_non_np = 1,
34049 .np = 3,
34050 .tap = { 5, 2, 9 },
34051 }, {
34052 .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99"
34053 "\x5f\x1a\x5a\x44\x1d\x92\x0f\x27"
34054 "\xcc\x16\xd7\x2b\x85\x63\x99\xd3"
34055 "\xba\x96\xa1\xdb\xd2\x60\x68\xda",
34056 .klen = 32,
34057 .iv = "\xef\x58\x69\xb1\x2c\x5e\x9a\x47"
34058 "\x24\xc1\xb1\x69\xe1\x12\x93\x8f"
34059 "\x43\x3d\x6d\x00\xdb\x5e\xd8\xd9"
34060 "\x12\x9a\xfe\xd9\xff\x2d\xaa\xc4",
34061 .ptext = "\x5e\xa8\x68\x19\x85\x98\x12\x23"
34062 "\x26\x0a\xcc\xdb\x0a\x04\xb9\xdf"
34063 "\x4d\xb3\x48\x7b\xb0\xe3\xc8\x19"
34064 "\x43\x5a\x46\x06\x94\x2d\xf2",
34065 .ctext = "\x4b\xb8\x90\x10\xdf\x7f\x64\x08"
34066 "\x0e\x14\x42\x5f\x00\x74\x09\x36"
34067 "\x57\x72\xb5\xfd\xb5\x5d\xb8\x28"
34068 "\x0c\x04\x91\x14\x91\xe9\x37",
34069 .len = 31,
34070 .also_non_np = 1,
34071 .np = 2,
34072 .tap = { 16, 15 },
34073 }, {
34074 .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7"
34075 "\x05\x91\x8f\xee\x85\x1f\x35\x7f"
34076 "\x80\x3d\xfc\x9b\x94\xf6\xfc\x9e"
34077 "\x19\x09\x00\xa9\x04\x31\x4f\x11",
34078 .klen = 32,
34079 .iv = "\xa1\xba\x49\x95\xff\x34\x6d\xb8"
34080 "\xcd\x87\x5d\x5e\xfd\xea\x85\xdb"
34081 "\x8a\x7b\x5e\xb2\x5d\x57\xdd\x62"
34082 "\xac\xa9\x8c\x41\x42\x94\x75\xb7",
34083 .ptext = "\x69\xb4\xe8\x8c\x37\xe8\x67\x82"
34084 "\xf1\xec\x5d\x04\xe5\x14\x91\x13"
34085 "\xdf\xf2\x87\x1b\x69\x81\x1d\x71"
34086 "\x70\x9e\x9c\x3b\xde\x49\x70\x11"
34087 "\xa0\xa3\xdb\x0d\x54\x4f\x66\x69"
34088 "\xd7\xdb\x80\xa7\x70\x92\x68\xce"
34089 "\x81\x04\x2c\xc6\xab\xae\xe5\x60"
34090 "\x15\xe9\x6f\xef\xaa\x8f\xa7\xa7"
34091 "\x63\x8f\xf2\xf0\x77\xf1\xa8\xea"
34092 "\xe1\xb7\x1f\x9e\xab\x9e\x4b\x3f"
34093 "\x07\x87\x5b\x6f\xcd\xa8\xaf\xb9"
34094 "\xfa\x70\x0b\x52\xb8\xa8\xa7\x9e"
34095 "\x07\x5f\xa6\x0e\xb3\x9b\x79\x13"
34096 "\x79\xc3\x3e\x8d\x1c\x2c\x68\xc8"
34097 "\x51\x1d\x3c\x7b\x7d\x79\x77\x2a"
34098 "\x56\x65\xc5\x54\x23\x28\xb0\x03",
34099 .ctext = "\xb1\x8b\xa0\x05\x77\xa8\x4d\x59"
34100 "\x1b\x8e\x21\xfc\x3a\x49\xfa\xd4"
34101 "\xeb\x36\xf3\xc4\xdf\xdc\xae\x67"
34102 "\x07\x3f\x70\x0e\xe9\x66\xf5\x0c"
34103 "\x30\x4d\x66\xc9\xa4\x2f\x73\x9c"
34104 "\x13\xc8\x49\x44\xcc\x0a\x90\x9d"
34105 "\x7c\xdd\x19\x3f\xea\x72\x8d\x58"
34106 "\xab\xe7\x09\x2c\xec\xb5\x44\xd2"
34107 "\xca\xa6\x2d\x7a\x5c\x9c\x2b\x15"
34108 "\xec\x2a\xa6\x69\x91\xf9\xf3\x13"
34109 "\xf7\x72\xc1\xc1\x40\xd5\xe1\x94"
34110 "\xf4\x29\xa1\x3e\x25\x02\xa8\x3e"
34111 "\x94\xc1\x91\x14\xa1\x14\xcb\xbe"
34112 "\x67\x4c\xb9\x38\xfe\xa7\xaa\x32"
34113 "\x29\x62\x0d\xb2\xf6\x3c\x58\x57"
34114 "\xc1\xd5\x5a\xbb\xd6\xa6\x2a\xe5",
34115 .len = 128,
34116 .also_non_np = 1,
34117 .np = 4,
34118 .tap = { 112, 7, 8, 1 },
34119 }, {
34120 .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a"
34121 "\x25\x74\x29\x0d\x51\x8a\x0e\x13"
34122 "\xc1\x53\x5d\x30\x8d\xee\x75\x0d"
34123 "\x14\xd6\x69\xc9\x15\xa9\x0c\x60",
34124 .klen = 32,
34125 .iv = "\x65\x9b\xd4\xa8\x7d\x29\x1d\xf4"
34126 "\xc4\xd6\x9b\x6a\x28\xab\x64\xe2"
34127 "\x62\x81\x97\xc5\x81\xaa\xf9\x44"
34128 "\xc1\x72\x59\x82\xaf\x16\xc8\x2c",
34129 .ptext = "\xc7\x6b\x52\x6a\x10\xf0\xcc\x09"
34130 "\xc1\x12\x1d\x6d\x21\xa6\x78\xf5"
34131 "\x05\xa3\x69\x60\x91\x36\x98\x57"
34132 "\xba\x0c\x14\xcc\xf3\x2d\x73\x03"
34133 "\xc6\xb2\x5f\xc8\x16\x27\x37\x5d"
34134 "\xd0\x0b\x87\xb2\x50\x94\x7b\x58"
34135 "\x04\xf4\xe0\x7f\x6e\x57\x8e\xc9"
34136 "\x41\x84\xc1\xb1\x7e\x4b\x91\x12"
34137 "\x3a\x8b\x5d\x50\x82\x7b\xcb\xd9"
34138 "\x9a\xd9\x4e\x18\x06\x23\x9e\xd4"
34139 "\xa5\x20\x98\xef\xb5\xda\xe5\xc0"
34140 "\x8a\x6a\x83\x77\x15\x84\x1e\xae"
34141 "\x78\x94\x9d\xdf\xb7\xd1\xea\x67"
34142 "\xaa\xb0\x14\x15\xfa\x67\x21\x84"
34143 "\xd3\x41\x2a\xce\xba\x4b\x4a\xe8"
34144 "\x95\x62\xa9\x55\xf0\x80\xad\xbd"
34145 "\xab\xaf\xdd\x4f\xa5\x7c\x13\x36"
34146 "\xed\x5e\x4f\x72\xad\x4b\xf1\xd0"
34147 "\x88\x4e\xec\x2c\x88\x10\x5e\xea"
34148 "\x12\xc0\x16\x01\x29\xa3\xa0\x55"
34149 "\xaa\x68\xf3\xe9\x9d\x3b\x0d\x3b"
34150 "\x6d\xec\xf8\xa0\x2d\xf0\x90\x8d"
34151 "\x1c\xe2\x88\xd4\x24\x71\xf9\xb3"
34152 "\xc1\x9f\xc5\xd6\x76\x70\xc5\x2e"
34153 "\x9c\xac\xdb\x90\xbd\x83\x72\xba"
34154 "\x6e\xb5\xa5\x53\x83\xa9\xa5\xbf"
34155 "\x7d\x06\x0e\x3c\x2a\xd2\x04\xb5"
34156 "\x1e\x19\x38\x09\x16\xd2\x82\x1f"
34157 "\x75\x18\x56\xb8\x96\x0b\xa6\xf9"
34158 "\xcf\x62\xd9\x32\x5d\xa9\xd7\x1d"
34159 "\xec\xe4\xdf\x1b\xbe\xf1\x36\xee"
34160 "\xe3\x7b\xb5\x2f\xee\xf8\x53\x3d"
34161 "\x6a\xb7\x70\xa9\xfc\x9c\x57\x25"
34162 "\xf2\x89\x10\xd3\xb8\xa8\x8c\x30"
34163 "\xae\x23\x4f\x0e\x13\x66\x4f\xe1"
34164 "\xb6\xc0\xe4\xf8\xef\x93\xbd\x6e"
34165 "\x15\x85\x6b\xe3\x60\x81\x1d\x68"
34166 "\xd7\x31\x87\x89\x09\xab\xd5\x96"
34167 "\x1d\xf3\x6d\x67\x80\xca\x07\x31"
34168 "\x5d\xa7\xe4\xfb\x3e\xf2\x9b\x33"
34169 "\x52\x18\xc8\x30\xfe\x2d\xca\x1e"
34170 "\x79\x92\x7a\x60\x5c\xb6\x58\x87"
34171 "\xa4\x36\xa2\x67\x92\x8b\xa4\xb7"
34172 "\xf1\x86\xdf\xdc\xc0\x7e\x8f\x63"
34173 "\xd2\xa2\xdc\x78\xeb\x4f\xd8\x96"
34174 "\x47\xca\xb8\x91\xf9\xf7\x94\x21"
34175 "\x5f\x9a\x9f\x5b\xb8\x40\x41\x4b"
34176 "\x66\x69\x6a\x72\xd0\xcb\x70\xb7"
34177 "\x93\xb5\x37\x96\x05\x37\x4f\xe5"
34178 "\x8c\xa7\x5a\x4e\x8b\xb7\x84\xea"
34179 "\xc7\xfc\x19\x6e\x1f\x5a\xa1\xac"
34180 "\x18\x7d\x52\x3b\xb3\x34\x62\x99"
34181 "\xe4\x9e\x31\x04\x3f\xc0\x8d\x84"
34182 "\x17\x7c\x25\x48\x52\x67\x11\x27"
34183 "\x67\xbb\x5a\x85\xca\x56\xb2\x5c"
34184 "\xe6\xec\xd5\x96\x3d\x15\xfc\xfb"
34185 "\x22\x25\xf4\x13\xe5\x93\x4b\x9a"
34186 "\x77\xf1\x52\x18\xfa\x16\x5e\x49"
34187 "\x03\x45\xa8\x08\xfa\xb3\x41\x92"
34188 "\x79\x50\x33\xca\xd0\xd7\x42\x55"
34189 "\xc3\x9a\x0c\x4e\xd9\xa4\x3c\x86"
34190 "\x80\x9f\x53\xd1\xa4\x2e\xd1\xbc"
34191 "\xf1\x54\x6e\x93\xa4\x65\x99\x8e"
34192 "\xdf\x29\xc0\x64\x63\x07\xbb\xea",
34193 .ctext = "\xe0\x33\xf6\xe0\xb4\xa5\xdd\x2b"
34194 "\xdd\xce\xfc\x12\x1e\xfc\x2d\xf2"
34195 "\x8b\xc7\xeb\xc1\xc4\x2a\xe8\x44"
34196 "\x0f\x3d\x97\x19\x2e\x6d\xa2\x38"
34197 "\x9d\xa6\xaa\xe1\x96\xb9\x08\xe8"
34198 "\x0b\x70\x48\x5c\xed\xb5\x9b\xcb"
34199 "\x8b\x40\x88\x7e\x69\x73\xf7\x16"
34200 "\x71\xbb\x5b\xfc\xa3\x47\x5d\xa6"
34201 "\xae\x3a\x64\xc4\xe7\xb8\xa8\xe7"
34202 "\xb1\x32\x19\xdb\xe3\x01\xb8\xf0"
34203 "\xa4\x86\xb4\x4c\xc2\xde\x5c\xd2"
34204 "\x6c\x77\xd2\xe8\x18\xb7\x0a\xc9"
34205 "\x3d\x53\xb5\xc4\x5c\xf0\x8c\x06"
34206 "\xdc\x90\xe0\x74\x47\x1b\x0b\xf6"
34207 "\xd2\x71\x6b\xc4\xf1\x97\x00\x2d"
34208 "\x63\x57\x44\x1f\x8c\xf4\xe6\x9b"
34209 "\xe0\x7a\xdd\xec\x32\x73\x42\x32"
34210 "\x7f\x35\x67\x60\x0d\xcf\x10\x52"
34211 "\x61\x22\x53\x8d\x8e\xbb\x33\x76"
34212 "\x59\xd9\x10\xce\xdf\xef\xc0\x41"
34213 "\xd5\x33\x29\x6a\xda\x46\xa4\x51"
34214 "\xf0\x99\x3d\x96\x31\xdd\xb5\xcb"
34215 "\x3e\x2a\x1f\xc7\x5c\x79\xd3\xc5"
34216 "\x20\xa1\xb1\x39\x1b\xc6\x0a\x70"
34217 "\x26\x39\x95\x07\xad\x7a\xc9\x69"
34218 "\xfe\x81\xc7\x88\x08\x38\xaf\xad"
34219 "\x9e\x8d\xfb\xe8\x24\x0d\x22\xb8"
34220 "\x0e\xed\xbe\x37\x53\x7c\xa6\xc6"
34221 "\x78\x62\xec\xa3\x59\xd9\xc6\x9d"
34222 "\xb8\x0e\x69\x77\x84\x2d\x6a\x4c"
34223 "\xc5\xd9\xb2\xa0\x2b\xa8\x80\xcc"
34224 "\xe9\x1e\x9c\x5a\xc4\xa1\xb2\x37"
34225 "\x06\x9b\x30\x32\x67\xf7\xe7\xd2"
34226 "\x42\xc7\xdf\x4e\xd4\xcb\xa0\x12"
34227 "\x94\xa1\x34\x85\x93\x50\x4b\x0a"
34228 "\x3c\x7d\x49\x25\x01\x41\x6b\x96"
34229 "\xa9\x12\xbb\x0b\xc0\xd7\xd0\x93"
34230 "\x1f\x70\x38\xb8\x21\xee\xf6\xa7"
34231 "\xee\xeb\xe7\x81\xa4\x13\xb4\x87"
34232 "\xfa\xc1\xb0\xb5\x37\x8b\x74\xa2"
34233 "\x4e\xc7\xc2\xad\x3d\x62\x3f\xf8"
34234 "\x34\x42\xe5\xae\x45\x13\x63\xfe"
34235 "\xfc\x2a\x17\x46\x61\xa9\xd3\x1c"
34236 "\x4c\xaf\xf0\x09\x62\x26\x66\x1e"
34237 "\x74\xcf\xd6\x68\x3d\x7d\xd8\xb7"
34238 "\xe7\xe6\xf8\xf0\x08\x20\xf7\x47"
34239 "\x1c\x52\xaa\x0f\x3e\x21\xa3\xf2"
34240 "\xbf\x2f\x95\x16\xa8\xc8\xc8\x8c"
34241 "\x99\x0f\x5d\xfb\xfa\x2b\x58\x8a"
34242 "\x7e\xd6\x74\x02\x60\xf0\xd0\x5b"
34243 "\x65\xa8\xac\xea\x8d\x68\x46\x34"
34244 "\x26\x9d\x4f\xb1\x9a\x8e\xc0\x1a"
34245 "\xf1\xed\xc6\x7a\x83\xfd\x8a\x57"
34246 "\xf2\xe6\xe4\xba\xfc\xc6\x3c\xad"
34247 "\x5b\x19\x50\x2f\x3a\xcc\x06\x46"
34248 "\x04\x51\x3f\x91\x97\xf0\xd2\x07"
34249 "\xe7\x93\x89\x7e\xb5\x32\x0f\x03"
34250 "\xe5\x58\x9e\x74\x72\xeb\xc2\x38"
34251 "\x00\x0c\x91\x72\x69\xed\x7d\x6d"
34252 "\xc8\x71\xf0\xec\xff\x80\xd9\x1c"
34253 "\x9e\xd2\xfa\x15\xfc\x6c\x4e\xbc"
34254 "\xb1\xa6\xbd\xbd\x70\x40\xca\x20"
34255 "\xb8\x78\xd2\xa3\xc6\xf3\x79\x9c"
34256 "\xc7\x27\xe1\x6a\x29\xad\xa4\x03",
34257 .len = 512,
34258 }
34259};
34260
Eric Biggersaa762402018-11-16 17:26:22 -080034261/*
Herbert Xuda7f0332008-07-31 17:08:25 +080034262 * CTS (Cipher Text Stealing) mode tests
34263 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034264static const struct cipher_testvec cts_mode_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080034265 { /* from rfc3962 */
34266 .klen = 16,
34267 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
34268 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034269 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080034270 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
34271 "\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034272 .len = 17,
34273 .ctext = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
Herbert Xuda7f0332008-07-31 17:08:25 +080034274 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
34275 "\x97",
34276 }, {
34277 .klen = 16,
34278 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
34279 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034280 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080034281 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
34282 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
34283 "\x20\x47\x61\x75\x27\x73\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034284 .len = 31,
34285 .ctext = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
Herbert Xuda7f0332008-07-31 17:08:25 +080034286 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
34287 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
34288 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
34289 }, {
34290 .klen = 16,
34291 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
34292 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034293 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080034294 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
34295 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
34296 "\x20\x47\x61\x75\x27\x73\x20\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034297 .len = 32,
34298 .ctext = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
Herbert Xuda7f0332008-07-31 17:08:25 +080034299 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
34300 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
34301 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
34302 }, {
34303 .klen = 16,
34304 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
34305 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034306 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080034307 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
34308 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
34309 "\x20\x47\x61\x75\x27\x73\x20\x43"
34310 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
34311 "\x70\x6c\x65\x61\x73\x65\x2c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034312 .len = 47,
34313 .ctext = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
Herbert Xuda7f0332008-07-31 17:08:25 +080034314 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
34315 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
34316 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
34317 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
34318 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
34319 }, {
34320 .klen = 16,
34321 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
34322 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034323 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080034324 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
34325 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
34326 "\x20\x47\x61\x75\x27\x73\x20\x43"
34327 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
34328 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034329 .len = 48,
34330 .ctext = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
Herbert Xuda7f0332008-07-31 17:08:25 +080034331 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
34332 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
34333 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
34334 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
34335 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
34336 }, {
34337 .klen = 16,
34338 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
34339 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034340 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080034341 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
34342 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
34343 "\x20\x47\x61\x75\x27\x73\x20\x43"
34344 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
34345 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
34346 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
34347 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070034348 .len = 64,
34349 .ctext = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
Herbert Xuda7f0332008-07-31 17:08:25 +080034350 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
34351 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
34352 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
34353 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
34354 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
34355 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
34356 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
34357 }
34358};
34359
34360/*
34361 * Compression stuff.
34362 */
34363#define COMP_BUF_SIZE 512
34364
34365struct comp_testvec {
34366 int inlen, outlen;
34367 char input[COMP_BUF_SIZE];
34368 char output[COMP_BUF_SIZE];
34369};
34370
34371/*
34372 * Deflate test vectors (null-terminated strings).
Geert Uytterhoevenbcf84a32008-12-18 17:17:46 +110034373 * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
Herbert Xuda7f0332008-07-31 17:08:25 +080034374 */
Geert Uytterhoeven0c01aed2009-03-04 15:42:15 +080034375
Eric Biggersb13b1e02017-02-24 15:46:59 -080034376static const struct comp_testvec deflate_comp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080034377 {
34378 .inlen = 70,
34379 .outlen = 38,
34380 .input = "Join us now and share the software "
34381 "Join us now and share the software ",
34382 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
34383 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
34384 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
34385 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
34386 "\x71\xbc\x08\x2b\x01\x00",
34387 }, {
34388 .inlen = 191,
34389 .outlen = 122,
34390 .input = "This document describes a compression method based on the DEFLATE"
34391 "compression algorithm. This document defines the application of "
34392 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
34393 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
34394 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
34395 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
34396 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
34397 "\x68\x12\x51\xae\x76\x67\xd6\x27"
34398 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
34399 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
34400 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
34401 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
34402 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
34403 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
34404 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
34405 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
34406 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
34407 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
34408 "\xfa\x02",
34409 },
34410};
34411
Eric Biggersb13b1e02017-02-24 15:46:59 -080034412static const struct comp_testvec deflate_decomp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080034413 {
34414 .inlen = 122,
34415 .outlen = 191,
34416 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
34417 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
34418 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
34419 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
34420 "\x68\x12\x51\xae\x76\x67\xd6\x27"
34421 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
34422 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
34423 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
34424 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
34425 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
34426 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
34427 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
34428 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
34429 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
34430 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
34431 "\xfa\x02",
34432 .output = "This document describes a compression method based on the DEFLATE"
34433 "compression algorithm. This document defines the application of "
34434 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
34435 }, {
34436 .inlen = 38,
34437 .outlen = 70,
34438 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
34439 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
34440 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
34441 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
34442 "\x71\xbc\x08\x2b\x01\x00",
34443 .output = "Join us now and share the software "
34444 "Join us now and share the software ",
34445 },
34446};
34447
Giovanni Cabiddua368f432017-04-21 21:54:30 +010034448static const struct comp_testvec zlib_deflate_comp_tv_template[] = {
34449 {
34450 .inlen = 70,
34451 .outlen = 44,
34452 .input = "Join us now and share the software "
34453 "Join us now and share the software ",
34454 .output = "\x78\x5e\xf3\xca\xcf\xcc\x53\x28"
34455 "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
34456 "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
34457 "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
34458 "\x29\x07\x71\xbc\x08\x2b\x01\x00"
34459 "\x7c\x65\x19\x3d",
34460 }, {
34461 .inlen = 191,
34462 .outlen = 129,
34463 .input = "This document describes a compression method based on the DEFLATE"
34464 "compression algorithm. This document defines the application of "
34465 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
34466 .output = "\x78\x5e\x5d\xce\x41\x0a\xc3\x30"
34467 "\x0c\x04\xc0\xaf\xec\x0b\xf2\x87"
34468 "\xd2\xa6\x50\xe8\xc1\x07\x7f\x40"
34469 "\xb1\x95\x5a\x60\x5b\xc6\x56\x0f"
34470 "\xfd\x7d\x93\x1e\x42\xe8\x51\xec"
34471 "\xee\x20\x9f\x64\x20\x6a\x78\x17"
34472 "\xae\x86\xc8\x23\x74\x59\x78\x80"
34473 "\x10\xb4\xb4\xce\x63\x88\x56\x14"
34474 "\xb6\xa4\x11\x0b\x0d\x8e\xd8\x6e"
34475 "\x4b\x8c\xdb\x7c\x7f\x5e\xfc\x7c"
34476 "\xae\x51\x7e\x69\x17\x4b\x65\x02"
34477 "\xfc\x1f\xbc\x4a\xdd\xd8\x7d\x48"
34478 "\xad\x65\x09\x64\x3b\xac\xeb\xd9"
34479 "\xc2\x01\xc0\xf4\x17\x3c\x1c\x1c"
34480 "\x7d\xb2\x52\xc4\xf5\xf4\x8f\xeb"
34481 "\x6a\x1a\x34\x4f\x5f\x2e\x32\x45"
34482 "\x4e",
34483 },
34484};
34485
34486static const struct comp_testvec zlib_deflate_decomp_tv_template[] = {
34487 {
34488 .inlen = 128,
34489 .outlen = 191,
34490 .input = "\x78\x9c\x5d\x8d\x31\x0e\xc2\x30"
34491 "\x10\x04\xbf\xb2\x2f\xc8\x1f\x10"
34492 "\x04\x09\x89\xc2\x85\x3f\x70\xb1"
34493 "\x2f\xf8\x24\xdb\x67\xd9\x47\xc1"
34494 "\xef\x49\x68\x12\x51\xae\x76\x67"
34495 "\xd6\x27\x19\x88\x1a\xde\x85\xab"
34496 "\x21\xf2\x08\x5d\x16\x1e\x20\x04"
34497 "\x2d\xad\xf3\x18\xa2\x15\x85\x2d"
34498 "\x69\xc4\x42\x83\x23\xb6\x6c\x89"
34499 "\x71\x9b\xef\xcf\x8b\x9f\xcf\x33"
34500 "\xca\x2f\xed\x62\xa9\x4c\x80\xff"
34501 "\x13\xaf\x52\x37\xed\x0e\x52\x6b"
34502 "\x59\x02\xd9\x4e\xe8\x7a\x76\x1d"
34503 "\x02\x98\xfe\x8a\x87\x83\xa3\x4f"
34504 "\x56\x8a\xb8\x9e\x8e\x5c\x57\xd3"
34505 "\xa0\x79\xfa\x02\x2e\x32\x45\x4e",
34506 .output = "This document describes a compression method based on the DEFLATE"
34507 "compression algorithm. This document defines the application of "
34508 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
34509 }, {
34510 .inlen = 44,
34511 .outlen = 70,
34512 .input = "\x78\x9c\xf3\xca\xcf\xcc\x53\x28"
34513 "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
34514 "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
34515 "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
34516 "\x29\x07\x71\xbc\x08\x2b\x01\x00"
34517 "\x7c\x65\x19\x3d",
34518 .output = "Join us now and share the software "
34519 "Join us now and share the software ",
34520 },
34521};
34522
Herbert Xuda7f0332008-07-31 17:08:25 +080034523/*
34524 * LZO test vectors (null-terminated strings).
34525 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080034526static const struct comp_testvec lzo_comp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080034527 {
34528 .inlen = 70,
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020034529 .outlen = 57,
Herbert Xuda7f0332008-07-31 17:08:25 +080034530 .input = "Join us now and share the software "
34531 "Join us now and share the software ",
34532 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020034533 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34534 "\x64\x20\x73\x68\x61\x72\x65\x20"
34535 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34536 "\x77\x70\x01\x32\x88\x00\x0c\x65"
34537 "\x20\x74\x68\x65\x20\x73\x6f\x66"
34538 "\x74\x77\x61\x72\x65\x20\x11\x00"
34539 "\x00",
Herbert Xuda7f0332008-07-31 17:08:25 +080034540 }, {
34541 .inlen = 159,
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020034542 .outlen = 131,
Herbert Xuda7f0332008-07-31 17:08:25 +080034543 .input = "This document describes a compression method based on the LZO "
34544 "compression algorithm. This document defines the application of "
34545 "the LZO algorithm used in UBIFS.",
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020034546 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
Herbert Xuda7f0332008-07-31 17:08:25 +080034547 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
34548 "\x64\x65\x73\x63\x72\x69\x62\x65"
34549 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
34550 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
34551 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
34552 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020034553 "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
34554 "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
34555 "\x72\x69\x74\x68\x6d\x2e\x20\x20"
34556 "\x2e\x54\x01\x03\x66\x69\x6e\x65"
34557 "\x73\x20\x74\x06\x05\x61\x70\x70"
34558 "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
34559 "\x66\x88\x02\x60\x09\x27\xf0\x00"
34560 "\x0c\x20\x75\x73\x65\x64\x20\x69"
34561 "\x6e\x20\x55\x42\x49\x46\x53\x2e"
34562 "\x11\x00\x00",
Herbert Xuda7f0332008-07-31 17:08:25 +080034563 },
34564};
34565
Eric Biggersb13b1e02017-02-24 15:46:59 -080034566static const struct comp_testvec lzo_decomp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080034567 {
34568 .inlen = 133,
34569 .outlen = 159,
34570 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
34571 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
34572 "\x64\x65\x73\x63\x72\x69\x62\x65"
34573 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
34574 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
34575 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
34576 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
34577 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
34578 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
34579 "\x69\x74\x68\x6d\x2e\x20\x20\x54"
34580 "\x68\x69\x73\x2a\x54\x01\x02\x66"
34581 "\x69\x6e\x65\x73\x94\x06\x05\x61"
34582 "\x70\x70\x6c\x69\x63\x61\x74\x76"
34583 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
34584 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
34585 "\x20\x69\x6e\x20\x55\x42\x49\x46"
34586 "\x53\x2e\x11\x00\x00",
34587 .output = "This document describes a compression method based on the LZO "
34588 "compression algorithm. This document defines the application of "
34589 "the LZO algorithm used in UBIFS.",
34590 }, {
34591 .inlen = 46,
34592 .outlen = 70,
34593 .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
34594 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
34595 "\x64\x20\x73\x68\x61\x72\x65\x20"
34596 "\x74\x68\x65\x20\x73\x6f\x66\x74"
34597 "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
34598 "\x3d\x88\x00\x11\x00\x00",
34599 .output = "Join us now and share the software "
34600 "Join us now and share the software ",
34601 },
34602};
34603
34604/*
34605 * Michael MIC test vectors from IEEE 802.11i
34606 */
34607#define MICHAEL_MIC_TEST_VECTORS 6
34608
Eric Biggersb13b1e02017-02-24 15:46:59 -080034609static const struct hash_testvec michael_mic_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080034610 {
34611 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
34612 .ksize = 8,
34613 .plaintext = zeroed_string,
34614 .psize = 0,
34615 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
34616 },
34617 {
34618 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
34619 .ksize = 8,
34620 .plaintext = "M",
34621 .psize = 1,
34622 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
34623 },
34624 {
34625 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
34626 .ksize = 8,
34627 .plaintext = "Mi",
34628 .psize = 2,
34629 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
34630 },
34631 {
34632 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
34633 .ksize = 8,
34634 .plaintext = "Mic",
34635 .psize = 3,
34636 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
34637 },
34638 {
34639 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
34640 .ksize = 8,
34641 .plaintext = "Mich",
34642 .psize = 4,
34643 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
34644 },
34645 {
34646 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
34647 .ksize = 8,
34648 .plaintext = "Michael",
34649 .psize = 7,
34650 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
34651 }
34652};
34653
34654/*
Ard Biesheuvelebb34722015-05-04 11:00:17 +020034655 * CRC32 test vectors
34656 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080034657static const struct hash_testvec crc32_tv_template[] = {
Ard Biesheuvelebb34722015-05-04 11:00:17 +020034658 {
Eric Biggers9f50fd52018-05-19 22:07:42 -070034659 .psize = 0,
34660 .digest = "\x00\x00\x00\x00",
34661 },
34662 {
34663 .plaintext = "abcdefg",
34664 .psize = 7,
34665 .digest = "\xd8\xb5\x46\xac",
34666 },
34667 {
Ard Biesheuvelebb34722015-05-04 11:00:17 +020034668 .key = "\x87\xa9\xcb\xed",
34669 .ksize = 4,
34670 .psize = 0,
34671 .digest = "\x87\xa9\xcb\xed",
34672 },
34673 {
34674 .key = "\xff\xff\xff\xff",
34675 .ksize = 4,
34676 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34677 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34678 "\x11\x12\x13\x14\x15\x16\x17\x18"
34679 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34680 "\x21\x22\x23\x24\x25\x26\x27\x28",
34681 .psize = 40,
34682 .digest = "\x3a\xdf\x4b\xb0",
34683 },
34684 {
34685 .key = "\xff\xff\xff\xff",
34686 .ksize = 4,
34687 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34688 "\x31\x32\x33\x34\x35\x36\x37\x38"
34689 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34690 "\x41\x42\x43\x44\x45\x46\x47\x48"
34691 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
34692 .psize = 40,
34693 .digest = "\xa9\x7a\x7f\x7b",
34694 },
34695 {
34696 .key = "\xff\xff\xff\xff",
34697 .ksize = 4,
34698 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
34699 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34700 "\x61\x62\x63\x64\x65\x66\x67\x68"
34701 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34702 "\x71\x72\x73\x74\x75\x76\x77\x78",
34703 .psize = 40,
34704 .digest = "\xba\xd3\xf8\x1c",
34705 },
34706 {
34707 .key = "\xff\xff\xff\xff",
34708 .ksize = 4,
34709 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34710 "\x81\x82\x83\x84\x85\x86\x87\x88"
34711 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34712 "\x91\x92\x93\x94\x95\x96\x97\x98"
34713 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34714 .psize = 40,
34715 .digest = "\xa8\xa9\xc2\x02",
34716 },
34717 {
34718 .key = "\xff\xff\xff\xff",
34719 .ksize = 4,
34720 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34721 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34722 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34723 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34724 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34725 .psize = 40,
34726 .digest = "\x27\xf0\x57\xe2",
34727 },
34728 {
34729 .key = "\xff\xff\xff\xff",
34730 .ksize = 4,
34731 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34732 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34733 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34734 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34735 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34736 .psize = 40,
34737 .digest = "\x49\x78\x10\x08",
34738 },
34739 {
34740 .key = "\x80\xea\xd3\xf1",
34741 .ksize = 4,
34742 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34743 "\x31\x32\x33\x34\x35\x36\x37\x38"
34744 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34745 "\x41\x42\x43\x44\x45\x46\x47\x48"
34746 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
34747 .psize = 40,
34748 .digest = "\x9a\xb1\xdc\xf0",
34749 },
34750 {
34751 .key = "\xf3\x4a\x1d\x5d",
34752 .ksize = 4,
34753 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
34754 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34755 "\x61\x62\x63\x64\x65\x66\x67\x68"
34756 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34757 "\x71\x72\x73\x74\x75\x76\x77\x78",
34758 .psize = 40,
34759 .digest = "\xb4\x97\xcc\xd4",
34760 },
34761 {
34762 .key = "\x2e\x80\x04\x59",
34763 .ksize = 4,
34764 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34765 "\x81\x82\x83\x84\x85\x86\x87\x88"
34766 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34767 "\x91\x92\x93\x94\x95\x96\x97\x98"
34768 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
34769 .psize = 40,
34770 .digest = "\x67\x9b\xfa\x79",
34771 },
34772 {
34773 .key = "\xa6\xcc\x19\x85",
34774 .ksize = 4,
34775 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34776 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34777 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34778 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34779 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
34780 .psize = 40,
34781 .digest = "\x24\xb5\x16\xef",
34782 },
34783 {
34784 .key = "\x41\xfc\xfe\x2d",
34785 .ksize = 4,
34786 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34787 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34788 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34789 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34790 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34791 .psize = 40,
34792 .digest = "\x15\x94\x80\x39",
34793 },
34794 {
34795 .key = "\xff\xff\xff\xff",
34796 .ksize = 4,
34797 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
34798 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
34799 "\x11\x12\x13\x14\x15\x16\x17\x18"
34800 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
34801 "\x21\x22\x23\x24\x25\x26\x27\x28"
34802 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
34803 "\x31\x32\x33\x34\x35\x36\x37\x38"
34804 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
34805 "\x41\x42\x43\x44\x45\x46\x47\x48"
34806 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
34807 "\x51\x52\x53\x54\x55\x56\x57\x58"
34808 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
34809 "\x61\x62\x63\x64\x65\x66\x67\x68"
34810 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
34811 "\x71\x72\x73\x74\x75\x76\x77\x78"
34812 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
34813 "\x81\x82\x83\x84\x85\x86\x87\x88"
34814 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
34815 "\x91\x92\x93\x94\x95\x96\x97\x98"
34816 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
34817 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
34818 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
34819 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
34820 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
34821 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
34822 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
34823 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
34824 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
34825 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
34826 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
34827 .psize = 240,
34828 .digest = "\x6c\xc6\x56\xde",
34829 .np = 2,
34830 .tap = { 31, 209 }
34831 }, {
34832 .key = "\xff\xff\xff\xff",
34833 .ksize = 4,
34834 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
34835 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
34836 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
34837 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
34838 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
34839 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
34840 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
34841 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
34842 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
34843 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
34844 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
34845 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
34846 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
34847 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
34848 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
34849 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
34850 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
34851 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
34852 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
34853 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
34854 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
34855 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
34856 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
34857 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
34858 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
34859 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
34860 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
34861 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
34862 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
34863 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
34864 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
34865 "\x47\xde\x75\x0c\x80\x17\xae\x22"
34866 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
34867 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
34868 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
34869 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
34870 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
34871 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
34872 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
34873 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
34874 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
34875 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
34876 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
34877 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
34878 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
34879 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
34880 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
34881 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
34882 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
34883 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
34884 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
34885 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
34886 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
34887 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
34888 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
34889 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
34890 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
34891 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
34892 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
34893 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
34894 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
34895 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
34896 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
34897 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
34898 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
34899 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
34900 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
34901 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
34902 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
34903 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
34904 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
34905 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
34906 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
34907 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
34908 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
34909 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
34910 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
34911 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
34912 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
34913 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
34914 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
34915 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
34916 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
34917 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
34918 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
34919 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
34920 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
34921 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
34922 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
34923 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
34924 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
34925 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
34926 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
34927 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
34928 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
34929 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
34930 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
34931 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
34932 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
34933 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
34934 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
34935 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
34936 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
34937 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
34938 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
34939 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
34940 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
34941 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
34942 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
34943 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
34944 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
34945 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
34946 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
34947 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
34948 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
34949 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
34950 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
34951 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
34952 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
34953 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
34954 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
34955 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
34956 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
34957 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
34958 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
34959 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
34960 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
34961 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
34962 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
34963 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
34964 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
34965 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
34966 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
34967 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
34968 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
34969 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
34970 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
34971 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
34972 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
34973 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
34974 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
34975 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
34976 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
34977 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
34978 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
34979 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
34980 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
34981 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
34982 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
34983 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
34984 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
34985 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
34986 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
34987 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
34988 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
34989 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
34990 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
34991 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
34992 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
34993 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
34994 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
34995 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
34996 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
34997 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
34998 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
34999 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
35000 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
35001 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
35002 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
35003 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
35004 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
35005 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
35006 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
35007 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
35008 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
35009 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
35010 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
35011 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
35012 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
35013 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
35014 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
35015 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
35016 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
35017 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
35018 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
35019 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
35020 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
35021 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
35022 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
35023 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
35024 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
35025 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
35026 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
35027 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
35028 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
35029 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
35030 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
35031 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
35032 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
35033 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
35034 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
35035 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
35036 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
35037 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
35038 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
35039 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
35040 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
35041 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
35042 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
35043 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
35044 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
35045 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
35046 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
35047 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
35048 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
35049 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
35050 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
35051 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
35052 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
35053 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
35054 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
35055 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
35056 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
35057 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
35058 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
35059 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
35060 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
35061 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
35062 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
35063 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
35064 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
35065 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
35066 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
35067 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
35068 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
35069 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
35070 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
35071 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
35072 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
35073 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
35074 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
35075 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
35076 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
35077 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
35078 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
35079 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
35080 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
35081 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
35082 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
35083 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
35084 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
35085 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
35086 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
35087 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
35088 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
35089 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
35090 .psize = 2048,
35091 .digest = "\xfb\x3a\x7a\xda",
35092 }
35093};
35094
35095/*
Herbert Xuda7f0332008-07-31 17:08:25 +080035096 * CRC32C test vectors
35097 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080035098static const struct hash_testvec crc32c_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080035099 {
35100 .psize = 0,
35101 .digest = "\x00\x00\x00\x00",
35102 },
35103 {
Eric Biggers9f50fd52018-05-19 22:07:42 -070035104 .plaintext = "abcdefg",
35105 .psize = 7,
35106 .digest = "\x41\xf4\x27\xe6",
35107 },
35108 {
Herbert Xuda7f0332008-07-31 17:08:25 +080035109 .key = "\x87\xa9\xcb\xed",
35110 .ksize = 4,
35111 .psize = 0,
35112 .digest = "\x78\x56\x34\x12",
35113 },
35114 {
35115 .key = "\xff\xff\xff\xff",
35116 .ksize = 4,
35117 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
35118 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
35119 "\x11\x12\x13\x14\x15\x16\x17\x18"
35120 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
35121 "\x21\x22\x23\x24\x25\x26\x27\x28",
35122 .psize = 40,
35123 .digest = "\x7f\x15\x2c\x0e",
35124 },
35125 {
35126 .key = "\xff\xff\xff\xff",
35127 .ksize = 4,
35128 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
35129 "\x31\x32\x33\x34\x35\x36\x37\x38"
35130 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
35131 "\x41\x42\x43\x44\x45\x46\x47\x48"
35132 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
35133 .psize = 40,
35134 .digest = "\xf6\xeb\x80\xe9",
35135 },
35136 {
35137 .key = "\xff\xff\xff\xff",
35138 .ksize = 4,
35139 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
35140 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
35141 "\x61\x62\x63\x64\x65\x66\x67\x68"
35142 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
35143 "\x71\x72\x73\x74\x75\x76\x77\x78",
35144 .psize = 40,
35145 .digest = "\xed\xbd\x74\xde",
35146 },
35147 {
35148 .key = "\xff\xff\xff\xff",
35149 .ksize = 4,
35150 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
35151 "\x81\x82\x83\x84\x85\x86\x87\x88"
35152 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
35153 "\x91\x92\x93\x94\x95\x96\x97\x98"
35154 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
35155 .psize = 40,
35156 .digest = "\x62\xc8\x79\xd5",
35157 },
35158 {
35159 .key = "\xff\xff\xff\xff",
35160 .ksize = 4,
35161 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
35162 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
35163 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
35164 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
35165 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
35166 .psize = 40,
35167 .digest = "\xd0\x9a\x97\xba",
35168 },
35169 {
35170 .key = "\xff\xff\xff\xff",
35171 .ksize = 4,
35172 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
35173 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
35174 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
35175 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
35176 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
35177 .psize = 40,
35178 .digest = "\x13\xd9\x29\x2b",
35179 },
35180 {
35181 .key = "\x80\xea\xd3\xf1",
35182 .ksize = 4,
35183 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
35184 "\x31\x32\x33\x34\x35\x36\x37\x38"
35185 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
35186 "\x41\x42\x43\x44\x45\x46\x47\x48"
35187 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
35188 .psize = 40,
35189 .digest = "\x0c\xb5\xe2\xa2",
35190 },
35191 {
35192 .key = "\xf3\x4a\x1d\x5d",
35193 .ksize = 4,
35194 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
35195 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
35196 "\x61\x62\x63\x64\x65\x66\x67\x68"
35197 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
35198 "\x71\x72\x73\x74\x75\x76\x77\x78",
35199 .psize = 40,
35200 .digest = "\xd1\x7f\xfb\xa6",
35201 },
35202 {
35203 .key = "\x2e\x80\x04\x59",
35204 .ksize = 4,
35205 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
35206 "\x81\x82\x83\x84\x85\x86\x87\x88"
35207 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
35208 "\x91\x92\x93\x94\x95\x96\x97\x98"
35209 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
35210 .psize = 40,
35211 .digest = "\x59\x33\xe6\x7a",
35212 },
35213 {
35214 .key = "\xa6\xcc\x19\x85",
35215 .ksize = 4,
35216 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
35217 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
35218 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
35219 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
35220 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
35221 .psize = 40,
35222 .digest = "\xbe\x03\x01\xd2",
35223 },
35224 {
35225 .key = "\x41\xfc\xfe\x2d",
35226 .ksize = 4,
35227 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
35228 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
35229 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
35230 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
35231 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
35232 .psize = 40,
35233 .digest = "\x75\xd3\xc5\x24",
35234 },
35235 {
35236 .key = "\xff\xff\xff\xff",
35237 .ksize = 4,
35238 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
35239 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
35240 "\x11\x12\x13\x14\x15\x16\x17\x18"
35241 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
35242 "\x21\x22\x23\x24\x25\x26\x27\x28"
35243 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
35244 "\x31\x32\x33\x34\x35\x36\x37\x38"
35245 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
35246 "\x41\x42\x43\x44\x45\x46\x47\x48"
35247 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
35248 "\x51\x52\x53\x54\x55\x56\x57\x58"
35249 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
35250 "\x61\x62\x63\x64\x65\x66\x67\x68"
35251 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
35252 "\x71\x72\x73\x74\x75\x76\x77\x78"
35253 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
35254 "\x81\x82\x83\x84\x85\x86\x87\x88"
35255 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
35256 "\x91\x92\x93\x94\x95\x96\x97\x98"
35257 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
35258 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
35259 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
35260 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
35261 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
35262 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
35263 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
35264 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
35265 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
35266 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
35267 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
35268 .psize = 240,
35269 .digest = "\x75\xd3\xc5\x24",
35270 .np = 2,
35271 .tap = { 31, 209 }
Jussi Kivilinna6726ec42012-11-13 12:02:30 +020035272 }, {
35273 .key = "\xff\xff\xff\xff",
35274 .ksize = 4,
35275 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
35276 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
35277 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
35278 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
35279 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
35280 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
35281 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
35282 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
35283 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
35284 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
35285 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
35286 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
35287 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
35288 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
35289 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
35290 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
35291 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
35292 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
35293 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
35294 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
35295 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
35296 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
35297 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
35298 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
35299 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
35300 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
35301 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
35302 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
35303 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
35304 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
35305 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
35306 "\x47\xde\x75\x0c\x80\x17\xae\x22"
35307 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
35308 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
35309 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
35310 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
35311 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
35312 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
35313 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
35314 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
35315 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
35316 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
35317 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
35318 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
35319 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
35320 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
35321 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
35322 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
35323 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
35324 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
35325 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
35326 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
35327 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
35328 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
35329 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
35330 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
35331 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
35332 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
35333 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
35334 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
35335 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
35336 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
35337 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
35338 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
35339 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
35340 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
35341 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
35342 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
35343 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
35344 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
35345 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
35346 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
35347 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
35348 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
35349 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
35350 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
35351 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
35352 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
35353 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
35354 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
35355 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
35356 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
35357 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
35358 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
35359 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
35360 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
35361 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
35362 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
35363 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
35364 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
35365 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
35366 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
35367 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
35368 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
35369 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
35370 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
35371 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
35372 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
35373 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
35374 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
35375 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
35376 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
35377 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
35378 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
35379 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
35380 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
35381 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
35382 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
35383 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
35384 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
35385 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
35386 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
35387 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
35388 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
35389 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
35390 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
35391 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
35392 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
35393 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
35394 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
35395 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
35396 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
35397 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
35398 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
35399 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
35400 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
35401 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
35402 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
35403 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
35404 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
35405 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
35406 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
35407 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
35408 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
35409 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
35410 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
35411 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
35412 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
35413 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
35414 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
35415 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
35416 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
35417 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
35418 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
35419 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
35420 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
35421 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
35422 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
35423 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
35424 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
35425 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
35426 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
35427 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
35428 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
35429 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
35430 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
35431 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
35432 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
35433 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
35434 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
35435 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
35436 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
35437 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
35438 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
35439 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
35440 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
35441 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
35442 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
35443 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
35444 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
35445 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
35446 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
35447 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
35448 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
35449 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
35450 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
35451 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
35452 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
35453 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
35454 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
35455 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
35456 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
35457 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
35458 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
35459 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
35460 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
35461 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
35462 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
35463 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
35464 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
35465 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
35466 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
35467 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
35468 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
35469 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
35470 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
35471 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
35472 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
35473 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
35474 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
35475 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
35476 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
35477 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
35478 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
35479 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
35480 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
35481 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
35482 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
35483 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
35484 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
35485 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
35486 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
35487 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
35488 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
35489 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
35490 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
35491 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
35492 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
35493 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
35494 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
35495 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
35496 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
35497 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
35498 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
35499 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
35500 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
35501 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
35502 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
35503 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
35504 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
35505 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
35506 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
35507 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
35508 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
35509 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
35510 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
35511 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
35512 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
35513 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
35514 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
35515 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
35516 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
35517 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
35518 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
35519 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
35520 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
35521 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
35522 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
35523 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
35524 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
35525 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
35526 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
35527 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
35528 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
35529 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
35530 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
35531 .psize = 2048,
35532 .digest = "\xec\x26\x4d\x95",
35533 }
Herbert Xuda7f0332008-07-31 17:08:25 +080035534};
35535
Eric Biggersb13b1e02017-02-24 15:46:59 -080035536static const struct comp_testvec lz4_comp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020035537 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080035538 .inlen = 255,
35539 .outlen = 218,
35540 .input = "LZ4 is lossless compression algorithm, providing"
35541 " compression speed at 400 MB/s per core, scalable "
35542 "with multi-cores CPU. It features an extremely fast "
35543 "decoder, with speed in multiple GB/s per core, "
35544 "typically reaching RAM speed limits on multi-core "
35545 "systems.",
35546 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
35547 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
35548 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
35549 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
35550 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
35551 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
35552 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
35553 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
35554 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
35555 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
35556 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
35557 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
35558 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
35559 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
35560 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
35561 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
35562 "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
35563
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020035564 },
35565};
35566
Eric Biggersb13b1e02017-02-24 15:46:59 -080035567static const struct comp_testvec lz4_decomp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020035568 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080035569 .inlen = 218,
35570 .outlen = 255,
35571 .input = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
35572 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
35573 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
35574 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
35575 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
35576 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
35577 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
35578 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
35579 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
35580 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
35581 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
35582 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
35583 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
35584 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
35585 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
35586 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
35587 "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
35588 .output = "LZ4 is lossless compression algorithm, providing"
35589 " compression speed at 400 MB/s per core, scalable "
35590 "with multi-cores CPU. It features an extremely fast "
35591 "decoder, with speed in multiple GB/s per core, "
35592 "typically reaching RAM speed limits on multi-core "
35593 "systems.",
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020035594 },
35595};
35596
Eric Biggersb13b1e02017-02-24 15:46:59 -080035597static const struct comp_testvec lz4hc_comp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020035598 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080035599 .inlen = 255,
35600 .outlen = 216,
35601 .input = "LZ4 is lossless compression algorithm, providing"
35602 " compression speed at 400 MB/s per core, scalable "
35603 "with multi-cores CPU. It features an extremely fast "
35604 "decoder, with speed in multiple GB/s per core, "
35605 "typically reaching RAM speed limits on multi-core "
35606 "systems.",
35607 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
35608 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
35609 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
35610 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
35611 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
35612 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
35613 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
35614 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
35615 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
35616 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
35617 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
35618 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
35619 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
35620 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
35621 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
35622 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
35623 "\x73\x79\x73\x74\x65\x6d\x73\x2e",
35624
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020035625 },
35626};
35627
Eric Biggersb13b1e02017-02-24 15:46:59 -080035628static const struct comp_testvec lz4hc_decomp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020035629 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080035630 .inlen = 216,
35631 .outlen = 255,
35632 .input = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
35633 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
35634 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
35635 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
35636 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
35637 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
35638 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
35639 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
35640 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
35641 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
35642 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
35643 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
35644 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
35645 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
35646 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
35647 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
35648 "\x73\x79\x73\x74\x65\x6d\x73\x2e",
35649 .output = "LZ4 is lossless compression algorithm, providing"
35650 " compression speed at 400 MB/s per core, scalable "
35651 "with multi-cores CPU. It features an extremely fast "
35652 "decoder, with speed in multiple GB/s per core, "
35653 "typically reaching RAM speed limits on multi-core "
35654 "systems.",
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020035655 },
35656};
35657
Nick Terrelld28fc3d2018-03-30 12:14:53 -070035658static const struct comp_testvec zstd_comp_tv_template[] = {
35659 {
35660 .inlen = 68,
35661 .outlen = 39,
35662 .input = "The algorithm is zstd. "
35663 "The algorithm is zstd. "
35664 "The algorithm is zstd.",
35665 .output = "\x28\xb5\x2f\xfd\x00\x50\xf5\x00\x00\xb8\x54\x68\x65"
35666 "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
35667 "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
35668 ,
35669 },
35670 {
35671 .inlen = 244,
35672 .outlen = 151,
35673 .input = "zstd, short for Zstandard, is a fast lossless "
35674 "compression algorithm, targeting real-time "
35675 "compression scenarios at zlib-level and better "
35676 "compression ratios. The zstd compression library "
35677 "provides in-memory compression and decompression "
35678 "functions.",
35679 .output = "\x28\xb5\x2f\xfd\x00\x50\x75\x04\x00\x42\x4b\x1e\x17"
35680 "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
35681 "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
35682 "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
35683 "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
35684 "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
35685 "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
35686 "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
35687 "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
35688 "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
35689 "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
35690 "\x20\xa9\x0e\x82\xb9\x43\x45\x01",
35691 },
35692};
35693
35694static const struct comp_testvec zstd_decomp_tv_template[] = {
35695 {
35696 .inlen = 43,
35697 .outlen = 68,
35698 .input = "\x28\xb5\x2f\xfd\x04\x50\xf5\x00\x00\xb8\x54\x68\x65"
35699 "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
35700 "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
35701 "\x6b\xf4\x13\x35",
35702 .output = "The algorithm is zstd. "
35703 "The algorithm is zstd. "
35704 "The algorithm is zstd.",
35705 },
35706 {
35707 .inlen = 155,
35708 .outlen = 244,
35709 .input = "\x28\xb5\x2f\xfd\x04\x50\x75\x04\x00\x42\x4b\x1e\x17"
35710 "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
35711 "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
35712 "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
35713 "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
35714 "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
35715 "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
35716 "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
35717 "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
35718 "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
35719 "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
35720 "\x20\xa9\x0e\x82\xb9\x43\x45\x01\xaa\x6d\xda\x0d",
35721 .output = "zstd, short for Zstandard, is a fast lossless "
35722 "compression algorithm, targeting real-time "
35723 "compression scenarios at zlib-level and better "
35724 "compression ratios. The zstd compression library "
35725 "provides in-memory compression and decompression "
35726 "functions.",
35727 },
35728};
Herbert Xuda7f0332008-07-31 17:08:25 +080035729#endif /* _CRYPTO_TESTMGR_H */