blob: df0dc44a9b7be250606b4004fade6019fb31c078 [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
Horia Geanta29b77e52014-07-23 11:59:38 +030030#define MAX_KEYLEN 160
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;
Herbert Xuda7f0332008-07-31 17:08:25 +080038 unsigned char tap[MAX_TAP];
Jussi Kivilinna6726ec42012-11-13 12:02:30 +020039 unsigned short psize;
Herbert Xuda7f0332008-07-31 17:08:25 +080040 unsigned char np;
41 unsigned char ksize;
42};
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
5712/*
Herbert Xuda7f0332008-07-31 17:08:25 +08005713 * DES test vectors.
5714 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005715static const struct cipher_testvec des_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08005716 { /* From Applied Cryptography */
5717 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5718 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005719 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5720 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5721 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08005722 }, { /* Same key, different plaintext block */
5723 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5724 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005725 .ptext = "\x22\x33\x44\x55\x66\x77\x88\x99",
5726 .ctext = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
5727 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08005728 }, { /* Sbox test from NBS */
5729 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
5730 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005731 .ptext = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
5732 .ctext = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
5733 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08005734 }, { /* Three blocks */
5735 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5736 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005737 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08005738 "\x22\x33\x44\x55\x66\x77\x88\x99"
5739 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005740 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08005741 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5742 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005743 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08005744 }, { /* Weak key */
David Howells09e21782015-04-28 15:36:36 +01005745 .fail = true,
Herbert Xuda7f0332008-07-31 17:08:25 +08005746 .wk = 1,
5747 .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
5748 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005749 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5750 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5751 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08005752 }, { /* Two blocks -- for testing encryption across pages */
5753 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5754 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005755 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08005756 "\x22\x33\x44\x55\x66\x77\x88\x99",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005757 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08005758 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005759 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08005760 .np = 2,
5761 .tap = { 8, 8 }
Eric Biggers097012e2018-05-20 22:50:25 -07005762 }, {
5763 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5764 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005765 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Eric Biggers097012e2018-05-20 22:50:25 -07005766 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005767 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Eric Biggers097012e2018-05-20 22:50:25 -07005768 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005769 .len = 16,
Eric Biggers097012e2018-05-20 22:50:25 -07005770 .np = 2,
5771 .tap = { 8, 8 }
5772 }, {
5773 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5774 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005775 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Eric Biggers097012e2018-05-20 22:50:25 -07005776 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005777 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Eric Biggers097012e2018-05-20 22:50:25 -07005778 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005779 .len = 16,
Eric Biggers097012e2018-05-20 22:50:25 -07005780 .np = 3,
5781 .tap = { 3, 12, 1 }
Herbert Xuda7f0332008-07-31 17:08:25 +08005782 }, { /* Four blocks -- for testing encryption with chunking */
5783 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5784 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005785 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08005786 "\x22\x33\x44\x55\x66\x77\x88\x99"
5787 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
5788 "\x22\x33\x44\x55\x66\x77\x88\x99",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005789 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08005790 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5791 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
5792 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005793 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +08005794 .np = 3,
5795 .tap = { 14, 10, 8 }
5796 }, {
5797 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5798 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005799 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08005800 "\x22\x33\x44\x55\x66\x77\x88\x99"
5801 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005802 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08005803 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
5804 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005805 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08005806 .np = 4,
5807 .tap = { 2, 1, 3, 18 }
5808 }, {
5809 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5810 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005811 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08005812 "\x22\x33\x44\x55\x66\x77\x88\x99",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005813 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08005814 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005815 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08005816 .np = 5,
5817 .tap = { 2, 2, 2, 2, 8 }
5818 }, {
5819 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5820 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005821 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
5822 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
5823 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08005824 .np = 8,
5825 .tap = { 1, 1, 1, 1, 1, 1, 1, 1 }
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03005826 }, { /* Generated with Crypto++ */
5827 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5828 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005829 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03005830 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5831 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5832 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5833 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5834 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5835 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5836 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5837 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5838 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5839 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5840 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5841 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5842 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5843 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5844 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5845 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5846 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5847 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5848 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5849 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5850 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5851 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5852 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5853 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5854 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5855 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5856 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5857 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5858 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5859 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005860 .ctext = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03005861 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
5862 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
5863 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
5864 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
5865 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
5866 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
5867 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
5868 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
5869 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
5870 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
5871 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
5872 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
5873 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
5874 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
5875 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
5876 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
5877 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
5878 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
5879 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
5880 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
5881 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
5882 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
5883 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
5884 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
5885 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
5886 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
5887 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
5888 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
5889 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
5890 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005891 .len = 248,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03005892 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02005893 .np = 3,
5894 .tap = { 248 - 10, 2, 8 },
Herbert Xuda7f0332008-07-31 17:08:25 +08005895 },
5896};
5897
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005898static const struct cipher_testvec des_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08005899 { /* From OpenSSL */
5900 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5901 .klen = 8,
5902 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005903 .ptext = "\x37\x36\x35\x34\x33\x32\x31\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +08005904 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5905 "\x68\x65\x20\x74\x69\x6d\x65\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005906 .ctext = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
Herbert Xuda7f0332008-07-31 17:08:25 +08005907 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5908 "\x46\x8e\x91\x15\x78\x88\xba\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005909 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08005910 }, { /* FIPS Pub 81 */
5911 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5912 .klen = 8,
5913 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005914 .ptext = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
5915 .ctext = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
5916 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08005917 }, {
5918 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5919 .klen = 8,
5920 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005921 .ptext = "\x68\x65\x20\x74\x69\x6d\x65\x20",
5922 .ctext = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
5923 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08005924 }, {
5925 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5926 .klen = 8,
5927 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005928 .ptext = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
5929 .ctext = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
5930 .len = 8,
Eric Biggers17880f12018-05-20 22:50:26 -07005931 .np = 2,
5932 .tap = { 4, 4 },
5933 .also_non_np = 1,
Herbert Xuda7f0332008-07-31 17:08:25 +08005934 }, { /* Copy of openssl vector for chunk testing */
5935 /* From OpenSSL */
5936 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
5937 .klen = 8,
5938 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005939 .ptext = "\x37\x36\x35\x34\x33\x32\x31\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +08005940 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
5941 "\x68\x65\x20\x74\x69\x6d\x65\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005942 .ctext = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
Herbert Xuda7f0332008-07-31 17:08:25 +08005943 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
5944 "\x46\x8e\x91\x15\x78\x88\xba\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005945 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08005946 .np = 2,
5947 .tap = { 13, 11 }
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03005948 }, { /* Generated with Crypto++ */
5949 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
5950 .klen = 8,
5951 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005952 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03005953 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
5954 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
5955 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
5956 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
5957 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
5958 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
5959 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
5960 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
5961 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
5962 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
5963 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
5964 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
5965 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
5966 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
5967 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
5968 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
5969 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
5970 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
5971 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
5972 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
5973 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
5974 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
5975 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
5976 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
5977 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
5978 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
5979 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
5980 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
5981 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
5982 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07005983 .ctext = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03005984 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
5985 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
5986 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
5987 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
5988 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
5989 "\x81\x72\x74\xDE\x30\x19\x69\x49"
5990 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
5991 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
5992 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
5993 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
5994 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
5995 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
5996 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
5997 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
5998 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
5999 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
6000 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
6001 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
6002 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
6003 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
6004 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
6005 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
6006 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
6007 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
6008 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
6009 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
6010 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
6011 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
6012 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
6013 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006014 .len = 248,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03006015 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02006016 .np = 3,
6017 .tap = { 248 - 10, 2, 8 },
Herbert Xuda7f0332008-07-31 17:08:25 +08006018 },
6019};
6020
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006021static const struct cipher_testvec des_ctr_tv_template[] = {
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03006022 { /* Generated with Crypto++ */
6023 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
6024 .klen = 8,
6025 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006026 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03006027 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
6028 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
6029 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
6030 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
6031 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
6032 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
6033 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
6034 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
6035 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
6036 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
6037 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
6038 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
6039 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
6040 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
6041 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
6042 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
6043 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
6044 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
6045 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
6046 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
6047 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
6048 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
6049 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
6050 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
6051 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
6052 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
6053 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
6054 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
6055 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
6056 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006057 .ctext = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03006058 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
6059 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
6060 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
6061 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
6062 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
6063 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
6064 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
6065 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
6066 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
6067 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
6068 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
6069 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
6070 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
6071 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
6072 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
6073 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
6074 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
6075 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
6076 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
6077 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
6078 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
6079 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
6080 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
6081 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
6082 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
6083 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
6084 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
6085 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
6086 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
6087 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006088 .len = 248,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03006089 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02006090 .np = 3,
6091 .tap = { 248 - 10, 2, 8 },
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03006092 }, { /* Generated with Crypto++ */
6093 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
6094 .klen = 8,
6095 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006096 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03006097 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
6098 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
6099 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
6100 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
6101 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
6102 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
6103 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
6104 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
6105 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
6106 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
6107 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
6108 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
6109 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
6110 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
6111 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
6112 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
6113 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
6114 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
6115 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
6116 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
6117 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
6118 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
6119 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
6120 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
6121 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
6122 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
6123 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
6124 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
6125 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
6126 "\xC6\x2F\xBB\x24\x8D\x19\x82",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006127 .ctext = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03006128 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
6129 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
6130 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
6131 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
6132 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
6133 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
6134 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
6135 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
6136 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
6137 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
6138 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
6139 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
6140 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
6141 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
6142 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
6143 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
6144 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
6145 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
6146 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
6147 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
6148 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
6149 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
6150 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
6151 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
6152 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
6153 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
6154 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
6155 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
6156 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
6157 "\x91\x45\x05\x3E\x58\xBF\x32",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006158 .len = 247,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03006159 .also_non_np = 1,
6160 .np = 2,
6161 .tap = { 247 - 8, 8 },
6162 },
6163};
6164
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006165static const struct cipher_testvec des3_ede_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08006166 { /* These are from openssl */
6167 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6168 "\x55\x55\x55\x55\x55\x55\x55\x55"
6169 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6170 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006171 .ptext = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
6172 .ctext = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
6173 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006174 }, {
6175 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
6176 "\x86\x02\x87\x66\x59\x08\x21\x98"
6177 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
6178 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006179 .ptext = "\x73\x71\x75\x69\x67\x67\x6c\x65",
6180 .ctext = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
6181 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006182 }, {
6183 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
6184 "\x91\x07\xd0\x15\x89\x19\x01\x01"
6185 "\x19\x07\x92\x10\x98\x1a\x01\x01",
6186 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006187 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
6188 .ctext = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
6189 .len = 8,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006190 }, { /* Generated with Crypto++ */
6191 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
6192 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
6193 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
6194 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006195 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006196 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6197 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6198 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6199 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6200 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6201 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6202 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6203 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6204 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6205 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6206 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6207 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6208 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6209 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6210 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6211 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6212 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6213 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6214 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6215 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6216 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6217 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6218 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6219 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6220 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6221 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6222 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6223 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6224 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6225 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6226 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6227 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6228 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6229 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6230 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6231 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6232 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6233 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6234 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6235 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6236 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6237 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6238 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6239 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6240 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6241 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6242 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6243 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6244 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6245 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6246 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6247 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6248 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6249 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6250 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6251 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6252 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6253 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6254 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6255 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6256 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006257 .ctext = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006258 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
6259 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
6260 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
6261 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
6262 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
6263 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
6264 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
6265 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
6266 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
6267 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
6268 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
6269 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
6270 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
6271 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
6272 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
6273 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
6274 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
6275 "\x45\x86\x50\x01\x70\x35\x99\x92"
6276 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
6277 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
6278 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
6279 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
6280 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
6281 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
6282 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
6283 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
6284 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
6285 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
6286 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
6287 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
6288 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
6289 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
6290 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
6291 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
6292 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
6293 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
6294 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
6295 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
6296 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
6297 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
6298 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
6299 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
6300 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
6301 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
6302 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
6303 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
6304 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
6305 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
6306 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
6307 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
6308 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
6309 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
6310 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
6311 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
6312 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
6313 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
6314 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
6315 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
6316 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
6317 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
6318 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006319 .len = 496,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006320 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02006321 .np = 3,
6322 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08006323 },
6324};
6325
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006326static const struct cipher_testvec des3_ede_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08006327 { /* Generated from openssl */
6328 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
6329 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
6330 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
6331 .klen = 24,
6332 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006333 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Herbert Xuda7f0332008-07-31 17:08:25 +08006334 "\x53\x20\x63\x65\x65\x72\x73\x74"
6335 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
6336 "\x20\x79\x65\x53\x72\x63\x74\x65"
6337 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
6338 "\x79\x6e\x53\x20\x63\x65\x65\x72"
6339 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
6340 "\x6e\x61\x20\x79\x65\x53\x72\x63"
6341 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
6342 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
6343 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
6344 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
6345 "\x72\x63\x74\x65\x20\x73\x6f\x54"
6346 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
6347 "\x63\x65\x65\x72\x73\x74\x54\x20"
6348 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006349 .ctext = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
Herbert Xuda7f0332008-07-31 17:08:25 +08006350 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
6351 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
6352 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
6353 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
6354 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
6355 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
6356 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
6357 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
6358 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
6359 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
6360 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
6361 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
6362 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
6363 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
6364 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006365 .len = 128,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006366 }, { /* Generated with Crypto++ */
6367 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6368 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6369 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6370 .klen = 24,
6371 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6372 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006373 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006374 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6375 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6376 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6377 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6378 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6379 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6380 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6381 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6382 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6383 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6384 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6385 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6386 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6387 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6388 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6389 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6390 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6391 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6392 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6393 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6394 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6395 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6396 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6397 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6398 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6399 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6400 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6401 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6402 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6403 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6404 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6405 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6406 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6407 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6408 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6409 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6410 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6411 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6412 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6413 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6414 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6415 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6416 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6417 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6418 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6419 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6420 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6421 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6422 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6423 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6424 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6425 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6426 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6427 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6428 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6429 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6430 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6431 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6432 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6433 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6434 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006435 .ctext = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006436 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
6437 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
6438 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
6439 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
6440 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
6441 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
6442 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
6443 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
6444 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
6445 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
6446 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
6447 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
6448 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
6449 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
6450 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
6451 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
6452 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
6453 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
6454 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
6455 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
6456 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
6457 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
6458 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
6459 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
6460 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
6461 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
6462 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
6463 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
6464 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
6465 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
6466 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
6467 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
6468 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
6469 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
6470 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
6471 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
6472 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
6473 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
6474 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
6475 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
6476 "\x73\x50\x08\x56\x20\x9B\x94\x23"
6477 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
6478 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
6479 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
6480 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
6481 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
6482 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
6483 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
6484 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
6485 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
6486 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
6487 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
6488 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
6489 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
6490 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
6491 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
6492 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
6493 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
6494 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
6495 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
6496 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006497 .len = 496,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006498 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02006499 .np = 3,
6500 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08006501 },
6502};
6503
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006504static const struct cipher_testvec des3_ede_ctr_tv_template[] = {
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006505 { /* Generated with Crypto++ */
6506 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6507 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6508 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6509 .klen = 24,
6510 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
6511 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006512 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006513 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6514 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6515 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6516 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6517 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6518 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6519 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6520 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6521 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6522 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6523 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6524 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6525 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6526 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6527 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6528 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6529 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6530 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6531 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6532 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6533 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6534 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6535 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6536 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6537 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6538 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6539 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6540 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6541 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6542 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6543 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6544 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6545 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6546 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6547 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6548 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6549 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6550 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6551 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6552 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6553 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6554 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6555 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6556 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6557 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6558 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6559 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6560 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6561 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6562 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6563 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6564 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6565 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6566 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6567 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6568 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6569 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6570 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6571 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6572 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6573 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006574 .ctext = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006575 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
6576 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
6577 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
6578 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
6579 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
6580 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
6581 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
6582 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
6583 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
6584 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
6585 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
6586 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
6587 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
6588 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
6589 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
6590 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
6591 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
6592 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
6593 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
6594 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
6595 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
6596 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
6597 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
6598 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
6599 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
6600 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
6601 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
6602 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
6603 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
6604 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
6605 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
6606 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
6607 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
6608 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
6609 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
6610 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
6611 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
6612 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
6613 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
6614 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
6615 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
6616 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
6617 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
6618 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
6619 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
6620 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
6621 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
6622 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
6623 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
6624 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
6625 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
6626 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
6627 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
6628 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
6629 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
6630 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
6631 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
6632 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
6633 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
6634 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
6635 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006636 .len = 496,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006637 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02006638 .np = 3,
6639 .tap = { 496 - 20, 4, 16 },
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006640 }, { /* Generated with Crypto++ */
6641 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
6642 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
6643 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
6644 .klen = 24,
6645 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
6646 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006647 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006648 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
6649 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
6650 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
6651 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
6652 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
6653 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
6654 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
6655 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
6656 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
6657 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
6658 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
6659 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
6660 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
6661 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
6662 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
6663 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
6664 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
6665 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
6666 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
6667 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
6668 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
6669 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
6670 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
6671 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
6672 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
6673 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
6674 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
6675 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
6676 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
6677 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
6678 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
6679 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
6680 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
6681 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
6682 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
6683 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
6684 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
6685 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
6686 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
6687 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
6688 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
6689 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
6690 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
6691 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
6692 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
6693 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
6694 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
6695 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
6696 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
6697 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
6698 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
6699 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
6700 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
6701 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
6702 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
6703 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
6704 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
6705 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
6706 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
6707 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
6708 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
6709 "\x2E\xB1\x18",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006710 .ctext = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006711 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
6712 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
6713 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
6714 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
6715 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
6716 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
6717 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
6718 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
6719 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
6720 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
6721 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
6722 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
6723 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
6724 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
6725 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
6726 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
6727 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
6728 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
6729 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
6730 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
6731 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
6732 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
6733 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
6734 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
6735 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
6736 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
6737 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
6738 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
6739 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
6740 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
6741 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
6742 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
6743 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
6744 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
6745 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
6746 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
6747 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
6748 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
6749 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
6750 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
6751 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
6752 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
6753 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
6754 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
6755 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
6756 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
6757 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
6758 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
6759 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
6760 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
6761 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
6762 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
6763 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
6764 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
6765 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
6766 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
6767 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
6768 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
6769 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
6770 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
6771 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
6772 "\xF2\x79\xD9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006773 .len = 499,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03006774 .also_non_np = 1,
6775 .np = 2,
6776 .tap = { 499 - 16, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08006777 },
6778};
6779
6780/*
6781 * Blowfish test vectors.
6782 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006783static const struct cipher_testvec bf_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08006784 { /* DES test vectors from OpenSSL */
6785 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
6786 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006787 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
6788 .ctext = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
6789 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006790 }, {
6791 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
6792 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006793 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
6794 .ctext = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
6795 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006796 }, {
6797 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6798 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006799 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6800 .ctext = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
6801 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006802 }, { /* Vary the keylength... */
6803 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6804 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
6805 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006806 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6807 .ctext = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
6808 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006809 }, {
6810 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6811 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6812 "\x00\x11\x22\x33\x44",
6813 .klen = 21,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006814 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6815 .ctext = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
6816 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08006817 }, { /* Generated with bf488 */
6818 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
6819 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
6820 "\x00\x11\x22\x33\x44\x55\x66\x77"
6821 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
6822 "\x58\x40\x23\x64\x1a\xba\x61\x76"
6823 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
6824 "\xff\xff\xff\xff\xff\xff\xff\xff",
6825 .klen = 56,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006826 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
6827 .ctext = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
6828 .len = 8,
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03006829 }, { /* Generated with Crypto++ */
6830 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6831 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6832 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6833 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6834 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006835 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03006836 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6837 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6838 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03006839 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6840 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6841 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6842 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6843 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6844 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
6845 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
6846 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
6847 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
6848 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
6849 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
6850 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
6851 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
6852 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
6853 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
6854 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
6855 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
6856 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
6857 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
6858 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
6859 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
6860 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
6861 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
6862 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
6863 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
6864 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
6865 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
6866 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
6867 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
6868 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
6869 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
6870 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
6871 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
6872 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
6873 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
6874 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
6875 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
6876 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
6877 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
6878 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
6879 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
6880 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
6881 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
6882 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
6883 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
6884 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
6885 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
6886 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
6887 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
6888 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
6889 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
6890 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
6891 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
6892 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
6893 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
6894 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
6895 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
6896 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
6897 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006898 .ctext = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03006899 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
6900 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
6901 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03006902 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
6903 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
6904 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
6905 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
6906 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
6907 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
6908 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
6909 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
6910 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
6911 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
6912 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
6913 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
6914 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
6915 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
6916 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
6917 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
6918 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
6919 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
6920 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
6921 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
6922 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
6923 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
6924 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
6925 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
6926 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
6927 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
6928 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
6929 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
6930 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
6931 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
6932 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
6933 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
6934 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
6935 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
6936 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
6937 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
6938 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
6939 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
6940 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
6941 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
6942 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
6943 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
6944 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
6945 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
6946 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
6947 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
6948 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
6949 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
6950 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
6951 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
6952 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
6953 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
6954 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
6955 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
6956 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
6957 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
6958 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
6959 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
6960 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006961 .len = 504,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03006962 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02006963 .np = 3,
6964 .tap = { 504 - 10, 2, 8 },
Herbert Xuda7f0332008-07-31 17:08:25 +08006965 },
6966};
6967
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006968static const struct cipher_testvec bf_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08006969 { /* From OpenSSL */
6970 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
6971 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
6972 .klen = 16,
6973 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006974 .ptext = "\x37\x36\x35\x34\x33\x32\x31\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +08006975 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
6976 "\x68\x65\x20\x74\x69\x6d\x65\x20"
6977 "\x66\x6f\x72\x20\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006978 .ctext = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
Herbert Xuda7f0332008-07-31 17:08:25 +08006979 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
6980 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
6981 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006982 .len = 32,
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03006983 }, { /* Generated with Crypto++ */
6984 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
6985 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
6986 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
6987 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
6988 .klen = 32,
6989 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07006990 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03006991 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
6992 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
6993 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03006994 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
6995 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
6996 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
6997 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
6998 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
6999 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7000 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7001 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7002 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7003 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7004 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7005 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7006 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7007 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7008 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7009 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7010 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7011 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7012 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7013 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7014 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7015 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7016 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7017 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7018 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7019 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7020 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7021 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7022 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7023 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7024 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7025 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7026 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7027 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7028 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7029 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7030 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7031 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7032 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7033 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7034 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7035 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7036 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7037 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7038 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7039 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7040 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7041 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7042 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7043 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7044 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7045 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7046 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7047 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7048 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7049 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7050 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7051 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7052 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007053 .ctext = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03007054 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
7055 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
7056 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03007057 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
7058 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
7059 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
7060 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
7061 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
7062 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
7063 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
7064 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
7065 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
7066 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
7067 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
7068 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
7069 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
7070 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
7071 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
7072 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
7073 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
7074 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
7075 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
7076 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
7077 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
7078 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
7079 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
7080 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
7081 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
7082 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
7083 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
7084 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
7085 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
7086 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
7087 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
7088 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
7089 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
7090 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
7091 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
7092 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
7093 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
7094 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
7095 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
7096 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
7097 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
7098 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
7099 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
7100 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
7101 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
7102 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
7103 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
7104 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
7105 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
7106 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
7107 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
7108 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
7109 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
7110 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
7111 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
7112 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
7113 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
7114 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
7115 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007116 .len = 504,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03007117 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02007118 .np = 3,
7119 .tap = { 504 - 10, 2, 8 },
Herbert Xuda7f0332008-07-31 17:08:25 +08007120 },
7121};
7122
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007123static const struct cipher_testvec bf_ctr_tv_template[] = {
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03007124 { /* Generated with Crypto++ */
7125 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7126 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7127 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7128 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7129 .klen = 32,
7130 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007131 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03007132 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7133 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7134 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03007135 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7136 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7137 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7138 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7139 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7140 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7141 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7142 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7143 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7144 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7145 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7146 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7147 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7148 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7149 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7150 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7151 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7152 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7153 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7154 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7155 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7156 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7157 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7158 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7159 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7160 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7161 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7162 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7163 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7164 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7165 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7166 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7167 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7168 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7169 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7170 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7171 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7172 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7173 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7174 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7175 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7176 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7177 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7178 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7179 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7180 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7181 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7182 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7183 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7184 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7185 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7186 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7187 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7188 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7189 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7190 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7191 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7192 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7193 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007194 .ctext = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03007195 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7196 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7197 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03007198 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
7199 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7200 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7201 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7202 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7203 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7204 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7205 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7206 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7207 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7208 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7209 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7210 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7211 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7212 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7213 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7214 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7215 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7216 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7217 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7218 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7219 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7220 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7221 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7222 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7223 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7224 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7225 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7226 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7227 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7228 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7229 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7230 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7231 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7232 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7233 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7234 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7235 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7236 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7237 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7238 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7239 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7240 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7241 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7242 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7243 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7244 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7245 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7246 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7247 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7248 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7249 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7250 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7251 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7252 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7253 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7254 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7255 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7256 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007257 .len = 504,
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03007258 }, { /* Generated with Crypto++ */
7259 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7260 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7261 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7262 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7263 .klen = 32,
7264 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007265 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03007266 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7267 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7268 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7269 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03007270 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7271 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7272 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7273 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7274 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7275 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7276 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7277 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7278 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7279 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7280 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7281 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7282 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7283 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7284 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7285 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7286 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7287 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7288 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7289 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7290 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7291 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7292 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7293 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7294 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7295 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7296 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7297 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7298 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7299 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7300 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7301 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7302 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7303 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7304 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7305 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7306 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7307 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7308 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7309 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7310 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7311 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7312 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7313 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7314 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7315 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7316 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7317 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7318 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7319 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7320 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7321 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7322 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7323 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7324 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7325 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7326 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7327 "\x2B\xC2\x59\xF0\x64\xFB\x92",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007328 .ctext = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03007329 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
7330 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
7331 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
7332 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03007333 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
7334 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
7335 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
7336 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
7337 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
7338 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
7339 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
7340 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
7341 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
7342 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
7343 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
7344 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
7345 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
7346 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
7347 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
7348 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
7349 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
7350 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
7351 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
7352 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
7353 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
7354 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
7355 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
7356 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
7357 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
7358 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
7359 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
7360 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
7361 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
7362 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
7363 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
7364 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
7365 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
7366 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
7367 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
7368 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
7369 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
7370 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
7371 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
7372 "\x82\x63\x11\xB3\x54\x49\x00\x08"
7373 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
7374 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
7375 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
7376 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
7377 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
7378 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
7379 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
7380 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
7381 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
7382 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
7383 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
7384 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
7385 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
7386 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
7387 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
7388 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
7389 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
7390 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007391 .len = 503,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03007392 .also_non_np = 1,
7393 .np = 2,
Jussi Kivilinna963ae392012-10-20 14:52:52 +03007394 .tap = { 503 - 8, 8 },
Jussi Kivilinna549595a2012-09-19 09:42:59 +03007395 }, { /* Generated with Crypto++ */
7396 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7397 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7398 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7399 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7400 .klen = 32,
7401 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007402 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03007403 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7404 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7405 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7406 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7407 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7408 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
7409 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7410 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7411 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7412 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7413 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7414 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7415 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7416 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7417 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7418 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7419 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7420 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7421 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7422 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7423 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7424 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7425 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7426 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7427 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7428 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7429 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7430 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7431 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7432 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7433 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7434 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7435 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7436 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7437 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7438 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7439 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7440 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7441 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7442 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7443 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7444 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7445 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7446 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7447 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7448 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7449 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7450 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7451 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7452 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7453 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7454 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7455 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7456 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7457 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7458 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7459 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7460 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7461 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7462 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7463 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
7464 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007465 .ctext = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03007466 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
7467 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
7468 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
7469 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
7470 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
7471 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
7472 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
7473 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
7474 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
7475 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
7476 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
7477 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
7478 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
7479 "\x0B\x82\x59\x14\x26\x67\x08\x09"
7480 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
7481 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
7482 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
7483 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
7484 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
7485 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
7486 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
7487 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
7488 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
7489 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
7490 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
7491 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
7492 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
7493 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
7494 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
7495 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
7496 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
7497 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
7498 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
7499 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
7500 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
7501 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
7502 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
7503 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
7504 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
7505 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
7506 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
7507 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
7508 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
7509 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
7510 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
7511 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
7512 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
7513 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
7514 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
7515 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
7516 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
7517 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
7518 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
7519 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
7520 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
7521 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
7522 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
7523 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
7524 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
7525 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
7526 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
7527 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007528 .len = 504,
Herbert Xuda7f0332008-07-31 17:08:25 +08007529 },
7530};
7531
7532/*
7533 * Twofish test vectors.
7534 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007535static const struct cipher_testvec tf_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08007536 {
7537 .key = zeroed_string,
7538 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007539 .ptext = zeroed_string,
7540 .ctext = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +08007541 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007542 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08007543 }, {
7544 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7545 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
7546 "\x00\x11\x22\x33\x44\x55\x66\x77",
7547 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007548 .ptext = zeroed_string,
7549 .ctext = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
Herbert Xuda7f0332008-07-31 17:08:25 +08007550 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007551 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08007552 }, {
7553 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7554 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
7555 "\x00\x11\x22\x33\x44\x55\x66\x77"
7556 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
7557 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007558 .ptext = zeroed_string,
7559 .ctext = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +08007560 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007561 .len = 16,
Jussi Kivilinna573da622011-10-10 23:03:12 +03007562 }, { /* Generated with Crypto++ */
7563 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
7564 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
7565 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
7566 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
7567 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007568 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03007569 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7570 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7571 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7572 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7573 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7574 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02007575 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7576 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7577 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7578 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7579 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7580 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7581 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7582 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7583 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7584 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7585 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7586 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7587 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7588 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7589 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7590 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7591 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7592 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7593 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7594 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7595 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7596 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7597 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7598 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7599 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7600 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7601 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7602 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7603 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7604 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7605 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7606 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7607 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7608 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7609 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7610 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7611 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7612 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7613 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7614 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7615 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7616 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7617 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7618 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7619 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7620 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7621 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7622 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7623 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7624 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7625 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7626 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7627 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7628 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7629 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007630 .ctext = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
Jussi Kivilinna573da622011-10-10 23:03:12 +03007631 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
7632 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
7633 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
7634 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
7635 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
7636 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02007637 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
7638 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
7639 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
7640 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
7641 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
7642 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
7643 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
7644 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
7645 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
7646 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
7647 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
7648 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
7649 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
7650 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
7651 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
7652 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
7653 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
7654 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
7655 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
7656 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
7657 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
7658 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
7659 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
7660 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
7661 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
7662 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
7663 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
7664 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
7665 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
7666 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
7667 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
7668 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
7669 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
7670 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
7671 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
7672 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
7673 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
7674 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
7675 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
7676 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
7677 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
7678 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
7679 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
7680 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
7681 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
7682 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
7683 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
7684 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
7685 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
7686 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
7687 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
7688 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
7689 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
7690 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
7691 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007692 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03007693 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02007694 .np = 3,
7695 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08007696 },
7697};
7698
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007699static const struct cipher_testvec tf_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08007700 { /* Generated with Nettle */
7701 .key = zeroed_string,
7702 .klen = 16,
7703 .iv = zeroed_string,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007704 .ptext = zeroed_string,
7705 .ctext = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +08007706 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007707 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08007708 }, {
7709 .key = zeroed_string,
7710 .klen = 16,
7711 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
7712 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007713 .ptext = zeroed_string,
7714 .ctext = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
Herbert Xuda7f0332008-07-31 17:08:25 +08007715 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007716 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08007717 }, {
7718 .key = zeroed_string,
7719 .klen = 16,
7720 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7721 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007722 .ptext = zeroed_string,
7723 .ctext = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
Herbert Xuda7f0332008-07-31 17:08:25 +08007724 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007725 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08007726 }, {
7727 .key = zeroed_string,
7728 .klen = 16,
7729 .iv = zeroed_string,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007730 .ptext = zeroed_string,
7731 .ctext = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +08007732 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
7733 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
7734 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
7735 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
7736 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007737 .len = 48,
Jussi Kivilinna573da622011-10-10 23:03:12 +03007738 }, { /* Generated with Crypto++ */
7739 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7740 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7741 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7742 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7743 .klen = 32,
7744 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7745 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007746 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03007747 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7748 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7749 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7750 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7751 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7752 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02007753 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7754 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7755 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7756 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7757 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7758 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7759 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7760 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7761 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7762 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7763 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7764 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7765 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7766 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7767 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7768 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7769 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7770 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7771 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7772 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7773 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7774 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7775 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7776 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7777 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7778 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7779 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7780 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7781 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7782 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7783 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7784 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7785 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7786 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7787 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7788 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7789 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7790 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7791 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7792 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7793 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7794 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7795 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7796 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7797 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7798 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7799 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7800 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7801 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7802 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7803 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7804 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7805 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7806 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7807 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007808 .ctext = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
Jussi Kivilinna573da622011-10-10 23:03:12 +03007809 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
7810 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
7811 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
7812 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
7813 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
7814 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02007815 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
7816 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
7817 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
7818 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
7819 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
7820 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
7821 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
7822 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
7823 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
7824 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
7825 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
7826 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
7827 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
7828 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
7829 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
7830 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
7831 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
7832 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
7833 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
7834 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
7835 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
7836 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
7837 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
7838 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
7839 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
7840 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
7841 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
7842 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
7843 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
7844 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
7845 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
7846 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
7847 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
7848 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
7849 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
7850 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
7851 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
7852 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
7853 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
7854 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
7855 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
7856 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
7857 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
7858 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
7859 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
7860 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
7861 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
7862 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
7863 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
7864 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
7865 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
7866 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
7867 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
7868 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
7869 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007870 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03007871 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02007872 .np = 3,
7873 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08007874 },
7875};
7876
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007877static const struct cipher_testvec tf_ctr_tv_template[] = {
Jussi Kivilinna573da622011-10-10 23:03:12 +03007878 { /* Generated with Crypto++ */
7879 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
7880 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
7881 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
7882 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
7883 .klen = 32,
7884 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
7885 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007886 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03007887 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
7888 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
7889 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
7890 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
7891 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
7892 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02007893 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
7894 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
7895 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
7896 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
7897 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
7898 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
7899 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
7900 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
7901 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
7902 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
7903 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
7904 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
7905 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
7906 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
7907 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
7908 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
7909 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
7910 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
7911 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
7912 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
7913 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
7914 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
7915 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
7916 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
7917 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
7918 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
7919 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
7920 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
7921 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
7922 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
7923 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
7924 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
7925 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
7926 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
7927 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
7928 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
7929 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
7930 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
7931 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
7932 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
7933 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
7934 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
7935 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
7936 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
7937 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
7938 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
7939 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
7940 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
7941 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
7942 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
7943 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
7944 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
7945 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
7946 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
7947 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007948 .ctext = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
Jussi Kivilinna573da622011-10-10 23:03:12 +03007949 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
7950 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
7951 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
7952 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
7953 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
7954 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02007955 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
7956 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
7957 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
7958 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
7959 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
7960 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
7961 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
7962 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
7963 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
7964 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
7965 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
7966 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
7967 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
7968 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
7969 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
7970 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
7971 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
7972 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
7973 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
7974 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
7975 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
7976 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
7977 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
7978 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
7979 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
7980 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
7981 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
7982 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
7983 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
7984 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
7985 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
7986 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
7987 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
7988 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
7989 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
7990 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
7991 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
7992 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
7993 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
7994 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
7995 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
7996 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
7997 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
7998 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
7999 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
8000 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
8001 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
8002 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
8003 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
8004 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
8005 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
8006 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
8007 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
8008 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
8009 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008010 .len = 496,
Jussi Kivilinna573da622011-10-10 23:03:12 +03008011 }, { /* Generated with Crypto++ */
8012 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8013 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8014 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8015 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8016 .klen = 32,
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008017 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
8018 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008019 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008020 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8021 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8022 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8023 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8024 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8025 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8026 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8027 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8028 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8029 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8030 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8031 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8032 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8033 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8034 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8035 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8036 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8037 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8038 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8039 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8040 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8041 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8042 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8043 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8044 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8045 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8046 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8047 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8048 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8049 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8050 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8051 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8052 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8053 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8054 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8055 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8056 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8057 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8058 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8059 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8060 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8061 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8062 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8063 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8064 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8065 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8066 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8067 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8068 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8069 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8070 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8071 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8072 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8073 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8074 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8075 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8076 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8077 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8078 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8079 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8080 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008081 .ctext = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008082 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
8083 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
8084 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
8085 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
8086 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
8087 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
8088 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
8089 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
8090 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
8091 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
8092 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
8093 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
8094 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
8095 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
8096 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
8097 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
8098 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
8099 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
8100 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
8101 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
8102 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
8103 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
8104 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
8105 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
8106 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
8107 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
8108 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
8109 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
8110 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
8111 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
8112 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
8113 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
8114 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
8115 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
8116 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
8117 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
8118 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
8119 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
8120 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
8121 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
8122 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
8123 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
8124 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
8125 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
8126 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
8127 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
8128 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
8129 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
8130 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
8131 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
8132 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
8133 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
8134 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
8135 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
8136 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
8137 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
8138 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
8139 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
8140 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
8141 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
8142 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008143 .len = 496,
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008144 }, { /* Generated with Crypto++ */
8145 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8146 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8147 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8148 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8149 .klen = 32,
Jussi Kivilinna573da622011-10-10 23:03:12 +03008150 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
8151 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008152 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03008153 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8154 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8155 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8156 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8157 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8158 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8159 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02008160 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8161 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8162 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8163 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8164 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8165 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8166 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8167 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8168 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8169 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8170 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8171 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8172 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8173 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8174 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8175 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8176 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8177 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8178 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8179 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8180 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8181 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8182 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8183 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8184 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8185 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8186 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8187 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8188 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8189 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8190 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8191 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8192 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8193 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8194 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8195 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8196 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8197 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8198 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8199 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8200 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8201 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8202 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8203 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8204 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8205 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8206 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8207 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8208 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8209 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8210 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8211 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8212 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8213 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8214 "\x2B\xC2\x59",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008215 .ctext = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
Jussi Kivilinna573da622011-10-10 23:03:12 +03008216 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
8217 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
8218 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
8219 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
8220 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
8221 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
8222 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02008223 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
8224 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
8225 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
8226 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
8227 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
8228 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
8229 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
8230 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
8231 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
8232 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
8233 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
8234 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
8235 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
8236 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
8237 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
8238 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
8239 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
8240 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
8241 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
8242 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
8243 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
8244 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
8245 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
8246 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
8247 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
8248 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
8249 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
8250 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
8251 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
8252 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
8253 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
8254 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
8255 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
8256 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
8257 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
8258 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
8259 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
8260 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
8261 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
8262 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
8263 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
8264 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
8265 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
8266 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
8267 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
8268 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
8269 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
8270 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
8271 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
8272 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
8273 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
8274 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
8275 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
8276 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
8277 "\x6C\x82\x9D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008278 .len = 499,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03008279 .also_non_np = 1,
8280 .np = 2,
8281 .tap = { 499 - 16, 16 },
Jussi Kivilinna573da622011-10-10 23:03:12 +03008282 },
8283};
8284
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008285static const struct cipher_testvec tf_lrw_tv_template[] = {
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008286 /* Generated from AES-LRW test vectors */
8287 {
8288 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
8289 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
8290 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
8291 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
8292 .klen = 32,
8293 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8294 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008295 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008296 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008297 .ctext = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008298 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008299 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008300 }, {
8301 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
8302 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
8303 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
8304 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
8305 .klen = 32,
8306 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8307 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008308 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008309 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008310 .ctext = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008311 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008312 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008313 }, {
8314 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
8315 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
8316 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
8317 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
8318 .klen = 32,
8319 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8320 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008321 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008322 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008323 .ctext = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008324 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008325 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008326 }, {
8327 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
8328 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
8329 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
8330 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
8331 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
8332 .klen = 40,
8333 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8334 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008335 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008336 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008337 .ctext = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008338 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008339 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008340 }, {
8341 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
8342 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
8343 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
8344 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
8345 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
8346 .klen = 40,
8347 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8348 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008349 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008350 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008351 .ctext = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008352 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008353 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008354 }, {
8355 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8356 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8357 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8358 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8359 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8360 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8361 .klen = 48,
8362 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8363 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008364 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008365 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008366 .ctext = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008367 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008368 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008369 }, {
8370 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
8371 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
8372 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
8373 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
8374 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
8375 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
8376 .klen = 48,
8377 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8378 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008379 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008380 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008381 .ctext = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008382 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008383 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008384 }, {
8385 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
8386 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
8387 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
8388 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
8389 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
8390 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
8391 .klen = 48,
8392 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8393 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008394 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008395 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
8396 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
8397 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
8398 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
8399 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
8400 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
8401 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
8402 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
8403 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
8404 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
8405 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
8406 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
8407 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
8408 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
8409 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
8410 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
8411 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
8412 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
8413 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
8414 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
8415 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
8416 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
8417 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
8418 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
8419 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
8420 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
8421 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
8422 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
8423 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
8424 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
8425 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
8426 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
8427 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
8428 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
8429 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
8430 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
8431 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
8432 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
8433 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
8434 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
8435 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
8436 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
8437 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
8438 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
8439 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
8440 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
8441 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
8442 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
8443 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
8444 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
8445 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
8446 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
8447 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
8448 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
8449 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
8450 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
8451 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
8452 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
8453 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
8454 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
8455 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
8456 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
8457 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008458 .ctext = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008459 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
8460 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
8461 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
8462 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
8463 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
8464 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
8465 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
8466 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
8467 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
8468 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
8469 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
8470 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
8471 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
8472 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
8473 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
8474 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
8475 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
8476 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
8477 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
8478 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
8479 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
8480 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
8481 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
8482 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
8483 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
8484 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
8485 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
8486 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
8487 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
8488 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
8489 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
8490 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
8491 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
8492 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
8493 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
8494 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
8495 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
8496 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
8497 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
8498 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
8499 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
8500 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
8501 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
8502 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
8503 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
8504 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
8505 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
8506 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
8507 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
8508 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
8509 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
8510 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
8511 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
8512 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
8513 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
8514 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
8515 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
8516 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
8517 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
8518 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
8519 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
8520 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
8521 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008522 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03008523 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02008524 .np = 3,
8525 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03008526 },
8527};
8528
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008529static const struct cipher_testvec tf_xts_tv_template[] = {
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008530 /* Generated from AES-XTS test vectors */
8531{
8532 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
8533 "\x00\x00\x00\x00\x00\x00\x00\x00"
8534 "\x00\x00\x00\x00\x00\x00\x00\x00"
8535 "\x00\x00\x00\x00\x00\x00\x00\x00",
8536 .klen = 32,
8537 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8538 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008539 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008540 "\x00\x00\x00\x00\x00\x00\x00\x00"
8541 "\x00\x00\x00\x00\x00\x00\x00\x00"
8542 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008543 .ctext = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008544 "\x30\x74\xe4\x44\x52\x77\x97\x43"
8545 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
8546 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008547 .len = 32,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008548 }, {
8549 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
8550 "\x11\x11\x11\x11\x11\x11\x11\x11"
8551 "\x22\x22\x22\x22\x22\x22\x22\x22"
8552 "\x22\x22\x22\x22\x22\x22\x22\x22",
8553 .klen = 32,
8554 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
8555 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008556 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008557 "\x44\x44\x44\x44\x44\x44\x44\x44"
8558 "\x44\x44\x44\x44\x44\x44\x44\x44"
8559 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008560 .ctext = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008561 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
8562 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
8563 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008564 .len = 32,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008565 }, {
8566 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
8567 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
8568 "\x22\x22\x22\x22\x22\x22\x22\x22"
8569 "\x22\x22\x22\x22\x22\x22\x22\x22",
8570 .klen = 32,
8571 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
8572 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008573 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008574 "\x44\x44\x44\x44\x44\x44\x44\x44"
8575 "\x44\x44\x44\x44\x44\x44\x44\x44"
8576 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008577 .ctext = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008578 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
8579 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
8580 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008581 .len = 32,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008582 }, {
8583 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
8584 "\x23\x53\x60\x28\x74\x71\x35\x26"
8585 "\x31\x41\x59\x26\x53\x58\x97\x93"
8586 "\x23\x84\x62\x64\x33\x83\x27\x95",
8587 .klen = 32,
8588 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
8589 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008590 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008591 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8592 "\x10\x11\x12\x13\x14\x15\x16\x17"
8593 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8594 "\x20\x21\x22\x23\x24\x25\x26\x27"
8595 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8596 "\x30\x31\x32\x33\x34\x35\x36\x37"
8597 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8598 "\x40\x41\x42\x43\x44\x45\x46\x47"
8599 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8600 "\x50\x51\x52\x53\x54\x55\x56\x57"
8601 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8602 "\x60\x61\x62\x63\x64\x65\x66\x67"
8603 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8604 "\x70\x71\x72\x73\x74\x75\x76\x77"
8605 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8606 "\x80\x81\x82\x83\x84\x85\x86\x87"
8607 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8608 "\x90\x91\x92\x93\x94\x95\x96\x97"
8609 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8610 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8611 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8612 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8613 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8614 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8615 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8616 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8617 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8618 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8619 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8620 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8621 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8622 "\x00\x01\x02\x03\x04\x05\x06\x07"
8623 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8624 "\x10\x11\x12\x13\x14\x15\x16\x17"
8625 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8626 "\x20\x21\x22\x23\x24\x25\x26\x27"
8627 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8628 "\x30\x31\x32\x33\x34\x35\x36\x37"
8629 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8630 "\x40\x41\x42\x43\x44\x45\x46\x47"
8631 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8632 "\x50\x51\x52\x53\x54\x55\x56\x57"
8633 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8634 "\x60\x61\x62\x63\x64\x65\x66\x67"
8635 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8636 "\x70\x71\x72\x73\x74\x75\x76\x77"
8637 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8638 "\x80\x81\x82\x83\x84\x85\x86\x87"
8639 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8640 "\x90\x91\x92\x93\x94\x95\x96\x97"
8641 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8642 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8643 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8644 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8645 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8646 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8647 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8648 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8649 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8650 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8651 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8652 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8653 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008654 .ctext = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008655 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
8656 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
8657 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
8658 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
8659 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
8660 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
8661 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
8662 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
8663 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
8664 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
8665 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
8666 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
8667 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
8668 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
8669 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
8670 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
8671 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
8672 "\x39\x80\x39\x09\x97\x65\xf2\x83"
8673 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
8674 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
8675 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
8676 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
8677 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
8678 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
8679 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
8680 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
8681 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
8682 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
8683 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
8684 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
8685 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
8686 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
8687 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
8688 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
8689 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
8690 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
8691 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
8692 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
8693 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
8694 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
8695 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
8696 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
8697 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
8698 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
8699 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
8700 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
8701 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
8702 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
8703 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
8704 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
8705 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
8706 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
8707 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
8708 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
8709 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
8710 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
8711 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
8712 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
8713 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
8714 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
8715 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
8716 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
8717 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008718 .len = 512,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008719 }, {
8720 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
8721 "\x23\x53\x60\x28\x74\x71\x35\x26"
8722 "\x62\x49\x77\x57\x24\x70\x93\x69"
8723 "\x99\x59\x57\x49\x66\x96\x76\x27"
8724 "\x31\x41\x59\x26\x53\x58\x97\x93"
8725 "\x23\x84\x62\x64\x33\x83\x27\x95"
8726 "\x02\x88\x41\x97\x16\x93\x99\x37"
8727 "\x51\x05\x82\x09\x74\x94\x45\x92",
8728 .klen = 64,
8729 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
8730 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008731 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008732 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8733 "\x10\x11\x12\x13\x14\x15\x16\x17"
8734 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8735 "\x20\x21\x22\x23\x24\x25\x26\x27"
8736 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8737 "\x30\x31\x32\x33\x34\x35\x36\x37"
8738 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8739 "\x40\x41\x42\x43\x44\x45\x46\x47"
8740 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8741 "\x50\x51\x52\x53\x54\x55\x56\x57"
8742 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8743 "\x60\x61\x62\x63\x64\x65\x66\x67"
8744 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8745 "\x70\x71\x72\x73\x74\x75\x76\x77"
8746 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8747 "\x80\x81\x82\x83\x84\x85\x86\x87"
8748 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8749 "\x90\x91\x92\x93\x94\x95\x96\x97"
8750 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8751 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8752 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8753 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8754 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8755 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8756 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8757 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8758 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8759 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8760 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8761 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8762 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
8763 "\x00\x01\x02\x03\x04\x05\x06\x07"
8764 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8765 "\x10\x11\x12\x13\x14\x15\x16\x17"
8766 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
8767 "\x20\x21\x22\x23\x24\x25\x26\x27"
8768 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
8769 "\x30\x31\x32\x33\x34\x35\x36\x37"
8770 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
8771 "\x40\x41\x42\x43\x44\x45\x46\x47"
8772 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
8773 "\x50\x51\x52\x53\x54\x55\x56\x57"
8774 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
8775 "\x60\x61\x62\x63\x64\x65\x66\x67"
8776 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
8777 "\x70\x71\x72\x73\x74\x75\x76\x77"
8778 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
8779 "\x80\x81\x82\x83\x84\x85\x86\x87"
8780 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
8781 "\x90\x91\x92\x93\x94\x95\x96\x97"
8782 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
8783 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
8784 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
8785 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
8786 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
8787 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
8788 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
8789 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
8790 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
8791 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
8792 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
8793 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
8794 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008795 .ctext = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008796 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
8797 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
8798 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
8799 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
8800 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
8801 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
8802 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
8803 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
8804 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
8805 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
8806 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
8807 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
8808 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
8809 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
8810 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
8811 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
8812 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
8813 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
8814 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
8815 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
8816 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
8817 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
8818 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
8819 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
8820 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
8821 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
8822 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
8823 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
8824 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
8825 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
8826 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
8827 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
8828 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
8829 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
8830 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
8831 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
8832 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
8833 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
8834 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
8835 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
8836 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
8837 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
8838 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
8839 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
8840 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
8841 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
8842 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
8843 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
8844 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
8845 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
8846 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
8847 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
8848 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
8849 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
8850 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
8851 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
8852 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
8853 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
8854 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
8855 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
8856 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
8857 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
8858 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008859 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03008860 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02008861 .np = 3,
8862 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +03008863 },
8864};
8865
Herbert Xuda7f0332008-07-31 17:08:25 +08008866/*
8867 * Serpent test vectors. These are backwards because Serpent writes
8868 * octet sequences in right-to-left mode.
8869 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008870static const struct cipher_testvec serpent_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08008871 {
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008872 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +08008873 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008874 .ctext = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
Herbert Xuda7f0332008-07-31 17:08:25 +08008875 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008876 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08008877 }, {
8878 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
8879 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
8880 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008881 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +08008882 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008883 .ctext = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
Herbert Xuda7f0332008-07-31 17:08:25 +08008884 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008885 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08008886 }, {
8887 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
8888 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
8889 "\x10\x11\x12\x13\x14\x15\x16\x17"
8890 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
8891 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008892 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +08008893 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008894 .ctext = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +08008895 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008896 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08008897 }, {
8898 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
8899 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008900 .ptext = zeroed_string,
8901 .ctext = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
Herbert Xuda7f0332008-07-31 17:08:25 +08008902 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008903 .len = 16,
Jussi Kivilinna9d259172011-10-18 00:02:53 +03008904 }, { /* Generated with Crypto++ */
8905 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8906 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8907 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8908 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8909 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008910 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +03008911 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8912 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8913 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8914 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8915 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8916 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8917 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8918 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8919 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8920 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8921 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8922 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8923 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8924 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8925 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8926 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +03008927 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8928 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8929 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8930 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8931 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8932 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8933 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8934 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8935 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8936 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8937 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8938 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8939 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8940 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8941 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8942 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8943 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8944 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8945 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8946 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8947 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8948 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8949 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8950 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8951 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8952 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8953 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8954 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8955 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8956 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8957 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8958 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8959 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8960 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8961 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8962 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8963 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8964 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8965 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8966 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8967 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8968 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8969 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8970 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8971 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008972 .ctext = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
Jussi Kivilinna9d259172011-10-18 00:02:53 +03008973 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
8974 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
8975 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
8976 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
8977 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
8978 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
8979 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
8980 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
8981 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
8982 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
8983 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
8984 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
8985 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
8986 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
8987 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
8988 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +03008989 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
8990 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
8991 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
8992 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
8993 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
8994 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
8995 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
8996 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
8997 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
8998 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
8999 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
9000 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
9001 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
9002 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
9003 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
9004 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
9005 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
9006 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
9007 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
9008 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
9009 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
9010 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
9011 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
9012 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
9013 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
9014 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
9015 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
9016 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
9017 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
9018 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
9019 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
9020 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
9021 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
9022 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
9023 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
9024 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
9025 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
9026 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
9027 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
9028 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
9029 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
9030 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
9031 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
9032 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
9033 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009034 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03009035 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02009036 .np = 3,
9037 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +08009038 },
9039};
9040
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009041static const struct cipher_testvec tnepres_tv_template[] = {
Eric Biggersa0e20b92018-05-20 22:50:27 -07009042 { /* KeySize=0 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009043 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Eric Biggersa0e20b92018-05-20 22:50:27 -07009044 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009045 .ctext = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
Eric Biggersa0e20b92018-05-20 22:50:27 -07009046 "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009047 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -07009048 },
Herbert Xuda7f0332008-07-31 17:08:25 +08009049 { /* KeySize=128, PT=0, I=1 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009050 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +08009051 "\x00\x00\x00\x00\x00\x00\x00\x00",
9052 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
9053 "\x00\x00\x00\x00\x00\x00\x00\x00",
9054 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009055 .ctext = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
Herbert Xuda7f0332008-07-31 17:08:25 +08009056 "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009057 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -07009058 }, { /* KeySize=128 */
9059 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9060 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
9061 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009062 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Eric Biggersa0e20b92018-05-20 22:50:27 -07009063 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009064 .ctext = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
Eric Biggersa0e20b92018-05-20 22:50:27 -07009065 "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009066 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -07009067 }, { /* KeySize=128, I=121 */
9068 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
9069 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009070 .ptext = zeroed_string,
9071 .ctext = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
Eric Biggersa0e20b92018-05-20 22:50:27 -07009072 "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009073 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08009074 }, { /* KeySize=192, PT=0, I=1 */
9075 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
9076 "\x00\x00\x00\x00\x00\x00\x00\x00"
9077 "\x00\x00\x00\x00\x00\x00\x00\x00",
9078 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009079 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +08009080 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009081 .ctext = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
Herbert Xuda7f0332008-07-31 17:08:25 +08009082 "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009083 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08009084 }, { /* KeySize=256, PT=0, I=1 */
9085 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
9086 "\x00\x00\x00\x00\x00\x00\x00\x00"
9087 "\x00\x00\x00\x00\x00\x00\x00\x00"
9088 "\x00\x00\x00\x00\x00\x00\x00\x00",
9089 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009090 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +08009091 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009092 .ctext = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
Herbert Xuda7f0332008-07-31 17:08:25 +08009093 "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009094 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08009095 }, { /* KeySize=256, I=257 */
9096 .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
9097 "\x17\x16\x15\x14\x13\x12\x11\x10"
9098 "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
9099 "\x07\x06\x05\x04\x03\x02\x01\x00",
9100 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009101 .ptext = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
Herbert Xuda7f0332008-07-31 17:08:25 +08009102 "\x07\x06\x05\x04\x03\x02\x01\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009103 .ctext = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
Herbert Xuda7f0332008-07-31 17:08:25 +08009104 "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009105 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -07009106 }, { /* KeySize=256 */
9107 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
9108 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9109 "\x10\x11\x12\x13\x14\x15\x16\x17"
9110 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
9111 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009112 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Eric Biggersa0e20b92018-05-20 22:50:27 -07009113 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009114 .ctext = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
Eric Biggersa0e20b92018-05-20 22:50:27 -07009115 "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009116 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -07009117 }
Herbert Xuda7f0332008-07-31 17:08:25 +08009118};
9119
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009120static const struct cipher_testvec serpent_cbc_tv_template[] = {
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009121 { /* Generated with Crypto++ */
9122 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9123 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9124 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9125 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9126 .klen = 32,
9127 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9128 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009129 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009130 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9131 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9132 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9133 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9134 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9135 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9136 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9137 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9138 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9139 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9140 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9141 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9142 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9143 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9144 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9145 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +03009146 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9147 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9148 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9149 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9150 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9151 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9152 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9153 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9154 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9155 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9156 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9157 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9158 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9159 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9160 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9161 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9162 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9163 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9164 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9165 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9166 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9167 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9168 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9169 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9170 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9171 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9172 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9173 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9174 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9175 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9176 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9177 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9178 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9179 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9180 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9181 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9182 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9183 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9184 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9185 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9186 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9187 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9188 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9189 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9190 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009191 .ctext = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009192 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
9193 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
9194 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
9195 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
9196 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
9197 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
9198 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
9199 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
9200 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
9201 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
9202 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
9203 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
9204 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
9205 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
9206 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
9207 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +03009208 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
9209 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
9210 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
9211 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
9212 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
9213 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
9214 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
9215 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
9216 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
9217 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
9218 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
9219 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
9220 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
9221 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
9222 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
9223 "\x81\x92\x66\x67\x15\x1E\x39\x98"
9224 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
9225 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
9226 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
9227 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
9228 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
9229 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
9230 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
9231 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
9232 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
9233 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
9234 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
9235 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
9236 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
9237 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
9238 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
9239 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
9240 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
9241 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
9242 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
9243 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
9244 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
9245 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
9246 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
9247 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
9248 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
9249 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
9250 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
9251 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
9252 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009253 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03009254 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02009255 .np = 3,
9256 .tap = { 496 - 20, 4, 16 },
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009257 },
9258};
9259
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009260static const struct cipher_testvec serpent_ctr_tv_template[] = {
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009261 { /* Generated with Crypto++ */
9262 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9263 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9264 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9265 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9266 .klen = 32,
9267 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9268 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009269 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009270 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9271 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9272 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9273 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9274 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9275 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9276 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9277 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9278 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9279 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9280 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9281 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9282 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9283 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9284 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9285 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +03009286 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9287 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9288 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9289 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9290 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9291 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9292 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9293 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9294 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9295 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9296 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9297 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9298 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9299 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9300 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9301 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9302 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9303 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9304 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9305 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9306 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9307 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9308 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9309 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9310 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9311 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9312 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9313 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9314 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9315 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9316 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9317 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9318 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9319 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9320 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9321 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9322 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9323 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9324 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9325 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9326 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9327 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9328 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9329 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9330 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009331 .ctext = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009332 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9333 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9334 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9335 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9336 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9337 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9338 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9339 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9340 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9341 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9342 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9343 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9344 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9345 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9346 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9347 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +03009348 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
9349 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9350 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9351 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9352 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9353 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9354 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9355 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9356 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9357 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9358 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9359 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9360 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9361 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9362 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9363 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9364 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9365 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9366 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9367 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9368 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9369 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9370 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9371 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9372 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9373 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9374 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9375 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9376 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9377 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9378 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9379 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9380 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9381 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9382 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9383 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9384 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9385 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9386 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9387 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9388 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9389 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9390 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9391 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9392 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009393 .len = 496,
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009394 }, { /* Generated with Crypto++ */
9395 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9396 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9397 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9398 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9399 .klen = 32,
9400 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9401 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009402 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009403 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9404 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9405 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9406 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9407 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9408 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9409 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9410 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9411 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9412 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9413 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9414 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9415 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9416 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9417 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9418 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9419 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +03009420 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9421 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9422 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9423 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9424 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9425 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9426 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9427 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9428 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9429 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9430 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9431 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9432 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9433 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9434 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9435 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9436 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9437 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9438 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9439 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9440 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9441 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9442 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9443 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9444 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9445 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9446 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9447 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9448 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9449 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9450 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9451 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9452 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9453 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9454 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9455 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9456 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9457 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9458 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9459 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9460 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9461 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9462 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9463 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9464 "\x2B\xC2\x59",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009465 .ctext = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009466 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
9467 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
9468 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
9469 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
9470 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
9471 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
9472 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
9473 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
9474 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
9475 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
9476 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
9477 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
9478 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
9479 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
9480 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
9481 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
9482 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +03009483 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
9484 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
9485 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
9486 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
9487 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
9488 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
9489 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
9490 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
9491 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
9492 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
9493 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
9494 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
9495 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
9496 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
9497 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
9498 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
9499 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
9500 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
9501 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
9502 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
9503 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
9504 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
9505 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
9506 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
9507 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
9508 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
9509 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
9510 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
9511 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
9512 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
9513 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
9514 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
9515 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
9516 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
9517 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
9518 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
9519 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
9520 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
9521 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
9522 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
9523 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
9524 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
9525 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
9526 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
9527 "\x38\xE2\xE5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009528 .len = 499,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03009529 .also_non_np = 1,
9530 .np = 2,
Jussi Kivilinna9f28e972012-10-20 14:52:57 +03009531 .tap = { 499 - 16, 16 },
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009532 }, { /* Generated with Crypto++ */
9533 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9534 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9535 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9536 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9537 .klen = 32,
9538 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9539 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009540 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009541 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9542 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9543 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9544 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9545 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9546 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9547 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9548 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9549 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9550 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9551 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9552 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9553 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9554 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9555 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9556 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9557 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9558 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9559 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9560 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9561 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9562 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9563 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9564 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9565 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9566 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9567 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9568 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9569 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9570 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9571 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9572 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9573 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9574 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9575 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9576 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9577 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9578 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9579 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9580 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9581 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9582 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9583 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9584 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9585 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9586 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9587 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9588 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9589 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9590 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9591 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9592 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9593 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9594 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9595 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9596 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9597 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9598 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9599 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9600 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9601 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009602 .ctext = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009603 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
9604 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
9605 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
9606 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
9607 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
9608 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
9609 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
9610 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
9611 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
9612 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
9613 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
9614 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
9615 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
9616 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
9617 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
9618 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
9619 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
9620 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
9621 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
9622 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
9623 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
9624 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
9625 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
9626 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
9627 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
9628 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
9629 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
9630 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
9631 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
9632 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
9633 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
9634 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
9635 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
9636 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
9637 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
9638 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
9639 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
9640 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
9641 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
9642 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
9643 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
9644 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
9645 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
9646 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
9647 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
9648 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
9649 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
9650 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
9651 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
9652 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
9653 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
9654 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
9655 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
9656 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
9657 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
9658 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
9659 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
9660 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
9661 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
9662 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
9663 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009664 .len = 496,
Jussi Kivilinna9d259172011-10-18 00:02:53 +03009665 },
9666};
9667
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009668static const struct cipher_testvec serpent_lrw_tv_template[] = {
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009669 /* Generated from AES-LRW test vectors */
9670 {
9671 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9672 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9673 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9674 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9675 .klen = 32,
9676 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9677 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009678 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009679 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009680 .ctext = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009681 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009682 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009683 }, {
9684 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9685 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9686 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9687 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9688 .klen = 32,
9689 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9690 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009691 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009692 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009693 .ctext = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009694 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009695 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009696 }, {
9697 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9698 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9699 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9700 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9701 .klen = 32,
9702 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9703 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009704 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009705 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009706 .ctext = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009707 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009708 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009709 }, {
9710 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9711 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9712 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9713 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9714 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9715 .klen = 40,
9716 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9717 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009718 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009719 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009720 .ctext = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009721 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009722 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009723 }, {
9724 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9725 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9726 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9727 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9728 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9729 .klen = 40,
9730 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9731 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009732 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009733 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009734 .ctext = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009735 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009736 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009737 }, {
9738 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9739 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9740 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9741 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9742 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9743 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9744 .klen = 48,
9745 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9746 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009747 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009748 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009749 .ctext = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009750 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009751 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009752 }, {
9753 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9754 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9755 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9756 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9757 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9758 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9759 .klen = 48,
9760 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9761 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009762 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009763 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009764 .ctext = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009765 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009766 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009767 }, {
9768 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9769 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9770 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9771 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9772 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9773 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9774 .klen = 48,
9775 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9776 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009777 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009778 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9779 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9780 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9781 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9782 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9783 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9784 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9785 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9786 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9787 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9788 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9789 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9790 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9791 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9792 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9793 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9794 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9795 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9796 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9797 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9798 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9799 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9800 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9801 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9802 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9803 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9804 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9805 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9806 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9807 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9808 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9809 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9810 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9811 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9812 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9813 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9814 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9815 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
9816 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
9817 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
9818 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
9819 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
9820 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
9821 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
9822 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
9823 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
9824 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
9825 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
9826 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
9827 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
9828 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
9829 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
9830 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
9831 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
9832 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
9833 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
9834 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
9835 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
9836 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
9837 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
9838 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
9839 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
9840 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009841 .ctext = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009842 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
9843 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
9844 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
9845 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
9846 "\xce\xab\xda\x33\x30\x20\x12\xfa"
9847 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
9848 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
9849 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
9850 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
9851 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
9852 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
9853 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
9854 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
9855 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
9856 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
9857 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
9858 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
9859 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
9860 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
9861 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
9862 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
9863 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
9864 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
9865 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
9866 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
9867 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
9868 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
9869 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
9870 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
9871 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
9872 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
9873 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
9874 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
9875 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
9876 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
9877 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
9878 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
9879 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
9880 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
9881 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
9882 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
9883 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
9884 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
9885 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
9886 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
9887 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
9888 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
9889 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
9890 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
9891 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
9892 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
9893 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
9894 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
9895 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
9896 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
9897 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
9898 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
9899 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
9900 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
9901 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
9902 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
9903 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
9904 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009905 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +03009906 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +02009907 .np = 3,
9908 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +03009909 },
9910};
9911
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009912static const struct cipher_testvec serpent_xts_tv_template[] = {
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009913 /* Generated from AES-XTS test vectors */
9914 {
9915 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
9916 "\x00\x00\x00\x00\x00\x00\x00\x00"
9917 "\x00\x00\x00\x00\x00\x00\x00\x00"
9918 "\x00\x00\x00\x00\x00\x00\x00\x00",
9919 .klen = 32,
9920 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9921 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009922 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009923 "\x00\x00\x00\x00\x00\x00\x00\x00"
9924 "\x00\x00\x00\x00\x00\x00\x00\x00"
9925 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009926 .ctext = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009927 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
9928 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
9929 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009930 .len = 32,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009931 }, {
9932 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
9933 "\x11\x11\x11\x11\x11\x11\x11\x11"
9934 "\x22\x22\x22\x22\x22\x22\x22\x22"
9935 "\x22\x22\x22\x22\x22\x22\x22\x22",
9936 .klen = 32,
9937 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
9938 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009939 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009940 "\x44\x44\x44\x44\x44\x44\x44\x44"
9941 "\x44\x44\x44\x44\x44\x44\x44\x44"
9942 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009943 .ctext = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009944 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
9945 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
9946 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009947 .len = 32,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009948 }, {
9949 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
9950 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
9951 "\x22\x22\x22\x22\x22\x22\x22\x22"
9952 "\x22\x22\x22\x22\x22\x22\x22\x22",
9953 .klen = 32,
9954 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
9955 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009956 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009957 "\x44\x44\x44\x44\x44\x44\x44\x44"
9958 "\x44\x44\x44\x44\x44\x44\x44\x44"
9959 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009960 .ctext = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009961 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
9962 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
9963 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009964 .len = 32,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009965 }, {
9966 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
9967 "\x23\x53\x60\x28\x74\x71\x35\x26"
9968 "\x31\x41\x59\x26\x53\x58\x97\x93"
9969 "\x23\x84\x62\x64\x33\x83\x27\x95",
9970 .klen = 32,
9971 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9972 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009973 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +03009974 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
9975 "\x10\x11\x12\x13\x14\x15\x16\x17"
9976 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
9977 "\x20\x21\x22\x23\x24\x25\x26\x27"
9978 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
9979 "\x30\x31\x32\x33\x34\x35\x36\x37"
9980 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
9981 "\x40\x41\x42\x43\x44\x45\x46\x47"
9982 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
9983 "\x50\x51\x52\x53\x54\x55\x56\x57"
9984 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
9985 "\x60\x61\x62\x63\x64\x65\x66\x67"
9986 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
9987 "\x70\x71\x72\x73\x74\x75\x76\x77"
9988 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
9989 "\x80\x81\x82\x83\x84\x85\x86\x87"
9990 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
9991 "\x90\x91\x92\x93\x94\x95\x96\x97"
9992 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
9993 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
9994 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
9995 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
9996 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
9997 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
9998 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
9999 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10000 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10001 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10002 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10003 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10004 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10005 "\x00\x01\x02\x03\x04\x05\x06\x07"
10006 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10007 "\x10\x11\x12\x13\x14\x15\x16\x17"
10008 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10009 "\x20\x21\x22\x23\x24\x25\x26\x27"
10010 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10011 "\x30\x31\x32\x33\x34\x35\x36\x37"
10012 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10013 "\x40\x41\x42\x43\x44\x45\x46\x47"
10014 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10015 "\x50\x51\x52\x53\x54\x55\x56\x57"
10016 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10017 "\x60\x61\x62\x63\x64\x65\x66\x67"
10018 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10019 "\x70\x71\x72\x73\x74\x75\x76\x77"
10020 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10021 "\x80\x81\x82\x83\x84\x85\x86\x87"
10022 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10023 "\x90\x91\x92\x93\x94\x95\x96\x97"
10024 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10025 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10026 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10027 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10028 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10029 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10030 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10031 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10032 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10033 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10034 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10035 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10036 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010037 .ctext = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030010038 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
10039 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
10040 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
10041 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
10042 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
10043 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
10044 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
10045 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
10046 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
10047 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
10048 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
10049 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
10050 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
10051 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
10052 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
10053 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
10054 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
10055 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
10056 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
10057 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
10058 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
10059 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
10060 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
10061 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
10062 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
10063 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
10064 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
10065 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
10066 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
10067 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
10068 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
10069 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
10070 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
10071 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
10072 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
10073 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
10074 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
10075 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
10076 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
10077 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
10078 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
10079 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
10080 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
10081 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
10082 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
10083 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
10084 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
10085 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
10086 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
10087 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
10088 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
10089 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
10090 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
10091 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
10092 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
10093 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
10094 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
10095 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
10096 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
10097 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
10098 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
10099 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
10100 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010101 .len = 512,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030010102 }, {
10103 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10104 "\x23\x53\x60\x28\x74\x71\x35\x26"
10105 "\x62\x49\x77\x57\x24\x70\x93\x69"
10106 "\x99\x59\x57\x49\x66\x96\x76\x27"
10107 "\x31\x41\x59\x26\x53\x58\x97\x93"
10108 "\x23\x84\x62\x64\x33\x83\x27\x95"
10109 "\x02\x88\x41\x97\x16\x93\x99\x37"
10110 "\x51\x05\x82\x09\x74\x94\x45\x92",
10111 .klen = 64,
10112 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
10113 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010114 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030010115 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10116 "\x10\x11\x12\x13\x14\x15\x16\x17"
10117 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10118 "\x20\x21\x22\x23\x24\x25\x26\x27"
10119 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10120 "\x30\x31\x32\x33\x34\x35\x36\x37"
10121 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10122 "\x40\x41\x42\x43\x44\x45\x46\x47"
10123 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10124 "\x50\x51\x52\x53\x54\x55\x56\x57"
10125 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10126 "\x60\x61\x62\x63\x64\x65\x66\x67"
10127 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10128 "\x70\x71\x72\x73\x74\x75\x76\x77"
10129 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10130 "\x80\x81\x82\x83\x84\x85\x86\x87"
10131 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10132 "\x90\x91\x92\x93\x94\x95\x96\x97"
10133 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10134 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10135 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10136 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10137 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10138 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10139 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10140 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10141 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10142 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10143 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10144 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10145 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10146 "\x00\x01\x02\x03\x04\x05\x06\x07"
10147 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10148 "\x10\x11\x12\x13\x14\x15\x16\x17"
10149 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10150 "\x20\x21\x22\x23\x24\x25\x26\x27"
10151 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10152 "\x30\x31\x32\x33\x34\x35\x36\x37"
10153 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10154 "\x40\x41\x42\x43\x44\x45\x46\x47"
10155 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10156 "\x50\x51\x52\x53\x54\x55\x56\x57"
10157 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10158 "\x60\x61\x62\x63\x64\x65\x66\x67"
10159 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10160 "\x70\x71\x72\x73\x74\x75\x76\x77"
10161 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10162 "\x80\x81\x82\x83\x84\x85\x86\x87"
10163 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10164 "\x90\x91\x92\x93\x94\x95\x96\x97"
10165 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10166 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10167 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10168 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10169 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10170 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10171 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10172 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10173 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10174 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10175 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10176 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10177 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010178 .ctext = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030010179 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
10180 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
10181 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
10182 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
10183 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
10184 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
10185 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
10186 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
10187 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
10188 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
10189 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
10190 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
10191 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
10192 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
10193 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
10194 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
10195 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
10196 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
10197 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
10198 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
10199 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
10200 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
10201 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
10202 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
10203 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
10204 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
10205 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
10206 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
10207 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
10208 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
10209 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
10210 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
10211 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
10212 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
10213 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
10214 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
10215 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
10216 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
10217 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
10218 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
10219 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
10220 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
10221 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
10222 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
10223 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
10224 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
10225 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
10226 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
10227 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
10228 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
10229 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
10230 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
10231 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
10232 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
10233 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
10234 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
10235 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
10236 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
10237 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
10238 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
10239 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
10240 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
10241 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010242 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030010243 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020010244 .np = 3,
10245 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030010246 },
10247};
10248
Eric Biggersda7a0ab2018-02-14 10:42:19 -080010249/*
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010010250 * SM4 test vectors taken from the "The SM4 Blockcipher Algorithm And Its
10251 * Modes Of Operations" draft RFC
10252 * https://datatracker.ietf.org/doc/draft-ribose-cfrg-sm4
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000010253 */
10254
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010255static const struct cipher_testvec sm4_tv_template[] = {
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010010256 { /* GB/T 32907-2016 Example 1. */
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000010257 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10258 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10259 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010260 .ptext = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000010261 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010262 .ctext = "\x68\x1E\xDF\x34\xD2\x06\x96\x5E"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000010263 "\x86\xB3\xE9\x4F\x53\x6E\x42\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010264 .len = 16,
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010010265 }, { /* Last 10 iterations of GB/T 32907-2016 Example 2. */
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000010266 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10267 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10268 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010269 .ptext = "\x99\x4a\xc3\xe7\xc3\x57\x89\x6a"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000010270 "\x81\xfc\xa8\xe\x38\x3e\xef\x80"
10271 "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
10272 "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
10273 "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
10274 "\xad\x57\x15\xab\x31\x5d\xc\xef"
10275 "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
10276 "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
10277 "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
10278 "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
10279 "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
10280 "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
10281 "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
10282 "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
10283 "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
10284 "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
10285 "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
10286 "\xed\xce\x0\x19\xe\x16\x2\x6e"
10287 "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
10288 "\x31\x51\xec\x47\xc3\x51\x83\xc1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010289 .ctext = "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000010290 "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
10291 "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
10292 "\xad\x57\x15\xab\x31\x5d\xc\xef"
10293 "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
10294 "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
10295 "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
10296 "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
10297 "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
10298 "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
10299 "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
10300 "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
10301 "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
10302 "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
10303 "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
10304 "\xed\xce\x0\x19\xe\x16\x2\x6e"
10305 "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
10306 "\x31\x51\xec\x47\xc3\x51\x83\xc1"
10307 "\x59\x52\x98\xc7\xc6\xfd\x27\x1f"
10308 "\x4\x2\xf8\x4\xc3\x3d\x3f\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010309 .len = 160
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010010310 }, { /* A.2.1.1 SM4-ECB Example 1 */
10311 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10312 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10313 .klen = 16,
10314 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
10315 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
10316 "\xee\xee\xee\xee\xff\xff\xff\xff"
10317 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
10318 .ctext = "\x5e\xc8\x14\x3d\xe5\x09\xcf\xf7"
10319 "\xb5\x17\x9f\x8f\x47\x4b\x86\x19"
10320 "\x2f\x1d\x30\x5a\x7f\xb1\x7d\xf9"
10321 "\x85\xf8\x1c\x84\x82\x19\x23\x04",
10322 .len = 32,
10323 }, { /* A.2.1.2 SM4-ECB Example 2 */
10324 .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10"
10325 "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
10326 .klen = 16,
10327 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
10328 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
10329 "\xee\xee\xee\xee\xff\xff\xff\xff"
10330 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
10331 .ctext = "\xC5\x87\x68\x97\xE4\xA5\x9B\xBB"
10332 "\xA7\x2A\x10\xC8\x38\x72\x24\x5B"
10333 "\x12\xDD\x90\xBC\x2D\x20\x06\x92"
10334 "\xB5\x29\xA4\x15\x5A\xC9\xE6\x00",
10335 .len = 32,
10336 }
10337};
10338
10339static const struct cipher_testvec sm4_cbc_tv_template[] = {
10340 { /* A.2.2.1 SM4-CBC Example 1 */
10341 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10342 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10343 .klen = 16,
10344 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
10345 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
10346 "\xee\xee\xee\xee\xff\xff\xff\xff"
10347 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
10348 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
10349 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
10350 .ctext = "\x78\xEB\xB1\x1C\xC4\x0B\x0A\x48"
10351 "\x31\x2A\xAE\xB2\x04\x02\x44\xCB"
10352 "\x4C\xB7\x01\x69\x51\x90\x92\x26"
10353 "\x97\x9B\x0D\x15\xDC\x6A\x8F\x6D",
10354 .len = 32,
10355 }, { /* A.2.2.2 SM4-CBC Example 2 */
10356 .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10"
10357 "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
10358 .klen = 16,
10359 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
10360 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
10361 "\xee\xee\xee\xee\xff\xff\xff\xff"
10362 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
10363 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
10364 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
10365 .ctext = "\x0d\x3a\x6d\xdc\x2d\x21\xc6\x98"
10366 "\x85\x72\x15\x58\x7b\x7b\xb5\x9a"
10367 "\x91\xf2\xc1\x47\x91\x1a\x41\x44"
10368 "\x66\x5e\x1f\xa1\xd4\x0b\xae\x38",
10369 .len = 32,
10370 }
10371};
10372
10373static const struct cipher_testvec sm4_ctr_tv_template[] = {
10374 { /* A.2.5.1 SM4-CTR Example 1 */
10375 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
10376 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
10377 .klen = 16,
10378 .ptext = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
10379 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb"
10380 "\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc"
10381 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
10382 "\xee\xee\xee\xee\xee\xee\xee\xee"
10383 "\xff\xff\xff\xff\xff\xff\xff\xff"
10384 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
10385 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb",
10386 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
10387 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
10388 .ctext = "\xac\x32\x36\xcb\x97\x0c\xc2\x07"
10389 "\x91\x36\x4c\x39\x5a\x13\x42\xd1"
10390 "\xa3\xcb\xc1\x87\x8c\x6f\x30\xcd"
10391 "\x07\x4c\xce\x38\x5c\xdd\x70\xc7"
10392 "\xf2\x34\xbc\x0e\x24\xc1\x19\x80"
10393 "\xfd\x12\x86\x31\x0c\xe3\x7b\x92"
10394 "\x6e\x02\xfc\xd0\xfa\xa0\xba\xf3"
10395 "\x8b\x29\x33\x85\x1d\x82\x45\x14",
10396 .len = 64,
10397 }, { /* A.2.5.2 SM4-CTR Example 2 */
10398 .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10"
10399 "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
10400 .klen = 16,
10401 .ptext = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
10402 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb"
10403 "\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc"
10404 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
10405 "\xee\xee\xee\xee\xee\xee\xee\xee"
10406 "\xff\xff\xff\xff\xff\xff\xff\xff"
10407 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
10408 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb",
10409 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
10410 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
10411 .ctext = "\x5d\xcc\xcd\x25\xb9\x5a\xb0\x74"
10412 "\x17\xa0\x85\x12\xee\x16\x0e\x2f"
10413 "\x8f\x66\x15\x21\xcb\xba\xb4\x4c"
10414 "\xc8\x71\x38\x44\x5b\xc2\x9e\x5c"
10415 "\x0a\xe0\x29\x72\x05\xd6\x27\x04"
10416 "\x17\x3b\x21\x23\x9b\x88\x7f\x6c"
10417 "\x8c\xb5\xb8\x00\x91\x7a\x24\x88"
10418 "\x28\x4b\xde\x9e\x16\xea\x29\x06",
10419 .len = 64,
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000010420 }
10421};
10422
Herbert Xuda7f0332008-07-31 17:08:25 +080010423/* Cast6 test vectors from RFC 2612 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010424static const struct cipher_testvec cast6_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080010425 {
10426 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10427 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
10428 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010429 .ptext = zeroed_string,
10430 .ctext = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080010431 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010432 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010433 }, {
10434 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10435 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
10436 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
10437 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010438 .ptext = zeroed_string,
10439 .ctext = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
Herbert Xuda7f0332008-07-31 17:08:25 +080010440 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010441 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010442 }, {
10443 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
10444 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
10445 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
10446 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
10447 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010448 .ptext = zeroed_string,
10449 .ctext = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080010450 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010451 .len = 16,
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010452 }, { /* Generated from TF test vectors */
10453 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10454 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10455 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10456 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10457 .klen = 32,
10458 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10459 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010460 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010461 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10462 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10463 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10464 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10465 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10466 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10467 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10468 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10469 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10470 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10471 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10472 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10473 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10474 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10475 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10476 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10477 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10478 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10479 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10480 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10481 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10482 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10483 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10484 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10485 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10486 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10487 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10488 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10489 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10490 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10491 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10492 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10493 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10494 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10495 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10496 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10497 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10498 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10499 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10500 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10501 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10502 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10503 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10504 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10505 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10506 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10507 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10508 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10509 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10510 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10511 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10512 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10513 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10514 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10515 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10516 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10517 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10518 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10519 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10520 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10521 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010522 .ctext = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010523 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
10524 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
10525 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
10526 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
10527 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
10528 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
10529 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
10530 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
10531 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
10532 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
10533 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
10534 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
10535 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
10536 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
10537 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
10538 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
10539 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
10540 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
10541 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
10542 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
10543 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
10544 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
10545 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
10546 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
10547 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
10548 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
10549 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
10550 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
10551 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
10552 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
10553 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
10554 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
10555 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
10556 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
10557 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
10558 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
10559 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
10560 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
10561 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
10562 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
10563 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
10564 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
10565 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
10566 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
10567 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
10568 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
10569 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
10570 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
10571 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
10572 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
10573 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
10574 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
10575 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
10576 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
10577 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
10578 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
10579 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
10580 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
10581 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
10582 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
10583 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010584 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030010585 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020010586 .np = 3,
10587 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080010588 },
10589};
10590
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010591static const struct cipher_testvec cast6_cbc_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010592 { /* Generated from TF test vectors */
10593 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10594 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10595 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10596 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10597 .klen = 32,
10598 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10599 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010600 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010601 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10602 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10603 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10604 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10605 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10606 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10607 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10608 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10609 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10610 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10611 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10612 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10613 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10614 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10615 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10616 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10617 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10618 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10619 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10620 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10621 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10622 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10623 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10624 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10625 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10626 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10627 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10628 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10629 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10630 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10631 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10632 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10633 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10634 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10635 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10636 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10637 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10638 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10639 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10640 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10641 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10642 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10643 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10644 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10645 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10646 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10647 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10648 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10649 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10650 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10651 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10652 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10653 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10654 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10655 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10656 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10657 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10658 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10659 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10660 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10661 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010662 .ctext = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010663 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
10664 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
10665 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
10666 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
10667 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
10668 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
10669 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
10670 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
10671 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
10672 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
10673 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
10674 "\x23\x16\x47\x72\x81\x13\x3A\x72"
10675 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
10676 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
10677 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
10678 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
10679 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
10680 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
10681 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
10682 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
10683 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
10684 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
10685 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
10686 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
10687 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
10688 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
10689 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
10690 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
10691 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
10692 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
10693 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
10694 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
10695 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
10696 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
10697 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
10698 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
10699 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
10700 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
10701 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
10702 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
10703 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
10704 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
10705 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
10706 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
10707 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
10708 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
10709 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
10710 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
10711 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
10712 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
10713 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
10714 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
10715 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
10716 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
10717 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
10718 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
10719 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
10720 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
10721 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
10722 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
10723 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010724 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030010725 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020010726 .np = 3,
10727 .tap = { 496 - 20, 4, 16 },
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010728 },
10729};
10730
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010731static const struct cipher_testvec cast6_ctr_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010732 { /* Generated from TF test vectors */
10733 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10734 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10735 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10736 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10737 .klen = 32,
10738 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10739 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010740 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010741 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030010742 "\x3A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010743 .ctext = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030010744 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
10745 "\x57",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010746 .len = 17,
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030010747 }, { /* Generated from TF test vectors */
10748 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10749 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10750 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10751 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10752 .klen = 32,
10753 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10754 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010755 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030010756 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010757 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10758 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10759 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10760 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10761 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10762 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10763 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10764 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10765 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10766 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10767 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10768 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10769 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10770 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10771 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10772 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10773 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10774 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10775 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10776 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10777 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10778 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10779 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10780 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10781 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10782 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10783 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10784 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10785 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10786 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10787 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10788 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10789 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10790 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10791 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10792 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10793 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10794 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10795 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10796 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10797 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10798 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10799 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10800 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10801 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10802 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10803 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10804 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10805 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10806 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10807 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10808 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10809 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10810 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10811 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10812 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10813 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10814 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10815 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10816 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010817 .ctext = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010818 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
10819 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
10820 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
10821 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
10822 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
10823 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
10824 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
10825 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
10826 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
10827 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
10828 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
10829 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
10830 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
10831 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
10832 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
10833 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
10834 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
10835 "\x49\x61\x22\x52\x64\x8C\x46\x41"
10836 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
10837 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
10838 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
10839 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
10840 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
10841 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
10842 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
10843 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
10844 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
10845 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
10846 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
10847 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
10848 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
10849 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
10850 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
10851 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
10852 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
10853 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
10854 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
10855 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
10856 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
10857 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
10858 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
10859 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
10860 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
10861 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
10862 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
10863 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
10864 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
10865 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
10866 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
10867 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
10868 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
10869 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
10870 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
10871 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
10872 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
10873 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
10874 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
10875 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
10876 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
10877 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
10878 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010879 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030010880 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020010881 .np = 3,
10882 .tap = { 496 - 20, 4, 16 },
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010883 },
10884};
10885
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010886static const struct cipher_testvec cast6_lrw_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010887 { /* Generated from TF test vectors */
10888 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
10889 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
10890 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
10891 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
10892 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
10893 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
10894 .klen = 48,
10895 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10896 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010897 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010898 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
10899 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
10900 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
10901 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
10902 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
10903 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
10904 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
10905 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
10906 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
10907 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
10908 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
10909 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
10910 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
10911 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
10912 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
10913 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
10914 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
10915 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
10916 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
10917 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
10918 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
10919 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
10920 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
10921 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
10922 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
10923 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
10924 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
10925 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
10926 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
10927 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
10928 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
10929 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
10930 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
10931 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
10932 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
10933 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
10934 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
10935 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
10936 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
10937 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
10938 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
10939 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
10940 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
10941 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
10942 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
10943 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
10944 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
10945 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
10946 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
10947 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
10948 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
10949 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
10950 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
10951 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
10952 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
10953 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
10954 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
10955 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
10956 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
10957 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
10958 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
10959 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
10960 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010961 .ctext = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020010962 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
10963 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
10964 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
10965 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
10966 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
10967 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
10968 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
10969 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
10970 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
10971 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
10972 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
10973 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
10974 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
10975 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
10976 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
10977 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
10978 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
10979 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
10980 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
10981 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
10982 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
10983 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
10984 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
10985 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
10986 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
10987 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
10988 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
10989 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
10990 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
10991 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
10992 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
10993 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
10994 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
10995 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
10996 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
10997 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
10998 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
10999 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
11000 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
11001 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
11002 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
11003 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
11004 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
11005 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
11006 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
11007 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
11008 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
11009 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
11010 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
11011 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
11012 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
11013 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
11014 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
11015 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
11016 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
11017 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
11018 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
11019 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
11020 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
11021 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
11022 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
11023 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
11024 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011025 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030011026 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020011027 .np = 3,
11028 .tap = { 512 - 20, 4, 16 },
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011029 },
11030};
11031
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011032static const struct cipher_testvec cast6_xts_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011033 { /* Generated from TF test vectors */
11034 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11035 "\x23\x53\x60\x28\x74\x71\x35\x26"
11036 "\x62\x49\x77\x57\x24\x70\x93\x69"
11037 "\x99\x59\x57\x49\x66\x96\x76\x27"
11038 "\x31\x41\x59\x26\x53\x58\x97\x93"
11039 "\x23\x84\x62\x64\x33\x83\x27\x95"
11040 "\x02\x88\x41\x97\x16\x93\x99\x37"
11041 "\x51\x05\x82\x09\x74\x94\x45\x92",
11042 .klen = 64,
11043 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
11044 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011045 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011046 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11047 "\x10\x11\x12\x13\x14\x15\x16\x17"
11048 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11049 "\x20\x21\x22\x23\x24\x25\x26\x27"
11050 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11051 "\x30\x31\x32\x33\x34\x35\x36\x37"
11052 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11053 "\x40\x41\x42\x43\x44\x45\x46\x47"
11054 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11055 "\x50\x51\x52\x53\x54\x55\x56\x57"
11056 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11057 "\x60\x61\x62\x63\x64\x65\x66\x67"
11058 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11059 "\x70\x71\x72\x73\x74\x75\x76\x77"
11060 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11061 "\x80\x81\x82\x83\x84\x85\x86\x87"
11062 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11063 "\x90\x91\x92\x93\x94\x95\x96\x97"
11064 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11065 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11066 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11067 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11068 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11069 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11070 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11071 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11072 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11073 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11074 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11075 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11076 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11077 "\x00\x01\x02\x03\x04\x05\x06\x07"
11078 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11079 "\x10\x11\x12\x13\x14\x15\x16\x17"
11080 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11081 "\x20\x21\x22\x23\x24\x25\x26\x27"
11082 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11083 "\x30\x31\x32\x33\x34\x35\x36\x37"
11084 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11085 "\x40\x41\x42\x43\x44\x45\x46\x47"
11086 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11087 "\x50\x51\x52\x53\x54\x55\x56\x57"
11088 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11089 "\x60\x61\x62\x63\x64\x65\x66\x67"
11090 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11091 "\x70\x71\x72\x73\x74\x75\x76\x77"
11092 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11093 "\x80\x81\x82\x83\x84\x85\x86\x87"
11094 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11095 "\x90\x91\x92\x93\x94\x95\x96\x97"
11096 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11097 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11098 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11099 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11100 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11101 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11102 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11103 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11104 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11105 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11106 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11107 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11108 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011109 .ctext = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011110 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
11111 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
11112 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
11113 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
11114 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
11115 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
11116 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
11117 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
11118 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
11119 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
11120 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
11121 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
11122 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
11123 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
11124 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
11125 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
11126 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
11127 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
11128 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
11129 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
11130 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
11131 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
11132 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
11133 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
11134 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
11135 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
11136 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
11137 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
11138 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
11139 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
11140 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
11141 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
11142 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
11143 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
11144 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
11145 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
11146 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
11147 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
11148 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
11149 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
11150 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
11151 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
11152 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
11153 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
11154 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
11155 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
11156 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
11157 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
11158 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
11159 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
11160 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
11161 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
11162 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
11163 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
11164 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
11165 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
11166 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
11167 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
11168 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
11169 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
11170 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
11171 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
11172 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011173 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030011174 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020011175 .np = 3,
11176 .tap = { 512 - 20, 4, 16 },
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020011177 },
11178};
11179
Herbert Xuda7f0332008-07-31 17:08:25 +080011180/*
11181 * AES test vectors.
11182 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011183static const struct cipher_testvec aes_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080011184 { /* From FIPS-197 */
11185 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11186 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11187 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011188 .ptext = "\x00\x11\x22\x33\x44\x55\x66\x77"
Herbert Xuda7f0332008-07-31 17:08:25 +080011189 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011190 .ctext = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
Herbert Xuda7f0332008-07-31 17:08:25 +080011191 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011192 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080011193 }, {
11194 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11195 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11196 "\x10\x11\x12\x13\x14\x15\x16\x17",
11197 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011198 .ptext = "\x00\x11\x22\x33\x44\x55\x66\x77"
Herbert Xuda7f0332008-07-31 17:08:25 +080011199 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011200 .ctext = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
Herbert Xuda7f0332008-07-31 17:08:25 +080011201 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011202 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080011203 }, {
11204 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
11205 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11206 "\x10\x11\x12\x13\x14\x15\x16\x17"
11207 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11208 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011209 .ptext = "\x00\x11\x22\x33\x44\x55\x66\x77"
Herbert Xuda7f0332008-07-31 17:08:25 +080011210 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011211 .ctext = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
Herbert Xuda7f0332008-07-31 17:08:25 +080011212 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011213 .len = 16,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030011214 }, { /* Generated with Crypto++ */
11215 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
11216 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
11217 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
11218 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
11219 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011220 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030011221 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11222 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11223 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11224 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11225 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11226 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11227 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11228 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11229 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11230 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11231 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11232 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11233 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11234 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11235 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11236 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11237 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11238 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11239 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11240 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11241 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11242 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11243 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11244 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11245 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11246 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11247 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11248 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11249 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11250 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11251 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11252 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11253 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11254 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11255 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11256 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11257 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11258 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11259 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11260 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11261 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11262 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11263 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11264 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11265 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11266 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11267 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11268 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11269 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11270 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11271 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11272 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11273 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11274 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11275 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11276 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11277 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11278 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11279 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11280 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11281 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011282 .ctext = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030011283 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
11284 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
11285 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
11286 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
11287 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
11288 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
11289 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
11290 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
11291 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
11292 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
11293 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
11294 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
11295 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
11296 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
11297 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
11298 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
11299 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
11300 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
11301 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
11302 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
11303 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
11304 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
11305 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
11306 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
11307 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
11308 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
11309 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
11310 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
11311 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
11312 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
11313 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
11314 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
11315 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
11316 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
11317 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
11318 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
11319 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
11320 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
11321 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
11322 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
11323 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
11324 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
11325 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
11326 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
11327 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
11328 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
11329 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
11330 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
11331 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
11332 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
11333 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
11334 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
11335 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
11336 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
11337 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
11338 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
11339 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
11340 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
11341 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
11342 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
11343 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011344 .len = 496,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030011345 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020011346 .np = 3,
11347 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080011348 },
11349};
11350
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011351static const struct cipher_testvec aes_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080011352 { /* From RFC 3602 */
11353 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
11354 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
11355 .klen = 16,
11356 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11357 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011358 .ptext = "Single block msg",
11359 .ctext = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +080011360 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011361 .len = 16,
LABBE Corentin0d8dc962015-07-06 13:37:33 +020011362 .also_non_np = 1,
11363 .np = 8,
11364 .tap = { 3, 2, 3, 2, 3, 1, 1, 1 },
Herbert Xuda7f0332008-07-31 17:08:25 +080011365 }, {
11366 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
11367 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
11368 .klen = 16,
11369 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11370 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011371 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080011372 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11373 "\x10\x11\x12\x13\x14\x15\x16\x17"
11374 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011375 .ctext = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
Herbert Xuda7f0332008-07-31 17:08:25 +080011376 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
11377 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
11378 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011379 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080011380 }, { /* From NIST SP800-38A */
11381 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
11382 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
11383 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
11384 .klen = 24,
11385 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11386 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011387 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Herbert Xuda7f0332008-07-31 17:08:25 +080011388 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11389 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11390 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11391 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11392 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11393 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11394 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011395 .ctext = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
Herbert Xuda7f0332008-07-31 17:08:25 +080011396 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
11397 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
11398 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
11399 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
11400 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
11401 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
11402 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011403 .len = 64,
Herbert Xuda7f0332008-07-31 17:08:25 +080011404 }, {
11405 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
11406 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
11407 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
11408 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
11409 .klen = 32,
11410 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11411 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011412 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Herbert Xuda7f0332008-07-31 17:08:25 +080011413 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11414 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11415 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11416 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11417 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11418 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11419 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011420 .ctext = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
Herbert Xuda7f0332008-07-31 17:08:25 +080011421 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
11422 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
11423 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
11424 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
11425 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
11426 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
11427 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011428 .len = 64,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030011429 }, { /* Generated with Crypto++ */
11430 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
11431 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
11432 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
11433 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
11434 .klen = 32,
11435 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
11436 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011437 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030011438 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
11439 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
11440 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
11441 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
11442 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
11443 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
11444 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
11445 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
11446 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
11447 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
11448 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
11449 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
11450 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
11451 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
11452 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
11453 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
11454 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
11455 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
11456 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
11457 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
11458 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
11459 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
11460 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
11461 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
11462 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
11463 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
11464 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
11465 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
11466 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
11467 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
11468 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
11469 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
11470 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
11471 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
11472 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
11473 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
11474 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
11475 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
11476 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
11477 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
11478 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
11479 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
11480 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
11481 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
11482 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
11483 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
11484 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
11485 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
11486 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
11487 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
11488 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
11489 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
11490 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
11491 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
11492 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
11493 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
11494 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
11495 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
11496 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
11497 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
11498 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011499 .ctext = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030011500 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
11501 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
11502 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
11503 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
11504 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
11505 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
11506 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
11507 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
11508 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
11509 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
11510 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
11511 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
11512 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
11513 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
11514 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
11515 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
11516 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
11517 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
11518 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
11519 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
11520 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
11521 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
11522 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
11523 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
11524 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
11525 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
11526 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
11527 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
11528 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
11529 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
11530 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
11531 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
11532 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
11533 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
11534 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
11535 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
11536 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
11537 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
11538 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
11539 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
11540 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
11541 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
11542 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
11543 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
11544 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
11545 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
11546 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
11547 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
11548 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
11549 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
11550 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
11551 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
11552 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
11553 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
11554 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
11555 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
11556 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
11557 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
11558 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
11559 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
11560 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011561 .len = 496,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030011562 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020011563 .np = 3,
11564 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080011565 },
11566};
11567
Dmitry Eremin-Solenikov7da66672018-10-20 02:01:53 +030011568static const struct cipher_testvec aes_cfb_tv_template[] = {
11569 { /* From NIST SP800-38A */
11570 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
11571 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
11572 .klen = 16,
11573 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11574 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11575 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11576 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11577 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11578 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11579 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11580 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11581 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11582 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11583 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
11584 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
11585 "\xc8\xa6\x45\x37\xa0\xb3\xa9\x3f"
11586 "\xcd\xe3\xcd\xad\x9f\x1c\xe5\x8b"
11587 "\x26\x75\x1f\x67\xa3\xcb\xb1\x40"
11588 "\xb1\x80\x8c\xf1\x87\xa4\xf4\xdf"
11589 "\xc0\x4b\x05\x35\x7c\x5d\x1c\x0e"
11590 "\xea\xc4\xc6\x6f\x9f\xf7\xf2\xe6",
11591 .len = 64,
11592 }, {
11593 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
11594 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
11595 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
11596 .klen = 24,
11597 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11598 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11599 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11600 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11601 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11602 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11603 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11604 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11605 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11606 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11607 .ctext = "\xcd\xc8\x0d\x6f\xdd\xf1\x8c\xab"
11608 "\x34\xc2\x59\x09\xc9\x9a\x41\x74"
11609 "\x67\xce\x7f\x7f\x81\x17\x36\x21"
11610 "\x96\x1a\x2b\x70\x17\x1d\x3d\x7a"
11611 "\x2e\x1e\x8a\x1d\xd5\x9b\x88\xb1"
11612 "\xc8\xe6\x0f\xed\x1e\xfa\xc4\xc9"
11613 "\xc0\x5f\x9f\x9c\xa9\x83\x4f\xa0"
11614 "\x42\xae\x8f\xba\x58\x4b\x09\xff",
11615 .len = 64,
11616 }, {
11617 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
11618 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
11619 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
11620 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
11621 .klen = 32,
11622 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11623 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11624 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11625 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11626 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11627 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11628 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11629 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11630 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11631 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11632 .ctext = "\xdc\x7e\x84\xbf\xda\x79\x16\x4b"
11633 "\x7e\xcd\x84\x86\x98\x5d\x38\x60"
11634 "\x39\xff\xed\x14\x3b\x28\xb1\xc8"
11635 "\x32\x11\x3c\x63\x31\xe5\x40\x7b"
11636 "\xdf\x10\x13\x24\x15\xe5\x4b\x92"
11637 "\xa1\x3e\xd0\xa8\x26\x7a\xe2\xf9"
11638 "\x75\xa3\x85\x74\x1a\xb9\xce\xf8"
11639 "\x20\x31\x62\x3d\x55\xb1\xe4\x71",
11640 .len = 64,
11641 },
11642};
11643
Eric Biggersb13b1e02017-02-24 15:46:59 -080011644static const struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020011645 { /* Input data from RFC 2410 Case 1 */
11646#ifdef __LITTLE_ENDIAN
11647 .key = "\x08\x00" /* rta length */
11648 "\x01\x00" /* rta type */
11649#else
11650 .key = "\x00\x08" /* rta length */
11651 "\x00\x01" /* rta type */
11652#endif
11653 "\x00\x00\x00\x00" /* enc key length */
11654 "\x00\x00\x00\x00\x00\x00\x00\x00"
11655 "\x00\x00\x00\x00\x00\x00\x00\x00",
11656 .klen = 8 + 16 + 0,
11657 .iv = "",
11658 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
11659 .ilen = 8,
11660 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11661 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
11662 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
11663 .rlen = 8 + 16,
11664 }, { /* Input data from RFC 2410 Case 2 */
11665#ifdef __LITTLE_ENDIAN
11666 .key = "\x08\x00" /* rta length */
11667 "\x01\x00" /* rta type */
11668#else
11669 .key = "\x00\x08" /* rta length */
11670 "\x00\x01" /* rta type */
11671#endif
11672 "\x00\x00\x00\x00" /* enc key length */
11673 "\x00\x00\x00\x00\x00\x00\x00\x00"
11674 "\x00\x00\x00\x00\x00\x00\x00\x00",
11675 .klen = 8 + 16 + 0,
11676 .iv = "",
11677 .input = "Network Security People Have A Strange Sense Of Humor",
11678 .ilen = 53,
11679 .result = "Network Security People Have A Strange Sense Of Humor"
11680 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
11681 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
11682 .rlen = 53 + 16,
11683 },
11684};
11685
Eric Biggersb13b1e02017-02-24 15:46:59 -080011686static const struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020011687 {
11688#ifdef __LITTLE_ENDIAN
11689 .key = "\x08\x00" /* rta length */
11690 "\x01\x00" /* rta type */
11691#else
11692 .key = "\x00\x08" /* rta length */
11693 "\x00\x01" /* rta type */
11694#endif
11695 "\x00\x00\x00\x00" /* enc key length */
11696 "\x00\x00\x00\x00\x00\x00\x00\x00"
11697 "\x00\x00\x00\x00\x00\x00\x00\x00",
11698 .klen = 8 + 16 + 0,
11699 .iv = "",
11700 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11701 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
11702 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
11703 .ilen = 8 + 16,
11704 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
11705 .rlen = 8,
11706 }, {
11707#ifdef __LITTLE_ENDIAN
11708 .key = "\x08\x00" /* rta length */
11709 "\x01\x00" /* rta type */
11710#else
11711 .key = "\x00\x08" /* rta length */
11712 "\x00\x01" /* rta type */
11713#endif
11714 "\x00\x00\x00\x00" /* enc key length */
11715 "\x00\x00\x00\x00\x00\x00\x00\x00"
11716 "\x00\x00\x00\x00\x00\x00\x00\x00",
11717 .klen = 8 + 16 + 0,
11718 .iv = "",
11719 .input = "Network Security People Have A Strange Sense Of Humor"
11720 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
11721 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
11722 .ilen = 53 + 16,
11723 .result = "Network Security People Have A Strange Sense Of Humor",
11724 .rlen = 53,
11725 },
11726};
11727
Eric Biggersb13b1e02017-02-24 15:46:59 -080011728static const struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = {
Horia Geantae46e9a42012-07-03 19:16:54 +030011729 { /* RFC 3602 Case 1 */
11730#ifdef __LITTLE_ENDIAN
11731 .key = "\x08\x00" /* rta length */
11732 "\x01\x00" /* rta type */
11733#else
11734 .key = "\x00\x08" /* rta length */
11735 "\x00\x01" /* rta type */
11736#endif
11737 "\x00\x00\x00\x10" /* enc key length */
11738 "\x00\x00\x00\x00\x00\x00\x00\x00"
11739 "\x00\x00\x00\x00\x00\x00\x00\x00"
11740 "\x00\x00\x00\x00"
11741 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
11742 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
11743 .klen = 8 + 20 + 16,
11744 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11745 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Herbert Xu7079ce62015-07-30 17:53:14 +080011746 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
11747 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
11748 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030011749 .input = "Single block msg",
11750 .ilen = 16,
11751 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
11752 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
11753 "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
11754 "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
11755 "\x03\x71\xa2\x06",
11756 .rlen = 16 + 20,
11757 }, { /* RFC 3602 Case 2 */
11758#ifdef __LITTLE_ENDIAN
11759 .key = "\x08\x00" /* rta length */
11760 "\x01\x00" /* rta type */
11761#else
11762 .key = "\x00\x08" /* rta length */
11763 "\x00\x01" /* rta type */
11764#endif
11765 "\x00\x00\x00\x10" /* enc key length */
11766 "\x20\x21\x22\x23\x24\x25\x26\x27"
11767 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11768 "\x30\x31\x32\x33"
11769 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
11770 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
11771 .klen = 8 + 20 + 16,
11772 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11773 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Herbert Xu7079ce62015-07-30 17:53:14 +080011774 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
11775 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
11776 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030011777 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
11778 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11779 "\x10\x11\x12\x13\x14\x15\x16\x17"
11780 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11781 .ilen = 32,
11782 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
11783 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
11784 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
11785 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
11786 "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
11787 "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
11788 "\x65\x39\xf8\xde",
11789 .rlen = 32 + 20,
11790 }, { /* RFC 3602 Case 3 */
11791#ifdef __LITTLE_ENDIAN
11792 .key = "\x08\x00" /* rta length */
11793 "\x01\x00" /* rta type */
11794#else
11795 .key = "\x00\x08" /* rta length */
11796 "\x00\x01" /* rta type */
11797#endif
11798 "\x00\x00\x00\x10" /* enc key length */
11799 "\x11\x22\x33\x44\x55\x66\x77\x88"
11800 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11801 "\x22\x33\x44\x55"
11802 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
11803 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
11804 .klen = 8 + 20 + 16,
11805 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
11806 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
Herbert Xu7079ce62015-07-30 17:53:14 +080011807 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
11808 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
11809 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030011810 .input = "This is a 48-byte message (exactly 3 AES blocks)",
11811 .ilen = 48,
11812 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
11813 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
11814 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
11815 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
11816 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
11817 "\x85\x79\x69\x5d\x83\xba\x26\x84"
11818 "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
11819 "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
11820 "\x8d\x62\xf2\x1e",
11821 .rlen = 48 + 20,
11822 }, { /* RFC 3602 Case 4 */
11823#ifdef __LITTLE_ENDIAN
11824 .key = "\x08\x00" /* rta length */
11825 "\x01\x00" /* rta type */
11826#else
11827 .key = "\x00\x08" /* rta length */
11828 "\x00\x01" /* rta type */
11829#endif
11830 "\x00\x00\x00\x10" /* enc key length */
11831 "\x11\x22\x33\x44\x55\x66\x77\x88"
11832 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11833 "\x22\x33\x44\x55"
11834 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
11835 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
11836 .klen = 8 + 20 + 16,
11837 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
11838 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
Herbert Xu7079ce62015-07-30 17:53:14 +080011839 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
11840 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
11841 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030011842 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11843 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11844 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11845 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11846 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11847 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11848 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11849 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
11850 .ilen = 64,
11851 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
11852 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
11853 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
11854 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
11855 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
11856 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
11857 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
11858 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
11859 "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
11860 "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
11861 "\x1d\xbe\xc6\xe9",
11862 .rlen = 64 + 20,
11863 }, { /* RFC 3602 Case 5 */
11864#ifdef __LITTLE_ENDIAN
11865 .key = "\x08\x00" /* rta length */
11866 "\x01\x00" /* rta type */
11867#else
11868 .key = "\x00\x08" /* rta length */
11869 "\x00\x01" /* rta type */
11870#endif
11871 "\x00\x00\x00\x10" /* enc key length */
11872 "\x11\x22\x33\x44\x55\x66\x77\x88"
11873 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11874 "\x22\x33\x44\x55"
11875 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
11876 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
11877 .klen = 8 + 20 + 16,
11878 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
11879 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
Herbert Xu7079ce62015-07-30 17:53:14 +080011880 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
11881 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
11882 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
11883 .alen = 24,
Horia Geantae46e9a42012-07-03 19:16:54 +030011884 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
11885 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
11886 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11887 "\x10\x11\x12\x13\x14\x15\x16\x17"
11888 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11889 "\x20\x21\x22\x23\x24\x25\x26\x27"
11890 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11891 "\x30\x31\x32\x33\x34\x35\x36\x37"
11892 "\x01\x02\x03\x04\x05\x06\x07\x08"
11893 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
11894 .ilen = 80,
11895 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
11896 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
11897 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
11898 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
11899 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
11900 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
11901 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
11902 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
11903 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
11904 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
11905 "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
11906 "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
11907 "\x85\xe1\x59\xf7",
11908 .rlen = 80 + 20,
11909 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
11910#ifdef __LITTLE_ENDIAN
11911 .key = "\x08\x00" /* rta length */
11912 "\x01\x00" /* rta type */
11913#else
11914 .key = "\x00\x08" /* rta length */
11915 "\x00\x01" /* rta type */
11916#endif
11917 "\x00\x00\x00\x18" /* enc key length */
11918 "\x11\x22\x33\x44\x55\x66\x77\x88"
11919 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11920 "\x22\x33\x44\x55"
11921 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
11922 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
11923 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
11924 .klen = 8 + 20 + 24,
11925 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11926 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080011927 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
11928 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11929 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030011930 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11931 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11932 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11933 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11934 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11935 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11936 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11937 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11938 .ilen = 64,
11939 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
11940 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
11941 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
11942 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
11943 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
11944 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
11945 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
11946 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
11947 "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
11948 "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
11949 "\x47\x4c\xfc\x36",
11950 .rlen = 64 + 20,
11951 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
11952#ifdef __LITTLE_ENDIAN
11953 .key = "\x08\x00" /* rta length */
11954 "\x01\x00" /* rta type */
11955#else
11956 .key = "\x00\x08" /* rta length */
11957 "\x00\x01" /* rta type */
11958#endif
11959 "\x00\x00\x00\x20" /* enc key length */
11960 "\x11\x22\x33\x44\x55\x66\x77\x88"
11961 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
11962 "\x22\x33\x44\x55"
11963 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
11964 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
11965 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
11966 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
11967 .klen = 8 + 20 + 32,
11968 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11969 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080011970 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
11971 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11972 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030011973 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
11974 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
11975 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
11976 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
11977 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
11978 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
11979 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
11980 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
11981 .ilen = 64,
11982 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
11983 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
11984 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
11985 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
11986 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
11987 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
11988 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
11989 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
11990 "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
11991 "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
11992 "\x51\xee\xd6\x4e",
11993 .rlen = 64 + 20,
11994 },
11995};
11996
Eric Biggersb13b1e02017-02-24 15:46:59 -080011997static const struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020011998 { /* Input data from RFC 2410 Case 1 */
11999#ifdef __LITTLE_ENDIAN
12000 .key = "\x08\x00" /* rta length */
12001 "\x01\x00" /* rta type */
12002#else
12003 .key = "\x00\x08" /* rta length */
12004 "\x00\x01" /* rta type */
12005#endif
12006 "\x00\x00\x00\x00" /* enc key length */
12007 "\x00\x00\x00\x00\x00\x00\x00\x00"
12008 "\x00\x00\x00\x00\x00\x00\x00\x00"
12009 "\x00\x00\x00\x00",
12010 .klen = 8 + 20 + 0,
12011 .iv = "",
12012 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12013 .ilen = 8,
12014 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12015 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
12016 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
12017 "\x8c\x5e\xe4\x08",
12018 .rlen = 8 + 20,
12019 }, { /* Input data from RFC 2410 Case 2 */
12020#ifdef __LITTLE_ENDIAN
12021 .key = "\x08\x00" /* rta length */
12022 "\x01\x00" /* rta type */
12023#else
12024 .key = "\x00\x08" /* rta length */
12025 "\x00\x01" /* rta type */
12026#endif
12027 "\x00\x00\x00\x00" /* enc key length */
12028 "\x00\x00\x00\x00\x00\x00\x00\x00"
12029 "\x00\x00\x00\x00\x00\x00\x00\x00"
12030 "\x00\x00\x00\x00",
12031 .klen = 8 + 20 + 0,
12032 .iv = "",
12033 .input = "Network Security People Have A Strange Sense Of Humor",
12034 .ilen = 53,
12035 .result = "Network Security People Have A Strange Sense Of Humor"
12036 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
12037 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
12038 "\x91\x56\xe4\xd6",
12039 .rlen = 53 + 20,
12040 },
12041};
12042
Eric Biggersb13b1e02017-02-24 15:46:59 -080012043static const struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020012044 {
12045#ifdef __LITTLE_ENDIAN
12046 .key = "\x08\x00" /* rta length */
12047 "\x01\x00" /* rta type */
12048#else
12049 .key = "\x00\x08" /* rta length */
12050 "\x00\x01" /* rta type */
12051#endif
12052 "\x00\x00\x00\x00" /* enc key length */
12053 "\x00\x00\x00\x00\x00\x00\x00\x00"
12054 "\x00\x00\x00\x00\x00\x00\x00\x00"
12055 "\x00\x00\x00\x00",
12056 .klen = 8 + 20 + 0,
12057 .iv = "",
12058 .input = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12059 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
12060 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
12061 "\x8c\x5e\xe4\x08",
12062 .ilen = 8 + 20,
12063 .result = "\x01\x23\x45\x67\x89\xab\xcd\xef",
12064 .rlen = 8,
12065 }, {
12066#ifdef __LITTLE_ENDIAN
12067 .key = "\x08\x00" /* rta length */
12068 "\x01\x00" /* rta type */
12069#else
12070 .key = "\x00\x08" /* rta length */
12071 "\x00\x01" /* rta type */
12072#endif
12073 "\x00\x00\x00\x00" /* enc key length */
12074 "\x00\x00\x00\x00\x00\x00\x00\x00"
12075 "\x00\x00\x00\x00\x00\x00\x00\x00"
12076 "\x00\x00\x00\x00",
12077 .klen = 8 + 20 + 0,
12078 .iv = "",
12079 .input = "Network Security People Have A Strange Sense Of Humor"
12080 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
12081 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
12082 "\x91\x56\xe4\xd6",
12083 .ilen = 53 + 20,
12084 .result = "Network Security People Have A Strange Sense Of Humor",
12085 .rlen = 53,
12086 },
12087};
12088
Eric Biggersb13b1e02017-02-24 15:46:59 -080012089static const struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = {
Horia Geantae46e9a42012-07-03 19:16:54 +030012090 { /* RFC 3602 Case 1 */
12091#ifdef __LITTLE_ENDIAN
12092 .key = "\x08\x00" /* rta length */
12093 "\x01\x00" /* rta type */
12094#else
12095 .key = "\x00\x08" /* rta length */
12096 "\x00\x01" /* rta type */
12097#endif
12098 "\x00\x00\x00\x10" /* enc key length */
12099 "\x00\x00\x00\x00\x00\x00\x00\x00"
12100 "\x00\x00\x00\x00\x00\x00\x00\x00"
12101 "\x00\x00\x00\x00\x00\x00\x00\x00"
12102 "\x00\x00\x00\x00\x00\x00\x00\x00"
12103 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12104 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12105 .klen = 8 + 32 + 16,
12106 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12107 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Herbert Xu7079ce62015-07-30 17:53:14 +080012108 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12109 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12110 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012111 .input = "Single block msg",
12112 .ilen = 16,
12113 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12114 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
12115 "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
12116 "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
12117 "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
12118 "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
12119 .rlen = 16 + 32,
12120 }, { /* RFC 3602 Case 2 */
12121#ifdef __LITTLE_ENDIAN
12122 .key = "\x08\x00" /* rta length */
12123 "\x01\x00" /* rta type */
12124#else
12125 .key = "\x00\x08" /* rta length */
12126 "\x00\x01" /* rta type */
12127#endif
12128 "\x00\x00\x00\x10" /* enc key length */
12129 "\x20\x21\x22\x23\x24\x25\x26\x27"
12130 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12131 "\x30\x31\x32\x33\x34\x35\x36\x37"
12132 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12133 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12134 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12135 .klen = 8 + 32 + 16,
12136 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12137 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Herbert Xu7079ce62015-07-30 17:53:14 +080012138 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12139 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12140 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012141 .input = "\x00\x01\x02\x03\x04\x05\x06\x07"
12142 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12143 "\x10\x11\x12\x13\x14\x15\x16\x17"
12144 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12145 .ilen = 32,
12146 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
12147 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12148 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12149 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
12150 "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
12151 "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
12152 "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
12153 "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
12154 .rlen = 32 + 32,
12155 }, { /* RFC 3602 Case 3 */
12156#ifdef __LITTLE_ENDIAN
12157 .key = "\x08\x00" /* rta length */
12158 "\x01\x00" /* rta type */
12159#else
12160 .key = "\x00\x08" /* rta length */
12161 "\x00\x01" /* rta type */
12162#endif
12163 "\x00\x00\x00\x10" /* enc key length */
12164 "\x11\x22\x33\x44\x55\x66\x77\x88"
12165 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12166 "\x22\x33\x44\x55\x66\x77\x88\x99"
12167 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12168 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12169 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12170 .klen = 8 + 32 + 16,
12171 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12172 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
Herbert Xu7079ce62015-07-30 17:53:14 +080012173 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12174 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12175 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012176 .input = "This is a 48-byte message (exactly 3 AES blocks)",
12177 .ilen = 48,
12178 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12179 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12180 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12181 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12182 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12183 "\x85\x79\x69\x5d\x83\xba\x26\x84"
12184 "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
12185 "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
12186 "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
12187 "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
12188 .rlen = 48 + 32,
12189 }, { /* RFC 3602 Case 4 */
12190#ifdef __LITTLE_ENDIAN
12191 .key = "\x08\x00" /* rta length */
12192 "\x01\x00" /* rta type */
12193#else
12194 .key = "\x00\x08" /* rta length */
12195 "\x00\x01" /* rta type */
12196#endif
12197 "\x00\x00\x00\x10" /* enc key length */
12198 "\x11\x22\x33\x44\x55\x66\x77\x88"
12199 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12200 "\x22\x33\x44\x55\x66\x77\x88\x99"
12201 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12202 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12203 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12204 .klen = 8 + 32 + 16,
12205 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12206 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
Herbert Xu7079ce62015-07-30 17:53:14 +080012207 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12208 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12209 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012210 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12211 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12212 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12213 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12214 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12215 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12216 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12217 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12218 .ilen = 64,
12219 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12220 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12221 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12222 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12223 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12224 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12225 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12226 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12227 "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
12228 "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
12229 "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
12230 "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
12231 .rlen = 64 + 32,
12232 }, { /* RFC 3602 Case 5 */
12233#ifdef __LITTLE_ENDIAN
12234 .key = "\x08\x00" /* rta length */
12235 "\x01\x00" /* rta type */
12236#else
12237 .key = "\x00\x08" /* rta length */
12238 "\x00\x01" /* rta type */
12239#endif
12240 "\x00\x00\x00\x10" /* enc key length */
12241 "\x11\x22\x33\x44\x55\x66\x77\x88"
12242 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12243 "\x22\x33\x44\x55\x66\x77\x88\x99"
12244 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12245 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
12246 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
12247 .klen = 8 + 32 + 16,
12248 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12249 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
Herbert Xu7079ce62015-07-30 17:53:14 +080012250 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
12251 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12252 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12253 .alen = 24,
Horia Geantae46e9a42012-07-03 19:16:54 +030012254 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
12255 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
12256 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12257 "\x10\x11\x12\x13\x14\x15\x16\x17"
12258 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12259 "\x20\x21\x22\x23\x24\x25\x26\x27"
12260 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12261 "\x30\x31\x32\x33\x34\x35\x36\x37"
12262 "\x01\x02\x03\x04\x05\x06\x07\x08"
12263 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
12264 .ilen = 80,
12265 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
12266 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
12267 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
12268 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
12269 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
12270 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
12271 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
12272 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
12273 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
12274 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
12275 "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
12276 "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
12277 "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
12278 "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
12279 .rlen = 80 + 32,
12280 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
12281#ifdef __LITTLE_ENDIAN
12282 .key = "\x08\x00" /* rta length */
12283 "\x01\x00" /* rta type */
12284#else
12285 .key = "\x00\x08" /* rta length */
12286 "\x00\x01" /* rta type */
12287#endif
12288 "\x00\x00\x00\x18" /* enc key length */
12289 "\x11\x22\x33\x44\x55\x66\x77\x88"
12290 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12291 "\x22\x33\x44\x55\x66\x77\x88\x99"
12292 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12293 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12294 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12295 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12296 .klen = 8 + 32 + 24,
12297 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12298 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080012299 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
12300 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12301 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012302 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12303 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12304 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12305 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12306 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12307 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12308 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12309 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12310 .ilen = 64,
12311 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
12312 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12313 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12314 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12315 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
12316 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
12317 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12318 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
12319 "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
12320 "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
12321 "\xca\x71\x85\x93\xf7\x85\x55\x8b"
12322 "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
12323 .rlen = 64 + 32,
12324 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
12325#ifdef __LITTLE_ENDIAN
12326 .key = "\x08\x00" /* rta length */
12327 "\x01\x00" /* rta type */
12328#else
12329 .key = "\x00\x08" /* rta length */
12330 "\x00\x01" /* rta type */
12331#endif
12332 "\x00\x00\x00\x20" /* enc key length */
12333 "\x11\x22\x33\x44\x55\x66\x77\x88"
12334 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12335 "\x22\x33\x44\x55\x66\x77\x88\x99"
12336 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12337 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12338 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12339 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12340 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12341 .klen = 8 + 32 + 32,
12342 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12343 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080012344 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
12345 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12346 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012347 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12348 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12349 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12350 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12351 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12352 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12353 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12354 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12355 .ilen = 64,
12356 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
12357 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
12358 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
12359 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
12360 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
12361 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
12362 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
12363 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
12364 "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
12365 "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
12366 "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
12367 "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
12368 .rlen = 64 + 32,
12369 },
12370};
12371
Eric Biggersb13b1e02017-02-24 15:46:59 -080012372static const struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = {
Horia Geantae46e9a42012-07-03 19:16:54 +030012373 { /* RFC 3602 Case 1 */
12374#ifdef __LITTLE_ENDIAN
12375 .key = "\x08\x00" /* rta length */
12376 "\x01\x00" /* rta type */
12377#else
12378 .key = "\x00\x08" /* rta length */
12379 "\x00\x01" /* rta type */
12380#endif
12381 "\x00\x00\x00\x10" /* enc key length */
12382 "\x00\x00\x00\x00\x00\x00\x00\x00"
12383 "\x00\x00\x00\x00\x00\x00\x00\x00"
12384 "\x00\x00\x00\x00\x00\x00\x00\x00"
12385 "\x00\x00\x00\x00\x00\x00\x00\x00"
12386 "\x00\x00\x00\x00\x00\x00\x00\x00"
12387 "\x00\x00\x00\x00\x00\x00\x00\x00"
12388 "\x00\x00\x00\x00\x00\x00\x00\x00"
12389 "\x00\x00\x00\x00\x00\x00\x00\x00"
12390 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12391 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12392 .klen = 8 + 64 + 16,
12393 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12394 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Herbert Xu7079ce62015-07-30 17:53:14 +080012395 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12396 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
12397 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012398 .input = "Single block msg",
12399 .ilen = 16,
12400 .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12401 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
12402 "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
12403 "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
12404 "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
12405 "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
12406 "\xec\xbd\x50\x08\x07\x64\x1a\x49"
12407 "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
12408 "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
12409 "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
12410 .rlen = 16 + 64,
12411 }, { /* RFC 3602 Case 2 */
12412#ifdef __LITTLE_ENDIAN
12413 .key = "\x08\x00" /* rta length */
12414 "\x01\x00" /* rta type */
12415#else
12416 .key = "\x00\x08" /* rta length */
12417 "\x00\x01" /* rta type */
12418#endif
12419 "\x00\x00\x00\x10" /* enc key length */
12420 "\x20\x21\x22\x23\x24\x25\x26\x27"
12421 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12422 "\x30\x31\x32\x33\x34\x35\x36\x37"
12423 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12424 "\x40\x41\x42\x43\x44\x45\x46\x47"
12425 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12426 "\x50\x51\x52\x53\x54\x55\x56\x57"
12427 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12428 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12429 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12430 .klen = 8 + 64 + 16,
12431 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12432 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Herbert Xu7079ce62015-07-30 17:53:14 +080012433 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12434 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
12435 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012436 .input = "\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 .ilen = 32,
12441 .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
12442 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12443 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12444 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
12445 "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
12446 "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
12447 "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
12448 "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
12449 "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
12450 "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
12451 "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
12452 "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
12453 .rlen = 32 + 64,
12454 }, { /* RFC 3602 Case 3 */
12455#ifdef __LITTLE_ENDIAN
12456 .key = "\x08\x00" /* rta length */
12457 "\x01\x00" /* rta type */
12458#else
12459 .key = "\x00\x08" /* rta length */
12460 "\x00\x01" /* rta type */
12461#endif
12462 "\x00\x00\x00\x10" /* enc key length */
12463 "\x11\x22\x33\x44\x55\x66\x77\x88"
12464 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12465 "\x22\x33\x44\x55\x66\x77\x88\x99"
12466 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12467 "\x33\x44\x55\x66\x77\x88\x99\xaa"
12468 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12469 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12470 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12471 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
12472 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
12473 .klen = 8 + 64 + 16,
12474 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12475 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
Herbert Xu7079ce62015-07-30 17:53:14 +080012476 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
12477 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
12478 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012479 .input = "This is a 48-byte message (exactly 3 AES blocks)",
12480 .ilen = 48,
12481 .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
12482 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
12483 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
12484 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
12485 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
12486 "\x85\x79\x69\x5d\x83\xba\x26\x84"
12487 "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
12488 "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
12489 "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
12490 "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
12491 "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
12492 "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
12493 "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
12494 "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
12495 .rlen = 48 + 64,
12496 }, { /* RFC 3602 Case 4 */
12497#ifdef __LITTLE_ENDIAN
12498 .key = "\x08\x00" /* rta length */
12499 "\x01\x00" /* rta type */
12500#else
12501 .key = "\x00\x08" /* rta length */
12502 "\x00\x01" /* rta type */
12503#endif
12504 "\x00\x00\x00\x10" /* enc key length */
12505 "\x11\x22\x33\x44\x55\x66\x77\x88"
12506 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12507 "\x22\x33\x44\x55\x66\x77\x88\x99"
12508 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12509 "\x33\x44\x55\x66\x77\x88\x99\xaa"
12510 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12511 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12512 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12513 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
12514 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
12515 .klen = 8 + 64 + 16,
12516 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12517 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
Herbert Xu7079ce62015-07-30 17:53:14 +080012518 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
12519 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
12520 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012521 .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12522 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12523 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12524 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12525 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12526 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12527 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12528 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
12529 .ilen = 64,
12530 .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
12531 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
12532 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
12533 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
12534 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
12535 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
12536 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
12537 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
12538 "\x82\xcd\x42\x28\x21\x20\x15\xcc"
12539 "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
12540 "\x61\x32\x82\x85\xcf\x27\xed\xb4"
12541 "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
12542 "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
12543 "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
12544 "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
12545 "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
12546 .rlen = 64 + 64,
12547 }, { /* RFC 3602 Case 5 */
12548#ifdef __LITTLE_ENDIAN
12549 .key = "\x08\x00" /* rta length */
12550 "\x01\x00" /* rta type */
12551#else
12552 .key = "\x00\x08" /* rta length */
12553 "\x00\x01" /* rta type */
12554#endif
12555 "\x00\x00\x00\x10" /* enc key length */
12556 "\x11\x22\x33\x44\x55\x66\x77\x88"
12557 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12558 "\x22\x33\x44\x55\x66\x77\x88\x99"
12559 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12560 "\x33\x44\x55\x66\x77\x88\x99\xaa"
12561 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12562 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12563 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12564 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
12565 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
12566 .klen = 8 + 64 + 16,
12567 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12568 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
Herbert Xu7079ce62015-07-30 17:53:14 +080012569 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
12570 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
12571 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
12572 .alen = 24,
Horia Geantae46e9a42012-07-03 19:16:54 +030012573 .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
12574 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
12575 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12576 "\x10\x11\x12\x13\x14\x15\x16\x17"
12577 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12578 "\x20\x21\x22\x23\x24\x25\x26\x27"
12579 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12580 "\x30\x31\x32\x33\x34\x35\x36\x37"
12581 "\x01\x02\x03\x04\x05\x06\x07\x08"
12582 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
12583 .ilen = 80,
12584 .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
12585 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
12586 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
12587 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
12588 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
12589 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
12590 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
12591 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
12592 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
12593 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
12594 "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
12595 "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
12596 "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
12597 "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
12598 "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
12599 "\x92\x26\xc1\x76\x20\x11\xeb\xba"
12600 "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
12601 "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
12602 .rlen = 80 + 64,
12603 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
12604#ifdef __LITTLE_ENDIAN
12605 .key = "\x08\x00" /* rta length */
12606 "\x01\x00" /* rta type */
12607#else
12608 .key = "\x00\x08" /* rta length */
12609 "\x00\x01" /* rta type */
12610#endif
12611 "\x00\x00\x00\x18" /* enc key length */
12612 "\x11\x22\x33\x44\x55\x66\x77\x88"
12613 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12614 "\x22\x33\x44\x55\x66\x77\x88\x99"
12615 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12616 "\x33\x44\x55\x66\x77\x88\x99\xaa"
12617 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12618 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12619 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12620 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12621 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12622 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12623 .klen = 8 + 64 + 24,
12624 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12625 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080012626 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
12627 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12628 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012629 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12630 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12631 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12632 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12633 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12634 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12635 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12636 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12637 .ilen = 64,
12638 .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
12639 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12640 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12641 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12642 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
12643 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
12644 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12645 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
12646 "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
12647 "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
12648 "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
12649 "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
12650 "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
12651 "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
12652 "\x8d\x43\x98\xa7\x94\x16\x07\x02"
12653 "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
12654 .rlen = 64 + 64,
12655 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
12656#ifdef __LITTLE_ENDIAN
12657 .key = "\x08\x00" /* rta length */
12658 "\x01\x00" /* rta type */
12659#else
12660 .key = "\x00\x08" /* rta length */
12661 "\x00\x01" /* rta type */
12662#endif
12663 "\x00\x00\x00\x20" /* enc key length */
12664 "\x11\x22\x33\x44\x55\x66\x77\x88"
12665 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12666 "\x22\x33\x44\x55\x66\x77\x88\x99"
12667 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12668 "\x33\x44\x55\x66\x77\x88\x99\xaa"
12669 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12670 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12671 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12672 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
12673 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
12674 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
12675 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
12676 .klen = 8 + 64 + 32,
12677 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12678 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080012679 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
12680 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12681 .alen = 16,
Horia Geantae46e9a42012-07-03 19:16:54 +030012682 .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
12683 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12684 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12685 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12686 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12687 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12688 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12689 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
12690 .ilen = 64,
12691 .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
12692 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
12693 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
12694 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
12695 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
12696 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
12697 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
12698 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
12699 "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
12700 "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
12701 "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
12702 "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
12703 "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
12704 "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
12705 "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
12706 "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
12707 .rlen = 64 + 64,
12708 },
12709};
12710
Eric Biggersb13b1e02017-02-24 15:46:59 -080012711static const struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053012712 { /*Generated with cryptopp*/
12713#ifdef __LITTLE_ENDIAN
12714 .key = "\x08\x00" /* rta length */
12715 "\x01\x00" /* rta type */
12716#else
12717 .key = "\x00\x08" /* rta length */
12718 "\x00\x01" /* rta type */
12719#endif
12720 "\x00\x00\x00\x08" /* enc key length */
12721 "\x11\x22\x33\x44\x55\x66\x77\x88"
12722 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12723 "\x22\x33\x44\x55"
12724 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12725 .klen = 8 + 20 + 8,
12726 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080012727 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
12728 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12729 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053012730 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12731 "\x53\x20\x63\x65\x65\x72\x73\x74"
12732 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12733 "\x20\x79\x65\x53\x72\x63\x74\x65"
12734 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12735 "\x79\x6e\x53\x20\x63\x65\x65\x72"
12736 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12737 "\x6e\x61\x20\x79\x65\x53\x72\x63"
12738 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12739 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12740 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12741 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12742 "\x72\x63\x74\x65\x20\x73\x6f\x54"
12743 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12744 "\x63\x65\x65\x72\x73\x74\x54\x20"
12745 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12746 .ilen = 128,
12747 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12748 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12749 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12750 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
12751 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
12752 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
12753 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
12754 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
12755 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
12756 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
12757 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
12758 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
12759 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
12760 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
12761 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
12762 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
12763 "\x95\x16\x20\x09\xf5\x95\x19\xfd"
12764 "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
12765 "\x5c\x44\xa9\x37",
12766 .rlen = 128 + 20,
12767 },
12768};
12769
Eric Biggersb13b1e02017-02-24 15:46:59 -080012770static const struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053012771 { /*Generated with cryptopp*/
12772#ifdef __LITTLE_ENDIAN
12773 .key = "\x08\x00" /* rta length */
12774 "\x01\x00" /* rta type */
12775#else
12776 .key = "\x00\x08" /* rta length */
12777 "\x00\x01" /* rta type */
12778#endif
12779 "\x00\x00\x00\x08" /* enc key length */
12780 "\x11\x22\x33\x44\x55\x66\x77\x88"
12781 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12782 "\x22\x33\x44\x55\x66\x77\x88\x99"
12783 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12784 .klen = 8 + 24 + 8,
12785 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080012786 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
12787 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12788 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053012789 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12790 "\x53\x20\x63\x65\x65\x72\x73\x74"
12791 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12792 "\x20\x79\x65\x53\x72\x63\x74\x65"
12793 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12794 "\x79\x6e\x53\x20\x63\x65\x65\x72"
12795 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12796 "\x6e\x61\x20\x79\x65\x53\x72\x63"
12797 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12798 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12799 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12800 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12801 "\x72\x63\x74\x65\x20\x73\x6f\x54"
12802 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12803 "\x63\x65\x65\x72\x73\x74\x54\x20"
12804 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12805 .ilen = 128,
12806 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12807 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12808 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12809 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
12810 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
12811 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
12812 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
12813 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
12814 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
12815 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
12816 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
12817 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
12818 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
12819 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
12820 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
12821 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
12822 "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
12823 "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
12824 "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
12825 .rlen = 128 + 24,
12826 },
12827};
12828
Eric Biggersb13b1e02017-02-24 15:46:59 -080012829static const struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053012830 { /*Generated with cryptopp*/
12831#ifdef __LITTLE_ENDIAN
12832 .key = "\x08\x00" /* rta length */
12833 "\x01\x00" /* rta type */
12834#else
12835 .key = "\x00\x08" /* rta length */
12836 "\x00\x01" /* rta type */
12837#endif
12838 "\x00\x00\x00\x08" /* enc key length */
12839 "\x11\x22\x33\x44\x55\x66\x77\x88"
12840 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12841 "\x22\x33\x44\x55\x66\x77\x88\x99"
12842 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12843 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12844 .klen = 8 + 32 + 8,
12845 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080012846 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
12847 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12848 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053012849 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12850 "\x53\x20\x63\x65\x65\x72\x73\x74"
12851 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12852 "\x20\x79\x65\x53\x72\x63\x74\x65"
12853 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12854 "\x79\x6e\x53\x20\x63\x65\x65\x72"
12855 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12856 "\x6e\x61\x20\x79\x65\x53\x72\x63"
12857 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12858 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12859 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12860 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12861 "\x72\x63\x74\x65\x20\x73\x6f\x54"
12862 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12863 "\x63\x65\x65\x72\x73\x74\x54\x20"
12864 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12865 .ilen = 128,
12866 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12867 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12868 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12869 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
12870 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
12871 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
12872 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
12873 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
12874 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
12875 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
12876 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
12877 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
12878 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
12879 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
12880 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
12881 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
12882 "\xc6\x58\xa1\x60\x70\x91\x39\x36"
12883 "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
12884 "\xde\x63\xde\x76\x52\xde\x9f\xba"
12885 "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
12886 .rlen = 128 + 32,
12887 },
12888};
12889
Eric Biggersb13b1e02017-02-24 15:46:59 -080012890static const struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053012891 { /*Generated with cryptopp*/
12892#ifdef __LITTLE_ENDIAN
12893 .key = "\x08\x00" /* rta length */
12894 "\x01\x00" /* rta type */
12895#else
12896 .key = "\x00\x08" /* rta length */
12897 "\x00\x01" /* rta type */
12898#endif
12899 "\x00\x00\x00\x08" /* enc key length */
12900 "\x11\x22\x33\x44\x55\x66\x77\x88"
12901 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12902 "\x22\x33\x44\x55\x66\x77\x88\x99"
12903 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12904 "\x33\x44\x55\x66\x77\x88\x99\xaa"
12905 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12906 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12907 .klen = 8 + 48 + 8,
12908 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080012909 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
12910 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12911 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053012912 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12913 "\x53\x20\x63\x65\x65\x72\x73\x74"
12914 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12915 "\x20\x79\x65\x53\x72\x63\x74\x65"
12916 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12917 "\x79\x6e\x53\x20\x63\x65\x65\x72"
12918 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12919 "\x6e\x61\x20\x79\x65\x53\x72\x63"
12920 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12921 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12922 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12923 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12924 "\x72\x63\x74\x65\x20\x73\x6f\x54"
12925 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12926 "\x63\x65\x65\x72\x73\x74\x54\x20"
12927 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12928 .ilen = 128,
12929 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12930 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12931 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12932 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
12933 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
12934 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
12935 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
12936 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
12937 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
12938 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
12939 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
12940 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
12941 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
12942 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
12943 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
12944 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
12945 "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
12946 "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
12947 "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
12948 "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
12949 "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
12950 "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
12951 .rlen = 128 + 48,
12952 },
12953};
12954
Eric Biggersb13b1e02017-02-24 15:46:59 -080012955static const struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053012956 { /*Generated with cryptopp*/
12957#ifdef __LITTLE_ENDIAN
12958 .key = "\x08\x00" /* rta length */
12959 "\x01\x00" /* rta type */
12960#else
12961 .key = "\x00\x08" /* rta length */
12962 "\x00\x01" /* rta type */
12963#endif
12964 "\x00\x00\x00\x08" /* enc key length */
12965 "\x11\x22\x33\x44\x55\x66\x77\x88"
12966 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
12967 "\x22\x33\x44\x55\x66\x77\x88\x99"
12968 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
12969 "\x33\x44\x55\x66\x77\x88\x99\xaa"
12970 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
12971 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
12972 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
12973 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
12974 .klen = 8 + 64 + 8,
12975 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080012976 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
12977 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
12978 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053012979 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
12980 "\x53\x20\x63\x65\x65\x72\x73\x74"
12981 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
12982 "\x20\x79\x65\x53\x72\x63\x74\x65"
12983 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
12984 "\x79\x6e\x53\x20\x63\x65\x65\x72"
12985 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
12986 "\x6e\x61\x20\x79\x65\x53\x72\x63"
12987 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
12988 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
12989 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
12990 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
12991 "\x72\x63\x74\x65\x20\x73\x6f\x54"
12992 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
12993 "\x63\x65\x65\x72\x73\x74\x54\x20"
12994 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
12995 .ilen = 128,
12996 .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
12997 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
12998 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
12999 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
13000 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
13001 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
13002 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
13003 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
13004 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
13005 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
13006 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
13007 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
13008 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
13009 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
13010 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
13011 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
13012 "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
13013 "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
13014 "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
13015 "\x58\x83\xda\x67\xfb\x21\x24\xa2"
13016 "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
13017 "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
13018 "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
13019 "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
13020 .rlen = 128 + 64,
13021 },
13022};
13023
Eric Biggersb13b1e02017-02-24 15:46:59 -080013024static const struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053013025 { /*Generated with cryptopp*/
13026#ifdef __LITTLE_ENDIAN
13027 .key = "\x08\x00" /* rta length */
13028 "\x01\x00" /* rta type */
13029#else
13030 .key = "\x00\x08" /* rta length */
13031 "\x00\x01" /* rta type */
13032#endif
13033 "\x00\x00\x00\x18" /* enc key length */
13034 "\x11\x22\x33\x44\x55\x66\x77\x88"
13035 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13036 "\x22\x33\x44\x55"
13037 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13038 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13039 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13040 .klen = 8 + 20 + 24,
13041 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080013042 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13043 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13044 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053013045 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13046 "\x53\x20\x63\x65\x65\x72\x73\x74"
13047 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13048 "\x20\x79\x65\x53\x72\x63\x74\x65"
13049 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13050 "\x79\x6e\x53\x20\x63\x65\x65\x72"
13051 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13052 "\x6e\x61\x20\x79\x65\x53\x72\x63"
13053 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13054 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13055 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13056 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13057 "\x72\x63\x74\x65\x20\x73\x6f\x54"
13058 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13059 "\x63\x65\x65\x72\x73\x74\x54\x20"
13060 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13061 .ilen = 128,
13062 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13063 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13064 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13065 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13066 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13067 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13068 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13069 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13070 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13071 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13072 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13073 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13074 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13075 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13076 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13077 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13078 "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
13079 "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
13080 "\xd1\x60\x91\xb3",
13081 .rlen = 128 + 20,
13082 },
13083};
13084
Eric Biggersb13b1e02017-02-24 15:46:59 -080013085static const struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053013086 { /*Generated with cryptopp*/
13087#ifdef __LITTLE_ENDIAN
13088 .key = "\x08\x00" /* rta length */
13089 "\x01\x00" /* rta type */
13090#else
13091 .key = "\x00\x08" /* rta length */
13092 "\x00\x01" /* rta type */
13093#endif
13094 "\x00\x00\x00\x18" /* enc key length */
13095 "\x11\x22\x33\x44\x55\x66\x77\x88"
13096 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13097 "\x22\x33\x44\x55\x66\x77\x88\x99"
13098 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13099 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13100 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13101 .klen = 8 + 24 + 24,
13102 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080013103 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13104 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13105 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053013106 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13107 "\x53\x20\x63\x65\x65\x72\x73\x74"
13108 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13109 "\x20\x79\x65\x53\x72\x63\x74\x65"
13110 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13111 "\x79\x6e\x53\x20\x63\x65\x65\x72"
13112 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13113 "\x6e\x61\x20\x79\x65\x53\x72\x63"
13114 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13115 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13116 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13117 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13118 "\x72\x63\x74\x65\x20\x73\x6f\x54"
13119 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13120 "\x63\x65\x65\x72\x73\x74\x54\x20"
13121 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13122 .ilen = 128,
13123 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13124 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13125 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13126 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13127 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13128 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13129 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13130 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13131 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13132 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13133 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13134 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13135 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13136 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13137 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13138 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13139 "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
13140 "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
13141 "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
13142 .rlen = 128 + 24,
13143 },
13144};
13145
Eric Biggersb13b1e02017-02-24 15:46:59 -080013146static const struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053013147 { /*Generated with cryptopp*/
13148#ifdef __LITTLE_ENDIAN
13149 .key = "\x08\x00" /* rta length */
13150 "\x01\x00" /* rta type */
13151#else
13152 .key = "\x00\x08" /* rta length */
13153 "\x00\x01" /* rta type */
13154#endif
13155 "\x00\x00\x00\x18" /* enc key length */
13156 "\x11\x22\x33\x44\x55\x66\x77\x88"
13157 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13158 "\x22\x33\x44\x55\x66\x77\x88\x99"
13159 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13160 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13161 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13162 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13163 .klen = 8 + 32 + 24,
13164 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080013165 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13166 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13167 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053013168 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13169 "\x53\x20\x63\x65\x65\x72\x73\x74"
13170 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13171 "\x20\x79\x65\x53\x72\x63\x74\x65"
13172 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13173 "\x79\x6e\x53\x20\x63\x65\x65\x72"
13174 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13175 "\x6e\x61\x20\x79\x65\x53\x72\x63"
13176 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13177 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13178 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13179 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13180 "\x72\x63\x74\x65\x20\x73\x6f\x54"
13181 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13182 "\x63\x65\x65\x72\x73\x74\x54\x20"
13183 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13184 .ilen = 128,
13185 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13186 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13187 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13188 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13189 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13190 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13191 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13192 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13193 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13194 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13195 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13196 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13197 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13198 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13199 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13200 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13201 "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
13202 "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
13203 "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
13204 "\xca\x43\x95\xdf\x80\x61\x81\xa9",
13205 .rlen = 128 + 32,
13206 },
13207};
13208
Eric Biggersb13b1e02017-02-24 15:46:59 -080013209static const struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053013210 { /*Generated with cryptopp*/
13211#ifdef __LITTLE_ENDIAN
13212 .key = "\x08\x00" /* rta length */
13213 "\x01\x00" /* rta type */
13214#else
13215 .key = "\x00\x08" /* rta length */
13216 "\x00\x01" /* rta type */
13217#endif
13218 "\x00\x00\x00\x18" /* enc key length */
13219 "\x11\x22\x33\x44\x55\x66\x77\x88"
13220 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13221 "\x22\x33\x44\x55\x66\x77\x88\x99"
13222 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13223 "\x33\x44\x55\x66\x77\x88\x99\xaa"
13224 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13225 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13226 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13227 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13228 .klen = 8 + 48 + 24,
13229 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080013230 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13231 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13232 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053013233 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13234 "\x53\x20\x63\x65\x65\x72\x73\x74"
13235 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13236 "\x20\x79\x65\x53\x72\x63\x74\x65"
13237 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13238 "\x79\x6e\x53\x20\x63\x65\x65\x72"
13239 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13240 "\x6e\x61\x20\x79\x65\x53\x72\x63"
13241 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13242 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13243 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13244 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13245 "\x72\x63\x74\x65\x20\x73\x6f\x54"
13246 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13247 "\x63\x65\x65\x72\x73\x74\x54\x20"
13248 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13249 .ilen = 128,
13250 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13251 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13252 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13253 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13254 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13255 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13256 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13257 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13258 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13259 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13260 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13261 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13262 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13263 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13264 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13265 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13266 "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
13267 "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
13268 "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
13269 "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
13270 "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
13271 "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
13272 .rlen = 128 + 48,
13273 },
13274};
13275
Eric Biggersb13b1e02017-02-24 15:46:59 -080013276static const struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053013277 { /*Generated with cryptopp*/
13278#ifdef __LITTLE_ENDIAN
13279 .key = "\x08\x00" /* rta length */
13280 "\x01\x00" /* rta type */
13281#else
13282 .key = "\x00\x08" /* rta length */
13283 "\x00\x01" /* rta type */
13284#endif
13285 "\x00\x00\x00\x18" /* enc key length */
13286 "\x11\x22\x33\x44\x55\x66\x77\x88"
13287 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13288 "\x22\x33\x44\x55\x66\x77\x88\x99"
13289 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13290 "\x33\x44\x55\x66\x77\x88\x99\xaa"
13291 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
13292 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
13293 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
13294 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
13295 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
13296 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
13297 .klen = 8 + 64 + 24,
13298 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080013299 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13300 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
13301 .alen = 16,
Nitesh Lal5208ed22014-05-21 17:09:08 +053013302 .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
13303 "\x53\x20\x63\x65\x65\x72\x73\x74"
13304 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
13305 "\x20\x79\x65\x53\x72\x63\x74\x65"
13306 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
13307 "\x79\x6e\x53\x20\x63\x65\x65\x72"
13308 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
13309 "\x6e\x61\x20\x79\x65\x53\x72\x63"
13310 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
13311 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
13312 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
13313 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
13314 "\x72\x63\x74\x65\x20\x73\x6f\x54"
13315 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
13316 "\x63\x65\x65\x72\x73\x74\x54\x20"
13317 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
13318 .ilen = 128,
13319 .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
13320 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
13321 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
13322 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
13323 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
13324 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
13325 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
13326 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
13327 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
13328 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
13329 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
13330 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
13331 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
13332 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
13333 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
13334 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
13335 "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
13336 "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
13337 "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
13338 "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
13339 "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
13340 "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
13341 "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
13342 "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
13343 .rlen = 128 + 64,
13344 },
13345};
13346
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013347static const struct cipher_testvec aes_lrw_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080013348 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
13349 { /* LRW-32-AES 1 */
13350 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
13351 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
13352 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
13353 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
13354 .klen = 32,
13355 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13356 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013357 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080013358 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013359 .ctext = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
Herbert Xuda7f0332008-07-31 17:08:25 +080013360 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013361 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080013362 }, { /* LRW-32-AES 2 */
13363 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
13364 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
13365 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
13366 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
13367 .klen = 32,
13368 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13369 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013370 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080013371 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013372 .ctext = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
Herbert Xuda7f0332008-07-31 17:08:25 +080013373 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013374 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080013375 }, { /* LRW-32-AES 3 */
13376 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
13377 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
13378 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
13379 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
13380 .klen = 32,
13381 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13382 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013383 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080013384 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013385 .ctext = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
Herbert Xuda7f0332008-07-31 17:08:25 +080013386 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013387 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080013388 }, { /* LRW-32-AES 4 */
13389 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
13390 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
13391 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
13392 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
13393 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
13394 .klen = 40,
13395 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13396 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013397 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080013398 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013399 .ctext = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
Herbert Xuda7f0332008-07-31 17:08:25 +080013400 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013401 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080013402 }, { /* LRW-32-AES 5 */
13403 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
13404 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
13405 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
13406 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
13407 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
13408 .klen = 40,
13409 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13410 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013411 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080013412 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013413 .ctext = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
Herbert Xuda7f0332008-07-31 17:08:25 +080013414 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013415 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080013416 }, { /* LRW-32-AES 6 */
13417 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13418 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13419 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13420 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13421 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13422 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13423 .klen = 48,
13424 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13425 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013426 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080013427 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013428 .ctext = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
Herbert Xuda7f0332008-07-31 17:08:25 +080013429 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013430 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080013431 }, { /* LRW-32-AES 7 */
13432 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
13433 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
13434 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
13435 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
13436 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
13437 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
13438 .klen = 48,
13439 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13440 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013441 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080013442 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013443 .ctext = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
Herbert Xuda7f0332008-07-31 17:08:25 +080013444 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013445 .len = 16,
Ondrej Mosnacekdc6d6d52018-09-13 10:51:32 +020013446 }, { /* Test counter wrap-around, modified from LRW-32-AES 1 */
13447 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
13448 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
13449 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
13450 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
13451 .klen = 32,
13452 .iv = "\xff\xff\xff\xff\xff\xff\xff\xff"
13453 "\xff\xff\xff\xff\xff\xff\xff\xff",
13454 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
13455 "\x38\x39\x41\x42\x43\x44\x45\x46"
13456 "\x30\x31\x32\x33\x34\x35\x36\x37"
13457 "\x38\x39\x41\x42\x43\x44\x45\x46"
13458 "\x30\x31\x32\x33\x34\x35\x36\x37"
13459 "\x38\x39\x41\x42\x43\x44\x45\x46",
13460 .ctext = "\x47\x90\x50\xf6\xf4\x8d\x5c\x7f"
13461 "\x84\xc7\x83\x95\x2d\xa2\x02\xc0"
13462 "\xda\x7f\xa3\xc0\x88\x2a\x0a\x50"
13463 "\xfb\xc1\x78\x03\x39\xfe\x1d\xe5"
13464 "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
13465 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
13466 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080013467 }, {
13468/* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
13469 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
13470 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
13471 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
13472 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
13473 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
13474 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
13475 .klen = 48,
13476 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13477 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013478 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Herbert Xuda7f0332008-07-31 17:08:25 +080013479 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
13480 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
13481 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
13482 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
13483 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
13484 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
13485 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
13486 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
13487 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
13488 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
13489 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
13490 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
13491 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
13492 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
13493 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
13494 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
13495 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
13496 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
13497 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
13498 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
13499 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
13500 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
13501 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
13502 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
13503 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
13504 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
13505 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
13506 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
13507 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
13508 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
13509 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
13510 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
13511 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
13512 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
13513 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
13514 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
13515 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
13516 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
13517 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
13518 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
13519 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
13520 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
13521 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
13522 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
13523 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
13524 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
13525 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
13526 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
13527 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
13528 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
13529 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
13530 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
13531 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
13532 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
13533 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
13534 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
13535 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
13536 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
13537 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
13538 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
13539 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
13540 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
13541 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013542 .ctext = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
Herbert Xuda7f0332008-07-31 17:08:25 +080013543 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
13544 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
13545 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
13546 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
13547 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
13548 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
13549 "\xe8\x58\x46\x97\x39\x51\x07\xde"
13550 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
13551 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
13552 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
13553 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
13554 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
13555 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
13556 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
13557 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
13558 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
13559 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
13560 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
13561 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
13562 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
13563 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
13564 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
13565 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
13566 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
13567 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
13568 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
13569 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
13570 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
13571 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
13572 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
13573 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
13574 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
13575 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
13576 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
13577 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
13578 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
13579 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
13580 "\xb8\x79\x78\x97\x94\xff\x72\x13"
13581 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
13582 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
13583 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
13584 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
13585 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
13586 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
13587 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
13588 "\x1e\x86\x53\x11\x53\x94\x00\xee"
13589 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
13590 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
13591 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
13592 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
13593 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
13594 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
13595 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
13596 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
13597 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
13598 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
13599 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
13600 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
13601 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
13602 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
13603 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
13604 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
13605 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013606 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030013607 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020013608 .np = 3,
13609 .tap = { 512 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080013610 }
13611};
13612
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013613static const struct cipher_testvec aes_xts_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080013614 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
13615 { /* XTS-AES 1 */
13616 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
13617 "\x00\x00\x00\x00\x00\x00\x00\x00"
13618 "\x00\x00\x00\x00\x00\x00\x00\x00"
13619 "\x00\x00\x00\x00\x00\x00\x00\x00",
13620 .klen = 32,
Stephan Mueller10faa8c2016-08-25 15:15:01 +020013621 .fips_skip = 1,
Herbert Xuda7f0332008-07-31 17:08:25 +080013622 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13623 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013624 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080013625 "\x00\x00\x00\x00\x00\x00\x00\x00"
13626 "\x00\x00\x00\x00\x00\x00\x00\x00"
13627 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013628 .ctext = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
Herbert Xuda7f0332008-07-31 17:08:25 +080013629 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
13630 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
13631 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013632 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080013633 }, { /* XTS-AES 2 */
13634 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
13635 "\x11\x11\x11\x11\x11\x11\x11\x11"
13636 "\x22\x22\x22\x22\x22\x22\x22\x22"
13637 "\x22\x22\x22\x22\x22\x22\x22\x22",
13638 .klen = 32,
13639 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13640 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013641 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Herbert Xuda7f0332008-07-31 17:08:25 +080013642 "\x44\x44\x44\x44\x44\x44\x44\x44"
13643 "\x44\x44\x44\x44\x44\x44\x44\x44"
13644 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013645 .ctext = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
Herbert Xuda7f0332008-07-31 17:08:25 +080013646 "\x39\x33\x40\x38\xac\xef\x83\x8b"
13647 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
13648 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013649 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080013650 }, { /* XTS-AES 3 */
13651 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
13652 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
13653 "\x22\x22\x22\x22\x22\x22\x22\x22"
13654 "\x22\x22\x22\x22\x22\x22\x22\x22",
13655 .klen = 32,
13656 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
13657 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013658 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Herbert Xuda7f0332008-07-31 17:08:25 +080013659 "\x44\x44\x44\x44\x44\x44\x44\x44"
13660 "\x44\x44\x44\x44\x44\x44\x44\x44"
13661 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013662 .ctext = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
Herbert Xuda7f0332008-07-31 17:08:25 +080013663 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
13664 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
13665 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013666 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080013667 }, { /* XTS-AES 4 */
13668 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13669 "\x23\x53\x60\x28\x74\x71\x35\x26"
13670 "\x31\x41\x59\x26\x53\x58\x97\x93"
13671 "\x23\x84\x62\x64\x33\x83\x27\x95",
13672 .klen = 32,
13673 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
13674 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013675 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080013676 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13677 "\x10\x11\x12\x13\x14\x15\x16\x17"
13678 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13679 "\x20\x21\x22\x23\x24\x25\x26\x27"
13680 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13681 "\x30\x31\x32\x33\x34\x35\x36\x37"
13682 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13683 "\x40\x41\x42\x43\x44\x45\x46\x47"
13684 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13685 "\x50\x51\x52\x53\x54\x55\x56\x57"
13686 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13687 "\x60\x61\x62\x63\x64\x65\x66\x67"
13688 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13689 "\x70\x71\x72\x73\x74\x75\x76\x77"
13690 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13691 "\x80\x81\x82\x83\x84\x85\x86\x87"
13692 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13693 "\x90\x91\x92\x93\x94\x95\x96\x97"
13694 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13695 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13696 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13697 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13698 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13699 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13700 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13701 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13702 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13703 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13704 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13705 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13706 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13707 "\x00\x01\x02\x03\x04\x05\x06\x07"
13708 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13709 "\x10\x11\x12\x13\x14\x15\x16\x17"
13710 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13711 "\x20\x21\x22\x23\x24\x25\x26\x27"
13712 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13713 "\x30\x31\x32\x33\x34\x35\x36\x37"
13714 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13715 "\x40\x41\x42\x43\x44\x45\x46\x47"
13716 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13717 "\x50\x51\x52\x53\x54\x55\x56\x57"
13718 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13719 "\x60\x61\x62\x63\x64\x65\x66\x67"
13720 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13721 "\x70\x71\x72\x73\x74\x75\x76\x77"
13722 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13723 "\x80\x81\x82\x83\x84\x85\x86\x87"
13724 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13725 "\x90\x91\x92\x93\x94\x95\x96\x97"
13726 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13727 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13728 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13729 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13730 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13731 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13732 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13733 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13734 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13735 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13736 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13737 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13738 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013739 .ctext = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
Herbert Xuda7f0332008-07-31 17:08:25 +080013740 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
13741 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
13742 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
13743 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
13744 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
13745 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
13746 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
13747 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
13748 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
13749 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
13750 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
13751 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
13752 "\x22\x97\x61\x46\xae\x20\xce\x84"
13753 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
13754 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
13755 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
13756 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
13757 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
13758 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
13759 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
13760 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
13761 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
13762 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
13763 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
13764 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
13765 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
13766 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
13767 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
13768 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
13769 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
13770 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
13771 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
13772 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
13773 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
13774 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
13775 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
13776 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
13777 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
13778 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
13779 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
13780 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
13781 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
13782 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
13783 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
13784 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
13785 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
13786 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
13787 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
13788 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
13789 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
13790 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
13791 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
13792 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
13793 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
13794 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
13795 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
13796 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
13797 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
13798 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
13799 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
13800 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
13801 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
13802 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013803 .len = 512,
Jarod Wilson5165e5b2011-05-31 15:23:57 +100013804 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
13805 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
13806 "\x23\x53\x60\x28\x74\x71\x35\x26"
13807 "\x62\x49\x77\x57\x24\x70\x93\x69"
13808 "\x99\x59\x57\x49\x66\x96\x76\x27"
13809 "\x31\x41\x59\x26\x53\x58\x97\x93"
13810 "\x23\x84\x62\x64\x33\x83\x27\x95"
13811 "\x02\x88\x41\x97\x16\x93\x99\x37"
13812 "\x51\x05\x82\x09\x74\x94\x45\x92",
13813 .klen = 64,
13814 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
13815 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013816 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jarod Wilson5165e5b2011-05-31 15:23:57 +100013817 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13818 "\x10\x11\x12\x13\x14\x15\x16\x17"
13819 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13820 "\x20\x21\x22\x23\x24\x25\x26\x27"
13821 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13822 "\x30\x31\x32\x33\x34\x35\x36\x37"
13823 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13824 "\x40\x41\x42\x43\x44\x45\x46\x47"
13825 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13826 "\x50\x51\x52\x53\x54\x55\x56\x57"
13827 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13828 "\x60\x61\x62\x63\x64\x65\x66\x67"
13829 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13830 "\x70\x71\x72\x73\x74\x75\x76\x77"
13831 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13832 "\x80\x81\x82\x83\x84\x85\x86\x87"
13833 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13834 "\x90\x91\x92\x93\x94\x95\x96\x97"
13835 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13836 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13837 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13838 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13839 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13840 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13841 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13842 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13843 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13844 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13845 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13846 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13847 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
13848 "\x00\x01\x02\x03\x04\x05\x06\x07"
13849 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13850 "\x10\x11\x12\x13\x14\x15\x16\x17"
13851 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13852 "\x20\x21\x22\x23\x24\x25\x26\x27"
13853 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13854 "\x30\x31\x32\x33\x34\x35\x36\x37"
13855 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13856 "\x40\x41\x42\x43\x44\x45\x46\x47"
13857 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13858 "\x50\x51\x52\x53\x54\x55\x56\x57"
13859 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13860 "\x60\x61\x62\x63\x64\x65\x66\x67"
13861 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
13862 "\x70\x71\x72\x73\x74\x75\x76\x77"
13863 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
13864 "\x80\x81\x82\x83\x84\x85\x86\x87"
13865 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
13866 "\x90\x91\x92\x93\x94\x95\x96\x97"
13867 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
13868 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
13869 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13870 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13871 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13872 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13873 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13874 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13875 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
13876 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
13877 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
13878 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13879 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013880 .ctext = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
Jarod Wilson5165e5b2011-05-31 15:23:57 +100013881 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
13882 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
13883 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
13884 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
13885 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
13886 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
13887 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
13888 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
13889 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
13890 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
13891 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
13892 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
13893 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
13894 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
13895 "\x00\x02\x08\x87\x89\x14\x29\xca"
13896 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
13897 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
13898 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
13899 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
13900 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
13901 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
13902 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
13903 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
13904 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
13905 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
13906 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
13907 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
13908 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
13909 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
13910 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
13911 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
13912 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
13913 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
13914 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
13915 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
13916 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
13917 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
13918 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
13919 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
13920 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
13921 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
13922 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
13923 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
13924 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
13925 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
13926 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
13927 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
13928 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
13929 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
13930 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
13931 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
13932 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
13933 "\x94\x30\x54\xff\x84\x01\x14\x93"
13934 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
13935 "\x53\x76\x44\x1a\x77\xed\x43\x85"
13936 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
13937 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
13938 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
13939 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
13940 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
13941 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
13942 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
13943 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013944 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030013945 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020013946 .np = 3,
13947 .tap = { 512 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080013948 }
13949};
13950
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013951static const struct cipher_testvec aes_ctr_tv_template[] = {
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080013952 { /* From NIST Special Publication 800-38A, Appendix F.5 */
13953 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
13954 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
13955 .klen = 16,
13956 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13957 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013958 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080013959 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13960 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13961 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13962 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13963 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13964 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13965 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013966 .ctext = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080013967 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
13968 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
13969 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
13970 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
13971 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
13972 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
13973 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013974 .len = 64,
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080013975 }, {
13976 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13977 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13978 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13979 .klen = 24,
13980 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
13981 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013982 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080013983 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13984 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13985 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13986 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13987 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13988 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13989 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013990 .ctext = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080013991 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
13992 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
13993 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
13994 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
13995 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
13996 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
13997 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013998 .len = 64,
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080013999 }, {
14000 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14001 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14002 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14003 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14004 .klen = 32,
14005 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14006 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014007 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080014008 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14009 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14010 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14011 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14012 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14013 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14014 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014015 .ctext = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080014016 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
14017 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
14018 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
14019 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
14020 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
14021 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
14022 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014023 .len = 64,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030014024 }, { /* Generated with Crypto++ */
14025 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14026 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14027 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14028 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14029 .klen = 32,
14030 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
14031 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014032 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030014033 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14034 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14035 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14036 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14037 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14038 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14039 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14040 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14041 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14042 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14043 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14044 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14045 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14046 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14047 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14048 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14049 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14050 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14051 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14052 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14053 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14054 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14055 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14056 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14057 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14058 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14059 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14060 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14061 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14062 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14063 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14064 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14065 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14066 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14067 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14068 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14069 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14070 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14071 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14072 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14073 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14074 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14075 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14076 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14077 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14078 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14079 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14080 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14081 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14082 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14083 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14084 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14085 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14086 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14087 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14088 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14089 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14090 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14091 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14092 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14093 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014094 .ctext = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030014095 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
14096 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
14097 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
14098 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
14099 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
14100 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
14101 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
14102 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
14103 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
14104 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
14105 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
14106 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
14107 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
14108 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
14109 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
14110 "\x34\x4B\x31\x69\x84\x66\x96\x44"
14111 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
14112 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
14113 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
14114 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
14115 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
14116 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
14117 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
14118 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
14119 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
14120 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
14121 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
14122 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
14123 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
14124 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
14125 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
14126 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
14127 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
14128 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
14129 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
14130 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
14131 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
14132 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
14133 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
14134 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
14135 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
14136 "\x85\x99\x22\xE8\x91\x38\x70\x83"
14137 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
14138 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
14139 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
14140 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
14141 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
14142 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
14143 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
14144 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
14145 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
14146 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
14147 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
14148 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
14149 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
14150 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
14151 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
14152 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
14153 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
14154 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
14155 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014156 .len = 496,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030014157 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020014158 .np = 3,
14159 .tap = { 496 - 20, 4, 16 },
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030014160 }, { /* Generated with Crypto++ */
14161 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
14162 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
14163 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
14164 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
14165 .klen = 32,
14166 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
14167 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014168 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030014169 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
14170 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
14171 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
14172 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
14173 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
14174 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
14175 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
14176 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
14177 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
14178 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
14179 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
14180 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
14181 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
14182 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
14183 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
14184 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
14185 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
14186 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
14187 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
14188 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
14189 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
14190 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
14191 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
14192 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
14193 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
14194 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
14195 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
14196 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
14197 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
14198 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
14199 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
14200 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
14201 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
14202 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
14203 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
14204 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
14205 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
14206 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
14207 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
14208 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
14209 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
14210 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
14211 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
14212 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
14213 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
14214 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
14215 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
14216 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
14217 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
14218 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
14219 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
14220 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
14221 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
14222 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
14223 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
14224 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
14225 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
14226 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
14227 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
14228 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
14229 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
14230 "\x7B\xE4\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014231 .ctext = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030014232 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
14233 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
14234 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
14235 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
14236 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
14237 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
14238 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
14239 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
14240 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
14241 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
14242 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
14243 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
14244 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
14245 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
14246 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
14247 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
14248 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
14249 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
14250 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
14251 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
14252 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
14253 "\x45\x18\x18\x74\x19\xAD\x71\x01"
14254 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
14255 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
14256 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
14257 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
14258 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
14259 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
14260 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
14261 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
14262 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
14263 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
14264 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
14265 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
14266 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
14267 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
14268 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
14269 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
14270 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
14271 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
14272 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
14273 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
14274 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
14275 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
14276 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
14277 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
14278 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
14279 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
14280 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
14281 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
14282 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
14283 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
14284 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
14285 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
14286 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
14287 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
14288 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
14289 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
14290 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
14291 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
14292 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
14293 "\xFB\xF2\x3F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014294 .len = 499,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030014295 .also_non_np = 1,
14296 .np = 2,
14297 .tap = { 499 - 16, 16 },
14298 },
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080014299};
14300
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014301static const struct cipher_testvec aes_ctr_rfc3686_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080014302 { /* From RFC 3686 */
14303 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
14304 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
14305 "\x00\x00\x00\x30",
14306 .klen = 20,
14307 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014308 .ptext = "Single block msg",
14309 .ctext = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
Herbert Xuda7f0332008-07-31 17:08:25 +080014310 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014311 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014312 }, {
14313 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
14314 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
14315 "\x00\x6c\xb6\xdb",
14316 .klen = 20,
14317 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014318 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080014319 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14320 "\x10\x11\x12\x13\x14\x15\x16\x17"
14321 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014322 .ctext = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
Herbert Xuda7f0332008-07-31 17:08:25 +080014323 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
14324 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
14325 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014326 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080014327 }, {
14328 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
14329 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
14330 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
14331 "\x00\x00\x00\x48",
14332 .klen = 28,
14333 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014334 .ptext = "Single block msg",
14335 .ctext = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
Herbert Xuda7f0332008-07-31 17:08:25 +080014336 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014337 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014338 }, {
14339 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
14340 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
14341 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
14342 "\x00\x96\xb0\x3b",
14343 .klen = 28,
14344 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014345 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080014346 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14347 "\x10\x11\x12\x13\x14\x15\x16\x17"
14348 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014349 .ctext = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +080014350 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
14351 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
14352 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014353 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080014354 }, {
14355 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
14356 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
14357 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
14358 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
14359 "\x00\x00\x00\x60",
14360 .klen = 36,
14361 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014362 .ptext = "Single block msg",
14363 .ctext = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
Herbert Xuda7f0332008-07-31 17:08:25 +080014364 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014365 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014366 }, {
14367 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
14368 "\x07\x96\x36\x58\x79\xef\xf8\x86"
14369 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
14370 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
14371 "\x00\xfa\xac\x24",
14372 .klen = 36,
14373 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014374 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080014375 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14376 "\x10\x11\x12\x13\x14\x15\x16\x17"
14377 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014378 .ctext = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
Herbert Xuda7f0332008-07-31 17:08:25 +080014379 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
14380 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
14381 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014382 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080014383 }, {
14384 // generated using Crypto++
14385 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
14386 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14387 "\x10\x11\x12\x13\x14\x15\x16\x17"
14388 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14389 "\x00\x00\x00\x00",
14390 .klen = 32 + 4,
14391 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014392 .ptext =
Herbert Xuda7f0332008-07-31 17:08:25 +080014393 "\x00\x01\x02\x03\x04\x05\x06\x07"
14394 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14395 "\x10\x11\x12\x13\x14\x15\x16\x17"
14396 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14397 "\x20\x21\x22\x23\x24\x25\x26\x27"
14398 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14399 "\x30\x31\x32\x33\x34\x35\x36\x37"
14400 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
14401 "\x40\x41\x42\x43\x44\x45\x46\x47"
14402 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
14403 "\x50\x51\x52\x53\x54\x55\x56\x57"
14404 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
14405 "\x60\x61\x62\x63\x64\x65\x66\x67"
14406 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
14407 "\x70\x71\x72\x73\x74\x75\x76\x77"
14408 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
14409 "\x80\x81\x82\x83\x84\x85\x86\x87"
14410 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
14411 "\x90\x91\x92\x93\x94\x95\x96\x97"
14412 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
14413 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
14414 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14415 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14416 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14417 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14418 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14419 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14420 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
14421 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
14422 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
14423 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
14424 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
14425 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
14426 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
14427 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
14428 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
14429 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
14430 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
14431 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
14432 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
14433 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
14434 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
14435 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
14436 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
14437 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
14438 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
14439 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
14440 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
14441 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
14442 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
14443 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
14444 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
14445 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
14446 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
14447 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
14448 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
14449 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
14450 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
14451 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
14452 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
14453 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
14454 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
14455 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
14456 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
14457 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
14458 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
14459 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
14460 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
14461 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
14462 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
14463 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
14464 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
14465 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
14466 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
14467 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
14468 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
14469 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
14470 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
14471 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
14472 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
14473 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
14474 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
14475 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
14476 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
14477 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
14478 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
14479 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
14480 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
14481 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
14482 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
14483 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
14484 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
14485 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
14486 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
14487 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
14488 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
14489 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
14490 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
14491 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
14492 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
14493 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
14494 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
14495 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
14496 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
14497 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
14498 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
14499 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
14500 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
14501 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
14502 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
14503 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
14504 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
14505 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
14506 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
14507 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
14508 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
14509 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
14510 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
14511 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
14512 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
14513 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
14514 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
14515 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
14516 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
14517 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
14518 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
14519 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
14520 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
14521 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
14522 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
14523 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
14524 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
14525 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
14526 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
14527 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
14528 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
14529 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
14530 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
14531 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
14532 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
14533 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
14534 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
14535 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
14536 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
14537 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
14538 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
14539 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
14540 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
14541 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
14542 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
14543 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
14544 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
14545 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
14546 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
14547 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
14548 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
14549 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
14550 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
14551 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
14552 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
14553 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
14554 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
14555 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
14556 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
14557 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
14558 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
14559 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
14560 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
14561 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
14562 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
14563 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
14564 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
14565 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
14566 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
14567 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
14568 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
14569 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
14570 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
14571 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
14572 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
14573 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
14574 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
14575 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
14576 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
14577 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
14578 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
14579 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
14580 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
14581 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
14582 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
14583 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
14584 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
14585 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
14586 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
14587 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
14588 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
14589 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
14590 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
14591 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
14592 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
14593 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
14594 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
14595 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
14596 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
14597 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
14598 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
14599 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
14600 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
14601 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
14602 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
14603 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
14604 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
14605 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
14606 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
14607 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
14608 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
14609 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
14610 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
14611 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
14612 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
14613 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
14614 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
14615 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
14616 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
14617 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
14618 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
14619 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
14620 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
14621 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
14622 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
14623 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
14624 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
14625 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
14626 "\x38\x47\x56\x65\x74\x83\x92\xa1"
14627 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
14628 "\x28\x37\x46\x55\x64\x73\x82\x91"
14629 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
14630 "\x18\x27\x36\x45\x54\x63\x72\x81"
14631 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
14632 "\x08\x17\x26\x35\x44\x53\x62\x71"
14633 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
14634 "\xf8\x07\x16\x25\x34\x43\x52\x61"
14635 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
14636 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
14637 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
14638 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
14639 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
14640 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
14641 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
14642 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
14643 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
14644 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
14645 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
14646 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
14647 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
14648 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
14649 "\x00\x11\x22\x33\x44\x55\x66\x77"
14650 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
14651 "\x10\x21\x32\x43\x54\x65\x76\x87"
14652 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
14653 "\x20\x31\x42\x53\x64\x75\x86\x97"
14654 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
14655 "\x30\x41\x52\x63\x74\x85\x96\xa7"
14656 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
14657 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
14658 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
14659 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
14660 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
14661 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
14662 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
14663 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
14664 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
14665 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
14666 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
14667 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
14668 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
14669 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
14670 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
14671 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
14672 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
14673 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
14674 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
14675 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
14676 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
14677 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
14678 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
14679 "\xf0\x01\x12\x23\x34\x45\x56\x67"
14680 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
14681 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
14682 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
14683 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
14684 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
14685 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
14686 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
14687 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
14688 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
14689 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
14690 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
14691 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
14692 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
14693 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
14694 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
14695 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
14696 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
14697 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
14698 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
14699 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
14700 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
14701 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
14702 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
14703 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
14704 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
14705 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
14706 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
14707 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
14708 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
14709 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
14710 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
14711 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
14712 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
14713 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
14714 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
14715 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
14716 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
14717 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
14718 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
14719 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
14720 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
14721 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
14722 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
14723 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
14724 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
14725 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
14726 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
14727 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
14728 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
14729 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
14730 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
14731 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
14732 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
14733 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
14734 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
14735 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
14736 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
14737 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
14738 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
14739 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
14740 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
14741 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
14742 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
14743 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
14744 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
14745 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
14746 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
14747 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
14748 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
14749 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
14750 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
14751 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
14752 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
14753 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
14754 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
14755 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
14756 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
14757 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
14758 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
14759 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
14760 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
14761 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
14762 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
14763 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
14764 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
14765 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
14766 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
14767 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
14768 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
14769 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
14770 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
14771 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
14772 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
14773 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
14774 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
14775 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
14776 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
14777 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
14778 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
14779 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
14780 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
14781 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
14782 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
14783 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
14784 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
14785 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
14786 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
14787 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
14788 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
14789 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
14790 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
14791 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
14792 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
14793 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
14794 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
14795 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
14796 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
14797 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
14798 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
14799 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
14800 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
14801 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
14802 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
14803 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
14804 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
14805 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
14806 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
14807 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
14808 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
14809 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
14810 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
14811 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
14812 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
14813 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
14814 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
14815 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
14816 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
14817 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
14818 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
14819 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
14820 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
14821 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
14822 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
14823 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
14824 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
14825 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
14826 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
14827 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
14828 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
14829 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
14830 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
14831 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
14832 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
14833 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
14834 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
14835 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
14836 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
14837 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
14838 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
14839 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
14840 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
14841 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
14842 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
14843 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
14844 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
14845 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
14846 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
14847 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
14848 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
14849 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
14850 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
14851 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
14852 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
14853 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
14854 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
14855 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
14856 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
14857 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
14858 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
14859 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
14860 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
14861 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
14862 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
14863 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
14864 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
14865 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
14866 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
14867 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
14868 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
14869 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
14870 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
14871 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
14872 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
14873 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
14874 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
14875 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
14876 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
14877 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
14878 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
14879 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
14880 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
14881 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
14882 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
14883 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
14884 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
14885 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
14886 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
14887 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
14888 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
14889 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
14890 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
14891 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
14892 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
14893 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
14894 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
14895 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
14896 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
14897 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
14898 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
14899 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
14900 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
14901 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
14902 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
14903 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
14904 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
14905 "\x00\x21\x42\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014906 .ctext =
Herbert Xuda7f0332008-07-31 17:08:25 +080014907 "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
14908 "\xae\xff\x91\x3a\x44\xcf\x38\x32"
14909 "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
14910 "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
14911 "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
14912 "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
14913 "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
14914 "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
14915 "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
14916 "\x18\xff\x75\x6d\x06\x2d\x00\xab"
14917 "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
14918 "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
14919 "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
14920 "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
14921 "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
14922 "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
14923 "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
14924 "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
14925 "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
14926 "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
14927 "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
14928 "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
14929 "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
14930 "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
14931 "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
14932 "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
14933 "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
14934 "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
14935 "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
14936 "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
14937 "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
14938 "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
14939 "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
14940 "\x6a\x25\x15\x33\x4e\x45\x08\xec"
14941 "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
14942 "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
14943 "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
14944 "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
14945 "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
14946 "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
14947 "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
14948 "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
14949 "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
14950 "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
14951 "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
14952 "\x04\x02\xef\xd3\x44\xde\x76\x31"
14953 "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
14954 "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
14955 "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
14956 "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
14957 "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
14958 "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
14959 "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
14960 "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
14961 "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
14962 "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
14963 "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
14964 "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
14965 "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
14966 "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
14967 "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
14968 "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
14969 "\x32\x03\xed\xf0\x50\x1c\x56\x39"
14970 "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
14971 "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
14972 "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
14973 "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
14974 "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
14975 "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
14976 "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
14977 "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
14978 "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
14979 "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
14980 "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
14981 "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
14982 "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
14983 "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
14984 "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
14985 "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
14986 "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
14987 "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
14988 "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
14989 "\x69\x3a\x29\x23\xac\x86\x32\xa5"
14990 "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
14991 "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
14992 "\x59\x6a\xd3\x50\x59\x43\x59\xde"
14993 "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
14994 "\x18\x34\x0d\x1a\x63\x33\xed\x10"
14995 "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
14996 "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
14997 "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
14998 "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
14999 "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
15000 "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
15001 "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
15002 "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
15003 "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
15004 "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
15005 "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
15006 "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
15007 "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
15008 "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
15009 "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
15010 "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
15011 "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
15012 "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
15013 "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
15014 "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
15015 "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
15016 "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
15017 "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
15018 "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
15019 "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
15020 "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
15021 "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
15022 "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
15023 "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
15024 "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
15025 "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
15026 "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
15027 "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
15028 "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
15029 "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
15030 "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
15031 "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
15032 "\x26\x39\x83\x94\xef\x27\xd8\x53"
15033 "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
15034 "\x43\x7c\x95\x0a\x53\xef\x66\xda"
15035 "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
15036 "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
15037 "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
15038 "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
15039 "\x88\xee\x73\xcf\x66\x2f\x52\x56"
15040 "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
15041 "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
15042 "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
15043 "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
15044 "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
15045 "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
15046 "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
15047 "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
15048 "\xba\x61\x34\x38\x7c\xda\x48\x3e"
15049 "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
15050 "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
15051 "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
15052 "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
15053 "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
15054 "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
15055 "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
15056 "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
15057 "\x35\x12\xe3\x36\x28\x27\x36\x58"
15058 "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
15059 "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
15060 "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
15061 "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
15062 "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
15063 "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
15064 "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
15065 "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
15066 "\x89\xf3\x78\x35\x44\x62\x78\x72"
15067 "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
15068 "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
15069 "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
15070 "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
15071 "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
15072 "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
15073 "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
15074 "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
15075 "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
15076 "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
15077 "\xd2\x49\x77\x81\x6d\x90\x70\xae"
15078 "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
15079 "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
15080 "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
15081 "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
15082 "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
15083 "\x45\x42\x27\x75\x50\xe5\xee\xb8"
15084 "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
15085 "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
15086 "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
15087 "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
15088 "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
15089 "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
15090 "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
15091 "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
15092 "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
15093 "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
15094 "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
15095 "\xa9\x21\x2b\x92\x94\x87\x62\x57"
15096 "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
15097 "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
15098 "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
15099 "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
15100 "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
15101 "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
15102 "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
15103 "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
15104 "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
15105 "\x69\x34\x78\x61\x24\x21\x9c\x8a"
15106 "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
15107 "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
15108 "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
15109 "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
15110 "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
15111 "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
15112 "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
15113 "\xb1\x95\x28\x86\x20\xe9\x17\x49"
15114 "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
15115 "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
15116 "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
15117 "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
15118 "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
15119 "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
15120 "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
15121 "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
15122 "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
15123 "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
15124 "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
15125 "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
15126 "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
15127 "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
15128 "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
15129 "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
15130 "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
15131 "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
15132 "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
15133 "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
15134 "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
15135 "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
15136 "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
15137 "\x29\x90\x46\x30\x92\x69\x7d\x13"
15138 "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
15139 "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
15140 "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
15141 "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
15142 "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
15143 "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
15144 "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
15145 "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
15146 "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
15147 "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
15148 "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
15149 "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
15150 "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
15151 "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
15152 "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
15153 "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
15154 "\x77\x65\x08\x60\x11\x76\x4c\x8d"
15155 "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
15156 "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
15157 "\x03\xd1\x24\x95\xec\x6d\xab\x38"
15158 "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
15159 "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
15160 "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
15161 "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
15162 "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
15163 "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
15164 "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
15165 "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
15166 "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
15167 "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
15168 "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
15169 "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
15170 "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
15171 "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
15172 "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
15173 "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
15174 "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
15175 "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
15176 "\xe5\x79\x81\x73\xcd\x43\x59\x68"
15177 "\x73\x02\x3b\x78\x21\x72\x43\x00"
15178 "\x49\x17\xf7\x00\xaf\x68\x24\x53"
15179 "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
15180 "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
15181 "\x11\x94\x13\x69\x51\x09\x28\xde"
15182 "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
15183 "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
15184 "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
15185 "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
15186 "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
15187 "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
15188 "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
15189 "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
15190 "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
15191 "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
15192 "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
15193 "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
15194 "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
15195 "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
15196 "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
15197 "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
15198 "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
15199 "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
15200 "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
15201 "\x69\xdc\xab\x24\x57\x60\x47\xc1"
15202 "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
15203 "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
15204 "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
15205 "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
15206 "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
15207 "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
15208 "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
15209 "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
15210 "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
15211 "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
15212 "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
15213 "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
15214 "\x85\x62\x82\x70\x18\xe2\x9a\x78"
15215 "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
15216 "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
15217 "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
15218 "\x35\xf3\x61\x06\x72\x84\xc4\x32"
15219 "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
15220 "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
15221 "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
15222 "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
15223 "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
15224 "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
15225 "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
15226 "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
15227 "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
15228 "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
15229 "\x4f\x73\x38\x09\x75\x64\x48\xe0"
15230 "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
15231 "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
15232 "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
15233 "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
15234 "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
15235 "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
15236 "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
15237 "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
15238 "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
15239 "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
15240 "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
15241 "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
15242 "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
15243 "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
15244 "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
15245 "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
15246 "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
15247 "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
15248 "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
15249 "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
15250 "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
15251 "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
15252 "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
15253 "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
15254 "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
15255 "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
15256 "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
15257 "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
15258 "\xce\x4d\x5f\x18\x60\xce\x87\x22"
15259 "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
15260 "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
15261 "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
15262 "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
15263 "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
15264 "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
15265 "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
15266 "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
15267 "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
15268 "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
15269 "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
15270 "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
15271 "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
15272 "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
15273 "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
15274 "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
15275 "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
15276 "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
15277 "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
15278 "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
15279 "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
15280 "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
15281 "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
15282 "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
15283 "\xce\x54\xf9\x18\x58\xb5\xff\x44"
15284 "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
15285 "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
15286 "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
15287 "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
15288 "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
15289 "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
15290 "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
15291 "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
15292 "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
15293 "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
15294 "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
15295 "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
15296 "\x0c\xd6\x04\x14\xde\x51\x74\x75"
15297 "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
15298 "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
15299 "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
15300 "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
15301 "\x75\x46\x65\x4e\x07\x34\x37\xa3"
15302 "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
15303 "\x69\x24\x0e\x38\x67\x43\x8c\xde"
15304 "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
15305 "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
15306 "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
15307 "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
15308 "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
15309 "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
15310 "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
15311 "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
15312 "\x91\x7d\x62\x64\x96\x72\xde\xfc"
15313 "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
15314 "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
15315 "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
15316 "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
15317 "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
15318 "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
15319 "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
15320 "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
15321 "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
15322 "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
15323 "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
15324 "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
15325 "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
15326 "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
15327 "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
15328 "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
15329 "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
15330 "\xae\xed\x39\x88\x42\x11\x3c\xed"
15331 "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
15332 "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
15333 "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
15334 "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
15335 "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
15336 "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
15337 "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
15338 "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
15339 "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
15340 "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
15341 "\x34\x17\xde\xba\x47\xf1\x06\x18"
15342 "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
15343 "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
15344 "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
15345 "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
15346 "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
15347 "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
15348 "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
15349 "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
15350 "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
15351 "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
15352 "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
15353 "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
15354 "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
15355 "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
15356 "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
15357 "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
15358 "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
15359 "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
15360 "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
15361 "\x2c\x56\x39\x79\x0f\x69\x44\x75"
15362 "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
15363 "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
15364 "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
15365 "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
15366 "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
15367 "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
15368 "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
15369 "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
15370 "\x63\x9b\xce\x61\x24\x79\xc0\x70"
15371 "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
15372 "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
15373 "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
15374 "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
15375 "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
15376 "\x74\x56\x58\x40\x02\x37\x52\x2c"
15377 "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
15378 "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
15379 "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
15380 "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
15381 "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
15382 "\xed\x38\x80\x36\x72\x43\x27\x49"
15383 "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
15384 "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
15385 "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
15386 "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
15387 "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
15388 "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
15389 "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
15390 "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
15391 "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
15392 "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
15393 "\x12\xee\x30\xfe\xd8\x30\xef\x34"
15394 "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
15395 "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
15396 "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
15397 "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
15398 "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
15399 "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
15400 "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
15401 "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
15402 "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
15403 "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
15404 "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
15405 "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
15406 "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
15407 "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
15408 "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
15409 "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
15410 "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
15411 "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
15412 "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
15413 "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
15414 "\x44\x12\xfb\x73\x77\xd4\x13\x39"
15415 "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
15416 "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
15417 "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
15418 "\x4b\xef\x31\x18\xea\xac\xb1\x84"
15419 "\x21\xed\xda\x86",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015420 .len = 4100,
Herbert Xuda7f0332008-07-31 17:08:25 +080015421 .np = 2,
15422 .tap = { 4064, 36 },
15423 },
15424};
15425
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015426static const struct cipher_testvec aes_ofb_tv_template[] = {
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100015427 /* From NIST Special Publication 800-38A, Appendix F.5 */
15428 {
15429 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
15430 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
15431 .klen = 16,
15432 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
15433 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015434 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100015435 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15436 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15437 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15438 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15439 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15440 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15441 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015442 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100015443 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
15444 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
15445 "\x3c\x52\xda\xc5\x4e\xd8\x25"
15446 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
15447 "\x44\xf7\xa8\x22\x60\xed\xcc"
15448 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
15449 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015450 .len = 64,
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100015451 }
15452};
15453
Eric Biggersb13b1e02017-02-24 15:46:59 -080015454static const struct aead_testvec aes_gcm_enc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080015455 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
15456 .key = zeroed_string,
15457 .klen = 16,
15458 .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
15459 "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
15460 .rlen = 16,
15461 }, {
15462 .key = zeroed_string,
15463 .klen = 16,
15464 .input = zeroed_string,
15465 .ilen = 16,
15466 .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
15467 "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
15468 "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
15469 "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
15470 .rlen = 32,
15471 }, {
15472 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15473 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15474 .klen = 16,
15475 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15476 "\xde\xca\xf8\x88",
15477 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15478 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15479 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15480 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15481 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15482 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15483 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15484 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15485 .ilen = 64,
15486 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15487 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15488 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15489 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15490 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15491 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15492 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15493 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
15494 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
15495 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
15496 .rlen = 80,
15497 }, {
15498 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15499 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15500 .klen = 16,
15501 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15502 "\xde\xca\xf8\x88",
15503 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15504 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15505 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15506 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15507 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15508 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15509 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15510 "\xba\x63\x7b\x39",
15511 .ilen = 60,
15512 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15513 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15514 "\xab\xad\xda\xd2",
15515 .alen = 20,
15516 .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15517 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15518 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15519 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15520 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15521 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15522 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15523 "\x3d\x58\xe0\x91"
15524 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
15525 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
15526 .rlen = 76,
15527 }, {
15528 .key = zeroed_string,
15529 .klen = 24,
15530 .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
15531 "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
15532 .rlen = 16,
15533 }, {
15534 .key = zeroed_string,
15535 .klen = 24,
15536 .input = zeroed_string,
15537 .ilen = 16,
15538 .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
15539 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
15540 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
15541 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
15542 .rlen = 32,
15543 }, {
15544 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15545 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15546 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15547 .klen = 24,
15548 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15549 "\xde\xca\xf8\x88",
15550 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15551 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15552 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15553 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15554 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15555 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15556 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15557 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15558 .ilen = 64,
15559 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15560 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15561 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15562 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15563 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15564 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15565 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15566 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
15567 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
15568 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
15569 .rlen = 80,
15570 }, {
15571 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15572 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15573 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15574 .klen = 24,
15575 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15576 "\xde\xca\xf8\x88",
15577 .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15578 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15579 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15580 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15581 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15582 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15583 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15584 "\xba\x63\x7b\x39",
15585 .ilen = 60,
15586 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15587 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15588 "\xab\xad\xda\xd2",
15589 .alen = 20,
15590 .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15591 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15592 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15593 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15594 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15595 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15596 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15597 "\xcc\xda\x27\x10"
15598 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
15599 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
15600 .rlen = 76,
15601 .np = 2,
15602 .tap = { 32, 28 },
15603 .anp = 2,
15604 .atap = { 8, 12 }
15605 }, {
15606 .key = zeroed_string,
15607 .klen = 32,
15608 .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
15609 "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
15610 .rlen = 16,
15611 }
15612};
15613
Eric Biggersb13b1e02017-02-24 15:46:59 -080015614static const struct aead_testvec aes_gcm_dec_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080015615 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
15616 .key = zeroed_string,
15617 .klen = 32,
15618 .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
15619 "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
15620 "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
15621 "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
15622 .ilen = 32,
15623 .result = zeroed_string,
15624 .rlen = 16,
15625 }, {
15626 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15627 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15628 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15629 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15630 .klen = 32,
15631 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15632 "\xde\xca\xf8\x88",
15633 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
15634 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
15635 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
15636 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
15637 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
15638 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
15639 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
15640 "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
15641 "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
15642 "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
15643 .ilen = 80,
15644 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15645 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15646 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15647 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15648 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15649 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15650 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15651 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15652 .rlen = 64,
15653 }, {
15654 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15655 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15656 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15657 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15658 .klen = 32,
15659 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15660 "\xde\xca\xf8\x88",
15661 .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
15662 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
15663 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
15664 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
15665 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
15666 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
15667 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
15668 "\xbc\xc9\xf6\x62"
15669 "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
15670 "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
15671 .ilen = 76,
15672 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15673 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15674 "\xab\xad\xda\xd2",
15675 .alen = 20,
15676 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15677 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15678 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15679 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15680 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15681 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15682 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15683 "\xba\x63\x7b\x39",
15684 .rlen = 60,
15685 .np = 2,
15686 .tap = { 48, 28 },
15687 .anp = 3,
15688 .atap = { 8, 8, 4 }
15689 }, {
15690 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15691 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15692 .klen = 16,
15693 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15694 "\xde\xca\xf8\x88",
15695 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15696 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15697 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15698 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15699 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15700 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15701 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15702 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
15703 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
15704 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
15705 .ilen = 80,
15706 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15707 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15708 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15709 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15710 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15711 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15712 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15713 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15714 .rlen = 64,
15715 }, {
15716 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15717 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
15718 .klen = 16,
15719 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15720 "\xde\xca\xf8\x88",
15721 .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
15722 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
15723 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
15724 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
15725 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
15726 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
15727 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
15728 "\x3d\x58\xe0\x91"
15729 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
15730 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
15731 .ilen = 76,
15732 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15733 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15734 "\xab\xad\xda\xd2",
15735 .alen = 20,
15736 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15737 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15738 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15739 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15740 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15741 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15742 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15743 "\xba\x63\x7b\x39",
15744 .rlen = 60,
15745 }, {
15746 .key = zeroed_string,
15747 .klen = 24,
15748 .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
15749 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
15750 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
15751 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
15752 .ilen = 32,
15753 .result = zeroed_string,
15754 .rlen = 16,
15755 }, {
15756 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15757 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15758 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15759 .klen = 24,
15760 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15761 "\xde\xca\xf8\x88",
15762 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15763 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15764 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15765 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15766 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15767 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15768 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15769 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
15770 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
15771 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
15772 .ilen = 80,
15773 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15774 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15775 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15776 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15777 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15778 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15779 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15780 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
15781 .rlen = 64,
15782 }, {
15783 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15784 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
15785 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
15786 .klen = 24,
15787 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
15788 "\xde\xca\xf8\x88",
15789 .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
15790 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
15791 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
15792 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
15793 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
15794 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
15795 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
15796 "\xcc\xda\x27\x10"
15797 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
15798 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
15799 .ilen = 76,
15800 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15801 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
15802 "\xab\xad\xda\xd2",
15803 .alen = 20,
15804 .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
15805 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
15806 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
15807 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
15808 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
15809 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
15810 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
15811 "\xba\x63\x7b\x39",
15812 .rlen = 60,
15813 }
15814};
15815
Eric Biggersb13b1e02017-02-24 15:46:59 -080015816static const struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = {
Herbert Xu85375442015-07-09 07:17:25 +080015817 { /* Generated using Crypto++ */
Adrian Hoban69435b92010-11-04 15:02:04 -040015818 .key = zeroed_string,
15819 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080015820 .iv = zeroed_string,
15821 .input = zeroed_string,
15822 .ilen = 16,
15823 .assoc = zeroed_string,
15824 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040015825 .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
Herbert Xu85375442015-07-09 07:17:25 +080015826 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
15827 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
15828 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
Adrian Hoban69435b92010-11-04 15:02:04 -040015829 .rlen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080015830 },{
Adrian Hoban69435b92010-11-04 15:02:04 -040015831 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15832 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080015833 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040015834 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080015835 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
15836 .input = zeroed_string,
15837 .ilen = 16,
15838 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
15839 "\x00\x00\x00\x00\x00\x00\x00\x01",
15840 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040015841 .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
Herbert Xu85375442015-07-09 07:17:25 +080015842 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
15843 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
15844 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
Adrian Hoban69435b92010-11-04 15:02:04 -040015845 .rlen = 32,
15846
Herbert Xu85375442015-07-09 07:17:25 +080015847 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040015848 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15849 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080015850 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040015851 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080015852 .iv = zeroed_string,
15853 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
15854 "\x01\x01\x01\x01\x01\x01\x01\x01",
15855 .ilen = 16,
15856 .assoc = zeroed_string,
15857 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040015858 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080015859 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
15860 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
15861 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
Adrian Hoban69435b92010-11-04 15:02:04 -040015862 .rlen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080015863 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040015864 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15865 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080015866 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040015867 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080015868 .iv = zeroed_string,
15869 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
15870 "\x01\x01\x01\x01\x01\x01\x01\x01",
15871 .ilen = 16,
15872 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
15873 "\x00\x00\x00\x00\x00\x00\x00\x00",
15874 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040015875 .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080015876 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
15877 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
15878 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
Adrian Hoban69435b92010-11-04 15:02:04 -040015879 .rlen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080015880 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040015881 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15882 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080015883 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040015884 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080015885 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
15886 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
15887 "\x01\x01\x01\x01\x01\x01\x01\x01",
15888 .ilen = 16,
15889 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
15890 "\x00\x00\x00\x00\x00\x00\x00\x01",
15891 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040015892 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080015893 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
15894 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
15895 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
Adrian Hoban69435b92010-11-04 15:02:04 -040015896 .rlen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080015897 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040015898 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
15899 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080015900 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040015901 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080015902 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
15903 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
15904 "\x01\x01\x01\x01\x01\x01\x01\x01"
15905 "\x01\x01\x01\x01\x01\x01\x01\x01"
15906 "\x01\x01\x01\x01\x01\x01\x01\x01"
15907 "\x01\x01\x01\x01\x01\x01\x01\x01"
15908 "\x01\x01\x01\x01\x01\x01\x01\x01"
15909 "\x01\x01\x01\x01\x01\x01\x01\x01"
15910 "\x01\x01\x01\x01\x01\x01\x01\x01",
15911 .ilen = 64,
15912 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
15913 "\x00\x00\x00\x00\x00\x00\x00\x01",
15914 .alen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040015915 .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080015916 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
15917 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
15918 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
15919 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
15920 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
15921 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
15922 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
15923 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
15924 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
Adrian Hoban69435b92010-11-04 15:02:04 -040015925 .rlen = 80,
Herbert Xu85375442015-07-09 07:17:25 +080015926 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040015927 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15928 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
Herbert Xu85375442015-07-09 07:17:25 +080015929 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040015930 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080015931 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
15932 .input = "\xff\xff\xff\xff\xff\xff\xff\xff"
15933 "\xff\xff\xff\xff\xff\xff\xff\xff"
15934 "\xff\xff\xff\xff\xff\xff\xff\xff"
15935 "\xff\xff\xff\xff\xff\xff\xff\xff"
15936 "\xff\xff\xff\xff\xff\xff\xff\xff"
15937 "\xff\xff\xff\xff\xff\xff\xff\xff"
15938 "\xff\xff\xff\xff\xff\xff\xff\xff"
15939 "\xff\xff\xff\xff\xff\xff\xff\xff"
15940 "\xff\xff\xff\xff\xff\xff\xff\xff"
15941 "\xff\xff\xff\xff\xff\xff\xff\xff"
15942 "\xff\xff\xff\xff\xff\xff\xff\xff"
15943 "\xff\xff\xff\xff\xff\xff\xff\xff"
15944 "\xff\xff\xff\xff\xff\xff\xff\xff"
15945 "\xff\xff\xff\xff\xff\xff\xff\xff"
15946 "\xff\xff\xff\xff\xff\xff\xff\xff"
15947 "\xff\xff\xff\xff\xff\xff\xff\xff"
15948 "\xff\xff\xff\xff\xff\xff\xff\xff"
15949 "\xff\xff\xff\xff\xff\xff\xff\xff"
15950 "\xff\xff\xff\xff\xff\xff\xff\xff"
15951 "\xff\xff\xff\xff\xff\xff\xff\xff"
15952 "\xff\xff\xff\xff\xff\xff\xff\xff"
15953 "\xff\xff\xff\xff\xff\xff\xff\xff"
15954 "\xff\xff\xff\xff\xff\xff\xff\xff"
15955 "\xff\xff\xff\xff\xff\xff\xff\xff",
15956 .ilen = 192,
15957 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
15958 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
15959 "\x89\xab\xcd\xef",
15960 .alen = 20,
Adrian Hoban69435b92010-11-04 15:02:04 -040015961 .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
15962 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
15963 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
15964 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
15965 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
15966 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
15967 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
15968 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
15969 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
15970 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
15971 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
15972 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
15973 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
15974 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
15975 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
15976 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
15977 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
15978 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
15979 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
15980 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
15981 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
15982 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
15983 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
15984 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
15985 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
15986 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
15987 .rlen = 208,
Herbert Xu8f69b762015-06-16 13:54:26 +080015988 }, { /* From draft-mcgrew-gcm-test-01 */
15989 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
15990 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
15991 "\x2E\x44\x3B\x68",
15992 .klen = 20,
15993 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
15994 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
15995 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
15996 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
15997 "\x38\xD3\x01\x00\x00\x01\x00\x00"
15998 "\x00\x00\x00\x00\x04\x5F\x73\x69"
15999 "\x70\x04\x5F\x75\x64\x70\x03\x73"
16000 "\x69\x70\x09\x63\x79\x62\x65\x72"
16001 "\x63\x69\x74\x79\x02\x64\x6B\x00"
16002 "\x00\x21\x00\x01\x01\x02\x02\x01",
16003 .ilen = 72,
16004 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080016005 "\x00\x00\x00\x00\x49\x56\xED\x7E"
16006 "\x3B\x24\x4C\xFE",
16007 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016008 .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
16009 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
16010 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
16011 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
16012 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
16013 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
16014 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
16015 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
16016 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
16017 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
16018 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
16019 .rlen = 88,
16020 }, {
16021 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16022 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16023 "\xCA\xFE\xBA\xBE",
16024 .klen = 20,
16025 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16026 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
16027 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
16028 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
16029 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
16030 "\x00\x01\x00\x00\x00\x00\x00\x00"
16031 "\x03\x73\x69\x70\x09\x63\x79\x62"
16032 "\x65\x72\x63\x69\x74\x79\x02\x64"
16033 "\x6B\x00\x00\x01\x00\x01\x00\x01",
16034 .ilen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080016035 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16036 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16037 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016038 .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
16039 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
16040 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
16041 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
16042 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
16043 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
16044 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
16045 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
16046 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
16047 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
16048 .rlen = 80,
16049 }, {
16050 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16051 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16052 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16053 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16054 "\x11\x22\x33\x44",
16055 .klen = 36,
16056 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
16057 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
16058 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
16059 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
16060 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
16061 "\x70\x02\x40\x00\x20\xBF\x00\x00"
16062 "\x02\x04\x05\xB4\x01\x01\x04\x02"
16063 "\x01\x02\x02\x01",
16064 .ilen = 52,
Herbert Xu85375442015-07-09 07:17:25 +080016065 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
16066 "\x01\x02\x03\x04\x05\x06\x07\x08",
16067 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016068 .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
16069 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
16070 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
16071 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
16072 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
16073 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
16074 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
16075 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
16076 "\x15\x95\x6C\x96",
16077 .rlen = 68,
16078 }, {
16079 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
16080 "\x00\x00\x00\x00\x00\x00\x00\x00"
16081 "\x00\x00\x00\x00",
16082 .klen = 20,
16083 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
16084 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
16085 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
16086 "\x01\x01\x01\x01\x08\x00\x07\x5C"
16087 "\x02\x00\x44\x00\x61\x62\x63\x64"
16088 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16089 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16090 "\x75\x76\x77\x61\x62\x63\x64\x65"
16091 "\x66\x67\x68\x69\x01\x02\x02\x01",
16092 .ilen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080016093 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
16094 "\x00\x00\x00\x00\x00\x00\x00\x00",
16095 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016096 .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
16097 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
16098 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
16099 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
16100 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
16101 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
16102 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
16103 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
16104 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
16105 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
16106 .rlen = 80,
16107 }, {
16108 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16109 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16110 "\x57\x69\x0E\x43",
16111 .klen = 20,
16112 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16113 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
16114 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
16115 "\x01\x01\x01\x01\x08\x00\x08\x5C"
16116 "\x02\x00\x43\x00\x61\x62\x63\x64"
16117 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16118 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16119 "\x75\x76\x77\x61\x62\x63\x64\x65"
16120 "\x66\x67\x68\x69\x01\x02\x02\x01",
16121 .ilen = 64,
16122 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080016123 "\x10\x10\x10\x10\x4E\x28\x00\x00"
16124 "\xA2\xFC\xA1\xA3",
16125 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016126 .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
16127 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
16128 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
16129 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
16130 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16131 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16132 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
16133 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
16134 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
16135 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
16136 .rlen = 80,
16137 }, {
16138 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16139 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16140 "\x57\x69\x0E\x43",
16141 .klen = 20,
16142 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16143 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
16144 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
16145 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
16146 "\x01\x02\x02\x01",
16147 .ilen = 28,
16148 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080016149 "\x10\x10\x10\x10\x4E\x28\x00\x00"
16150 "\xA2\xFC\xA1\xA3",
16151 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016152 .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
16153 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
16154 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
16155 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
16156 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
16157 "\xE7\xD0\x5D\x35",
16158 .rlen = 44,
16159 }, {
16160 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16161 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16162 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16163 "\xCA\xFE\xBA\xBE",
16164 .klen = 28,
16165 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16166 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
16167 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
16168 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
16169 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
16170 "\x50\x10\x16\xD0\x75\x68\x00\x01",
16171 .ilen = 40,
Herbert Xu85375442015-07-09 07:17:25 +080016172 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16173 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16174 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016175 .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
16176 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
16177 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
16178 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
16179 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
16180 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
16181 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
16182 .rlen = 56,
16183 }, {
16184 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16185 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16186 "\xDE\xCA\xF8\x88",
16187 .klen = 20,
16188 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16189 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
16190 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
16191 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16192 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
16193 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
16194 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
16195 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
16196 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
16197 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
16198 "\x23\x01\x01\x01",
16199 .ilen = 76,
16200 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080016201 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16202 "\xCE\xFA\xCE\x74",
16203 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016204 .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
16205 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
16206 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
16207 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
16208 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
16209 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
16210 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
16211 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
16212 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
16213 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
16214 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
16215 "\x69\x62\x34\x36",
16216 .rlen = 92,
16217 }, {
16218 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16219 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16220 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16221 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16222 "\x73\x61\x6C\x74",
16223 .klen = 36,
16224 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16225 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
16226 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
16227 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
16228 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
16229 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
16230 .ilen = 40,
16231 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080016232 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16233 "\x69\x76\x65\x63",
16234 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016235 .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
16236 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
16237 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
16238 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
16239 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
16240 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
16241 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
16242 .rlen = 56,
16243 }, {
16244 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16245 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16246 "\x57\x69\x0E\x43",
16247 .klen = 20,
16248 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16249 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
16250 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
16251 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16252 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
16253 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
16254 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
16255 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
16256 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
16257 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
16258 "\x15\x01\x01\x01",
16259 .ilen = 76,
16260 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080016261 "\x10\x10\x10\x10\x4E\x28\x00\x00"
16262 "\xA2\xFC\xA1\xA3",
16263 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016264 .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
16265 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
16266 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
16267 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
16268 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
16269 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
16270 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
16271 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
16272 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
16273 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
16274 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
16275 "\x8C\xAA\x81\xE2",
16276 .rlen = 92,
16277 }, {
16278 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16279 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16280 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16281 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16282 "\x73\x61\x6C\x74",
16283 .klen = 36,
16284 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16285 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
16286 "\x6C\x65\x73\x01\x74\x68\x65\x01"
16287 "\x6E\x65\x74\x77\x65\x01\x64\x65"
16288 "\x66\x69\x6E\x65\x01\x74\x68\x65"
16289 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
16290 "\x67\x69\x65\x73\x01\x74\x68\x61"
16291 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
16292 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
16293 "\x72\x72\x6F\x77\x01\x02\x02\x01",
16294 .ilen = 72,
16295 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080016296 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16297 "\x69\x76\x65\x63",
16298 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016299 .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
16300 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
16301 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
16302 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
16303 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
16304 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
16305 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
16306 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
16307 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
16308 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
16309 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
16310 .rlen = 88,
16311 }, {
16312 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
16313 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
16314 "\xD9\x66\x42\x67",
16315 .klen = 20,
16316 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16317 .input = "\x01\x02\x02\x01",
16318 .ilen = 4,
Herbert Xu85375442015-07-09 07:17:25 +080016319 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
16320 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16321 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016322 .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
16323 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
16324 "\x04\xBE\xF2\x70",
16325 .rlen = 20,
16326 }, {
16327 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16328 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16329 "\xDE\xCA\xF8\x88",
16330 .klen = 20,
16331 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16332 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
16333 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
16334 "\x62\x65\x00\x01",
16335 .ilen = 20,
16336 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080016337 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16338 "\xCE\xFA\xCE\x74",
16339 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016340 .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
16341 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
16342 "\x43\x33\x21\x64\x41\x25\x03\x52"
16343 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
16344 "\x43\xAF\x8C\x3E",
16345 .rlen = 36,
16346 }, {
16347 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
16348 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
16349 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
16350 "\x62\x65\x66\x6F\x72\x65\x69\x61"
16351 "\x74\x75\x72\x6E",
16352 .klen = 36,
16353 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
16354 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16355 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16356 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16357 "\x02\x00\x07\x00\x61\x62\x63\x64"
16358 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16359 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16360 "\x01\x02\x02\x01",
16361 .ilen = 52,
16362 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
Herbert Xu85375442015-07-09 07:17:25 +080016363 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
16364 "\x67\x65\x74\x6D",
16365 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016366 .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
16367 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
16368 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
16369 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
16370 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
16371 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
16372 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
16373 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
16374 "\x9F\xB4\xC0\x53",
16375 .rlen = 68,
16376 }, {
16377 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16378 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16379 "\x57\x69\x0E\x43",
16380 .klen = 20,
16381 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16382 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16383 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16384 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16385 "\x02\x00\x07\x00\x61\x62\x63\x64"
16386 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16387 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16388 "\x01\x02\x02\x01",
16389 .ilen = 52,
16390 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080016391 "\x10\x10\x10\x10\x4E\x28\x00\x00"
16392 "\xA2\xFC\xA1\xA3",
16393 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016394 .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
16395 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
16396 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
16397 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
16398 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16399 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16400 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
16401 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
16402 "\x40\xD7\xCB\x05",
16403 .rlen = 68,
16404 }, {
16405 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16406 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16407 "\x22\x43\x3C\x64",
16408 .klen = 20,
16409 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
16410 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
16411 "\x61\x62\x63\x64\x65\x66\x67\x68"
16412 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
16413 "\x71\x72\x73\x74\x01\x02\x02\x01",
16414 .ilen = 32,
16415 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080016416 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
16417 "\x3A\x23\x4B\xFD",
16418 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016419 .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
16420 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
16421 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
16422 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
16423 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
16424 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
16425 .rlen = 48,
Adrian Hoban69435b92010-11-04 15:02:04 -040016426 }
16427};
16428
Eric Biggersb13b1e02017-02-24 15:46:59 -080016429static const struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = {
Herbert Xu85375442015-07-09 07:17:25 +080016430 { /* Generated using Crypto++ */
Adrian Hoban69435b92010-11-04 15:02:04 -040016431 .key = zeroed_string,
16432 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080016433 .iv = zeroed_string,
Adrian Hoban69435b92010-11-04 15:02:04 -040016434 .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
Herbert Xu85375442015-07-09 07:17:25 +080016435 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
16436 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
16437 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
Adrian Hoban69435b92010-11-04 15:02:04 -040016438 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080016439 .assoc = zeroed_string,
16440 .alen = 16,
16441 .result = zeroed_string,
16442 .rlen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040016443
Herbert Xu85375442015-07-09 07:17:25 +080016444 },{
Adrian Hoban69435b92010-11-04 15:02:04 -040016445 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16446 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080016447 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040016448 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080016449 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Adrian Hoban69435b92010-11-04 15:02:04 -040016450 .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
Herbert Xu85375442015-07-09 07:17:25 +080016451 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
16452 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
16453 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
Adrian Hoban69435b92010-11-04 15:02:04 -040016454 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080016455 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
16456 "\x00\x00\x00\x00\x00\x00\x00\x01",
16457 .alen = 16,
16458 .result = zeroed_string,
16459 .rlen = 16,
16460 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040016461 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16462 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080016463 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040016464 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080016465 .iv = zeroed_string,
Adrian Hoban69435b92010-11-04 15:02:04 -040016466 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080016467 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16468 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
16469 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
Adrian Hoban69435b92010-11-04 15:02:04 -040016470 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080016471 .assoc = zeroed_string,
16472 .alen = 16,
16473 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16474 "\x01\x01\x01\x01\x01\x01\x01\x01",
16475 .rlen = 16,
16476 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040016477 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16478 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080016479 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040016480 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080016481 .iv = zeroed_string,
Adrian Hoban69435b92010-11-04 15:02:04 -040016482 .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080016483 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
16484 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
16485 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
Adrian Hoban69435b92010-11-04 15:02:04 -040016486 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080016487 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
16488 "\x00\x00\x00\x00\x00\x00\x00\x00",
16489 .alen = 16,
16490 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16491 "\x01\x01\x01\x01\x01\x01\x01\x01",
16492 .rlen = 16,
Adrian Hoban69435b92010-11-04 15:02:04 -040016493
Herbert Xu85375442015-07-09 07:17:25 +080016494 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040016495 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16496 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080016497 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040016498 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080016499 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Adrian Hoban69435b92010-11-04 15:02:04 -040016500 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080016501 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16502 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
16503 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
Adrian Hoban69435b92010-11-04 15:02:04 -040016504 .ilen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080016505 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
16506 "\x00\x00\x00\x00\x00\x00\x00\x01",
16507 .alen = 16,
16508 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16509 "\x01\x01\x01\x01\x01\x01\x01\x01",
16510 .rlen = 16,
16511 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040016512 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
16513 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080016514 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040016515 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080016516 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Adrian Hoban69435b92010-11-04 15:02:04 -040016517 .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080016518 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
16519 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
16520 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
16521 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
16522 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
16523 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
16524 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
16525 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
16526 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
Adrian Hoban69435b92010-11-04 15:02:04 -040016527 .ilen = 80,
Herbert Xu85375442015-07-09 07:17:25 +080016528 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
16529 "\x00\x00\x00\x00\x00\x00\x00\x01",
16530 .alen = 16,
16531 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
16532 "\x01\x01\x01\x01\x01\x01\x01\x01"
16533 "\x01\x01\x01\x01\x01\x01\x01\x01"
16534 "\x01\x01\x01\x01\x01\x01\x01\x01"
16535 "\x01\x01\x01\x01\x01\x01\x01\x01"
16536 "\x01\x01\x01\x01\x01\x01\x01\x01"
16537 "\x01\x01\x01\x01\x01\x01\x01\x01"
16538 "\x01\x01\x01\x01\x01\x01\x01\x01",
16539 .rlen = 64,
16540 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040016541 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
16542 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
Herbert Xu85375442015-07-09 07:17:25 +080016543 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040016544 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080016545 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
Adrian Hoban69435b92010-11-04 15:02:04 -040016546 .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
16547 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
16548 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
16549 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
16550 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
16551 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
16552 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
16553 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
16554 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
16555 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
16556 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
16557 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
16558 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
16559 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
16560 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
16561 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
16562 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
16563 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
16564 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
16565 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
16566 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
16567 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
16568 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
16569 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
16570 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
16571 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
16572 .ilen = 208,
Herbert Xu85375442015-07-09 07:17:25 +080016573 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
16574 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
16575 "\x89\xab\xcd\xef",
16576 .alen = 20,
16577 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
16578 "\xff\xff\xff\xff\xff\xff\xff\xff"
16579 "\xff\xff\xff\xff\xff\xff\xff\xff"
16580 "\xff\xff\xff\xff\xff\xff\xff\xff"
16581 "\xff\xff\xff\xff\xff\xff\xff\xff"
16582 "\xff\xff\xff\xff\xff\xff\xff\xff"
16583 "\xff\xff\xff\xff\xff\xff\xff\xff"
16584 "\xff\xff\xff\xff\xff\xff\xff\xff"
16585 "\xff\xff\xff\xff\xff\xff\xff\xff"
16586 "\xff\xff\xff\xff\xff\xff\xff\xff"
16587 "\xff\xff\xff\xff\xff\xff\xff\xff"
16588 "\xff\xff\xff\xff\xff\xff\xff\xff"
16589 "\xff\xff\xff\xff\xff\xff\xff\xff"
16590 "\xff\xff\xff\xff\xff\xff\xff\xff"
16591 "\xff\xff\xff\xff\xff\xff\xff\xff"
16592 "\xff\xff\xff\xff\xff\xff\xff\xff"
16593 "\xff\xff\xff\xff\xff\xff\xff\xff"
16594 "\xff\xff\xff\xff\xff\xff\xff\xff"
16595 "\xff\xff\xff\xff\xff\xff\xff\xff"
16596 "\xff\xff\xff\xff\xff\xff\xff\xff"
16597 "\xff\xff\xff\xff\xff\xff\xff\xff"
16598 "\xff\xff\xff\xff\xff\xff\xff\xff"
16599 "\xff\xff\xff\xff\xff\xff\xff\xff"
16600 "\xff\xff\xff\xff\xff\xff\xff\xff",
16601 .rlen = 192,
Herbert Xu8f69b762015-06-16 13:54:26 +080016602 }, {
16603 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
16604 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
16605 "\x2E\x44\x3B\x68",
16606 .klen = 20,
16607 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
16608 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
16609 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
16610 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
16611 "\x38\xD3\x01\x00\x00\x01\x00\x00"
16612 "\x00\x00\x00\x00\x04\x5F\x73\x69"
16613 "\x70\x04\x5F\x75\x64\x70\x03\x73"
16614 "\x69\x70\x09\x63\x79\x62\x65\x72"
16615 "\x63\x69\x74\x79\x02\x64\x6B\x00"
16616 "\x00\x21\x00\x01\x01\x02\x02\x01",
16617 .rlen = 72,
16618 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080016619 "\x00\x00\x00\x00\x49\x56\xED\x7E"
16620 "\x3B\x24\x4C\xFE",
16621 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016622 .input = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
16623 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
16624 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
16625 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
16626 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
16627 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
16628 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
16629 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
16630 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
16631 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
16632 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
16633 .ilen = 88,
16634 }, {
16635 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16636 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16637 "\xCA\xFE\xBA\xBE",
16638 .klen = 20,
16639 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16640 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
16641 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
16642 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
16643 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
16644 "\x00\x01\x00\x00\x00\x00\x00\x00"
16645 "\x03\x73\x69\x70\x09\x63\x79\x62"
16646 "\x65\x72\x63\x69\x74\x79\x02\x64"
16647 "\x6B\x00\x00\x01\x00\x01\x00\x01",
16648 .rlen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080016649 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16650 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16651 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016652 .input = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
16653 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
16654 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
16655 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
16656 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
16657 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
16658 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
16659 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
16660 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
16661 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
16662 .ilen = 80,
16663 }, {
16664 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16665 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16666 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16667 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16668 "\x11\x22\x33\x44",
16669 .klen = 36,
16670 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
16671 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
16672 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
16673 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
16674 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
16675 "\x70\x02\x40\x00\x20\xBF\x00\x00"
16676 "\x02\x04\x05\xB4\x01\x01\x04\x02"
16677 "\x01\x02\x02\x01",
16678 .rlen = 52,
Herbert Xu85375442015-07-09 07:17:25 +080016679 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
16680 "\x01\x02\x03\x04\x05\x06\x07\x08",
16681 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016682 .input = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
16683 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
16684 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
16685 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
16686 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
16687 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
16688 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
16689 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
16690 "\x15\x95\x6C\x96",
16691 .ilen = 68,
16692 }, {
16693 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
16694 "\x00\x00\x00\x00\x00\x00\x00\x00"
16695 "\x00\x00\x00\x00",
16696 .klen = 20,
16697 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
16698 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
16699 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
16700 "\x01\x01\x01\x01\x08\x00\x07\x5C"
16701 "\x02\x00\x44\x00\x61\x62\x63\x64"
16702 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16703 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16704 "\x75\x76\x77\x61\x62\x63\x64\x65"
16705 "\x66\x67\x68\x69\x01\x02\x02\x01",
16706 .rlen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080016707 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
16708 "\x00\x00\x00\x00\x00\x00\x00\x00",
16709 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016710 .input = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
16711 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
16712 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
16713 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
16714 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
16715 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
16716 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
16717 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
16718 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
16719 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
16720 .ilen = 80,
16721 }, {
16722 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16723 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16724 "\x57\x69\x0E\x43",
16725 .klen = 20,
16726 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16727 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
16728 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
16729 "\x01\x01\x01\x01\x08\x00\x08\x5C"
16730 "\x02\x00\x43\x00\x61\x62\x63\x64"
16731 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16732 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16733 "\x75\x76\x77\x61\x62\x63\x64\x65"
16734 "\x66\x67\x68\x69\x01\x02\x02\x01",
16735 .rlen = 64,
16736 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080016737 "\x10\x10\x10\x10\x4E\x28\x00\x00"
16738 "\xA2\xFC\xA1\xA3",
16739 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016740 .input = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
16741 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
16742 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
16743 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
16744 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
16745 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
16746 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
16747 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
16748 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
16749 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
16750 .ilen = 80,
16751 }, {
16752 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16753 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16754 "\x57\x69\x0E\x43",
16755 .klen = 20,
16756 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16757 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
16758 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
16759 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
16760 "\x01\x02\x02\x01",
16761 .rlen = 28,
16762 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080016763 "\x10\x10\x10\x10\x4E\x28\x00\x00"
16764 "\xA2\xFC\xA1\xA3",
16765 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016766 .input = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
16767 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
16768 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
16769 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
16770 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
16771 "\xE7\xD0\x5D\x35",
16772 .ilen = 44,
16773 }, {
16774 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16775 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
16776 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
16777 "\xCA\xFE\xBA\xBE",
16778 .klen = 28,
16779 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16780 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
16781 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
16782 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
16783 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
16784 "\x50\x10\x16\xD0\x75\x68\x00\x01",
16785 .rlen = 40,
Herbert Xu85375442015-07-09 07:17:25 +080016786 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
16787 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
16788 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016789 .input = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
16790 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
16791 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
16792 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
16793 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
16794 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
16795 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
16796 .ilen = 56,
16797 }, {
16798 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16799 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16800 "\xDE\xCA\xF8\x88",
16801 .klen = 20,
16802 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16803 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
16804 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
16805 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16806 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
16807 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
16808 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
16809 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
16810 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
16811 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
16812 "\x23\x01\x01\x01",
16813 .rlen = 76,
16814 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080016815 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16816 "\xCE\xFA\xCE\x74",
16817 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016818 .input = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
16819 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
16820 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
16821 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
16822 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
16823 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
16824 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
16825 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
16826 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
16827 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
16828 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
16829 "\x69\x62\x34\x36",
16830 .ilen = 92,
16831 }, {
16832 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16833 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16834 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16835 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16836 "\x73\x61\x6C\x74",
16837 .klen = 36,
16838 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16839 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
16840 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
16841 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
16842 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
16843 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
16844 .rlen = 40,
16845 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080016846 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16847 "\x69\x76\x65\x63",
16848 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016849 .input = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
16850 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
16851 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
16852 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
16853 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
16854 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
16855 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
16856 .ilen = 56,
16857 }, {
16858 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16859 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16860 "\x57\x69\x0E\x43",
16861 .klen = 20,
16862 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16863 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
16864 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
16865 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
16866 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
16867 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
16868 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
16869 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
16870 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
16871 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
16872 "\x15\x01\x01\x01",
16873 .rlen = 76,
16874 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080016875 "\x10\x10\x10\x10\x4E\x28\x00\x00"
16876 "\xA2\xFC\xA1\xA3",
16877 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016878 .input = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
16879 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
16880 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
16881 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
16882 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
16883 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
16884 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
16885 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
16886 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
16887 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
16888 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
16889 "\x8C\xAA\x81\xE2",
16890 .ilen = 92,
16891 }, {
16892 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16893 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16894 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16895 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16896 "\x73\x61\x6C\x74",
16897 .klen = 36,
16898 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
16899 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
16900 "\x6C\x65\x73\x01\x74\x68\x65\x01"
16901 "\x6E\x65\x74\x77\x65\x01\x64\x65"
16902 "\x66\x69\x6E\x65\x01\x74\x68\x65"
16903 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
16904 "\x67\x69\x65\x73\x01\x74\x68\x61"
16905 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
16906 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
16907 "\x72\x72\x6F\x77\x01\x02\x02\x01",
16908 .rlen = 72,
16909 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080016910 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
16911 "\x69\x76\x65\x63",
16912 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016913 .input = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
16914 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
16915 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
16916 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
16917 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
16918 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
16919 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
16920 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
16921 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
16922 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
16923 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
16924 .ilen = 88,
16925 }, {
16926 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
16927 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
16928 "\xD9\x66\x42\x67",
16929 .klen = 20,
16930 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16931 .result = "\x01\x02\x02\x01",
16932 .rlen = 4,
Herbert Xu85375442015-07-09 07:17:25 +080016933 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
16934 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
16935 .alen = 16,
Herbert Xu8f69b762015-06-16 13:54:26 +080016936 .input = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
16937 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
16938 "\x04\xBE\xF2\x70",
16939 .ilen = 20,
16940 }, {
16941 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
16942 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
16943 "\xDE\xCA\xF8\x88",
16944 .klen = 20,
16945 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
16946 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
16947 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
16948 "\x62\x65\x00\x01",
16949 .rlen = 20,
16950 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080016951 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
16952 "\xCE\xFA\xCE\x74",
16953 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016954 .input = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
16955 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
16956 "\x43\x33\x21\x64\x41\x25\x03\x52"
16957 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
16958 "\x43\xAF\x8C\x3E",
16959 .ilen = 36,
16960 }, {
16961 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
16962 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
16963 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
16964 "\x62\x65\x66\x6F\x72\x65\x69\x61"
16965 "\x74\x75\x72\x6E",
16966 .klen = 36,
16967 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
16968 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16969 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16970 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16971 "\x02\x00\x07\x00\x61\x62\x63\x64"
16972 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
16973 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
16974 "\x01\x02\x02\x01",
16975 .rlen = 52,
16976 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
Herbert Xu85375442015-07-09 07:17:25 +080016977 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
16978 "\x67\x65\x74\x6D",
16979 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080016980 .input = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
16981 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
16982 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
16983 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
16984 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
16985 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
16986 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
16987 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
16988 "\x9F\xB4\xC0\x53",
16989 .ilen = 68,
16990 }, {
16991 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
16992 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
16993 "\x57\x69\x0E\x43",
16994 .klen = 20,
16995 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
16996 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
16997 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
16998 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
16999 "\x02\x00\x07\x00\x61\x62\x63\x64"
17000 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17001 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17002 "\x01\x02\x02\x01",
17003 .rlen = 52,
17004 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080017005 "\x10\x10\x10\x10\x4E\x28\x00\x00"
17006 "\xA2\xFC\xA1\xA3",
17007 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017008 .input = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
17009 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
17010 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
17011 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
17012 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
17013 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
17014 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
17015 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
17016 "\x40\xD7\xCB\x05",
17017 .ilen = 68,
17018 }, {
17019 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17020 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17021 "\x22\x43\x3C\x64",
17022 .klen = 20,
17023 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
17024 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
17025 "\x61\x62\x63\x64\x65\x66\x67\x68"
17026 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
17027 "\x71\x72\x73\x74\x01\x02\x02\x01",
17028 .rlen = 32,
17029 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080017030 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
17031 "\x3A\x23\x4B\xFD",
17032 .alen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017033 .input = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
17034 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
17035 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
17036 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
17037 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
17038 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
17039 .ilen = 48,
Adrian Hoban69435b92010-11-04 15:02:04 -040017040 }
17041};
17042
Eric Biggersb13b1e02017-02-24 15:46:59 -080017043static const struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = {
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030017044 { /* From draft-mcgrew-gcm-test-01 */
17045 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
17046 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
17047 "\x22\x43\x3c\x64",
17048 .klen = 20,
17049 .iv = zeroed_string,
Herbert Xu0af8fbc2015-06-16 13:54:19 +080017050 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
17051 "\x00\x00\x00\x00\x00\x00\x00\x00",
17052 .alen = 16,
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030017053 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17054 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17055 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17056 "\x02\x00\x07\x00\x61\x62\x63\x64"
17057 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17058 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17059 "\x01\x02\x02\x01",
17060 .ilen = 52,
17061 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17062 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17063 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17064 "\x02\x00\x07\x00\x61\x62\x63\x64"
17065 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17066 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17067 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
17068 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
17069 "\xe4\x09\x9a\xaa",
17070 .rlen = 68,
17071 }
17072};
17073
Eric Biggersb13b1e02017-02-24 15:46:59 -080017074static const struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = {
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030017075 { /* From draft-mcgrew-gcm-test-01 */
17076 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
17077 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
17078 "\x22\x43\x3c\x64",
17079 .klen = 20,
17080 .iv = zeroed_string,
Herbert Xu0af8fbc2015-06-16 13:54:19 +080017081 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
17082 "\x00\x00\x00\x00\x00\x00\x00\x00",
17083 .alen = 16,
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030017084 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17085 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17086 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17087 "\x02\x00\x07\x00\x61\x62\x63\x64"
17088 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17089 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17090 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
17091 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
17092 "\xe4\x09\x9a\xaa",
17093 .ilen = 68,
17094 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17095 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17096 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17097 "\x02\x00\x07\x00\x61\x62\x63\x64"
17098 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17099 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17100 "\x01\x02\x02\x01",
17101 .rlen = 52,
17102 }, { /* nearly same as previous, but should fail */
17103 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
17104 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
17105 "\x22\x43\x3c\x64",
17106 .klen = 20,
17107 .iv = zeroed_string,
Herbert Xu0af8fbc2015-06-16 13:54:19 +080017108 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
17109 "\x00\x00\x00\x00\x00\x00\x00\x00",
17110 .alen = 16,
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030017111 .input = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17112 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17113 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17114 "\x02\x00\x07\x00\x61\x62\x63\x64"
17115 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17116 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17117 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
17118 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
17119 "\x00\x00\x00\x00",
17120 .ilen = 68,
17121 .novrfy = 1,
17122 .result = "\x45\x00\x00\x30\xda\x3a\x00\x00"
17123 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
17124 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
17125 "\x02\x00\x07\x00\x61\x62\x63\x64"
17126 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
17127 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
17128 "\x01\x02\x02\x01",
17129 .rlen = 52,
17130 },
17131};
17132
Eric Biggersb13b1e02017-02-24 15:46:59 -080017133static const struct aead_testvec aes_ccm_enc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080017134 { /* From RFC 3610 */
17135 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17136 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17137 .klen = 16,
17138 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
17139 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17140 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
17141 .alen = 8,
17142 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17143 "\x10\x11\x12\x13\x14\x15\x16\x17"
17144 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
17145 .ilen = 23,
17146 .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
17147 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
17148 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
17149 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
17150 .rlen = 31,
17151 }, {
17152 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17153 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17154 .klen = 16,
17155 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
17156 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17157 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
17158 "\x08\x09\x0a\x0b",
17159 .alen = 12,
17160 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17161 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17162 "\x1c\x1d\x1e\x1f",
17163 .ilen = 20,
17164 .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
17165 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
17166 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
17167 "\x7d\x9c\x2d\x93",
17168 .rlen = 28,
17169 }, {
17170 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17171 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17172 .klen = 16,
17173 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
17174 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17175 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
17176 .alen = 8,
17177 .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17178 "\x10\x11\x12\x13\x14\x15\x16\x17"
17179 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17180 "\x20",
17181 .ilen = 25,
17182 .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
17183 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
17184 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
17185 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
17186 "\x7e\x5f\x4e",
17187 .rlen = 35,
17188 }, {
17189 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17190 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17191 .klen = 16,
17192 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
17193 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17194 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
17195 "\x08\x09\x0a\x0b",
17196 .alen = 12,
17197 .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17198 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17199 "\x1c\x1d\x1e",
17200 .ilen = 19,
17201 .result = "\x07\x34\x25\x94\x15\x77\x85\x15"
17202 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
17203 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
17204 "\x4d\x99\x99\x88\xdd",
17205 .rlen = 29,
17206 }, {
17207 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17208 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17209 .klen = 16,
17210 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
17211 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17212 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
17213 .alen = 8,
17214 .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
17215 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
17216 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
17217 .ilen = 24,
17218 .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
17219 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
17220 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
17221 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
17222 .rlen = 32,
17223 }, {
17224 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17225 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17226 .klen = 16,
17227 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
17228 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17229 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
17230 "\x20\xea\x60\xc0",
17231 .alen = 12,
17232 .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
17233 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
17234 "\x3a\x80\x3b\xa8\x7f",
17235 .ilen = 21,
17236 .result = "\x00\x97\x69\xec\xab\xdf\x48\x62"
17237 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
17238 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
17239 "\x5a\xe0\x70\x45\x51",
17240 .rlen = 29,
17241 }, {
17242 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17243 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17244 .klen = 16,
17245 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
17246 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17247 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
17248 .alen = 8,
17249 .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
17250 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
17251 "\x98\x09\xd6\x7d\xbe\xdd\x18",
17252 .ilen = 23,
17253 .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
17254 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
17255 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
17256 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
17257 "\xba",
17258 .rlen = 33,
Ard Biesheuvel45859882014-04-16 20:40:04 +080017259 }, {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017260 /* This is taken from FIPS CAVS. */
Ard Biesheuvel45859882014-04-16 20:40:04 +080017261 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
17262 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
17263 .klen = 16,
17264 .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
17265 .alen = 0,
17266 .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
17267 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
17268 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
17269 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
17270 .ilen = 32,
17271 .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
17272 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
17273 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
17274 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
17275 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
17276 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
17277 .rlen = 48,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017278 }, {
17279 .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
17280 "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
17281 .klen = 16,
17282 .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
17283 "\x30\x60\x15\x56\x00\x00\x00\x00",
17284 .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
17285 "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
17286 "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
17287 "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
17288 .alen = 32,
17289 .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
17290 "\xa9\x28\x63\xba\x12\xa3\x14\x85"
17291 "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
17292 "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
17293 .ilen = 32,
17294 .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
17295 "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
17296 "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
17297 "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
17298 "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
17299 "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
17300 .rlen = 48,
17301 }, {
17302 .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
17303 "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
17304 "\x53\x14\x73\x66\x8d\x88\xf6\x80",
17305 .klen = 24,
17306 .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
17307 "\x50\x20\xda\xe2\x00\x00\x00\x00",
17308 .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
17309 "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
17310 "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
17311 "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
17312 .alen = 32,
17313 .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
17314 "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
17315 .rlen = 16,
17316 }, {
17317 .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
17318 "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
17319 "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
17320 .klen = 24,
17321 .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
17322 "\xef\x09\x2e\x94\x00\x00\x00\x00",
17323 .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
17324 "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
17325 "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
17326 "\xe3\x00\x73\x69\x84\x69\x87\x79",
17327 .alen = 32,
17328 .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
17329 "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
17330 "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
17331 "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
17332 .ilen = 32,
17333 .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
17334 "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
17335 "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
17336 "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
17337 "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
17338 "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
17339 .rlen = 48,
17340 }, {
17341 .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
17342 "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
17343 "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
17344 "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
17345 .klen = 32,
17346 .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
17347 "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
17348 .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
17349 "\x78\x2b\x94\x02\x29\x0f\x42\x27"
17350 "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
17351 "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
17352 .alen = 32,
17353 .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
17354 "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
17355 "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
17356 "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
17357 .ilen = 32,
17358 .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
17359 "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
17360 "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
17361 "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
17362 "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
17363 .rlen = 40,
17364 }, {
17365 .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
17366 "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
17367 "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
17368 "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
17369 .klen = 32,
17370 .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
Laura Abbott1c68bb02017-02-28 14:07:25 -080017371 "\x43\xf6\x1e\x50\0\0\0\0",
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017372 .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
17373 "\x13\x02\x01\x0c\x83\x4c\x96\x35"
17374 "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
17375 "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
17376 .alen = 32,
17377 .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
17378 "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
17379 "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
17380 "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
17381 .ilen = 32,
17382 .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
17383 "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
17384 "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
17385 "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
17386 "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
17387 "\x7b\x72\x8a\xf7",
17388 .rlen = 44,
17389 }, {
17390 .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
17391 "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
17392 "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
17393 "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
17394 .klen = 32,
17395 .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
17396 "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
17397 .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
17398 "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
17399 "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
17400 "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
17401 .alen = 32,
17402 .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
17403 "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
17404 "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
17405 "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
17406 .ilen = 32,
17407 .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
17408 "\xef\xbb\x80\x21\x04\x6c\x58\x09"
17409 "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
17410 "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
17411 "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
17412 "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
17413 .rlen = 48,
Ard Biesheuvel45859882014-04-16 20:40:04 +080017414 }
Herbert Xuda7f0332008-07-31 17:08:25 +080017415};
17416
Eric Biggersb13b1e02017-02-24 15:46:59 -080017417static const struct aead_testvec aes_ccm_dec_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080017418 { /* From RFC 3610 */
17419 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17420 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17421 .klen = 16,
17422 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
17423 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17424 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
17425 .alen = 8,
17426 .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
17427 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
17428 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
17429 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
17430 .ilen = 31,
17431 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17432 "\x10\x11\x12\x13\x14\x15\x16\x17"
17433 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
17434 .rlen = 23,
17435 }, {
17436 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17437 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17438 .klen = 16,
17439 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
17440 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17441 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
17442 "\x08\x09\x0a\x0b",
17443 .alen = 12,
17444 .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
17445 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
17446 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
17447 "\x7d\x9c\x2d\x93",
17448 .ilen = 28,
17449 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17450 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17451 "\x1c\x1d\x1e\x1f",
17452 .rlen = 20,
17453 }, {
17454 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17455 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17456 .klen = 16,
17457 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
17458 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17459 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
17460 .alen = 8,
17461 .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
17462 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
17463 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
17464 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
17465 "\x7e\x5f\x4e",
17466 .ilen = 35,
17467 .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17468 "\x10\x11\x12\x13\x14\x15\x16\x17"
17469 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
17470 "\x20",
17471 .rlen = 25,
17472 }, {
17473 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
17474 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
17475 .klen = 16,
17476 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
17477 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
17478 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
17479 "\x08\x09\x0a\x0b",
17480 .alen = 12,
17481 .input = "\x07\x34\x25\x94\x15\x77\x85\x15"
17482 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
17483 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
17484 "\x4d\x99\x99\x88\xdd",
17485 .ilen = 29,
17486 .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
17487 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
17488 "\x1c\x1d\x1e",
17489 .rlen = 19,
17490 }, {
17491 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17492 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17493 .klen = 16,
17494 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
17495 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17496 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
17497 .alen = 8,
17498 .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
17499 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
17500 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
17501 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
17502 .ilen = 32,
17503 .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
17504 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
17505 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
17506 .rlen = 24,
17507 }, {
17508 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17509 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17510 .klen = 16,
17511 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
17512 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17513 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
17514 "\x20\xea\x60\xc0",
17515 .alen = 12,
17516 .input = "\x00\x97\x69\xec\xab\xdf\x48\x62"
17517 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
17518 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
17519 "\x5a\xe0\x70\x45\x51",
17520 .ilen = 29,
17521 .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
17522 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
17523 "\x3a\x80\x3b\xa8\x7f",
17524 .rlen = 21,
17525 }, {
17526 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
17527 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
17528 .klen = 16,
17529 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
17530 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
17531 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
17532 .alen = 8,
17533 .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
17534 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
17535 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
17536 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
17537 "\xba",
17538 .ilen = 33,
17539 .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
17540 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
17541 "\x98\x09\xd6\x7d\xbe\xdd\x18",
17542 .rlen = 23,
Jarod Wilson5d667322009-05-04 19:23:40 +080017543 }, {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017544 /* This is taken from FIPS CAVS. */
Jarod Wilson5d667322009-05-04 19:23:40 +080017545 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017546 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
17547 .klen = 16,
17548 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
17549 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017550 .alen = 0,
17551 .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
17552 .ilen = 8,
17553 .result = "\x00",
17554 .rlen = 0,
17555 .novrfy = 1,
17556 }, {
17557 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017558 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
17559 .klen = 16,
17560 .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81"
17561 "\x7f\x88\x94\x68\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017562 .alen = 0,
17563 .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
17564 .ilen = 8,
17565 .result = "\x00",
17566 .rlen = 0,
17567 }, {
17568 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017569 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
17570 .klen = 16,
17571 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
17572 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017573 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
17574 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
17575 "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
17576 "\xd8\x94\x99\x91\x81\x54\x62\x57",
17577 .alen = 32,
17578 .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
17579 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
17580 "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
17581 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
17582 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
17583 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
17584 .ilen = 48,
17585 .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
17586 "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
17587 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
17588 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
17589 .rlen = 32,
17590 .novrfy = 1,
17591 }, {
17592 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017593 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
17594 .klen = 16,
17595 .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
17596 "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017597 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
17598 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
17599 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
17600 "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
17601 .alen = 32,
17602 .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
17603 "\xad\x83\x52\x6d\x71\x03\x25\x1c"
17604 "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
17605 "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
17606 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
17607 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
17608 .ilen = 48,
17609 .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
17610 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
17611 "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
17612 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
17613 .rlen = 32,
17614 }, {
17615 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
17616 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017617 "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
17618 .klen = 24,
17619 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
17620 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017621 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
17622 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
17623 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
17624 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
17625 .alen = 32,
17626 .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
17627 .ilen = 8,
17628 .result = "\x00",
17629 .rlen = 0,
17630 }, {
17631 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
17632 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017633 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
17634 .klen = 24,
17635 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
17636 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017637 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
17638 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
17639 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
17640 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
17641 .alen = 32,
17642 .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
17643 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
17644 "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
17645 "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
17646 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
17647 .ilen = 40,
17648 .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
17649 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
17650 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
17651 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
17652 .rlen = 32,
17653 }, {
17654 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
17655 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017656 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
17657 .klen = 24,
17658 .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
17659 "\xad\x71\xaa\x1f\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017660 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
17661 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
17662 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
17663 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
17664 .alen = 32,
17665 .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
17666 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
17667 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
17668 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
17669 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
17670 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
17671 .ilen = 48,
17672 .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
17673 "\x99\x2a\xa8\xca\x04\x25\x45\x90"
17674 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
17675 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
17676 .rlen = 32,
17677 .novrfy = 1,
17678 }, {
17679 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
17680 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
17681 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017682 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
17683 .klen = 32,
17684 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
17685 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017686 .alen = 0,
17687 .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
17688 .ilen = 8,
17689 .result = "\x00",
17690 .rlen = 0,
17691 }, {
17692 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
17693 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
17694 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017695 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
17696 .klen = 32,
17697 .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
17698 "\x36\x58\xe0\x6b\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017699 .alen = 0,
17700 .input = "\x48\x01\x5e\x02\x24\x04\x66\x47"
17701 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
17702 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
17703 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
17704 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
17705 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
17706 .ilen = 48,
17707 .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
17708 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
17709 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
17710 "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
17711 .rlen = 32,
17712 .novrfy = 1,
17713 }, {
17714 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
17715 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
17716 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017717 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
17718 .klen = 32,
17719 .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
17720 "\x44\x89\x40\x7b\x00\x00\x00\x00",
Jarod Wilson5d667322009-05-04 19:23:40 +080017721 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
17722 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
17723 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
17724 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
17725 .alen = 32,
17726 .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
17727 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
17728 "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
17729 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
17730 "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
17731 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
17732 .ilen = 48,
17733 .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
17734 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
17735 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
17736 "\x04\x49\x3b\x19\x93\x57\x25\x5d",
17737 .rlen = 32,
17738 },
17739};
17740
Jarod Wilsone08ca2d2009-05-04 19:46:29 +080017741/*
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017742 * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
17743 * use a 13-byte nonce, we only support an 11-byte nonce. Worse,
17744 * they use AD lengths which are not valid ESP header lengths.
17745 *
17746 * These vectors are copied/generated from the ones for rfc4106 with
17747 * the key truncated by one byte..
17748 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080017749static const struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080017750 { /* Generated using Crypto++ */
17751 .key = zeroed_string,
17752 .klen = 19,
17753 .iv = zeroed_string,
17754 .input = zeroed_string,
17755 .ilen = 16,
17756 .assoc = zeroed_string,
17757 .alen = 16,
17758 .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
17759 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
17760 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
17761 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
17762 .rlen = 32,
17763 },{
17764 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17765 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17766 "\x00\x00\x00",
17767 .klen = 19,
17768 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
17769 .input = zeroed_string,
17770 .ilen = 16,
17771 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
17772 "\x00\x00\x00\x00\x00\x00\x00\x01",
17773 .alen = 16,
17774 .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
17775 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
17776 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
17777 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
17778 .rlen = 32,
17779
17780 }, {
17781 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17782 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17783 "\x00\x00\x00",
17784 .klen = 19,
17785 .iv = zeroed_string,
17786 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
17787 "\x01\x01\x01\x01\x01\x01\x01\x01",
17788 .ilen = 16,
17789 .assoc = zeroed_string,
17790 .alen = 16,
17791 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
17792 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
17793 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
17794 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
17795 .rlen = 32,
17796 }, {
17797 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17798 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17799 "\x00\x00\x00",
17800 .klen = 19,
17801 .iv = zeroed_string,
17802 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
17803 "\x01\x01\x01\x01\x01\x01\x01\x01",
17804 .ilen = 16,
17805 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17806 "\x00\x00\x00\x00\x00\x00\x00\x00",
17807 .alen = 16,
17808 .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
17809 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
17810 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
17811 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
17812 .rlen = 32,
17813 }, {
17814 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17815 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17816 "\x00\x00\x00",
17817 .klen = 19,
17818 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
17819 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
17820 "\x01\x01\x01\x01\x01\x01\x01\x01",
17821 .ilen = 16,
17822 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17823 "\x00\x00\x00\x00\x00\x00\x00\x01",
17824 .alen = 16,
17825 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
17826 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
17827 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
17828 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
17829 .rlen = 32,
17830 }, {
17831 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17832 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17833 "\x00\x00\x00",
17834 .klen = 19,
17835 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
17836 .input = "\x01\x01\x01\x01\x01\x01\x01\x01"
17837 "\x01\x01\x01\x01\x01\x01\x01\x01"
17838 "\x01\x01\x01\x01\x01\x01\x01\x01"
17839 "\x01\x01\x01\x01\x01\x01\x01\x01"
17840 "\x01\x01\x01\x01\x01\x01\x01\x01"
17841 "\x01\x01\x01\x01\x01\x01\x01\x01"
17842 "\x01\x01\x01\x01\x01\x01\x01\x01"
17843 "\x01\x01\x01\x01\x01\x01\x01\x01",
17844 .ilen = 64,
17845 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17846 "\x00\x00\x00\x00\x00\x00\x00\x01",
17847 .alen = 16,
17848 .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
17849 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
17850 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
17851 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
17852 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
17853 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
17854 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
17855 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
17856 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
17857 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
17858 .rlen = 80,
17859 }, {
17860 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
17861 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
17862 "\x00\x00\x00",
17863 .klen = 19,
17864 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
17865 .input = "\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 "\xff\xff\xff\xff\xff\xff\xff\xff"
17883 "\xff\xff\xff\xff\xff\xff\xff\xff"
17884 "\xff\xff\xff\xff\xff\xff\xff\xff"
17885 "\xff\xff\xff\xff\xff\xff\xff\xff"
17886 "\xff\xff\xff\xff\xff\xff\xff\xff"
17887 "\xff\xff\xff\xff\xff\xff\xff\xff"
17888 "\xff\xff\xff\xff\xff\xff\xff\xff",
17889 .ilen = 192,
17890 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
17891 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
17892 "\x89\xab\xcd\xef",
17893 .alen = 20,
17894 .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
17895 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
17896 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
17897 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
17898 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
17899 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
17900 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
17901 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
17902 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
17903 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
17904 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
17905 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
17906 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
17907 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
17908 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
17909 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
17910 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
17911 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
17912 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
17913 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
17914 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
17915 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
17916 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
17917 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
17918 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
17919 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
17920 .rlen = 208,
17921 }, { /* From draft-mcgrew-gcm-test-01 */
17922 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17923 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17924 "\x2E\x44\x3B",
17925 .klen = 19,
17926 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
17927 .input = "\x45\x00\x00\x48\x69\x9A\x00\x00"
17928 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
17929 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
17930 "\x38\xD3\x01\x00\x00\x01\x00\x00"
17931 "\x00\x00\x00\x00\x04\x5F\x73\x69"
17932 "\x70\x04\x5F\x75\x64\x70\x03\x73"
17933 "\x69\x70\x09\x63\x79\x62\x65\x72"
17934 "\x63\x69\x74\x79\x02\x64\x6B\x00"
17935 "\x00\x21\x00\x01\x01\x02\x02\x01",
17936 .ilen = 72,
17937 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
17938 "\x00\x00\x00\x00\x49\x56\xED\x7E"
17939 "\x3B\x24\x4C\xFE",
17940 .alen = 20,
17941 .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
17942 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
17943 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
17944 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
17945 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
17946 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
17947 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
17948 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
17949 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
17950 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
17951 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
17952 .rlen = 88,
17953 }, {
17954 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17955 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17956 "\xCA\xFE\xBA",
17957 .klen = 19,
17958 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17959 .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
17960 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
17961 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
17962 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
17963 "\x00\x01\x00\x00\x00\x00\x00\x00"
17964 "\x03\x73\x69\x70\x09\x63\x79\x62"
17965 "\x65\x72\x63\x69\x74\x79\x02\x64"
17966 "\x6B\x00\x00\x01\x00\x01\x00\x01",
17967 .ilen = 64,
17968 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17969 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17970 .alen = 16,
17971 .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
17972 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
17973 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
17974 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
17975 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
17976 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
17977 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
17978 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
17979 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
17980 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
17981 .rlen = 80,
17982 }, {
17983 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17984 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17985 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17986 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17987 "\x11\x22\x33",
17988 .klen = 35,
17989 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
17990 .input = "\x45\x00\x00\x30\x69\xA6\x40\x00"
17991 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
17992 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
17993 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
17994 "\x70\x02\x40\x00\x20\xBF\x00\x00"
17995 "\x02\x04\x05\xB4\x01\x01\x04\x02"
17996 "\x01\x02\x02\x01",
17997 .ilen = 52,
17998 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
17999 "\x01\x02\x03\x04\x05\x06\x07\x08",
18000 .alen = 16,
18001 .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
18002 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
18003 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
18004 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
18005 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
18006 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
18007 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
18008 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
18009 "\x5A\x48\x6A\x3E",
18010 .rlen = 68,
18011 }, {
18012 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
18013 "\x00\x00\x00\x00\x00\x00\x00\x00"
18014 "\x00\x00\x00",
18015 .klen = 19,
18016 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
18017 .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
18018 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
18019 "\x01\x01\x01\x01\x08\x00\x07\x5C"
18020 "\x02\x00\x44\x00\x61\x62\x63\x64"
18021 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18022 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18023 "\x75\x76\x77\x61\x62\x63\x64\x65"
18024 "\x66\x67\x68\x69\x01\x02\x02\x01",
18025 .ilen = 64,
18026 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
18027 "\x00\x00\x00\x00\x00\x00\x00\x00",
18028 .alen = 16,
18029 .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
18030 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
18031 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
18032 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
18033 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
18034 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
18035 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
18036 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
18037 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
18038 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
18039 .rlen = 80,
18040 }, {
18041 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18042 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18043 "\x57\x69\x0E",
18044 .klen = 19,
18045 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18046 .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
18047 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
18048 "\x01\x01\x01\x01\x08\x00\x08\x5C"
18049 "\x02\x00\x43\x00\x61\x62\x63\x64"
18050 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18051 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18052 "\x75\x76\x77\x61\x62\x63\x64\x65"
18053 "\x66\x67\x68\x69\x01\x02\x02\x01",
18054 .ilen = 64,
18055 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18056 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18057 "\xA2\xFC\xA1\xA3",
18058 .alen = 20,
18059 .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
18060 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
18061 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
18062 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
18063 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18064 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18065 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
18066 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
18067 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
18068 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
18069 .rlen = 80,
18070 }, {
18071 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18072 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18073 "\x57\x69\x0E",
18074 .klen = 19,
18075 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18076 .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
18077 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
18078 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
18079 "\x01\x02\x02\x01",
18080 .ilen = 28,
18081 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18082 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18083 "\xA2\xFC\xA1\xA3",
18084 .alen = 20,
18085 .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
18086 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
18087 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
18088 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
18089 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
18090 "\x08\xB4\x22\xE4",
18091 .rlen = 44,
18092 }, {
18093 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18094 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18095 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18096 "\xCA\xFE\xBA",
18097 .klen = 27,
18098 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18099 .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
18100 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
18101 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
18102 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
18103 "\x50\x10\x16\xD0\x75\x68\x00\x01",
18104 .ilen = 40,
18105 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18106 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18107 .alen = 16,
18108 .result = "\x05\x22\x15\xD1\x52\x56\x85\x04"
18109 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
18110 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
18111 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
18112 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
18113 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
18114 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
18115 .rlen = 56,
18116 }, {
18117 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18118 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18119 "\xDE\xCA\xF8",
18120 .klen = 19,
18121 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18122 .input = "\x45\x00\x00\x49\x33\xBA\x00\x00"
18123 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
18124 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18125 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
18126 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
18127 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
18128 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
18129 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
18130 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
18131 "\x23\x01\x01\x01",
18132 .ilen = 76,
18133 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
18134 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18135 "\xCE\xFA\xCE\x74",
18136 .alen = 20,
18137 .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
18138 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
18139 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
18140 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
18141 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
18142 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
18143 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
18144 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
18145 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
18146 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
18147 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
18148 "\x12\x25\x0B\xF9",
18149 .rlen = 92,
18150 }, {
18151 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18152 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18153 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18154 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18155 "\x73\x61\x6C",
18156 .klen = 35,
18157 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18158 .input = "\x45\x08\x00\x28\x73\x2C\x00\x00"
18159 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
18160 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
18161 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
18162 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
18163 .ilen = 40,
18164 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18165 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18166 "\x69\x76\x65\x63",
18167 .alen = 20,
18168 .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
18169 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
18170 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
18171 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
18172 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
18173 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
18174 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
18175 .rlen = 56,
18176 }, {
18177 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18178 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18179 "\x57\x69\x0E",
18180 .klen = 19,
18181 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18182 .input = "\x45\x00\x00\x49\x33\x3E\x00\x00"
18183 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
18184 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18185 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
18186 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
18187 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
18188 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
18189 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
18190 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
18191 "\x15\x01\x01\x01",
18192 .ilen = 76,
18193 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18194 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18195 "\xA2\xFC\xA1\xA3",
18196 .alen = 20,
18197 .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
18198 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
18199 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
18200 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
18201 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
18202 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
18203 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
18204 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
18205 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
18206 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
18207 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
18208 "\xCC\xF7\x46\x6F",
18209 .rlen = 92,
18210 }, {
18211 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18212 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18213 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18214 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18215 "\x73\x61\x6C",
18216 .klen = 35,
18217 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18218 .input = "\x63\x69\x73\x63\x6F\x01\x72\x75"
18219 "\x6C\x65\x73\x01\x74\x68\x65\x01"
18220 "\x6E\x65\x74\x77\x65\x01\x64\x65"
18221 "\x66\x69\x6E\x65\x01\x74\x68\x65"
18222 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
18223 "\x67\x69\x65\x73\x01\x74\x68\x61"
18224 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
18225 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
18226 "\x72\x72\x6F\x77\x01\x02\x02\x01",
18227 .ilen = 72,
18228 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18229 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18230 "\x69\x76\x65\x63",
18231 .alen = 20,
18232 .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
18233 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
18234 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
18235 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
18236 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
18237 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
18238 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
18239 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
18240 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
18241 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
18242 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
18243 .rlen = 88,
18244 }, {
18245 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
18246 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
18247 "\xD9\x66\x42",
18248 .klen = 19,
18249 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18250 .input = "\x01\x02\x02\x01",
18251 .ilen = 4,
18252 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
18253 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18254 .alen = 16,
18255 .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
18256 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
18257 "\xF7\x61\x24\x62",
18258 .rlen = 20,
18259 }, {
18260 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18261 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18262 "\xDE\xCA\xF8",
18263 .klen = 19,
18264 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18265 .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
18266 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
18267 "\x62\x65\x00\x01",
18268 .ilen = 20,
18269 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
18270 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18271 "\xCE\xFA\xCE\x74",
18272 .alen = 20,
18273 .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
18274 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
18275 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
18276 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
18277 "\x17\x17\x65\xAD",
18278 .rlen = 36,
18279 }, {
18280 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
18281 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
18282 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
18283 "\x62\x65\x66\x6F\x72\x65\x69\x61"
18284 "\x74\x75\x72",
18285 .klen = 35,
18286 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
18287 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18288 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18289 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18290 "\x02\x00\x07\x00\x61\x62\x63\x64"
18291 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18292 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18293 "\x01\x02\x02\x01",
18294 .ilen = 52,
18295 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
18296 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
18297 "\x67\x65\x74\x6D",
18298 .alen = 20,
18299 .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
18300 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
18301 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
18302 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
18303 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
18304 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
18305 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
18306 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
18307 "\x39\xDB\xC8\xDC",
18308 .rlen = 68,
18309 }, {
18310 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18311 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18312 "\x57\x69\x0E",
18313 .klen = 19,
18314 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18315 .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18316 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18317 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18318 "\x02\x00\x07\x00\x61\x62\x63\x64"
18319 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18320 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18321 "\x01\x02\x02\x01",
18322 .ilen = 52,
18323 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
18324 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18325 "\xA2\xFC\xA1\xA3",
18326 .alen = 20,
18327 .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
18328 "\x10\x60\x54\x25\xEB\x80\x04\x93"
18329 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
18330 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
18331 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18332 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18333 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
18334 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
18335 "\xF4\x95\x5D\x4F",
18336 .rlen = 68,
18337 }, {
18338 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18339 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18340 "\x22\x43\x3C",
18341 .klen = 19,
18342 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
18343 .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
18344 "\x61\x62\x63\x64\x65\x66\x67\x68"
18345 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
18346 "\x71\x72\x73\x74\x01\x02\x02\x01",
18347 .ilen = 32,
18348 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
18349 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
18350 "\x3A\x23\x4B\xFD",
18351 .alen = 20,
18352 .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
18353 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
18354 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
18355 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
18356 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
18357 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
18358 .rlen = 48,
18359 }
18360};
18361
Eric Biggersb13b1e02017-02-24 15:46:59 -080018362static const struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018363 { /* Generated using Crypto++ */
18364 .key = zeroed_string,
18365 .klen = 19,
18366 .iv = zeroed_string,
18367 .result = zeroed_string,
18368 .rlen = 16,
18369 .assoc = zeroed_string,
18370 .alen = 16,
18371 .input = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
18372 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
18373 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
18374 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
18375 .ilen = 32,
18376 },{
18377 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18378 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18379 "\x00\x00\x00",
18380 .klen = 19,
18381 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
18382 .result = zeroed_string,
18383 .rlen = 16,
18384 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
18385 "\x00\x00\x00\x00\x00\x00\x00\x01",
18386 .alen = 16,
18387 .input = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
18388 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
18389 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
18390 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
18391 .ilen = 32,
18392
18393 }, {
18394 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18395 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18396 "\x00\x00\x00",
18397 .klen = 19,
18398 .iv = zeroed_string,
18399 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18400 "\x01\x01\x01\x01\x01\x01\x01\x01",
18401 .rlen = 16,
18402 .assoc = zeroed_string,
18403 .alen = 16,
18404 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18405 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18406 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
18407 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
18408 .ilen = 32,
18409 }, {
18410 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18411 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18412 "\x00\x00\x00",
18413 .klen = 19,
18414 .iv = zeroed_string,
18415 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18416 "\x01\x01\x01\x01\x01\x01\x01\x01",
18417 .rlen = 16,
18418 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
18419 "\x00\x00\x00\x00\x00\x00\x00\x00",
18420 .alen = 16,
18421 .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
18422 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18423 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
18424 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
18425 .ilen = 32,
18426 }, {
18427 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18428 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18429 "\x00\x00\x00",
18430 .klen = 19,
18431 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
18432 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18433 "\x01\x01\x01\x01\x01\x01\x01\x01",
18434 .rlen = 16,
18435 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
18436 "\x00\x00\x00\x00\x00\x00\x00\x01",
18437 .alen = 16,
18438 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18439 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18440 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
18441 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
18442 .ilen = 32,
18443 }, {
18444 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18445 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18446 "\x00\x00\x00",
18447 .klen = 19,
18448 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
18449 .result = "\x01\x01\x01\x01\x01\x01\x01\x01"
18450 "\x01\x01\x01\x01\x01\x01\x01\x01"
18451 "\x01\x01\x01\x01\x01\x01\x01\x01"
18452 "\x01\x01\x01\x01\x01\x01\x01\x01"
18453 "\x01\x01\x01\x01\x01\x01\x01\x01"
18454 "\x01\x01\x01\x01\x01\x01\x01\x01"
18455 "\x01\x01\x01\x01\x01\x01\x01\x01"
18456 "\x01\x01\x01\x01\x01\x01\x01\x01",
18457 .rlen = 64,
18458 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
18459 "\x00\x00\x00\x00\x00\x00\x00\x01",
18460 .alen = 16,
18461 .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
18462 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18463 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
18464 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
18465 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
18466 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
18467 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
18468 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
18469 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
18470 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
18471 .ilen = 80,
18472 }, {
18473 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
18474 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18475 "\x00\x00\x00",
18476 .klen = 19,
18477 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
18478 .result = "\xff\xff\xff\xff\xff\xff\xff\xff"
18479 "\xff\xff\xff\xff\xff\xff\xff\xff"
18480 "\xff\xff\xff\xff\xff\xff\xff\xff"
18481 "\xff\xff\xff\xff\xff\xff\xff\xff"
18482 "\xff\xff\xff\xff\xff\xff\xff\xff"
18483 "\xff\xff\xff\xff\xff\xff\xff\xff"
18484 "\xff\xff\xff\xff\xff\xff\xff\xff"
18485 "\xff\xff\xff\xff\xff\xff\xff\xff"
18486 "\xff\xff\xff\xff\xff\xff\xff\xff"
18487 "\xff\xff\xff\xff\xff\xff\xff\xff"
18488 "\xff\xff\xff\xff\xff\xff\xff\xff"
18489 "\xff\xff\xff\xff\xff\xff\xff\xff"
18490 "\xff\xff\xff\xff\xff\xff\xff\xff"
18491 "\xff\xff\xff\xff\xff\xff\xff\xff"
18492 "\xff\xff\xff\xff\xff\xff\xff\xff"
18493 "\xff\xff\xff\xff\xff\xff\xff\xff"
18494 "\xff\xff\xff\xff\xff\xff\xff\xff"
18495 "\xff\xff\xff\xff\xff\xff\xff\xff"
18496 "\xff\xff\xff\xff\xff\xff\xff\xff"
18497 "\xff\xff\xff\xff\xff\xff\xff\xff"
18498 "\xff\xff\xff\xff\xff\xff\xff\xff"
18499 "\xff\xff\xff\xff\xff\xff\xff\xff"
18500 "\xff\xff\xff\xff\xff\xff\xff\xff"
18501 "\xff\xff\xff\xff\xff\xff\xff\xff",
18502 .rlen = 192,
18503 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
18504 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
18505 "\x89\xab\xcd\xef",
18506 .alen = 20,
18507 .input = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
18508 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
18509 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
18510 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
18511 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
18512 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
18513 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
18514 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
18515 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
18516 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
18517 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
18518 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
18519 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
18520 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
18521 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
18522 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
18523 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
18524 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
18525 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
18526 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
18527 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
18528 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
18529 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
18530 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
18531 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
18532 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
18533 .ilen = 208,
18534 }, { /* From draft-mcgrew-gcm-test-01 */
18535 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18536 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18537 "\x2E\x44\x3B",
18538 .klen = 19,
18539 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
18540 .result = "\x45\x00\x00\x48\x69\x9A\x00\x00"
18541 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
18542 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
18543 "\x38\xD3\x01\x00\x00\x01\x00\x00"
18544 "\x00\x00\x00\x00\x04\x5F\x73\x69"
18545 "\x70\x04\x5F\x75\x64\x70\x03\x73"
18546 "\x69\x70\x09\x63\x79\x62\x65\x72"
18547 "\x63\x69\x74\x79\x02\x64\x6B\x00"
18548 "\x00\x21\x00\x01\x01\x02\x02\x01",
18549 .rlen = 72,
18550 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
18551 "\x00\x00\x00\x00\x49\x56\xED\x7E"
18552 "\x3B\x24\x4C\xFE",
18553 .alen = 20,
18554 .input = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
18555 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
18556 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
18557 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
18558 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
18559 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
18560 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
18561 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
18562 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
18563 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
18564 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
18565 .ilen = 88,
18566 }, {
18567 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18568 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18569 "\xCA\xFE\xBA",
18570 .klen = 19,
18571 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18572 .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
18573 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
18574 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
18575 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
18576 "\x00\x01\x00\x00\x00\x00\x00\x00"
18577 "\x03\x73\x69\x70\x09\x63\x79\x62"
18578 "\x65\x72\x63\x69\x74\x79\x02\x64"
18579 "\x6B\x00\x00\x01\x00\x01\x00\x01",
18580 .rlen = 64,
18581 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18582 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18583 .alen = 16,
18584 .input = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
18585 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
18586 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
18587 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
18588 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
18589 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
18590 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
18591 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
18592 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
18593 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
18594 .ilen = 80,
18595 }, {
18596 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18597 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18598 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18599 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18600 "\x11\x22\x33",
18601 .klen = 35,
18602 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
18603 .result = "\x45\x00\x00\x30\x69\xA6\x40\x00"
18604 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
18605 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
18606 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
18607 "\x70\x02\x40\x00\x20\xBF\x00\x00"
18608 "\x02\x04\x05\xB4\x01\x01\x04\x02"
18609 "\x01\x02\x02\x01",
18610 .rlen = 52,
18611 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
18612 "\x01\x02\x03\x04\x05\x06\x07\x08",
18613 .alen = 16,
18614 .input = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
18615 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
18616 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
18617 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
18618 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
18619 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
18620 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
18621 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
18622 "\x5A\x48\x6A\x3E",
18623 .ilen = 68,
18624 }, {
18625 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
18626 "\x00\x00\x00\x00\x00\x00\x00\x00"
18627 "\x00\x00\x00",
18628 .klen = 19,
18629 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
18630 .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
18631 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
18632 "\x01\x01\x01\x01\x08\x00\x07\x5C"
18633 "\x02\x00\x44\x00\x61\x62\x63\x64"
18634 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18635 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18636 "\x75\x76\x77\x61\x62\x63\x64\x65"
18637 "\x66\x67\x68\x69\x01\x02\x02\x01",
18638 .rlen = 64,
18639 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
18640 "\x00\x00\x00\x00\x00\x00\x00\x00",
18641 .alen = 16,
18642 .input = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
18643 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
18644 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
18645 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
18646 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
18647 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
18648 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
18649 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
18650 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
18651 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
18652 .ilen = 80,
18653 }, {
18654 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18655 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18656 "\x57\x69\x0E",
18657 .klen = 19,
18658 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18659 .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
18660 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
18661 "\x01\x01\x01\x01\x08\x00\x08\x5C"
18662 "\x02\x00\x43\x00\x61\x62\x63\x64"
18663 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18664 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18665 "\x75\x76\x77\x61\x62\x63\x64\x65"
18666 "\x66\x67\x68\x69\x01\x02\x02\x01",
18667 .rlen = 64,
18668 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18669 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18670 "\xA2\xFC\xA1\xA3",
18671 .alen = 20,
18672 .input = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
18673 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
18674 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
18675 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
18676 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18677 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18678 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
18679 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
18680 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
18681 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
18682 .ilen = 80,
18683 }, {
18684 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18685 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18686 "\x57\x69\x0E",
18687 .klen = 19,
18688 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18689 .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
18690 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
18691 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
18692 "\x01\x02\x02\x01",
18693 .rlen = 28,
18694 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18695 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18696 "\xA2\xFC\xA1\xA3",
18697 .alen = 20,
18698 .input = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
18699 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
18700 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
18701 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
18702 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
18703 "\x08\xB4\x22\xE4",
18704 .ilen = 44,
18705 }, {
18706 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18707 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18708 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18709 "\xCA\xFE\xBA",
18710 .klen = 27,
18711 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18712 .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
18713 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
18714 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
18715 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
18716 "\x50\x10\x16\xD0\x75\x68\x00\x01",
18717 .rlen = 40,
18718 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18719 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18720 .alen = 16,
18721 .input = "\x05\x22\x15\xD1\x52\x56\x85\x04"
18722 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
18723 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
18724 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
18725 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
18726 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
18727 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
18728 .ilen = 56,
18729 }, {
18730 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18731 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18732 "\xDE\xCA\xF8",
18733 .klen = 19,
18734 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18735 .result = "\x45\x00\x00\x49\x33\xBA\x00\x00"
18736 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
18737 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18738 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
18739 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
18740 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
18741 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
18742 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
18743 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
18744 "\x23\x01\x01\x01",
18745 .rlen = 76,
18746 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
18747 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18748 "\xCE\xFA\xCE\x74",
18749 .alen = 20,
18750 .input = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
18751 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
18752 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
18753 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
18754 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
18755 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
18756 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
18757 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
18758 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
18759 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
18760 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
18761 "\x12\x25\x0B\xF9",
18762 .ilen = 92,
18763 }, {
18764 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18765 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18766 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18767 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18768 "\x73\x61\x6C",
18769 .klen = 35,
18770 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18771 .result = "\x45\x08\x00\x28\x73\x2C\x00\x00"
18772 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
18773 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
18774 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
18775 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
18776 .rlen = 40,
18777 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18778 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18779 "\x69\x76\x65\x63",
18780 .alen = 20,
18781 .input = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
18782 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
18783 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
18784 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
18785 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
18786 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
18787 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
18788 .ilen = 56,
18789 }, {
18790 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18791 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18792 "\x57\x69\x0E",
18793 .klen = 19,
18794 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18795 .result = "\x45\x00\x00\x49\x33\x3E\x00\x00"
18796 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
18797 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18798 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
18799 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
18800 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
18801 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
18802 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
18803 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
18804 "\x15\x01\x01\x01",
18805 .rlen = 76,
18806 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18807 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18808 "\xA2\xFC\xA1\xA3",
18809 .alen = 20,
18810 .input = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
18811 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
18812 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
18813 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
18814 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
18815 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
18816 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
18817 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
18818 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
18819 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
18820 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
18821 "\xCC\xF7\x46\x6F",
18822 .ilen = 92,
18823 }, {
18824 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18825 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18826 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18827 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18828 "\x73\x61\x6C",
18829 .klen = 35,
18830 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
18831 .result = "\x63\x69\x73\x63\x6F\x01\x72\x75"
18832 "\x6C\x65\x73\x01\x74\x68\x65\x01"
18833 "\x6E\x65\x74\x77\x65\x01\x64\x65"
18834 "\x66\x69\x6E\x65\x01\x74\x68\x65"
18835 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
18836 "\x67\x69\x65\x73\x01\x74\x68\x61"
18837 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
18838 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
18839 "\x72\x72\x6F\x77\x01\x02\x02\x01",
18840 .rlen = 72,
18841 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18842 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
18843 "\x69\x76\x65\x63",
18844 .alen = 20,
18845 .input = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
18846 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
18847 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
18848 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
18849 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
18850 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
18851 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
18852 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
18853 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
18854 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
18855 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
18856 .ilen = 88,
18857 }, {
18858 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
18859 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
18860 "\xD9\x66\x42",
18861 .klen = 19,
18862 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18863 .result = "\x01\x02\x02\x01",
18864 .rlen = 4,
18865 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
18866 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
18867 .alen = 16,
18868 .input = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
18869 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
18870 "\xF7\x61\x24\x62",
18871 .ilen = 20,
18872 }, {
18873 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18874 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18875 "\xDE\xCA\xF8",
18876 .klen = 19,
18877 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
18878 .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
18879 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
18880 "\x62\x65\x00\x01",
18881 .rlen = 20,
18882 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
18883 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18884 "\xCE\xFA\xCE\x74",
18885 .alen = 20,
18886 .input = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
18887 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
18888 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
18889 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
18890 "\x17\x17\x65\xAD",
18891 .ilen = 36,
18892 }, {
18893 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
18894 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
18895 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
18896 "\x62\x65\x66\x6F\x72\x65\x69\x61"
18897 "\x74\x75\x72",
18898 .klen = 35,
18899 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
18900 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18901 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18902 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18903 "\x02\x00\x07\x00\x61\x62\x63\x64"
18904 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18905 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18906 "\x01\x02\x02\x01",
18907 .rlen = 52,
18908 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
18909 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
18910 "\x67\x65\x74\x6D",
18911 .alen = 20,
18912 .input = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
18913 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
18914 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
18915 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
18916 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
18917 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
18918 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
18919 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
18920 "\x39\xDB\xC8\xDC",
18921 .ilen = 68,
18922 }, {
18923 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18924 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18925 "\x57\x69\x0E",
18926 .klen = 19,
18927 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
18928 .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
18929 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
18930 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
18931 "\x02\x00\x07\x00\x61\x62\x63\x64"
18932 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18933 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18934 "\x01\x02\x02\x01",
18935 .rlen = 52,
18936 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
18937 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18938 "\xA2\xFC\xA1\xA3",
18939 .alen = 20,
18940 .input = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
18941 "\x10\x60\x54\x25\xEB\x80\x04\x93"
18942 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
18943 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
18944 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18945 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18946 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
18947 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
18948 "\xF4\x95\x5D\x4F",
18949 .ilen = 68,
18950 }, {
18951 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18952 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18953 "\x22\x43\x3C",
18954 .klen = 19,
18955 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
18956 .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
18957 "\x61\x62\x63\x64\x65\x66\x67\x68"
18958 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
18959 "\x71\x72\x73\x74\x01\x02\x02\x01",
18960 .rlen = 32,
18961 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
18962 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
18963 "\x3A\x23\x4B\xFD",
18964 .alen = 20,
18965 .input = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
18966 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
18967 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
18968 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
18969 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
18970 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
18971 .ilen = 48,
18972 }
18973};
18974
18975/*
Martin Williaf2b76b2015-06-01 13:44:01 +020018976 * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
18977 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080018978static const struct aead_testvec rfc7539_enc_tv_template[] = {
Martin Williaf2b76b2015-06-01 13:44:01 +020018979 {
18980 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
18981 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
18982 "\x90\x91\x92\x93\x94\x95\x96\x97"
18983 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
18984 .klen = 32,
18985 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
18986 "\x44\x45\x46\x47",
18987 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
18988 "\xc4\xc5\xc6\xc7",
18989 .alen = 12,
18990 .input = "\x4c\x61\x64\x69\x65\x73\x20\x61"
18991 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
18992 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
18993 "\x74\x68\x65\x20\x63\x6c\x61\x73"
18994 "\x73\x20\x6f\x66\x20\x27\x39\x39"
18995 "\x3a\x20\x49\x66\x20\x49\x20\x63"
18996 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
18997 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
18998 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
18999 "\x74\x69\x70\x20\x66\x6f\x72\x20"
19000 "\x74\x68\x65\x20\x66\x75\x74\x75"
19001 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
19002 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
19003 "\x75\x6c\x64\x20\x62\x65\x20\x69"
19004 "\x74\x2e",
19005 .ilen = 114,
19006 .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
19007 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
19008 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
19009 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
19010 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
19011 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
19012 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
19013 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
19014 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
19015 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
19016 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
19017 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
19018 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
19019 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
19020 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
19021 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
19022 "\x06\x91",
19023 .rlen = 130,
19024 }, {
19025 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19026 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19027 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19028 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
19029 .klen = 32,
19030 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
19031 "\x05\x06\x07\x08",
19032 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19033 "\x00\x00\x4e\x91",
19034 .alen = 12,
19035 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19036 "\x2d\x44\x72\x61\x66\x74\x73\x20"
19037 "\x61\x72\x65\x20\x64\x72\x61\x66"
19038 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19039 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19040 "\x64\x20\x66\x6f\x72\x20\x61\x20"
19041 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19042 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19043 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19044 "\x64\x20\x6d\x61\x79\x20\x62\x65"
19045 "\x20\x75\x70\x64\x61\x74\x65\x64"
19046 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19047 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19048 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19049 "\x20\x62\x79\x20\x6f\x74\x68\x65"
19050 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19051 "\x6e\x74\x73\x20\x61\x74\x20\x61"
19052 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19053 "\x20\x49\x74\x20\x69\x73\x20\x69"
19054 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19055 "\x69\x61\x74\x65\x20\x74\x6f\x20"
19056 "\x75\x73\x65\x20\x49\x6e\x74\x65"
19057 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19058 "\x66\x74\x73\x20\x61\x73\x20\x72"
19059 "\x65\x66\x65\x72\x65\x6e\x63\x65"
19060 "\x20\x6d\x61\x74\x65\x72\x69\x61"
19061 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19062 "\x63\x69\x74\x65\x20\x74\x68\x65"
19063 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19064 "\x74\x68\x61\x6e\x20\x61\x73\x20"
19065 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19066 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19067 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19068 "\x9d",
19069 .ilen = 265,
19070 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19071 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19072 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19073 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19074 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19075 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19076 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19077 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19078 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19079 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19080 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19081 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19082 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19083 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19084 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19085 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19086 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19087 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19088 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19089 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19090 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19091 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19092 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19093 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19094 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19095 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19096 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19097 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19098 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19099 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19100 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19101 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19102 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19103 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19104 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19105 "\x38",
19106 .rlen = 281,
19107 },
19108};
19109
Eric Biggersb13b1e02017-02-24 15:46:59 -080019110static const struct aead_testvec rfc7539_dec_tv_template[] = {
Martin Williaf2b76b2015-06-01 13:44:01 +020019111 {
19112 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
19113 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19114 "\x90\x91\x92\x93\x94\x95\x96\x97"
19115 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
19116 .klen = 32,
19117 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
19118 "\x44\x45\x46\x47",
19119 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
19120 "\xc4\xc5\xc6\xc7",
19121 .alen = 12,
19122 .input = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
19123 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
19124 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
19125 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
19126 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
19127 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
19128 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
19129 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
19130 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
19131 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
19132 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
19133 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
19134 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
19135 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
19136 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
19137 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
19138 "\x06\x91",
19139 .ilen = 130,
19140 .result = "\x4c\x61\x64\x69\x65\x73\x20\x61"
19141 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
19142 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
19143 "\x74\x68\x65\x20\x63\x6c\x61\x73"
19144 "\x73\x20\x6f\x66\x20\x27\x39\x39"
19145 "\x3a\x20\x49\x66\x20\x49\x20\x63"
19146 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
19147 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
19148 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
19149 "\x74\x69\x70\x20\x66\x6f\x72\x20"
19150 "\x74\x68\x65\x20\x66\x75\x74\x75"
19151 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
19152 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
19153 "\x75\x6c\x64\x20\x62\x65\x20\x69"
19154 "\x74\x2e",
19155 .rlen = 114,
19156 }, {
19157 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19158 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19159 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19160 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
19161 .klen = 32,
19162 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
19163 "\x05\x06\x07\x08",
19164 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19165 "\x00\x00\x4e\x91",
19166 .alen = 12,
19167 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19168 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19169 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19170 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19171 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19172 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19173 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19174 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19175 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19176 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19177 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19178 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19179 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19180 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19181 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19182 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19183 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19184 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19185 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19186 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19187 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19188 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19189 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19190 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19191 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19192 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19193 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19194 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19195 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19196 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19197 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19198 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19199 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19200 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19201 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19202 "\x38",
19203 .ilen = 281,
19204 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19205 "\x2d\x44\x72\x61\x66\x74\x73\x20"
19206 "\x61\x72\x65\x20\x64\x72\x61\x66"
19207 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19208 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19209 "\x64\x20\x66\x6f\x72\x20\x61\x20"
19210 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19211 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19212 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19213 "\x64\x20\x6d\x61\x79\x20\x62\x65"
19214 "\x20\x75\x70\x64\x61\x74\x65\x64"
19215 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19216 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19217 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19218 "\x20\x62\x79\x20\x6f\x74\x68\x65"
19219 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19220 "\x6e\x74\x73\x20\x61\x74\x20\x61"
19221 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19222 "\x20\x49\x74\x20\x69\x73\x20\x69"
19223 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19224 "\x69\x61\x74\x65\x20\x74\x6f\x20"
19225 "\x75\x73\x65\x20\x49\x6e\x74\x65"
19226 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19227 "\x66\x74\x73\x20\x61\x73\x20\x72"
19228 "\x65\x66\x65\x72\x65\x6e\x63\x65"
19229 "\x20\x6d\x61\x74\x65\x72\x69\x61"
19230 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19231 "\x63\x69\x74\x65\x20\x74\x68\x65"
19232 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19233 "\x74\x68\x61\x6e\x20\x61\x73\x20"
19234 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19235 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19236 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19237 "\x9d",
19238 .rlen = 265,
19239 },
19240};
19241
19242/*
Martin Willi59007582015-06-01 13:44:03 +020019243 * draft-irtf-cfrg-chacha20-poly1305
19244 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080019245static const struct aead_testvec rfc7539esp_enc_tv_template[] = {
Martin Willi59007582015-06-01 13:44:03 +020019246 {
19247 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19248 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19249 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19250 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
19251 "\x00\x00\x00\x00",
19252 .klen = 36,
19253 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
19254 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
Herbert Xu74790922015-07-16 12:35:08 +080019255 "\x00\x00\x4e\x91\x01\x02\x03\x04"
19256 "\x05\x06\x07\x08",
19257 .alen = 20,
Martin Willi59007582015-06-01 13:44:03 +020019258 .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19259 "\x2d\x44\x72\x61\x66\x74\x73\x20"
19260 "\x61\x72\x65\x20\x64\x72\x61\x66"
19261 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19262 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19263 "\x64\x20\x66\x6f\x72\x20\x61\x20"
19264 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19265 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19266 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19267 "\x64\x20\x6d\x61\x79\x20\x62\x65"
19268 "\x20\x75\x70\x64\x61\x74\x65\x64"
19269 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19270 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19271 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19272 "\x20\x62\x79\x20\x6f\x74\x68\x65"
19273 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19274 "\x6e\x74\x73\x20\x61\x74\x20\x61"
19275 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19276 "\x20\x49\x74\x20\x69\x73\x20\x69"
19277 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19278 "\x69\x61\x74\x65\x20\x74\x6f\x20"
19279 "\x75\x73\x65\x20\x49\x6e\x74\x65"
19280 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19281 "\x66\x74\x73\x20\x61\x73\x20\x72"
19282 "\x65\x66\x65\x72\x65\x6e\x63\x65"
19283 "\x20\x6d\x61\x74\x65\x72\x69\x61"
19284 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19285 "\x63\x69\x74\x65\x20\x74\x68\x65"
19286 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19287 "\x74\x68\x61\x6e\x20\x61\x73\x20"
19288 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19289 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19290 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19291 "\x9d",
19292 .ilen = 265,
19293 .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19294 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19295 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19296 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19297 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19298 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19299 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19300 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19301 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19302 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19303 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19304 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19305 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19306 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19307 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19308 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19309 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19310 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19311 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19312 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19313 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19314 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19315 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19316 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19317 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19318 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19319 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19320 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19321 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19322 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19323 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19324 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19325 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19326 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19327 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19328 "\x38",
19329 .rlen = 281,
19330 },
19331};
19332
Eric Biggersb13b1e02017-02-24 15:46:59 -080019333static const struct aead_testvec rfc7539esp_dec_tv_template[] = {
Martin Willi59007582015-06-01 13:44:03 +020019334 {
19335 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19336 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19337 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19338 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
19339 "\x00\x00\x00\x00",
19340 .klen = 36,
19341 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
19342 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
Herbert Xu74790922015-07-16 12:35:08 +080019343 "\x00\x00\x4e\x91\x01\x02\x03\x04"
19344 "\x05\x06\x07\x08",
19345 .alen = 20,
Martin Willi59007582015-06-01 13:44:03 +020019346 .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
19347 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19348 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19349 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19350 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19351 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19352 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19353 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19354 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19355 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19356 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19357 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19358 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19359 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19360 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19361 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19362 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19363 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19364 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19365 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19366 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19367 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19368 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19369 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19370 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19371 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19372 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19373 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19374 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19375 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19376 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19377 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19378 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19379 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19380 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19381 "\x38",
19382 .ilen = 281,
19383 .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
19384 "\x2d\x44\x72\x61\x66\x74\x73\x20"
19385 "\x61\x72\x65\x20\x64\x72\x61\x66"
19386 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19387 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19388 "\x64\x20\x66\x6f\x72\x20\x61\x20"
19389 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19390 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19391 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19392 "\x64\x20\x6d\x61\x79\x20\x62\x65"
19393 "\x20\x75\x70\x64\x61\x74\x65\x64"
19394 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19395 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19396 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19397 "\x20\x62\x79\x20\x6f\x74\x68\x65"
19398 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19399 "\x6e\x74\x73\x20\x61\x74\x20\x61"
19400 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19401 "\x20\x49\x74\x20\x69\x73\x20\x69"
19402 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19403 "\x69\x61\x74\x65\x20\x74\x6f\x20"
19404 "\x75\x73\x65\x20\x49\x6e\x74\x65"
19405 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19406 "\x66\x74\x73\x20\x61\x73\x20\x72"
19407 "\x65\x66\x65\x72\x65\x6e\x63\x65"
19408 "\x20\x6d\x61\x74\x65\x72\x69\x61"
19409 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19410 "\x63\x69\x74\x65\x20\x74\x68\x65"
19411 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19412 "\x74\x68\x61\x6e\x20\x61\x73\x20"
19413 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19414 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19415 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19416 "\x9d",
19417 .rlen = 265,
19418 },
19419};
19420
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019421static const struct aead_testvec aegis128_enc_tv_template[] = {
19422 {
19423 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
19424 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
19425 .klen = 16,
19426 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
19427 "\x40\x6d\x59\x48\xfc\x92\x61\x03",
19428 .assoc = "",
19429 .alen = 0,
19430 .input = "",
19431 .ilen = 0,
19432 .result = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
19433 "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
19434 .rlen = 16,
19435 }, {
19436 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
19437 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
19438 .klen = 16,
19439 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
19440 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
19441 .assoc = "",
19442 .alen = 0,
19443 .input = "\x79",
19444 .ilen = 1,
19445 .result = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
19446 "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
19447 "\xcc",
19448 .rlen = 17,
19449 }, {
19450 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
19451 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
19452 .klen = 16,
19453 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
19454 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
19455 .assoc = "",
19456 .alen = 0,
19457 .input = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
19458 "\x82\x8e\x16\xb4\xed\x6d\x47",
19459 .ilen = 15,
19460 .result = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
19461 "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
19462 "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
19463 "\x7a\x21\x16\xb3\xe6\x67\x66",
19464 .rlen = 31,
19465 }, {
19466 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
19467 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
19468 .klen = 16,
19469 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
19470 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
19471 .assoc = "",
19472 .alen = 0,
19473 .input = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
19474 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
19475 .ilen = 16,
19476 .result = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
19477 "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
19478 "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
19479 "\x51\x10\x16\x27\x70\x9b\x64\x29",
19480 .rlen = 32,
19481 }, {
19482 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
19483 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
19484 .klen = 16,
19485 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
19486 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
19487 .assoc = "",
19488 .alen = 0,
19489 .input = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
19490 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
19491 "\xd3",
19492 .ilen = 17,
19493 .result = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
19494 "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
19495 "\x46\x80\xb1\x0e\x18\x30\x40\x97"
19496 "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
19497 "\x3b",
19498 .rlen = 33,
19499 }, {
19500 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
19501 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
19502 .klen = 16,
19503 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
19504 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
19505 .assoc = "",
19506 .alen = 0,
19507 .input = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
19508 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
19509 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
19510 "\x88\x11\x39\x12\x1c\x3a\xbb",
19511 .ilen = 31,
19512 .result = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
19513 "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
19514 "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
19515 "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
19516 "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
19517 "\x75\xc4\x53\x01\x89\x45\x59",
19518 .rlen = 47,
19519 }, {
19520 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
19521 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
19522 .klen = 16,
19523 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
19524 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
19525 .assoc = "",
19526 .alen = 0,
19527 .input = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
19528 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
19529 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
19530 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
19531 .ilen = 32,
19532 .result = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
19533 "\x95\xf4\x58\x38\x14\x83\x27\x01"
19534 "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
19535 "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
19536 "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
19537 "\x51\x52\x77\xf2\x5e\x85\x80\x41",
19538 .rlen = 48,
19539 }, {
19540 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
19541 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
19542 .klen = 16,
19543 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
19544 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
19545 .assoc = "\xd5",
19546 .alen = 1,
19547 .input = "",
19548 .ilen = 0,
19549 .result = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
19550 "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
19551 .rlen = 16,
19552 }, {
19553 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
19554 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
19555 .klen = 16,
19556 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
19557 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
19558 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
19559 "\x68\x75\x16\xf8\xcb\x7e\xa7",
19560 .alen = 15,
19561 .input = "",
19562 .ilen = 0,
19563 .result = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
19564 "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
19565 .rlen = 16,
19566 }, {
19567 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
19568 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
19569 .klen = 16,
19570 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
19571 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
19572 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
19573 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
19574 .alen = 16,
19575 .input = "",
19576 .ilen = 0,
19577 .result = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
19578 "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
19579 .rlen = 16,
19580 }, {
19581 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
19582 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
19583 .klen = 16,
19584 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
19585 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
19586 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
19587 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
19588 "\x07",
19589 .alen = 17,
19590 .input = "",
19591 .ilen = 0,
19592 .result = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
19593 "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
19594 .rlen = 16,
19595 }, {
19596 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
19597 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
19598 .klen = 16,
19599 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
19600 "\xca\xcd\xff\x88\xba\x22\xbe\x47",
19601 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
19602 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
19603 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
19604 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
19605 .alen = 31,
19606 .input = "",
19607 .ilen = 0,
19608 .result = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
19609 "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
19610 .rlen = 16,
19611 }, {
19612 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
19613 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
19614 .klen = 16,
19615 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
19616 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
19617 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
19618 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
19619 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
19620 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
19621 .alen = 32,
19622 .input = "",
19623 .ilen = 0,
19624 .result = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
19625 "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
19626 .rlen = 16,
19627 }, {
19628 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
19629 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
19630 .klen = 16,
19631 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
19632 "\xcc\x81\x63\xab\xae\x6b\x43\x54",
19633 .assoc = "\x40",
19634 .alen = 1,
19635 .input = "\x4f",
19636 .ilen = 1,
19637 .result = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
19638 "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
19639 "\x39",
19640 .rlen = 17,
19641 }, {
19642 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
19643 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
19644 .klen = 16,
19645 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
19646 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
19647 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
19648 "\x6d\x92\x42\x61\xa7\x58\x37",
19649 .alen = 15,
19650 .input = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
19651 "\x8d\xc8\x6e\x85\xa5\x21\x67",
19652 .ilen = 15,
19653 .result = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
19654 "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
19655 "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
19656 "\x98\xbd\x71\x7a\xef\xa4\xfa",
19657 .rlen = 31,
19658 }, {
19659 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
19660 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
19661 .klen = 16,
19662 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
19663 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
19664 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
19665 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
19666 .alen = 16,
19667 .input = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
19668 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
19669 .ilen = 16,
19670 .result = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
19671 "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
19672 "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
19673 "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
19674 .rlen = 32,
19675 }, {
19676 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
19677 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
19678 .klen = 16,
19679 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
19680 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
19681 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
19682 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
19683 "\x05",
19684 .alen = 17,
19685 .input = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
19686 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
19687 "\xd0",
19688 .ilen = 17,
19689 .result = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
19690 "\x38\x2d\x69\x90\x1c\x71\x38\x98"
19691 "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
19692 "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
19693 "\x93",
19694 .rlen = 33,
19695 }, {
19696 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
19697 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
19698 .klen = 16,
19699 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
19700 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
19701 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
19702 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
19703 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
19704 "\x68\x28\x73\x40\x9f\x96\x4a",
19705 .alen = 31,
19706 .input = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
19707 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
19708 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
19709 "\x98\x34\xab\x37\x56\xae\x32",
19710 .ilen = 31,
19711 .result = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
19712 "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
19713 "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
19714 "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
19715 "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
19716 "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
19717 .rlen = 47,
19718 }, {
19719 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
19720 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
19721 .klen = 16,
19722 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
19723 "\x50\xc4\xde\x82\x90\x21\x11\x73",
19724 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
19725 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
19726 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
19727 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
19728 .alen = 32,
19729 .input = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
19730 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
19731 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
19732 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
19733 .ilen = 32,
19734 .result = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
19735 "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
19736 "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
19737 "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
19738 "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
19739 "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
19740 .rlen = 48,
19741 }, {
19742 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
19743 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
19744 .klen = 16,
19745 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
19746 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
19747 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
19748 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
19749 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
19750 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
19751 "\x9d",
19752 .alen = 33,
19753 .input = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
19754 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
19755 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
19756 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
19757 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
19758 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
19759 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
19760 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
19761 "\xbd",
19762 .ilen = 65,
19763 .result = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
19764 "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
19765 "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
19766 "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
19767 "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
19768 "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
19769 "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
19770 "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
19771 "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
19772 "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
19773 "\x3f",
19774 .rlen = 81,
19775 }, {
19776 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
19777 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
19778 .klen = 16,
19779 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
19780 "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
19781 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
19782 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
19783 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
19784 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
19785 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
19786 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
19787 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
19788 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
19789 "\x54",
19790 .alen = 65,
19791 .input = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
19792 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
19793 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
19794 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
19795 "\x2f",
19796 .ilen = 33,
19797 .result = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
19798 "\x77\x09\xac\x74\xef\xd2\x56\xae"
19799 "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
19800 "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
19801 "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
19802 "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
19803 "\x39",
19804 .rlen = 49,
19805 }, {
19806 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
19807 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
19808 .klen = 16,
19809 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
19810 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
19811 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
19812 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
19813 .alen = 16,
19814 .input = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
19815 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
19816 .ilen = 16,
19817 .result = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
19818 "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
19819 "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
19820 "\xde\x20\x59\x77\xc1\x74\x90",
19821 .rlen = 31,
19822 }, {
19823 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
19824 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
19825 .klen = 16,
19826 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
19827 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
19828 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
19829 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
19830 .alen = 16,
19831 .input = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
19832 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
19833 .ilen = 16,
19834 .result = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
19835 "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
19836 "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
19837 "\xe9\xe0\x17\x45\x70\x12",
19838 .rlen = 30,
19839 }, {
19840 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
19841 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
19842 .klen = 16,
19843 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
19844 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
19845 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
19846 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
19847 .alen = 16,
19848 .input = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
19849 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
19850 .ilen = 16,
19851 .result = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
19852 "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
19853 "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
19854 .rlen = 24,
19855 },
19856};
19857
19858/*
19859 * AEGIS-128 test vectors - generated via reference implementation from
19860 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
19861 *
19862 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
19863 * (see crypto_aead/aegis128/)
19864 */
19865static const struct aead_testvec aegis128_dec_tv_template[] = {
19866 {
19867 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
19868 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
19869 .klen = 16,
19870 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
19871 "\x40\x6d\x59\x48\xfc\x92\x61\x03",
19872 .assoc = "",
19873 .alen = 0,
19874 .input = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
19875 "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
19876 .ilen = 16,
19877 .result = "",
19878 .rlen = 0,
19879 }, {
19880 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
19881 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
19882 .klen = 16,
19883 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
19884 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
19885 .assoc = "",
19886 .alen = 0,
19887 .input = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
19888 "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
19889 "\xcc",
19890 .ilen = 17,
19891 .result = "\x79",
19892 .rlen = 1,
19893 }, {
19894 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
19895 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
19896 .klen = 16,
19897 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
19898 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
19899 .assoc = "",
19900 .alen = 0,
19901 .input = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
19902 "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
19903 "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
19904 "\x7a\x21\x16\xb3\xe6\x67\x66",
19905 .ilen = 31,
19906 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
19907 "\x82\x8e\x16\xb4\xed\x6d\x47",
19908 .rlen = 15,
19909 }, {
19910 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
19911 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
19912 .klen = 16,
19913 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
19914 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
19915 .assoc = "",
19916 .alen = 0,
19917 .input = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
19918 "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
19919 "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
19920 "\x51\x10\x16\x27\x70\x9b\x64\x29",
19921 .ilen = 32,
19922 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
19923 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
19924 .rlen = 16,
19925 }, {
19926 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
19927 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
19928 .klen = 16,
19929 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
19930 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
19931 .assoc = "",
19932 .alen = 0,
19933 .input = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
19934 "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
19935 "\x46\x80\xb1\x0e\x18\x30\x40\x97"
19936 "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
19937 "\x3b",
19938 .ilen = 33,
19939 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
19940 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
19941 "\xd3",
19942 .rlen = 17,
19943 }, {
19944 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
19945 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
19946 .klen = 16,
19947 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
19948 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
19949 .assoc = "",
19950 .alen = 0,
19951 .input = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
19952 "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
19953 "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
19954 "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
19955 "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
19956 "\x75\xc4\x53\x01\x89\x45\x59",
19957 .ilen = 47,
19958 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
19959 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
19960 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
19961 "\x88\x11\x39\x12\x1c\x3a\xbb",
19962 .rlen = 31,
19963 }, {
19964 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
19965 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
19966 .klen = 16,
19967 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
19968 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
19969 .assoc = "",
19970 .alen = 0,
19971 .input = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
19972 "\x95\xf4\x58\x38\x14\x83\x27\x01"
19973 "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
19974 "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
19975 "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
19976 "\x51\x52\x77\xf2\x5e\x85\x80\x41",
19977 .ilen = 48,
19978 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
19979 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
19980 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
19981 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
19982 .rlen = 32,
19983 }, {
19984 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
19985 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
19986 .klen = 16,
19987 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
19988 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
19989 .assoc = "\xd5",
19990 .alen = 1,
19991 .input = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
19992 "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
19993 .ilen = 16,
19994 .result = "",
19995 .rlen = 0,
19996 }, {
19997 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
19998 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
19999 .klen = 16,
20000 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
20001 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
20002 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
20003 "\x68\x75\x16\xf8\xcb\x7e\xa7",
20004 .alen = 15,
20005 .input = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
20006 "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
20007 .ilen = 16,
20008 .result = "",
20009 .rlen = 0,
20010 }, {
20011 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
20012 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
20013 .klen = 16,
20014 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
20015 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
20016 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
20017 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
20018 .alen = 16,
20019 .input = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
20020 "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
20021 .ilen = 16,
20022 .result = "",
20023 .rlen = 0,
20024 }, {
20025 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20026 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20027 .klen = 16,
20028 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20029 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20030 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20031 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20032 "\x07",
20033 .alen = 17,
20034 .input = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
20035 "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
20036 .ilen = 16,
20037 .result = "",
20038 .rlen = 0,
20039 }, {
20040 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20041 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20042 .klen = 16,
20043 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20044 "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20045 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20046 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20047 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20048 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20049 .alen = 31,
20050 .input = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
20051 "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
20052 .ilen = 16,
20053 .result = "",
20054 .rlen = 0,
20055 }, {
20056 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20057 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20058 .klen = 16,
20059 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20060 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20061 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20062 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20063 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20064 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20065 .alen = 32,
20066 .input = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
20067 "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
20068 .ilen = 16,
20069 .result = "",
20070 .rlen = 0,
20071 }, {
20072 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20073 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20074 .klen = 16,
20075 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20076 "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20077 .assoc = "\x40",
20078 .alen = 1,
20079 .input = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
20080 "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
20081 "\x39",
20082 .ilen = 17,
20083 .result = "\x4f",
20084 .rlen = 1,
20085 }, {
20086 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20087 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20088 .klen = 16,
20089 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20090 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20091 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20092 "\x6d\x92\x42\x61\xa7\x58\x37",
20093 .alen = 15,
20094 .input = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
20095 "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
20096 "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
20097 "\x98\xbd\x71\x7a\xef\xa4\xfa",
20098 .ilen = 31,
20099 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20100 "\x8d\xc8\x6e\x85\xa5\x21\x67",
20101 .rlen = 15,
20102 }, {
20103 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20104 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20105 .klen = 16,
20106 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20107 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20108 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20109 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20110 .alen = 16,
20111 .input = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
20112 "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
20113 "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
20114 "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
20115 .ilen = 32,
20116 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20117 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20118 .rlen = 16,
20119 }, {
20120 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20121 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20122 .klen = 16,
20123 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20124 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20125 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20126 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20127 "\x05",
20128 .alen = 17,
20129 .input = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
20130 "\x38\x2d\x69\x90\x1c\x71\x38\x98"
20131 "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
20132 "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
20133 "\x93",
20134 .ilen = 33,
20135 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20136 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20137 "\xd0",
20138 .rlen = 17,
20139 }, {
20140 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
20141 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
20142 .klen = 16,
20143 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
20144 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
20145 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
20146 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
20147 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
20148 "\x68\x28\x73\x40\x9f\x96\x4a",
20149 .alen = 31,
20150 .input = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
20151 "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
20152 "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
20153 "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
20154 "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
20155 "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
20156 .ilen = 47,
20157 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
20158 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
20159 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
20160 "\x98\x34\xab\x37\x56\xae\x32",
20161 .rlen = 31,
20162 }, {
20163 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
20164 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
20165 .klen = 16,
20166 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
20167 "\x50\xc4\xde\x82\x90\x21\x11\x73",
20168 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
20169 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
20170 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
20171 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
20172 .alen = 32,
20173 .input = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
20174 "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
20175 "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
20176 "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
20177 "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
20178 "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
20179 .ilen = 48,
20180 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20181 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20182 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20183 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20184 .rlen = 32,
20185 }, {
20186 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20187 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20188 .klen = 16,
20189 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20190 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20191 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20192 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20193 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
20194 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
20195 "\x9d",
20196 .alen = 33,
20197 .input = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
20198 "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
20199 "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
20200 "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
20201 "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
20202 "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
20203 "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
20204 "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
20205 "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
20206 "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
20207 "\x3f",
20208 .ilen = 81,
20209 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
20210 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
20211 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
20212 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
20213 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
20214 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
20215 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
20216 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
20217 "\xbd",
20218 .rlen = 65,
20219 }, {
20220 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
20221 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
20222 .klen = 16,
20223 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
20224 "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
20225 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
20226 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
20227 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
20228 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
20229 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
20230 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
20231 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
20232 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
20233 "\x54",
20234 .alen = 65,
20235 .input = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
20236 "\x77\x09\xac\x74\xef\xd2\x56\xae"
20237 "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
20238 "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
20239 "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
20240 "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
20241 "\x39",
20242 .ilen = 49,
20243 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
20244 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
20245 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
20246 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
20247 "\x2f",
20248 .rlen = 33,
20249 }, {
20250 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
20251 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
20252 .klen = 16,
20253 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
20254 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
20255 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
20256 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
20257 .alen = 16,
20258 .input = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
20259 "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
20260 "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
20261 "\xde\x20\x59\x77\xc1\x74\x90",
20262 .ilen = 31,
20263 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
20264 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
20265 .rlen = 16,
20266 }, {
20267 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
20268 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
20269 .klen = 16,
20270 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
20271 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
20272 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
20273 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
20274 .alen = 16,
20275 .input = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
20276 "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
20277 "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
20278 "\xe9\xe0\x17\x45\x70\x12",
20279 .ilen = 30,
20280 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
20281 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
20282 .rlen = 16,
20283 }, {
20284 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
20285 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
20286 .klen = 16,
20287 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
20288 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
20289 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
20290 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
20291 .alen = 16,
20292 .input = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
20293 "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
20294 "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
20295 .ilen = 24,
20296 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
20297 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
20298 .rlen = 16,
20299 },
20300};
20301
20302/*
20303 * AEGIS-128L test vectors - generated via reference implementation from
20304 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
20305 *
20306 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
20307 * (see crypto_aead/aegis128l/)
20308 */
20309static const struct aead_testvec aegis128l_enc_tv_template[] = {
20310 {
20311 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
20312 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
20313 .klen = 16,
20314 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
20315 "\x40\x6d\x59\x48\xfc\x92\x61\x03",
20316 .assoc = "",
20317 .alen = 0,
20318 .input = "",
20319 .ilen = 0,
20320 .result = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
20321 "\x20\x72\x78\xdd\x93\xc8\x57\xef",
20322 .rlen = 16,
20323 }, {
20324 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
20325 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
20326 .klen = 16,
20327 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
20328 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
20329 .assoc = "",
20330 .alen = 0,
20331 .input = "\x79",
20332 .ilen = 1,
20333 .result = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
20334 "\x40\xb3\x71\xc5\x22\x58\x31\x77"
20335 "\x6d",
20336 .rlen = 17,
20337 }, {
20338 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
20339 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
20340 .klen = 16,
20341 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
20342 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
20343 .assoc = "",
20344 .alen = 0,
20345 .input = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
20346 "\x82\x8e\x16\xb4\xed\x6d\x47",
20347 .ilen = 15,
20348 .result = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
20349 "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
20350 "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
20351 "\xe1\xa8\x04\x7f\xe1\x71\xbe",
20352 .rlen = 31,
20353 }, {
20354 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
20355 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
20356 .klen = 16,
20357 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
20358 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
20359 .assoc = "",
20360 .alen = 0,
20361 .input = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
20362 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
20363 .ilen = 16,
20364 .result = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
20365 "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
20366 "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
20367 "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
20368 .rlen = 32,
20369 }, {
20370 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
20371 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
20372 .klen = 16,
20373 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
20374 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
20375 .assoc = "",
20376 .alen = 0,
20377 .input = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
20378 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
20379 "\xd3",
20380 .ilen = 17,
20381 .result = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
20382 "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
20383 "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
20384 "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
20385 "\xf8",
20386 .rlen = 33,
20387 }, {
20388 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
20389 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
20390 .klen = 16,
20391 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
20392 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
20393 .assoc = "",
20394 .alen = 0,
20395 .input = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
20396 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
20397 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
20398 "\x88\x11\x39\x12\x1c\x3a\xbb",
20399 .ilen = 31,
20400 .result = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
20401 "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
20402 "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
20403 "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
20404 "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
20405 "\x59\x28\x88\x3c\x79\x10\x6b",
20406 .rlen = 47,
20407 }, {
20408 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
20409 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
20410 .klen = 16,
20411 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
20412 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
20413 .assoc = "",
20414 .alen = 0,
20415 .input = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
20416 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
20417 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
20418 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
20419 .ilen = 32,
20420 .result = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
20421 "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
20422 "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
20423 "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
20424 "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
20425 "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
20426 .rlen = 48,
20427 }, {
20428 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
20429 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
20430 .klen = 16,
20431 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
20432 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
20433 .assoc = "\xd5",
20434 .alen = 1,
20435 .input = "",
20436 .ilen = 0,
20437 .result = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
20438 "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
20439 .rlen = 16,
20440 }, {
20441 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
20442 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
20443 .klen = 16,
20444 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
20445 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
20446 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
20447 "\x68\x75\x16\xf8\xcb\x7e\xa7",
20448 .alen = 15,
20449 .input = "",
20450 .ilen = 0,
20451 .result = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
20452 "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
20453 .rlen = 16,
20454 }, {
20455 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
20456 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
20457 .klen = 16,
20458 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
20459 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
20460 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
20461 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
20462 .alen = 16,
20463 .input = "",
20464 .ilen = 0,
20465 .result = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
20466 "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
20467 .rlen = 16,
20468 }, {
20469 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20470 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20471 .klen = 16,
20472 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20473 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20474 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20475 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20476 "\x07",
20477 .alen = 17,
20478 .input = "",
20479 .ilen = 0,
20480 .result = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
20481 "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
20482 .rlen = 16,
20483 }, {
20484 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20485 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20486 .klen = 16,
20487 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20488 "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20489 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20490 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20491 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20492 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20493 .alen = 31,
20494 .input = "",
20495 .ilen = 0,
20496 .result = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
20497 "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
20498 .rlen = 16,
20499 }, {
20500 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20501 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20502 .klen = 16,
20503 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20504 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20505 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20506 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20507 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20508 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20509 .alen = 32,
20510 .input = "",
20511 .ilen = 0,
20512 .result = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
20513 "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
20514 .rlen = 16,
20515 }, {
20516 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20517 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20518 .klen = 16,
20519 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20520 "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20521 .assoc = "\x40",
20522 .alen = 1,
20523 .input = "\x4f",
20524 .ilen = 1,
20525 .result = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
20526 "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
20527 "\xf4",
20528 .rlen = 17,
20529 }, {
20530 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20531 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20532 .klen = 16,
20533 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20534 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20535 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20536 "\x6d\x92\x42\x61\xa7\x58\x37",
20537 .alen = 15,
20538 .input = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20539 "\x8d\xc8\x6e\x85\xa5\x21\x67",
20540 .ilen = 15,
20541 .result = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
20542 "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
20543 "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
20544 "\x20\x63\x0b\x49\x7e\x97\x08",
20545 .rlen = 31,
20546 }, {
20547 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20548 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20549 .klen = 16,
20550 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20551 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20552 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20553 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20554 .alen = 16,
20555 .input = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20556 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20557 .ilen = 16,
20558 .result = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
20559 "\x78\x08\x12\xec\x09\xaf\x53\x14"
20560 "\x90\x3e\x3d\x76\xad\x71\x21\x08"
20561 "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
20562 .rlen = 32,
20563 }, {
20564 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
20565 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
20566 .klen = 16,
20567 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
20568 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
20569 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
20570 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
20571 "\x05",
20572 .alen = 17,
20573 .input = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
20574 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
20575 "\xd0",
20576 .ilen = 17,
20577 .result = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
20578 "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
20579 "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
20580 "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
20581 "\x7d",
20582 .rlen = 33,
20583 }, {
20584 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
20585 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
20586 .klen = 16,
20587 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
20588 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
20589 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
20590 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
20591 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
20592 "\x68\x28\x73\x40\x9f\x96\x4a",
20593 .alen = 31,
20594 .input = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
20595 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
20596 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
20597 "\x98\x34\xab\x37\x56\xae\x32",
20598 .ilen = 31,
20599 .result = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
20600 "\x0d\x19\x15\x61\x65\x3b\x06\x26"
20601 "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
20602 "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
20603 "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
20604 "\xed\x90\xce\xb9\xcd\xcc\xa1",
20605 .rlen = 47,
20606 }, {
20607 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
20608 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
20609 .klen = 16,
20610 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
20611 "\x50\xc4\xde\x82\x90\x21\x11\x73",
20612 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
20613 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
20614 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
20615 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
20616 .alen = 32,
20617 .input = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
20618 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
20619 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
20620 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
20621 .ilen = 32,
20622 .result = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
20623 "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
20624 "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
20625 "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
20626 "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
20627 "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
20628 .rlen = 48,
20629 }, {
20630 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
20631 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
20632 .klen = 16,
20633 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
20634 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
20635 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
20636 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
20637 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
20638 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
20639 "\x9d",
20640 .alen = 33,
20641 .input = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
20642 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
20643 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
20644 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
20645 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
20646 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
20647 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
20648 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
20649 "\xbd",
20650 .ilen = 65,
20651 .result = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
20652 "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
20653 "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
20654 "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
20655 "\xbc\x46\x76\x48\x82\xc7\x57\x96"
20656 "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
20657 "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
20658 "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
20659 "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
20660 "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
20661 "\x01",
20662 .rlen = 81,
20663 }, {
20664 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
20665 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
20666 .klen = 16,
20667 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
20668 "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
20669 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
20670 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
20671 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
20672 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
20673 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
20674 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
20675 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
20676 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
20677 "\x54",
20678 .alen = 65,
20679 .input = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
20680 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
20681 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
20682 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
20683 "\x2f",
20684 .ilen = 33,
20685 .result = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
20686 "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
20687 "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
20688 "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
20689 "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
20690 "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
20691 "\x9f",
20692 .rlen = 49,
20693 }, {
20694 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
20695 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
20696 .klen = 16,
20697 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
20698 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
20699 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
20700 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
20701 .alen = 16,
20702 .input = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
20703 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
20704 .ilen = 16,
20705 .result = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
20706 "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
20707 "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
20708 "\x05\xa8\x31\x50\x11\x19\x44",
20709 .rlen = 31,
20710 }, {
20711 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
20712 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
20713 .klen = 16,
20714 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
20715 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
20716 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
20717 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
20718 .alen = 16,
20719 .input = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
20720 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
20721 .ilen = 16,
20722 .result = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
20723 "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
20724 "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
20725 "\x21\x93\x2e\x31\x84\x83",
20726 .rlen = 30,
20727 }, {
20728 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
20729 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
20730 .klen = 16,
20731 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
20732 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
20733 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
20734 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
20735 .alen = 16,
20736 .input = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
20737 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
20738 .ilen = 16,
20739 .result = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
20740 "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
20741 "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
20742 .rlen = 24,
20743 },
20744};
20745
20746static const struct aead_testvec aegis128l_dec_tv_template[] = {
20747 {
20748 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
20749 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
20750 .klen = 16,
20751 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
20752 "\x40\x6d\x59\x48\xfc\x92\x61\x03",
20753 .assoc = "",
20754 .alen = 0,
20755 .input = "\x30\x4f\xf3\xe9\xb1\xfa\x81\xa6"
20756 "\x20\x72\x78\xdd\x93\xc8\x57\xef",
20757 .ilen = 16,
20758 .result = "",
20759 .rlen = 0,
20760 }, {
20761 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
20762 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
20763 .klen = 16,
20764 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
20765 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
20766 .assoc = "",
20767 .alen = 0,
20768 .input = "\xa9\x24\xa0\xb6\x2d\xdd\x29\xdb"
20769 "\x40\xb3\x71\xc5\x22\x58\x31\x77"
20770 "\x6d",
20771 .ilen = 17,
20772 .result = "\x79",
20773 .rlen = 1,
20774 }, {
20775 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
20776 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
20777 .klen = 16,
20778 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
20779 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
20780 .assoc = "",
20781 .alen = 0,
20782 .input = "\xbb\x0a\x53\xc4\xaa\x7e\xa4\x03"
20783 "\x2b\xee\x62\x99\x7b\x98\x13\x1f"
20784 "\xe0\x76\x4c\x2e\x53\x99\x4f\xbe"
20785 "\xe1\xa8\x04\x7f\xe1\x71\xbe",
20786 .ilen = 31,
20787 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
20788 "\x82\x8e\x16\xb4\xed\x6d\x47",
20789 .rlen = 15,
20790 }, {
20791 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
20792 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
20793 .klen = 16,
20794 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
20795 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
20796 .assoc = "",
20797 .alen = 0,
20798 .input = "\x66\xdf\x6e\x71\xc0\x6e\xa4\x4c"
20799 "\x9d\xb7\x8c\x9a\xdb\x1f\xd2\x2e"
20800 "\x23\xb6\xa4\xfb\xd3\x86\xdd\xbb"
20801 "\xde\x54\x9b\xf5\x92\x8b\x93\xc5",
20802 .ilen = 32,
20803 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
20804 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
20805 .rlen = 16,
20806 }, {
20807 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
20808 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
20809 .klen = 16,
20810 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
20811 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
20812 .assoc = "",
20813 .alen = 0,
20814 .input = "\x4f\xc3\x69\xb6\xd3\xa4\x64\x8b"
20815 "\x71\xc3\x8a\x91\x22\x4f\x1b\xd2"
20816 "\x33\x6d\x86\xbc\xf8\x2f\x06\xf9"
20817 "\x82\x64\xc7\x72\x00\x30\xfc\xf0"
20818 "\xf8",
20819 .ilen = 33,
20820 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
20821 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
20822 "\xd3",
20823 .rlen = 17,
20824 }, {
20825 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
20826 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
20827 .klen = 16,
20828 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
20829 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
20830 .assoc = "",
20831 .alen = 0,
20832 .input = "\xe3\x93\x15\xae\x5f\x9d\x3c\xb5"
20833 "\xd6\x9d\xee\xee\xcf\xaa\xaf\xe1"
20834 "\x45\x10\x96\xe0\xbf\x55\x0f\x4c"
20835 "\x1a\xfd\xf4\xda\x4e\x10\xde\xc9"
20836 "\x0e\x6f\xc7\x3c\x49\x94\x41\xfc"
20837 "\x59\x28\x88\x3c\x79\x10\x6b",
20838 .ilen = 47,
20839 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
20840 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
20841 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
20842 "\x88\x11\x39\x12\x1c\x3a\xbb",
20843 .rlen = 31,
20844 }, {
20845 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
20846 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
20847 .klen = 16,
20848 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
20849 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
20850 .assoc = "",
20851 .alen = 0,
20852 .input = "\x1c\x8e\x22\x34\xfd\xab\xe6\x0d"
20853 "\x1c\x9f\x06\x54\x8b\x0b\xb4\x40"
20854 "\xde\x11\x59\x3e\xfd\x74\xf6\x42"
20855 "\x97\x17\xf7\x24\xb6\x7e\xc4\xc6"
20856 "\x06\xa3\x94\xda\x3d\x7f\x55\x0a"
20857 "\x92\x07\x2f\xa6\xf3\x6b\x2c\xfc",
20858 .ilen = 48,
20859 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
20860 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
20861 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
20862 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
20863 .rlen = 32,
20864 }, {
20865 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
20866 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
20867 .klen = 16,
20868 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
20869 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
20870 .assoc = "\xd5",
20871 .alen = 1,
20872 .input = "\xa0\x2a\xb4\x9a\x91\x00\x15\xb8"
20873 "\x0f\x9a\x15\x60\x0e\x9b\x13\x8f",
20874 .ilen = 16,
20875 .result = "",
20876 .rlen = 0,
20877 }, {
20878 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
20879 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
20880 .klen = 16,
20881 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
20882 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
20883 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
20884 "\x68\x75\x16\xf8\xcb\x7e\xa7",
20885 .alen = 15,
20886 .input = "\x4c\x26\xad\x9c\x14\xfd\x9c\x8c"
20887 "\x84\xfb\x26\xfb\xd5\xca\x62\x39",
20888 .ilen = 16,
20889 .result = "",
20890 .rlen = 0,
20891 }, {
20892 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
20893 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
20894 .klen = 16,
20895 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
20896 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
20897 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
20898 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
20899 .alen = 16,
20900 .input = "\x45\x85\x0e\x0f\xf4\xae\x96\xa1"
20901 "\x99\x4d\x6d\xb4\x67\x32\xb0\x3a",
20902 .ilen = 16,
20903 .result = "",
20904 .rlen = 0,
20905 }, {
20906 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
20907 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
20908 .klen = 16,
20909 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
20910 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
20911 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
20912 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
20913 "\x07",
20914 .alen = 17,
20915 .input = "\x33\xb1\x42\x97\x8e\x16\x7b\x63"
20916 "\x06\xba\x5b\xcb\xae\x6d\x8b\x56",
20917 .ilen = 16,
20918 .result = "",
20919 .rlen = 0,
20920 }, {
20921 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
20922 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
20923 .klen = 16,
20924 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
20925 "\xca\xcd\xff\x88\xba\x22\xbe\x47",
20926 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
20927 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
20928 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
20929 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
20930 .alen = 31,
20931 .input = "\xda\x44\x08\x8c\x2a\xa5\x07\x35"
20932 "\x0b\x54\x4e\x6d\xe3\xfd\xc4\x5f",
20933 .ilen = 16,
20934 .result = "",
20935 .rlen = 0,
20936 }, {
20937 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
20938 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
20939 .klen = 16,
20940 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
20941 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
20942 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
20943 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
20944 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
20945 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
20946 .alen = 32,
20947 .input = "\x1b\xb1\xf1\xa8\x9e\xc2\xb2\x88"
20948 "\x40\x7f\x7b\x19\x7a\x52\x8c\xf0",
20949 .ilen = 16,
20950 .result = "",
20951 .rlen = 0,
20952 }, {
20953 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
20954 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
20955 .klen = 16,
20956 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
20957 "\xcc\x81\x63\xab\xae\x6b\x43\x54",
20958 .assoc = "\x40",
20959 .alen = 1,
20960 .input = "\x6e\xc8\xfb\x15\x9d\x98\x49\xc9"
20961 "\xa0\x98\x09\x85\xbe\x56\x8e\x79"
20962 "\xf4",
20963 .ilen = 17,
20964 .result = "\x4f",
20965 .rlen = 1,
20966 }, {
20967 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
20968 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
20969 .klen = 16,
20970 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
20971 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
20972 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
20973 "\x6d\x92\x42\x61\xa7\x58\x37",
20974 .alen = 15,
20975 .input = "\x99\x2e\x84\x50\x64\x5c\xab\x29"
20976 "\x20\xba\xb9\x2f\x62\x3a\xce\x2a"
20977 "\x75\x25\x3b\xe3\x40\xe0\x1d\xfc"
20978 "\x20\x63\x0b\x49\x7e\x97\x08",
20979 .ilen = 31,
20980 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
20981 "\x8d\xc8\x6e\x85\xa5\x21\x67",
20982 .rlen = 15,
20983 }, {
20984 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
20985 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
20986 .klen = 16,
20987 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
20988 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
20989 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
20990 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
20991 .alen = 16,
20992 .input = "\xd9\x8e\xfd\x50\x8f\x02\x9f\xee"
20993 "\x78\x08\x12\xec\x09\xaf\x53\x14"
20994 "\x90\x3e\x3d\x76\xad\x71\x21\x08"
20995 "\x77\xe5\x4b\x15\xc2\xe6\xbc\xdb",
20996 .ilen = 32,
20997 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
20998 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
20999 .rlen = 16,
21000 }, {
21001 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21002 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
21003 .klen = 16,
21004 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21005 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
21006 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21007 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21008 "\x05",
21009 .alen = 17,
21010 .input = "\xf3\xe7\x95\x86\xcf\x34\x95\x96"
21011 "\x17\xfe\x1b\xae\x1b\x31\xf2\x1a"
21012 "\xbd\xbc\xc9\x4e\x11\x29\x09\x5c"
21013 "\x05\xd3\xb4\x2e\x4a\x74\x59\x49"
21014 "\x7d",
21015 .ilen = 33,
21016 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21017 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21018 "\xd0",
21019 .rlen = 17,
21020 }, {
21021 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21022 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
21023 .klen = 16,
21024 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21025 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
21026 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21027 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21028 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21029 "\x68\x28\x73\x40\x9f\x96\x4a",
21030 .alen = 31,
21031 .input = "\x06\x96\xb2\xbf\x63\xf4\x1e\x24"
21032 "\x0d\x19\x15\x61\x65\x3b\x06\x26"
21033 "\x71\xe8\x7e\x16\xdb\x96\x01\x01"
21034 "\x52\xcd\x49\x5b\x07\x33\x4e\xe7"
21035 "\xaa\x91\xf5\xd5\xc6\xfe\x41\xb5"
21036 "\xed\x90\xce\xb9\xcd\xcc\xa1",
21037 .ilen = 47,
21038 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21039 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21040 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21041 "\x98\x34\xab\x37\x56\xae\x32",
21042 .rlen = 31,
21043 }, {
21044 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21045 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
21046 .klen = 16,
21047 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21048 "\x50\xc4\xde\x82\x90\x21\x11\x73",
21049 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21050 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21051 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21052 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21053 .alen = 32,
21054 .input = "\xf9\xd7\xee\x17\xfd\x24\xcd\xf1"
21055 "\xbc\x0f\x35\x97\x97\x0c\x4b\x18"
21056 "\xce\x58\xc8\x3b\xd4\x85\x93\x79"
21057 "\xcc\x9c\xea\xc1\x73\x13\x0b\x4c"
21058 "\xcc\x6f\x28\xf8\xa4\x4e\xb8\x56"
21059 "\x64\x4e\x47\xce\xb2\xb4\x92\xb4",
21060 .ilen = 48,
21061 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21062 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21063 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21064 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21065 .rlen = 32,
21066 }, {
21067 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21068 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
21069 .klen = 16,
21070 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21071 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
21072 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21073 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21074 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21075 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21076 "\x9d",
21077 .alen = 33,
21078 .input = "\x58\xfa\x3a\x3d\xd9\x88\x63\xe8"
21079 "\xc5\x78\x50\x8b\x4a\xc9\xdf\x7f"
21080 "\x4b\xfa\xc8\x2e\x67\x43\xf3\x63"
21081 "\x42\x8e\x99\x5a\x9c\x0b\x84\x77"
21082 "\xbc\x46\x76\x48\x82\xc7\x57\x96"
21083 "\xe1\x65\xd1\xed\x1d\xdd\x80\x24"
21084 "\xa6\x4d\xa9\xf1\x53\x8b\x5e\x0e"
21085 "\x26\xb9\xcc\x37\xe5\x43\xe1\x5a"
21086 "\x8a\xd6\x8c\x5a\xe4\x95\xd1\x8d"
21087 "\xf7\x33\x64\xc1\xd3\xf2\xfc\x35"
21088 "\x01",
21089 .ilen = 81,
21090 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21091 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21092 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21093 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21094 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21095 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21096 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21097 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21098 "\xbd",
21099 .rlen = 65,
21100 }, {
21101 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21102 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
21103 .klen = 16,
21104 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21105 "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
21106 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21107 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21108 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21109 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21110 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21111 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21112 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21113 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21114 "\x54",
21115 .alen = 65,
21116 .input = "\x4c\xa9\xac\x71\xed\x10\xa6\x24"
21117 "\xb7\xa7\xdf\x8b\xf5\xc2\x41\xcb"
21118 "\x05\xc9\xd6\x97\xb6\x10\x7f\x17"
21119 "\xc2\xc0\x93\xcf\xe0\x94\xfd\x99"
21120 "\xf2\x62\x25\x28\x01\x23\x6f\x8b"
21121 "\x04\x52\xbc\xb0\x3e\x66\x52\x90"
21122 "\x9f",
21123 .ilen = 49,
21124 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
21125 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
21126 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
21127 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
21128 "\x2f",
21129 .rlen = 33,
21130 }, {
21131 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
21132 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
21133 .klen = 16,
21134 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
21135 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
21136 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
21137 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
21138 .alen = 16,
21139 .input = "\x6d\xed\x04\x7a\x2f\x0c\x30\xa5"
21140 "\x96\xe6\x97\xe4\x10\xeb\x40\x95"
21141 "\xc5\x9a\xdf\x31\xd5\xa5\xa6\xec"
21142 "\x05\xa8\x31\x50\x11\x19\x44",
21143 .ilen = 31,
21144 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
21145 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
21146 .rlen = 16,
21147 }, {
21148 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
21149 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
21150 .klen = 16,
21151 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
21152 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
21153 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
21154 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
21155 .alen = 16,
21156 .input = "\x30\x95\x7d\xea\xdc\x62\xc0\x88"
21157 "\xa1\xe3\x8d\x8c\xac\x04\x10\xa7"
21158 "\xfa\xfa\x07\xbd\xa0\xf0\x36\xeb"
21159 "\x21\x93\x2e\x31\x84\x83",
21160 .ilen = 30,
21161 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
21162 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
21163 .rlen = 16,
21164 }, {
21165 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
21166 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
21167 .klen = 16,
21168 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
21169 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
21170 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
21171 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
21172 .alen = 16,
21173 .input = "\x93\xcd\xee\xd4\xcb\x9d\x8d\x16"
21174 "\x63\x0d\x43\xd5\x49\xca\xa8\x85"
21175 "\x49\xc0\xae\x13\xbc\x26\x1d\x4b",
21176 .ilen = 24,
21177 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21178 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21179 .rlen = 16,
21180 },
21181};
21182
21183/*
21184 * AEGIS-256 test vectors - generated via reference implementation from
21185 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
21186 *
21187 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
21188 * (see crypto_aead/aegis256/)
21189 */
21190static const struct aead_testvec aegis256_enc_tv_template[] = {
21191 {
21192 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21193 "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
21194 "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
21195 "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
21196 .klen = 32,
21197 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21198 "\x40\x6d\x59\x48\xfc\x92\x61\x03"
21199 "\x95\x61\x05\x42\x82\x50\xc0\x0c"
21200 "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
21201 .assoc = "",
21202 .alen = 0,
21203 .input = "",
21204 .ilen = 0,
21205 .result = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
21206 "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
21207 .rlen = 16,
21208 }, {
21209 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21210 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
21211 "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
21212 "\xf1\x38\x16\xce\x90\x76\x87\x8c",
21213 .klen = 32,
21214 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21215 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
21216 "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
21217 "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
21218 .assoc = "",
21219 .alen = 0,
21220 .input = "\x79",
21221 .ilen = 1,
21222 .result = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
21223 "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
21224 "\x8b",
21225 .rlen = 17,
21226 }, {
21227 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21228 "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
21229 "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
21230 "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
21231 .klen = 32,
21232 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21233 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
21234 "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
21235 "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
21236 .assoc = "",
21237 .alen = 0,
21238 .input = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21239 "\x82\x8e\x16\xb4\xed\x6d\x47",
21240 .ilen = 15,
21241 .result = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
21242 "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
21243 "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
21244 "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
21245 .rlen = 31,
21246 }, {
21247 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21248 "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
21249 "\x49\xf7\xa5\xad\x50\x88\x66\x53"
21250 "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
21251 .klen = 32,
21252 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21253 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
21254 "\x14\xa8\x28\xce\x92\x30\x46\x59"
21255 "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
21256 .assoc = "",
21257 .alen = 0,
21258 .input = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21259 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21260 .ilen = 16,
21261 .result = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
21262 "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
21263 "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
21264 "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
21265 .rlen = 32,
21266 }, {
21267 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21268 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
21269 "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
21270 "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
21271 .klen = 32,
21272 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21273 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
21274 "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
21275 "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
21276 .assoc = "",
21277 .alen = 0,
21278 .input = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21279 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21280 "\xd3",
21281 .ilen = 17,
21282 .result = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
21283 "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
21284 "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
21285 "\xc0\x00\x39\x13\xb5\x51\x68\x44"
21286 "\xad",
21287 .rlen = 33,
21288 }, {
21289 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21290 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
21291 "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
21292 "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
21293 .klen = 32,
21294 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21295 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
21296 "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
21297 "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
21298 .assoc = "",
21299 .alen = 0,
21300 .input = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21301 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21302 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21303 "\x88\x11\x39\x12\x1c\x3a\xbb",
21304 .ilen = 31,
21305 .result = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
21306 "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
21307 "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
21308 "\x89\x85\x23\x15\xb8\x79\x07\x4c"
21309 "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
21310 "\xc4\x1f\x12\x27\xcf\x77\x90",
21311 .rlen = 47,
21312 }, {
21313 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21314 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
21315 "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
21316 "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
21317 .klen = 32,
21318 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21319 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
21320 "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
21321 "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
21322 .assoc = "",
21323 .alen = 0,
21324 .input = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21325 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21326 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21327 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21328 .ilen = 32,
21329 .result = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
21330 "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
21331 "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
21332 "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
21333 "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
21334 "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
21335 .rlen = 48,
21336 }, {
21337 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21338 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
21339 "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
21340 "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
21341 .klen = 32,
21342 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21343 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
21344 "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
21345 "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
21346 .assoc = "\xd5",
21347 .alen = 1,
21348 .input = "",
21349 .ilen = 0,
21350 .result = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
21351 "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
21352 .rlen = 16,
21353 }, {
21354 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21355 "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
21356 "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
21357 "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
21358 .klen = 32,
21359 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21360 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
21361 "\xe8\x73\x62\x64\xab\x50\xd0\xda"
21362 "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
21363 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21364 "\x68\x75\x16\xf8\xcb\x7e\xa7",
21365 .alen = 15,
21366 .input = "",
21367 .ilen = 0,
21368 .result = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
21369 "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
21370 .rlen = 16,
21371 }, {
21372 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21373 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
21374 "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
21375 "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
21376 .klen = 32,
21377 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21378 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
21379 "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
21380 "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
21381 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21382 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21383 .alen = 16,
21384 .input = "",
21385 .ilen = 0,
21386 .result = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
21387 "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
21388 .rlen = 16,
21389 }, {
21390 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21391 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
21392 "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
21393 "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
21394 .klen = 32,
21395 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21396 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
21397 "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
21398 "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
21399 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21400 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21401 "\x07",
21402 .alen = 17,
21403 .input = "",
21404 .ilen = 0,
21405 .result = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
21406 "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
21407 .rlen = 16,
21408 }, {
21409 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21410 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
21411 "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
21412 "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
21413 .klen = 32,
21414 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21415 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
21416 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
21417 "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
21418 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21419 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21420 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21421 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21422 .alen = 31,
21423 .input = "",
21424 .ilen = 0,
21425 .result = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
21426 "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
21427 .rlen = 16,
21428 }, {
21429 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21430 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
21431 "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
21432 "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
21433 .klen = 32,
21434 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21435 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
21436 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
21437 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
21438 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21439 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21440 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21441 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21442 .alen = 32,
21443 .input = "",
21444 .ilen = 0,
21445 .result = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
21446 "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
21447 .rlen = 16,
21448 }, {
21449 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21450 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
21451 "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
21452 "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
21453 .klen = 32,
21454 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21455 "\xcc\x81\x63\xab\xae\x6b\x43\x54"
21456 "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
21457 "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
21458 .assoc = "\x40",
21459 .alen = 1,
21460 .input = "\x4f",
21461 .ilen = 1,
21462 .result = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
21463 "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
21464 "\xc7",
21465 .rlen = 17,
21466 }, {
21467 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
21468 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
21469 "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
21470 "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
21471 .klen = 32,
21472 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
21473 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
21474 "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
21475 "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
21476 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
21477 "\x6d\x92\x42\x61\xa7\x58\x37",
21478 .alen = 15,
21479 .input = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
21480 "\x8d\xc8\x6e\x85\xa5\x21\x67",
21481 .ilen = 15,
21482 .result = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
21483 "\x7e\x98\x83\x02\x34\x23\xf7\x94"
21484 "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
21485 "\x14\x80\x6a\xa7\x1b\xae\x1d",
21486 .rlen = 31,
21487 }, {
21488 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
21489 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
21490 "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
21491 "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
21492 .klen = 32,
21493 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
21494 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
21495 "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
21496 "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
21497 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
21498 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
21499 .alen = 16,
21500 .input = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
21501 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
21502 .ilen = 16,
21503 .result = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
21504 "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
21505 "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
21506 "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
21507 .rlen = 32,
21508 }, {
21509 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
21510 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
21511 "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
21512 "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
21513 .klen = 32,
21514 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
21515 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
21516 "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
21517 "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
21518 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
21519 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
21520 "\x05",
21521 .alen = 17,
21522 .input = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
21523 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
21524 "\xd0",
21525 .ilen = 17,
21526 .result = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
21527 "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
21528 "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
21529 "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
21530 "\x55",
21531 .rlen = 33,
21532 }, {
21533 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
21534 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
21535 "\x9a\x97\x48\xe9\x98\x48\x82\xba"
21536 "\x07\x11\x04\x54\x32\x67\x7b\xf5",
21537 .klen = 32,
21538 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
21539 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
21540 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
21541 "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
21542 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
21543 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
21544 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
21545 "\x68\x28\x73\x40\x9f\x96\x4a",
21546 .alen = 31,
21547 .input = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
21548 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
21549 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
21550 "\x98\x34\xab\x37\x56\xae\x32",
21551 .ilen = 31,
21552 .result = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
21553 "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
21554 "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
21555 "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
21556 "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
21557 "\xdf\xb8\xea\xd8\xa9\x38\xed",
21558 .rlen = 47,
21559 }, {
21560 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
21561 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
21562 "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
21563 "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
21564 .klen = 32,
21565 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
21566 "\x50\xc4\xde\x82\x90\x21\x11\x73"
21567 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
21568 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
21569 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
21570 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
21571 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
21572 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
21573 .alen = 32,
21574 .input = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
21575 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
21576 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
21577 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
21578 .ilen = 32,
21579 .result = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
21580 "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
21581 "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
21582 "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
21583 "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
21584 "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
21585 .rlen = 48,
21586 }, {
21587 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
21588 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
21589 "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
21590 "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
21591 .klen = 32,
21592 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
21593 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
21594 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
21595 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
21596 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
21597 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
21598 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
21599 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
21600 "\x9d",
21601 .alen = 33,
21602 .input = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
21603 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
21604 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
21605 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
21606 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
21607 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
21608 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
21609 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
21610 "\xbd",
21611 .ilen = 65,
21612 .result = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
21613 "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
21614 "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
21615 "\x1a\x93\x33\x79\x97\x82\x81\xc0"
21616 "\x96\xc2\x00\xab\x39\xae\xa1\x62"
21617 "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
21618 "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
21619 "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
21620 "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
21621 "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
21622 "\x65",
21623 .rlen = 81,
21624 }, {
21625 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
21626 "\x32\x42\x15\x80\x85\xa1\x65\xfe"
21627 "\x19\xde\x6b\x76\xa8\x28\x08\x07"
21628 "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
21629 .klen = 32,
21630 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
21631 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
21632 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
21633 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
21634 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
21635 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
21636 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
21637 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
21638 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
21639 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
21640 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
21641 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
21642 "\x54",
21643 .alen = 65,
21644 .input = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
21645 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
21646 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
21647 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
21648 "\x2f",
21649 .ilen = 33,
21650 .result = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
21651 "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
21652 "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
21653 "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
21654 "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
21655 "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
21656 "\xda",
21657 .rlen = 49,
21658 }, {
21659 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
21660 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
21661 "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
21662 "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
21663 .klen = 32,
21664 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
21665 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
21666 "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
21667 "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
21668 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
21669 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
21670 .alen = 16,
21671 .input = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
21672 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
21673 .ilen = 16,
21674 .result = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
21675 "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
21676 "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
21677 "\xc7\xff\xbd\xbc\x85\x09\x0b",
21678 .rlen = 31,
21679 }, {
21680 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
21681 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
21682 "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
21683 "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
21684 .klen = 32,
21685 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
21686 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
21687 "\x39\x14\x05\xa0\xf3\x10\xec\x41"
21688 "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
21689 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
21690 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
21691 .alen = 16,
21692 .input = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
21693 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
21694 .ilen = 16,
21695 .result = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
21696 "\x6c\xd9\x84\x63\x70\x97\x61\x37"
21697 "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
21698 "\x62\xd5\xc8\xf0\x46\x1a",
21699 .rlen = 30,
21700 }, {
21701 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
21702 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
21703 "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
21704 "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
21705 .klen = 32,
21706 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
21707 "\xd5\x07\x58\x59\x72\xd7\xde\x92"
21708 "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
21709 "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
21710 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
21711 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
21712 .alen = 16,
21713 .input = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
21714 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
21715 .ilen = 16,
21716 .result = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
21717 "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
21718 "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
21719 .rlen = 24,
21720 },
21721};
21722
21723static const struct aead_testvec aegis256_dec_tv_template[] = {
21724 {
21725 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
21726 "\x20\x36\x2c\x24\xfe\xc9\x30\x81"
21727 "\xca\xb0\x82\x21\x41\xa8\xe0\x06"
21728 "\x30\x0b\x37\xf6\xb6\x17\xe7\xb5",
21729 .klen = 32,
21730 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
21731 "\x40\x6d\x59\x48\xfc\x92\x61\x03"
21732 "\x95\x61\x05\x42\x82\x50\xc0\x0c"
21733 "\x60\x16\x6f\xec\x6d\x2f\xcf\x6b",
21734 .assoc = "",
21735 .alen = 0,
21736 .input = "\xd5\x65\x3a\xa9\x03\x51\xd7\xaa"
21737 "\xfa\x4b\xd8\xa2\x41\x9b\xc1\xb2",
21738 .ilen = 16,
21739 .result = "",
21740 .rlen = 0,
21741 }, {
21742 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
21743 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87"
21744 "\xf4\x72\x8e\xa5\x46\x48\x62\x20"
21745 "\xf1\x38\x16\xce\x90\x76\x87\x8c",
21746 .klen = 32,
21747 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
21748 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09"
21749 "\xbf\x23\x11\xc6\x87\xf0\x42\x26"
21750 "\x22\x44\x4e\xc4\x47\x8e\x6e\x41",
21751 .assoc = "",
21752 .alen = 0,
21753 .input = "\x84\xa2\x8f\xad\xdb\x8d\x2c\x16"
21754 "\x9e\x89\xd9\x06\xa6\xa8\x14\x29"
21755 "\x8b",
21756 .ilen = 17,
21757 .result = "\x79",
21758 .rlen = 1,
21759 }, {
21760 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
21761 "\x22\xea\x90\x47\xf2\x11\xb5\x8e"
21762 "\x1f\x35\x9a\x29\x4b\xe8\xe4\x39"
21763 "\xb3\x66\xf5\xa6\x6a\xd5\x26\x62",
21764 .klen = 32,
21765 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
21766 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f"
21767 "\xe9\xe5\x1d\x4a\x8c\x90\xc4\x40"
21768 "\xe3\x71\x2d\x9c\x21\xed\x0e\x18",
21769 .assoc = "",
21770 .alen = 0,
21771 .input = "\x09\x94\x1f\xa6\x13\xc3\x74\x75"
21772 "\x17\xad\x8a\x0e\xd8\x66\x9a\x28"
21773 "\xd7\x30\x66\x09\x2a\xdc\xfa\x2a"
21774 "\x9f\x3b\xd7\xdd\x66\xd1\x2b",
21775 .ilen = 31,
21776 .result = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
21777 "\x82\x8e\x16\xb4\xed\x6d\x47",
21778 .rlen = 15,
21779 }, {
21780 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
21781 "\xa2\xc5\x42\xd8\xec\x36\x78\x94"
21782 "\x49\xf7\xa5\xad\x50\x88\x66\x53"
21783 "\x74\x94\xd4\x7f\x44\x34\xc5\x39",
21784 .klen = 32,
21785 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
21786 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15"
21787 "\x14\xa8\x28\xce\x92\x30\x46\x59"
21788 "\xa4\x9f\x0b\x75\xfb\x4c\xad\xee",
21789 .assoc = "",
21790 .alen = 0,
21791 .input = "\x8a\x46\xa2\x22\x8c\x03\xab\x6f"
21792 "\x54\x63\x4e\x7f\xc9\x8e\xfa\x70"
21793 "\x7b\xe5\x8d\x78\xbc\xe9\xb6\xa1"
21794 "\x29\x17\xc8\x3b\x52\xa4\x98\x72",
21795 .ilen = 32,
21796 .result = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
21797 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
21798 .rlen = 16,
21799 }, {
21800 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
21801 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a"
21802 "\x74\xb9\xb1\x32\x55\x28\xe8\x6d"
21803 "\x35\xc1\xb3\x57\x1f\x93\x64\x0f",
21804 .klen = 32,
21805 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
21806 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c"
21807 "\x3e\x6a\x34\x53\x97\xd0\xc8\x73"
21808 "\x66\xcd\xea\x4d\xd5\xab\x4c\xc5",
21809 .assoc = "",
21810 .alen = 0,
21811 .input = "\x71\x6b\x37\x0b\x02\x61\x28\x12"
21812 "\x83\xab\x66\x90\x84\xc7\xd1\xc5"
21813 "\xb2\x7a\xb4\x7b\xb4\xfe\x02\xb2"
21814 "\xc0\x00\x39\x13\xb5\x51\x68\x44"
21815 "\xad",
21816 .ilen = 33,
21817 .result = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
21818 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
21819 "\xd3",
21820 .rlen = 17,
21821 }, {
21822 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
21823 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0"
21824 "\x9e\x7c\xbc\xb6\x5b\xc8\x6a\x86"
21825 "\xf7\xef\x91\x30\xf9\xf2\x04\xe6",
21826 .klen = 32,
21827 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
21828 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22"
21829 "\x69\x2c\x3f\xd7\x9c\x70\x4a\x8d"
21830 "\x27\xfa\xc9\x26\xaf\x0a\xeb\x9c",
21831 .assoc = "",
21832 .alen = 0,
21833 .input = "\xaf\xa4\x34\x0d\x59\xe6\x1c\x2f"
21834 "\x06\x3b\x52\x18\x49\x75\x1b\xf0"
21835 "\x53\x09\x72\x7b\x45\x79\xe0\xbe"
21836 "\x89\x85\x23\x15\xb8\x79\x07\x4c"
21837 "\x53\x7a\x15\x37\x0a\xee\xb7\xfb"
21838 "\xc4\x1f\x12\x27\xcf\x77\x90",
21839 .ilen = 47,
21840 .result = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
21841 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
21842 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
21843 "\x88\x11\x39\x12\x1c\x3a\xbb",
21844 .rlen = 31,
21845 }, {
21846 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
21847 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6"
21848 "\xc8\x3e\xc8\x3a\x60\x68\xec\xa0"
21849 "\xb8\x1c\x70\x08\xd3\x51\xa3\xbd",
21850 .klen = 32,
21851 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
21852 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28"
21853 "\x93\xef\x4b\x5b\xa1\x10\xcc\xa6"
21854 "\xe8\x28\xa8\xfe\x89\x69\x8b\x72",
21855 .assoc = "",
21856 .alen = 0,
21857 .input = "\xe2\xc9\x0b\x33\x31\x02\xb3\xb4"
21858 "\x33\xfe\xeb\xa8\xb7\x9b\xb2\xd7"
21859 "\xeb\x0f\x05\x2b\xba\xb3\xca\xef"
21860 "\xf6\xd1\xb6\xc0\xb9\x9b\x85\xc5"
21861 "\xbf\x7a\x3e\xcc\x31\x76\x09\x80"
21862 "\x32\x5d\xbb\xe8\x38\x0e\x77\xd3",
21863 .ilen = 48,
21864 .result = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
21865 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
21866 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
21867 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
21868 .rlen = 32,
21869 }, {
21870 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
21871 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad"
21872 "\xf3\x00\xd4\xbf\x65\x08\x6e\xb9"
21873 "\x7a\x4a\x4f\xe0\xad\xb0\x42\x93",
21874 .klen = 32,
21875 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
21876 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e"
21877 "\xbd\xb1\x57\xe0\xa6\xb0\x4e\xc0"
21878 "\xaa\x55\x87\xd6\x63\xc8\x2a\x49",
21879 .assoc = "\xd5",
21880 .alen = 1,
21881 .input = "\x96\x43\x30\xca\x6c\x4f\xd7\x12"
21882 "\xba\xd9\xb3\x18\x86\xdf\xc3\x52",
21883 .ilen = 16,
21884 .result = "",
21885 .rlen = 0,
21886 }, {
21887 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
21888 "\x27\x08\xbd\xaf\xce\xec\x45\xb3"
21889 "\x1d\xc3\xdf\x43\x6a\xa8\xf0\xd3"
21890 "\x3b\x77\x2e\xb9\x87\x0f\xe1\x6a",
21891 .klen = 32,
21892 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
21893 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
21894 "\xe8\x73\x62\x64\xab\x50\xd0\xda"
21895 "\x6b\x83\x66\xaf\x3e\x27\xc9\x1f",
21896 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
21897 "\x68\x75\x16\xf8\xcb\x7e\xa7",
21898 .alen = 15,
21899 .input = "\x2f\xab\x45\xe2\xa7\x46\xc5\x83"
21900 "\x11\x9f\xb0\x74\xee\xc7\x03\xdd",
21901 .ilen = 16,
21902 .result = "",
21903 .rlen = 0,
21904 }, {
21905 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
21906 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9"
21907 "\x47\x85\xeb\xc7\x6f\x48\x72\xed"
21908 "\xfc\xa5\x0d\x91\x61\x6e\x81\x40",
21909 .klen = 32,
21910 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
21911 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
21912 "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
21913 "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
21914 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
21915 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
21916 .alen = 16,
21917 .input = "\x16\x44\x73\x33\x5d\xf2\xb9\x04"
21918 "\x6b\x79\x98\xef\xdb\xd5\xc5\xf1",
21919 .ilen = 16,
21920 .result = "",
21921 .rlen = 0,
21922 }, {
21923 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
21924 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf"
21925 "\x72\x47\xf6\x4b\x74\xe8\xf4\x06"
21926 "\xbe\xd3\xec\x6a\x3b\xcd\x20\x17",
21927 .klen = 32,
21928 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
21929 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
21930 "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
21931 "\xee\xde\x23\x60\xf2\xe5\x08\xcc",
21932 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
21933 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
21934 "\x07",
21935 .alen = 17,
21936 .input = "\xa4\x9b\xb8\x47\xc0\xed\x7a\x45"
21937 "\x98\x54\x8c\xed\x3d\x17\xf0\xdd",
21938 .ilen = 16,
21939 .result = "",
21940 .rlen = 0,
21941 }, {
21942 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
21943 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6"
21944 "\x9c\x0a\x02\xd0\x79\x88\x76\x20"
21945 "\x7f\x00\xca\x42\x15\x2c\xbf\xed",
21946 .klen = 32,
21947 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
21948 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
21949 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
21950 "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3",
21951 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
21952 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
21953 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
21954 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
21955 .alen = 31,
21956 .input = "\x20\x24\xe2\x33\x5c\x60\xc9\xf0"
21957 "\xa4\x96\x2f\x0d\x53\xc2\xf8\xfc",
21958 .ilen = 16,
21959 .result = "",
21960 .rlen = 0,
21961 }, {
21962 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
21963 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc"
21964 "\xc6\xcc\x0e\x54\x7f\x28\xf8\x3a"
21965 "\x40\x2e\xa9\x1a\xf0\x8b\x5e\xc4",
21966 .klen = 32,
21967 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
21968 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
21969 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
21970 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
21971 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
21972 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
21973 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
21974 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
21975 .alen = 32,
21976 .input = "\x6f\x4a\xb9\xe0\xff\x51\xa3\xf1"
21977 "\xd2\x64\x3e\x66\x6a\xb2\x03\xc0",
21978 .ilen = 16,
21979 .result = "",
21980 .rlen = 0,
21981 }, {
21982 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
21983 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2"
21984 "\xf1\x8e\x19\xd8\x84\xc8\x7a\x53"
21985 "\x02\x5b\x88\xf3\xca\xea\xfe\x9b",
21986 .klen = 32,
21987 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
21988 "\xcc\x81\x63\xab\xae\x6b\x43\x54"
21989 "\xbb\x3f\x9c\xf9\xc5\x70\x5a\x5a"
21990 "\x32\x67\xc0\xe9\x80\x02\xe5\x50",
21991 .assoc = "\x40",
21992 .alen = 1,
21993 .input = "\x2c\xfb\xad\x7e\xbe\xa0\x9a\x5b"
21994 "\x7a\x3f\x81\xf7\xfc\x1b\x79\x83"
21995 "\xc7",
21996 .ilen = 17,
21997 .result = "\x4f",
21998 .rlen = 1,
21999 }, {
22000 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22001 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8"
22002 "\x1b\x50\x25\x5d\x89\x68\xfc\x6d"
22003 "\xc3\x89\x67\xcb\xa4\x49\x9d\x71",
22004 .klen = 32,
22005 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22006 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
22007 "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
22008 "\xf4\x94\x9f\xc1\x5a\x61\x85\x27",
22009 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22010 "\x6d\x92\x42\x61\xa7\x58\x37",
22011 .alen = 15,
22012 .input = "\x1f\x7f\xca\x3c\x2b\xe7\x27\xba"
22013 "\x7e\x98\x83\x02\x34\x23\xf7\x94"
22014 "\xde\x35\xe6\x1d\x14\x18\xe5\x38"
22015 "\x14\x80\x6a\xa7\x1b\xae\x1d",
22016 .ilen = 31,
22017 .result = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22018 "\x8d\xc8\x6e\x85\xa5\x21\x67",
22019 .rlen = 15,
22020 }, {
22021 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22022 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf"
22023 "\x46\x13\x31\xe1\x8e\x08\x7e\x87"
22024 "\x85\xb6\x46\xa3\x7e\xa8\x3c\x48",
22025 .klen = 32,
22026 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22027 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
22028 "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
22029 "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
22030 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22031 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22032 .alen = 16,
22033 .input = "\x05\x86\x9e\xd7\x2b\xa3\x97\x01"
22034 "\xbe\x28\x98\x10\x6f\xe9\x61\x32"
22035 "\x96\xbb\xb1\x2e\x8f\x0c\x44\xb9"
22036 "\x46\x2d\x55\xe3\x42\x67\xf2\xaf",
22037 .ilen = 32,
22038 .result = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22039 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22040 .rlen = 16,
22041 }, {
22042 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22043 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5"
22044 "\x70\xd5\x3c\x65\x93\xa8\x00\xa0"
22045 "\x46\xe4\x25\x7c\x58\x08\xdb\x1e",
22046 .klen = 32,
22047 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22048 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22049 "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
22050 "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4",
22051 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22052 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22053 "\x05",
22054 .alen = 17,
22055 .input = "\x9c\xe0\x06\x7b\x86\xcf\x2e\xd8"
22056 "\x45\x65\x1b\x72\x9b\xaa\xa3\x1e"
22057 "\x87\x9d\x26\xdf\xff\x81\x11\xd2"
22058 "\x47\x41\xb9\x24\xc1\x8a\xa3\x8b"
22059 "\x55",
22060 .ilen = 33,
22061 .result = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22062 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
22063 "\xd0",
22064 .rlen = 17,
22065 }, {
22066 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22067 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb"
22068 "\x9a\x97\x48\xe9\x98\x48\x82\xba"
22069 "\x07\x11\x04\x54\x32\x67\x7b\xf5",
22070 .klen = 32,
22071 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22072 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
22073 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
22074 "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa",
22075 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22076 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22077 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22078 "\x68\x28\x73\x40\x9f\x96\x4a",
22079 .alen = 31,
22080 .input = "\xa0\xc8\xde\x83\x0d\xc3\x4e\xd5"
22081 "\x69\x7f\x7a\xdd\x8c\x46\xda\xba"
22082 "\x0a\x5c\x0e\x7f\xac\xee\x02\xd2"
22083 "\xe5\x4b\x0a\xba\xb8\xa4\x7b\x66"
22084 "\xde\xae\xdb\xc2\xc0\x0b\xf7\x2b"
22085 "\xdf\xb8\xea\xd8\xa9\x38\xed",
22086 .ilen = 47,
22087 .result = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22088 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
22089 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
22090 "\x98\x34\xab\x37\x56\xae\x32",
22091 .rlen = 31,
22092 }, {
22093 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22094 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1"
22095 "\xc5\x5a\x53\x6e\x9d\xe8\x04\xd4"
22096 "\xc9\x3f\xe2\x2d\x0c\xc6\x1a\xcb",
22097 .klen = 32,
22098 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22099 "\x50\xc4\xde\x82\x90\x21\x11\x73"
22100 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
22101 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
22102 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22103 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22104 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22105 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22106 .alen = 32,
22107 .input = "\xd3\x68\x14\x70\x3c\x01\x43\x86"
22108 "\x02\xab\xbe\x75\xaa\xe7\xf5\x53"
22109 "\x5c\x05\xbd\x9b\x19\xbb\x2a\x61"
22110 "\x8f\x69\x05\x75\x8e\xca\x60\x0c"
22111 "\x5b\xa2\x48\x61\x32\x74\x11\x2b"
22112 "\xf6\xcf\x06\x78\x6f\x78\x1a\x4a",
22113 .ilen = 48,
22114 .result = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
22115 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
22116 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
22117 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
22118 .rlen = 32,
22119 }, {
22120 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22121 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7"
22122 "\xef\x1c\x5f\xf2\xa3\x88\x86\xed"
22123 "\x8a\x6d\xc1\x05\xe7\x25\xb9\xa2",
22124 .klen = 32,
22125 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22126 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
22127 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
22128 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58",
22129 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22130 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22131 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22132 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22133 "\x9d",
22134 .alen = 33,
22135 .input = "\x07\x0a\x35\xb0\x82\x03\x5a\xd2"
22136 "\x15\x3a\x6c\x72\x83\x9b\xb1\x75"
22137 "\xea\xf2\xfc\xff\xc6\xf1\x13\xa4"
22138 "\x1a\x93\x33\x79\x97\x82\x81\xc0"
22139 "\x96\xc2\x00\xab\x39\xae\xa1\x62"
22140 "\x53\xa3\x86\xc9\x07\x8c\xaf\x22"
22141 "\x47\x31\x29\xca\x4a\x95\xf5\xd5"
22142 "\x20\x63\x5a\x54\x80\x2c\x4a\x63"
22143 "\xfb\x18\x73\x31\x4f\x08\x21\x5d"
22144 "\x20\xe9\xc3\x7e\xea\x25\x77\x3a"
22145 "\x65",
22146 .ilen = 81,
22147 .result = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22148 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
22149 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
22150 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
22151 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
22152 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
22153 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
22154 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
22155 "\xbd",
22156 .rlen = 65,
22157 }, {
22158 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22159 "\x32\x42\x15\x80\x85\xa1\x65\xfe"
22160 "\x19\xde\x6b\x76\xa8\x28\x08\x07"
22161 "\x4b\x9a\xa0\xdd\xc1\x84\x58\x79",
22162 .klen = 32,
22163 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22164 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
22165 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
22166 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e",
22167 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22168 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22169 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22170 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22171 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
22172 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
22173 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
22174 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
22175 "\x54",
22176 .alen = 65,
22177 .input = "\x33\xc1\xda\xfa\x15\x21\x07\x8e"
22178 "\x93\x68\xea\x64\x7b\x3d\x4b\x6b"
22179 "\x71\x5e\x5e\x6b\x92\xaa\x65\xc2"
22180 "\x7a\x2a\xc1\xa9\x0a\xa1\x24\x81"
22181 "\x26\x3a\x5a\x09\xe8\xce\x73\x72"
22182 "\xde\x7b\x58\x9e\x85\xb9\xa4\x28"
22183 "\xda",
22184 .ilen = 49,
22185 .result = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22186 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
22187 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
22188 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
22189 "\x2f",
22190 .rlen = 33,
22191 }, {
22192 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22193 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04"
22194 "\x44\xa1\x76\xfb\xad\xc8\x8a\x21"
22195 "\x0d\xc8\x7f\xb6\x9b\xe3\xf8\x4f",
22196 .klen = 32,
22197 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22198 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
22199 "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
22200 "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
22201 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22202 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22203 .alen = 16,
22204 .input = "\x3e\xf8\x86\x3d\x39\xf8\x96\x02"
22205 "\x0f\xdf\xc9\x6e\x37\x1e\x57\x99"
22206 "\x07\x2a\x1a\xac\xd1\xda\xfd\x3b"
22207 "\xc7\xff\xbd\xbc\x85\x09\x0b",
22208 .ilen = 31,
22209 .result = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22210 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22211 .rlen = 16,
22212 }, {
22213 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22214 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a"
22215 "\x6e\x63\x82\x7f\xb2\x68\x0c\x3a"
22216 "\xce\xf5\x5e\x8e\x75\x42\x97\x26",
22217 .klen = 32,
22218 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22219 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
22220 "\x39\x14\x05\xa0\xf3\x10\xec\x41"
22221 "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
22222 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22223 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22224 .alen = 16,
22225 .input = "\x2f\xc4\xd8\x0d\xa6\x07\xef\x2e"
22226 "\x6c\xd9\x84\x63\x70\x97\x61\x37"
22227 "\x08\x2f\x16\x90\x9e\x62\x30\x0d"
22228 "\x62\xd5\xc8\xf0\x46\x1a",
22229 .ilen = 30,
22230 .result = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22231 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22232 .rlen = 16,
22233 }, {
22234 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22235 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10"
22236 "\x98\x25\x8d\x03\xb7\x08\x8e\x54"
22237 "\x90\x23\x3d\x67\x4f\xa1\x36\xfc",
22238 .klen = 32,
22239 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22240 "\xd5\x07\x58\x59\x72\xd7\xde\x92"
22241 "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
22242 "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
22243 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22244 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22245 .alen = 16,
22246 .input = "\xce\xf3\x17\x87\x49\xc2\x00\x46"
22247 "\xc6\x12\x5c\x8f\x81\x38\xaa\x55"
22248 "\xf8\x67\x75\xf1\x75\xe3\x2a\x24",
22249 .ilen = 24,
22250 .result = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22251 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22252 .rlen = 16,
22253 },
22254};
22255
Martin Willi59007582015-06-01 13:44:03 +020022256/*
Ondrej Mosnacek4feb4c52018-05-11 14:19:10 +020022257 * MORUS-640 test vectors - generated via reference implementation from
22258 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
22259 *
22260 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
22261 * (see crypto_aead/morus640128v2/)
22262 */
22263static const struct aead_testvec morus640_enc_tv_template[] = {
22264 {
22265 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
22266 "\x00\x00\x00\x00\x00\x00\x00\x00",
22267 .klen = 16,
22268 .iv = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22269 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
22270 .assoc = "",
22271 .alen = 0,
22272 .input = "",
22273 .ilen = 0,
22274 .result = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
22275 "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
22276 .rlen = 16,
22277 }, {
22278 .key = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
22279 "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
22280 .klen = 16,
22281 .iv = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22282 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
22283 .assoc = "",
22284 .alen = 0,
22285 .input = "\x69",
22286 .ilen = 1,
22287 .result = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
22288 "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
22289 "\x09",
22290 .rlen = 17,
22291 }, {
22292 .key = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
22293 "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
22294 .klen = 16,
22295 .iv = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22296 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
22297 .assoc = "",
22298 .alen = 0,
22299 .input = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
22300 "\x62\x58\xe9\x8f\xef\xa4\x17",
22301 .ilen = 15,
22302 .result = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
22303 "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
22304 "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
22305 "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
22306 .rlen = 31,
22307 }, {
22308 .key = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22309 "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
22310 .klen = 16,
22311 .iv = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22312 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
22313 .assoc = "",
22314 .alen = 0,
22315 .input = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
22316 "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
22317 .ilen = 16,
22318 .result = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
22319 "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
22320 "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
22321 "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
22322 .rlen = 32,
22323 }, {
22324 .key = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22325 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22326 .klen = 16,
22327 .iv = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22328 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
22329 .assoc = "",
22330 .alen = 0,
22331 .input = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
22332 "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
22333 "\x09",
22334 .ilen = 17,
22335 .result = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
22336 "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
22337 "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
22338 "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
22339 "\x0d",
22340 .rlen = 33,
22341 }, {
22342 .key = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22343 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
22344 .klen = 16,
22345 .iv = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22346 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
22347 .assoc = "",
22348 .alen = 0,
22349 .input = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
22350 "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
22351 "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
22352 "\x57\x05\x01\x1c\x66\x22\xd3",
22353 .ilen = 31,
22354 .result = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
22355 "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
22356 "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
22357 "\x36\x12\x12\xed\xa3\x31\xc5\x30"
22358 "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
22359 "\x75\xfa\x6c\x17\xc6\x73\xca",
22360 .rlen = 47,
22361 }, {
22362 .key = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22363 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
22364 .klen = 16,
22365 .iv = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22366 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
22367 .assoc = "",
22368 .alen = 0,
22369 .input = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
22370 "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
22371 "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
22372 "\x19\x33\xe0\xf4\x40\x81\x72\x28",
22373 .ilen = 32,
22374 .result = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
22375 "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
22376 "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
22377 "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
22378 "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
22379 "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
22380 .rlen = 48,
22381 }, {
22382 .key = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22383 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
22384 .klen = 16,
22385 .iv = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22386 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
22387 .assoc = "\xc5",
22388 .alen = 1,
22389 .input = "",
22390 .ilen = 0,
22391 .result = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
22392 "\x09\x48\x39\x69\x9c\xb3\x62\x46",
22393 .rlen = 16,
22394 }, {
22395 .key = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
22396 "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
22397 .klen = 16,
22398 .iv = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22399 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
22400 .assoc = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22401 "\x47\x3e\xe9\xd4\xcc\xb5\x76",
22402 .alen = 15,
22403 .input = "",
22404 .ilen = 0,
22405 .result = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
22406 "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
22407 .rlen = 16,
22408 }, {
22409 .key = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
22410 "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
22411 .klen = 16,
22412 .iv = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22413 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
22414 .assoc = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22415 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
22416 .alen = 16,
22417 .input = "",
22418 .ilen = 0,
22419 .result = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
22420 "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
22421 .rlen = 16,
22422 }, {
22423 .key = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
22424 "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
22425 .klen = 16,
22426 .iv = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22427 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
22428 .assoc = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22429 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
22430 "\x3c",
22431 .alen = 17,
22432 .input = "",
22433 .ilen = 0,
22434 .result = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
22435 "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
22436 .rlen = 16,
22437 }, {
22438 .key = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
22439 "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
22440 .klen = 16,
22441 .iv = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22442 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
22443 .assoc = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22444 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
22445 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
22446 "\xaf\x0b\x02\x38\xcc\x44\xa7",
22447 .alen = 31,
22448 .input = "",
22449 .ilen = 0,
22450 .result = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
22451 "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
22452 .rlen = 16,
22453 }, {
22454 .key = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
22455 "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
22456 .klen = 16,
22457 .iv = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22458 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
22459 .assoc = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22460 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
22461 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
22462 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
22463 .alen = 32,
22464 .input = "",
22465 .ilen = 0,
22466 .result = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
22467 "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
22468 .rlen = 16,
22469 }, {
22470 .key = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
22471 "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
22472 .klen = 16,
22473 .iv = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22474 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
22475 .assoc = "\x31",
22476 .alen = 1,
22477 .input = "\x40",
22478 .ilen = 1,
22479 .result = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
22480 "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
22481 "\x22",
22482 .rlen = 17,
22483 }, {
22484 .key = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
22485 "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
22486 .klen = 16,
22487 .iv = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22488 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
22489 .assoc = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22490 "\x4d\x5b\x15\x3c\xa8\x8f\x06",
22491 .alen = 15,
22492 .input = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22493 "\x6d\x92\x42\x61\xa7\x58\x37",
22494 .ilen = 15,
22495 .result = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
22496 "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
22497 "\x07\x95\xa7\x44\x74\xf7\x22\xff"
22498 "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
22499 .rlen = 31,
22500 }, {
22501 .key = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22502 "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
22503 .klen = 16,
22504 .iv = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22505 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
22506 .assoc = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22507 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
22508 .alen = 16,
22509 .input = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22510 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22511 .ilen = 16,
22512 .result = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
22513 "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
22514 "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
22515 "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
22516 .rlen = 32,
22517 }, {
22518 .key = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22519 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22520 .klen = 16,
22521 .iv = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22522 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
22523 .assoc = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22524 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22525 "\x3b",
22526 .alen = 17,
22527 .input = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22528 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22529 "\x05",
22530 .ilen = 17,
22531 .result = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
22532 "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
22533 "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
22534 "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
22535 "\x83",
22536 .rlen = 33,
22537 }, {
22538 .key = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22539 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
22540 .klen = 16,
22541 .iv = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22542 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
22543 .assoc = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22544 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
22545 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
22546 "\x38\x1d\x3b\x4a\xe9\x7e\x62",
22547 .alen = 31,
22548 .input = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
22549 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
22550 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
22551 "\x68\x28\x73\x40\x9f\x96\x4a",
22552 .ilen = 31,
22553 .result = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
22554 "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
22555 "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
22556 "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
22557 "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
22558 "\xf1\x5a\x66\x69\xe0\xca\x83",
22559 .rlen = 47,
22560 }, {
22561 .key = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
22562 "\x10\x57\x85\x39\x93\x8f\xaf\x70",
22563 .klen = 16,
22564 .iv = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
22565 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
22566 .assoc = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
22567 "\x50\xc4\xde\x82\x90\x21\x11\x73"
22568 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
22569 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
22570 .alen = 32,
22571 .input = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
22572 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
22573 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
22574 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
22575 .ilen = 32,
22576 .result = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
22577 "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
22578 "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
22579 "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
22580 "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
22581 "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
22582 .rlen = 48,
22583 }, {
22584 .key = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
22585 "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
22586 .klen = 16,
22587 .iv = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
22588 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
22589 .assoc = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
22590 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
22591 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
22592 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
22593 "\x1a",
22594 .alen = 33,
22595 .input = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
22596 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
22597 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
22598 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
22599 "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
22600 "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
22601 "\x75\x73\x20\x30\x59\x54\xb2\xf0"
22602 "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
22603 "\x8a",
22604 .ilen = 65,
22605 .result = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
22606 "\xb1\x37\xde\x95\x06\x90\x11\x08"
22607 "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
22608 "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
22609 "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
22610 "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
22611 "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
22612 "\xef\x35\x25\x48\xed\xcf\x29\xa8"
22613 "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
22614 "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
22615 "\xc4",
22616 .rlen = 81,
22617 }, {
22618 .key = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
22619 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
22620 .klen = 16,
22621 .iv = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
22622 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
22623 .assoc = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
22624 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
22625 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
22626 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
22627 "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
22628 "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
22629 "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
22630 "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
22631 "\x21",
22632 .alen = 65,
22633 .input = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
22634 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
22635 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
22636 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
22637 "\xac",
22638 .ilen = 33,
22639 .result = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
22640 "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
22641 "\xf3\x78\x63\x34\x89\x79\x39\x6b"
22642 "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
22643 "\x54\x0b\xea\x05\xa6\x95\x64\xed"
22644 "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
22645 "\x66",
22646 .rlen = 49,
22647 }, {
22648 .key = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
22649 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
22650 .klen = 16,
22651 .iv = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
22652 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
22653 .assoc = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
22654 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
22655 .alen = 16,
22656 .input = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
22657 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
22658 .ilen = 16,
22659 .result = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
22660 "\x33\x98\x87\xde\x08\xb6\xb6\xae"
22661 "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
22662 "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
22663 .rlen = 31,
22664 }, {
22665 .key = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
22666 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
22667 .klen = 16,
22668 .iv = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
22669 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
22670 .assoc = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
22671 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
22672 .alen = 16,
22673 .input = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
22674 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
22675 .ilen = 16,
22676 .result = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
22677 "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
22678 "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
22679 "\x03\xde\x85\x71\x5d\x34",
22680 .rlen = 30,
22681 }, {
22682 .key = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
22683 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
22684 .klen = 16,
22685 .iv = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
22686 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
22687 .assoc = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
22688 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
22689 .alen = 16,
22690 .input = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
22691 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
22692 .ilen = 16,
22693 .result = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
22694 "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
22695 "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
22696 .rlen = 24,
22697 }, {
22698 .key = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
22699 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
22700 .klen = 16,
22701 .iv = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
22702 "\x36\xab\xde\xc6\x6d\x32\x70\x17",
22703 .assoc = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
22704 "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
22705 .alen = 16,
22706 .input = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
22707 "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
22708 .ilen = 16,
22709 .result = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
22710 "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
22711 "\x6e",
22712 .rlen = 17,
22713 },
22714};
22715
22716static const struct aead_testvec morus640_dec_tv_template[] = {
22717 {
22718 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
22719 "\x00\x00\x00\x00\x00\x00\x00\x00",
22720 .klen = 16,
22721 .iv = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
22722 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
22723 .assoc = "",
22724 .alen = 0,
22725 .input = "\x89\x62\x7d\xf3\x07\x9d\x52\x05"
22726 "\x53\xc3\x04\x60\x93\xb4\x37\x9a",
22727 .ilen = 16,
22728 .result = "",
22729 .rlen = 0,
22730 }, {
22731 .key = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
22732 "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
22733 .klen = 16,
22734 .iv = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
22735 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
22736 .assoc = "",
22737 .alen = 0,
22738 .input = "\xa8\x8d\xe4\x90\xb5\x50\x8f\x78"
22739 "\xb6\x10\x9a\x59\x5f\x61\x37\x70"
22740 "\x09",
22741 .ilen = 17,
22742 .result = "\x69",
22743 .rlen = 1,
22744 }, {
22745 .key = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
22746 "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
22747 .klen = 16,
22748 .iv = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
22749 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
22750 .assoc = "",
22751 .alen = 0,
22752 .input = "\x76\xdd\xb9\x05\x3d\xce\x61\x38"
22753 "\xf3\xef\xf7\xe5\xd7\xfd\x70\xa5"
22754 "\xcf\x9d\x64\xb8\x0a\x9f\xfd\x8b"
22755 "\xd4\x6e\xfe\xd9\xc8\x63\x4b",
22756 .ilen = 31,
22757 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
22758 "\x62\x58\xe9\x8f\xef\xa4\x17",
22759 .rlen = 15,
22760 }, {
22761 .key = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
22762 "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
22763 .klen = 16,
22764 .iv = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
22765 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
22766 .assoc = "",
22767 .alen = 0,
22768 .input = "\xdc\x72\xe8\x14\xfb\x63\xad\x72"
22769 "\x1f\x57\x9a\x1f\x88\x81\xdb\xd6"
22770 "\xc1\x91\x9d\xb9\x25\xc4\x99\x4c"
22771 "\x97\xcd\x8a\x0c\x9d\x68\x00\x1c",
22772 .ilen = 32,
22773 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
22774 "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97",
22775 .rlen = 16,
22776 }, {
22777 .key = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
22778 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
22779 .klen = 16,
22780 .iv = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
22781 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
22782 .assoc = "",
22783 .alen = 0,
22784 .input = "\x6b\x4f\x3b\x90\x9a\xa2\xb3\x82"
22785 "\x0a\xb8\x55\xee\xeb\x73\x4d\x7f"
22786 "\x54\x11\x3a\x8a\x31\xa3\xb5\xf2"
22787 "\xcd\x49\xdb\xf3\xee\x26\xbd\xa2"
22788 "\x0d",
22789 .ilen = 33,
22790 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
22791 "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
22792 "\x09",
22793 .rlen = 17,
22794 }, {
22795 .key = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
22796 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
22797 .klen = 16,
22798 .iv = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
22799 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
22800 .assoc = "",
22801 .alen = 0,
22802 .input = "\x59\xd1\x0f\x6b\xee\x27\x84\x92"
22803 "\xb7\xa9\xb5\xdd\x02\xa4\x12\xa5"
22804 "\x50\x32\xb4\x9a\x2e\x35\x83\x55"
22805 "\x36\x12\x12\xed\xa3\x31\xc5\x30"
22806 "\xa7\xe2\x4a\x6d\x05\x59\x43\x91"
22807 "\x75\xfa\x6c\x17\xc6\x73\xca",
22808 .ilen = 47,
22809 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
22810 "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
22811 "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
22812 "\x57\x05\x01\x1c\x66\x22\xd3",
22813 .rlen = 31,
22814 }, {
22815 .key = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
22816 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
22817 .klen = 16,
22818 .iv = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
22819 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
22820 .assoc = "",
22821 .alen = 0,
22822 .input = "\xdb\x49\x68\x0f\x91\x5b\x21\xb1"
22823 "\xcf\x50\xb2\x4c\x32\xe1\xa6\x69"
22824 "\xc0\xfb\x44\x1f\xa0\x9a\xeb\x39"
22825 "\x1b\xde\x68\x38\xcc\x27\x52\xc5"
22826 "\xf6\x3e\x74\xea\x66\x5b\x5f\x0c"
22827 "\x65\x9e\x58\xe6\x52\xa2\xfe\x59",
22828 .ilen = 48,
22829 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
22830 "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
22831 "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
22832 "\x19\x33\xe0\xf4\x40\x81\x72\x28",
22833 .rlen = 32,
22834 }, {
22835 .key = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
22836 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
22837 .klen = 16,
22838 .iv = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
22839 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
22840 .assoc = "\xc5",
22841 .alen = 1,
22842 .input = "\x56\xe7\x24\x52\xdd\x95\x60\x5b"
22843 "\x09\x48\x39\x69\x9c\xb3\x62\x46",
22844 .ilen = 16,
22845 .result = "",
22846 .rlen = 0,
22847 }, {
22848 .key = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
22849 "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
22850 .klen = 16,
22851 .iv = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
22852 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
22853 .assoc = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
22854 "\x47\x3e\xe9\xd4\xcc\xb5\x76",
22855 .alen = 15,
22856 .input = "\xdd\xfa\x6c\x1f\x5d\x86\x87\x01"
22857 "\x13\xe5\x73\x46\x46\xf2\x5c\xe1",
22858 .ilen = 16,
22859 .result = "",
22860 .rlen = 0,
22861 }, {
22862 .key = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
22863 "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
22864 .klen = 16,
22865 .iv = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
22866 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
22867 .assoc = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
22868 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
22869 .alen = 16,
22870 .input = "\xa6\x1b\xb9\xd7\x5e\x3c\xcf\xac"
22871 "\xa9\x21\x45\x0b\x16\x52\xf7\xe1",
22872 .ilen = 16,
22873 .result = "",
22874 .rlen = 0,
22875 }, {
22876 .key = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
22877 "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
22878 .klen = 16,
22879 .iv = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
22880 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
22881 .assoc = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
22882 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
22883 "\x3c",
22884 .alen = 17,
22885 .input = "\x15\xff\xde\x3b\x34\xfc\xf6\xf9"
22886 "\xbb\xa8\x62\xad\x0a\xf5\x48\x60",
22887 .ilen = 16,
22888 .result = "",
22889 .rlen = 0,
22890 }, {
22891 .key = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
22892 "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
22893 .klen = 16,
22894 .iv = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
22895 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
22896 .assoc = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
22897 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
22898 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
22899 "\xaf\x0b\x02\x38\xcc\x44\xa7",
22900 .alen = 31,
22901 .input = "\xd2\x9d\xf8\x3b\xd7\x84\xe9\x2d"
22902 "\x4b\xef\x75\x16\x0a\x99\xae\x6b",
22903 .ilen = 16,
22904 .result = "",
22905 .rlen = 0,
22906 }, {
22907 .key = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
22908 "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
22909 .klen = 16,
22910 .iv = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
22911 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
22912 .assoc = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
22913 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
22914 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
22915 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a",
22916 .alen = 32,
22917 .input = "\xe4\x8d\xa7\xa7\x45\xc1\x31\x4f"
22918 "\xce\xfb\xaf\xd6\xc2\xe6\xee\xc0",
22919 .ilen = 16,
22920 .result = "",
22921 .rlen = 0,
22922 }, {
22923 .key = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
22924 "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
22925 .klen = 16,
22926 .iv = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
22927 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
22928 .assoc = "\x31",
22929 .alen = 1,
22930 .input = "\xe2\x67\x38\x4f\xb9\xad\x7d\x38"
22931 "\x01\xfe\x84\x14\x85\xf8\xd1\xe3"
22932 "\x22",
22933 .ilen = 17,
22934 .result = "\x40",
22935 .rlen = 1,
22936 }, {
22937 .key = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
22938 "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
22939 .klen = 16,
22940 .iv = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
22941 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
22942 .assoc = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
22943 "\x4d\x5b\x15\x3c\xa8\x8f\x06",
22944 .alen = 15,
22945 .input = "\x77\x32\x61\xeb\xb4\x33\x29\x92"
22946 "\x29\x95\xc5\x8e\x85\x76\xab\xfc"
22947 "\x07\x95\xa7\x44\x74\xf7\x22\xff"
22948 "\xd8\xd8\x36\x3d\x8a\x7f\x9e",
22949 .ilen = 31,
22950 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
22951 "\x6d\x92\x42\x61\xa7\x58\x37",
22952 .rlen = 15,
22953 }, {
22954 .key = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
22955 "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
22956 .klen = 16,
22957 .iv = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
22958 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
22959 .assoc = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
22960 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
22961 .alen = 16,
22962 .input = "\xd8\xfd\x44\x45\xf6\x42\x12\x38"
22963 "\xf2\x0b\xea\x4f\x9e\x11\x61\x07"
22964 "\x48\x67\x98\x18\x9b\xd0\x0c\x59"
22965 "\x67\xa4\x11\xb3\x2b\xd6\xc1\x70",
22966 .ilen = 32,
22967 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
22968 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
22969 .rlen = 16,
22970 }, {
22971 .key = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
22972 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
22973 .klen = 16,
22974 .iv = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
22975 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
22976 .assoc = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
22977 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
22978 "\x3b",
22979 .alen = 17,
22980 .input = "\xb1\xab\x53\x4e\xc7\x40\x16\xb6"
22981 "\x71\x3a\x00\x9f\x41\x88\xb0\xb2"
22982 "\x71\x83\x85\x5f\xc8\x79\x0a\x99"
22983 "\x99\xdc\x89\x1c\x88\xd2\x3e\xf9"
22984 "\x83",
22985 .ilen = 33,
22986 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
22987 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
22988 "\x05",
22989 .rlen = 17,
22990 }, {
22991 .key = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
22992 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
22993 .klen = 16,
22994 .iv = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
22995 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
22996 .assoc = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
22997 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
22998 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
22999 "\x38\x1d\x3b\x4a\xe9\x7e\x62",
23000 .alen = 31,
23001 .input = "\x29\xc4\xf0\x03\xc1\x86\xdf\x06"
23002 "\x5c\x7b\xef\x64\x87\x00\xd1\x37"
23003 "\xa7\x08\xbc\x7f\x8f\x41\x54\xd0"
23004 "\x3e\xf1\xc3\xa2\x96\x84\xdd\x2a"
23005 "\x2d\x21\x30\xf9\x02\xdb\x06\x0c"
23006 "\xf1\x5a\x66\x69\xe0\xca\x83",
23007 .ilen = 47,
23008 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
23009 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
23010 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
23011 "\x68\x28\x73\x40\x9f\x96\x4a",
23012 .rlen = 31,
23013 }, {
23014 .key = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
23015 "\x10\x57\x85\x39\x93\x8f\xaf\x70",
23016 .klen = 16,
23017 .iv = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
23018 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
23019 .assoc = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
23020 "\x50\xc4\xde\x82\x90\x21\x11\x73"
23021 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
23022 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81",
23023 .alen = 32,
23024 .input = "\xe2\x2e\x44\xdf\xd3\x60\x6d\xb2"
23025 "\x70\x57\x37\xc5\xc2\x4f\x8d\x14"
23026 "\xc6\xbf\x8b\xec\xf5\x62\x67\xf2"
23027 "\x2f\xa1\xe6\xd6\xa7\xb1\x8c\x54"
23028 "\xe5\x6b\x49\xf9\x6e\x90\xc3\xaa"
23029 "\x7a\x00\x2e\x4d\x7f\x31\x2e\x81",
23030 .ilen = 48,
23031 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
23032 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
23033 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
23034 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
23035 .rlen = 32,
23036 }, {
23037 .key = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
23038 "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
23039 .klen = 16,
23040 .iv = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
23041 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
23042 .assoc = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
23043 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
23044 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
23045 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
23046 "\x1a",
23047 .alen = 33,
23048 .input = "\xc7\xca\x26\x61\x57\xee\xa2\xb9"
23049 "\xb1\x37\xde\x95\x06\x90\x11\x08"
23050 "\x4d\x30\x9f\x24\xc0\x56\xb7\xe1"
23051 "\x0b\x9f\xd2\x57\xe9\xd2\xb1\x76"
23052 "\x56\x9a\xb4\x58\xc5\x08\xfc\xb5"
23053 "\xf2\x31\x9b\xc9\xcd\xb3\x64\xdb"
23054 "\x6f\x50\xbf\xf4\x73\x9d\xfb\x6b"
23055 "\xef\x35\x25\x48\xed\xcf\x29\xa8"
23056 "\xac\xc3\xb9\xcb\x61\x8f\x73\x92"
23057 "\x2c\x7a\x6f\xda\xf9\x09\x6f\xe1"
23058 "\xc4",
23059 .ilen = 81,
23060 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
23061 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
23062 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
23063 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
23064 "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
23065 "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
23066 "\x75\x73\x20\x30\x59\x54\xb2\xf0"
23067 "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
23068 "\x8a",
23069 .rlen = 65,
23070 }, {
23071 .key = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
23072 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
23073 .klen = 16,
23074 .iv = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
23075 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
23076 .assoc = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
23077 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
23078 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
23079 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
23080 "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
23081 "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
23082 "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
23083 "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
23084 "\x21",
23085 .alen = 65,
23086 .input = "\x57\xcd\x3d\x46\xc5\xf9\x68\x3b"
23087 "\x2c\x0f\xb4\x7e\x7b\x64\x3e\x40"
23088 "\xf3\x78\x63\x34\x89\x79\x39\x6b"
23089 "\x61\x64\x4a\x9a\xfa\x70\xa4\xd3"
23090 "\x54\x0b\xea\x05\xa6\x95\x64\xed"
23091 "\x3d\x69\xa2\x0c\x27\x56\x2f\x34"
23092 "\x66",
23093 .ilen = 49,
23094 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
23095 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
23096 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
23097 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
23098 "\xac",
23099 .rlen = 33,
23100 }, {
23101 .key = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
23102 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
23103 .klen = 16,
23104 .iv = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
23105 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
23106 .assoc = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
23107 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
23108 .alen = 16,
23109 .input = "\xfc\x85\x06\x28\x8f\xe8\x23\x1f"
23110 "\x33\x98\x87\xde\x08\xb6\xb6\xae"
23111 "\x3e\xa4\xf8\x19\xf1\x92\x60\x39"
23112 "\xb9\x6b\x3f\xdf\xc8\xcb\x30",
23113 .ilen = 31,
23114 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
23115 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
23116 .rlen = 16,
23117 }, {
23118 .key = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
23119 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
23120 .klen = 16,
23121 .iv = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
23122 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
23123 .assoc = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
23124 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
23125 .alen = 16,
23126 .input = "\x74\x7d\x70\x07\xe9\xba\x01\xee"
23127 "\x6c\xc6\x6f\x50\x25\x33\xbe\x50"
23128 "\x17\xb8\x17\x62\xed\x80\xa2\xf5"
23129 "\x03\xde\x85\x71\x5d\x34",
23130 .ilen = 30,
23131 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
23132 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
23133 .rlen = 16,
23134 }, {
23135 .key = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
23136 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
23137 .klen = 16,
23138 .iv = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
23139 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
23140 .assoc = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
23141 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
23142 .alen = 16,
23143 .input = "\xf4\xb3\x85\xf9\xac\xde\xb1\x38"
23144 "\x29\xfd\x6c\x7c\x49\xe5\x1d\xaf"
23145 "\xba\xea\xd4\xfa\x3f\x11\x33\x98",
23146 .ilen = 24,
23147 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
23148 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
23149 .rlen = 16,
23150 }, {
23151 .key = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
23152 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
23153 .klen = 16,
23154 .iv = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
23155 "\x36\xab\xde\xc6\x6d\x32\x70\x17",
23156 .assoc = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
23157 "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98",
23158 .alen = 16,
23159 .input = "\xe6\x5c\x49\x4f\x78\xf3\x62\x86"
23160 "\xe1\xb7\xa5\xc3\x32\x88\x3c\x8c"
23161 "\x6e",
23162 .ilen = 17,
23163 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
23164 "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a",
23165 .rlen = 16,
23166 },
23167};
23168
23169/*
23170 * MORUS-1280 test vectors - generated via reference implementation from
23171 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
23172 *
23173 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
23174 * (see crypto_aead/morus1280128v2/ and crypto_aead/morus1280256v2/ )
23175 */
23176static const struct aead_testvec morus1280_enc_tv_template[] = {
23177 {
23178 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
23179 "\x00\x00\x00\x00\x00\x00\x00\x00",
23180 .klen = 16,
23181 .iv = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
23182 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
23183 .assoc = "",
23184 .alen = 0,
23185 .input = "",
23186 .ilen = 0,
23187 .result = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
23188 "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
23189 .rlen = 16,
23190 }, {
23191 .key = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
23192 "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
23193 .klen = 16,
23194 .iv = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
23195 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
23196 .assoc = "",
23197 .alen = 0,
23198 .input = "\x69",
23199 .ilen = 1,
23200 .result = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
23201 "\x96\xda\x76\x34\x33\x4e\xd5\x39"
23202 "\x73",
23203 .rlen = 17,
23204 }, {
23205 .key = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
23206 "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
23207 .klen = 16,
23208 .iv = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
23209 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
23210 .assoc = "",
23211 .alen = 0,
23212 .input = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
23213 "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
23214 "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
23215 "\x13\x7d\x64\x93\xd7\x05\xf5",
23216 .ilen = 31,
23217 .result = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
23218 "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
23219 "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
23220 "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
23221 "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
23222 "\xa4\x21\x74\xcf\x19\x16\x59",
23223 .rlen = 47,
23224 }, {
23225 .key = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
23226 "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
23227 .klen = 16,
23228 .iv = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
23229 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
23230 .assoc = "",
23231 .alen = 0,
23232 .input = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
23233 "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
23234 "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
23235 "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
23236 .ilen = 32,
23237 .result = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
23238 "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
23239 "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
23240 "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
23241 "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
23242 "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
23243 .rlen = 48,
23244 }, {
23245 .key = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
23246 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
23247 .klen = 16,
23248 .iv = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
23249 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
23250 .assoc = "",
23251 .alen = 0,
23252 .input = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
23253 "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
23254 "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
23255 "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
23256 "\xc4",
23257 .ilen = 33,
23258 .result = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
23259 "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
23260 "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
23261 "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
23262 "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
23263 "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
23264 "\xd0",
23265 .rlen = 49,
23266 }, {
23267 .key = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
23268 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
23269 .klen = 16,
23270 .iv = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
23271 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
23272 .assoc = "",
23273 .alen = 0,
23274 .input = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
23275 "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
23276 "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
23277 "\x57\x05\x01\x1c\x66\x22\xd3\x51"
23278 "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
23279 "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
23280 "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
23281 "\xe6\x16\xa2\xac\xde\x47\x40",
23282 .ilen = 63,
23283 .result = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
23284 "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
23285 "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
23286 "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
23287 "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
23288 "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
23289 "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
23290 "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
23291 "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
23292 "\x99\x7a\x72\x9c\x54\x31\xa1",
23293 .rlen = 79,
23294 }, {
23295 .key = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
23296 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
23297 .klen = 16,
23298 .iv = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
23299 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
23300 .assoc = "",
23301 .alen = 0,
23302 .input = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
23303 "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
23304 "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
23305 "\x19\x33\xe0\xf4\x40\x81\x72\x28"
23306 "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
23307 "\xb0\x68\x69\xf2\x27\x35\x91\x84"
23308 "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
23309 "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
23310 .ilen = 64,
23311 .result = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
23312 "\xa5\x07\x12\xa7\x12\x39\x60\x66"
23313 "\x30\x81\x4a\x03\x78\x28\x45\x52"
23314 "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
23315 "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
23316 "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
23317 "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
23318 "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
23319 "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
23320 "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
23321 .rlen = 80,
23322 }, {
23323 .key = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
23324 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
23325 .klen = 16,
23326 .iv = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
23327 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
23328 .assoc = "\xc5",
23329 .alen = 1,
23330 .input = "",
23331 .ilen = 0,
23332 .result = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
23333 "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
23334 .rlen = 16,
23335 }, {
23336 .key = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
23337 "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
23338 .klen = 16,
23339 .iv = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
23340 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
23341 .assoc = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
23342 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
23343 "\xe8\x73\x62\x64\xab\x50\xd0\xda"
23344 "\x6b\x83\x66\xaf\x3e\x27\xc9",
23345 .alen = 31,
23346 .input = "",
23347 .ilen = 0,
23348 .result = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
23349 "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
23350 .rlen = 16,
23351 }, {
23352 .key = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
23353 "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
23354 .klen = 16,
23355 .iv = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
23356 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
23357 .assoc = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
23358 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
23359 "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
23360 "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
23361 .alen = 32,
23362 .input = "",
23363 .ilen = 0,
23364 .result = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
23365 "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
23366 .rlen = 16,
23367 }, {
23368 .key = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
23369 "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
23370 .klen = 16,
23371 .iv = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
23372 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
23373 .assoc = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
23374 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
23375 "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
23376 "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
23377 "\x97",
23378 .alen = 33,
23379 .input = "",
23380 .ilen = 0,
23381 .result = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
23382 "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
23383 .rlen = 16,
23384 }, {
23385 .key = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
23386 "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
23387 .klen = 16,
23388 .iv = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
23389 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
23390 .assoc = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
23391 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
23392 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
23393 "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
23394 "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
23395 "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
23396 "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
23397 "\xcd\x2c\x45\x58\xbd\x8e\x80",
23398 .alen = 63,
23399 .input = "",
23400 .ilen = 0,
23401 .result = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
23402 "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
23403 .rlen = 16,
23404 }, {
23405 .key = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
23406 "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
23407 .klen = 16,
23408 .iv = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
23409 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
23410 .assoc = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
23411 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
23412 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
23413 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
23414 "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
23415 "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
23416 "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
23417 "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
23418 .alen = 64,
23419 .input = "",
23420 .ilen = 0,
23421 .result = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
23422 "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
23423 .rlen = 16,
23424 }, {
23425 .key = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
23426 "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
23427 .klen = 16,
23428 .iv = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
23429 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
23430 .assoc = "\x31",
23431 .alen = 1,
23432 .input = "\x40",
23433 .ilen = 1,
23434 .result = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
23435 "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
23436 "\xbf",
23437 .rlen = 17,
23438 }, {
23439 .key = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
23440 "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
23441 .klen = 16,
23442 .iv = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
23443 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
23444 .assoc = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
23445 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
23446 "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
23447 "\xf4\x94\x9f\xc1\x5a\x61\x85",
23448 .alen = 31,
23449 .input = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
23450 "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
23451 "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
23452 "\x24\xa0\xd6\xb7\x11\x79\x6c",
23453 .ilen = 31,
23454 .result = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
23455 "\x63\x09\x08\x58\xb5\x56\xbd\x72"
23456 "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
23457 "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
23458 "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
23459 "\x85\x87\x17\x09\x42\xed\x4e",
23460 .rlen = 47,
23461 }, {
23462 .key = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
23463 "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
23464 .klen = 16,
23465 .iv = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
23466 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
23467 .assoc = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
23468 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
23469 "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
23470 "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
23471 .alen = 32,
23472 .input = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
23473 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
23474 "\xdb\x74\x36\x23\x11\x58\x3f\x93"
23475 "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
23476 .ilen = 32,
23477 .result = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
23478 "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
23479 "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
23480 "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
23481 "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
23482 "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
23483 .rlen = 48,
23484 }, {
23485 .key = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
23486 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
23487 .klen = 16,
23488 .iv = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
23489 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
23490 .assoc = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
23491 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
23492 "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
23493 "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
23494 "\xee",
23495 .alen = 33,
23496 .input = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
23497 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
23498 "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
23499 "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
23500 "\x72",
23501 .ilen = 33,
23502 .result = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
23503 "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
23504 "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
23505 "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
23506 "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
23507 "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
23508 "\x5e",
23509 .rlen = 49,
23510 }, {
23511 .key = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
23512 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
23513 .klen = 16,
23514 .iv = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
23515 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
23516 .assoc = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
23517 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
23518 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
23519 "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
23520 "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
23521 "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
23522 "\x10\x0b\x56\x85\xad\x54\xaa\x66"
23523 "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
23524 .alen = 63,
23525 .input = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
23526 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
23527 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
23528 "\x68\x28\x73\x40\x9f\x96\x4a\x60"
23529 "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
23530 "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
23531 "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
23532 "\x9c\x44\xb2\xa4\x99\x98\x34",
23533 .ilen = 63,
23534 .result = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
23535 "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
23536 "\xef\x36\x19\xae\x91\xfa\xd6\x63"
23537 "\x46\xea\x8a\x39\x14\x21\xa6\x37"
23538 "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
23539 "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
23540 "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
23541 "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
23542 "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
23543 "\x4f\x20\x37\xdb\x7b\x22\xa3",
23544 .rlen = 79,
23545 }, {
23546 .key = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
23547 "\x10\x57\x85\x39\x93\x8f\xaf\x70",
23548 .klen = 16,
23549 .iv = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
23550 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
23551 .assoc = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
23552 "\x50\xc4\xde\x82\x90\x21\x11\x73"
23553 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
23554 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
23555 "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
23556 "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
23557 "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
23558 "\x77\x47\x63\x14\x95\x3d\xe4\x34",
23559 .alen = 64,
23560 .input = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
23561 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
23562 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
23563 "\x29\x56\x52\x19\x79\xf5\xe9\x37"
23564 "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
23565 "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
23566 "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
23567 "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
23568 .ilen = 64,
23569 .result = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
23570 "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
23571 "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
23572 "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
23573 "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
23574 "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
23575 "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
23576 "\xec\x99\x7d\x61\xb3\x15\x93\xed"
23577 "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
23578 "\x95\x74\x44\xd5\x54\xa6\x27\x06",
23579 .rlen = 80,
23580 }, {
23581 .key = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
23582 "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
23583 .klen = 16,
23584 .iv = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
23585 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
23586 .assoc = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
23587 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
23588 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
23589 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
23590 "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
23591 "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
23592 "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
23593 "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
23594 "\x58",
23595 .alen = 65,
23596 .input = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
23597 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
23598 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
23599 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
23600 "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
23601 "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
23602 "\x75\x73\x20\x30\x59\x54\xb2\xf0"
23603 "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
23604 "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
23605 "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
23606 "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
23607 "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
23608 "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
23609 "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
23610 "\x33\x16\x59\x6c\x3b\xef\x88\xad"
23611 "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
23612 "\x36",
23613 .ilen = 129,
23614 .result = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
23615 "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
23616 "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
23617 "\x38\xa4\x74\xa5\x04\x15\x63\x05"
23618 "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
23619 "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
23620 "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
23621 "\x42\x01\xe6\xbc\x75\x15\x87\xee"
23622 "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
23623 "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
23624 "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
23625 "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
23626 "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
23627 "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
23628 "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
23629 "\x4f\x61\x64\x37\x22\x36\x6d\x78"
23630 "\xed\xed\x35\xe8\x83\xa5\xec\x25"
23631 "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
23632 "\x20",
23633 .rlen = 145,
23634 }, {
23635 .key = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
23636 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
23637 .klen = 16,
23638 .iv = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
23639 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
23640 .assoc = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
23641 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
23642 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
23643 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
23644 "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
23645 "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
23646 "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
23647 "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
23648 "\x21\xf7\x42\x89\xac\x12\x2a\x54"
23649 "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
23650 "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
23651 "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
23652 "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
23653 "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
23654 "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
23655 "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
23656 "\x51",
23657 .alen = 129,
23658 .input = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
23659 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
23660 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
23661 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
23662 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
23663 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
23664 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
23665 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
23666 "\x54",
23667 .ilen = 65,
23668 .result = "\x36\x78\xb9\x22\xde\x62\x35\x55"
23669 "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
23670 "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
23671 "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
23672 "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
23673 "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
23674 "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
23675 "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
23676 "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
23677 "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
23678 "\xa2",
23679 .rlen = 81,
23680 }, {
23681 .key = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
23682 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
23683 .klen = 16,
23684 .iv = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
23685 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
23686 .assoc = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
23687 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
23688 "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
23689 "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
23690 .alen = 32,
23691 .input = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
23692 "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
23693 "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
23694 "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
23695 .ilen = 32,
23696 .result = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
23697 "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
23698 "\x89\x14\x33\x70\x0a\xbc\xea\x39"
23699 "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
23700 "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
23701 "\x2f\x03\x30\x05\x47\xaf\x34",
23702 .rlen = 47,
23703 }, {
23704 .key = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
23705 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
23706 .klen = 16,
23707 .iv = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
23708 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
23709 .assoc = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
23710 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
23711 "\x39\x14\x05\xa0\xf3\x10\xec\x41"
23712 "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
23713 .alen = 32,
23714 .input = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
23715 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
23716 "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
23717 "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
23718 .ilen = 32,
23719 .result = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
23720 "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
23721 "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
23722 "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
23723 "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
23724 "\xb9\x9c\xe5\xef\xf2\x05",
23725 .rlen = 46,
23726 }, {
23727 .key = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
23728 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
23729 .klen = 16,
23730 .iv = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
23731 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
23732 .assoc = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
23733 "\xd5\x07\x58\x59\x72\xd7\xde\x92"
23734 "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
23735 "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
23736 .alen = 32,
23737 .input = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
23738 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
23739 "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
23740 "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
23741 .ilen = 32,
23742 .result = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
23743 "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
23744 "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
23745 "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
23746 "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
23747 .rlen = 40,
23748 }, {
23749 .key = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
23750 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
23751 .klen = 16,
23752 .iv = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
23753 "\x36\xab\xde\xc6\x6d\x32\x70\x17",
23754 .assoc = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
23755 "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
23756 "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
23757 "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
23758 .alen = 32,
23759 .input = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
23760 "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
23761 "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
23762 "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
23763 .ilen = 32,
23764 .result = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
23765 "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
23766 "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
23767 "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
23768 "\x1a",
23769 .rlen = 33,
23770 }, {
23771 .key = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
23772 "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
23773 "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
23774 "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
23775 .klen = 32,
23776 .iv = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
23777 "\xb7\x85\x90\x58\x67\x57\x33\x1d",
23778 .assoc = "",
23779 .alen = 0,
23780 .input = "",
23781 .ilen = 0,
23782 .result = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
23783 "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
23784 .rlen = 16,
23785 }, {
23786 .key = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
23787 "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
23788 "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
23789 "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
23790 .klen = 32,
23791 .iv = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
23792 "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
23793 .assoc = "",
23794 .alen = 0,
23795 .input = "\x53",
23796 .ilen = 1,
23797 .result = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
23798 "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
23799 "\x53",
23800 .rlen = 17,
23801 }, {
23802 .key = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
23803 "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
23804 "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
23805 "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
23806 .klen = 32,
23807 .iv = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
23808 "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
23809 .assoc = "",
23810 .alen = 0,
23811 .input = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
23812 "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
23813 "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
23814 "\xf6\xf0\x27\xb4\x25\x4c\x83",
23815 .ilen = 31,
23816 .result = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
23817 "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
23818 "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
23819 "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
23820 "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
23821 "\xb8\x4d\x11\x42\xd1\xf8\xf1",
23822 .rlen = 47,
23823 }, {
23824 .key = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
23825 "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
23826 "\xa2\x40\x45\x77\x90\x80\x37\xce"
23827 "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
23828 .klen = 32,
23829 .iv = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
23830 "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
23831 .assoc = "",
23832 .alen = 0,
23833 .input = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
23834 "\x7a\x81\xff\x55\x52\x56\xdc\x33"
23835 "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
23836 "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
23837 .ilen = 32,
23838 .result = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
23839 "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
23840 "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
23841 "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
23842 "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
23843 "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
23844 .rlen = 48,
23845 }, {
23846 .key = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
23847 "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
23848 "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
23849 "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
23850 .klen = 32,
23851 .iv = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
23852 "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
23853 .assoc = "",
23854 .alen = 0,
23855 .input = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
23856 "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
23857 "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
23858 "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
23859 "\x2e",
23860 .ilen = 33,
23861 .result = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
23862 "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
23863 "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
23864 "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
23865 "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
23866 "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
23867 "\x32",
23868 .rlen = 49,
23869 }, {
23870 .key = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
23871 "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
23872 "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
23873 "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
23874 .klen = 32,
23875 .iv = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
23876 "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
23877 .assoc = "",
23878 .alen = 0,
23879 .input = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
23880 "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
23881 "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
23882 "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
23883 "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
23884 "\x22\xda\x52\x8b\x7d\x11\x98\xea"
23885 "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
23886 "\x20\x76\x5a\xdc\x4e\x71\x13",
23887 .ilen = 63,
23888 .result = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
23889 "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
23890 "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
23891 "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
23892 "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
23893 "\x01\xb7\x39\xa6\x51\x15\xca\xff"
23894 "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
23895 "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
23896 "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
23897 "\xaa\x2d\xfc\x4e\x35\x05\x59",
23898 .rlen = 79,
23899 }, {
23900 .key = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
23901 "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
23902 "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
23903 "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
23904 .klen = 32,
23905 .iv = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
23906 "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
23907 .assoc = "",
23908 .alen = 0,
23909 .input = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
23910 "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
23911 "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
23912 "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
23913 "\x4b\x62\x87\x7c\x15\x38\xda\x70"
23914 "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
23915 "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
23916 "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
23917 .ilen = 64,
23918 .result = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
23919 "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
23920 "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
23921 "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
23922 "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
23923 "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
23924 "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
23925 "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
23926 "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
23927 "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
23928 .rlen = 80,
23929 }, {
23930 .key = "\x90\x96\x36\xea\x03\x74\x18\x7a"
23931 "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
23932 "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
23933 "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
23934 .klen = 32,
23935 .iv = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
23936 "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
23937 .assoc = "\xaf",
23938 .alen = 1,
23939 .input = "",
23940 .ilen = 0,
23941 .result = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
23942 "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
23943 .rlen = 16,
23944 }, {
23945 .key = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
23946 "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
23947 "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
23948 "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
23949 .klen = 32,
23950 .iv = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
23951 "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
23952 .assoc = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
23953 "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
23954 "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
23955 "\x4e\xf6\x29\xd1\x8b\x6f\x56",
23956 .alen = 31,
23957 .input = "",
23958 .ilen = 0,
23959 .result = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
23960 "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
23961 .rlen = 16,
23962 }, {
23963 .key = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
23964 "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
23965 "\xa0\xce\x8a\x91\xae\x40\x43\x68"
23966 "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
23967 .klen = 32,
23968 .iv = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
23969 "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
23970 .assoc = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
23971 "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
23972 "\x35\x2f\x90\xd3\x31\x90\x04\x74"
23973 "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
23974 .alen = 32,
23975 .input = "",
23976 .ilen = 0,
23977 .result = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
23978 "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
23979 .rlen = 16,
23980 }, {
23981 .key = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
23982 "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
23983 "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
23984 "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
23985 .klen = 32,
23986 .iv = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
23987 "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
23988 .assoc = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
23989 "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
23990 "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
23991 "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
23992 "\x01",
23993 .alen = 33,
23994 .input = "",
23995 .ilen = 0,
23996 .result = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
23997 "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
23998 .rlen = 16,
23999 }, {
24000 .key = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
24001 "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
24002 "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
24003 "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
24004 .klen = 32,
24005 .iv = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
24006 "\x41\xe5\x36\x97\x25\xe7\x90\x61",
24007 .assoc = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
24008 "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
24009 "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
24010 "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
24011 "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
24012 "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
24013 "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
24014 "\x07\x8c\xfc\x88\x2d\xb8\x53",
24015 .alen = 63,
24016 .input = "",
24017 .ilen = 0,
24018 .result = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
24019 "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
24020 .rlen = 16,
24021 }, {
24022 .key = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
24023 "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
24024 "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
24025 "\xf3\x95\x35\x46\x86\xbb\x04\x03",
24026 .klen = 32,
24027 .iv = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
24028 "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
24029 .assoc = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
24030 "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
24031 "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
24032 "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
24033 "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
24034 "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
24035 "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
24036 "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
24037 .alen = 64,
24038 .input = "",
24039 .ilen = 0,
24040 .result = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
24041 "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
24042 .rlen = 16,
24043 }, {
24044 .key = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
24045 "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
24046 "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
24047 "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
24048 .klen = 32,
24049 .iv = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
24050 "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
24051 .assoc = "\x1a",
24052 .alen = 1,
24053 .input = "\x29",
24054 .ilen = 1,
24055 .result = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
24056 "\x17\x75\x81\x16\xdf\x26\xff\x67"
24057 "\x92",
24058 .rlen = 17,
24059 }, {
24060 .key = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
24061 "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
24062 "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
24063 "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
24064 .klen = 32,
24065 .iv = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
24066 "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
24067 .assoc = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
24068 "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
24069 "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
24070 "\xd6\x07\x62\xe3\xa8\xa9\x12",
24071 .alen = 31,
24072 .input = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
24073 "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
24074 "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
24075 "\x06\x13\x9a\xd9\x5e\xc0\xfa",
24076 .ilen = 31,
24077 .result = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
24078 "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
24079 "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
24080 "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
24081 "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
24082 "\x76\xc3\xf5\x3a\x76\xfd\x4a",
24083 .rlen = 47,
24084 }, {
24085 .key = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
24086 "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
24087 "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
24088 "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
24089 .klen = 32,
24090 .iv = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
24091 "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
24092 .assoc = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
24093 "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
24094 "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
24095 "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
24096 .alen = 32,
24097 .input = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
24098 "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
24099 "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
24100 "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
24101 .ilen = 32,
24102 .result = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
24103 "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
24104 "\x62\x48\x08\x64\x86\x6a\xdf\xec"
24105 "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
24106 "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
24107 "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
24108 .rlen = 48,
24109 }, {
24110 .key = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
24111 "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
24112 "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
24113 "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
24114 .klen = 32,
24115 .iv = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
24116 "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
24117 .assoc = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
24118 "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
24119 "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
24120 "\x59\x62\x20\x94\x5c\x67\x50\xc8"
24121 "\x58",
24122 .alen = 33,
24123 .input = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
24124 "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
24125 "\x28\x30\x64\x92\x96\x98\x72\x2e"
24126 "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
24127 "\xdb",
24128 .ilen = 33,
24129 .result = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
24130 "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
24131 "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
24132 "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
24133 "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
24134 "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
24135 "\xc3",
24136 .rlen = 49,
24137 }, {
24138 .key = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
24139 "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
24140 "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
24141 "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
24142 .klen = 32,
24143 .iv = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
24144 "\x46\x02\x63\x00\x01\xc1\x20\x87",
24145 .assoc = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
24146 "\x66\x39\x8f\x24\xff\x8a\x50\x08"
24147 "\x88\x42\xed\xf6\x5a\x90\x14\x42"
24148 "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
24149 "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
24150 "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
24151 "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
24152 "\xe2\xa3\x84\x04\x0b\xe1\xce",
24153 .alen = 63,
24154 .input = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
24155 "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
24156 "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
24157 "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
24158 "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
24159 "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
24160 "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
24161 "\xd5\xa4\x6a\xd4\x09\xc2\x08",
24162 .ilen = 63,
24163 .result = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
24164 "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
24165 "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
24166 "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
24167 "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
24168 "\x1b\x49\x21\x34\x23\x63\x55\x5e"
24169 "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
24170 "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
24171 "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
24172 "\x7f\xfa\xf0\xbf\xc4\x98\x78",
24173 .rlen = 79,
24174 }, {
24175 .key = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
24176 "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
24177 "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
24178 "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
24179 .klen = 32,
24180 .iv = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
24181 "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
24182 .assoc = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
24183 "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
24184 "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
24185 "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
24186 "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
24187 "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
24188 "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
24189 "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
24190 .alen = 64,
24191 .input = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
24192 "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
24193 "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
24194 "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
24195 "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
24196 "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
24197 "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
24198 "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
24199 .ilen = 64,
24200 .result = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
24201 "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
24202 "\x35\x35\x60\x9d\x06\x40\x65\xc1"
24203 "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
24204 "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
24205 "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
24206 "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
24207 "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
24208 "\xce\x9e\x34\x81\xf0\x89\x11\x13"
24209 "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
24210 .rlen = 80,
24211 }, {
24212 .key = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
24213 "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
24214 "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
24215 "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
24216 .klen = 32,
24217 .iv = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
24218 "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
24219 .assoc = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
24220 "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
24221 "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
24222 "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
24223 "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
24224 "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
24225 "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
24226 "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
24227 "\x04",
24228 .alen = 65,
24229 .input = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
24230 "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
24231 "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
24232 "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
24233 "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
24234 "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
24235 "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
24236 "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
24237 "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
24238 "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
24239 "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
24240 "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
24241 "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
24242 "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
24243 "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
24244 "\x07\x68\x22\x2a\x88\x25\x53\xb2"
24245 "\x2f",
24246 .ilen = 129,
24247 .result = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
24248 "\x85\x43\x88\xd0\xd7\x78\x60\x19"
24249 "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
24250 "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
24251 "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
24252 "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
24253 "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
24254 "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
24255 "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
24256 "\x20\xf8\x12\x54\x50\xb3\x11\xda"
24257 "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
24258 "\x38\x67\x56\x65\x59\xda\xe6\x97"
24259 "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
24260 "\x91\x59\x38\x18\x00\xe8\xba\x92"
24261 "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
24262 "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
24263 "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
24264 "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
24265 "\xa5",
24266 .rlen = 145,
24267 }, {
24268 .key = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
24269 "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
24270 "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
24271 "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
24272 .klen = 32,
24273 .iv = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
24274 "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
24275 .assoc = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
24276 "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
24277 "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
24278 "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
24279 "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
24280 "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
24281 "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
24282 "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
24283 "\xce\x83\x2a\x88\x07\x55\xbb\x89"
24284 "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
24285 "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
24286 "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
24287 "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
24288 "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
24289 "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
24290 "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
24291 "\x4b",
24292 .alen = 129,
24293 .input = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
24294 "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
24295 "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
24296 "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
24297 "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
24298 "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
24299 "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
24300 "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
24301 "\x00",
24302 .ilen = 65,
24303 .result = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
24304 "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
24305 "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
24306 "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
24307 "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
24308 "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
24309 "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
24310 "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
24311 "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
24312 "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
24313 "\x72",
24314 .rlen = 81,
24315 }, {
24316 .key = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
24317 "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
24318 "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
24319 "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
24320 .klen = 32,
24321 .iv = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
24322 "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
24323 .assoc = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
24324 "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
24325 "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
24326 "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
24327 .alen = 32,
24328 .input = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
24329 "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
24330 "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
24331 "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
24332 .ilen = 32,
24333 .result = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
24334 "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
24335 "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
24336 "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
24337 "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
24338 "\x69\x0e\x36\x5f\x2f\x22\x8c",
24339 .rlen = 47,
24340 }, {
24341 .key = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
24342 "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
24343 "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
24344 "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
24345 .klen = 32,
24346 .iv = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
24347 "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
24348 .assoc = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
24349 "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
24350 "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
24351 "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
24352 .alen = 32,
24353 .input = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
24354 "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
24355 "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
24356 "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
24357 .ilen = 32,
24358 .result = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
24359 "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
24360 "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
24361 "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
24362 "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
24363 "\x5b\x6f\x7b\xe2\x8c\xe8",
24364 .rlen = 46,
24365 }, {
24366 .key = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
24367 "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
24368 "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
24369 "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
24370 .klen = 32,
24371 .iv = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
24372 "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
24373 .assoc = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
24374 "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
24375 "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
24376 "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
24377 .alen = 32,
24378 .input = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
24379 "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
24380 "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
24381 "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
24382 .ilen = 32,
24383 .result = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
24384 "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
24385 "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
24386 "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
24387 "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
24388 .rlen = 40,
24389 }, {
24390 .key = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
24391 "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
24392 "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
24393 "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
24394 .klen = 32,
24395 .iv = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
24396 "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
24397 .assoc = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
24398 "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
24399 "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
24400 "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
24401 .alen = 32,
24402 .input = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
24403 "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
24404 "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
24405 "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
24406 .ilen = 32,
24407 .result = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
24408 "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
24409 "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
24410 "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
24411 "\x56",
24412 .rlen = 33,
24413 },
24414};
24415
24416static const struct aead_testvec morus1280_dec_tv_template[] = {
24417 {
24418 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
24419 "\x00\x00\x00\x00\x00\x00\x00\x00",
24420 .klen = 16,
24421 .iv = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
24422 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
24423 .assoc = "",
24424 .alen = 0,
24425 .input = "\x91\x85\x0f\xf5\x52\x9e\xce\xce"
24426 "\x65\x99\xc7\xbf\xd3\x76\xe8\x98",
24427 .ilen = 16,
24428 .result = "",
24429 .rlen = 0,
24430 }, {
24431 .key = "\x3c\x24\x39\x9f\x10\x7b\xa8\x1b"
24432 "\x80\xda\xb2\x91\xf9\x24\xc2\x06",
24433 .klen = 16,
24434 .iv = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
24435 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
24436 .assoc = "",
24437 .alen = 0,
24438 .input = "\x88\xc3\x4c\xf0\x2f\x43\x76\x13"
24439 "\x96\xda\x76\x34\x33\x4e\xd5\x39"
24440 "\x73",
24441 .ilen = 17,
24442 .result = "\x69",
24443 .rlen = 1,
24444 }, {
24445 .key = "\x79\x49\x73\x3e\x20\xf7\x51\x37"
24446 "\x01\xb4\x64\x22\xf3\x48\x85\x0c",
24447 .klen = 16,
24448 .iv = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
24449 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
24450 .assoc = "",
24451 .alen = 0,
24452 .input = "\x3e\x5c\x3b\x58\x3b\x7d\x2a\x22"
24453 "\x75\x0b\x24\xa6\x0e\xc3\xde\x52"
24454 "\x97\x0b\x64\xd4\xce\x90\x52\xf7"
24455 "\xef\xdb\x6a\x38\xd2\xa8\xa1\x0d"
24456 "\xe0\x61\x33\x24\xc6\x4d\x51\xbc"
24457 "\xa4\x21\x74\xcf\x19\x16\x59",
24458 .ilen = 47,
24459 .result = "\xa6\xa4\x1e\x76\xec\xd4\x50\xcc"
24460 "\x62\x58\xe9\x8f\xef\xa4\x17\x91"
24461 "\xb4\x96\x9f\x6b\xce\x38\xa5\x46"
24462 "\x13\x7d\x64\x93\xd7\x05\xf5",
24463 .rlen = 31,
24464 }, {
24465 .key = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
24466 "\x82\x8e\x16\xb4\xed\x6d\x47\x12",
24467 .klen = 16,
24468 .iv = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
24469 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
24470 .assoc = "",
24471 .alen = 0,
24472 .input = "\x30\x82\x9c\x2b\x67\xcb\xf9\x1f"
24473 "\xde\x9f\x77\xb2\xda\x92\x61\x5c"
24474 "\x09\x0b\x2d\x9a\x26\xaa\x1c\x06"
24475 "\xab\x74\xb7\x2b\x95\x5f\x9f\xa1"
24476 "\x9a\xff\x50\xa0\xa2\xff\xc5\xad"
24477 "\x21\x8e\x84\x5c\x12\x61\xb2\xae",
24478 .ilen = 48,
24479 .result = "\xe2\xc9\x58\x15\xfc\x4f\xf8\xe8"
24480 "\xe3\x32\x9b\x21\xe9\xc8\xd9\x97"
24481 "\xde\x58\xab\xf0\xd3\xd8\x27\x60"
24482 "\xd5\xaa\x43\x6b\xb1\x64\x95\xa4",
24483 .rlen = 32,
24484 }, {
24485 .key = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
24486 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
24487 .klen = 16,
24488 .iv = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
24489 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
24490 .assoc = "",
24491 .alen = 0,
24492 .input = "\x67\x5d\x8e\x45\xc8\x39\xf5\x17"
24493 "\xc1\x1d\x2a\xdd\x88\x67\xda\x1f"
24494 "\x6d\xe8\x37\x28\x5a\xc1\x5e\x9f"
24495 "\xa6\xec\xc6\x92\x05\x4b\xc0\xa3"
24496 "\x63\xef\x88\xa4\x9b\x0a\x5c\xed"
24497 "\x2b\x6a\xac\x63\x52\xaa\x10\x94"
24498 "\xd0",
24499 .ilen = 49,
24500 .result = "\x1f\xee\x92\xb4\x0c\xcb\xa1\x04"
24501 "\x64\x0c\x4d\xb2\xe3\xec\x9c\x9d"
24502 "\x09\x1a\xb7\x74\xd8\x78\xa9\x79"
24503 "\x96\xd8\x22\x43\x8c\xc3\x34\x7b"
24504 "\xc4",
24505 .rlen = 33,
24506 }, {
24507 .key = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
24508 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f",
24509 .klen = 16,
24510 .iv = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
24511 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
24512 .assoc = "",
24513 .alen = 0,
24514 .input = "\x7d\x61\x1a\x35\x20\xcc\x07\x88"
24515 "\x03\x98\x87\xcf\xc0\x6e\x4d\x19"
24516 "\xe3\xd4\x0b\xfb\x29\x8f\x49\x1a"
24517 "\x3a\x06\x77\xce\x71\x2c\xcd\xdd"
24518 "\xed\xf6\xc9\xbe\xa6\x3b\xb8\xfc"
24519 "\x6c\xbe\x77\xed\x74\x0e\x20\x85"
24520 "\xd0\x65\xde\x24\x6f\xe3\x25\xc5"
24521 "\xdf\x5b\x0f\xbd\x8a\x88\x78\xc9"
24522 "\xe5\x81\x37\xde\x84\x7a\xf6\x84"
24523 "\x99\x7a\x72\x9c\x54\x31\xa1",
24524 .ilen = 79,
24525 .result = "\x5c\x13\xcb\x54\x1c\x47\x4a\x1f"
24526 "\xe5\xe6\xff\x44\xdd\x11\x5f\xa3"
24527 "\x33\xdd\xc2\xf8\xdd\x18\x2b\x93"
24528 "\x57\x05\x01\x1c\x66\x22\xd3\x51"
24529 "\xd3\xdf\x18\xc9\x30\x66\xed\xb1"
24530 "\x96\x58\xd5\x8c\x64\x8c\x7c\xf5"
24531 "\x01\xd0\x74\x5f\x9b\xaa\xf6\xd1"
24532 "\xe6\x16\xa2\xac\xde\x47\x40",
24533 .rlen = 63,
24534 }, {
24535 .key = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
24536 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25",
24537 .klen = 16,
24538 .iv = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
24539 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
24540 .assoc = "",
24541 .alen = 0,
24542 .input = "\x05\xc5\xb1\xf9\x1b\xb9\xab\x2c"
24543 "\xa5\x07\x12\xa7\x12\x39\x60\x66"
24544 "\x30\x81\x4a\x03\x78\x28\x45\x52"
24545 "\xd2\x2b\x24\xfd\x8b\xa5\xb7\x66"
24546 "\x6f\x45\xd7\x3b\x67\x6f\x51\xb9"
24547 "\xc0\x3d\x6c\xca\x1e\xae\xff\xb6"
24548 "\x79\xa9\xe4\x82\x5d\x4c\x2d\xdf"
24549 "\xeb\x71\x40\xc9\x2c\x40\x45\x6d"
24550 "\x73\x77\x01\xf3\x4f\xf3\x9d\x2a"
24551 "\x5d\x57\xa8\xa1\x18\xa2\xad\xcb",
24552 .ilen = 80,
24553 .result = "\x98\x37\x05\xf3\x2c\xc2\xf3\x3b"
24554 "\x66\xc0\xb1\xd5\xd7\x35\x21\xaa"
24555 "\x5d\x9f\xce\x7c\xe2\xb8\xad\xad"
24556 "\x19\x33\xe0\xf4\x40\x81\x72\x28"
24557 "\xe1\x8b\x1c\xf8\x91\x78\xff\xaf"
24558 "\xb0\x68\x69\xf2\x27\x35\x91\x84"
24559 "\x2e\x37\x5b\x00\x04\xff\x16\x9c"
24560 "\xb5\x19\x39\xeb\xd9\xcd\x29\x9a",
24561 .rlen = 64,
24562 }, {
24563 .key = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
24564 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b",
24565 .klen = 16,
24566 .iv = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
24567 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
24568 .assoc = "\xc5",
24569 .alen = 1,
24570 .input = "\x4d\xbf\x11\xac\x7f\x97\x0b\x2e"
24571 "\x89\x3b\x9d\x0f\x83\x1c\x08\xc3",
24572 .ilen = 16,
24573 .result = "",
24574 .rlen = 0,
24575 }, {
24576 .key = "\xe4\x25\xcd\xfa\x80\xdd\x46\xde"
24577 "\x07\xd1\x90\x8b\xcf\x23\x15\x31",
24578 .klen = 16,
24579 .iv = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
24580 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
24581 .assoc = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
24582 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34"
24583 "\xe8\x73\x62\x64\xab\x50\xd0\xda"
24584 "\x6b\x83\x66\xaf\x3e\x27\xc9",
24585 .alen = 31,
24586 .input = "\x5b\xc0\x8d\x54\xe4\xec\xbe\x38"
24587 "\x03\x12\xf9\xcc\x9e\x46\x42\x92",
24588 .ilen = 16,
24589 .result = "",
24590 .rlen = 0,
24591 }, {
24592 .key = "\x20\x4a\x07\x99\x91\x58\xee\xfa"
24593 "\x88\xab\x42\x1c\xc9\x47\xd7\x38",
24594 .klen = 16,
24595 .iv = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
24596 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
24597 .assoc = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
24598 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b"
24599 "\x12\x35\x6e\xe8\xb0\xf0\x52\xf3"
24600 "\x2d\xb0\x45\x87\x18\x86\x68\xf6",
24601 .alen = 32,
24602 .input = "\x48\xc5\xc3\x4c\x40\x2e\x2f\xc2"
24603 "\x6d\x65\xe0\x67\x9c\x1d\xa0\xf0",
24604 .ilen = 16,
24605 .result = "",
24606 .rlen = 0,
24607 }, {
24608 .key = "\x5d\x6f\x41\x39\xa1\xd4\x97\x16"
24609 "\x09\x85\xf4\xae\xc3\x6b\x9a\x3e",
24610 .klen = 16,
24611 .iv = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
24612 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
24613 .assoc = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
24614 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41"
24615 "\x3c\xf8\x79\x6c\xb6\x90\xd4\x0d"
24616 "\xee\xde\x23\x60\xf2\xe5\x08\xcc"
24617 "\x97",
24618 .alen = 33,
24619 .input = "\x28\x64\x78\x51\x55\xd8\x56\x4a"
24620 "\x58\x3e\xf7\xbe\xee\x21\xfe\x94",
24621 .ilen = 16,
24622 .result = "",
24623 .rlen = 0,
24624 }, {
24625 .key = "\x99\x93\x7a\xd8\xb1\x50\x40\x31"
24626 "\x8a\x60\xa6\x3f\xbd\x90\x5d\x44",
24627 .klen = 16,
24628 .iv = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
24629 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
24630 .assoc = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
24631 "\xca\xcd\xff\x88\xba\x22\xbe\x47"
24632 "\x67\xba\x85\xf1\xbb\x30\x56\x26"
24633 "\xaf\x0b\x02\x38\xcc\x44\xa7\xa3"
24634 "\xa6\xbf\x31\x93\x60\xcd\xda\x63"
24635 "\x2c\xb1\xaa\x19\xc8\x19\xf8\xeb"
24636 "\x03\xa1\xe8\xbe\x37\x54\xec\xa2"
24637 "\xcd\x2c\x45\x58\xbd\x8e\x80",
24638 .alen = 63,
24639 .input = "\xb3\xa6\x00\x4e\x09\x20\xac\x21"
24640 "\x77\x72\x69\x76\x2d\x36\xe5\xc8",
24641 .ilen = 16,
24642 .result = "",
24643 .rlen = 0,
24644 }, {
24645 .key = "\xd6\xb8\xb4\x77\xc1\xcb\xe9\x4d"
24646 "\x0a\x3a\x58\xd1\xb7\xb4\x1f\x4a",
24647 .klen = 16,
24648 .iv = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
24649 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
24650 .assoc = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
24651 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d"
24652 "\x91\x7c\x91\x75\xc0\xd0\xd8\x40"
24653 "\x71\x39\xe1\x10\xa6\xa3\x46\x7a"
24654 "\xb4\x6b\x35\xc2\xc1\xdf\xed\x60"
24655 "\x46\xc1\x3e\x7f\x8c\xc2\x0e\x7a"
24656 "\x30\x08\xd0\x5f\xa0\xaa\x0c\x6d"
24657 "\x9c\x2f\xdb\x97\xb8\x15\x69\x01",
24658 .alen = 64,
24659 .input = "\x65\x33\x7b\xa1\x63\xf4\x20\xdd"
24660 "\xe4\xb9\x4a\xaa\x9a\x21\xaa\x14",
24661 .ilen = 16,
24662 .result = "",
24663 .rlen = 0,
24664 }, {
24665 .key = "\x12\xdd\xee\x17\xd1\x47\x92\x69"
24666 "\x8b\x14\x0a\x62\xb1\xd9\xe2\x50",
24667 .klen = 16,
24668 .iv = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
24669 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
24670 .assoc = "\x31",
24671 .alen = 1,
24672 .input = "\x1d\x47\x17\x34\x86\xf5\x54\x1a"
24673 "\x6d\x28\xb8\x5d\x6c\xcf\xa0\xb9"
24674 "\xbf",
24675 .ilen = 17,
24676 .result = "\x40",
24677 .rlen = 1,
24678 }, {
24679 .key = "\x4f\x01\x27\xb6\xe1\xc3\x3a\x85"
24680 "\x0c\xee\xbc\xf4\xab\xfd\xa5\x57",
24681 .klen = 16,
24682 .iv = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
24683 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
24684 .assoc = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
24685 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a"
24686 "\xe6\x01\xa8\x7e\xca\x10\xdc\x73"
24687 "\xf4\x94\x9f\xc1\x5a\x61\x85",
24688 .alen = 31,
24689 .input = "\x78\x90\x52\xae\x0f\xf7\x2e\xef"
24690 "\x63\x09\x08\x58\xb5\x56\xbd\x72"
24691 "\x6e\x42\xcf\x27\x04\x7c\xdb\x92"
24692 "\x18\xe9\xa4\x33\x90\xba\x62\xb5"
24693 "\x70\xd3\x88\x9b\x4f\x05\xa7\x51"
24694 "\x85\x87\x17\x09\x42\xed\x4e",
24695 .ilen = 47,
24696 .result = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
24697 "\x6d\x92\x42\x61\xa7\x58\x37\xdb"
24698 "\xb0\xb2\x2b\x9f\x0b\xb8\xbd\x7a"
24699 "\x24\xa0\xd6\xb7\x11\x79\x6c",
24700 .rlen = 31,
24701 }, {
24702 .key = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
24703 "\x8d\xc8\x6e\x85\xa5\x21\x67\x5d",
24704 .klen = 16,
24705 .iv = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
24706 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
24707 .assoc = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
24708 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60"
24709 "\x10\xc3\xb3\x02\xcf\xb0\x5e\x8d"
24710 "\xb5\xc2\x7e\x9a\x35\xc0\x24\xfd",
24711 .alen = 32,
24712 .input = "\x1d\x2c\x57\xe0\x50\x38\x3d\x41"
24713 "\x2e\x71\xc8\x3b\x92\x43\x58\xaf"
24714 "\x5a\xfb\xad\x8f\xd9\xd5\x8a\x5e"
24715 "\xdb\xf3\xcd\x3a\x2b\xe1\x2c\x1a"
24716 "\xb0\xed\xe3\x0c\x6e\xf9\xf2\xd6"
24717 "\x90\xe6\xb1\x0e\xa5\x8a\xac\xb7",
24718 .ilen = 48,
24719 .result = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
24720 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2"
24721 "\xdb\x74\x36\x23\x11\x58\x3f\x93"
24722 "\xe5\xcd\xb5\x90\xeb\xd8\x0c\xb3",
24723 .rlen = 32,
24724 }, {
24725 .key = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
24726 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
24727 .klen = 16,
24728 .iv = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
24729 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
24730 .assoc = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
24731 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66"
24732 "\x3b\x86\xbf\x86\xd4\x50\xe0\xa7"
24733 "\x76\xef\x5c\x72\x0f\x1f\xc3\xd4"
24734 "\xee",
24735 .alen = 33,
24736 .input = "\x59\x10\x84\x1c\x83\x4c\x8b\xfc"
24737 "\xfd\x2e\x4b\x46\x84\xff\x78\x4e"
24738 "\x50\xda\x5c\xb9\x61\x1d\xf5\xb9"
24739 "\xfe\xbb\x7f\xae\x8c\xc1\x24\xbd"
24740 "\x8c\x6f\x1f\x9b\xce\xc6\xc1\x37"
24741 "\x08\x06\x5a\xe5\x96\x10\x95\xc2"
24742 "\x5e",
24743 .ilen = 49,
24744 .result = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
24745 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
24746 "\x05\x36\x42\xa7\x16\xf8\xc1\xad"
24747 "\xa7\xfb\x94\x68\xc5\x37\xab\x8a"
24748 "\x72",
24749 .rlen = 33,
24750 }, {
24751 .key = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
24752 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69",
24753 .klen = 16,
24754 .iv = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
24755 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
24756 .assoc = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
24757 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d"
24758 "\x65\x48\xcb\x0a\xda\xf0\x62\xc0"
24759 "\x38\x1d\x3b\x4a\xe9\x7e\x62\xaa"
24760 "\xfd\xc9\x4a\xa9\xa9\x39\x4b\x54"
24761 "\xc8\x0e\x24\x7f\x5e\x10\x7a\x45"
24762 "\x10\x0b\x56\x85\xad\x54\xaa\x66"
24763 "\xa8\x43\xcd\xd4\x9b\xb7\xfa",
24764 .alen = 63,
24765 .input = "\x9a\x12\xbc\xdf\x72\xa8\x56\x22"
24766 "\x49\x2d\x07\x92\xfc\x3d\x6d\x5f"
24767 "\xef\x36\x19\xae\x91\xfa\xd6\x63"
24768 "\x46\xea\x8a\x39\x14\x21\xa6\x37"
24769 "\x18\xfc\x97\x3e\x16\xa5\x4d\x39"
24770 "\x45\x2e\x69\xcc\x9c\x5f\xdf\x6d"
24771 "\x5e\xa2\xbf\xac\x83\x32\x72\x52"
24772 "\x58\x58\x23\x40\xfd\xa5\xc2\xe6"
24773 "\xe9\x5a\x50\x98\x00\x58\xc9\x86"
24774 "\x4f\x20\x37\xdb\x7b\x22\xa3",
24775 .ilen = 79,
24776 .result = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
24777 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
24778 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
24779 "\x68\x28\x73\x40\x9f\x96\x4a\x60"
24780 "\x80\xf4\x4b\xf4\xc1\x3d\xd0\x93"
24781 "\xcf\x12\xc9\x59\x8f\x7a\x7f\xa8"
24782 "\x1b\xa5\x50\xed\x87\xa9\x72\x59"
24783 "\x9c\x44\xb2\xa4\x99\x98\x34",
24784 .rlen = 63,
24785 }, {
24786 .key = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
24787 "\x10\x57\x85\x39\x93\x8f\xaf\x70",
24788 .klen = 16,
24789 .iv = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
24790 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
24791 .assoc = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
24792 "\x50\xc4\xde\x82\x90\x21\x11\x73"
24793 "\x8f\x0a\xd6\x8f\xdf\x90\xe4\xda"
24794 "\xf9\x4a\x1a\x23\xc3\xdd\x02\x81"
24795 "\x0b\x76\x4f\xd7\x0a\x4b\x5e\x51"
24796 "\xe3\x1d\xb9\xe5\x21\xb9\x8f\xd4"
24797 "\x3d\x72\x3e\x26\x16\xa9\xca\x32"
24798 "\x77\x47\x63\x14\x95\x3d\xe4\x34",
24799 .alen = 64,
24800 .input = "\xe6\xeb\x92\x5a\x5b\xf0\x2d\xbb"
24801 "\x23\xec\x35\xe3\xae\xc9\xfb\x0b"
24802 "\x90\x14\x46\xeb\xa8\x8d\xb0\x9b"
24803 "\x39\xda\x8b\x48\xec\xb2\x00\x4e"
24804 "\x80\x6f\x46\x4f\x9b\x1e\xbb\x35"
24805 "\xea\x5a\xbc\xa2\x36\xa5\x89\x45"
24806 "\xc2\xd6\xd7\x15\x0b\xf6\x6c\x56"
24807 "\xec\x99\x7d\x61\xb3\x15\x93\xed"
24808 "\x83\x1e\xd9\x48\x84\x0b\x37\xfe"
24809 "\x95\x74\x44\xd5\x54\xa6\x27\x06",
24810 .ilen = 80,
24811 .result = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
24812 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
24813 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
24814 "\x29\x56\x52\x19\x79\xf5\xe9\x37"
24815 "\x8f\xa1\x50\x23\x22\x4f\xe3\x91"
24816 "\xe9\x21\x5e\xbf\x52\x23\x95\x37"
24817 "\x48\x0c\x38\x8f\xf0\xff\x92\x24"
24818 "\x6b\x47\x49\xe3\x94\x1f\x1e\x01",
24819 .rlen = 64,
24820 }, {
24821 .key = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
24822 "\x91\x31\x37\xcb\x8d\xb3\x72\x76",
24823 .klen = 16,
24824 .iv = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
24825 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
24826 .assoc = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
24827 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79"
24828 "\xba\xcd\xe2\x13\xe4\x30\x66\xf4"
24829 "\xba\x78\xf9\xfb\x9d\x3c\xa1\x58"
24830 "\x1a\x22\x53\x05\x6b\x5c\x71\x4f"
24831 "\xfd\x2d\x4d\x4c\xe5\x62\xa5\x63"
24832 "\x6a\xda\x26\xc8\x7f\xff\xea\xfd"
24833 "\x46\x4a\xfa\x53\x8f\xc4\xcd\x68"
24834 "\x58",
24835 .alen = 65,
24836 .input = "\x89\x24\x27\x86\xdc\xd7\x6b\xd9"
24837 "\xd1\xcd\xdc\x16\xdd\x2c\xc1\xfb"
24838 "\x52\xb5\xb3\xab\x50\x99\x3f\xa0"
24839 "\x38\xa4\x74\xa5\x04\x15\x63\x05"
24840 "\x8f\x54\x81\x06\x5a\x6b\xa4\x63"
24841 "\x6d\xa7\x21\xcb\xff\x42\x30\x8e"
24842 "\x3b\xd1\xca\x3f\x4b\x1a\xb8\xc3"
24843 "\x42\x01\xe6\xbc\x75\x15\x87\xee"
24844 "\xc9\x8e\x65\x01\xd9\xd8\xb5\x9f"
24845 "\x48\x86\xa6\x5f\x2c\xc7\xb5\xb0"
24846 "\xed\x5d\x14\x7c\x3f\x40\xb1\x0b"
24847 "\x72\xef\x94\x8d\x7a\x85\x56\xe5"
24848 "\x56\x08\x15\x56\xba\xaf\xbd\xf0"
24849 "\x20\xef\xa0\xf6\xa9\xad\xa2\xc9"
24850 "\x1c\x3b\x28\x51\x7e\x77\xb2\x18"
24851 "\x4f\x61\x64\x37\x22\x36\x6d\x78"
24852 "\xed\xed\x35\xe8\x83\xa5\xec\x25"
24853 "\x6b\xff\x5f\x1a\x09\x96\x3d\xdc"
24854 "\x20",
24855 .ilen = 145,
24856 .result = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
24857 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
24858 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
24859 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
24860 "\x9d\x4d\x54\x51\x84\x61\xf6\x8e"
24861 "\x03\x31\xf2\x25\x16\xcc\xaa\xc6"
24862 "\x75\x73\x20\x30\x59\x54\xb2\xf0"
24863 "\x3a\x4b\xe0\x23\x8e\xa6\x08\x35"
24864 "\x8a\xdf\x27\xa0\xe4\x60\x99\xae"
24865 "\x8e\x43\xd9\x39\x7b\x10\x40\x67"
24866 "\x5c\x7e\xc9\x70\x63\x34\xca\x59"
24867 "\xfe\x86\xbc\xb7\x9c\x39\xf3\x6d"
24868 "\x6a\x41\x64\x6f\x16\x7f\x65\x7e"
24869 "\x89\x84\x68\xeb\xb0\x51\xbe\x55"
24870 "\x33\x16\x59\x6c\x3b\xef\x88\xad"
24871 "\x2f\xab\xbc\x25\x76\x87\x41\x2f"
24872 "\x36",
24873 .rlen = 129,
24874 }, {
24875 .key = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
24876 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c",
24877 .klen = 16,
24878 .iv = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
24879 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
24880 .assoc = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
24881 "\x52\x79\x42\xa5\x84\x6a\x96\x7f"
24882 "\xe4\x8f\xed\x97\xe9\xd0\xe8\x0d"
24883 "\x7c\xa6\xd8\xd4\x77\x9b\x40\x2e"
24884 "\x28\xce\x57\x34\xcd\x6e\x84\x4c"
24885 "\x17\x3c\xe1\xb2\xa8\x0b\xbb\xf1"
24886 "\x96\x41\x0d\x69\xe8\x54\x0a\xc8"
24887 "\x15\x4e\x91\x92\x89\x4b\xb7\x9b"
24888 "\x21\xf7\x42\x89\xac\x12\x2a\x54"
24889 "\x69\xee\x18\xc7\x8d\xed\xe8\xfd"
24890 "\xbb\x04\x28\xe6\x8a\x3c\x98\xc1"
24891 "\x04\x2d\xa9\xa1\x24\x83\xff\xe9"
24892 "\x55\x7a\xf0\xd1\xf6\x63\x05\xe1"
24893 "\xd9\x1e\x75\x72\xc1\x9f\xae\x32"
24894 "\xe1\x6b\xcd\x9e\x61\x19\x23\x86"
24895 "\xd9\xd2\xaf\x8e\xd5\xd3\xa8\xa9"
24896 "\x51",
24897 .alen = 129,
24898 .input = "\x36\x78\xb9\x22\xde\x62\x35\x55"
24899 "\x1a\x7a\xf5\x45\xbc\xd7\x15\x82"
24900 "\x01\xe9\x5a\x07\xea\x46\xaf\x91"
24901 "\xcb\x73\xa5\xee\xe1\xb4\xbf\xc2"
24902 "\xdb\xd2\x9d\x59\xde\xfc\x83\x00"
24903 "\xf5\x46\xac\x97\xd5\x57\xa9\xb9"
24904 "\x1f\x8c\xe8\xca\x68\x8b\x91\x0c"
24905 "\x01\xbe\x0a\xaf\x7c\xf6\x67\xa4"
24906 "\xbf\xbc\x88\x3f\x5d\xd1\xf9\x19"
24907 "\x0f\x9d\xb2\xaf\xb9\x6e\x17\xdf"
24908 "\xa2",
24909 .ilen = 81,
24910 .result = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
24911 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
24912 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
24913 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
24914 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
24915 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
24916 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
24917 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
24918 "\x54",
24919 .rlen = 65,
24920 }, {
24921 .key = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
24922 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82",
24923 .klen = 16,
24924 .iv = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
24925 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
24926 .assoc = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
24927 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85"
24928 "\x0e\x51\xf9\x1c\xee\x70\x6a\x27"
24929 "\x3d\xd3\xb7\xac\x51\xfa\xdf\x05",
24930 .alen = 32,
24931 .input = "\x08\x1b\x95\x0e\x41\x95\x02\x4b"
24932 "\x9c\xbb\xa8\xd0\x7c\xd3\x44\x6e"
24933 "\x89\x14\x33\x70\x0a\xbc\xea\x39"
24934 "\x88\xaa\x2b\xd5\x73\x11\x55\xf5"
24935 "\x33\x33\x9c\xd7\x42\x34\x49\x8e"
24936 "\x2f\x03\x30\x05\x47\xaf\x34",
24937 .ilen = 47,
24938 .result = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
24939 "\xf3\x89\x20\x5b\x7c\x57\x89\x07"
24940 "\xd9\x02\x7c\x3d\x2f\x18\x4b\x2d"
24941 "\x6e\xde\xee\xa2\x08\x12\xc7\xba",
24942 .rlen = 32,
24943 }, {
24944 .key = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
24945 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
24946 .klen = 16,
24947 .iv = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
24948 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
24949 .assoc = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
24950 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c"
24951 "\x39\x14\x05\xa0\xf3\x10\xec\x41"
24952 "\xff\x01\x95\x84\x2b\x59\x7f\xdb",
24953 .alen = 32,
24954 .input = "\x97\xca\xf4\xe0\x8d\x89\xbf\x68"
24955 "\x0c\x60\xb9\x27\xdf\xaa\x41\xc6"
24956 "\x25\xd8\xf7\x1f\x10\x15\x48\x61"
24957 "\x4c\x95\x00\xdf\x51\x9b\x7f\xe6"
24958 "\x24\x40\x9e\xbe\x3b\xeb\x1b\x98"
24959 "\xb9\x9c\xe5\xef\xf2\x05",
24960 .ilen = 46,
24961 .result = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
24962 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d"
24963 "\x03\xc4\x88\xc1\x35\xb8\xcd\x47"
24964 "\x2f\x0c\xcd\x7a\xe2\x71\x66\x91",
24965 .rlen = 32,
24966 }, {
24967 .key = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
24968 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
24969 .klen = 16,
24970 .iv = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
24971 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
24972 .assoc = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
24973 "\xd5\x07\x58\x59\x72\xd7\xde\x92"
24974 "\x63\xd6\x10\x24\xf8\xb0\x6e\x5a"
24975 "\xc0\x2e\x74\x5d\x06\xb8\x1e\xb2",
24976 .alen = 32,
24977 .input = "\x63\x4c\x2a\x8e\xb4\x6b\x63\x0d"
24978 "\xb5\xec\x9b\x4e\x12\x23\xa3\xcf"
24979 "\x1a\x5a\x70\x15\x5a\x10\x40\x51"
24980 "\xca\x47\x4c\x9d\xc9\x97\xf4\x77"
24981 "\xdb\xc8\x10\x2d\xdc\x65\x20\x3f",
24982 .ilen = 40,
24983 .result = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
24984 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13"
24985 "\x2e\x86\x93\x45\x3a\x58\x4f\x61"
24986 "\xf0\x3a\xac\x53\xbc\xd0\x06\x68",
24987 .rlen = 32,
24988 }, {
24989 .key = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
24990 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
24991 .klen = 16,
24992 .iv = "\xbb\x3a\xf7\x57\xc6\x36\x7c\x22"
24993 "\x36\xab\xde\xc6\x6d\x32\x70\x17",
24994 .assoc = "\xcb\x03\x85\xbf\x0a\xd5\x26\xa9"
24995 "\x56\xe1\x0a\xeb\x6c\xfb\xa1\x98"
24996 "\x8d\x98\x1c\xa8\xfe\x50\xf0\x74"
24997 "\x81\x5c\x53\x35\xe0\x17\xbd\x88",
24998 .alen = 32,
24999 .input = "\xf1\x62\x44\xc7\x5f\x19\xca\x43"
25000 "\x47\x2c\xaf\x68\x82\xbd\x51\xef"
25001 "\x3d\x65\xd8\x45\x2d\x06\x07\x78"
25002 "\x08\x2e\xb3\x23\xcd\x81\x12\x55"
25003 "\x1a",
25004 .ilen = 33,
25005 .result = "\xda\xcc\x14\x27\x4e\x74\xd1\x30"
25006 "\x76\x18\x37\x0f\x6a\xc4\xd1\x1a"
25007 "\x58\x49\x9f\xc9\x3f\xf8\xd1\x7a"
25008 "\xb2\x67\x8b\x2b\x96\x2f\xa5\x3e",
25009 .rlen = 32,
25010 }, {
25011 .key = "\xe9\x95\xa2\x8f\x93\x13\x7b\xb7"
25012 "\x96\x4e\x63\x33\x69\x8d\x02\x9b"
25013 "\x23\xf9\x22\xeb\x80\xa0\xb1\x81"
25014 "\xe2\x73\xc3\x21\x4d\x47\x8d\xf4",
25015 .klen = 32,
25016 .iv = "\xf8\x5e\x31\xf7\xd7\xb2\x25\x3e"
25017 "\xb7\x85\x90\x58\x67\x57\x33\x1d",
25018 .assoc = "",
25019 .alen = 0,
25020 .input = "\xdf\x2f\x83\xc0\x45\x4a\x2c\xcf"
25021 "\xb9\xd2\x41\xf6\x80\xa1\x52\x70",
25022 .ilen = 16,
25023 .result = "",
25024 .rlen = 0,
25025 }, {
25026 .key = "\x25\xba\xdc\x2e\xa3\x8f\x24\xd3"
25027 "\x17\x29\x15\xc5\x63\xb2\xc5\xa1"
25028 "\x4d\xbc\x2d\x6f\x85\x40\x33\x9a"
25029 "\xa3\xa0\xa1\xfa\x27\xa6\x2c\xca",
25030 .klen = 32,
25031 .iv = "\x34\x83\x6a\x96\xe7\x2d\xce\x5a"
25032 "\x38\x5f\x42\xe9\x61\x7b\xf5\x23",
25033 .assoc = "",
25034 .alen = 0,
25035 .input = "\x01\xd8\x55\x3c\xc0\x5a\x4b\xc7"
25036 "\x01\xf4\x08\xe3\x0d\xf7\xf0\x78"
25037 "\x53",
25038 .ilen = 17,
25039 .result = "\x53",
25040 .rlen = 1,
25041 }, {
25042 .key = "\x62\xdf\x16\xcd\xb3\x0a\xcc\xef"
25043 "\x98\x03\xc7\x56\x5d\xd6\x87\xa8"
25044 "\x77\x7e\x39\xf3\x8a\xe0\xb5\xb4"
25045 "\x65\xce\x80\xd2\x01\x05\xcb\xa1",
25046 .klen = 32,
25047 .iv = "\x71\xa8\xa4\x35\xf7\xa9\x76\x75"
25048 "\xb8\x39\xf4\x7a\x5b\x9f\xb8\x29",
25049 .assoc = "",
25050 .alen = 0,
25051 .input = "\xc2\x4b\x41\x0f\x2d\xb9\x62\x07"
25052 "\xff\x8e\x74\xf8\xa1\xa6\xd5\x37"
25053 "\xa5\x64\x31\x5c\xca\x73\x9b\x43"
25054 "\xe6\x70\x63\x46\x95\xcb\xf7\xb5"
25055 "\x20\x8c\x75\x7a\x2a\x17\x2f\xa9"
25056 "\xb8\x4d\x11\x42\xd1\xf8\xf1",
25057 .ilen = 47,
25058 .result = "\x8f\x3a\xc1\x05\x7f\xe7\xcb\x83"
25059 "\xf9\xa6\x4d\xc3\x58\x31\x19\x2c"
25060 "\xd7\x90\xc2\x56\x4e\xd8\x57\xc7"
25061 "\xf6\xf0\x27\xb4\x25\x4c\x83",
25062 .rlen = 31,
25063 }, {
25064 .key = "\x9e\x03\x4f\x6d\xc3\x86\x75\x0a"
25065 "\x19\xdd\x79\xe8\x57\xfb\x4a\xae"
25066 "\xa2\x40\x45\x77\x90\x80\x37\xce"
25067 "\x26\xfb\x5f\xaa\xdb\x64\x6b\x77",
25068 .klen = 32,
25069 .iv = "\xae\xcc\xde\xd5\x07\x25\x1f\x91"
25070 "\x39\x14\xa6\x0c\x55\xc4\x7b\x30",
25071 .assoc = "",
25072 .alen = 0,
25073 .input = "\xbb\x01\x7c\xd1\x2c\x33\x7b\x37"
25074 "\x0a\xee\xc4\x30\x19\xd7\x3a\x6f"
25075 "\xf8\x2b\x67\xf5\x3b\x84\x87\x2a"
25076 "\xfb\x07\x7a\x82\xb5\xe4\x85\x26"
25077 "\x1e\xa8\xe5\x04\x54\xce\xe5\x5f"
25078 "\xb5\x3f\xc1\xd5\x7f\xbd\xd2\xa6",
25079 .ilen = 48,
25080 .result = "\xcc\x5f\xfb\xa4\x8f\x63\x74\x9f"
25081 "\x7a\x81\xff\x55\x52\x56\xdc\x33"
25082 "\x01\x52\xcd\xdb\x53\x78\xd9\xe1"
25083 "\xb7\x1d\x06\x8d\xff\xab\x22\x98",
25084 .rlen = 32,
25085 }, {
25086 .key = "\xdb\x28\x89\x0c\xd3\x01\x1e\x26"
25087 "\x9a\xb7\x2b\x79\x51\x1f\x0d\xb4"
25088 "\xcc\x03\x50\xfc\x95\x20\xb9\xe7"
25089 "\xe8\x29\x3e\x83\xb5\xc3\x0a\x4e",
25090 .klen = 32,
25091 .iv = "\xea\xf1\x18\x74\x17\xa0\xc8\xad"
25092 "\xba\xee\x58\x9d\x4f\xe8\x3d\x36",
25093 .assoc = "",
25094 .alen = 0,
25095 .input = "\xc2\xf4\x40\x55\xf9\x59\xff\x73"
25096 "\x08\xf5\x98\x92\x0c\x7b\x35\x9a"
25097 "\xa8\xf4\x42\x7e\x6f\x93\xca\x22"
25098 "\x23\x06\x1e\xf8\x89\x22\xf4\x46"
25099 "\x7c\x7c\x67\x75\xab\xe5\x75\xaa"
25100 "\x15\xd7\x83\x19\xfd\x31\x59\x5b"
25101 "\x32",
25102 .ilen = 49,
25103 .result = "\x08\x84\x34\x44\x9f\xde\x1c\xbb"
25104 "\xfb\x5b\xb1\xe6\x4c\x7a\x9f\x39"
25105 "\x2c\x14\xd9\x5f\x59\x18\x5b\xfb"
25106 "\x79\x4b\xe5\x65\xd9\x0a\xc1\x6f"
25107 "\x2e",
25108 .rlen = 33,
25109 }, {
25110 .key = "\x17\x4d\xc3\xab\xe3\x7d\xc7\x42"
25111 "\x1b\x91\xdd\x0a\x4b\x43\xcf\xba"
25112 "\xf6\xc5\x5c\x80\x9a\xc0\x3b\x01"
25113 "\xa9\x56\x1d\x5b\x8f\x22\xa9\x25",
25114 .klen = 32,
25115 .iv = "\x27\x16\x51\x13\x27\x1c\x71\xc9"
25116 "\x3b\xc8\x0a\x2f\x49\x0c\x00\x3c",
25117 .assoc = "",
25118 .alen = 0,
25119 .input = "\xc9\x82\x3b\x4b\x87\x84\xa5\xdb"
25120 "\xa0\x8c\xd3\x3e\x7f\x8d\xe8\x28"
25121 "\x2a\xdc\xfa\x01\x84\x87\x9a\x70"
25122 "\x81\x75\x37\x0a\xd2\x75\xa9\xb6"
25123 "\x21\x72\xee\x7e\x65\x95\xe5\xcc"
25124 "\x01\xb7\x39\xa6\x51\x15\xca\xff"
25125 "\x61\xdc\x97\x38\xcc\xf4\xca\xc7"
25126 "\x83\x9b\x05\x11\x72\x60\xf0\xb4"
25127 "\x7e\x06\xab\x0a\xc0\xbb\x59\x23"
25128 "\xaa\x2d\xfc\x4e\x35\x05\x59",
25129 .ilen = 79,
25130 .result = "\x45\xa8\x6e\xe3\xaf\x5a\xc5\xd7"
25131 "\x7c\x35\x63\x77\x46\x9f\x61\x3f"
25132 "\x56\xd7\xe4\xe3\x5e\xb8\xdc\x14"
25133 "\x3a\x79\xc4\x3e\xb3\x69\x61\x46"
25134 "\x3c\xb6\x83\x4e\xb4\x26\xc7\x73"
25135 "\x22\xda\x52\x8b\x7d\x11\x98\xea"
25136 "\x62\xe1\x14\x1e\xdc\xfe\x0f\xad"
25137 "\x20\x76\x5a\xdc\x4e\x71\x13",
25138 .rlen = 63,
25139 }, {
25140 .key = "\x54\x71\xfd\x4b\xf3\xf9\x6f\x5e"
25141 "\x9c\x6c\x8f\x9c\x45\x68\x92\xc1"
25142 "\x21\x87\x67\x04\x9f\x60\xbd\x1b"
25143 "\x6a\x84\xfc\x34\x6a\x81\x48\xfb",
25144 .klen = 32,
25145 .iv = "\x63\x3b\x8b\xb3\x37\x98\x1a\xe5"
25146 "\xbc\xa2\xbc\xc0\x43\x31\xc2\x42",
25147 .assoc = "",
25148 .alen = 0,
25149 .input = "\x11\x7c\x7d\xef\xce\x29\x95\xec"
25150 "\x7e\x9f\x42\xa6\x26\x07\xa1\x75"
25151 "\x2f\x4e\x09\x9a\xf6\x6b\xc2\xfa"
25152 "\x0d\xd0\x17\xdc\x25\x1e\x9b\xdc"
25153 "\x5f\x8c\x1c\x60\x15\x4f\x9b\x20"
25154 "\x7b\xff\xcd\x82\x60\x84\xf4\xa5"
25155 "\x20\x9a\x05\x19\x5b\x02\x0a\x72"
25156 "\x43\x11\x26\x58\xcf\xc5\x41\xcf"
25157 "\x13\xcc\xde\x32\x92\xfa\x86\xf2"
25158 "\xaf\x16\xe8\x8f\xca\xb6\xfd\x54",
25159 .ilen = 80,
25160 .result = "\x81\xcd\xa8\x82\xbf\xd6\x6e\xf3"
25161 "\xfd\x0f\x15\x09\x40\xc3\x24\x45"
25162 "\x81\x99\xf0\x67\x63\x58\x5e\x2e"
25163 "\xfb\xa6\xa3\x16\x8d\xc8\x00\x1c"
25164 "\x4b\x62\x87\x7c\x15\x38\xda\x70"
25165 "\x3d\xea\xe7\xf2\x40\xba\xae\x79"
25166 "\x8f\x48\xfc\xbf\x45\x53\x2e\x78"
25167 "\xef\x79\xf0\x1b\x49\xf7\xfd\x9c",
25168 .rlen = 64,
25169 }, {
25170 .key = "\x90\x96\x36\xea\x03\x74\x18\x7a"
25171 "\x1d\x46\x42\x2d\x3f\x8c\x54\xc7"
25172 "\x4b\x4a\x73\x89\xa4\x00\x3f\x34"
25173 "\x2c\xb1\xdb\x0c\x44\xe0\xe8\xd2",
25174 .klen = 32,
25175 .iv = "\xa0\x5f\xc5\x52\x47\x13\xc2\x01"
25176 "\x3d\x7c\x6e\x52\x3d\x55\x85\x48",
25177 .assoc = "\xaf",
25178 .alen = 1,
25179 .input = "\x9b\xc5\x3b\x20\x0a\x88\x56\xbe"
25180 "\x69\xdf\xc4\xc4\x02\x46\x3a\xf0",
25181 .ilen = 16,
25182 .result = "",
25183 .rlen = 0,
25184 }, {
25185 .key = "\xcd\xbb\x70\x89\x13\xf0\xc1\x95"
25186 "\x9e\x20\xf4\xbf\x39\xb1\x17\xcd"
25187 "\x76\x0c\x7f\x0d\xa9\xa0\xc1\x4e"
25188 "\xed\xdf\xb9\xe4\x1e\x3f\x87\xa8",
25189 .klen = 32,
25190 .iv = "\xdc\x84\xfe\xf1\x58\x8f\x6b\x1c"
25191 "\xbe\x57\x20\xe3\x37\x7a\x48\x4f",
25192 .assoc = "\xeb\x4d\x8d\x59\x9c\x2e\x15\xa3"
25193 "\xde\x8d\x4d\x07\x36\x43\x78\xd0"
25194 "\x0b\x6d\x84\x4f\x2c\xf0\x82\x5b"
25195 "\x4e\xf6\x29\xd1\x8b\x6f\x56",
25196 .alen = 31,
25197 .input = "\xe0\x6d\xa1\x07\x98\x2f\x40\x2d"
25198 "\x2e\x9a\xd6\x61\x43\xc0\x74\x69",
25199 .ilen = 16,
25200 .result = "",
25201 .rlen = 0,
25202 }, {
25203 .key = "\x0a\xe0\xaa\x29\x24\x6c\x6a\xb1"
25204 "\x1f\xfa\xa6\x50\x33\xd5\xda\xd3"
25205 "\xa0\xce\x8a\x91\xae\x40\x43\x68"
25206 "\xae\x0d\x98\xbd\xf8\x9e\x26\x7f",
25207 .klen = 32,
25208 .iv = "\x19\xa9\x38\x91\x68\x0b\x14\x38"
25209 "\x3f\x31\xd2\x74\x31\x9e\x0a\x55",
25210 .assoc = "\x28\x72\xc7\xf8\xac\xaa\xbe\xbf"
25211 "\x5f\x67\xff\x99\x30\x67\x3b\xd6"
25212 "\x35\x2f\x90\xd3\x31\x90\x04\x74"
25213 "\x0f\x23\x08\xa9\x65\xce\xf6\xea",
25214 .alen = 32,
25215 .input = "\xb9\x57\x13\x3e\x82\x31\x61\x65"
25216 "\x0d\x7f\x6c\x96\x93\x5c\x50\xe2",
25217 .ilen = 16,
25218 .result = "",
25219 .rlen = 0,
25220 }, {
25221 .key = "\x46\x04\xe3\xc8\x34\xe7\x12\xcd"
25222 "\xa0\xd4\x58\xe2\x2d\xf9\x9c\xda"
25223 "\xca\x91\x96\x15\xb4\xe0\xc5\x81"
25224 "\x70\x3a\x77\x95\xd2\xfd\xc5\x55",
25225 .klen = 32,
25226 .iv = "\x55\xcd\x72\x30\x78\x86\xbd\x54"
25227 "\xc0\x0b\x84\x06\x2b\xc2\xcd\x5b",
25228 .assoc = "\x64\x97\x00\x98\xbc\x25\x67\xdb"
25229 "\xe0\x41\xb1\x2a\x2a\x8c\xfe\xdd"
25230 "\x5f\xf2\x9c\x58\x36\x30\x86\x8e"
25231 "\xd1\x51\xe6\x81\x3f\x2d\x95\xc1"
25232 "\x01",
25233 .alen = 33,
25234 .input = "\x81\x96\x34\xde\xbb\x36\xdd\x3e"
25235 "\x4e\x5e\xcb\x44\x21\xb8\x3f\xf1",
25236 .ilen = 16,
25237 .result = "",
25238 .rlen = 0,
25239 }, {
25240 .key = "\x83\x29\x1d\x67\x44\x63\xbb\xe9"
25241 "\x20\xaf\x0a\x73\x27\x1e\x5f\xe0"
25242 "\xf5\x53\xa1\x9a\xb9\x80\x47\x9b"
25243 "\x31\x68\x56\x6e\xac\x5c\x65\x2c",
25244 .klen = 32,
25245 .iv = "\x92\xf2\xac\xcf\x88\x02\x65\x70"
25246 "\x41\xe5\x36\x97\x25\xe7\x90\x61",
25247 .assoc = "\xa1\xbb\x3a\x37\xcc\xa1\x10\xf7"
25248 "\x61\x1c\x63\xbc\x24\xb0\xc0\xe3"
25249 "\x8a\xb4\xa7\xdc\x3b\xd0\x08\xa8"
25250 "\x92\x7f\xc5\x5a\x19\x8c\x34\x97"
25251 "\x0f\x95\x9b\x18\xe4\x8d\xb4\x24"
25252 "\xb9\x33\x28\x18\xe1\x9d\x14\xe0"
25253 "\x64\xb2\x89\x7d\x78\xa8\x05\x7e"
25254 "\x07\x8c\xfc\x88\x2d\xb8\x53",
25255 .alen = 63,
25256 .input = "\x2e\x99\xb6\x79\x57\x56\x80\x36"
25257 "\x8e\xc4\x1c\x12\x7d\x71\x36\x0c",
25258 .ilen = 16,
25259 .result = "",
25260 .rlen = 0,
25261 }, {
25262 .key = "\xbf\x4e\x57\x07\x54\xdf\x64\x05"
25263 "\xa1\x89\xbc\x04\x21\x42\x22\xe6"
25264 "\x1f\x15\xad\x1e\xbe\x20\xc9\xb4"
25265 "\xf3\x95\x35\x46\x86\xbb\x04\x03",
25266 .klen = 32,
25267 .iv = "\xce\x17\xe5\x6f\x98\x7e\x0e\x8c"
25268 "\xc2\xbf\xe8\x29\x1f\x0b\x52\x68",
25269 .assoc = "\xdd\xe0\x74\xd6\xdc\x1d\xb8\x13"
25270 "\xe2\xf6\x15\x4d\x1e\xd4\x83\xe9"
25271 "\xb4\x76\xb3\x60\x40\x70\x8a\xc1"
25272 "\x53\xac\xa4\x32\xf3\xeb\xd3\x6e"
25273 "\x1e\x42\xa0\x46\x45\x9f\xc7\x22"
25274 "\xd3\x43\xbc\x7e\xa5\x47\x2a\x6f"
25275 "\x91\x19\x70\x1e\xe1\xfe\x25\x49"
25276 "\xd6\x8f\x93\xc7\x28\x3f\x3d\x03",
25277 .alen = 64,
25278 .input = "\x7b\x25\x3d\x47\xd4\xa7\x08\xce"
25279 "\x3b\x89\x40\x36\xba\x6d\x0e\xa2",
25280 .ilen = 16,
25281 .result = "",
25282 .rlen = 0,
25283 }, {
25284 .key = "\xfc\x72\x90\xa6\x64\x5a\x0d\x21"
25285 "\x22\x63\x6e\x96\x1b\x67\xe4\xec"
25286 "\x49\xd7\xb9\xa2\xc3\xc0\x4b\xce"
25287 "\xb4\xc3\x14\x1e\x61\x1a\xa3\xd9",
25288 .klen = 32,
25289 .iv = "\x0b\x3c\x1f\x0e\xa8\xf9\xb7\xa7"
25290 "\x42\x9a\x9a\xba\x19\x30\x15\x6e",
25291 .assoc = "\x1a",
25292 .alen = 1,
25293 .input = "\xe6\x09\x6f\x95\x9a\x18\xc8\xf6"
25294 "\x17\x75\x81\x16\xdf\x26\xff\x67"
25295 "\x92",
25296 .ilen = 17,
25297 .result = "\x29",
25298 .rlen = 1,
25299 }, {
25300 .key = "\x38\x97\xca\x45\x74\xd6\xb6\x3c"
25301 "\xa3\x3d\x20\x27\x15\x8b\xa7\xf2"
25302 "\x74\x9a\xc4\x27\xc8\x60\xcd\xe8"
25303 "\x75\xf0\xf2\xf7\x3b\x79\x42\xb0",
25304 .klen = 32,
25305 .iv = "\x47\x60\x59\xad\xb8\x75\x60\xc3"
25306 "\xc3\x74\x4c\x4c\x13\x54\xd8\x74",
25307 .assoc = "\x56\x29\xe7\x15\xfc\x14\x0a\x4a"
25308 "\xe4\xaa\x79\x70\x12\x1d\x08\xf6"
25309 "\x09\xfb\xca\x69\x4b\xb0\x8e\xf5"
25310 "\xd6\x07\x62\xe3\xa8\xa9\x12",
25311 .alen = 31,
25312 .input = "\x82\xc0\x56\xf0\xd7\xc4\xc9\xfd"
25313 "\x3c\xd1\x2a\xd4\x15\x86\x9d\xda"
25314 "\xea\x6c\x6f\xa1\x33\xb0\x7a\x01"
25315 "\x57\xe7\xf3\x7b\x73\xe7\x54\x10"
25316 "\xc6\x91\xe2\xc6\xa0\x69\xe7\xe6"
25317 "\x76\xc3\xf5\x3a\x76\xfd\x4a",
25318 .ilen = 47,
25319 .result = "\x66\xf3\x75\x7d\x40\xb3\xb4\xd1"
25320 "\x04\xe1\xa6\x94\x10\xe6\x39\x77"
25321 "\xd3\xac\x4d\x8a\x8c\x58\x6e\xfb"
25322 "\x06\x13\x9a\xd9\x5e\xc0\xfa",
25323 .rlen = 31,
25324 }, {
25325 .key = "\x75\xbc\x04\xe5\x84\x52\x5e\x58"
25326 "\x24\x17\xd2\xb9\x0e\xaf\x6a\xf9"
25327 "\x9e\x5c\xd0\xab\xcd\x00\x4f\x01"
25328 "\x37\x1e\xd1\xcf\x15\xd8\xe2\x86",
25329 .klen = 32,
25330 .iv = "\x84\x85\x92\x4d\xc8\xf1\x08\xdf"
25331 "\x44\x4e\xff\xdd\x0d\x78\x9a\x7a",
25332 .assoc = "\x93\x4e\x21\xb4\x0c\x90\xb3\x66"
25333 "\x65\x84\x2b\x01\x0b\x42\xcb\xfc"
25334 "\x33\xbd\xd6\xed\x50\x50\x10\x0e"
25335 "\x97\x35\x41\xbb\x82\x08\xb1\xf2",
25336 .alen = 32,
25337 .input = "\x01\x47\x8e\x6c\xf6\x64\x89\x3a"
25338 "\x71\xce\xe4\xaa\x45\x70\xe6\x84"
25339 "\x62\x48\x08\x64\x86\x6a\xdf\xec"
25340 "\xb4\xa0\xfb\x34\x03\x0c\x19\xf4"
25341 "\x2b\x7b\x36\x73\xec\x54\xa9\x1e"
25342 "\x30\x85\xdb\xe4\xac\xe9\x2c\xca",
25343 .ilen = 48,
25344 .result = "\xa2\x17\xaf\x1c\x50\x2e\x5d\xed"
25345 "\x85\xbb\x58\x26\x0a\x0b\xfc\x7d"
25346 "\xfe\x6e\x59\x0e\x91\xf8\xf0\x15"
25347 "\xc8\x40\x78\xb1\x38\x1f\x99\xa7",
25348 .rlen = 32,
25349 }, {
25350 .key = "\xb1\xe1\x3e\x84\x94\xcd\x07\x74"
25351 "\xa5\xf2\x84\x4a\x08\xd4\x2c\xff"
25352 "\xc8\x1e\xdb\x2f\xd2\xa0\xd1\x1b"
25353 "\xf8\x4c\xb0\xa8\xef\x37\x81\x5d",
25354 .klen = 32,
25355 .iv = "\xc0\xaa\xcc\xec\xd8\x6c\xb1\xfb"
25356 "\xc5\x28\xb1\x6e\x07\x9d\x5d\x81",
25357 .assoc = "\xd0\x73\x5a\x54\x1d\x0b\x5b\x82"
25358 "\xe5\x5f\xdd\x93\x05\x66\x8e\x02"
25359 "\x5e\x80\xe1\x71\x55\xf0\x92\x28"
25360 "\x59\x62\x20\x94\x5c\x67\x50\xc8"
25361 "\x58",
25362 .alen = 33,
25363 .input = "\x85\xe0\xf8\x0f\x8e\x49\xe3\x60"
25364 "\xcb\x4a\x54\x94\xcf\xf5\x7e\x34"
25365 "\xe9\xf8\x80\x65\x53\xd0\x72\x70"
25366 "\x4f\x7d\x9d\xd1\x15\x6f\xb9\x2c"
25367 "\xfa\xe8\xdd\xac\x2e\xe1\x3f\x67"
25368 "\x63\x0f\x1a\x59\xb7\x89\xdb\xf4"
25369 "\xc3",
25370 .ilen = 49,
25371 .result = "\xdf\x3c\xe9\xbc\x61\xaa\x06\x09"
25372 "\x06\x95\x0a\xb7\x04\x2f\xbe\x84"
25373 "\x28\x30\x64\x92\x96\x98\x72\x2e"
25374 "\x89\x6e\x57\x8a\x13\x7e\x38\x7e"
25375 "\xdb",
25376 .rlen = 33,
25377 }, {
25378 .key = "\xee\x05\x77\x23\xa5\x49\xb0\x90"
25379 "\x26\xcc\x36\xdc\x02\xf8\xef\x05"
25380 "\xf3\xe1\xe7\xb3\xd8\x40\x53\x35"
25381 "\xb9\x79\x8f\x80\xc9\x96\x20\x33",
25382 .klen = 32,
25383 .iv = "\xfd\xce\x06\x8b\xe9\xe8\x5a\x17"
25384 "\x46\x02\x63\x00\x01\xc1\x20\x87",
25385 .assoc = "\x0c\x98\x94\xf3\x2d\x87\x04\x9e"
25386 "\x66\x39\x8f\x24\xff\x8a\x50\x08"
25387 "\x88\x42\xed\xf6\x5a\x90\x14\x42"
25388 "\x1a\x90\xfe\x6c\x36\xc6\xf0\x9f"
25389 "\x66\xa0\xb5\x2d\x2c\xf8\x25\x15"
25390 "\x55\x90\xa2\x7e\x77\x94\x96\x3a"
25391 "\x71\x1c\xf7\x44\xee\xa8\xc3\x42"
25392 "\xe2\xa3\x84\x04\x0b\xe1\xce",
25393 .alen = 63,
25394 .input = "\x00\xe5\x5b\x87\x5c\x20\x22\x8a"
25395 "\xda\x1f\xd3\xff\xbb\xb2\xb0\xf8"
25396 "\xef\xe9\xeb\x9e\x7c\x80\xf4\x2b"
25397 "\x59\xc0\x79\xbc\x17\xa0\x15\x01"
25398 "\xf5\x72\xfb\x5a\xe7\xaf\x07\xe3"
25399 "\x1b\x49\x21\x34\x23\x63\x55\x5e"
25400 "\xee\x4f\x34\x17\xfa\xfe\xa5\x0c"
25401 "\xed\x0b\x23\xea\x9b\xda\x57\x2f"
25402 "\xf6\xa9\xae\x0d\x4e\x40\x96\x45"
25403 "\x7f\xfa\xf0\xbf\xc4\x98\x78",
25404 .ilen = 79,
25405 .result = "\x1b\x61\x23\x5b\x71\x26\xae\x25"
25406 "\x87\x6f\xbc\x49\xfe\x53\x81\x8a"
25407 "\x53\xf2\x70\x17\x9b\x38\xf4\x48"
25408 "\x4b\x9b\x36\x62\xed\xdd\xd8\x54"
25409 "\xea\xcb\xb6\x79\x45\xfc\xaa\x54"
25410 "\x5c\x94\x47\x58\xa7\xff\x9c\x9e"
25411 "\x7c\xb6\xf1\xac\xc8\xfd\x8b\x35"
25412 "\xd5\xa4\x6a\xd4\x09\xc2\x08",
25413 .rlen = 63,
25414 }, {
25415 .key = "\x2a\x2a\xb1\xc3\xb5\xc5\x59\xac"
25416 "\xa7\xa6\xe8\x6d\xfc\x1d\xb2\x0b"
25417 "\x1d\xa3\xf3\x38\xdd\xe0\xd5\x4e"
25418 "\x7b\xa7\x6e\x58\xa3\xf5\xbf\x0a",
25419 .klen = 32,
25420 .iv = "\x39\xf3\x3f\x2b\xf9\x64\x03\x33"
25421 "\xc7\xdd\x15\x91\xfb\xe6\xe2\x8d",
25422 .assoc = "\x49\xbc\xce\x92\x3d\x02\xad\xba"
25423 "\xe7\x13\x41\xb6\xf9\xaf\x13\x0f"
25424 "\xb2\x04\xf8\x7a\x5f\x30\x96\x5b"
25425 "\xdc\xbd\xdd\x44\x10\x25\x8f\x75"
25426 "\x75\x4d\xb9\x5b\x8e\x0a\x38\x13"
25427 "\x6f\x9f\x36\xe4\x3a\x3e\xac\xc9"
25428 "\x9d\x83\xde\xe5\x57\xfd\xe3\x0e"
25429 "\xb1\xa7\x1b\x44\x05\x67\xb7\x37",
25430 .alen = 64,
25431 .input = "\x28\xdd\xb9\x4a\x12\xc7\x0a\xe1"
25432 "\x58\x06\x1a\x9b\x8c\x67\xdf\xeb"
25433 "\x35\x35\x60\x9d\x06\x40\x65\xc1"
25434 "\x93\xe8\xb3\x82\x50\x29\xdd\xb5"
25435 "\x2b\xcb\xde\x18\x78\x6b\x42\xbe"
25436 "\x6d\x24\xd0\xb2\x7d\xd7\x08\x8f"
25437 "\x4a\x18\x98\xad\x8c\xf2\x97\xb4"
25438 "\xf4\x77\xe4\xbf\x41\x3b\xc4\x06"
25439 "\xce\x9e\x34\x81\xf0\x89\x11\x13"
25440 "\x02\x65\xa1\x7c\xdf\x07\x33\x06",
25441 .ilen = 80,
25442 .result = "\x58\x85\x5c\xfa\x81\xa1\x57\x40"
25443 "\x08\x4a\x6e\xda\xf8\x78\x44\x90"
25444 "\x7d\xb5\x7b\x9b\xa1\xd8\x76\x62"
25445 "\x0c\xc9\x15\x3b\xc7\x3c\x77\x2b"
25446 "\xf8\x78\xba\xa7\xa6\x0e\xbd\x52"
25447 "\x76\xa3\xdc\xbe\x6b\xa8\xb1\x2d"
25448 "\xa9\x1d\xd8\x4e\x31\x53\xab\x00"
25449 "\xa5\xa7\x01\x13\x04\x49\xf2\x04",
25450 .rlen = 64,
25451 }, {
25452 .key = "\x67\x4f\xeb\x62\xc5\x40\x01\xc7"
25453 "\x28\x80\x9a\xfe\xf6\x41\x74\x12"
25454 "\x48\x65\xfe\xbc\xe2\x80\x57\x68"
25455 "\x3c\xd4\x4d\x31\x7d\x54\x5f\xe1",
25456 .klen = 32,
25457 .iv = "\x76\x18\x79\xca\x09\xdf\xac\x4e"
25458 "\x48\xb7\xc7\x23\xf5\x0a\xa5\x93",
25459 .assoc = "\x85\xe1\x08\x32\x4d\x7e\x56\xd5"
25460 "\x68\xed\xf3\x47\xf3\xd3\xd6\x15"
25461 "\xdd\xc7\x04\xfe\x64\xd0\x18\x75"
25462 "\x9d\xeb\xbc\x1d\xea\x84\x2e\x4c"
25463 "\x83\xf9\xbe\x8a\xef\x1c\x4b\x10"
25464 "\x89\xaf\xcb\x4b\xfe\xe7\xc1\x58"
25465 "\xca\xea\xc6\x87\xc0\x53\x03\xd9"
25466 "\x80\xaa\xb2\x83\xff\xee\xa1\x6a"
25467 "\x04",
25468 .alen = 65,
25469 .input = "\x85\x39\x69\x35\xfb\xf9\xb0\xa6"
25470 "\x85\x43\x88\xd0\xd7\x78\x60\x19"
25471 "\x3e\x1f\xb1\xa4\xd6\xc5\x96\xec"
25472 "\xf7\x84\x85\xc7\x27\x0f\x74\x57"
25473 "\x28\x9e\xdd\x90\x3c\x43\x12\xc5"
25474 "\x51\x3d\x39\x8f\xa5\xf4\xe0\x0b"
25475 "\x57\x04\xf1\x6d\xfe\x9b\x84\x27"
25476 "\xe8\xeb\x4d\xda\x02\x0a\xc5\x49"
25477 "\x1a\x55\x5e\x50\x56\x4d\x94\xda"
25478 "\x20\xf8\x12\x54\x50\xb3\x11\xda"
25479 "\xed\x44\x27\x67\xd5\xd1\x8b\x4b"
25480 "\x38\x67\x56\x65\x59\xda\xe6\x97"
25481 "\x81\xae\x2f\x92\x3b\xae\x22\x1c"
25482 "\x91\x59\x38\x18\x00\xe8\xba\x92"
25483 "\x04\x19\x56\xdf\xb0\x82\xeb\x6f"
25484 "\x2e\xdb\x54\x3c\x4b\xbb\x60\x90"
25485 "\x4c\x50\x10\x62\xba\x7a\xb1\x68"
25486 "\x37\xd7\x87\x4e\xe4\x66\x09\x1f"
25487 "\xa5",
25488 .ilen = 145,
25489 .result = "\x94\xaa\x96\x9a\x91\x1d\x00\x5c"
25490 "\x88\x24\x20\x6b\xf2\x9c\x06\x96"
25491 "\xa7\x77\x87\x1f\xa6\x78\xf8\x7b"
25492 "\xcd\xf6\xf4\x13\xa1\x9b\x16\x02"
25493 "\x07\x24\xbf\xd5\x08\x20\xd0\x4f"
25494 "\x90\xb3\x70\x24\x2f\x51\xc7\xbb"
25495 "\xd6\x84\xc0\xef\x9a\xa8\xca\xcc"
25496 "\x74\xab\x97\x53\xfe\xd0\xdb\x37"
25497 "\x37\x6a\x0e\x9f\x3f\xa3\x2a\xe3"
25498 "\x1b\x34\x6d\x51\x72\x2b\x17\xe7"
25499 "\x4d\xaa\x2c\x18\xda\xa3\x33\x89"
25500 "\x2a\x9f\xf4\xd2\xed\x76\x3d\x3f"
25501 "\x3c\x15\x9d\x8e\x4f\x3c\x27\xb0"
25502 "\x42\x3f\x2f\x8a\xd4\xc2\x10\xb2"
25503 "\x27\x7f\xe3\x34\x80\x02\x49\x4b"
25504 "\x07\x68\x22\x2a\x88\x25\x53\xb2"
25505 "\x2f",
25506 .rlen = 129,
25507 }, {
25508 .key = "\xa3\x73\x24\x01\xd5\xbc\xaa\xe3"
25509 "\xa9\x5a\x4c\x90\xf0\x65\x37\x18"
25510 "\x72\x28\x0a\x40\xe7\x20\xd9\x82"
25511 "\xfe\x02\x2b\x09\x57\xb3\xfe\xb7",
25512 .klen = 32,
25513 .iv = "\xb3\x3d\xb3\x69\x19\x5b\x54\x6a"
25514 "\xc9\x91\x79\xb4\xef\x2e\x68\x99",
25515 .assoc = "\xc2\x06\x41\xd1\x5d\xfa\xff\xf1"
25516 "\xe9\xc7\xa5\xd9\xed\xf8\x98\x1b"
25517 "\x07\x89\x10\x82\x6a\x70\x9a\x8f"
25518 "\x5e\x19\x9b\xf5\xc5\xe3\xcd\x22"
25519 "\x92\xa5\xc2\xb8\x51\x2e\x5e\x0e"
25520 "\xa4\xbe\x5f\xb1\xc1\x90\xd7\xe7"
25521 "\xf7\x52\xae\x28\x29\xa8\x22\xa4"
25522 "\x4f\xae\x48\xc2\xfa\x75\x8b\x9e"
25523 "\xce\x83\x2a\x88\x07\x55\xbb\x89"
25524 "\xf6\xdf\xac\xdf\x83\x08\xbf\x7d"
25525 "\xac\x30\x8b\x8e\x02\xac\x00\xf1"
25526 "\x30\x46\xe1\xbc\x75\xbf\x49\xbb"
25527 "\x26\x4e\x29\xf0\x2f\x21\xc6\x13"
25528 "\x92\xd9\x3d\x11\xe4\x10\x00\x8e"
25529 "\xd4\xd4\x58\x65\xa6\x2b\xe3\x25"
25530 "\xb1\x8f\x15\x93\xe7\x71\xb9\x2c"
25531 "\x4b",
25532 .alen = 129,
25533 .input = "\x7d\xde\x53\x22\xe4\x23\x3b\x30"
25534 "\x78\xde\x35\x90\x7a\xd9\x0b\x93"
25535 "\xf6\x0e\x0b\xed\x40\xee\x10\x9c"
25536 "\x96\x3a\xd3\x34\xb2\xd0\x67\xcf"
25537 "\x63\x7f\x2d\x0c\xcf\x96\xec\x64"
25538 "\x1a\x87\xcc\x7d\x2c\x5e\x81\x4b"
25539 "\xd2\x8f\x4c\x7c\x00\xb1\xb4\xe0"
25540 "\x87\x4d\xb1\xbc\xd8\x78\x2c\x17"
25541 "\xf2\x3b\xd8\x28\x40\xe2\x76\xf6"
25542 "\x20\x13\x83\x46\xaf\xff\xe3\x0f"
25543 "\x72",
25544 .ilen = 81,
25545 .result = "\xd1\xcf\xd0\x39\xa1\x99\xa9\x78"
25546 "\x09\xfe\xd2\xfd\xec\xc1\xc9\x9d"
25547 "\xd2\x39\x93\xa3\xab\x18\x7a\x95"
25548 "\x8f\x24\xd3\xeb\x7b\xfa\xb5\xd8"
25549 "\x15\xd1\xc3\x04\x69\x32\xe3\x4d"
25550 "\xaa\xc2\x04\x8b\xf2\xfa\xdc\x4a"
25551 "\x02\xeb\xa8\x90\x03\xfd\xea\x97"
25552 "\x43\xaf\x2e\x92\xf8\x57\xc5\x6a"
25553 "\x00",
25554 .rlen = 65,
25555 }, {
25556 .key = "\xe0\x98\x5e\xa1\xe5\x38\x53\xff"
25557 "\x2a\x35\xfe\x21\xea\x8a\xfa\x1e"
25558 "\x9c\xea\x15\xc5\xec\xc0\x5b\x9b"
25559 "\xbf\x2f\x0a\xe1\x32\x12\x9d\x8e",
25560 .klen = 32,
25561 .iv = "\xef\x61\xed\x08\x29\xd7\xfd\x86"
25562 "\x4a\x6b\x2b\x46\xe9\x53\x2a\xa0",
25563 .assoc = "\xfe\x2a\x7b\x70\x6d\x75\xa7\x0d"
25564 "\x6a\xa2\x57\x6a\xe7\x1c\x5b\x21"
25565 "\x31\x4b\x1b\x07\x6f\x10\x1c\xa8"
25566 "\x20\x46\x7a\xce\x9f\x42\x6d\xf9",
25567 .alen = 32,
25568 .input = "\x5a\xcd\x8c\x57\xf2\x6a\xb6\xbe"
25569 "\x53\xc7\xaa\x9a\x60\x74\x9c\xc4"
25570 "\xa2\xc2\xd0\x6d\xe1\x03\x63\xdc"
25571 "\xbb\x51\x7e\x9c\x89\x73\xde\x4e"
25572 "\x24\xf8\x52\x7c\x15\x41\x0e\xba"
25573 "\x69\x0e\x36\x5f\x2f\x22\x8c",
25574 .ilen = 47,
25575 .result = "\x0d\xf4\x09\xd8\xb1\x14\x51\x94"
25576 "\x8a\xd8\x84\x8e\xe6\xe5\x8c\xa3"
25577 "\xfc\xfc\x9e\x28\xb0\xb8\xfc\xaf"
25578 "\x50\x52\xb1\xc4\x55\x59\x55\xaf",
25579 .rlen = 32,
25580 }, {
25581 .key = "\x1c\xbd\x98\x40\xf5\xb3\xfc\x1b"
25582 "\xaa\x0f\xb0\xb3\xe4\xae\xbc\x24"
25583 "\xc7\xac\x21\x49\xf1\x60\xdd\xb5"
25584 "\x80\x5d\xe9\xba\x0c\x71\x3c\x64",
25585 .klen = 32,
25586 .iv = "\x2c\x86\x26\xa8\x39\x52\xa6\xa2"
25587 "\xcb\x45\xdd\xd7\xe3\x77\xed\xa6",
25588 .assoc = "\x3b\x4f\xb5\x10\x7d\xf1\x50\x29"
25589 "\xeb\x7c\x0a\xfb\xe1\x40\x1e\x27"
25590 "\x5c\x0d\x27\x8b\x74\xb0\x9e\xc2"
25591 "\xe1\x74\x59\xa6\x79\xa1\x0c\xd0",
25592 .alen = 32,
25593 .input = "\x47\xd6\xce\x78\xd6\xbf\x4a\x51"
25594 "\xb8\xda\x92\x3c\xfd\xda\xac\x8e"
25595 "\x8d\x88\xd7\x4d\x90\xe5\xeb\xa1"
25596 "\xab\xd6\x7c\x76\xad\xea\x7d\x76"
25597 "\x53\xee\xb0\xcd\xd0\x02\xbb\x70"
25598 "\x5b\x6f\x7b\xe2\x8c\xe8",
25599 .ilen = 46,
25600 .result = "\x4a\x18\x43\x77\xc1\x90\xfa\xb0"
25601 "\x0b\xb2\x36\x20\xe0\x09\x4e\xa9"
25602 "\x26\xbe\xaa\xac\xb5\x58\x7e\xc8"
25603 "\x11\x7f\x90\x9c\x2f\xb8\xf4\x85",
25604 .rlen = 32,
25605 }, {
25606 .key = "\x59\xe1\xd2\xdf\x05\x2f\xa4\x37"
25607 "\x2b\xe9\x63\x44\xde\xd3\x7f\x2b"
25608 "\xf1\x6f\x2d\xcd\xf6\x00\x5f\xcf"
25609 "\x42\x8a\xc8\x92\xe6\xd0\xdc\x3b",
25610 .klen = 32,
25611 .iv = "\x68\xab\x60\x47\x49\xce\x4f\xbe"
25612 "\x4c\x20\x8f\x68\xdd\x9c\xb0\xac",
25613 .assoc = "\x77\x74\xee\xaf\x8d\x6d\xf9\x45"
25614 "\x6c\x56\xbc\x8d\xdb\x65\xe0\x2e"
25615 "\x86\xd0\x32\x0f\x79\x50\x20\xdb"
25616 "\xa2\xa1\x37\x7e\x53\x00\xab\xa6",
25617 .alen = 32,
25618 .input = "\x9f\xa9\x2b\xa4\x8f\x00\x05\x2b"
25619 "\xe7\x68\x81\x51\xbb\xfb\xdf\x60"
25620 "\xbb\xac\xe8\xc1\xdc\x68\xae\x68"
25621 "\x3a\xcd\x7a\x06\x49\xfe\x80\x11"
25622 "\xe6\x61\x99\xe2\xdd\xbe\x2c\xbf",
25623 .ilen = 40,
25624 .result = "\x86\x3d\x7d\x17\xd1\x0c\xa3\xcc"
25625 "\x8c\x8d\xe8\xb1\xda\x2e\x11\xaf"
25626 "\x51\x80\xb5\x30\xba\xf8\x00\xe2"
25627 "\xd3\xad\x6f\x75\x09\x18\x93\x5c",
25628 .rlen = 32,
25629 }, {
25630 .key = "\x96\x06\x0b\x7f\x15\xab\x4d\x53"
25631 "\xac\xc3\x15\xd6\xd8\xf7\x42\x31"
25632 "\x1b\x31\x38\x51\xfc\xa0\xe1\xe8"
25633 "\x03\xb8\xa7\x6b\xc0\x2f\x7b\x11",
25634 .klen = 32,
25635 .iv = "\xa5\xcf\x9a\xe6\x59\x4a\xf7\xd9"
25636 "\xcd\xfa\x41\xfa\xd7\xc0\x72\xb2",
25637 .assoc = "\xb4\x99\x28\x4e\x9d\xe8\xa2\x60"
25638 "\xed\x30\x6e\x1e\xd5\x89\xa3\x34"
25639 "\xb1\x92\x3e\x93\x7e\xf0\xa2\xf5"
25640 "\x64\xcf\x16\x57\x2d\x5f\x4a\x7d",
25641 .alen = 32,
25642 .input = "\xe2\x34\xfa\x25\xfd\xfb\x89\x5e"
25643 "\x5b\x4e\x0b\x15\x6e\x39\xfb\x0c"
25644 "\x73\xc7\xd9\x6b\xbe\xce\x9b\x70"
25645 "\xc7\x4f\x96\x16\x03\xfc\xea\xfb"
25646 "\x56",
25647 .ilen = 33,
25648 .result = "\xc3\x62\xb7\xb6\xe2\x87\x4c\xe7"
25649 "\x0d\x67\x9a\x43\xd4\x52\xd4\xb5"
25650 "\x7b\x43\xc1\xb5\xbf\x98\x82\xfc"
25651 "\x94\xda\x4e\x4d\xe4\x77\x32\x32",
25652 .rlen = 32,
25653 },
25654};
25655
25656/*
Stephan Mueller35351982015-09-21 20:59:56 +020025657 * All key wrapping test vectors taken from
25658 * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
25659 *
25660 * Note: as documented in keywrap.c, the ivout for encryption is the first
25661 * semiblock of the ciphertext from the test vector. For decryption, iv is
25662 * the first semiblock of the ciphertext.
25663 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025664static const struct cipher_testvec aes_kw_tv_template[] = {
Stephan Mueller35351982015-09-21 20:59:56 +020025665 {
25666 .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
25667 "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
25668 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025669 .ptext = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
Stephan Mueller35351982015-09-21 20:59:56 +020025670 "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025671 .ctext = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
Stephan Mueller35351982015-09-21 20:59:56 +020025672 "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025673 .len = 16,
25674 .iv = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
25675 .generates_iv = true,
Eric Biggers4074a772018-05-20 22:50:28 -070025676 }, {
25677 .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
25678 "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
25679 "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
25680 "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
25681 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025682 .ptext = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
Eric Biggers4074a772018-05-20 22:50:28 -070025683 "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025684 .ctext = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
Eric Biggers4074a772018-05-20 22:50:28 -070025685 "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025686 .len = 16,
Stephan Mueller35351982015-09-21 20:59:56 +020025687 .iv = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025688 .generates_iv = true,
Stephan Mueller35351982015-09-21 20:59:56 +020025689 },
25690};
25691
25692/*
Jarod Wilsone08ca2d2009-05-04 19:46:29 +080025693 * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
25694 * test vectors, taken from Appendix B.2.9 and B.2.10:
25695 * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
25696 * Only AES-128 is supported at this time.
25697 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080025698static const struct cprng_testvec ansi_cprng_aes_tv_template[] = {
Jarod Wilsone08ca2d2009-05-04 19:46:29 +080025699 {
25700 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25701 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25702 .klen = 16,
25703 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25704 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
25705 .dtlen = 16,
25706 .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
25707 "\x00\x00\x00\x00\x00\x00\x00\x00",
25708 .vlen = 16,
25709 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
25710 "\x84\x79\x66\x85\xc1\x2f\x76\x41",
25711 .rlen = 16,
25712 .loops = 1,
25713 }, {
25714 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25715 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25716 .klen = 16,
25717 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25718 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
25719 .dtlen = 16,
25720 .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
25721 "\x00\x00\x00\x00\x00\x00\x00\x00",
25722 .vlen = 16,
25723 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
25724 "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
25725 .rlen = 16,
25726 .loops = 1,
25727 }, {
25728 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25729 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25730 .klen = 16,
25731 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25732 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
25733 .dtlen = 16,
25734 .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
25735 "\x00\x00\x00\x00\x00\x00\x00\x00",
25736 .vlen = 16,
25737 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
25738 "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
25739 .rlen = 16,
25740 .loops = 1,
25741 }, {
25742 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25743 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25744 .klen = 16,
25745 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25746 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
25747 .dtlen = 16,
25748 .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
25749 "\x00\x00\x00\x00\x00\x00\x00\x00",
25750 .vlen = 16,
25751 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
25752 "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
25753 .rlen = 16,
25754 .loops = 1,
25755 }, {
25756 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
25757 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
25758 .klen = 16,
25759 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
25760 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
25761 .dtlen = 16,
25762 .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
25763 "\x00\x00\x00\x00\x00\x00\x00\x00",
25764 .vlen = 16,
25765 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
25766 "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
25767 .rlen = 16,
25768 .loops = 1,
25769 }, { /* Monte Carlo Test */
25770 .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
25771 "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
25772 .klen = 16,
25773 .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
25774 "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
25775 .dtlen = 16,
25776 .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
25777 "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
25778 .vlen = 16,
25779 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
25780 "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
25781 .rlen = 16,
25782 .loops = 10000,
25783 },
25784};
25785
Stephan Mueller3332ee22014-05-31 17:24:38 +020025786/*
25787 * SP800-90A DRBG Test vectors from
25788 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
25789 *
25790 * Test vectors for DRBG with prediction resistance. All types of DRBGs
25791 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
25792 * w/o personalization string, w/ and w/o additional input string).
25793 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080025794static const struct drbg_testvec drbg_pr_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020025795 {
25796 .entropy = (unsigned char *)
25797 "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
25798 "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
25799 "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
25800 "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
25801 .entropylen = 48,
25802 .entpra = (unsigned char *)
25803 "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
25804 "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
25805 "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
25806 .entprb = (unsigned char *)
25807 "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
25808 "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
25809 "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
25810 .entprlen = 32,
25811 .expected = (unsigned char *)
25812 "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
25813 "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
25814 "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
25815 "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
25816 "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
25817 "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
25818 "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
25819 "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
25820 "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
25821 "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
25822 "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
25823 .expectedlen = 128,
25824 .addtla = NULL,
25825 .addtlb = NULL,
25826 .addtllen = 0,
25827 .pers = NULL,
25828 .perslen = 0,
25829 }, {
25830 .entropy = (unsigned char *)
25831 "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
25832 "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
25833 "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
25834 "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
25835 .entropylen = 48,
25836 .entpra = (unsigned char *)
25837 "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
25838 "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
25839 "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
25840 .entprb = (unsigned char *)
25841 "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
25842 "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
25843 "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
25844 .entprlen = 32,
25845 .expected = (unsigned char *)
25846 "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
25847 "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
25848 "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
25849 "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
25850 "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
25851 "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
25852 "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
25853 "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
25854 "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
25855 "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
25856 "\x50\x47\xa3\x63\x81\x16\xaf\x19",
25857 .expectedlen = 128,
25858 .addtla = (unsigned char *)
25859 "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
25860 "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
25861 "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
25862 .addtlb = (unsigned char *)
25863 "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
25864 "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
25865 "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
25866 .addtllen = 32,
25867 .pers = NULL,
25868 .perslen = 0,
25869 }, {
25870 .entropy = (unsigned char *)
25871 "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
25872 "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
25873 "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
25874 "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
25875 .entropylen = 48,
25876 .entpra = (unsigned char *)
25877 "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
25878 "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
25879 "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
25880 .entprb = (unsigned char *)
25881 "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
25882 "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
25883 "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
25884 .entprlen = 32,
25885 .expected = (unsigned char *)
25886 "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
25887 "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
25888 "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
25889 "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
25890 "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
25891 "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
25892 "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
25893 "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
25894 "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
25895 "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
25896 "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
25897 .expectedlen = 128,
25898 .addtla = NULL,
25899 .addtlb = NULL,
25900 .addtllen = 0,
25901 .pers = (unsigned char *)
25902 "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
25903 "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
25904 "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
25905 .perslen = 32,
25906 }, {
25907 .entropy = (unsigned char *)
25908 "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
25909 "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
25910 "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
25911 "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
25912 .entropylen = 48,
25913 .entpra = (unsigned char *)
25914 "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
25915 "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
25916 "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
25917 .entprb = (unsigned char *)
25918 "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
25919 "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
25920 "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
25921 .entprlen = 32,
25922 .expected = (unsigned char *)
25923 "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
25924 "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
25925 "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
25926 "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
25927 "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
25928 "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
25929 "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
25930 "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
25931 "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
25932 "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
25933 "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
25934 .expectedlen = 128,
25935 .addtla = (unsigned char *)
25936 "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
25937 "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
25938 "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
25939 .addtlb = (unsigned char *)
25940 "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
25941 "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
25942 "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
25943 .addtllen = 32,
25944 .pers = (unsigned char *)
25945 "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
25946 "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
25947 "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
25948 .perslen = 32,
25949 },
25950};
25951
Eric Biggersb13b1e02017-02-24 15:46:59 -080025952static const struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020025953 {
25954 .entropy = (unsigned char *)
25955 "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
25956 "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
25957 "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
25958 "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
25959 .entropylen = 48,
25960 .entpra = (unsigned char *)
25961 "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
25962 "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
25963 "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
25964 .entprb = (unsigned char *)
25965 "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
25966 "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
25967 "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
25968 .entprlen = 32,
25969 .expected = (unsigned char *)
25970 "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
25971 "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
25972 "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
25973 "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
25974 "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
25975 "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
25976 "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
25977 "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
25978 "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
25979 "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
25980 "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
25981 .expectedlen = 128,
25982 .addtla = NULL,
25983 .addtlb = NULL,
25984 .addtllen = 0,
25985 .pers = NULL,
25986 .perslen = 0,
25987 }, {
25988 .entropy = (unsigned char *)
25989 "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
25990 "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
25991 "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
25992 "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
25993 .entropylen = 48,
25994 .entpra = (unsigned char *)
25995 "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
25996 "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
25997 "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
25998 .entprb = (unsigned char *)
25999 "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
26000 "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
26001 "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
26002 .entprlen = 32,
26003 .expected = (unsigned char *)
26004 "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
26005 "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
26006 "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
26007 "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
26008 "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
26009 "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
26010 "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
26011 "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
26012 "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
26013 "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
26014 "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
26015 .expectedlen = 128,
26016 .addtla = (unsigned char *)
26017 "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
26018 "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
26019 "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
26020 .addtlb = (unsigned char *)
26021 "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
26022 "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
26023 "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
26024 .addtllen = 32,
26025 .pers = NULL,
26026 .perslen = 0,
26027 }, {
26028 .entropy = (unsigned char *)
26029 "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
26030 "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
26031 "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
26032 "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
26033 .entropylen = 48,
26034 .entpra = (unsigned char *)
26035 "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
26036 "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
26037 "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
26038 .entprb = (unsigned char *)
26039 "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
26040 "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
26041 "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
26042 .entprlen = 32,
26043 .expected = (unsigned char *)
26044 "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
26045 "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
26046 "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
26047 "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
26048 "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
26049 "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
26050 "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
26051 "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
26052 "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
26053 "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
26054 "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
26055 .expectedlen = 128,
26056 .addtla = NULL,
26057 .addtlb = NULL,
26058 .addtllen = 0,
26059 .pers = (unsigned char *)
26060 "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
26061 "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
26062 "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
26063 .perslen = 32,
26064 }, {
26065 .entropy = (unsigned char *)
26066 "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
26067 "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
26068 "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
26069 "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
26070 .entropylen = 48,
26071 .entpra = (unsigned char *)
26072 "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
26073 "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
26074 "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
26075 .entprb = (unsigned char *)
26076 "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
26077 "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
26078 "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
26079 .entprlen = 32,
26080 .expected = (unsigned char *)
26081 "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
26082 "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
26083 "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
26084 "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
26085 "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
26086 "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
26087 "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
26088 "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
26089 "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
26090 "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
26091 "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
26092 .expectedlen = 128,
26093 .addtla = (unsigned char *)
26094 "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
26095 "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
26096 "\x86\x88\x55\x28\xc1\x69\xdd\x76",
26097 .addtlb = (unsigned char *)
26098 "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
26099 "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
26100 "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
26101 .addtllen = 32,
26102 .pers = (unsigned char *)
26103 "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
26104 "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
26105 "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
26106 .perslen = 32,
26107 },
26108};
26109
Eric Biggersb13b1e02017-02-24 15:46:59 -080026110static const struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020026111 {
26112 .entropy = (unsigned char *)
26113 "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
26114 "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
26115 .entropylen = 24,
26116 .entpra = (unsigned char *)
26117 "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
26118 "\xb4\xec\x80\xb1",
26119 .entprb = (unsigned char *)
26120 "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
26121 "\x28\x07\xeb\xc2",
26122 .entprlen = 16,
26123 .expected = (unsigned char *)
26124 "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
26125 "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
26126 "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
26127 "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
26128 "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
26129 "\x8a\xf1\x23\xa8",
26130 .expectedlen = 64,
26131 .addtla = NULL,
26132 .addtlb = NULL,
26133 .addtllen = 0,
26134 .pers = NULL,
26135 .perslen = 0,
26136 }, {
26137 .entropy = (unsigned char *)
26138 "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
26139 "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
26140 .entropylen = 24,
26141 .entpra = (unsigned char *)
26142 "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
26143 "\x67\xd1\x08\xf8",
26144 .entprb = (unsigned char *)
26145 "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
26146 "\xd4\xba\x04\x58",
26147 .entprlen = 16,
26148 .expected = (unsigned char *)
26149 "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
26150 "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
26151 "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
26152 "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
26153 "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
26154 "\xc1\x02\x41\x82",
26155 .expectedlen = 64,
26156 .addtla = (unsigned char *)
26157 "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
26158 "\xeb\xb3\x01\x76",
26159 .addtlb = (unsigned char *)
26160 "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
26161 "\xd0\x7f\xcc\x43",
26162 .addtllen = 16,
26163 .pers = NULL,
26164 .perslen = 0,
26165 }, {
26166 .entropy = (unsigned char *)
26167 "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
26168 "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
26169 .entropylen = 24,
26170 .entpra = (unsigned char *)
26171 "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
26172 "\xc3\x0f\xe3\xb0",
26173 .entprb = (unsigned char *)
26174 "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
26175 "\xd6\x9c\x9d\xe8",
26176 .entprlen = 16,
26177 .expected = (unsigned char *)
26178 "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
26179 "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
26180 "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
26181 "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
26182 "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
26183 "\x72\x82\x0c\xcf",
26184 .expectedlen = 64,
26185 .addtla = NULL,
26186 .addtlb = NULL,
26187 .addtllen = 0,
26188 .pers = (unsigned char *)
26189 "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
26190 "\x21\x52\xb3\xad",
26191 .perslen = 16,
26192 }, {
26193 .entropy = (unsigned char *)
26194 "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
26195 "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
26196 .entropylen = 24,
26197 .entpra = (unsigned char *)
26198 "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
26199 "\xc4\x2c\xe8\x10",
26200 .entprb = (unsigned char *)
26201 "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
26202 "\x08\xf7\xa5\x01",
26203 .entprlen = 16,
26204 .expected = (unsigned char *)
26205 "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
26206 "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
26207 "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
26208 "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
26209 "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
26210 "\x23\xc5\x1f\x68",
26211 .expectedlen = 64,
26212 .addtla = (unsigned char *)
26213 "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
26214 "\x23\x6d\xad\x1d",
26215 .addtlb = (unsigned char *)
26216 "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
26217 "\xbc\x59\x31\x8c",
26218 .addtllen = 16,
26219 .pers = (unsigned char *)
26220 "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
26221 "\x37\x3c\x5c\x0b",
26222 .perslen = 16,
26223 },
26224};
26225
26226/*
26227 * SP800-90A DRBG Test vectors from
26228 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
26229 *
26230 * Test vectors for DRBG without prediction resistance. All types of DRBGs
26231 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
26232 * w/o personalization string, w/ and w/o additional input string).
26233 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080026234static const struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020026235 {
26236 .entropy = (unsigned char *)
26237 "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
26238 "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
26239 "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
26240 "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
26241 .entropylen = 48,
26242 .expected = (unsigned char *)
26243 "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
26244 "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
26245 "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
26246 "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
26247 "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
26248 "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
26249 "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
26250 "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
26251 "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
26252 "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
26253 "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
26254 .expectedlen = 128,
26255 .addtla = NULL,
26256 .addtlb = NULL,
26257 .addtllen = 0,
26258 .pers = NULL,
26259 .perslen = 0,
26260 }, {
26261 .entropy = (unsigned char *)
26262 "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
26263 "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
26264 "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
26265 "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
26266 .entropylen = 48,
26267 .expected = (unsigned char *)
26268 "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
26269 "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
26270 "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
26271 "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
26272 "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
26273 "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
26274 "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
26275 "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
26276 "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
26277 "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
26278 "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
26279 .expectedlen = 128,
26280 .addtla = (unsigned char *)
26281 "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
26282 "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
26283 "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
26284 .addtlb = (unsigned char *)
26285 "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
26286 "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
26287 "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
26288 .addtllen = 32,
26289 .pers = NULL,
26290 .perslen = 0,
26291 }, {
26292 .entropy = (unsigned char *)
26293 "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
26294 "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
26295 "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
26296 "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
26297 .entropylen = 48,
26298 .expected = (unsigned char *)
26299 "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
26300 "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
26301 "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
26302 "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
26303 "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
26304 "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
26305 "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
26306 "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
26307 "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
26308 "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
26309 "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
26310 .expectedlen = 128,
26311 .addtla = NULL,
26312 .addtlb = NULL,
26313 .addtllen = 0,
26314 .pers = (unsigned char *)
26315 "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
26316 "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
26317 "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
26318 .perslen = 32,
26319 }, {
26320 .entropy = (unsigned char *)
26321 "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
26322 "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
26323 "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
26324 "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
26325 .entropylen = 48,
26326 .expected = (unsigned char *)
26327 "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
26328 "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
26329 "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
26330 "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
26331 "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
26332 "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
26333 "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
26334 "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
26335 "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
26336 "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
26337 "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
26338 .expectedlen = 128,
26339 .addtla = (unsigned char *)
26340 "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
26341 "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
26342 "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
26343 .addtlb = (unsigned char *)
26344 "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
26345 "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
26346 "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
26347 .addtllen = 32,
26348 .pers = (unsigned char *)
26349 "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
26350 "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
26351 "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
26352 .perslen = 32,
26353 },
26354};
26355
Eric Biggersb13b1e02017-02-24 15:46:59 -080026356static const struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020026357 {
26358 .entropy = (unsigned char *)
26359 "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
26360 "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
26361 "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
26362 "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
26363 .entropylen = 48,
26364 .expected = (unsigned char *)
26365 "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
26366 "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
26367 "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
26368 "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
26369 "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
26370 "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
26371 "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
26372 "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
26373 "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
26374 "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
26375 "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
26376 .expectedlen = 128,
26377 .addtla = NULL,
26378 .addtlb = NULL,
26379 .addtllen = 0,
26380 .pers = NULL,
26381 .perslen = 0,
26382 }, {
26383 .entropy = (unsigned char *)
26384 "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
26385 "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
26386 "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
26387 "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
26388 .entropylen = 48,
26389 .expected = (unsigned char *)
26390 "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
26391 "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
26392 "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
26393 "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
26394 "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
26395 "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
26396 "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
26397 "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
26398 "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
26399 "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
26400 "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
26401 .expectedlen = 128,
26402 .addtla = (unsigned char *)
26403 "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
26404 "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
26405 "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
26406 .addtlb = (unsigned char *)
26407 "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
26408 "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
26409 "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
26410 .addtllen = 32,
26411 .pers = NULL,
26412 .perslen = 0,
26413 }, {
26414 .entropy = (unsigned char *)
26415 "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
26416 "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
26417 "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
26418 "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
26419 .entropylen = 48,
26420 .expected = (unsigned char *)
26421 "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
26422 "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
26423 "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
26424 "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
26425 "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
26426 "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
26427 "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
26428 "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
26429 "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
26430 "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
26431 "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
26432 .expectedlen = 128,
26433 .addtla = NULL,
26434 .addtlb = NULL,
26435 .addtllen = 0,
26436 .pers = (unsigned char *)
26437 "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
26438 "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
26439 "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
26440 .perslen = 32,
26441 }, {
26442 .entropy = (unsigned char *)
26443 "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
26444 "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
26445 "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
26446 "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
26447 .entropylen = 48,
26448 .expected = (unsigned char *)
26449 "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
26450 "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
26451 "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
26452 "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
26453 "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
26454 "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
26455 "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
26456 "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
26457 "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
26458 "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
26459 "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
26460 .expectedlen = 128,
26461 .addtla = (unsigned char *)
26462 "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
26463 "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
26464 "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
26465 .addtlb = (unsigned char *)
26466 "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
26467 "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
26468 "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
26469 .addtllen = 32,
26470 .pers = (unsigned char *)
26471 "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
26472 "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
26473 "\x36\x60\x3b\xca\x37\xc9\xee\x29",
26474 .perslen = 32,
26475 },
26476};
26477
Eric Biggersb13b1e02017-02-24 15:46:59 -080026478static const struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020026479 {
26480 .entropy = (unsigned char *)
26481 "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
26482 "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
26483 "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
26484 "\xac\x9b\xbb\x00",
26485 .entropylen = 40,
26486 .expected = (unsigned char *)
26487 "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
26488 "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
26489 "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
26490 "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
26491 "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
26492 "\x9a\x9d\xf1\x0d",
26493 .expectedlen = 64,
26494 .addtla = NULL,
26495 .addtlb = NULL,
26496 .addtllen = 0,
26497 .pers = NULL,
26498 .perslen = 0,
26499 },
26500};
26501
Eric Biggersb13b1e02017-02-24 15:46:59 -080026502static const struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020026503 {
26504 .entropy = (unsigned char *)
26505 "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
26506 "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
26507 "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
26508 "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
26509 .entropylen = 48,
26510 .expected = (unsigned char *)
26511 "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
26512 "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
26513 "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
26514 "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
26515 "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
26516 "\xb4\xf0\x7e\x1d",
26517 .expectedlen = 64,
26518 .addtla = NULL,
26519 .addtlb = NULL,
26520 .addtllen = 0,
26521 .pers = NULL,
26522 .perslen = 0,
26523 },
26524};
26525
Eric Biggersb13b1e02017-02-24 15:46:59 -080026526static const struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020026527 {
26528 .entropy = (unsigned char *)
26529 "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
26530 "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
26531 .entropylen = 24,
26532 .expected = (unsigned char *)
26533 "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
26534 "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
26535 "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
26536 "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
26537 "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
26538 "\xcb\x2d\xd6\xb0",
26539 .expectedlen = 64,
26540 .addtla = NULL,
26541 .addtlb = NULL,
26542 .addtllen = 0,
26543 .pers = NULL,
26544 .perslen = 0,
26545 }, {
26546 .entropy = (unsigned char *)
26547 "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
26548 "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
26549 .entropylen = 24,
26550 .expected = (unsigned char *)
26551 "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
26552 "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
26553 "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
26554 "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
26555 "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
26556 "\xc3\xdf\xb3\x81",
26557 .expectedlen = 64,
26558 .addtla = (unsigned char *)
26559 "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
26560 "\x91\x4d\x81\x56",
26561 .addtlb = (unsigned char *)
26562 "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
26563 "\x4a\x55\xd1\xc6",
26564 .addtllen = 16,
26565 .pers = NULL,
26566 .perslen = 0,
26567 }, {
26568 .entropy = (unsigned char *)
26569 "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
26570 "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
26571 .entropylen = 24,
26572 .expected = (unsigned char *)
26573 "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
26574 "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
26575 "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
26576 "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
26577 "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
26578 "\x34\x30\x0c\x3d",
26579 .expectedlen = 64,
26580 .addtla = NULL,
26581 .addtlb = NULL,
26582 .addtllen = 0,
26583 .pers = (unsigned char *)
26584 "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
26585 "\x0b\xc6\x97\x54",
26586 .perslen = 16,
26587 }, {
26588 .entropy = (unsigned char *)
26589 "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
26590 "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
26591 .entropylen = 24,
26592 .expected = (unsigned char *)
26593 "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
26594 "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
26595 "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
26596 "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
26597 "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
26598 "\x2b\x49\x1e\x5c",
26599 .expectedlen = 64,
26600 .addtla = (unsigned char *)
26601 "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
26602 "\x44\x85\xe7\xfe",
26603 .addtlb = (unsigned char *)
26604 "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
26605 "\x82\x16\x62\x7f",
26606 .addtllen = 16,
26607 .pers = (unsigned char *)
26608 "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
26609 "\x8e\xcf\xe0\x02",
26610 .perslen = 16,
26611 },
26612};
26613
Herbert Xuda7f0332008-07-31 17:08:25 +080026614/* Cast5 test vectors from RFC 2144 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026615static const struct cipher_testvec cast5_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080026616 {
26617 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
26618 "\x23\x45\x67\x89\x34\x56\x78\x9a",
26619 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026620 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26621 .ctext = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
26622 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080026623 }, {
26624 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
26625 "\x23\x45",
26626 .klen = 10,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026627 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26628 .ctext = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
26629 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080026630 }, {
26631 .key = "\x01\x23\x45\x67\x12",
26632 .klen = 5,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026633 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
26634 .ctext = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
26635 .len = 8,
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026636 }, { /* Generated from TF test vectors */
26637 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26638 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26639 .klen = 16,
26640 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026641 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026642 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26643 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26644 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26645 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26646 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26647 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26648 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26649 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26650 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26651 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26652 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26653 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26654 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26655 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26656 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26657 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26658 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26659 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26660 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26661 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26662 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26663 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26664 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26665 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26666 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26667 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26668 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26669 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26670 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26671 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26672 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26673 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26674 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26675 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26676 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26677 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26678 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26679 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26680 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26681 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26682 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26683 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26684 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26685 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26686 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26687 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26688 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26689 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26690 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26691 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26692 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26693 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26694 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26695 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26696 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26697 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26698 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26699 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26700 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26701 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26702 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026703 .ctext = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026704 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
26705 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
26706 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
26707 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
26708 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
26709 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
26710 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
26711 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
26712 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
26713 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
26714 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
26715 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
26716 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
26717 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
26718 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
26719 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
26720 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
26721 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
26722 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
26723 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
26724 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
26725 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
26726 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
26727 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
26728 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
26729 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
26730 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
26731 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
26732 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
26733 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
26734 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
26735 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
26736 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
26737 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
26738 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
26739 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
26740 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
26741 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
26742 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
26743 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
26744 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
26745 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
26746 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
26747 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
26748 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
26749 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
26750 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
26751 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
26752 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
26753 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
26754 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
26755 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
26756 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
26757 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
26758 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
26759 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
26760 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
26761 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
26762 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
26763 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
26764 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026765 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030026766 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020026767 .np = 3,
26768 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080026769 },
26770};
26771
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026772static const struct cipher_testvec cast5_cbc_tv_template[] = {
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026773 { /* Generated from TF test vectors */
26774 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26775 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26776 .klen = 16,
26777 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026778 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026779 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
26780 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26781 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26782 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26783 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26784 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26785 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26786 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26787 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26788 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26789 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26790 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26791 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26792 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26793 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26794 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26795 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26796 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26797 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26798 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26799 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26800 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26801 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26802 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26803 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26804 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26805 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26806 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26807 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26808 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26809 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26810 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26811 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26812 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26813 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26814 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26815 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26816 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26817 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26818 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26819 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26820 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26821 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26822 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26823 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26824 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26825 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26826 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26827 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26828 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26829 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26830 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26831 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26832 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26833 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26834 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26835 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26836 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26837 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26838 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26839 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026840 .ctext = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026841 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
26842 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
26843 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
26844 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
26845 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
26846 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
26847 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
26848 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
26849 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
26850 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
26851 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
26852 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
26853 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
26854 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
26855 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
26856 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
26857 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
26858 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
26859 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
26860 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
26861 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
26862 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
26863 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
26864 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
26865 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
26866 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
26867 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
26868 "\x90\x12\x37\x49\x27\x98\x69\x18"
26869 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
26870 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
26871 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
26872 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
26873 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
26874 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
26875 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
26876 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
26877 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
26878 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
26879 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
26880 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
26881 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
26882 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
26883 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
26884 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
26885 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
26886 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
26887 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
26888 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
26889 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
26890 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
26891 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
26892 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
26893 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
26894 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
26895 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
26896 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
26897 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
26898 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
26899 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
26900 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
26901 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026902 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030026903 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020026904 .np = 3,
26905 .tap = { 496 - 20, 4, 16 },
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026906 },
26907};
26908
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026909static const struct cipher_testvec cast5_ctr_tv_template[] = {
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026910 { /* Generated from TF test vectors */
26911 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26912 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26913 .klen = 16,
26914 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026915 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026916 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030026917 "\x3A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026918 .ctext = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030026919 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26920 "\x0C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026921 .len = 17,
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030026922 }, { /* Generated from TF test vectors */
26923 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
26924 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
26925 .klen = 16,
26926 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026927 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030026928 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026929 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
26930 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
26931 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
26932 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
26933 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
26934 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
26935 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
26936 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
26937 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
26938 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
26939 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
26940 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
26941 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
26942 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
26943 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
26944 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
26945 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
26946 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
26947 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
26948 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
26949 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
26950 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
26951 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
26952 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
26953 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
26954 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
26955 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
26956 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
26957 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
26958 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
26959 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
26960 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
26961 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
26962 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
26963 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
26964 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
26965 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
26966 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
26967 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
26968 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
26969 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
26970 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
26971 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
26972 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
26973 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
26974 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
26975 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
26976 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
26977 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
26978 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
26979 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
26980 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
26981 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
26982 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
26983 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
26984 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
26985 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
26986 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
26987 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
26988 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070026989 .ctext = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020026990 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
26991 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
26992 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
26993 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
26994 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
26995 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
26996 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
26997 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
26998 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
26999 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
27000 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
27001 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
27002 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
27003 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
27004 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
27005 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
27006 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
27007 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
27008 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
27009 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
27010 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
27011 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
27012 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
27013 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
27014 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
27015 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
27016 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
27017 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
27018 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
27019 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
27020 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
27021 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
27022 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
27023 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
27024 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
27025 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
27026 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
27027 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
27028 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
27029 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
27030 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
27031 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
27032 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
27033 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
27034 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
27035 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
27036 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
27037 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
27038 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
27039 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
27040 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
27041 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
27042 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
27043 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
27044 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
27045 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
27046 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
27047 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
27048 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
27049 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
27050 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027051 .len = 496,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030027052 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020027053 .np = 3,
27054 .tap = { 496 - 20, 4, 16 },
Herbert Xuda7f0332008-07-31 17:08:25 +080027055 },
27056};
27057
27058/*
27059 * ARC4 test vectors from OpenSSL
27060 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027061static const struct cipher_testvec arc4_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027062 {
27063 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27064 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027065 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27066 .ctext = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
27067 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027068 }, {
27069 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27070 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027071 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
27072 .ctext = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
27073 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027074 }, {
27075 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
27076 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027077 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
27078 .ctext = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
27079 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027080 }, {
27081 .key = "\xef\x01\x23\x45",
27082 .klen = 4,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027083 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080027084 "\x00\x00\x00\x00\x00\x00\x00\x00"
27085 "\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027086 .ctext = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
Herbert Xuda7f0332008-07-31 17:08:25 +080027087 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
27088 "\x36\xb6\x78\x58",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027089 .len = 20,
Herbert Xuda7f0332008-07-31 17:08:25 +080027090 }, {
27091 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
27092 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027093 .ptext = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
Herbert Xuda7f0332008-07-31 17:08:25 +080027094 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
27095 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
27096 "\x12\x34\x56\x78",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027097 .ctext = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
Herbert Xuda7f0332008-07-31 17:08:25 +080027098 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
27099 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
27100 "\x40\x01\x1e\xcf",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027101 .len = 28,
Herbert Xuda7f0332008-07-31 17:08:25 +080027102 }, {
27103 .key = "\xef\x01\x23\x45",
27104 .klen = 4,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027105 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080027106 "\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027107 .ctext = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
Herbert Xuda7f0332008-07-31 17:08:25 +080027108 "\xbd\x61",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027109 .len = 10,
Herbert Xuda7f0332008-07-31 17:08:25 +080027110 }, {
27111 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
27112 "\x00\x00\x00\x00\x00\x00\x00\x00",
27113 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027114 .ptext = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
27115 .ctext = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
27116 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027117 },
27118};
27119
27120/*
27121 * TEA test vectors
27122 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027123static const struct cipher_testvec tea_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027124 {
27125 .key = zeroed_string,
27126 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027127 .ptext = zeroed_string,
27128 .ctext = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
27129 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027130 }, {
27131 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27132 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27133 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027134 .ptext = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27135 .ctext = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
27136 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027137 }, {
27138 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27139 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27140 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027141 .ptext = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
Herbert Xuda7f0332008-07-31 17:08:25 +080027142 "\x65\x73\x74\x5f\x76\x65\x63\x74",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027143 .ctext = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
Herbert Xuda7f0332008-07-31 17:08:25 +080027144 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027145 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027146 }, {
27147 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27148 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27149 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027150 .ptext = "\x54\x65\x61\x20\x69\x73\x20\x67"
Herbert Xuda7f0332008-07-31 17:08:25 +080027151 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27152 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27153 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027154 .ctext = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
Herbert Xuda7f0332008-07-31 17:08:25 +080027155 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
27156 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
27157 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027158 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080027159 }
27160};
27161
27162/*
27163 * XTEA test vectors
27164 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027165static const struct cipher_testvec xtea_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027166 {
27167 .key = zeroed_string,
27168 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027169 .ptext = zeroed_string,
27170 .ctext = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
27171 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027172 }, {
27173 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27174 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27175 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027176 .ptext = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27177 .ctext = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
27178 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027179 }, {
27180 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27181 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27182 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027183 .ptext = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
Herbert Xuda7f0332008-07-31 17:08:25 +080027184 "\x65\x73\x74\x5f\x76\x65\x63\x74",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027185 .ctext = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
Herbert Xuda7f0332008-07-31 17:08:25 +080027186 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027187 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027188 }, {
27189 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27190 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27191 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027192 .ptext = "\x54\x65\x61\x20\x69\x73\x20\x67"
Herbert Xuda7f0332008-07-31 17:08:25 +080027193 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27194 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27195 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027196 .ctext = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
Herbert Xuda7f0332008-07-31 17:08:25 +080027197 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
27198 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
27199 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027200 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080027201 }
27202};
27203
27204/*
27205 * KHAZAD test vectors.
27206 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027207static const struct cipher_testvec khazad_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027208 {
27209 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
27210 "\x00\x00\x00\x00\x00\x00\x00\x00",
27211 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027212 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
27213 .ctext = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
27214 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027215 }, {
27216 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
27217 "\x38\x38\x38\x38\x38\x38\x38\x38",
27218 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027219 .ptext = "\x38\x38\x38\x38\x38\x38\x38\x38",
27220 .ctext = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
27221 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027222 }, {
27223 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
27224 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27225 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027226 .ptext = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
27227 .ctext = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
27228 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027229 }, {
27230 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27231 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27232 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027233 .ptext = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27234 .ctext = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
27235 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027236 }, {
27237 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
27238 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
27239 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027240 .ptext = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
Herbert Xuda7f0332008-07-31 17:08:25 +080027241 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027242 .ctext = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +080027243 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027244 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027245 },
27246};
27247
27248/*
27249 * Anubis test vectors.
27250 */
27251
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027252static const struct cipher_testvec anubis_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027253 {
27254 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27255 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27256 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027257 .ptext = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
Herbert Xuda7f0332008-07-31 17:08:25 +080027258 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027259 .ctext = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
Herbert Xuda7f0332008-07-31 17:08:25 +080027260 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027261 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027262 }, {
27263
27264 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
27265 "\x03\x03\x03\x03\x03\x03\x03\x03"
27266 "\x03\x03\x03\x03",
27267 .klen = 20,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027268 .ptext = "\x03\x03\x03\x03\x03\x03\x03\x03"
Herbert Xuda7f0332008-07-31 17:08:25 +080027269 "\x03\x03\x03\x03\x03\x03\x03\x03",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027270 .ctext = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
Herbert Xuda7f0332008-07-31 17:08:25 +080027271 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027272 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027273 }, {
27274 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
27275 "\x24\x24\x24\x24\x24\x24\x24\x24"
27276 "\x24\x24\x24\x24\x24\x24\x24\x24"
27277 "\x24\x24\x24\x24",
27278 .klen = 28,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027279 .ptext = "\x24\x24\x24\x24\x24\x24\x24\x24"
Herbert Xuda7f0332008-07-31 17:08:25 +080027280 "\x24\x24\x24\x24\x24\x24\x24\x24",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027281 .ctext = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
Herbert Xuda7f0332008-07-31 17:08:25 +080027282 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027283 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027284 }, {
27285 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
27286 "\x25\x25\x25\x25\x25\x25\x25\x25"
27287 "\x25\x25\x25\x25\x25\x25\x25\x25"
27288 "\x25\x25\x25\x25\x25\x25\x25\x25",
27289 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027290 .ptext = "\x25\x25\x25\x25\x25\x25\x25\x25"
Herbert Xuda7f0332008-07-31 17:08:25 +080027291 "\x25\x25\x25\x25\x25\x25\x25\x25",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027292 .ctext = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
Herbert Xuda7f0332008-07-31 17:08:25 +080027293 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027294 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027295 }, {
27296 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27297 "\x35\x35\x35\x35\x35\x35\x35\x35"
27298 "\x35\x35\x35\x35\x35\x35\x35\x35"
27299 "\x35\x35\x35\x35\x35\x35\x35\x35"
27300 "\x35\x35\x35\x35\x35\x35\x35\x35",
27301 .klen = 40,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027302 .ptext = "\x35\x35\x35\x35\x35\x35\x35\x35"
Herbert Xuda7f0332008-07-31 17:08:25 +080027303 "\x35\x35\x35\x35\x35\x35\x35\x35",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027304 .ctext = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
Herbert Xuda7f0332008-07-31 17:08:25 +080027305 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027306 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027307 },
27308};
27309
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027310static const struct cipher_testvec anubis_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027311 {
27312 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27313 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
27314 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027315 .ptext = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
Herbert Xuda7f0332008-07-31 17:08:25 +080027316 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27317 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
27318 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027319 .ctext = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
Herbert Xuda7f0332008-07-31 17:08:25 +080027320 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
27321 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
27322 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027323 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080027324 }, {
27325 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
27326 "\x35\x35\x35\x35\x35\x35\x35\x35"
27327 "\x35\x35\x35\x35\x35\x35\x35\x35"
27328 "\x35\x35\x35\x35\x35\x35\x35\x35"
27329 "\x35\x35\x35\x35\x35\x35\x35\x35",
27330 .klen = 40,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027331 .ptext = "\x35\x35\x35\x35\x35\x35\x35\x35"
Herbert Xuda7f0332008-07-31 17:08:25 +080027332 "\x35\x35\x35\x35\x35\x35\x35\x35"
27333 "\x35\x35\x35\x35\x35\x35\x35\x35"
27334 "\x35\x35\x35\x35\x35\x35\x35\x35",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027335 .ctext = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
Herbert Xuda7f0332008-07-31 17:08:25 +080027336 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
27337 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
27338 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027339 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080027340 },
27341};
27342
27343/*
27344 * XETA test vectors
27345 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027346static const struct cipher_testvec xeta_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027347 {
27348 .key = zeroed_string,
27349 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027350 .ptext = zeroed_string,
27351 .ctext = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
27352 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027353 }, {
27354 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
27355 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
27356 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027357 .ptext = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
27358 .ctext = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
27359 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027360 }, {
27361 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
27362 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
27363 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027364 .ptext = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
Herbert Xuda7f0332008-07-31 17:08:25 +080027365 "\x65\x73\x74\x5f\x76\x65\x63\x74",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027366 .ctext = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
Herbert Xuda7f0332008-07-31 17:08:25 +080027367 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027368 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027369 }, {
27370 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
27371 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
27372 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027373 .ptext = "\x54\x65\x61\x20\x69\x73\x20\x67"
Herbert Xuda7f0332008-07-31 17:08:25 +080027374 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
27375 "\x79\x6f\x75\x21\x21\x21\x20\x72"
27376 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027377 .ctext = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
Herbert Xuda7f0332008-07-31 17:08:25 +080027378 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
27379 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
27380 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027381 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080027382 }
27383};
27384
27385/*
27386 * FCrypt test vectors
27387 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027388static const struct cipher_testvec fcrypt_pcbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027389 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
27390 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
27391 .klen = 8,
27392 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027393 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
27394 .ctext = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
27395 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027396 }, {
27397 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
27398 .klen = 8,
27399 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027400 .ptext = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
27401 .ctext = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
27402 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080027403 }, { /* From Arla */
27404 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
27405 .klen = 8,
27406 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027407 .ptext = "The quick brown fox jumps over the lazy dogs.\0\0",
27408 .ctext = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
Herbert Xuda7f0332008-07-31 17:08:25 +080027409 "\xee\xac\x98\x62\x44\x51\xe4\x84"
27410 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
27411 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
27412 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
27413 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027414 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080027415 }, {
27416 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27417 .klen = 8,
27418 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027419 .ptext = "The quick brown fox jumps over the lazy dogs.\0\0",
27420 .ctext = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
Herbert Xuda7f0332008-07-31 17:08:25 +080027421 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27422 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27423 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27424 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27425 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027426 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080027427 }, { /* split-page version */
27428 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27429 .klen = 8,
27430 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027431 .ptext = "The quick brown fox jumps over the lazy dogs.\0\0",
27432 .ctext = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
Herbert Xuda7f0332008-07-31 17:08:25 +080027433 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
27434 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
27435 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
27436 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
27437 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027438 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080027439 .np = 2,
27440 .tap = { 20, 28 },
27441 }
27442};
27443
27444/*
27445 * CAMELLIA test vectors.
27446 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027447static const struct cipher_testvec camellia_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027448 {
27449 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27450 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
27451 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027452 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Herbert Xuda7f0332008-07-31 17:08:25 +080027453 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027454 .ctext = "\x67\x67\x31\x38\x54\x96\x69\x73"
Herbert Xuda7f0332008-07-31 17:08:25 +080027455 "\x08\x57\x06\x56\x48\xea\xbe\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027456 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027457 }, {
27458 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27459 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27460 "\x00\x11\x22\x33\x44\x55\x66\x77",
27461 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027462 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Herbert Xuda7f0332008-07-31 17:08:25 +080027463 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027464 .ctext = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
Herbert Xuda7f0332008-07-31 17:08:25 +080027465 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027466 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027467 }, {
27468 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
27469 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
27470 "\x00\x11\x22\x33\x44\x55\x66\x77"
27471 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
27472 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027473 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Herbert Xuda7f0332008-07-31 17:08:25 +080027474 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027475 .ctext = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
Herbert Xuda7f0332008-07-31 17:08:25 +080027476 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027477 .len = 16,
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030027478 }, { /* Generated with Crypto++ */
Jussi Kivilinna08406052012-03-05 20:26:21 +020027479 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
27480 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
27481 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
27482 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
27483 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027484 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020027485 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27486 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27487 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27488 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030027489 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27490 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27491 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27492 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27493 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27494 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27495 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27496 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27497 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27498 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27499 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27500 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27501 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27502 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27503 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27504 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27505 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27506 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27507 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27508 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27509 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27510 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27511 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27512 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27513 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27514 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27515 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27516 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27517 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27518 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27519 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27520 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27521 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27522 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27523 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27524 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27525 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27526 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27527 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27528 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27529 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27530 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27531 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27532 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27533 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27534 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27535 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27536 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27537 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27538 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27539 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27540 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27541 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27542 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27543 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27544 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030027545 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27546 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27547 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27548 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27549 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27550 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27551 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27552 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27553 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27554 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27555 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27556 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27557 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27558 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27559 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27560 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27561 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27562 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27563 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27564 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27565 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27566 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27567 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27568 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27569 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27570 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27571 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27572 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27573 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27574 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27575 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27576 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27577 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27578 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27579 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27580 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
27581 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
27582 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
27583 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
27584 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
27585 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
27586 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
27587 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
27588 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
27589 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
27590 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
27591 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
27592 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
27593 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
27594 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
27595 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
27596 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
27597 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
27598 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
27599 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
27600 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
27601 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
27602 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
27603 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
27604 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
27605 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
27606 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
27607 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
27608 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
27609 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027610 .ctext = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
Jussi Kivilinna08406052012-03-05 20:26:21 +020027611 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
27612 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
27613 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
27614 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030027615 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
27616 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
27617 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
27618 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
27619 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
27620 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
27621 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
27622 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
27623 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
27624 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
27625 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
27626 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
27627 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
27628 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
27629 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
27630 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
27631 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
27632 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
27633 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
27634 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
27635 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
27636 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
27637 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
27638 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
27639 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
27640 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
27641 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
27642 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
27643 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
27644 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
27645 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
27646 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
27647 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
27648 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
27649 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
27650 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
27651 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
27652 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
27653 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
27654 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
27655 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
27656 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
27657 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
27658 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
27659 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
27660 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
27661 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
27662 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
27663 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
27664 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
27665 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
27666 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
27667 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
27668 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
27669 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
27670 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030027671 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
27672 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
27673 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
27674 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
27675 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
27676 "\xED\x28\x39\xE9\x63\xED\x41\x70"
27677 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
27678 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
27679 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
27680 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
27681 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
27682 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
27683 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
27684 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
27685 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
27686 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
27687 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
27688 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
27689 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
27690 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
27691 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
27692 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
27693 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
27694 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
27695 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
27696 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
27697 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
27698 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
27699 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
27700 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
27701 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
27702 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
27703 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
27704 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
27705 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
27706 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
27707 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
27708 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
27709 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
27710 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
27711 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
27712 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
27713 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
27714 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
27715 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
27716 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
27717 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
27718 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
27719 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
27720 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
27721 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
27722 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
27723 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
27724 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
27725 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
27726 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
27727 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
27728 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
27729 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
27730 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
27731 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
27732 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
27733 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
27734 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
27735 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027736 .len = 1008,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030027737 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020027738 .np = 3,
27739 .tap = { 1008 - 20, 4, 16 },
Jussi Kivilinna08406052012-03-05 20:26:21 +020027740 },
Herbert Xuda7f0332008-07-31 17:08:25 +080027741};
27742
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027743static const struct cipher_testvec camellia_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080027744 {
27745 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
27746 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
27747 .klen = 16,
27748 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
27749 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027750 .ptext = "Single block msg",
27751 .ctext = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +080027752 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027753 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080027754 }, {
27755 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
27756 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
27757 .klen = 16,
27758 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
27759 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027760 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080027761 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
27762 "\x10\x11\x12\x13\x14\x15\x16\x17"
27763 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027764 .ctext = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
Herbert Xuda7f0332008-07-31 17:08:25 +080027765 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
27766 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
27767 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027768 .len = 32,
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030027769 }, { /* Generated with Crypto++ */
Jussi Kivilinna08406052012-03-05 20:26:21 +020027770 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
27771 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
27772 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
27773 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
27774 .klen = 32,
27775 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
27776 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027777 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020027778 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
27779 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
27780 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
27781 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030027782 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
27783 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
27784 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
27785 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
27786 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
27787 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
27788 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
27789 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
27790 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
27791 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
27792 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
27793 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
27794 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
27795 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
27796 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
27797 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
27798 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
27799 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
27800 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
27801 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
27802 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
27803 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
27804 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
27805 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
27806 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
27807 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
27808 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
27809 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
27810 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
27811 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
27812 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
27813 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
27814 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
27815 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
27816 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
27817 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
27818 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
27819 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
27820 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
27821 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
27822 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
27823 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
27824 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
27825 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
27826 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
27827 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
27828 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
27829 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
27830 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
27831 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
27832 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
27833 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
27834 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
27835 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
27836 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
27837 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030027838 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
27839 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
27840 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
27841 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
27842 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
27843 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
27844 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
27845 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
27846 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
27847 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
27848 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
27849 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
27850 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
27851 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
27852 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
27853 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
27854 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
27855 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
27856 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
27857 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
27858 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
27859 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
27860 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
27861 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
27862 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
27863 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
27864 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
27865 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
27866 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
27867 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
27868 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
27869 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
27870 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
27871 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
27872 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
27873 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
27874 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
27875 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
27876 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
27877 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
27878 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
27879 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
27880 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
27881 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
27882 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
27883 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
27884 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
27885 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
27886 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
27887 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
27888 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
27889 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
27890 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
27891 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
27892 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
27893 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
27894 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
27895 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
27896 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
27897 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
27898 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
27899 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
27900 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
27901 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
27902 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070027903 .ctext = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
Jussi Kivilinna08406052012-03-05 20:26:21 +020027904 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
27905 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
27906 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
27907 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030027908 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
27909 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
27910 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
27911 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
27912 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
27913 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
27914 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
27915 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
27916 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
27917 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
27918 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
27919 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
27920 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
27921 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
27922 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
27923 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
27924 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
27925 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
27926 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
27927 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
27928 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
27929 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
27930 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
27931 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
27932 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
27933 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
27934 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
27935 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
27936 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
27937 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
27938 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
27939 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
27940 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
27941 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
27942 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
27943 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
27944 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
27945 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
27946 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
27947 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
27948 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
27949 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
27950 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
27951 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
27952 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
27953 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
27954 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
27955 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
27956 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
27957 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
27958 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
27959 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
27960 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
27961 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
27962 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
27963 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030027964 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
27965 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
27966 "\x21\x41\x56\x72\x13\xE1\x86\x07"
27967 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
27968 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
27969 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
27970 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
27971 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
27972 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
27973 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
27974 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
27975 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
27976 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
27977 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
27978 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
27979 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
27980 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
27981 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
27982 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
27983 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
27984 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
27985 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
27986 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
27987 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
27988 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
27989 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
27990 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
27991 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
27992 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
27993 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
27994 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
27995 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
27996 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
27997 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
27998 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
27999 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
28000 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
28001 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
28002 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
28003 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
28004 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
28005 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
28006 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
28007 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
28008 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
28009 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
28010 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
28011 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
28012 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
28013 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
28014 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
28015 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
28016 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
28017 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
28018 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
28019 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
28020 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
28021 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
28022 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
28023 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
28024 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
28025 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
28026 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
28027 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
28028 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028029 .len = 1008,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030028030 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020028031 .np = 3,
28032 .tap = { 1008 - 20, 4, 16 },
Jussi Kivilinna08406052012-03-05 20:26:21 +020028033 },
Herbert Xuda7f0332008-07-31 17:08:25 +080028034};
28035
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028036static const struct cipher_testvec camellia_ctr_tv_template[] = {
Jussi Kivilinna08406052012-03-05 20:26:21 +020028037 { /* Generated with Crypto++ */
28038 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28039 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28040 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28041 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28042 .klen = 32,
28043 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28044 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028045 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028046 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28047 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28048 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28049 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030028050 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28051 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28052 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28053 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28054 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28055 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28056 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28057 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28058 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28059 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28060 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28061 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28062 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28063 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28064 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28065 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28066 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28067 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28068 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28069 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28070 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28071 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28072 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28073 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28074 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28075 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28076 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28077 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28078 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28079 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28080 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28081 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28082 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28083 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28084 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28085 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28086 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28087 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28088 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28089 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28090 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28091 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28092 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28093 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28094 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28095 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28096 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28097 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28098 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28099 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28100 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28101 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28102 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28103 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28104 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28105 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28106 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028107 .ctext = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028108 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28109 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28110 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28111 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030028112 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
28113 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28114 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28115 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28116 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28117 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28118 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28119 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28120 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28121 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28122 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28123 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28124 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28125 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28126 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28127 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28128 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28129 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28130 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28131 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28132 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28133 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28134 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28135 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28136 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28137 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28138 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28139 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28140 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28141 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28142 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28143 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28144 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28145 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28146 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28147 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28148 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28149 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28150 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28151 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28152 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28153 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28154 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28155 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28156 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28157 "\x76\x44\x45\xF3\x24\x11\x57\x98"
28158 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28159 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28160 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28161 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28162 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28163 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28164 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28165 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28166 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28167 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28168 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028169 .len = 496,
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030028170 }, { /* Generated with Crypto++ */
Jussi Kivilinna08406052012-03-05 20:26:21 +020028171 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28172 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28173 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28174 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28175 .klen = 32,
28176 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
28177 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028178 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028179 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28180 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28181 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28182 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28183 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030028184 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28185 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28186 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28187 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28188 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28189 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28190 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28191 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28192 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28193 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28194 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28195 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28196 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28197 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28198 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28199 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28200 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28201 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28202 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28203 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28204 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28205 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28206 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28207 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28208 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28209 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28210 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28211 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28212 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28213 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28214 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28215 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28216 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28217 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28218 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28219 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28220 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28221 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28222 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28223 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28224 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28225 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28226 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28227 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28228 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28229 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28230 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28231 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28232 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28233 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28234 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28235 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28236 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28237 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28238 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
28239 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030028240 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28241 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28242 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28243 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28244 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28245 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28246 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28247 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28248 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28249 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28250 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28251 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28252 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28253 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28254 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28255 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28256 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28257 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28258 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28259 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28260 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28261 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28262 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28263 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28264 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28265 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28266 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28267 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28268 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28269 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28270 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28271 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28272 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28273 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28274 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28275 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28276 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28277 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28278 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28279 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28280 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28281 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28282 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28283 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28284 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28285 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28286 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28287 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28288 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28289 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28290 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28291 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28292 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28293 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28294 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28295 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28296 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28297 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28298 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28299 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28300 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28301 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28302 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28303 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
28304 "\xE4\x7B\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028305 .ctext = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028306 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
28307 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
28308 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
28309 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
28310 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030028311 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
28312 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
28313 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
28314 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
28315 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
28316 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
28317 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
28318 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
28319 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
28320 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
28321 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
28322 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
28323 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
28324 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
28325 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
28326 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
28327 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
28328 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
28329 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
28330 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
28331 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
28332 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
28333 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
28334 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
28335 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
28336 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
28337 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
28338 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
28339 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
28340 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
28341 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
28342 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
28343 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
28344 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
28345 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
28346 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
28347 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
28348 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
28349 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
28350 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
28351 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
28352 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
28353 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
28354 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
28355 "\x76\x44\x45\xF3\x24\x11\x57\x98"
28356 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
28357 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
28358 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
28359 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
28360 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
28361 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
28362 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
28363 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
28364 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
28365 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
28366 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030028367 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
28368 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
28369 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
28370 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
28371 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
28372 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
28373 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
28374 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
28375 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
28376 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
28377 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
28378 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
28379 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
28380 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
28381 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
28382 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
28383 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
28384 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
28385 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
28386 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
28387 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
28388 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
28389 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
28390 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
28391 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
28392 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
28393 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
28394 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
28395 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
28396 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
28397 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
28398 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
28399 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
28400 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
28401 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
28402 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
28403 "\x00\x70\x12\x56\x56\x50\xAD\x14"
28404 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
28405 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
28406 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
28407 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
28408 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
28409 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
28410 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
28411 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
28412 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
28413 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
28414 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
28415 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
28416 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
28417 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
28418 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
28419 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
28420 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
28421 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
28422 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
28423 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
28424 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
28425 "\x74\x28\x9D\x05\x30\x20\x62\x41"
28426 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
28427 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
28428 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
28429 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
28430 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
28431 "\xF1\x6B\xD9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028432 .len = 1011,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030028433 .also_non_np = 1,
28434 .np = 2,
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030028435 .tap = { 1011 - 16, 16 },
Jussi Kivilinna549595a2012-09-19 09:42:59 +030028436 }, { /* Generated with Crypto++ */
28437 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
28438 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
28439 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
28440 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
28441 .klen = 32,
28442 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
28443 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028444 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030028445 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
28446 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
28447 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
28448 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
28449 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
28450 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
28451 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
28452 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
28453 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
28454 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
28455 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
28456 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
28457 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
28458 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
28459 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
28460 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
28461 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
28462 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
28463 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
28464 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
28465 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
28466 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
28467 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
28468 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
28469 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
28470 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
28471 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
28472 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
28473 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
28474 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
28475 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
28476 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
28477 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
28478 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
28479 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
28480 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
28481 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
28482 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
28483 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
28484 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
28485 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
28486 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
28487 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
28488 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
28489 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
28490 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
28491 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
28492 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
28493 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
28494 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
28495 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
28496 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
28497 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
28498 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
28499 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
28500 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
28501 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
28502 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
28503 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
28504 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030028505 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
28506 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
28507 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
28508 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
28509 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
28510 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
28511 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
28512 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
28513 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
28514 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
28515 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
28516 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
28517 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
28518 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
28519 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
28520 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
28521 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
28522 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
28523 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
28524 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
28525 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
28526 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
28527 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
28528 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
28529 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
28530 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
28531 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
28532 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
28533 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
28534 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
28535 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
28536 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
28537 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
28538 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
28539 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
28540 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
28541 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
28542 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
28543 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
28544 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
28545 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
28546 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
28547 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
28548 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
28549 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
28550 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
28551 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
28552 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
28553 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
28554 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
28555 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
28556 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
28557 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
28558 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
28559 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
28560 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
28561 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
28562 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
28563 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
28564 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
28565 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
28566 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
28567 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
28568 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
28569 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028570 .ctext = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030028571 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
28572 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
28573 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
28574 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
28575 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
28576 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
28577 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
28578 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
28579 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
28580 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
28581 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
28582 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
28583 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
28584 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
28585 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
28586 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
28587 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
28588 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
28589 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
28590 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
28591 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
28592 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
28593 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
28594 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
28595 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
28596 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
28597 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
28598 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
28599 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
28600 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
28601 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
28602 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
28603 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
28604 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
28605 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
28606 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
28607 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
28608 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
28609 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
28610 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
28611 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
28612 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
28613 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
28614 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
28615 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
28616 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
28617 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
28618 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
28619 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
28620 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
28621 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
28622 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
28623 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
28624 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
28625 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
28626 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
28627 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
28628 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
28629 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
28630 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030028631 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
28632 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
28633 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
28634 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
28635 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
28636 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
28637 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
28638 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
28639 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
28640 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
28641 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
28642 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
28643 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
28644 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
28645 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
28646 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
28647 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
28648 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
28649 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
28650 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
28651 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
28652 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
28653 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
28654 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
28655 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
28656 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
28657 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
28658 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
28659 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
28660 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
28661 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
28662 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
28663 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
28664 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
28665 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
28666 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
28667 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
28668 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
28669 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
28670 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
28671 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
28672 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
28673 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
28674 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
28675 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
28676 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
28677 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
28678 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
28679 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
28680 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
28681 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
28682 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
28683 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
28684 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
28685 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
28686 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
28687 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
28688 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
28689 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
28690 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
28691 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
28692 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
28693 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
28694 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
28695 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028696 .len = 1008,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028697 },
28698};
28699
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028700static const struct cipher_testvec camellia_lrw_tv_template[] = {
Jussi Kivilinna08406052012-03-05 20:26:21 +020028701 /* Generated from AES-LRW test vectors */
28702 {
28703 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
28704 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
28705 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
28706 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
28707 .klen = 32,
28708 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
28709 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028710 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028711 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028712 .ctext = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028713 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028714 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028715 }, {
28716 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
28717 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
28718 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
28719 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
28720 .klen = 32,
28721 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
28722 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028723 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028724 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028725 .ctext = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028726 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028727 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028728 }, {
28729 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
28730 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
28731 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
28732 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
28733 .klen = 32,
28734 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
28735 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028736 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028737 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028738 .ctext = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028739 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028740 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028741 }, {
28742 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
28743 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
28744 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
28745 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
28746 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
28747 .klen = 40,
28748 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
28749 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028750 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028751 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028752 .ctext = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028753 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028754 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028755 }, {
28756 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
28757 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
28758 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
28759 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
28760 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
28761 .klen = 40,
28762 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
28763 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028764 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028765 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028766 .ctext = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028767 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028768 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028769 }, {
28770 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
28771 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
28772 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
28773 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
28774 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
28775 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
28776 .klen = 48,
28777 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
28778 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028779 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028780 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028781 .ctext = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028782 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028783 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028784 }, {
28785 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
28786 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
28787 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
28788 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
28789 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
28790 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
28791 .klen = 48,
28792 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
28793 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028794 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028795 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028796 .ctext = "\x04\xab\x28\x37\x31\x7a\x26\xab"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028797 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028798 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028799 }, {
28800 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
28801 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
28802 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
28803 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
28804 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
28805 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
28806 .klen = 48,
28807 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
28808 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028809 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028810 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
28811 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
28812 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
28813 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
28814 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
28815 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
28816 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
28817 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
28818 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
28819 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
28820 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
28821 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
28822 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
28823 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
28824 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
28825 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
28826 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
28827 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
28828 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
28829 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
28830 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
28831 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
28832 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
28833 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
28834 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
28835 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
28836 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
28837 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
28838 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
28839 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
28840 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
28841 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
28842 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
28843 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
28844 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
28845 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
28846 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
28847 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
28848 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
28849 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
28850 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
28851 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
28852 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
28853 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
28854 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
28855 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
28856 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
28857 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
28858 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
28859 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
28860 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
28861 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
28862 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
28863 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
28864 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
28865 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
28866 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
28867 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
28868 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
28869 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
28870 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
28871 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
28872 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028873 .ctext = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028874 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
28875 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
28876 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
28877 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
28878 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
28879 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
28880 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
28881 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
28882 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
28883 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
28884 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
28885 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
28886 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
28887 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
28888 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
28889 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
28890 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
28891 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
28892 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
28893 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
28894 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
28895 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
28896 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
28897 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
28898 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
28899 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
28900 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
28901 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
28902 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
28903 "\xed\x14\xa9\x57\x19\x63\x40\x04"
28904 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
28905 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
28906 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
28907 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
28908 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
28909 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
28910 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
28911 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
28912 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
28913 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
28914 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
28915 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
28916 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
28917 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
28918 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
28919 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
28920 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
28921 "\x35\xa5\x83\x04\x84\x01\x99\x56"
28922 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
28923 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
28924 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
28925 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
28926 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
28927 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
28928 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
28929 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
28930 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
28931 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
28932 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
28933 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
28934 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
28935 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
28936 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028937 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030028938 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020028939 .np = 3,
28940 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinna08406052012-03-05 20:26:21 +020028941 },
28942};
28943
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028944static const struct cipher_testvec camellia_xts_tv_template[] = {
Jussi Kivilinna08406052012-03-05 20:26:21 +020028945 /* Generated from AES-XTS test vectors */
28946 {
28947 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
28948 "\x00\x00\x00\x00\x00\x00\x00\x00"
28949 "\x00\x00\x00\x00\x00\x00\x00\x00"
28950 "\x00\x00\x00\x00\x00\x00\x00\x00",
28951 .klen = 32,
28952 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
28953 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028954 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028955 "\x00\x00\x00\x00\x00\x00\x00\x00"
28956 "\x00\x00\x00\x00\x00\x00\x00\x00"
28957 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028958 .ctext = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028959 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
28960 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
28961 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028962 .len = 32,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028963 }, {
28964 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
28965 "\x11\x11\x11\x11\x11\x11\x11\x11"
28966 "\x22\x22\x22\x22\x22\x22\x22\x22"
28967 "\x22\x22\x22\x22\x22\x22\x22\x22",
28968 .klen = 32,
28969 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
28970 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028971 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028972 "\x44\x44\x44\x44\x44\x44\x44\x44"
28973 "\x44\x44\x44\x44\x44\x44\x44\x44"
28974 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028975 .ctext = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028976 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
28977 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
28978 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028979 .len = 32,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028980 }, {
28981 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
28982 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
28983 "\x22\x22\x22\x22\x22\x22\x22\x22"
28984 "\x22\x22\x22\x22\x22\x22\x22\x22",
28985 .klen = 32,
28986 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
28987 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028988 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028989 "\x44\x44\x44\x44\x44\x44\x44\x44"
28990 "\x44\x44\x44\x44\x44\x44\x44\x44"
28991 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028992 .ctext = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
Jussi Kivilinna08406052012-03-05 20:26:21 +020028993 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
28994 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
28995 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070028996 .len = 32,
Jussi Kivilinna08406052012-03-05 20:26:21 +020028997 }, {
28998 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
28999 "\x23\x53\x60\x28\x74\x71\x35\x26"
29000 "\x31\x41\x59\x26\x53\x58\x97\x93"
29001 "\x23\x84\x62\x64\x33\x83\x27\x95",
29002 .klen = 32,
29003 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
29004 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029005 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029006 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29007 "\x10\x11\x12\x13\x14\x15\x16\x17"
29008 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29009 "\x20\x21\x22\x23\x24\x25\x26\x27"
29010 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29011 "\x30\x31\x32\x33\x34\x35\x36\x37"
29012 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29013 "\x40\x41\x42\x43\x44\x45\x46\x47"
29014 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29015 "\x50\x51\x52\x53\x54\x55\x56\x57"
29016 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29017 "\x60\x61\x62\x63\x64\x65\x66\x67"
29018 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29019 "\x70\x71\x72\x73\x74\x75\x76\x77"
29020 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29021 "\x80\x81\x82\x83\x84\x85\x86\x87"
29022 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29023 "\x90\x91\x92\x93\x94\x95\x96\x97"
29024 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29025 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29026 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29027 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29028 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29029 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29030 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29031 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29032 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29033 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29034 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29035 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29036 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29037 "\x00\x01\x02\x03\x04\x05\x06\x07"
29038 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29039 "\x10\x11\x12\x13\x14\x15\x16\x17"
29040 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29041 "\x20\x21\x22\x23\x24\x25\x26\x27"
29042 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29043 "\x30\x31\x32\x33\x34\x35\x36\x37"
29044 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29045 "\x40\x41\x42\x43\x44\x45\x46\x47"
29046 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29047 "\x50\x51\x52\x53\x54\x55\x56\x57"
29048 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29049 "\x60\x61\x62\x63\x64\x65\x66\x67"
29050 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29051 "\x70\x71\x72\x73\x74\x75\x76\x77"
29052 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29053 "\x80\x81\x82\x83\x84\x85\x86\x87"
29054 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29055 "\x90\x91\x92\x93\x94\x95\x96\x97"
29056 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29057 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29058 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29059 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29060 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29061 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29062 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29063 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29064 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29065 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29066 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29067 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29068 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029069 .ctext = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029070 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
29071 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
29072 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
29073 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
29074 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
29075 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
29076 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
29077 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
29078 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
29079 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
29080 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
29081 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
29082 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
29083 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
29084 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
29085 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
29086 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
29087 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
29088 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
29089 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
29090 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
29091 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
29092 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
29093 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
29094 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
29095 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
29096 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
29097 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
29098 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
29099 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
29100 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
29101 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
29102 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
29103 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
29104 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
29105 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
29106 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
29107 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
29108 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
29109 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
29110 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
29111 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
29112 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
29113 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
29114 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
29115 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
29116 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
29117 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
29118 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
29119 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
29120 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
29121 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
29122 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
29123 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
29124 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
29125 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
29126 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
29127 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
29128 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
29129 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
29130 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
29131 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
29132 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029133 .len = 512,
Jussi Kivilinna08406052012-03-05 20:26:21 +020029134 }, {
29135 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
29136 "\x23\x53\x60\x28\x74\x71\x35\x26"
29137 "\x62\x49\x77\x57\x24\x70\x93\x69"
29138 "\x99\x59\x57\x49\x66\x96\x76\x27"
29139 "\x31\x41\x59\x26\x53\x58\x97\x93"
29140 "\x23\x84\x62\x64\x33\x83\x27\x95"
29141 "\x02\x88\x41\x97\x16\x93\x99\x37"
29142 "\x51\x05\x82\x09\x74\x94\x45\x92",
29143 .klen = 64,
29144 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
29145 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029146 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029147 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29148 "\x10\x11\x12\x13\x14\x15\x16\x17"
29149 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29150 "\x20\x21\x22\x23\x24\x25\x26\x27"
29151 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29152 "\x30\x31\x32\x33\x34\x35\x36\x37"
29153 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29154 "\x40\x41\x42\x43\x44\x45\x46\x47"
29155 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29156 "\x50\x51\x52\x53\x54\x55\x56\x57"
29157 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29158 "\x60\x61\x62\x63\x64\x65\x66\x67"
29159 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29160 "\x70\x71\x72\x73\x74\x75\x76\x77"
29161 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29162 "\x80\x81\x82\x83\x84\x85\x86\x87"
29163 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29164 "\x90\x91\x92\x93\x94\x95\x96\x97"
29165 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29166 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29167 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29168 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29169 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29170 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29171 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29172 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29173 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29174 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29175 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29176 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29177 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29178 "\x00\x01\x02\x03\x04\x05\x06\x07"
29179 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29180 "\x10\x11\x12\x13\x14\x15\x16\x17"
29181 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29182 "\x20\x21\x22\x23\x24\x25\x26\x27"
29183 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29184 "\x30\x31\x32\x33\x34\x35\x36\x37"
29185 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29186 "\x40\x41\x42\x43\x44\x45\x46\x47"
29187 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29188 "\x50\x51\x52\x53\x54\x55\x56\x57"
29189 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29190 "\x60\x61\x62\x63\x64\x65\x66\x67"
29191 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29192 "\x70\x71\x72\x73\x74\x75\x76\x77"
29193 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29194 "\x80\x81\x82\x83\x84\x85\x86\x87"
29195 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29196 "\x90\x91\x92\x93\x94\x95\x96\x97"
29197 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29198 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29199 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29200 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29201 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29202 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29203 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29204 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29205 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29206 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29207 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29208 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29209 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029210 .ctext = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
Jussi Kivilinna08406052012-03-05 20:26:21 +020029211 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
29212 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
29213 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
29214 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
29215 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
29216 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
29217 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
29218 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
29219 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
29220 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
29221 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
29222 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
29223 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
29224 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
29225 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
29226 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
29227 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
29228 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
29229 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
29230 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
29231 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
29232 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
29233 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
29234 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
29235 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
29236 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
29237 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
29238 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
29239 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
29240 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
29241 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
29242 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
29243 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
29244 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
29245 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
29246 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
29247 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
29248 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
29249 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
29250 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
29251 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
29252 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
29253 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
29254 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
29255 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
29256 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
29257 "\x21\x17\xf8\x59\x15\x24\x64\x22"
29258 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
29259 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
29260 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
29261 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
29262 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
29263 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
29264 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
29265 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
29266 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
29267 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
29268 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
29269 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
29270 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
29271 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
29272 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
29273 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029274 .len = 512,
Jussi Kivilinnaf44d83d2012-09-19 09:42:49 +030029275 .also_non_np = 1,
Ard Biesheuvel3b9b8fe2014-07-27 19:18:50 +020029276 .np = 3,
29277 .tap = { 512 - 20, 4, 16 },
Jussi Kivilinna08406052012-03-05 20:26:21 +020029278 },
Herbert Xuda7f0332008-07-31 17:08:25 +080029279};
29280
29281/*
29282 * SEED test vectors
29283 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029284static const struct cipher_testvec seed_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080029285 {
29286 .key = zeroed_string,
29287 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029288 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080029289 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029290 .ctext = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
Herbert Xuda7f0332008-07-31 17:08:25 +080029291 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029292 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080029293 }, {
29294 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
29295 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
29296 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029297 .ptext = zeroed_string,
29298 .ctext = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
Herbert Xuda7f0332008-07-31 17:08:25 +080029299 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029300 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080029301 }, {
29302 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
29303 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
29304 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029305 .ptext = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080029306 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029307 .ctext = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
Herbert Xuda7f0332008-07-31 17:08:25 +080029308 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029309 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080029310 }, {
29311 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
29312 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
29313 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029314 .ptext = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
Herbert Xuda7f0332008-07-31 17:08:25 +080029315 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029316 .ctext = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080029317 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029318 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080029319 }
29320};
29321
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029322static const struct cipher_testvec salsa20_stream_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080029323 /*
29324 * Testvectors from verified.test-vectors submitted to ECRYPT.
29325 * They are truncated to size 39, 64, 111, 129 to test a variety
29326 * of input length.
29327 */
29328 { /* Set 3, vector 0 */
29329 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
29330 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
29331 .klen = 16,
29332 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029333 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080029334 "\x00\x00\x00\x00\x00\x00\x00\x00"
29335 "\x00\x00\x00\x00\x00\x00\x00\x00"
29336 "\x00\x00\x00\x00\x00\x00\x00\x00"
29337 "\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029338 .ctext = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
Herbert Xuda7f0332008-07-31 17:08:25 +080029339 "\x68\x02\x41\x0C\x68\x86\x88\x89"
29340 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
29341 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
29342 "\x58\x3F\x52\x79\x70\xEB\xC1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029343 .len = 39,
Herbert Xuda7f0332008-07-31 17:08:25 +080029344 }, { /* Set 5, vector 0 */
29345 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
29346 "\x00\x00\x00\x00\x00\x00\x00\x00",
29347 .klen = 16,
29348 .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029349 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080029350 "\x00\x00\x00\x00\x00\x00\x00\x00"
29351 "\x00\x00\x00\x00\x00\x00\x00\x00"
29352 "\x00\x00\x00\x00\x00\x00\x00\x00"
29353 "\x00\x00\x00\x00\x00\x00\x00\x00"
29354 "\x00\x00\x00\x00\x00\x00\x00\x00"
29355 "\x00\x00\x00\x00\x00\x00\x00\x00"
29356 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029357 .ctext = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
Herbert Xuda7f0332008-07-31 17:08:25 +080029358 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
29359 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
29360 "\x46\x26\xBF\x44\x3F\x21\x97\x76"
29361 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
29362 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
29363 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
29364 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029365 .len = 64,
Herbert Xuda7f0332008-07-31 17:08:25 +080029366 }, { /* Set 3, vector 27 */
29367 .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
29368 "\x23\x24\x25\x26\x27\x28\x29\x2A"
29369 "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
29370 "\x33\x34\x35\x36\x37\x38\x39\x3A",
29371 .klen = 32,
29372 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029373 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080029374 "\x00\x00\x00\x00\x00\x00\x00\x00"
29375 "\x00\x00\x00\x00\x00\x00\x00\x00"
29376 "\x00\x00\x00\x00\x00\x00\x00\x00"
29377 "\x00\x00\x00\x00\x00\x00\x00\x00"
29378 "\x00\x00\x00\x00\x00\x00\x00\x00"
29379 "\x00\x00\x00\x00\x00\x00\x00\x00"
29380 "\x00\x00\x00\x00\x00\x00\x00\x00"
29381 "\x00\x00\x00\x00\x00\x00\x00\x00"
29382 "\x00\x00\x00\x00\x00\x00\x00\x00"
29383 "\x00\x00\x00\x00\x00\x00\x00\x00"
29384 "\x00\x00\x00\x00\x00\x00\x00\x00"
29385 "\x00\x00\x00\x00\x00\x00\x00\x00"
29386 "\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029387 .ctext = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
Herbert Xuda7f0332008-07-31 17:08:25 +080029388 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
29389 "\x87\xD9\x47\xF8\x28\x91\x35\x98"
29390 "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
29391 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
29392 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
29393 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
29394 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
29395 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
29396 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
29397 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
29398 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
29399 "\x95\x46\x45\x54\xE9\x75\x03\x08"
29400 "\x44\xAF\xE5\x8A\x81\x12\x09",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029401 .len = 111,
Herbert Xuda7f0332008-07-31 17:08:25 +080029402 }, { /* Set 5, vector 27 */
29403 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
29404 "\x00\x00\x00\x00\x00\x00\x00\x00"
29405 "\x00\x00\x00\x00\x00\x00\x00\x00"
29406 "\x00\x00\x00\x00\x00\x00\x00\x00",
29407 .klen = 32,
29408 .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029409 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080029410 "\x00\x00\x00\x00\x00\x00\x00\x00"
29411 "\x00\x00\x00\x00\x00\x00\x00\x00"
29412 "\x00\x00\x00\x00\x00\x00\x00\x00"
29413 "\x00\x00\x00\x00\x00\x00\x00\x00"
29414 "\x00\x00\x00\x00\x00\x00\x00\x00"
29415 "\x00\x00\x00\x00\x00\x00\x00\x00"
29416 "\x00\x00\x00\x00\x00\x00\x00\x00"
29417 "\x00\x00\x00\x00\x00\x00\x00\x00"
29418 "\x00\x00\x00\x00\x00\x00\x00\x00"
29419 "\x00\x00\x00\x00\x00\x00\x00\x00"
29420 "\x00\x00\x00\x00\x00\x00\x00\x00"
29421 "\x00\x00\x00\x00\x00\x00\x00\x00"
29422 "\x00\x00\x00\x00\x00\x00\x00\x00"
29423 "\x00\x00\x00\x00\x00\x00\x00\x00"
29424 "\x00\x00\x00\x00\x00\x00\x00\x00"
29425 "\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029426 .ctext = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
Herbert Xuda7f0332008-07-31 17:08:25 +080029427 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
29428 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
29429 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
29430 "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
29431 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
29432 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
29433 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
29434 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
29435 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
29436 "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
29437 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
29438 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
29439 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
29440 "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
29441 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
29442 "\x5A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029443 .len = 129,
Herbert Xuda7f0332008-07-31 17:08:25 +080029444 }, { /* large test vector generated using Crypto++ */
29445 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
29446 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29447 "\x10\x11\x12\x13\x14\x15\x16\x17"
29448 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
29449 .klen = 32,
29450 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
29451 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029452 .ptext =
Herbert Xuda7f0332008-07-31 17:08:25 +080029453 "\x00\x01\x02\x03\x04\x05\x06\x07"
29454 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
29455 "\x10\x11\x12\x13\x14\x15\x16\x17"
29456 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
29457 "\x20\x21\x22\x23\x24\x25\x26\x27"
29458 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
29459 "\x30\x31\x32\x33\x34\x35\x36\x37"
29460 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
29461 "\x40\x41\x42\x43\x44\x45\x46\x47"
29462 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
29463 "\x50\x51\x52\x53\x54\x55\x56\x57"
29464 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
29465 "\x60\x61\x62\x63\x64\x65\x66\x67"
29466 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
29467 "\x70\x71\x72\x73\x74\x75\x76\x77"
29468 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
29469 "\x80\x81\x82\x83\x84\x85\x86\x87"
29470 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
29471 "\x90\x91\x92\x93\x94\x95\x96\x97"
29472 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
29473 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
29474 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
29475 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
29476 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
29477 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
29478 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
29479 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
29480 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
29481 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
29482 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
29483 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
29484 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
29485 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
29486 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
29487 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
29488 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
29489 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
29490 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
29491 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
29492 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
29493 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
29494 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
29495 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
29496 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
29497 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
29498 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
29499 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
29500 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
29501 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
29502 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
29503 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
29504 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
29505 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
29506 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
29507 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
29508 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
29509 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
29510 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
29511 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
29512 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
29513 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
29514 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
29515 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
29516 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
29517 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
29518 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
29519 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
29520 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
29521 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
29522 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
29523 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
29524 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
29525 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
29526 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
29527 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
29528 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
29529 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
29530 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
29531 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
29532 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
29533 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
29534 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
29535 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
29536 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
29537 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
29538 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
29539 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
29540 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
29541 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
29542 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
29543 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
29544 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
29545 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
29546 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
29547 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
29548 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
29549 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
29550 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
29551 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
29552 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
29553 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
29554 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
29555 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
29556 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
29557 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
29558 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
29559 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
29560 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
29561 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
29562 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
29563 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
29564 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
29565 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
29566 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
29567 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
29568 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
29569 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
29570 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
29571 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
29572 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
29573 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
29574 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
29575 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
29576 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
29577 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
29578 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
29579 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
29580 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
29581 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
29582 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
29583 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
29584 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
29585 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
29586 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
29587 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
29588 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
29589 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
29590 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
29591 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
29592 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
29593 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
29594 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
29595 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
29596 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
29597 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
29598 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
29599 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
29600 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
29601 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
29602 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
29603 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
29604 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
29605 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
29606 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
29607 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
29608 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
29609 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
29610 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
29611 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
29612 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
29613 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
29614 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
29615 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
29616 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
29617 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
29618 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
29619 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
29620 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
29621 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
29622 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
29623 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
29624 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
29625 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
29626 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
29627 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
29628 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
29629 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
29630 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
29631 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
29632 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
29633 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
29634 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
29635 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
29636 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
29637 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
29638 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
29639 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
29640 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
29641 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
29642 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
29643 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
29644 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
29645 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
29646 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
29647 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
29648 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
29649 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
29650 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
29651 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
29652 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
29653 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
29654 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
29655 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
29656 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
29657 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
29658 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
29659 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
29660 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
29661 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
29662 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
29663 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
29664 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
29665 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
29666 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
29667 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
29668 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
29669 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
29670 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
29671 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
29672 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
29673 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
29674 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
29675 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
29676 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
29677 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
29678 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
29679 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
29680 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
29681 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
29682 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
29683 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
29684 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
29685 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
29686 "\x38\x47\x56\x65\x74\x83\x92\xa1"
29687 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
29688 "\x28\x37\x46\x55\x64\x73\x82\x91"
29689 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
29690 "\x18\x27\x36\x45\x54\x63\x72\x81"
29691 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
29692 "\x08\x17\x26\x35\x44\x53\x62\x71"
29693 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
29694 "\xf8\x07\x16\x25\x34\x43\x52\x61"
29695 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
29696 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
29697 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
29698 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
29699 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
29700 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
29701 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
29702 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
29703 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
29704 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
29705 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
29706 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
29707 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
29708 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
29709 "\x00\x11\x22\x33\x44\x55\x66\x77"
29710 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
29711 "\x10\x21\x32\x43\x54\x65\x76\x87"
29712 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
29713 "\x20\x31\x42\x53\x64\x75\x86\x97"
29714 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
29715 "\x30\x41\x52\x63\x74\x85\x96\xa7"
29716 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
29717 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
29718 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
29719 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
29720 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
29721 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
29722 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
29723 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
29724 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
29725 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
29726 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
29727 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
29728 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
29729 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
29730 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
29731 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
29732 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
29733 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
29734 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
29735 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
29736 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
29737 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
29738 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
29739 "\xf0\x01\x12\x23\x34\x45\x56\x67"
29740 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
29741 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
29742 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
29743 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
29744 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
29745 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
29746 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
29747 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
29748 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
29749 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
29750 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
29751 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
29752 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
29753 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
29754 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
29755 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
29756 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
29757 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
29758 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
29759 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
29760 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
29761 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
29762 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
29763 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
29764 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
29765 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
29766 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
29767 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
29768 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
29769 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
29770 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
29771 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
29772 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
29773 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
29774 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
29775 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
29776 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
29777 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
29778 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
29779 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
29780 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
29781 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
29782 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
29783 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
29784 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
29785 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
29786 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
29787 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
29788 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
29789 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
29790 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
29791 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
29792 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
29793 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
29794 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
29795 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
29796 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
29797 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
29798 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
29799 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
29800 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
29801 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
29802 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
29803 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
29804 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
29805 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
29806 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
29807 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
29808 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
29809 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
29810 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
29811 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
29812 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
29813 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
29814 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
29815 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
29816 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
29817 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
29818 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
29819 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
29820 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
29821 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
29822 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
29823 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
29824 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
29825 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
29826 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
29827 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
29828 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
29829 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
29830 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
29831 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
29832 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
29833 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
29834 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
29835 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
29836 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
29837 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
29838 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
29839 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
29840 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
29841 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
29842 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
29843 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
29844 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
29845 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
29846 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
29847 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
29848 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
29849 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
29850 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
29851 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
29852 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
29853 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
29854 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
29855 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
29856 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
29857 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
29858 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
29859 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
29860 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
29861 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
29862 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
29863 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
29864 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
29865 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
29866 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
29867 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
29868 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
29869 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
29870 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
29871 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
29872 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
29873 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
29874 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
29875 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
29876 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
29877 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
29878 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
29879 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
29880 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
29881 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
29882 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
29883 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
29884 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
29885 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
29886 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
29887 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
29888 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
29889 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
29890 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
29891 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
29892 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
29893 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
29894 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
29895 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
29896 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
29897 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
29898 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
29899 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
29900 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
29901 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
29902 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
29903 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
29904 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
29905 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
29906 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
29907 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
29908 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
29909 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
29910 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
29911 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
29912 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
29913 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
29914 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
29915 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
29916 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
29917 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
29918 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
29919 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
29920 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
29921 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
29922 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
29923 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
29924 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
29925 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
29926 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
29927 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
29928 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
29929 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
29930 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
29931 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
29932 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
29933 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
29934 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
29935 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
29936 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
29937 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
29938 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
29939 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
29940 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
29941 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
29942 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
29943 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
29944 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
29945 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
29946 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
29947 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
29948 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
29949 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
29950 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
29951 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
29952 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
29953 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
29954 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
29955 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
29956 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
29957 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
29958 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
29959 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
29960 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
29961 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
29962 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
29963 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
29964 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
29965 "\x00\x21\x42\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029966 .ctext =
Herbert Xuda7f0332008-07-31 17:08:25 +080029967 "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
29968 "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
29969 "\x29\x01\xce\x98\x55\x53\xf9\x0c"
29970 "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
29971 "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
29972 "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
29973 "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
29974 "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
29975 "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
29976 "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
29977 "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
29978 "\xbb\xde\x56\x86\xab\x65\x21\x30"
29979 "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
29980 "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
29981 "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
29982 "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
29983 "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
29984 "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
29985 "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
29986 "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
29987 "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
29988 "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
29989 "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
29990 "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
29991 "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
29992 "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
29993 "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
29994 "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
29995 "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
29996 "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
29997 "\x45\xff\x3f\xce\x55\xf6\x95\x10"
29998 "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
29999 "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
30000 "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
30001 "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
30002 "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
30003 "\x62\x08\x18\x7a\x25\x49\x28\xac"
30004 "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
30005 "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
30006 "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
30007 "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
30008 "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
30009 "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
30010 "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
30011 "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
30012 "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
30013 "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
30014 "\x33\xee\x14\x19\x22\x52\x89\xa7"
30015 "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
30016 "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
30017 "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
30018 "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
30019 "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
30020 "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
30021 "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
30022 "\x04\x07\x08\x52\xe6\xc0\xda\x93"
30023 "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
30024 "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
30025 "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
30026 "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
30027 "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
30028 "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
30029 "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
30030 "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
30031 "\x5a\x90\xae\x75\x0a\x74\x18\x89"
30032 "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
30033 "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
30034 "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
30035 "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
30036 "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
30037 "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
30038 "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
30039 "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
30040 "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
30041 "\x49\x97\x33\xab\x36\x14\x0a\x70"
30042 "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
30043 "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
30044 "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
30045 "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
30046 "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
30047 "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
30048 "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
30049 "\x47\x13\x28\x73\x3c\xbb\x00\x90"
30050 "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
30051 "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
30052 "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
30053 "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
30054 "\xad\x04\x07\xae\x22\x90\x4a\x93"
30055 "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
30056 "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
30057 "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
30058 "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
30059 "\x53\xf9\x80\x10\xde\x80\xa2\x41"
30060 "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
30061 "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
30062 "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
30063 "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
30064 "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
30065 "\xde\xff\x07\x44\xdd\x56\x1b\xad"
30066 "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
30067 "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
30068 "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
30069 "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
30070 "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
30071 "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
30072 "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
30073 "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
30074 "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
30075 "\x23\xf8\x66\x18\x14\x28\x34\x0f"
30076 "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
30077 "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
30078 "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
30079 "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
30080 "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
30081 "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
30082 "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
30083 "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
30084 "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
30085 "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
30086 "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
30087 "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
30088 "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
30089 "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
30090 "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
30091 "\xca\x8e\x61\x87\xde\xad\x80\xd2"
30092 "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
30093 "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
30094 "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
30095 "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
30096 "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
30097 "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
30098 "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
30099 "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
30100 "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
30101 "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
30102 "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
30103 "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
30104 "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
30105 "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
30106 "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
30107 "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
30108 "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
30109 "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
30110 "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
30111 "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
30112 "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
30113 "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
30114 "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
30115 "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
30116 "\x54\xda\x24\x6a\xc4\x41\x65\x46"
30117 "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
30118 "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
30119 "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
30120 "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
30121 "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
30122 "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
30123 "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
30124 "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
30125 "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
30126 "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
30127 "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
30128 "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
30129 "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
30130 "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
30131 "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
30132 "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
30133 "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
30134 "\xef\xcc\xa7\xec\xab\x43\x09\x18"
30135 "\xd3\xab\x68\xd1\x07\x99\x44\x47"
30136 "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
30137 "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
30138 "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
30139 "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
30140 "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
30141 "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
30142 "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
30143 "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
30144 "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
30145 "\x71\x6e\x9f\x58\x15\x67\x72\x87"
30146 "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
30147 "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
30148 "\xba\x41\x54\xac\xf0\xfc\x59\x12"
30149 "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
30150 "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
30151 "\x2e\x53\x49\x97\x94\x33\xae\x40"
30152 "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
30153 "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
30154 "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
30155 "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
30156 "\xce\x87\xad\xcc\x72\x05\x00\x29"
30157 "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
30158 "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
30159 "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
30160 "\xac\xc0\x79\x50\x69\xca\x59\x32"
30161 "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
30162 "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
30163 "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
30164 "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
30165 "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
30166 "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
30167 "\x05\x68\x6b\xab\xe3\x41\x49\xed"
30168 "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
30169 "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
30170 "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
30171 "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
30172 "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
30173 "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
30174 "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
30175 "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
30176 "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
30177 "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
30178 "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
30179 "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
30180 "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
30181 "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
30182 "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
30183 "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
30184 "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
30185 "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
30186 "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
30187 "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
30188 "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
30189 "\x85\x75\xe6\x43\xf6\x87\x08\x68"
30190 "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
30191 "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
30192 "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
30193 "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
30194 "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
30195 "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
30196 "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
30197 "\xaf\x55\xeb\x22\xac\x93\x68\x32"
30198 "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
30199 "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
30200 "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
30201 "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
30202 "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
30203 "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
30204 "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
30205 "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
30206 "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
30207 "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
30208 "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
30209 "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
30210 "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
30211 "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
30212 "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
30213 "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
30214 "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
30215 "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
30216 "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
30217 "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
30218 "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
30219 "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
30220 "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
30221 "\x38\x55\xab\x33\x26\xef\x9f\x43"
30222 "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
30223 "\x58\x09\x09\x1b\xc3\x65\x46\x46"
30224 "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
30225 "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
30226 "\x63\x86\xf2\x03\x67\x45\xd2\x72"
30227 "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
30228 "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
30229 "\x2b\x82\x39\xbd\x69\x54\xed\x62"
30230 "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
30231 "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
30232 "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
30233 "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
30234 "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
30235 "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
30236 "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
30237 "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
30238 "\x55\xad\xa4\xd1\x22\x54\x70\x94"
30239 "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
30240 "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
30241 "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
30242 "\x62\x36\x43\xb2\x82\x15\x75\x50"
30243 "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
30244 "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
30245 "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
30246 "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
30247 "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
30248 "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
30249 "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
30250 "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
30251 "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
30252 "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
30253 "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
30254 "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
30255 "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
30256 "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
30257 "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
30258 "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
30259 "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
30260 "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
30261 "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
30262 "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
30263 "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
30264 "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
30265 "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
30266 "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
30267 "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
30268 "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
30269 "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
30270 "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
30271 "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
30272 "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
30273 "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
30274 "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
30275 "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
30276 "\x42\x19\x23\x7d\xc8\x73\xee\x25"
30277 "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
30278 "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
30279 "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
30280 "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
30281 "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
30282 "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
30283 "\xdb\x87\xee\xef\x55\x89\x2a\x59"
30284 "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
30285 "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
30286 "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
30287 "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
30288 "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
30289 "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
30290 "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
30291 "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
30292 "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
30293 "\xae\xab\x86\x09\x89\xc9\xc2\x40"
30294 "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
30295 "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
30296 "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
30297 "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
30298 "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
30299 "\x95\xd9\x34\x34\x86\xc6\x41\x94"
30300 "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
30301 "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
30302 "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
30303 "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
30304 "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
30305 "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
30306 "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
30307 "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
30308 "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
30309 "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
30310 "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
30311 "\xa7\x33\x34\x86\xca\xe4\x96\x23"
30312 "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
30313 "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
30314 "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
30315 "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
30316 "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
30317 "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
30318 "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
30319 "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
30320 "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
30321 "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
30322 "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
30323 "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
30324 "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
30325 "\x68\xc8\x7f\x51\x22\x42\xef\x49"
30326 "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
30327 "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
30328 "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
30329 "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
30330 "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
30331 "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
30332 "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
30333 "\x73\x2e\x71\x79\x16\x06\x63\x28"
30334 "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
30335 "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
30336 "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
30337 "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
30338 "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
30339 "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
30340 "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
30341 "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
30342 "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
30343 "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
30344 "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
30345 "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
30346 "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
30347 "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
30348 "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
30349 "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
30350 "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
30351 "\x19\x07\xaf\x90\x62\x5c\x68\x98"
30352 "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
30353 "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
30354 "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
30355 "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
30356 "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
30357 "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
30358 "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
30359 "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
30360 "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
30361 "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
30362 "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
30363 "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
30364 "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
30365 "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
30366 "\x21\x33\x44\xfe\x7f\x35\x32\x93"
30367 "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
30368 "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
30369 "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
30370 "\x64\xf0\x48\xe5\x57\x99\xee\x75"
30371 "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
30372 "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
30373 "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
30374 "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
30375 "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
30376 "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
30377 "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
30378 "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
30379 "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
30380 "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
30381 "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
30382 "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
30383 "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
30384 "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
30385 "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
30386 "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
30387 "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
30388 "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
30389 "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
30390 "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
30391 "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
30392 "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
30393 "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
30394 "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
30395 "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
30396 "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
30397 "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
30398 "\x56\xf5\x4e\x01\x35\x27\x45\x77"
30399 "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
30400 "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
30401 "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
30402 "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
30403 "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
30404 "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
30405 "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
30406 "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
30407 "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
30408 "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
30409 "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
30410 "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
30411 "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
30412 "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
30413 "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
30414 "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
30415 "\x87\x8f\x03\x21\x28\x95\x0c\x89"
30416 "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
30417 "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
30418 "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
30419 "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
30420 "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
30421 "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
30422 "\x85\x73\x78\x45\x20\x7f\xae\x13"
30423 "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
30424 "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
30425 "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
30426 "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
30427 "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
30428 "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
30429 "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
30430 "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
30431 "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
30432 "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
30433 "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
30434 "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
30435 "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
30436 "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
30437 "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
30438 "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
30439 "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
30440 "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
30441 "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
30442 "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
30443 "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
30444 "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
30445 "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
30446 "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
30447 "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
30448 "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
30449 "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
30450 "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
30451 "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
30452 "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
30453 "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
30454 "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
30455 "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
30456 "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
30457 "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
30458 "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
30459 "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
30460 "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
30461 "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
30462 "\x6e\x12\x17\x72\x63\x57\xc7\xba"
30463 "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
30464 "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
30465 "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
30466 "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
30467 "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
30468 "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
30469 "\x0c\x24\x43\x31\x40\x57\xf1\x72"
30470 "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
30471 "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
30472 "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
30473 "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
30474 "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
30475 "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
30476 "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
30477 "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
30478 "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
30479 "\xaf\xdf\x11\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030480 .len = 4100,
Herbert Xuda7f0332008-07-31 17:08:25 +080030481 .np = 2,
30482 .tap = { 4064, 36 },
30483 },
30484};
30485
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030486static const struct cipher_testvec chacha20_tv_template[] = {
Martin Willi3590ebf2015-06-01 13:43:57 +020030487 { /* RFC7539 A.2. Test Vector #1 */
30488 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30489 "\x00\x00\x00\x00\x00\x00\x00\x00"
30490 "\x00\x00\x00\x00\x00\x00\x00\x00"
30491 "\x00\x00\x00\x00\x00\x00\x00\x00",
30492 .klen = 32,
30493 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
30494 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030495 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willi3590ebf2015-06-01 13:43:57 +020030496 "\x00\x00\x00\x00\x00\x00\x00\x00"
30497 "\x00\x00\x00\x00\x00\x00\x00\x00"
30498 "\x00\x00\x00\x00\x00\x00\x00\x00"
30499 "\x00\x00\x00\x00\x00\x00\x00\x00"
30500 "\x00\x00\x00\x00\x00\x00\x00\x00"
30501 "\x00\x00\x00\x00\x00\x00\x00\x00"
30502 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030503 .ctext = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
Martin Willi3590ebf2015-06-01 13:43:57 +020030504 "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
30505 "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
30506 "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
30507 "\xda\x41\x59\x7c\x51\x57\x48\x8d"
30508 "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
30509 "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
30510 "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030511 .len = 64,
Martin Willi3590ebf2015-06-01 13:43:57 +020030512 }, { /* RFC7539 A.2. Test Vector #2 */
30513 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
30514 "\x00\x00\x00\x00\x00\x00\x00\x00"
30515 "\x00\x00\x00\x00\x00\x00\x00\x00"
30516 "\x00\x00\x00\x00\x00\x00\x00\x01",
30517 .klen = 32,
30518 .iv = "\x01\x00\x00\x00\x00\x00\x00\x00"
30519 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030520 .ptext = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
Martin Willi3590ebf2015-06-01 13:43:57 +020030521 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
30522 "\x6f\x20\x74\x68\x65\x20\x49\x45"
30523 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
30524 "\x64\x65\x64\x20\x62\x79\x20\x74"
30525 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
30526 "\x69\x62\x75\x74\x6f\x72\x20\x66"
30527 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
30528 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
30529 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
30530 "\x20\x70\x61\x72\x74\x20\x6f\x66"
30531 "\x20\x61\x6e\x20\x49\x45\x54\x46"
30532 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
30533 "\x74\x2d\x44\x72\x61\x66\x74\x20"
30534 "\x6f\x72\x20\x52\x46\x43\x20\x61"
30535 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
30536 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
30537 "\x20\x6d\x61\x64\x65\x20\x77\x69"
30538 "\x74\x68\x69\x6e\x20\x74\x68\x65"
30539 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
30540 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
30541 "\x45\x54\x46\x20\x61\x63\x74\x69"
30542 "\x76\x69\x74\x79\x20\x69\x73\x20"
30543 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
30544 "\x65\x64\x20\x61\x6e\x20\x22\x49"
30545 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
30546 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
30547 "\x22\x2e\x20\x53\x75\x63\x68\x20"
30548 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
30549 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
30550 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
30551 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
30552 "\x74\x73\x20\x69\x6e\x20\x49\x45"
30553 "\x54\x46\x20\x73\x65\x73\x73\x69"
30554 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
30555 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
30556 "\x77\x72\x69\x74\x74\x65\x6e\x20"
30557 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
30558 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
30559 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
30560 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
30561 "\x64\x65\x20\x61\x74\x20\x61\x6e"
30562 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
30563 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
30564 "\x20\x77\x68\x69\x63\x68\x20\x61"
30565 "\x72\x65\x20\x61\x64\x64\x72\x65"
30566 "\x73\x73\x65\x64\x20\x74\x6f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030567 .ctext = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
Martin Willi3590ebf2015-06-01 13:43:57 +020030568 "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
30569 "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
30570 "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
30571 "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
30572 "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
30573 "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
30574 "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
30575 "\x40\x42\xe0\x27\x85\xec\xec\xfa"
30576 "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
30577 "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
30578 "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
30579 "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
30580 "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
30581 "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
30582 "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
30583 "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
30584 "\xd6\x62\xab\x05\x26\x91\xca\x66"
30585 "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
30586 "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
30587 "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
30588 "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
30589 "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
30590 "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
30591 "\x08\x71\xcd\xac\x63\x89\x39\xe2"
30592 "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
30593 "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
30594 "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
30595 "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
30596 "\x37\x20\xfc\x88\xdc\x95\xed\x84"
30597 "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
30598 "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
30599 "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
30600 "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
30601 "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
30602 "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
30603 "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
30604 "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
30605 "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
30606 "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
30607 "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
30608 "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
30609 "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
30610 "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
30611 "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
30612 "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
30613 "\xc4\xfd\x80\x6c\x22\xf2\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030614 .len = 375,
Ard Biesheuvel549f6412017-08-14 14:28:15 +010030615 .also_non_np = 1,
30616 .np = 3,
30617 .tap = { 375 - 20, 4, 16 },
30618
Martin Willi3590ebf2015-06-01 13:43:57 +020030619 }, { /* RFC7539 A.2. Test Vector #3 */
30620 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
30621 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
30622 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
30623 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
30624 .klen = 32,
30625 .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00"
30626 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030627 .ptext = "\x27\x54\x77\x61\x73\x20\x62\x72"
Martin Willi3590ebf2015-06-01 13:43:57 +020030628 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
30629 "\x6e\x64\x20\x74\x68\x65\x20\x73"
30630 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
30631 "\x76\x65\x73\x0a\x44\x69\x64\x20"
30632 "\x67\x79\x72\x65\x20\x61\x6e\x64"
30633 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
30634 "\x69\x6e\x20\x74\x68\x65\x20\x77"
30635 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
30636 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
30637 "\x65\x72\x65\x20\x74\x68\x65\x20"
30638 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
30639 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
30640 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
30641 "\x72\x61\x74\x68\x73\x20\x6f\x75"
30642 "\x74\x67\x72\x61\x62\x65\x2e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030643 .ctext = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
Martin Willi3590ebf2015-06-01 13:43:57 +020030644 "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
30645 "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
30646 "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
30647 "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
30648 "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
30649 "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
30650 "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
30651 "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
30652 "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
30653 "\x1a\x55\x32\x05\x57\x16\xea\xd6"
30654 "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
30655 "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
30656 "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
30657 "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
30658 "\x75\x7a\x79\x7a\xc1\x88\xd1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030659 .len = 127,
Martin Willi6692cbc2015-07-16 19:14:04 +020030660 }, { /* Self-made test vector for long data */
30661 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
30662 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
30663 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
30664 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
30665 .klen = 32,
30666 .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00"
30667 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030668 .ptext = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
Martin Willi6692cbc2015-07-16 19:14:04 +020030669 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
30670 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
30671 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
30672 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
30673 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
30674 "\x01\xc6\x67\xda\x03\x91\x18\x90"
30675 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
30676 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
30677 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
30678 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
30679 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
30680 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
30681 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
30682 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
30683 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
30684 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
30685 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
30686 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
30687 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
30688 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
30689 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
30690 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
30691 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
30692 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
30693 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
30694 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
30695 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
30696 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
30697 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
30698 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
30699 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
30700 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
30701 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
30702 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
30703 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
30704 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
30705 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
30706 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
30707 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
30708 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
30709 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
30710 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
30711 "\x49\x46\x00\x88\x22\x8d\xce\xea"
30712 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
30713 "\x72\x11\xf5\x50\x73\x04\x40\x47"
30714 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
30715 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
30716 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
30717 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
30718 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
30719 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
30720 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
30721 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
30722 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
30723 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
30724 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
30725 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
30726 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
30727 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
30728 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
30729 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
30730 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
30731 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
30732 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
30733 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
30734 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
30735 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
30736 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
30737 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
30738 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
30739 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
30740 "\x65\x69\x8a\x45\x29\xef\x74\x85"
30741 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
30742 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
30743 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
30744 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
30745 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
30746 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
30747 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
30748 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
30749 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
30750 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
30751 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
30752 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
30753 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
30754 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
30755 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
30756 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
30757 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
30758 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
30759 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
30760 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
30761 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
30762 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
30763 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
30764 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
30765 "\x25\x94\x10\x5f\x40\x00\x64\x99"
30766 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
30767 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
30768 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
30769 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
30770 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
30771 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
30772 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
30773 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
30774 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
30775 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
30776 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
30777 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
30778 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
30779 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
30780 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
30781 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
30782 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
30783 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
30784 "\xb9\x83\x90\xef\x20\x59\x46\xff"
30785 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
30786 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
30787 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
30788 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
30789 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
30790 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
30791 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
30792 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
30793 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
30794 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
30795 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
30796 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
30797 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
30798 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
30799 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
30800 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
30801 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
30802 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
30803 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
30804 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
30805 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
30806 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
30807 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
30808 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
30809 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
30810 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
30811 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
30812 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
30813 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
30814 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
30815 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
30816 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
30817 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
30818 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
30819 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
30820 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
30821 "\xca\x34\x83\x27\x10\x5b\x68\x45"
30822 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
30823 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
30824 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
30825 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
30826 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
30827 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
30828 "\x72",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030829 .ctext = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
Martin Willi6692cbc2015-07-16 19:14:04 +020030830 "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
30831 "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
30832 "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
30833 "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
30834 "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
30835 "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
30836 "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
30837 "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
30838 "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
30839 "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
30840 "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
30841 "\x33\x4a\x71\x15\xfe\xee\x12\x54"
30842 "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
30843 "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
30844 "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
30845 "\x57\x0e\x94\x17\x26\x39\xbb\x54"
30846 "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
30847 "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
30848 "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
30849 "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
30850 "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
30851 "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
30852 "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
30853 "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
30854 "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
30855 "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
30856 "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
30857 "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
30858 "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
30859 "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
30860 "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
30861 "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
30862 "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
30863 "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
30864 "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
30865 "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
30866 "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
30867 "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
30868 "\xae\xe7\x61\x32\xef\x41\x6c\x75"
30869 "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
30870 "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
30871 "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
30872 "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
30873 "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
30874 "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
30875 "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
30876 "\xc1\x22\xf3\x79\xae\x95\x78\x66"
30877 "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
30878 "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
30879 "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
30880 "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
30881 "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
30882 "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
30883 "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
30884 "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
30885 "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
30886 "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
30887 "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
30888 "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
30889 "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
30890 "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
30891 "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
30892 "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
30893 "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
30894 "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
30895 "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
30896 "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
30897 "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
30898 "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
30899 "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
30900 "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
30901 "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
30902 "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
30903 "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
30904 "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
30905 "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
30906 "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
30907 "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
30908 "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
30909 "\x54\x1c\x34\x72\xde\x0c\x68\x39"
30910 "\x9d\x32\xa5\x75\x92\x13\x32\xea"
30911 "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
30912 "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
30913 "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
30914 "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
30915 "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
30916 "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
30917 "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
30918 "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
30919 "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
30920 "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
30921 "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
30922 "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
30923 "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
30924 "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
30925 "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
30926 "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
30927 "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
30928 "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
30929 "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
30930 "\x79\x61\x23\xe0\xa2\x99\x73\x55"
30931 "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
30932 "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
30933 "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
30934 "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
30935 "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
30936 "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
30937 "\x48\x56\xaa\x85\x22\xd8\x36\xed"
30938 "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
30939 "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
30940 "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
30941 "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
30942 "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
30943 "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
30944 "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
30945 "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
30946 "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
30947 "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
30948 "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
30949 "\xec\x83\x92\x99\x87\x47\xe0\x7c"
30950 "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
30951 "\x98\xb0\x87\xb6\x86\x13\x64\x33"
30952 "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
30953 "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
30954 "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
30955 "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
30956 "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
30957 "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
30958 "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
30959 "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
30960 "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
30961 "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
30962 "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
30963 "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
30964 "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
30965 "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
30966 "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
30967 "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
30968 "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
30969 "\x5f\xae\x25\x84\x22\x90\x5f\x26"
30970 "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
30971 "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
30972 "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
30973 "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
30974 "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
30975 "\x74\x06\x89\x0e\x90\xeb\x85\xff"
30976 "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
30977 "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
30978 "\x02\x85\x68\xd0\x03\x12\xde\x92"
30979 "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
30980 "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
30981 "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
30982 "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
30983 "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
30984 "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
30985 "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
30986 "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
30987 "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
30988 "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
30989 "\x98",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070030990 .len = 1281,
Ard Biesheuvel549f6412017-08-14 14:28:15 +010030991 .also_non_np = 1,
30992 .np = 3,
30993 .tap = { 1200, 1, 80 },
Martin Willi3590ebf2015-06-01 13:43:57 +020030994 },
30995};
30996
Eric Biggersde61d7a2018-11-16 17:26:20 -080030997static const struct cipher_testvec xchacha20_tv_template[] = {
30998 { /* from libsodium test/default/xchacha20.c */
30999 .key = "\x79\xc9\x97\x98\xac\x67\x30\x0b"
31000 "\xbb\x27\x04\xc9\x5c\x34\x1e\x32"
31001 "\x45\xf3\xdc\xb2\x17\x61\xb9\x8e"
31002 "\x52\xff\x45\xb2\x4f\x30\x4f\xc4",
31003 .klen = 32,
31004 .iv = "\xb3\x3f\xfd\x30\x96\x47\x9b\xcf"
31005 "\xbc\x9a\xee\x49\x41\x76\x88\xa0"
31006 "\xa2\x55\x4f\x8d\x95\x38\x94\x19"
31007 "\x00\x00\x00\x00\x00\x00\x00\x00",
31008 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
31009 "\x00\x00\x00\x00\x00\x00\x00\x00"
31010 "\x00\x00\x00\x00\x00\x00\x00\x00"
31011 "\x00\x00\x00\x00\x00",
31012 .ctext = "\xc6\xe9\x75\x81\x60\x08\x3a\xc6"
31013 "\x04\xef\x90\xe7\x12\xce\x6e\x75"
31014 "\xd7\x79\x75\x90\x74\x4e\x0c\xf0"
31015 "\x60\xf0\x13\x73\x9c",
31016 .len = 29,
31017 }, { /* from libsodium test/default/xchacha20.c */
31018 .key = "\x9d\x23\xbd\x41\x49\xcb\x97\x9c"
31019 "\xcf\x3c\x5c\x94\xdd\x21\x7e\x98"
31020 "\x08\xcb\x0e\x50\xcd\x0f\x67\x81"
31021 "\x22\x35\xea\xaf\x60\x1d\x62\x32",
31022 .klen = 32,
31023 .iv = "\xc0\x47\x54\x82\x66\xb7\xc3\x70"
31024 "\xd3\x35\x66\xa2\x42\x5c\xbf\x30"
31025 "\xd8\x2d\x1e\xaf\x52\x94\x10\x9e"
31026 "\x00\x00\x00\x00\x00\x00\x00\x00",
31027 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
31028 "\x00\x00\x00\x00\x00\x00\x00\x00"
31029 "\x00\x00\x00\x00\x00\x00\x00\x00"
31030 "\x00\x00\x00\x00\x00\x00\x00\x00"
31031 "\x00\x00\x00\x00\x00\x00\x00\x00"
31032 "\x00\x00\x00\x00\x00\x00\x00\x00"
31033 "\x00\x00\x00\x00\x00\x00\x00\x00"
31034 "\x00\x00\x00\x00\x00\x00\x00\x00"
31035 "\x00\x00\x00\x00\x00\x00\x00\x00"
31036 "\x00\x00\x00\x00\x00\x00\x00\x00"
31037 "\x00\x00\x00\x00\x00\x00\x00\x00"
31038 "\x00\x00\x00",
31039 .ctext = "\xa2\x12\x09\x09\x65\x94\xde\x8c"
31040 "\x56\x67\xb1\xd1\x3a\xd9\x3f\x74"
31041 "\x41\x06\xd0\x54\xdf\x21\x0e\x47"
31042 "\x82\xcd\x39\x6f\xec\x69\x2d\x35"
31043 "\x15\xa2\x0b\xf3\x51\xee\xc0\x11"
31044 "\xa9\x2c\x36\x78\x88\xbc\x46\x4c"
31045 "\x32\xf0\x80\x7a\xcd\x6c\x20\x3a"
31046 "\x24\x7e\x0d\xb8\x54\x14\x84\x68"
31047 "\xe9\xf9\x6b\xee\x4c\xf7\x18\xd6"
31048 "\x8d\x5f\x63\x7c\xbd\x5a\x37\x64"
31049 "\x57\x78\x8e\x6f\xae\x90\xfc\x31"
31050 "\x09\x7c\xfc",
31051 .len = 91,
31052 }, { /* Taken from the ChaCha20 test vectors, appended 16 random bytes
31053 to nonce, and recomputed the ciphertext with libsodium */
31054 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31055 "\x00\x00\x00\x00\x00\x00\x00\x00"
31056 "\x00\x00\x00\x00\x00\x00\x00\x00"
31057 "\x00\x00\x00\x00\x00\x00\x00\x00",
31058 .klen = 32,
31059 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31060 "\x00\x00\x00\x00\x67\xc6\x69\x73"
31061 "\x51\xff\x4a\xec\x29\xcd\xba\xab"
31062 "\x00\x00\x00\x00\x00\x00\x00\x00",
31063 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
31064 "\x00\x00\x00\x00\x00\x00\x00\x00"
31065 "\x00\x00\x00\x00\x00\x00\x00\x00"
31066 "\x00\x00\x00\x00\x00\x00\x00\x00"
31067 "\x00\x00\x00\x00\x00\x00\x00\x00"
31068 "\x00\x00\x00\x00\x00\x00\x00\x00"
31069 "\x00\x00\x00\x00\x00\x00\x00\x00"
31070 "\x00\x00\x00\x00\x00\x00\x00\x00",
31071 .ctext = "\x9c\x49\x2a\xe7\x8a\x2f\x93\xc7"
31072 "\xb3\x33\x6f\x82\x17\xd8\xc4\x1e"
31073 "\xad\x80\x11\x11\x1d\x4c\x16\x18"
31074 "\x07\x73\x9b\x4f\xdb\x7c\xcb\x47"
31075 "\xfd\xef\x59\x74\xfa\x3f\xe5\x4c"
31076 "\x9b\xd0\xea\xbc\xba\x56\xad\x32"
31077 "\x03\xdc\xf8\x2b\xc1\xe1\x75\x67"
31078 "\x23\x7b\xe6\xfc\xd4\x03\x86\x54",
31079 .len = 64,
31080 }, { /* Taken from the ChaCha20 test vectors, appended 16 random bytes
31081 to nonce, and recomputed the ciphertext with libsodium */
31082 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
31083 "\x00\x00\x00\x00\x00\x00\x00\x00"
31084 "\x00\x00\x00\x00\x00\x00\x00\x00"
31085 "\x00\x00\x00\x00\x00\x00\x00\x01",
31086 .klen = 32,
31087 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31088 "\x00\x00\x00\x02\xf2\xfb\xe3\x46"
31089 "\x7c\xc2\x54\xf8\x1b\xe8\xe7\x8d"
31090 "\x01\x00\x00\x00\x00\x00\x00\x00",
31091 .ptext = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
31092 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
31093 "\x6f\x20\x74\x68\x65\x20\x49\x45"
31094 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
31095 "\x64\x65\x64\x20\x62\x79\x20\x74"
31096 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
31097 "\x69\x62\x75\x74\x6f\x72\x20\x66"
31098 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
31099 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
31100 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
31101 "\x20\x70\x61\x72\x74\x20\x6f\x66"
31102 "\x20\x61\x6e\x20\x49\x45\x54\x46"
31103 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
31104 "\x74\x2d\x44\x72\x61\x66\x74\x20"
31105 "\x6f\x72\x20\x52\x46\x43\x20\x61"
31106 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
31107 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
31108 "\x20\x6d\x61\x64\x65\x20\x77\x69"
31109 "\x74\x68\x69\x6e\x20\x74\x68\x65"
31110 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
31111 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
31112 "\x45\x54\x46\x20\x61\x63\x74\x69"
31113 "\x76\x69\x74\x79\x20\x69\x73\x20"
31114 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
31115 "\x65\x64\x20\x61\x6e\x20\x22\x49"
31116 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
31117 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
31118 "\x22\x2e\x20\x53\x75\x63\x68\x20"
31119 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
31120 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
31121 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
31122 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
31123 "\x74\x73\x20\x69\x6e\x20\x49\x45"
31124 "\x54\x46\x20\x73\x65\x73\x73\x69"
31125 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
31126 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
31127 "\x77\x72\x69\x74\x74\x65\x6e\x20"
31128 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
31129 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
31130 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
31131 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
31132 "\x64\x65\x20\x61\x74\x20\x61\x6e"
31133 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
31134 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
31135 "\x20\x77\x68\x69\x63\x68\x20\x61"
31136 "\x72\x65\x20\x61\x64\x64\x72\x65"
31137 "\x73\x73\x65\x64\x20\x74\x6f",
31138 .ctext = "\xf9\xab\x7a\x4a\x60\xb8\x5f\xa0"
31139 "\x50\xbb\x57\xce\xef\x8c\xc1\xd9"
31140 "\x24\x15\xb3\x67\x5e\x7f\x01\xf6"
31141 "\x1c\x22\xf6\xe5\x71\xb1\x43\x64"
31142 "\x63\x05\xd5\xfc\x5c\x3d\xc0\x0e"
31143 "\x23\xef\xd3\x3b\xd9\xdc\x7f\xa8"
31144 "\x58\x26\xb3\xd0\xc2\xd5\x04\x3f"
31145 "\x0a\x0e\x8f\x17\xe4\xcd\xf7\x2a"
31146 "\xb4\x2c\x09\xe4\x47\xec\x8b\xfb"
31147 "\x59\x37\x7a\xa1\xd0\x04\x7e\xaa"
31148 "\xf1\x98\x5f\x24\x3d\x72\x9a\x43"
31149 "\xa4\x36\x51\x92\x22\x87\xff\x26"
31150 "\xce\x9d\xeb\x59\x78\x84\x5e\x74"
31151 "\x97\x2e\x63\xc0\xef\x29\xf7\x8a"
31152 "\xb9\xee\x35\x08\x77\x6a\x35\x9a"
31153 "\x3e\xe6\x4f\x06\x03\x74\x1b\xc1"
31154 "\x5b\xb3\x0b\x89\x11\x07\xd3\xb7"
31155 "\x53\xd6\x25\x04\xd9\x35\xb4\x5d"
31156 "\x4c\x33\x5a\xc2\x42\x4c\xe6\xa4"
31157 "\x97\x6e\x0e\xd2\xb2\x8b\x2f\x7f"
31158 "\x28\xe5\x9f\xac\x4b\x2e\x02\xab"
31159 "\x85\xfa\xa9\x0d\x7c\x2d\x10\xe6"
31160 "\x91\xab\x55\x63\xf0\xde\x3a\x94"
31161 "\x25\x08\x10\x03\xc2\x68\xd1\xf4"
31162 "\xaf\x7d\x9c\x99\xf7\x86\x96\x30"
31163 "\x60\xfc\x0b\xe6\xa8\x80\x15\xb0"
31164 "\x81\xb1\x0c\xbe\xb9\x12\x18\x25"
31165 "\xe9\x0e\xb1\xe7\x23\xb2\xef\x4a"
31166 "\x22\x8f\xc5\x61\x89\xd4\xe7\x0c"
31167 "\x64\x36\x35\x61\xb6\x34\x60\xf7"
31168 "\x7b\x61\x37\x37\x12\x10\xa2\xf6"
31169 "\x7e\xdb\x7f\x39\x3f\xb6\x8e\x89"
31170 "\x9e\xf3\xfe\x13\x98\xbb\x66\x5a"
31171 "\xec\xea\xab\x3f\x9c\x87\xc4\x8c"
31172 "\x8a\x04\x18\x49\xfc\x77\x11\x50"
31173 "\x16\xe6\x71\x2b\xee\xc0\x9c\xb6"
31174 "\x87\xfd\x80\xff\x0b\x1d\x73\x38"
31175 "\xa4\x1d\x6f\xae\xe4\x12\xd7\x93"
31176 "\x9d\xcd\x38\x26\x09\x40\x52\xcd"
31177 "\x67\x01\x67\x26\xe0\x3e\x98\xa8"
31178 "\xe8\x1a\x13\x41\xbb\x90\x4d\x87"
31179 "\xbb\x42\x82\x39\xce\x3a\xd0\x18"
31180 "\x6d\x7b\x71\x8f\xbb\x2c\x6a\xd1"
31181 "\xbd\xf5\xc7\x8a\x7e\xe1\x1e\x0f"
31182 "\x0d\x0d\x13\x7c\xd9\xd8\x3c\x91"
31183 "\xab\xff\x1f\x12\xc3\xee\xe5\x65"
31184 "\x12\x8d\x7b\x61\xe5\x1f\x98",
31185 .len = 375,
31186 .also_non_np = 1,
31187 .np = 3,
31188 .tap = { 375 - 20, 4, 16 },
31189
31190 }, { /* Taken from the ChaCha20 test vectors, appended 16 random bytes
31191 to nonce, and recomputed the ciphertext with libsodium */
31192 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
31193 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
31194 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
31195 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
31196 .klen = 32,
31197 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31198 "\x00\x00\x00\x02\x76\x5a\x2e\x63"
31199 "\x33\x9f\xc9\x9a\x66\x32\x0d\xb7"
31200 "\x2a\x00\x00\x00\x00\x00\x00\x00",
31201 .ptext = "\x27\x54\x77\x61\x73\x20\x62\x72"
31202 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
31203 "\x6e\x64\x20\x74\x68\x65\x20\x73"
31204 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
31205 "\x76\x65\x73\x0a\x44\x69\x64\x20"
31206 "\x67\x79\x72\x65\x20\x61\x6e\x64"
31207 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
31208 "\x69\x6e\x20\x74\x68\x65\x20\x77"
31209 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
31210 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
31211 "\x65\x72\x65\x20\x74\x68\x65\x20"
31212 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
31213 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
31214 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
31215 "\x72\x61\x74\x68\x73\x20\x6f\x75"
31216 "\x74\x67\x72\x61\x62\x65\x2e",
31217 .ctext = "\x95\xb9\x51\xe7\x8f\xb4\xa4\x03"
31218 "\xca\x37\xcc\xde\x60\x1d\x8c\xe2"
31219 "\xf1\xbb\x8a\x13\x7f\x61\x85\xcc"
31220 "\xad\xf4\xf0\xdc\x86\xa6\x1e\x10"
31221 "\xbc\x8e\xcb\x38\x2b\xa5\xc8\x8f"
31222 "\xaa\x03\x3d\x53\x4a\x42\xb1\x33"
31223 "\xfc\xd3\xef\xf0\x8e\x7e\x10\x9c"
31224 "\x6f\x12\x5e\xd4\x96\xfe\x5b\x08"
31225 "\xb6\x48\xf0\x14\x74\x51\x18\x7c"
31226 "\x07\x92\xfc\xac\x9d\xf1\x94\xc0"
31227 "\xc1\x9d\xc5\x19\x43\x1f\x1d\xbb"
31228 "\x07\xf0\x1b\x14\x25\x45\xbb\xcb"
31229 "\x5c\xe2\x8b\x28\xf3\xcf\x47\x29"
31230 "\x27\x79\x67\x24\xa6\x87\xc2\x11"
31231 "\x65\x03\xfa\x45\xf7\x9e\x53\x7a"
31232 "\x99\xf1\x82\x25\x4f\x8d\x07",
31233 .len = 127,
31234 }, { /* Taken from the ChaCha20 test vectors, appended 16 random bytes
31235 to nonce, and recomputed the ciphertext with libsodium */
31236 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
31237 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
31238 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
31239 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
31240 .klen = 32,
31241 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
31242 "\x00\x00\x00\x01\x31\x58\xa3\x5a"
31243 "\x25\x5d\x05\x17\x58\xe9\x5e\xd4"
31244 "\x1c\x00\x00\x00\x00\x00\x00\x00",
31245 .ptext = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
31246 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
31247 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
31248 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
31249 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
31250 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
31251 "\x01\xc6\x67\xda\x03\x91\x18\x90"
31252 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
31253 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
31254 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
31255 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
31256 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
31257 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
31258 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
31259 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
31260 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
31261 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
31262 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
31263 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
31264 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
31265 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
31266 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
31267 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
31268 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
31269 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
31270 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
31271 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
31272 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
31273 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
31274 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
31275 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
31276 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
31277 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
31278 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
31279 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
31280 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
31281 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
31282 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
31283 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
31284 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
31285 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
31286 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
31287 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
31288 "\x49\x46\x00\x88\x22\x8d\xce\xea"
31289 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
31290 "\x72\x11\xf5\x50\x73\x04\x40\x47"
31291 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
31292 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
31293 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
31294 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
31295 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
31296 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
31297 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
31298 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
31299 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
31300 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
31301 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
31302 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
31303 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
31304 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
31305 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
31306 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
31307 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
31308 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
31309 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
31310 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
31311 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
31312 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
31313 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
31314 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
31315 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
31316 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
31317 "\x65\x69\x8a\x45\x29\xef\x74\x85"
31318 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
31319 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
31320 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
31321 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
31322 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
31323 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
31324 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
31325 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
31326 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
31327 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
31328 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
31329 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
31330 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
31331 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
31332 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
31333 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
31334 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
31335 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
31336 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
31337 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
31338 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
31339 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
31340 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
31341 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
31342 "\x25\x94\x10\x5f\x40\x00\x64\x99"
31343 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
31344 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
31345 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
31346 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
31347 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
31348 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
31349 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
31350 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
31351 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
31352 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
31353 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
31354 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
31355 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
31356 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
31357 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
31358 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
31359 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
31360 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
31361 "\xb9\x83\x90\xef\x20\x59\x46\xff"
31362 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
31363 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
31364 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
31365 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
31366 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
31367 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
31368 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
31369 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
31370 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
31371 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
31372 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
31373 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
31374 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
31375 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
31376 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
31377 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
31378 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
31379 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
31380 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
31381 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
31382 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
31383 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
31384 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
31385 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
31386 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
31387 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
31388 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
31389 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
31390 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
31391 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
31392 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
31393 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
31394 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
31395 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
31396 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
31397 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
31398 "\xca\x34\x83\x27\x10\x5b\x68\x45"
31399 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
31400 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
31401 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
31402 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
31403 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
31404 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
31405 "\x72",
31406 .ctext = "\x3a\x92\xee\x53\x31\xaf\x2b\x60"
31407 "\x5f\x55\x8d\x00\x5d\xfc\x74\x97"
31408 "\x28\x54\xf4\xa5\x75\xf1\x9b\x25"
31409 "\x62\x1c\xc0\xe0\x13\xc8\x87\x53"
31410 "\xd0\xf3\xa7\x97\x1f\x3b\x1e\xea"
31411 "\xe0\xe5\x2a\xd1\xdd\xa4\x3b\x50"
31412 "\x45\xa3\x0d\x7e\x1b\xc9\xa0\xad"
31413 "\xb9\x2c\x54\xa6\xc7\x55\x16\xd0"
31414 "\xc5\x2e\x02\x44\x35\xd0\x7e\x67"
31415 "\xf2\xc4\x9b\xcd\x95\x10\xcc\x29"
31416 "\x4b\xfa\x86\x87\xbe\x40\x36\xbe"
31417 "\xe1\xa3\x52\x89\x55\x20\x9b\xc2"
31418 "\xab\xf2\x31\x34\x16\xad\xc8\x17"
31419 "\x65\x24\xc0\xff\x12\x37\xfe\x5a"
31420 "\x62\x3b\x59\x47\x6c\x5f\x3a\x8e"
31421 "\x3b\xd9\x30\xc8\x7f\x2f\x88\xda"
31422 "\x80\xfd\x02\xda\x7f\x9a\x7a\x73"
31423 "\x59\xc5\x34\x09\x9a\x11\xcb\xa7"
31424 "\xfc\xf6\xa1\xa0\x60\xfb\x43\xbb"
31425 "\xf1\xe9\xd7\xc6\x79\x27\x4e\xff"
31426 "\x22\xb4\x24\xbf\x76\xee\x47\xb9"
31427 "\x6d\x3f\x8b\xb0\x9c\x3c\x43\xdd"
31428 "\xff\x25\x2e\x6d\xa4\x2b\xfb\x5d"
31429 "\x1b\x97\x6c\x55\x0a\x82\x7a\x7b"
31430 "\x94\x34\xc2\xdb\x2f\x1f\xc1\xea"
31431 "\xd4\x4d\x17\x46\x3b\x51\x69\x09"
31432 "\xe4\x99\x32\x25\xfd\x94\xaf\xfb"
31433 "\x10\xf7\x4f\xdd\x0b\x3c\x8b\x41"
31434 "\xb3\x6a\xb7\xd1\x33\xa8\x0c\x2f"
31435 "\x62\x4c\x72\x11\xd7\x74\xe1\x3b"
31436 "\x38\x43\x66\x7b\x6c\x36\x48\xe7"
31437 "\xe3\xe7\x9d\xb9\x42\x73\x7a\x2a"
31438 "\x89\x20\x1a\x41\x80\x03\xf7\x8f"
31439 "\x61\x78\x13\xbf\xfe\x50\xf5\x04"
31440 "\x52\xf9\xac\x47\xf8\x62\x4b\xb2"
31441 "\x24\xa9\xbf\x64\xb0\x18\x69\xd2"
31442 "\xf5\xe4\xce\xc8\xb1\x87\x75\xd6"
31443 "\x2c\x24\x79\x00\x7d\x26\xfb\x44"
31444 "\xe7\x45\x7a\xee\x58\xa5\x83\xc1"
31445 "\xb4\x24\xab\x23\x2f\x4d\xd7\x4f"
31446 "\x1c\xc7\xaa\xa9\x50\xf4\xa3\x07"
31447 "\x12\x13\x89\x74\xdc\x31\x6a\xb2"
31448 "\xf5\x0f\x13\x8b\xb9\xdb\x85\x1f"
31449 "\xf5\xbc\x88\xd9\x95\xea\x31\x6c"
31450 "\x36\x60\xb6\x49\xdc\xc4\xf7\x55"
31451 "\x3f\x21\xc1\xb5\x92\x18\x5e\xbc"
31452 "\x9f\x87\x7f\xe7\x79\x25\x40\x33"
31453 "\xd6\xb9\x33\xd5\x50\xb3\xc7\x89"
31454 "\x1b\x12\xa0\x46\xdd\xa7\xd8\x3e"
31455 "\x71\xeb\x6f\x66\xa1\x26\x0c\x67"
31456 "\xab\xb2\x38\x58\x17\xd8\x44\x3b"
31457 "\x16\xf0\x8e\x62\x8d\x16\x10\x00"
31458 "\x32\x8b\xef\xb9\x28\xd3\xc5\xad"
31459 "\x0a\x19\xa2\xe4\x03\x27\x7d\x94"
31460 "\x06\x18\xcd\xd6\x27\x00\xf9\x1f"
31461 "\xb6\xb3\xfe\x96\x35\x5f\xc4\x1c"
31462 "\x07\x62\x10\x79\x68\x50\xf1\x7e"
31463 "\x29\xe7\xc4\xc4\xe7\xee\x54\xd6"
31464 "\x58\x76\x84\x6d\x8d\xe4\x59\x31"
31465 "\xe9\xf4\xdc\xa1\x1f\xe5\x1a\xd6"
31466 "\xe6\x64\x46\xf5\x77\x9c\x60\x7a"
31467 "\x5e\x62\xe3\x0a\xd4\x9f\x7a\x2d"
31468 "\x7a\xa5\x0a\x7b\x29\x86\x7a\x74"
31469 "\x74\x71\x6b\xca\x7d\x1d\xaa\xba"
31470 "\x39\x84\x43\x76\x35\xfe\x4f\x9b"
31471 "\xbb\xbb\xb5\x6a\x32\xb5\x5d\x41"
31472 "\x51\xf0\x5b\x68\x03\x47\x4b\x8a"
31473 "\xca\x88\xf6\x37\xbd\x73\x51\x70"
31474 "\x66\xfe\x9e\x5f\x21\x9c\xf3\xdd"
31475 "\xc3\xea\x27\xf9\x64\x94\xe1\x19"
31476 "\xa0\xa9\xab\x60\xe0\x0e\xf7\x78"
31477 "\x70\x86\xeb\xe0\xd1\x5c\x05\xd3"
31478 "\xd7\xca\xe0\xc0\x47\x47\x34\xee"
31479 "\x11\xa3\xa3\x54\x98\xb7\x49\x8e"
31480 "\x84\x28\x70\x2c\x9e\xfb\x55\x54"
31481 "\x4d\xf8\x86\xf7\x85\x7c\xbd\xf3"
31482 "\x17\xd8\x47\xcb\xac\xf4\x20\x85"
31483 "\x34\x66\xad\x37\x2d\x5e\x52\xda"
31484 "\x8a\xfe\x98\x55\x30\xe7\x2d\x2b"
31485 "\x19\x10\x8e\x7b\x66\x5e\xdc\xe0"
31486 "\x45\x1f\x7b\xb4\x08\xfb\x8f\xf6"
31487 "\x8c\x89\x21\x34\x55\x27\xb2\x76"
31488 "\xb2\x07\xd9\xd6\x68\x9b\xea\x6b"
31489 "\x2d\xb4\xc4\x35\xdd\xd2\x79\xae"
31490 "\xc7\xd6\x26\x7f\x12\x01\x8c\xa7"
31491 "\xe3\xdb\xa8\xf4\xf7\x2b\xec\x99"
31492 "\x11\x00\xf1\x35\x8c\xcf\xd5\xc9"
31493 "\xbd\x91\x36\x39\x70\xcf\x7d\x70"
31494 "\x47\x1a\xfc\x6b\x56\xe0\x3f\x9c"
31495 "\x60\x49\x01\x72\xa9\xaf\x2c\x9c"
31496 "\xe8\xab\xda\x8c\x14\x19\xf3\x75"
31497 "\x07\x17\x9d\x44\x67\x7a\x2e\xef"
31498 "\xb7\x83\x35\x4a\xd1\x3d\x1c\x84"
31499 "\x32\xdd\xaa\xea\xca\x1d\xdc\x72"
31500 "\x2c\xcc\x43\xcd\x5d\xe3\x21\xa4"
31501 "\xd0\x8a\x4b\x20\x12\xa3\xd5\x86"
31502 "\x76\x96\xff\x5f\x04\x57\x0f\xe6"
31503 "\xba\xe8\x76\x50\x0c\x64\x1d\x83"
31504 "\x9c\x9b\x9a\x9a\x58\x97\x9c\x5c"
31505 "\xb4\xa4\xa6\x3e\x19\xeb\x8f\x5a"
31506 "\x61\xb2\x03\x7b\x35\x19\xbe\xa7"
31507 "\x63\x0c\xfd\xdd\xf9\x90\x6c\x08"
31508 "\x19\x11\xd3\x65\x4a\xf5\x96\x92"
31509 "\x59\xaa\x9c\x61\x0c\x29\xa7\xf8"
31510 "\x14\x39\x37\xbf\x3c\xf2\x16\x72"
31511 "\x02\xfa\xa2\xf3\x18\x67\x5d\xcb"
31512 "\xdc\x4d\xbb\x96\xff\x70\x08\x2d"
31513 "\xc2\xa8\x52\xe1\x34\x5f\x72\xfe"
31514 "\x64\xbf\xca\xa7\x74\x38\xfb\x74"
31515 "\x55\x9c\xfa\x8a\xed\xfb\x98\xeb"
31516 "\x58\x2e\x6c\xe1\x52\x76\x86\xd7"
31517 "\xcf\xa1\xa4\xfc\xb2\x47\x41\x28"
31518 "\xa3\xc1\xe5\xfd\x53\x19\x28\x2b"
31519 "\x37\x04\x65\x96\x99\x7a\x28\x0f"
31520 "\x07\x68\x4b\xc7\x52\x0a\x55\x35"
31521 "\x40\x19\x95\x61\xe8\x59\x40\x1f"
31522 "\x9d\xbf\x78\x7d\x8f\x84\xff\x6f"
31523 "\xd0\xd5\x63\xd2\x22\xbd\xc8\x4e"
31524 "\xfb\xe7\x9f\x06\xe6\xe7\x39\x6d"
31525 "\x6a\x96\x9f\xf0\x74\x7e\xc9\x35"
31526 "\xb7\x26\xb8\x1c\x0a\xa6\x27\x2c"
31527 "\xa2\x2b\xfe\xbe\x0f\x07\x73\xae"
31528 "\x7f\x7f\x54\xf5\x7c\x6a\x0a\x56"
31529 "\x49\xd4\x81\xe5\x85\x53\x99\x1f"
31530 "\x95\x05\x13\x58\x8d\x0e\x1b\x90"
31531 "\xc3\x75\x48\x64\x58\x98\x67\x84"
31532 "\xae\xe2\x21\xa2\x8a\x04\x0a\x0b"
31533 "\x61\xaa\xb0\xd4\x28\x60\x7a\xf8"
31534 "\xbc\x52\xfb\x24\x7f\xed\x0d\x2a"
31535 "\x0a\xb2\xf9\xc6\x95\xb5\x11\xc9"
31536 "\xf4\x0f\x26\x11\xcf\x2a\x57\x87"
31537 "\x7a\xf3\xe7\x94\x65\xc2\xb5\xb3"
31538 "\xab\x98\xe3\xc1\x2b\x59\x19\x7c"
31539 "\xd6\xf3\xf9\xbf\xff\x6d\xc6\x82"
31540 "\x13\x2f\x4a\x2e\xcd\x26\xfe\x2d"
31541 "\x01\x70\xf4\xc2\x7f\x1f\x4c\xcb"
31542 "\x47\x77\x0c\xa0\xa3\x03\xec\xda"
31543 "\xa9\xbf\x0d\x2d\xae\xe4\xb8\x7b"
31544 "\xa9\xbc\x08\xb4\x68\x2e\xc5\x60"
31545 "\x8d\x87\x41\x2b\x0f\x69\xf0\xaf"
31546 "\x5f\xba\x72\x20\x0f\x33\xcd\x6d"
31547 "\x36\x7d\x7b\xd5\x05\xf1\x4b\x05"
31548 "\xc4\xfc\x7f\x80\xb9\x4d\xbd\xf7"
31549 "\x7c\x84\x07\x01\xc2\x40\x66\x5b"
31550 "\x98\xc7\x2c\xe3\x97\xfa\xdf\x87"
31551 "\xa0\x1f\xe9\x21\x42\x0f\x3b\xeb"
31552 "\x89\x1c\x3b\xca\x83\x61\x77\x68"
31553 "\x84\xbb\x60\x87\x38\x2e\x25\xd5"
31554 "\x9e\x04\x41\x70\xac\xda\xc0\x9c"
31555 "\x9c\x69\xea\x8d\x4e\x55\x2a\x29"
31556 "\xed\x05\x4b\x7b\x73\x71\x90\x59"
31557 "\x4d\xc8\xd8\x44\xf0\x4c\xe1\x5e"
31558 "\x84\x47\x55\xcc\x32\x3f\xe7\x97"
31559 "\x42\xc6\x32\xac\x40\xe5\xa5\xc7"
31560 "\x8b\xed\xdb\xf7\x83\xd6\xb1\xc2"
31561 "\x52\x5e\x34\xb7\xeb\x6e\xd9\xfc"
31562 "\xe5\x93\x9a\x97\x3e\xb0\xdc\xd9"
31563 "\xd7\x06\x10\xb6\x1d\x80\x59\xdd"
31564 "\x0d\xfe\x64\x35\xcd\x5d\xec\xf0"
31565 "\xba\xd0\x34\xc9\x2d\x91\xc5\x17"
31566 "\x11",
31567 .len = 1281,
31568 .also_non_np = 1,
31569 .np = 3,
31570 .tap = { 1200, 1, 80 },
31571 },
31572};
31573
Herbert Xuda7f0332008-07-31 17:08:25 +080031574/*
31575 * CTS (Cipher Text Stealing) mode tests
31576 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031577static const struct cipher_testvec cts_mode_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080031578 { /* from rfc3962 */
31579 .klen = 16,
31580 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31581 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031582 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080031583 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31584 "\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031585 .len = 17,
31586 .ctext = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
Herbert Xuda7f0332008-07-31 17:08:25 +080031587 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
31588 "\x97",
31589 }, {
31590 .klen = 16,
31591 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31592 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031593 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080031594 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31595 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31596 "\x20\x47\x61\x75\x27\x73\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031597 .len = 31,
31598 .ctext = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
Herbert Xuda7f0332008-07-31 17:08:25 +080031599 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
31600 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31601 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
31602 }, {
31603 .klen = 16,
31604 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31605 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031606 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080031607 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31608 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31609 "\x20\x47\x61\x75\x27\x73\x20\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031610 .len = 32,
31611 .ctext = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
Herbert Xuda7f0332008-07-31 17:08:25 +080031612 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
31613 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
31614 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
31615 }, {
31616 .klen = 16,
31617 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31618 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031619 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080031620 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31621 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31622 "\x20\x47\x61\x75\x27\x73\x20\x43"
31623 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
31624 "\x70\x6c\x65\x61\x73\x65\x2c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031625 .len = 47,
31626 .ctext = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
Herbert Xuda7f0332008-07-31 17:08:25 +080031627 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
31628 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
31629 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
31630 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31631 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
31632 }, {
31633 .klen = 16,
31634 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31635 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031636 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080031637 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31638 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31639 "\x20\x47\x61\x75\x27\x73\x20\x43"
31640 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
31641 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031642 .len = 48,
31643 .ctext = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
Herbert Xuda7f0332008-07-31 17:08:25 +080031644 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
31645 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
31646 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
31647 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31648 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
31649 }, {
31650 .klen = 16,
31651 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
31652 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031653 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080031654 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
31655 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
31656 "\x20\x47\x61\x75\x27\x73\x20\x43"
31657 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
31658 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
31659 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
31660 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070031661 .len = 64,
31662 .ctext = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
Herbert Xuda7f0332008-07-31 17:08:25 +080031663 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
31664 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
31665 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
31666 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
31667 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
31668 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
31669 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
31670 }
31671};
31672
31673/*
31674 * Compression stuff.
31675 */
31676#define COMP_BUF_SIZE 512
31677
31678struct comp_testvec {
31679 int inlen, outlen;
31680 char input[COMP_BUF_SIZE];
31681 char output[COMP_BUF_SIZE];
31682};
31683
31684/*
31685 * Deflate test vectors (null-terminated strings).
Geert Uytterhoevenbcf84a32008-12-18 17:17:46 +110031686 * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
Herbert Xuda7f0332008-07-31 17:08:25 +080031687 */
Geert Uytterhoeven0c01aed2009-03-04 15:42:15 +080031688
Eric Biggersb13b1e02017-02-24 15:46:59 -080031689static const struct comp_testvec deflate_comp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080031690 {
31691 .inlen = 70,
31692 .outlen = 38,
31693 .input = "Join us now and share the software "
31694 "Join us now and share the software ",
31695 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
31696 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
31697 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
31698 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
31699 "\x71\xbc\x08\x2b\x01\x00",
31700 }, {
31701 .inlen = 191,
31702 .outlen = 122,
31703 .input = "This document describes a compression method based on the DEFLATE"
31704 "compression algorithm. This document defines the application of "
31705 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31706 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
31707 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
31708 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
31709 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
31710 "\x68\x12\x51\xae\x76\x67\xd6\x27"
31711 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
31712 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
31713 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
31714 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
31715 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
31716 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
31717 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
31718 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
31719 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
31720 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
31721 "\xfa\x02",
31722 },
31723};
31724
Eric Biggersb13b1e02017-02-24 15:46:59 -080031725static const struct comp_testvec deflate_decomp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080031726 {
31727 .inlen = 122,
31728 .outlen = 191,
31729 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
31730 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
31731 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
31732 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
31733 "\x68\x12\x51\xae\x76\x67\xd6\x27"
31734 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
31735 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
31736 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
31737 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
31738 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
31739 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
31740 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
31741 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
31742 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
31743 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
31744 "\xfa\x02",
31745 .output = "This document describes a compression method based on the DEFLATE"
31746 "compression algorithm. This document defines the application of "
31747 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31748 }, {
31749 .inlen = 38,
31750 .outlen = 70,
31751 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
31752 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
31753 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
31754 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
31755 "\x71\xbc\x08\x2b\x01\x00",
31756 .output = "Join us now and share the software "
31757 "Join us now and share the software ",
31758 },
31759};
31760
Giovanni Cabiddua368f432017-04-21 21:54:30 +010031761static const struct comp_testvec zlib_deflate_comp_tv_template[] = {
31762 {
31763 .inlen = 70,
31764 .outlen = 44,
31765 .input = "Join us now and share the software "
31766 "Join us now and share the software ",
31767 .output = "\x78\x5e\xf3\xca\xcf\xcc\x53\x28"
31768 "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
31769 "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
31770 "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
31771 "\x29\x07\x71\xbc\x08\x2b\x01\x00"
31772 "\x7c\x65\x19\x3d",
31773 }, {
31774 .inlen = 191,
31775 .outlen = 129,
31776 .input = "This document describes a compression method based on the DEFLATE"
31777 "compression algorithm. This document defines the application of "
31778 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31779 .output = "\x78\x5e\x5d\xce\x41\x0a\xc3\x30"
31780 "\x0c\x04\xc0\xaf\xec\x0b\xf2\x87"
31781 "\xd2\xa6\x50\xe8\xc1\x07\x7f\x40"
31782 "\xb1\x95\x5a\x60\x5b\xc6\x56\x0f"
31783 "\xfd\x7d\x93\x1e\x42\xe8\x51\xec"
31784 "\xee\x20\x9f\x64\x20\x6a\x78\x17"
31785 "\xae\x86\xc8\x23\x74\x59\x78\x80"
31786 "\x10\xb4\xb4\xce\x63\x88\x56\x14"
31787 "\xb6\xa4\x11\x0b\x0d\x8e\xd8\x6e"
31788 "\x4b\x8c\xdb\x7c\x7f\x5e\xfc\x7c"
31789 "\xae\x51\x7e\x69\x17\x4b\x65\x02"
31790 "\xfc\x1f\xbc\x4a\xdd\xd8\x7d\x48"
31791 "\xad\x65\x09\x64\x3b\xac\xeb\xd9"
31792 "\xc2\x01\xc0\xf4\x17\x3c\x1c\x1c"
31793 "\x7d\xb2\x52\xc4\xf5\xf4\x8f\xeb"
31794 "\x6a\x1a\x34\x4f\x5f\x2e\x32\x45"
31795 "\x4e",
31796 },
31797};
31798
31799static const struct comp_testvec zlib_deflate_decomp_tv_template[] = {
31800 {
31801 .inlen = 128,
31802 .outlen = 191,
31803 .input = "\x78\x9c\x5d\x8d\x31\x0e\xc2\x30"
31804 "\x10\x04\xbf\xb2\x2f\xc8\x1f\x10"
31805 "\x04\x09\x89\xc2\x85\x3f\x70\xb1"
31806 "\x2f\xf8\x24\xdb\x67\xd9\x47\xc1"
31807 "\xef\x49\x68\x12\x51\xae\x76\x67"
31808 "\xd6\x27\x19\x88\x1a\xde\x85\xab"
31809 "\x21\xf2\x08\x5d\x16\x1e\x20\x04"
31810 "\x2d\xad\xf3\x18\xa2\x15\x85\x2d"
31811 "\x69\xc4\x42\x83\x23\xb6\x6c\x89"
31812 "\x71\x9b\xef\xcf\x8b\x9f\xcf\x33"
31813 "\xca\x2f\xed\x62\xa9\x4c\x80\xff"
31814 "\x13\xaf\x52\x37\xed\x0e\x52\x6b"
31815 "\x59\x02\xd9\x4e\xe8\x7a\x76\x1d"
31816 "\x02\x98\xfe\x8a\x87\x83\xa3\x4f"
31817 "\x56\x8a\xb8\x9e\x8e\x5c\x57\xd3"
31818 "\xa0\x79\xfa\x02\x2e\x32\x45\x4e",
31819 .output = "This document describes a compression method based on the DEFLATE"
31820 "compression algorithm. This document defines the application of "
31821 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
31822 }, {
31823 .inlen = 44,
31824 .outlen = 70,
31825 .input = "\x78\x9c\xf3\xca\xcf\xcc\x53\x28"
31826 "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
31827 "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
31828 "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
31829 "\x29\x07\x71\xbc\x08\x2b\x01\x00"
31830 "\x7c\x65\x19\x3d",
31831 .output = "Join us now and share the software "
31832 "Join us now and share the software ",
31833 },
31834};
31835
Herbert Xuda7f0332008-07-31 17:08:25 +080031836/*
31837 * LZO test vectors (null-terminated strings).
31838 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080031839static const struct comp_testvec lzo_comp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080031840 {
31841 .inlen = 70,
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020031842 .outlen = 57,
Herbert Xuda7f0332008-07-31 17:08:25 +080031843 .input = "Join us now and share the software "
31844 "Join us now and share the software ",
31845 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020031846 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
31847 "\x64\x20\x73\x68\x61\x72\x65\x20"
31848 "\x74\x68\x65\x20\x73\x6f\x66\x74"
31849 "\x77\x70\x01\x32\x88\x00\x0c\x65"
31850 "\x20\x74\x68\x65\x20\x73\x6f\x66"
31851 "\x74\x77\x61\x72\x65\x20\x11\x00"
31852 "\x00",
Herbert Xuda7f0332008-07-31 17:08:25 +080031853 }, {
31854 .inlen = 159,
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020031855 .outlen = 131,
Herbert Xuda7f0332008-07-31 17:08:25 +080031856 .input = "This document describes a compression method based on the LZO "
31857 "compression algorithm. This document defines the application of "
31858 "the LZO algorithm used in UBIFS.",
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020031859 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
Herbert Xuda7f0332008-07-31 17:08:25 +080031860 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
31861 "\x64\x65\x73\x63\x72\x69\x62\x65"
31862 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
31863 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
31864 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
31865 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020031866 "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
31867 "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
31868 "\x72\x69\x74\x68\x6d\x2e\x20\x20"
31869 "\x2e\x54\x01\x03\x66\x69\x6e\x65"
31870 "\x73\x20\x74\x06\x05\x61\x70\x70"
31871 "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
31872 "\x66\x88\x02\x60\x09\x27\xf0\x00"
31873 "\x0c\x20\x75\x73\x65\x64\x20\x69"
31874 "\x6e\x20\x55\x42\x49\x46\x53\x2e"
31875 "\x11\x00\x00",
Herbert Xuda7f0332008-07-31 17:08:25 +080031876 },
31877};
31878
Eric Biggersb13b1e02017-02-24 15:46:59 -080031879static const struct comp_testvec lzo_decomp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080031880 {
31881 .inlen = 133,
31882 .outlen = 159,
31883 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
31884 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
31885 "\x64\x65\x73\x63\x72\x69\x62\x65"
31886 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
31887 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
31888 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
31889 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
31890 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
31891 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
31892 "\x69\x74\x68\x6d\x2e\x20\x20\x54"
31893 "\x68\x69\x73\x2a\x54\x01\x02\x66"
31894 "\x69\x6e\x65\x73\x94\x06\x05\x61"
31895 "\x70\x70\x6c\x69\x63\x61\x74\x76"
31896 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
31897 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
31898 "\x20\x69\x6e\x20\x55\x42\x49\x46"
31899 "\x53\x2e\x11\x00\x00",
31900 .output = "This document describes a compression method based on the LZO "
31901 "compression algorithm. This document defines the application of "
31902 "the LZO algorithm used in UBIFS.",
31903 }, {
31904 .inlen = 46,
31905 .outlen = 70,
31906 .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
31907 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
31908 "\x64\x20\x73\x68\x61\x72\x65\x20"
31909 "\x74\x68\x65\x20\x73\x6f\x66\x74"
31910 "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
31911 "\x3d\x88\x00\x11\x00\x00",
31912 .output = "Join us now and share the software "
31913 "Join us now and share the software ",
31914 },
31915};
31916
31917/*
31918 * Michael MIC test vectors from IEEE 802.11i
31919 */
31920#define MICHAEL_MIC_TEST_VECTORS 6
31921
Eric Biggersb13b1e02017-02-24 15:46:59 -080031922static const struct hash_testvec michael_mic_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080031923 {
31924 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
31925 .ksize = 8,
31926 .plaintext = zeroed_string,
31927 .psize = 0,
31928 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
31929 },
31930 {
31931 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
31932 .ksize = 8,
31933 .plaintext = "M",
31934 .psize = 1,
31935 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
31936 },
31937 {
31938 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
31939 .ksize = 8,
31940 .plaintext = "Mi",
31941 .psize = 2,
31942 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
31943 },
31944 {
31945 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
31946 .ksize = 8,
31947 .plaintext = "Mic",
31948 .psize = 3,
31949 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
31950 },
31951 {
31952 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
31953 .ksize = 8,
31954 .plaintext = "Mich",
31955 .psize = 4,
31956 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
31957 },
31958 {
31959 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
31960 .ksize = 8,
31961 .plaintext = "Michael",
31962 .psize = 7,
31963 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
31964 }
31965};
31966
31967/*
Ard Biesheuvelebb34722015-05-04 11:00:17 +020031968 * CRC32 test vectors
31969 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080031970static const struct hash_testvec crc32_tv_template[] = {
Ard Biesheuvelebb34722015-05-04 11:00:17 +020031971 {
Eric Biggers9f50fd52018-05-19 22:07:42 -070031972 .psize = 0,
31973 .digest = "\x00\x00\x00\x00",
31974 },
31975 {
31976 .plaintext = "abcdefg",
31977 .psize = 7,
31978 .digest = "\xd8\xb5\x46\xac",
31979 },
31980 {
Ard Biesheuvelebb34722015-05-04 11:00:17 +020031981 .key = "\x87\xa9\xcb\xed",
31982 .ksize = 4,
31983 .psize = 0,
31984 .digest = "\x87\xa9\xcb\xed",
31985 },
31986 {
31987 .key = "\xff\xff\xff\xff",
31988 .ksize = 4,
31989 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
31990 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
31991 "\x11\x12\x13\x14\x15\x16\x17\x18"
31992 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
31993 "\x21\x22\x23\x24\x25\x26\x27\x28",
31994 .psize = 40,
31995 .digest = "\x3a\xdf\x4b\xb0",
31996 },
31997 {
31998 .key = "\xff\xff\xff\xff",
31999 .ksize = 4,
32000 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32001 "\x31\x32\x33\x34\x35\x36\x37\x38"
32002 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32003 "\x41\x42\x43\x44\x45\x46\x47\x48"
32004 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
32005 .psize = 40,
32006 .digest = "\xa9\x7a\x7f\x7b",
32007 },
32008 {
32009 .key = "\xff\xff\xff\xff",
32010 .ksize = 4,
32011 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
32012 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32013 "\x61\x62\x63\x64\x65\x66\x67\x68"
32014 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32015 "\x71\x72\x73\x74\x75\x76\x77\x78",
32016 .psize = 40,
32017 .digest = "\xba\xd3\xf8\x1c",
32018 },
32019 {
32020 .key = "\xff\xff\xff\xff",
32021 .ksize = 4,
32022 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32023 "\x81\x82\x83\x84\x85\x86\x87\x88"
32024 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32025 "\x91\x92\x93\x94\x95\x96\x97\x98"
32026 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
32027 .psize = 40,
32028 .digest = "\xa8\xa9\xc2\x02",
32029 },
32030 {
32031 .key = "\xff\xff\xff\xff",
32032 .ksize = 4,
32033 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32034 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32035 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32036 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32037 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
32038 .psize = 40,
32039 .digest = "\x27\xf0\x57\xe2",
32040 },
32041 {
32042 .key = "\xff\xff\xff\xff",
32043 .ksize = 4,
32044 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32045 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32046 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32047 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32048 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32049 .psize = 40,
32050 .digest = "\x49\x78\x10\x08",
32051 },
32052 {
32053 .key = "\x80\xea\xd3\xf1",
32054 .ksize = 4,
32055 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32056 "\x31\x32\x33\x34\x35\x36\x37\x38"
32057 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32058 "\x41\x42\x43\x44\x45\x46\x47\x48"
32059 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
32060 .psize = 40,
32061 .digest = "\x9a\xb1\xdc\xf0",
32062 },
32063 {
32064 .key = "\xf3\x4a\x1d\x5d",
32065 .ksize = 4,
32066 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
32067 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32068 "\x61\x62\x63\x64\x65\x66\x67\x68"
32069 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32070 "\x71\x72\x73\x74\x75\x76\x77\x78",
32071 .psize = 40,
32072 .digest = "\xb4\x97\xcc\xd4",
32073 },
32074 {
32075 .key = "\x2e\x80\x04\x59",
32076 .ksize = 4,
32077 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32078 "\x81\x82\x83\x84\x85\x86\x87\x88"
32079 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32080 "\x91\x92\x93\x94\x95\x96\x97\x98"
32081 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
32082 .psize = 40,
32083 .digest = "\x67\x9b\xfa\x79",
32084 },
32085 {
32086 .key = "\xa6\xcc\x19\x85",
32087 .ksize = 4,
32088 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32089 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32090 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32091 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32092 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
32093 .psize = 40,
32094 .digest = "\x24\xb5\x16\xef",
32095 },
32096 {
32097 .key = "\x41\xfc\xfe\x2d",
32098 .ksize = 4,
32099 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32100 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32101 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32102 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32103 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32104 .psize = 40,
32105 .digest = "\x15\x94\x80\x39",
32106 },
32107 {
32108 .key = "\xff\xff\xff\xff",
32109 .ksize = 4,
32110 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
32111 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
32112 "\x11\x12\x13\x14\x15\x16\x17\x18"
32113 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
32114 "\x21\x22\x23\x24\x25\x26\x27\x28"
32115 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32116 "\x31\x32\x33\x34\x35\x36\x37\x38"
32117 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32118 "\x41\x42\x43\x44\x45\x46\x47\x48"
32119 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
32120 "\x51\x52\x53\x54\x55\x56\x57\x58"
32121 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32122 "\x61\x62\x63\x64\x65\x66\x67\x68"
32123 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32124 "\x71\x72\x73\x74\x75\x76\x77\x78"
32125 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32126 "\x81\x82\x83\x84\x85\x86\x87\x88"
32127 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32128 "\x91\x92\x93\x94\x95\x96\x97\x98"
32129 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
32130 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32131 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32132 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32133 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32134 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
32135 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32136 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32137 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32138 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32139 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32140 .psize = 240,
32141 .digest = "\x6c\xc6\x56\xde",
32142 .np = 2,
32143 .tap = { 31, 209 }
32144 }, {
32145 .key = "\xff\xff\xff\xff",
32146 .ksize = 4,
32147 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
32148 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
32149 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
32150 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
32151 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
32152 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
32153 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
32154 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
32155 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
32156 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
32157 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
32158 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
32159 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
32160 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
32161 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
32162 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
32163 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
32164 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
32165 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
32166 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
32167 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
32168 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
32169 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
32170 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
32171 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
32172 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
32173 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
32174 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
32175 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
32176 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
32177 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
32178 "\x47\xde\x75\x0c\x80\x17\xae\x22"
32179 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
32180 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
32181 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
32182 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
32183 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
32184 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
32185 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
32186 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
32187 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
32188 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
32189 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
32190 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
32191 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
32192 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
32193 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
32194 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
32195 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
32196 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
32197 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
32198 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
32199 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
32200 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
32201 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
32202 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
32203 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
32204 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
32205 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
32206 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
32207 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
32208 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
32209 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
32210 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
32211 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
32212 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
32213 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
32214 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
32215 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
32216 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
32217 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
32218 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
32219 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
32220 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
32221 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
32222 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
32223 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
32224 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
32225 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
32226 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
32227 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
32228 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
32229 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
32230 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
32231 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
32232 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
32233 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
32234 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
32235 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
32236 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
32237 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
32238 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
32239 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
32240 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
32241 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
32242 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
32243 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
32244 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
32245 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
32246 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
32247 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
32248 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
32249 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
32250 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
32251 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
32252 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
32253 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
32254 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
32255 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
32256 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
32257 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
32258 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
32259 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
32260 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
32261 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
32262 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
32263 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
32264 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
32265 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
32266 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
32267 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
32268 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
32269 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
32270 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
32271 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
32272 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
32273 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
32274 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
32275 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
32276 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
32277 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
32278 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
32279 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
32280 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
32281 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
32282 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
32283 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
32284 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
32285 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
32286 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
32287 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
32288 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
32289 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
32290 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
32291 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
32292 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
32293 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
32294 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
32295 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
32296 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
32297 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
32298 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
32299 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
32300 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
32301 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
32302 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
32303 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
32304 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
32305 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
32306 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
32307 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
32308 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
32309 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
32310 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
32311 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
32312 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
32313 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
32314 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
32315 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
32316 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
32317 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
32318 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
32319 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
32320 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
32321 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
32322 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
32323 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
32324 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
32325 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
32326 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
32327 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
32328 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
32329 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
32330 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
32331 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
32332 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
32333 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
32334 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
32335 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
32336 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
32337 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
32338 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
32339 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
32340 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
32341 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
32342 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
32343 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
32344 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
32345 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
32346 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
32347 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
32348 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
32349 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
32350 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
32351 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
32352 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
32353 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
32354 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
32355 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
32356 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
32357 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
32358 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
32359 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
32360 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
32361 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
32362 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
32363 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
32364 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
32365 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
32366 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
32367 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
32368 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
32369 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
32370 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
32371 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
32372 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
32373 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
32374 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
32375 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
32376 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
32377 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
32378 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
32379 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
32380 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
32381 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
32382 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
32383 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
32384 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
32385 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
32386 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
32387 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
32388 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
32389 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
32390 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
32391 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
32392 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
32393 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
32394 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
32395 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
32396 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
32397 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
32398 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
32399 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
32400 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
32401 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
32402 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
32403 .psize = 2048,
32404 .digest = "\xfb\x3a\x7a\xda",
32405 }
32406};
32407
32408/*
Herbert Xuda7f0332008-07-31 17:08:25 +080032409 * CRC32C test vectors
32410 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080032411static const struct hash_testvec crc32c_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080032412 {
32413 .psize = 0,
32414 .digest = "\x00\x00\x00\x00",
32415 },
32416 {
Eric Biggers9f50fd52018-05-19 22:07:42 -070032417 .plaintext = "abcdefg",
32418 .psize = 7,
32419 .digest = "\x41\xf4\x27\xe6",
32420 },
32421 {
Herbert Xuda7f0332008-07-31 17:08:25 +080032422 .key = "\x87\xa9\xcb\xed",
32423 .ksize = 4,
32424 .psize = 0,
32425 .digest = "\x78\x56\x34\x12",
32426 },
32427 {
32428 .key = "\xff\xff\xff\xff",
32429 .ksize = 4,
32430 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
32431 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
32432 "\x11\x12\x13\x14\x15\x16\x17\x18"
32433 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
32434 "\x21\x22\x23\x24\x25\x26\x27\x28",
32435 .psize = 40,
32436 .digest = "\x7f\x15\x2c\x0e",
32437 },
32438 {
32439 .key = "\xff\xff\xff\xff",
32440 .ksize = 4,
32441 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32442 "\x31\x32\x33\x34\x35\x36\x37\x38"
32443 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32444 "\x41\x42\x43\x44\x45\x46\x47\x48"
32445 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
32446 .psize = 40,
32447 .digest = "\xf6\xeb\x80\xe9",
32448 },
32449 {
32450 .key = "\xff\xff\xff\xff",
32451 .ksize = 4,
32452 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
32453 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32454 "\x61\x62\x63\x64\x65\x66\x67\x68"
32455 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32456 "\x71\x72\x73\x74\x75\x76\x77\x78",
32457 .psize = 40,
32458 .digest = "\xed\xbd\x74\xde",
32459 },
32460 {
32461 .key = "\xff\xff\xff\xff",
32462 .ksize = 4,
32463 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32464 "\x81\x82\x83\x84\x85\x86\x87\x88"
32465 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32466 "\x91\x92\x93\x94\x95\x96\x97\x98"
32467 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
32468 .psize = 40,
32469 .digest = "\x62\xc8\x79\xd5",
32470 },
32471 {
32472 .key = "\xff\xff\xff\xff",
32473 .ksize = 4,
32474 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32475 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32476 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32477 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32478 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
32479 .psize = 40,
32480 .digest = "\xd0\x9a\x97\xba",
32481 },
32482 {
32483 .key = "\xff\xff\xff\xff",
32484 .ksize = 4,
32485 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32486 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32487 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32488 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32489 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32490 .psize = 40,
32491 .digest = "\x13\xd9\x29\x2b",
32492 },
32493 {
32494 .key = "\x80\xea\xd3\xf1",
32495 .ksize = 4,
32496 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32497 "\x31\x32\x33\x34\x35\x36\x37\x38"
32498 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32499 "\x41\x42\x43\x44\x45\x46\x47\x48"
32500 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
32501 .psize = 40,
32502 .digest = "\x0c\xb5\xe2\xa2",
32503 },
32504 {
32505 .key = "\xf3\x4a\x1d\x5d",
32506 .ksize = 4,
32507 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
32508 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32509 "\x61\x62\x63\x64\x65\x66\x67\x68"
32510 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32511 "\x71\x72\x73\x74\x75\x76\x77\x78",
32512 .psize = 40,
32513 .digest = "\xd1\x7f\xfb\xa6",
32514 },
32515 {
32516 .key = "\x2e\x80\x04\x59",
32517 .ksize = 4,
32518 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32519 "\x81\x82\x83\x84\x85\x86\x87\x88"
32520 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32521 "\x91\x92\x93\x94\x95\x96\x97\x98"
32522 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
32523 .psize = 40,
32524 .digest = "\x59\x33\xe6\x7a",
32525 },
32526 {
32527 .key = "\xa6\xcc\x19\x85",
32528 .ksize = 4,
32529 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32530 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32531 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32532 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32533 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
32534 .psize = 40,
32535 .digest = "\xbe\x03\x01\xd2",
32536 },
32537 {
32538 .key = "\x41\xfc\xfe\x2d",
32539 .ksize = 4,
32540 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32541 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32542 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32543 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32544 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32545 .psize = 40,
32546 .digest = "\x75\xd3\xc5\x24",
32547 },
32548 {
32549 .key = "\xff\xff\xff\xff",
32550 .ksize = 4,
32551 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
32552 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
32553 "\x11\x12\x13\x14\x15\x16\x17\x18"
32554 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
32555 "\x21\x22\x23\x24\x25\x26\x27\x28"
32556 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
32557 "\x31\x32\x33\x34\x35\x36\x37\x38"
32558 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
32559 "\x41\x42\x43\x44\x45\x46\x47\x48"
32560 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
32561 "\x51\x52\x53\x54\x55\x56\x57\x58"
32562 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
32563 "\x61\x62\x63\x64\x65\x66\x67\x68"
32564 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
32565 "\x71\x72\x73\x74\x75\x76\x77\x78"
32566 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
32567 "\x81\x82\x83\x84\x85\x86\x87\x88"
32568 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
32569 "\x91\x92\x93\x94\x95\x96\x97\x98"
32570 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
32571 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
32572 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
32573 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
32574 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
32575 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
32576 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
32577 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
32578 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
32579 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
32580 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
32581 .psize = 240,
32582 .digest = "\x75\xd3\xc5\x24",
32583 .np = 2,
32584 .tap = { 31, 209 }
Jussi Kivilinna6726ec42012-11-13 12:02:30 +020032585 }, {
32586 .key = "\xff\xff\xff\xff",
32587 .ksize = 4,
32588 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
32589 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
32590 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
32591 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
32592 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
32593 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
32594 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
32595 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
32596 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
32597 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
32598 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
32599 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
32600 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
32601 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
32602 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
32603 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
32604 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
32605 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
32606 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
32607 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
32608 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
32609 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
32610 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
32611 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
32612 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
32613 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
32614 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
32615 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
32616 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
32617 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
32618 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
32619 "\x47\xde\x75\x0c\x80\x17\xae\x22"
32620 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
32621 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
32622 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
32623 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
32624 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
32625 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
32626 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
32627 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
32628 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
32629 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
32630 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
32631 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
32632 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
32633 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
32634 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
32635 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
32636 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
32637 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
32638 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
32639 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
32640 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
32641 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
32642 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
32643 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
32644 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
32645 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
32646 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
32647 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
32648 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
32649 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
32650 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
32651 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
32652 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
32653 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
32654 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
32655 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
32656 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
32657 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
32658 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
32659 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
32660 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
32661 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
32662 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
32663 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
32664 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
32665 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
32666 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
32667 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
32668 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
32669 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
32670 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
32671 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
32672 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
32673 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
32674 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
32675 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
32676 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
32677 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
32678 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
32679 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
32680 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
32681 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
32682 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
32683 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
32684 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
32685 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
32686 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
32687 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
32688 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
32689 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
32690 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
32691 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
32692 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
32693 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
32694 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
32695 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
32696 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
32697 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
32698 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
32699 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
32700 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
32701 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
32702 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
32703 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
32704 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
32705 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
32706 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
32707 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
32708 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
32709 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
32710 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
32711 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
32712 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
32713 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
32714 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
32715 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
32716 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
32717 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
32718 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
32719 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
32720 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
32721 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
32722 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
32723 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
32724 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
32725 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
32726 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
32727 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
32728 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
32729 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
32730 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
32731 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
32732 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
32733 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
32734 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
32735 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
32736 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
32737 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
32738 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
32739 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
32740 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
32741 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
32742 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
32743 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
32744 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
32745 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
32746 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
32747 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
32748 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
32749 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
32750 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
32751 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
32752 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
32753 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
32754 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
32755 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
32756 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
32757 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
32758 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
32759 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
32760 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
32761 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
32762 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
32763 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
32764 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
32765 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
32766 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
32767 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
32768 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
32769 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
32770 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
32771 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
32772 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
32773 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
32774 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
32775 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
32776 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
32777 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
32778 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
32779 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
32780 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
32781 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
32782 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
32783 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
32784 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
32785 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
32786 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
32787 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
32788 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
32789 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
32790 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
32791 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
32792 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
32793 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
32794 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
32795 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
32796 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
32797 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
32798 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
32799 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
32800 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
32801 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
32802 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
32803 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
32804 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
32805 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
32806 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
32807 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
32808 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
32809 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
32810 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
32811 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
32812 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
32813 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
32814 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
32815 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
32816 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
32817 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
32818 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
32819 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
32820 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
32821 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
32822 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
32823 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
32824 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
32825 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
32826 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
32827 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
32828 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
32829 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
32830 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
32831 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
32832 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
32833 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
32834 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
32835 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
32836 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
32837 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
32838 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
32839 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
32840 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
32841 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
32842 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
32843 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
32844 .psize = 2048,
32845 .digest = "\xec\x26\x4d\x95",
32846 }
Herbert Xuda7f0332008-07-31 17:08:25 +080032847};
32848
Eric Biggersb13b1e02017-02-24 15:46:59 -080032849static const struct comp_testvec lz4_comp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020032850 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080032851 .inlen = 255,
32852 .outlen = 218,
32853 .input = "LZ4 is lossless compression algorithm, providing"
32854 " compression speed at 400 MB/s per core, scalable "
32855 "with multi-cores CPU. It features an extremely fast "
32856 "decoder, with speed in multiple GB/s per core, "
32857 "typically reaching RAM speed limits on multi-core "
32858 "systems.",
32859 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32860 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32861 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32862 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32863 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32864 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32865 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32866 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32867 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32868 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32869 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32870 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32871 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32872 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32873 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
32874 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
32875 "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
32876
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020032877 },
32878};
32879
Eric Biggersb13b1e02017-02-24 15:46:59 -080032880static const struct comp_testvec lz4_decomp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020032881 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080032882 .inlen = 218,
32883 .outlen = 255,
32884 .input = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32885 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32886 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32887 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32888 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32889 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32890 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32891 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32892 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32893 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32894 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32895 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32896 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32897 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32898 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
32899 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
32900 "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
32901 .output = "LZ4 is lossless compression algorithm, providing"
32902 " compression speed at 400 MB/s per core, scalable "
32903 "with multi-cores CPU. It features an extremely fast "
32904 "decoder, with speed in multiple GB/s per core, "
32905 "typically reaching RAM speed limits on multi-core "
32906 "systems.",
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020032907 },
32908};
32909
Eric Biggersb13b1e02017-02-24 15:46:59 -080032910static const struct comp_testvec lz4hc_comp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020032911 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080032912 .inlen = 255,
32913 .outlen = 216,
32914 .input = "LZ4 is lossless compression algorithm, providing"
32915 " compression speed at 400 MB/s per core, scalable "
32916 "with multi-cores CPU. It features an extremely fast "
32917 "decoder, with speed in multiple GB/s per core, "
32918 "typically reaching RAM speed limits on multi-core "
32919 "systems.",
32920 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32921 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32922 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32923 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32924 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32925 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32926 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32927 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32928 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32929 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32930 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32931 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32932 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32933 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32934 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
32935 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
32936 "\x73\x79\x73\x74\x65\x6d\x73\x2e",
32937
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020032938 },
32939};
32940
Eric Biggersb13b1e02017-02-24 15:46:59 -080032941static const struct comp_testvec lz4hc_decomp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020032942 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080032943 .inlen = 216,
32944 .outlen = 255,
32945 .input = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
32946 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
32947 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
32948 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
32949 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
32950 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
32951 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
32952 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
32953 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
32954 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
32955 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
32956 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
32957 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
32958 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
32959 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
32960 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
32961 "\x73\x79\x73\x74\x65\x6d\x73\x2e",
32962 .output = "LZ4 is lossless compression algorithm, providing"
32963 " compression speed at 400 MB/s per core, scalable "
32964 "with multi-cores CPU. It features an extremely fast "
32965 "decoder, with speed in multiple GB/s per core, "
32966 "typically reaching RAM speed limits on multi-core "
32967 "systems.",
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020032968 },
32969};
32970
Nick Terrelld28fc3d2018-03-30 12:14:53 -070032971static const struct comp_testvec zstd_comp_tv_template[] = {
32972 {
32973 .inlen = 68,
32974 .outlen = 39,
32975 .input = "The algorithm is zstd. "
32976 "The algorithm is zstd. "
32977 "The algorithm is zstd.",
32978 .output = "\x28\xb5\x2f\xfd\x00\x50\xf5\x00\x00\xb8\x54\x68\x65"
32979 "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
32980 "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
32981 ,
32982 },
32983 {
32984 .inlen = 244,
32985 .outlen = 151,
32986 .input = "zstd, short for Zstandard, is a fast lossless "
32987 "compression algorithm, targeting real-time "
32988 "compression scenarios at zlib-level and better "
32989 "compression ratios. The zstd compression library "
32990 "provides in-memory compression and decompression "
32991 "functions.",
32992 .output = "\x28\xb5\x2f\xfd\x00\x50\x75\x04\x00\x42\x4b\x1e\x17"
32993 "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
32994 "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
32995 "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
32996 "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
32997 "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
32998 "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
32999 "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
33000 "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
33001 "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
33002 "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
33003 "\x20\xa9\x0e\x82\xb9\x43\x45\x01",
33004 },
33005};
33006
33007static const struct comp_testvec zstd_decomp_tv_template[] = {
33008 {
33009 .inlen = 43,
33010 .outlen = 68,
33011 .input = "\x28\xb5\x2f\xfd\x04\x50\xf5\x00\x00\xb8\x54\x68\x65"
33012 "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
33013 "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
33014 "\x6b\xf4\x13\x35",
33015 .output = "The algorithm is zstd. "
33016 "The algorithm is zstd. "
33017 "The algorithm is zstd.",
33018 },
33019 {
33020 .inlen = 155,
33021 .outlen = 244,
33022 .input = "\x28\xb5\x2f\xfd\x04\x50\x75\x04\x00\x42\x4b\x1e\x17"
33023 "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
33024 "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
33025 "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
33026 "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
33027 "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
33028 "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
33029 "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
33030 "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
33031 "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
33032 "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
33033 "\x20\xa9\x0e\x82\xb9\x43\x45\x01\xaa\x6d\xda\x0d",
33034 .output = "zstd, short for Zstandard, is a fast lossless "
33035 "compression algorithm, targeting real-time "
33036 "compression scenarios at zlib-level and better "
33037 "compression ratios. The zstd compression library "
33038 "provides in-memory compression and decompression "
33039 "functions.",
33040 },
33041};
Herbert Xuda7f0332008-07-31 17:08:25 +080033042#endif /* _CRYPTO_TESTMGR_H */