blob: d1d89101f1b55350325dfa4e87a5e4bdf0f30356 [file] [log] [blame]
Thomas Gleixner2874c5f2019-05-27 08:55:01 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
Herbert Xuda7f0332008-07-31 17:08:25 +08002/*
3 * Algorithm testing framework and tests.
4 *
5 * Copyright (c) 2002 James Morris <jmorris@intercode.com.au>
6 * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org>
7 * Copyright (c) 2007 Nokia Siemens Networks
8 * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au>
Eric Biggers4cc2dcf2019-01-31 23:51:48 -08009 * Copyright (c) 2019 Google LLC
Herbert Xuda7f0332008-07-31 17:08:25 +080010 *
Adrian Hoban69435b92010-11-04 15:02:04 -040011 * Updated RFC4106 AES-GCM testing. Some test vectors were taken from
12 * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/
13 * gcm/gcm-test-vectors.tar.gz
14 * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com)
15 * Adrian Hoban <adrian.hoban@intel.com>
16 * Gabriele Paoloni <gabriele.paoloni@intel.com>
17 * Tadeusz Struk (tadeusz.struk@intel.com)
18 * Copyright (c) 2010, Intel Corporation.
Herbert Xuda7f0332008-07-31 17:08:25 +080019 */
20#ifndef _CRYPTO_TESTMGR_H
21#define _CRYPTO_TESTMGR_H
22
Vitaly Chikunovf1774cb2019-04-11 18:51:17 +030023#include <linux/oid_registry.h>
24
Herbert Xuda7f0332008-07-31 17:08:25 +080025#define MAX_IVLEN 32
26
Eric Biggers4cc2dcf2019-01-31 23:51:48 -080027/*
28 * hash_testvec: structure to describe a hash (message digest) test
29 * @key: Pointer to key (NULL if none)
30 * @plaintext: Pointer to source data
31 * @digest: Pointer to expected digest
32 * @psize: Length of source data in bytes
33 * @ksize: Length of @key in bytes (0 if no key)
Eric Biggers5283a8e2019-04-11 21:57:36 -070034 * @setkey_error: Expected error from setkey()
35 * @digest_error: Expected error from digest()
Eric Biggers4cc2dcf2019-01-31 23:51:48 -080036 */
Herbert Xuda7f0332008-07-31 17:08:25 +080037struct hash_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -080038 const char *key;
39 const char *plaintext;
40 const char *digest;
Eric Biggerse944eab2019-05-20 09:47:19 -070041 unsigned int psize;
Eric Biggers26609a22018-11-16 17:26:29 -080042 unsigned short ksize;
Eric Biggers5283a8e2019-04-11 21:57:36 -070043 int setkey_error;
44 int digest_error;
Herbert Xuda7f0332008-07-31 17:08:25 +080045};
46
LABBE Corentina7eed152015-06-05 11:39:22 +020047/*
Eric Biggers92a4c9f2018-05-20 22:50:29 -070048 * cipher_testvec: structure to describe a symmetric cipher test
49 * @key: Pointer to key
50 * @klen: Length of @key in bytes
Eric Biggers8efd9722019-02-14 00:03:51 -080051 * @iv: Pointer to IV. If NULL, an all-zeroes IV is used.
52 * @iv_out: Pointer to output IV, if applicable for the cipher.
Eric Biggers92a4c9f2018-05-20 22:50:29 -070053 * @ptext: Pointer to plaintext
54 * @ctext: Pointer to ciphertext
55 * @len: Length of @ptext and @ctext in bytes
Eric Biggers231baec2019-01-18 22:48:00 -080056 * @wk: Does the test need CRYPTO_TFM_REQ_FORBID_WEAK_KEYS?
LABBE Corentina7eed152015-06-05 11:39:22 +020057 * ( e.g. test needs to fail due to a weak key )
Stephan Mueller10faa8c2016-08-25 15:15:01 +020058 * @fips_skip: Skip the test vector in FIPS mode
Eric Biggers8efd9722019-02-14 00:03:51 -080059 * @generates_iv: Encryption should ignore the given IV, and output @iv_out.
60 * Decryption takes @iv_out. Needed for AES Keywrap ("kw(aes)").
Eric Biggers5283a8e2019-04-11 21:57:36 -070061 * @setkey_error: Expected error from setkey()
62 * @crypt_error: Expected error from encrypt() and decrypt()
LABBE Corentina7eed152015-06-05 11:39:22 +020063 */
Herbert Xuda7f0332008-07-31 17:08:25 +080064struct cipher_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -080065 const char *key;
66 const char *iv;
Eric Biggers8efd9722019-02-14 00:03:51 -080067 const char *iv_out;
Eric Biggers92a4c9f2018-05-20 22:50:29 -070068 const char *ptext;
69 const char *ctext;
Herbert Xuda7f0332008-07-31 17:08:25 +080070 unsigned char wk; /* weak key flag */
Eric Biggersd435e102019-04-11 21:57:40 -070071 unsigned short klen;
Eric Biggerse944eab2019-05-20 09:47:19 -070072 unsigned int len;
Stephan Mueller10faa8c2016-08-25 15:15:01 +020073 bool fips_skip;
Eric Biggers92a4c9f2018-05-20 22:50:29 -070074 bool generates_iv;
Eric Biggers5283a8e2019-04-11 21:57:36 -070075 int setkey_error;
76 int crypt_error;
Herbert Xuda7f0332008-07-31 17:08:25 +080077};
78
Eric Biggersa0d608ee2019-01-13 15:32:28 -080079/*
80 * aead_testvec: structure to describe an AEAD test
81 * @key: Pointer to key
82 * @iv: Pointer to IV. If NULL, an all-zeroes IV is used.
83 * @ptext: Pointer to plaintext
84 * @assoc: Pointer to associated data
85 * @ctext: Pointer to the full authenticated ciphertext. For AEADs that
86 * produce a separate "ciphertext" and "authentication tag", these
87 * two parts are concatenated: ciphertext || tag.
Eric Biggersa0d608ee2019-01-13 15:32:28 -080088 * @novrfy: Decryption verification failure expected?
Eric Biggers231baec2019-01-18 22:48:00 -080089 * @wk: Does the test need CRYPTO_TFM_REQ_FORBID_WEAK_KEYS?
Eric Biggersa0d608ee2019-01-13 15:32:28 -080090 * (e.g. setkey() needs to fail due to a weak key)
91 * @klen: Length of @key in bytes
92 * @plen: Length of @ptext in bytes
93 * @alen: Length of @assoc in bytes
94 * @clen: Length of @ctext in bytes
Eric Biggers5283a8e2019-04-11 21:57:36 -070095 * @setkey_error: Expected error from setkey()
96 * @setauthsize_error: Expected error from setauthsize()
97 * @crypt_error: Expected error from encrypt() and decrypt()
Eric Biggersa0d608ee2019-01-13 15:32:28 -080098 */
Herbert Xuda7f0332008-07-31 17:08:25 +080099struct aead_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -0800100 const char *key;
101 const char *iv;
Eric Biggersa0d608ee2019-01-13 15:32:28 -0800102 const char *ptext;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800103 const char *assoc;
Eric Biggersa0d608ee2019-01-13 15:32:28 -0800104 const char *ctext;
Eric Biggersa0d608ee2019-01-13 15:32:28 -0800105 unsigned char novrfy;
106 unsigned char wk;
Herbert Xuda7f0332008-07-31 17:08:25 +0800107 unsigned char klen;
Eric Biggerse944eab2019-05-20 09:47:19 -0700108 unsigned int plen;
109 unsigned int clen;
110 unsigned int alen;
Eric Biggers5283a8e2019-04-11 21:57:36 -0700111 int setkey_error;
112 int setauthsize_error;
113 int crypt_error;
Herbert Xuda7f0332008-07-31 17:08:25 +0800114};
115
Jarod Wilson7647d6c2009-05-04 19:44:50 +0800116struct cprng_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -0800117 const char *key;
118 const char *dt;
119 const char *v;
120 const char *result;
Jarod Wilson7647d6c2009-05-04 19:44:50 +0800121 unsigned char klen;
122 unsigned short dtlen;
123 unsigned short vlen;
124 unsigned short rlen;
125 unsigned short loops;
126};
127
Stephan Mueller3332ee22014-05-31 17:24:38 +0200128struct drbg_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -0800129 const unsigned char *entropy;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200130 size_t entropylen;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800131 const unsigned char *entpra;
132 const unsigned char *entprb;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200133 size_t entprlen;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800134 const unsigned char *addtla;
135 const unsigned char *addtlb;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200136 size_t addtllen;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800137 const unsigned char *pers;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200138 size_t perslen;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800139 const unsigned char *expected;
Stephan Mueller3332ee22014-05-31 17:24:38 +0200140 size_t expectedlen;
141};
142
Tadeusz Struk946cc462015-06-16 10:31:06 -0700143struct akcipher_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -0800144 const unsigned char *key;
Vitaly Chikunovf1774cb2019-04-11 18:51:17 +0300145 const unsigned char *params;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800146 const unsigned char *m;
147 const unsigned char *c;
Tadeusz Struk946cc462015-06-16 10:31:06 -0700148 unsigned int key_len;
Vitaly Chikunovf1774cb2019-04-11 18:51:17 +0300149 unsigned int param_len;
Tadeusz Struk946cc462015-06-16 10:31:06 -0700150 unsigned int m_size;
151 unsigned int c_size;
152 bool public_key_vec;
Stephan Mueller12071072017-06-12 23:27:51 +0200153 bool siggen_sigver_test;
Vitaly Chikunovf1774cb2019-04-11 18:51:17 +0300154 enum OID algo;
Tadeusz Struk946cc462015-06-16 10:31:06 -0700155};
156
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100157struct kpp_testvec {
Eric Biggersb13b1e02017-02-24 15:46:59 -0800158 const unsigned char *secret;
Tudor-Dan Ambarus47d3fd32017-05-30 17:52:49 +0300159 const unsigned char *b_secret;
Eric Biggersb13b1e02017-02-24 15:46:59 -0800160 const unsigned char *b_public;
161 const unsigned char *expected_a_public;
162 const unsigned char *expected_ss;
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100163 unsigned short secret_size;
Tudor-Dan Ambarus47d3fd32017-05-30 17:52:49 +0300164 unsigned short b_secret_size;
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100165 unsigned short b_public_size;
166 unsigned short expected_a_public_size;
167 unsigned short expected_ss_size;
Tudor-Dan Ambarus47d3fd32017-05-30 17:52:49 +0300168 bool genkey;
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100169};
170
Eric Biggersb13b1e02017-02-24 15:46:59 -0800171static const char zeroed_string[48];
Herbert Xuda7f0332008-07-31 17:08:25 +0800172
173/*
Tadeusz Struk946cc462015-06-16 10:31:06 -0700174 * RSA test vectors. Borrowed from openSSL.
175 */
Eric Biggersb13b1e02017-02-24 15:46:59 -0800176static const struct akcipher_testvec rsa_tv_template[] = {
Tadeusz Struk946cc462015-06-16 10:31:06 -0700177 {
178#ifndef CONFIG_CRYPTO_FIPS
179 .key =
Tadeusz Struk22287b02015-10-08 09:26:55 -0700180 "\x30\x81\x9A" /* sequence of 154 bytes */
181 "\x02\x01\x01" /* version - integer of 1 byte */
Tadeusz Struk946cc462015-06-16 10:31:06 -0700182 "\x02\x41" /* modulus - integer of 65 bytes */
183 "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F"
184 "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5"
185 "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93"
186 "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1"
187 "\xF5"
188 "\x02\x01\x11" /* public key - integer of 1 byte */
189 "\x02\x40" /* private key - integer of 64 bytes */
190 "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44"
191 "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64"
192 "\x79\x7C\x3F\xA7\xA2\xCD\xCB\x3C\xD1\xE0\xBD\xBA\x26\x54\xB4\xF9"
Tadeusz Struk22287b02015-10-08 09:26:55 -0700193 "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51"
194 "\x02\x01\x00" /* prime1 - integer of 1 byte */
195 "\x02\x01\x00" /* prime2 - integer of 1 byte */
196 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
197 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
198 "\x02\x01\x00", /* coefficient - integer of 1 byte */
Tadeusz Struk946cc462015-06-16 10:31:06 -0700199 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
200 .c =
201 "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63"
202 "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a"
203 "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53"
204 "\x9f\x6e\xbd\x4c\x55\x84\x0c\x9b\xcf\x1a\x4b\x51\x1e\x9e\x0c\x06",
Tadeusz Struk22287b02015-10-08 09:26:55 -0700205 .key_len = 157,
Tadeusz Struk946cc462015-06-16 10:31:06 -0700206 .m_size = 8,
207 .c_size = 64,
208 }, {
209 .key =
Tadeusz Struk22287b02015-10-08 09:26:55 -0700210 "\x30\x82\x01\x1D" /* sequence of 285 bytes */
211 "\x02\x01\x01" /* version - integer of 1 byte */
Tadeusz Struk946cc462015-06-16 10:31:06 -0700212 "\x02\x81\x81" /* modulus - integer of 129 bytes */
213 "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71"
214 "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5"
215 "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD"
216 "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80"
217 "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25"
218 "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39"
219 "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68"
220 "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD"
221 "\xCB"
222 "\x02\x01\x11" /* public key - integer of 1 byte */
223 "\x02\x81\x81" /* private key - integer of 129 bytes */
224 "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD"
225 "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41"
226 "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69"
227 "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA"
228 "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94"
229 "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A"
230 "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94"
231 "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3"
Tadeusz Struk22287b02015-10-08 09:26:55 -0700232 "\xC1"
233 "\x02\x01\x00" /* prime1 - integer of 1 byte */
234 "\x02\x01\x00" /* prime2 - integer of 1 byte */
235 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
236 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
237 "\x02\x01\x00", /* coefficient - integer of 1 byte */
238 .key_len = 289,
Tadeusz Struk946cc462015-06-16 10:31:06 -0700239 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
240 .c =
241 "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95"
242 "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72"
243 "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f"
244 "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34"
245 "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7"
246 "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13"
247 "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75"
248 "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b",
249 .m_size = 8,
250 .c_size = 128,
251 }, {
252#endif
253 .key =
Tadeusz Struk22287b02015-10-08 09:26:55 -0700254 "\x30\x82\x02\x1F" /* sequence of 543 bytes */
255 "\x02\x01\x01" /* version - integer of 1 byte */
Tadeusz Struk946cc462015-06-16 10:31:06 -0700256 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
257 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
258 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
259 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
260 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
261 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
262 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
263 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
264 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
265 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
266 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
267 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
268 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
269 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
270 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
271 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
272 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
273 "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */
274 "\x02\x82\x01\x00" /* private key - integer of 256 bytes */
275 "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D"
276 "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92"
277 "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12"
278 "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A"
279 "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D"
280 "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33"
281 "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43"
282 "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B"
283 "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC"
284 "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33"
285 "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A"
286 "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D"
287 "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04"
288 "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82"
289 "\xD6\xBF\x7A\x0B\x64\x21\x6D\x88\x7E\x5B\x45\x12\x1E\x63\x8D\x49"
Tadeusz Struk22287b02015-10-08 09:26:55 -0700290 "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71"
291 "\x02\x01\x00" /* prime1 - integer of 1 byte */
292 "\x02\x01\x00" /* prime2 - integer of 1 byte */
293 "\x02\x01\x00" /* exponent1 - integer of 1 byte */
294 "\x02\x01\x00" /* exponent2 - integer of 1 byte */
295 "\x02\x01\x00", /* coefficient - integer of 1 byte */
296 .key_len = 547,
Tadeusz Struk946cc462015-06-16 10:31:06 -0700297 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
298 .c =
299 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
300 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
301 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
302 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
303 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
304 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
305 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
306 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
307 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
308 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
309 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
310 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
311 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
312 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
313 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
314 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
315 .m_size = 8,
316 .c_size = 256,
317 }, {
318 .key =
319 "\x30\x82\x01\x09" /* sequence of 265 bytes */
320 "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */
321 "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D"
322 "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA"
323 "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D"
324 "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77"
325 "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA"
326 "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1"
327 "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48"
328 "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F"
329 "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77"
330 "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA"
331 "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A"
332 "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC"
333 "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD"
334 "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB"
335 "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E"
336 "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB"
337 "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */
338 .key_len = 269,
339 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
340 .c =
341 "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe"
342 "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36"
343 "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd"
344 "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3"
345 "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69"
346 "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41"
347 "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30"
348 "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5"
349 "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73"
350 "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d"
351 "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b"
352 "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0"
353 "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d"
354 "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6"
355 "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21"
356 "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98",
357 .m_size = 8,
358 .c_size = 256,
359 .public_key_vec = true,
Ard Biesheuvel21c8e722017-01-12 13:40:39 +0000360#ifndef CONFIG_CRYPTO_FIPS
Salvatore Benedettoc8afbc82016-07-04 17:21:39 +0100361 }, {
362 .key =
363 "\x30\x82\x09\x29" /* sequence of 2345 bytes */
364 "\x02\x01\x00" /* version integer of 1 byte */
365 "\x02\x82\x02\x01" /* modulus - integer of 513 bytes */
366 "\x00\xC3\x8B\x55\x7B\x73\x4D\xFF\xE9\x9B\xC6\xDC\x67\x3C\xB4\x8E"
367 "\xA0\x86\xED\xF2\xB9\x50\x5C\x54\x5C\xBA\xE4\xA1\xB2\xA7\xAE\x2F"
368 "\x1B\x7D\xF1\xFB\xAC\x79\xC5\xDF\x1A\x00\xC9\xB2\xC1\x61\x25\x33"
369 "\xE6\x9C\xE9\xCF\xD6\x27\xC4\x4E\x44\x30\x44\x5E\x08\xA1\x87\x52"
370 "\xCC\x6B\x97\x70\x8C\xBC\xA5\x06\x31\x0C\xD4\x2F\xD5\x7D\x26\x24"
371 "\xA2\xE2\xAC\x78\xF4\x53\x14\xCE\xF7\x19\x2E\xD7\xF7\xE6\x0C\xB9"
372 "\x56\x7F\x0B\xF1\xB1\xE2\x43\x70\xBD\x86\x1D\xA1\xCC\x2B\x19\x08"
373 "\x76\xEF\x91\xAC\xBF\x20\x24\x0D\x38\xC0\x89\xB8\x9A\x70\xB3\x64"
374 "\xD9\x8F\x80\x41\x10\x5B\x9F\xB1\xCB\x76\x43\x00\x21\x25\x36\xD4"
375 "\x19\xFC\x55\x95\x10\xE4\x26\x74\x98\x2C\xD9\xBD\x0B\x2B\x04\xC2"
376 "\xAC\x82\x38\xB4\xDD\x4C\x04\x7E\x51\x36\x40\x1E\x0B\xC4\x7C\x25"
377 "\xDD\x4B\xB2\xE7\x20\x0A\x57\xF9\xB4\x94\xC3\x08\x33\x22\x6F\x8B"
378 "\x48\xDB\x03\x68\x5A\x5B\xBA\xAE\xF3\xAD\xCF\xC3\x6D\xBA\xF1\x28"
379 "\x67\x7E\x6C\x79\x07\xDE\xFC\xED\xE7\x96\xE3\x6C\xE0\x2C\x87\xF8"
380 "\x02\x01\x28\x38\x43\x21\x53\x84\x69\x75\x78\x15\x7E\xEE\xD2\x1B"
381 "\xB9\x23\x40\xA8\x86\x1E\x38\x83\xB2\x73\x1D\x53\xFB\x9E\x2A\x8A"
382 "\xB2\x75\x35\x01\xC3\xC3\xC4\x94\xE8\x84\x86\x64\x81\xF4\x42\xAA"
383 "\x3C\x0E\xD6\x4F\xBC\x0A\x09\x2D\xE7\x1B\xD4\x10\xA8\x54\xEA\x89"
384 "\x84\x8A\xCB\xF7\x5A\x3C\xCA\x76\x08\x29\x62\xB4\x6A\x22\xDF\x14"
385 "\x95\x71\xFD\xB6\x86\x39\xB8\x8B\xF8\x91\x7F\x38\xAA\x14\xCD\xE5"
386 "\xF5\x1D\xC2\x6D\x53\x69\x52\x84\x7F\xA3\x1A\x5E\x26\x04\x83\x06"
387 "\x73\x52\x56\xCF\x76\x26\xC9\xDD\x75\xD7\xFC\xF4\x69\xD8\x7B\x55"
388 "\xB7\x68\x13\x53\xB9\xE7\x89\xC3\xE8\xD6\x6E\xA7\x6D\xEA\x81\xFD"
389 "\xC4\xB7\x05\x5A\xB7\x41\x0A\x23\x8E\x03\x8A\x1C\xAE\xD3\x1E\xCE"
390 "\xE3\x5E\xFC\x19\x4A\xEE\x61\x9B\x8E\xE5\xE5\xDD\x85\xF9\x41\xEC"
391 "\x14\x53\x92\xF7\xDD\x06\x85\x02\x91\xE3\xEB\x6C\x43\x03\xB1\x36"
392 "\x7B\x89\x5A\xA8\xEB\xFC\xD5\xA8\x35\xDC\x81\xD9\x5C\xBD\xCA\xDC"
393 "\x9B\x98\x0B\x06\x5D\x0C\x5B\xEE\xF3\xD5\xCC\x57\xC9\x71\x2F\x90"
394 "\x3B\x3C\xF0\x8E\x4E\x35\x48\xAE\x63\x74\xA9\xFC\x72\x75\x8E\x34"
395 "\xA8\xF2\x1F\xEA\xDF\x3A\x37\x2D\xE5\x39\x39\xF8\x57\x58\x3C\x04"
396 "\xFE\x87\x06\x98\xBC\x7B\xD3\x21\x36\x60\x25\x54\xA7\x3D\xFA\x91"
397 "\xCC\xA8\x0B\x92\x8E\xB4\xF7\x06\xFF\x1E\x95\xCB\x07\x76\x97\x3B"
398 "\x9D"
399 "\x02\x03\x01\x00\x01" /* public key integer of 3 bytes */
400 "\x02\x82\x02\x00" /* private key integer of 512 bytes */
401 "\x74\xA9\xE0\x6A\x32\xB4\xCA\x85\xD9\x86\x9F\x60\x88\x7B\x40\xCC"
402 "\xCD\x33\x91\xA8\xB6\x25\x1F\xBF\xE3\x51\x1C\x97\xB6\x2A\xD9\xB8"
403 "\x11\x40\x19\xE3\x21\x13\xC8\xB3\x7E\xDC\xD7\x65\x40\x4C\x2D\xD6"
404 "\xDC\xAF\x32\x6C\x96\x75\x2C\x2C\xCA\x8F\x3F\x7A\xEE\xC4\x09\xC6"
405 "\x24\x3A\xC9\xCF\x6D\x8D\x17\x50\x94\x52\xD3\xE7\x0F\x2F\x7E\x94"
406 "\x1F\xA0\xBE\xD9\x25\xE8\x38\x42\x7C\x27\xD2\x79\xF8\x2A\x87\x38"
407 "\xEF\xBB\x74\x8B\xA8\x6E\x8C\x08\xC6\xC7\x4F\x0C\xBC\x79\xC6\xEF"
408 "\x0E\xA7\x5E\xE4\xF8\x8C\x09\xC7\x5E\x37\xCC\x87\x77\xCD\xCF\xD1"
409 "\x6D\x28\x1B\xA9\x62\xC0\xB8\x16\xA7\x8B\xF9\xBB\xCC\xB4\x15\x7F"
410 "\x1B\x69\x03\xF2\x7B\xEB\xE5\x8C\x14\xD6\x23\x4F\x52\x6F\x18\xA6"
411 "\x4B\x5B\x01\xAD\x35\xF9\x48\x53\xB3\x86\x35\x66\xD7\xE7\x29\xC0"
412 "\x09\xB5\xC6\xE6\xFA\xC4\xDA\x19\xBE\xD7\x4D\x41\x14\xBE\x6F\xDF"
413 "\x1B\xAB\xC0\xCA\x88\x07\xAC\xF1\x7D\x35\x83\x67\x28\x2D\x50\xE9"
414 "\xCE\x27\x71\x5E\x1C\xCF\xD2\x30\x65\x79\x72\x2F\x9C\xE1\xD2\x39"
415 "\x7F\xEF\x3B\x01\xF2\x14\x1D\xDF\xBD\x51\xD3\xA1\x53\x62\xCF\x5F"
416 "\x79\x84\xCE\x06\x96\x69\x29\x49\x82\x1C\x71\x4A\xA1\x66\xC8\x2F"
417 "\xFD\x7B\x96\x7B\xFC\xC4\x26\x58\xC4\xFC\x7C\xAF\xB5\xE8\x95\x83"
418 "\x87\xCB\x46\xDE\x97\xA7\xB3\xA2\x54\x5B\xD7\xAF\xAB\xEB\xC8\xF3"
419 "\x55\x9D\x48\x2B\x30\x9C\xDC\x26\x4B\xC2\x89\x45\x13\xB2\x01\x9A"
420 "\xA4\x65\xC3\xEC\x24\x2D\x26\x97\xEB\x80\x8A\x9D\x03\xBC\x59\x66"
421 "\x9E\xE2\xBB\xBB\x63\x19\x64\x93\x11\x7B\x25\x65\x30\xCD\x5B\x4B"
422 "\x2C\xFF\xDC\x2D\x30\x87\x1F\x3C\x88\x07\xD0\xFC\x48\xCC\x05\x8A"
423 "\xA2\xC8\x39\x3E\xD5\x51\xBC\x0A\xBE\x6D\xA8\xA0\xF6\x88\x06\x79"
424 "\x13\xFF\x1B\x45\xDA\x54\xC9\x24\x25\x8A\x75\x0A\x26\xD1\x69\x81"
425 "\x14\x14\xD1\x79\x7D\x8E\x76\xF2\xE0\xEB\xDD\x0F\xDE\xC2\xEC\x80"
426 "\xD7\xDC\x16\x99\x92\xBE\xCB\x40\x0C\xCE\x7C\x3B\x46\xA2\x5B\x5D"
427 "\x0C\x45\xEB\xE1\x00\xDE\x72\x50\xB1\xA6\x0B\x76\xC5\x8D\xFC\x82"
428 "\x38\x6D\x99\x14\x1D\x1A\x4A\xD3\x7C\x53\xB8\x12\x46\xA2\x30\x38"
429 "\x82\xF4\x96\x6E\x8C\xCE\x47\x0D\xAF\x0A\x3B\x45\xB7\x43\x95\x43"
430 "\x9E\x02\x2C\x44\x07\x6D\x1F\x3C\x66\x89\x09\xB6\x1F\x06\x30\xCC"
431 "\xAD\xCE\x7D\x9A\xDE\x3E\xFB\x6C\xE4\x58\x43\xD2\x4F\xA5\x9E\x5E"
432 "\xA7\x7B\xAE\x3A\xF6\x7E\xD9\xDB\xD3\xF5\xC5\x41\xAF\xE6\x9C\x91"
433 "\x02\x82\x01\x01" /* prime1 - integer of 257 bytes */
434 "\x00\xE0\xA6\x6C\xF0\xA2\xF8\x81\x85\x36\x43\xD0\x13\x0B\x33\x8B"
435 "\x8F\x78\x3D\xAC\xC7\x5E\x46\x6A\x7F\x05\xAE\x3E\x26\x0A\xA6\xD0"
436 "\x51\xF3\xC8\x61\xF5\x77\x22\x48\x10\x87\x4C\xD5\xA4\xD5\xAE\x2D"
437 "\x4E\x7A\xFE\x1C\x31\xE7\x6B\xFF\xA4\x69\x20\xF9\x2A\x0B\x99\xBE"
438 "\x7C\x32\x68\xAD\xB0\xC6\x94\x81\x41\x75\xDC\x06\x78\x0A\xB4\xCF"
439 "\xCD\x1B\x2D\x31\xE4\x7B\xEA\xA8\x35\x99\x75\x57\xC6\x0E\xF6\x78"
440 "\x4F\xA0\x92\x4A\x00\x1B\xE7\x96\xF2\x5B\xFD\x2C\x0A\x0A\x13\x81"
441 "\xAF\xCB\x59\x87\x31\xD9\x83\x65\xF2\x22\x48\xD0\x03\x67\x39\xF6"
442 "\xFF\xA8\x36\x07\x3A\x68\xE3\x7B\xA9\x64\xFD\x9C\xF7\xB1\x3D\xBF"
443 "\x26\x5C\xCC\x7A\xFC\xA2\x8F\x51\xD1\xE1\xE2\x3C\xEC\x06\x75\x7C"
444 "\x34\xF9\xA9\x33\x70\x11\xAD\x5A\xDC\x5F\xCF\x50\xF6\x23\x2F\x39"
445 "\xAC\x92\x48\x53\x4D\x01\x96\x3C\xD8\xDC\x1F\x23\x23\x78\x80\x34"
446 "\x54\x14\x76\x8B\xB6\xBB\xFB\x88\x78\x31\x59\x28\xD2\xB1\x75\x17"
447 "\x88\x04\x4A\x78\x62\x18\x2E\xF5\xFB\x9B\xEF\x15\xD8\x16\x47\xC6"
448 "\x42\xB1\x02\xDA\x9E\xE3\x84\x90\xB4\x2D\xC3\xCE\x13\xC9\x12\x7D"
449 "\x3E\xCD\x39\x39\xC9\xAD\xA1\x1A\xE6\xD5\xAD\x5A\x09\x4D\x1B\x0C"
450 "\xAB"
451 "\x02\x82\x01\x01" /* prime 2 - integer of 257 bytes */
452 "\x00\xDE\xD5\x1B\xF6\xCD\x83\xB1\xC6\x47\x7E\xB9\xC0\x6B\xA9\xB8"
453 "\x02\xF3\xAE\x40\x5D\xFC\xD3\xE5\x4E\xF1\xE3\x39\x04\x52\x84\x89"
454 "\x40\x37\xBB\xC2\xCD\x7F\x71\x77\x17\xDF\x6A\x4C\x31\x24\x7F\xB9"
455 "\x7E\x7F\xC8\x43\x4A\x3C\xEB\x8D\x1B\x7F\x21\x51\x67\x45\x8F\xA0"
456 "\x36\x29\x3A\x18\x45\xA5\x32\xEC\x74\x88\x3C\x98\x5D\x67\x3B\xD7"
457 "\x51\x1F\xE9\xAE\x09\x01\xDE\xDE\x7C\xFB\x60\xD1\xA5\x6C\xE9\x6A"
458 "\x93\x04\x02\x3A\xBB\x67\x02\xB9\xFD\x23\xF0\x02\x2B\x49\x85\xC9"
459 "\x5B\xE7\x4B\xDF\xA3\xF4\xEE\x59\x4C\x45\xEF\x8B\xC1\x6B\xDE\xDE"
460 "\xBC\x1A\xFC\xD2\x76\x3F\x33\x74\xA9\x8E\xA3\x7E\x0C\xC6\xCE\x70"
461 "\xA1\x5B\xA6\x77\xEA\x76\xEB\x18\xCE\xB9\xD7\x78\x8D\xAE\x06\xBB"
462 "\xD3\x1F\x16\x0D\x05\xAB\x4F\xC6\x52\xC8\x6B\x36\x51\x7D\x1D\x27"
463 "\xAF\x88\x9A\x6F\xCC\x25\x2E\x74\x06\x72\xCE\x9E\xDB\xE0\x9D\x30"
464 "\xEF\x55\xA5\x58\x21\xA7\x42\x12\x2C\x2C\x23\x87\xC1\x0F\xE8\x51"
465 "\xDA\x53\xDA\xFC\x05\x36\xDF\x08\x0E\x08\x36\xBE\x5C\x86\x9E\xCA"
466 "\x68\x90\x33\x12\x0B\x14\x82\xAB\x90\x1A\xD4\x49\x32\x9C\xBD\xAA"
467 "\xAB\x4E\x38\xF1\xEE\xED\x3D\x3F\xE8\xBD\x48\x56\xA6\x64\xEE\xC8"
468 "\xD7"
469 "\x02\x82\x01\x01" /* exponent 1 - integer of 257 bytes */
470 "\x00\x96\x5E\x6F\x8F\x06\xD6\xE6\x03\x1F\x96\x76\x81\x38\xBF\x30"
471 "\xCC\x40\x84\xAF\xD0\xE7\x06\xA5\x24\x0E\xCE\x59\xA5\x26\xFE\x0F"
472 "\x74\xBB\x83\xC6\x26\x02\xAF\x3C\xA3\x6B\x9C\xFF\x68\x0C\xEB\x40"
473 "\x42\x46\xCB\x2E\x5E\x2C\xF4\x3A\x32\x77\x77\xED\xAF\xBA\x02\x17"
474 "\xE1\x93\xF0\x43\x4A\x8F\x31\x39\xEF\x72\x0F\x6B\x79\x10\x59\x84"
475 "\xBA\x5A\x55\x7F\x0E\xDB\xEE\xEE\xD6\xA9\xB8\x44\x9F\x3A\xC6\xB9"
476 "\x33\x3B\x5C\x90\x11\xD0\x9B\xCC\x8A\xBF\x0E\x10\x5B\x4B\xF1\x50"
477 "\x9E\x35\xB3\xE0\x6D\x7A\x95\x9C\x38\x5D\xC0\x75\x13\xC2\x15\xA7"
478 "\x81\xEA\xBA\xF7\x4D\x9E\x85\x9D\xF1\x7D\xBA\xD0\x45\x6F\x2A\xD0"
479 "\x76\xC2\x28\xD0\xAD\xA7\xB5\xDC\xE3\x6A\x99\xFF\x83\x50\xB3\x75"
480 "\x07\x14\x91\xAF\xEF\x74\xB5\x9F\x9A\xE0\xBA\xA9\x0B\x87\xF3\x85"
481 "\x5C\x40\xB2\x0E\xA7\xFD\xC6\xED\x45\x8E\xD9\x7C\xB0\xB2\x68\xC6"
482 "\x1D\xFD\x70\x78\x06\x41\x7F\x95\x12\x36\x9D\xE2\x58\x5D\x15\xEE"
483 "\x41\x49\xF5\xFA\xEC\x56\x19\xA0\xE6\xE0\xB2\x40\xE1\xD9\xD0\x03"
484 "\x22\x02\xCF\xD1\x3C\x07\x38\x65\x8F\x65\x0E\xAA\x32\xCE\x25\x05"
485 "\x16\x73\x51\xB9\x9F\x88\x0B\xCD\x30\xF3\x97\xCC\x2B\x6B\xA4\x0E"
486 "\x6F"
487 "\x02\x82\x01\x00" /* exponent 2 - integer of 256 bytes */
488 "\x2A\x5F\x3F\xB8\x08\x90\x58\x47\xA9\xE4\xB1\x11\xA3\xE7\x5B\xF4"
489 "\x43\xBE\x08\xC3\x56\x86\x3C\x7E\x6C\x84\x96\x9C\xF9\xCB\xF6\x05"
490 "\x5E\x13\xB8\x11\x37\x80\xAD\xF2\xBE\x2B\x0A\x5D\xF5\xE0\xCB\xB7"
491 "\x00\x39\x66\x82\x41\x5F\x51\x2F\xBF\x56\xE8\x91\xC8\xAA\x6C\xFE"
492 "\x9F\x8C\x4A\x7D\x43\xD2\x91\x1F\xFF\x9F\xF6\x21\x1C\xB6\x46\x55"
493 "\x48\xCA\x38\xAB\xC1\xCD\x4D\x65\x5A\xAF\xA8\x6D\xDA\x6D\xF0\x34"
494 "\x10\x79\x14\x0D\xFA\xA2\x8C\x17\x54\xB4\x18\xD5\x7E\x5F\x90\x50"
495 "\x87\x84\xE7\xFB\xD7\x61\x53\x5D\xAB\x96\xC7\x6E\x7A\x42\xA0\xFC"
496 "\x07\xED\xB7\x5F\x80\xD9\x19\xFF\xFB\xFD\x9E\xC4\x73\x31\x62\x3D"
497 "\x6C\x9E\x15\x03\x62\xA5\x85\xCC\x19\x8E\x9D\x7F\xE3\x6D\xA8\x5D"
498 "\x96\xF5\xAC\x78\x3D\x81\x27\xE7\x29\xF1\x29\x1D\x09\xBB\x77\x86"
499 "\x6B\x65\x62\x88\xE1\x31\x1A\x22\xF7\xC5\xCE\x73\x65\x1C\xBE\xE7"
500 "\x63\xD3\xD3\x14\x63\x27\xAF\x28\xF3\x23\xB6\x76\xC1\xBD\x9D\x82"
501 "\xF4\x9B\x19\x7D\x2C\x57\xF0\xC2\x2A\x51\xAE\x95\x0D\x8C\x38\x54"
502 "\xF5\xC6\xA0\x51\xB7\x0E\xB9\xEC\xE7\x0D\x22\xF6\x1A\xD3\xFE\x16"
503 "\x21\x03\xB7\x0D\x85\xD3\x35\xC9\xDD\xE4\x59\x85\xBE\x7F\xA1\x75"
504 "\x02\x82\x01\x01" /* coefficient - integer of 257 bytes */
505 "\x00\xB9\x48\xD2\x54\x2F\x19\x54\x64\xAE\x62\x80\x61\x89\x80\xB4"
506 "\x48\x0B\x8D\x7E\x1B\x0F\x50\x08\x82\x3F\xED\x75\x84\xB7\x13\xE4"
507 "\xF8\x8D\xA8\xBB\x54\x21\x4C\x5A\x54\x07\x16\x4B\xB4\xA4\x9E\x30"
508 "\xBF\x7A\x30\x1B\x39\x60\xA3\x21\x53\xFB\xB0\xDC\x0F\x7C\x2C\xFB"
509 "\xAA\x95\x7D\x51\x39\x28\x33\x1F\x25\x31\x53\xF5\xD2\x64\x2B\xF2"
510 "\x1E\xB3\xC0\x6A\x0B\xC9\xA4\x42\x64\x5C\xFB\x15\xA3\xE8\x4C\x3A"
511 "\x9C\x3C\xBE\xA3\x39\x83\x23\xE3\x6D\x18\xCC\xC2\xDC\x63\x8D\xBA"
512 "\x98\xE0\xE0\x31\x4A\x2B\x37\x9C\x4D\x6B\xF3\x9F\x51\xE4\x43\x5C"
513 "\x83\x5F\xBF\x5C\xFE\x92\x45\x01\xAF\xF5\xC2\xF4\xB7\x56\x93\xA5"
514 "\xF4\xAA\x67\x3C\x48\x37\xBD\x9A\x3C\xFE\xA5\x9A\xB0\xD1\x6B\x85"
515 "\xDD\x81\xD4\xFA\xAD\x31\x83\xA8\x22\x9B\xFD\xB4\x61\xDC\x7A\x51"
516 "\x59\x62\x10\x1B\x7E\x44\xA3\xFE\x90\x51\x5A\x3E\x02\x87\xAD\xFA"
517 "\xDD\x0B\x1F\x3D\x35\xAF\xEE\x13\x85\x51\xA7\x42\xC0\xEE\x9E\x20"
518 "\xE9\xD0\x29\xB2\xE4\x21\xE4\x6D\x62\xB9\xF4\x48\x4A\xD8\x46\x8E"
519 "\x61\xA6\x2C\x5D\xDF\x8F\x97\x2B\x3A\x75\x1D\x83\x17\x6F\xC6\xB0"
520 "\xDE\xFC\x14\x25\x06\x5A\x60\xBB\xB8\x21\x89\xD1\xEF\x57\xF1\x71"
521 "\x3D",
522 .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a",
523 .c =
524 "\x5c\xce\x9c\xd7\x9a\x9e\xa1\xfe\x7a\x82\x3c\x68\x27\x98\xe3\x5d"
525 "\xd5\xd7\x07\x29\xf5\xfb\xc3\x1a\x7f\x63\x1e\x62\x31\x3b\x19\x87"
526 "\x79\x4f\xec\x7b\xf3\xcb\xea\x9b\x95\x52\x3a\x40\xe5\x87\x7b\x72"
527 "\xd1\x72\xc9\xfb\x54\x63\xd8\xc9\xd7\x2c\xfc\x7b\xc3\x14\x1e\xbc"
528 "\x18\xb4\x34\xa1\xbf\x14\xb1\x37\x31\x6e\xf0\x1b\x35\x19\x54\x07"
529 "\xf7\x99\xec\x3e\x63\xe2\xcd\x61\x28\x65\xc3\xcd\xb1\x38\x36\xa5"
530 "\xb2\xd7\xb0\xdc\x1f\xf5\xef\x19\xc7\x53\x32\x2d\x1c\x26\xda\xe4"
531 "\x0d\xd6\x90\x7e\x28\xd8\xdc\xe4\x61\x05\xd2\x25\x90\x01\xd3\x96"
532 "\x6d\xa6\xcf\x58\x20\xbb\x03\xf4\x01\xbc\x79\xb9\x18\xd8\xb8\xba"
533 "\xbd\x93\xfc\xf2\x62\x5d\x8c\x66\x1e\x0e\x84\x59\x93\xdd\xe2\x93"
534 "\xa2\x62\x7d\x08\x82\x7a\xdd\xfc\xb8\xbc\xc5\x4f\x9c\x4e\xbf\xb4"
535 "\xfc\xf4\xc5\x01\xe8\x00\x70\x4d\x28\x26\xcc\x2e\xfe\x0e\x58\x41"
536 "\x8b\xec\xaf\x7c\x4b\x54\xd0\xa0\x64\xf9\x32\xf4\x2e\x47\x65\x0a"
537 "\x67\x88\x39\x3a\xdb\xb2\xdb\x7b\xb5\xf6\x17\xa8\xd9\xc6\x5e\x28"
538 "\x13\x82\x8a\x99\xdb\x60\x08\xa5\x23\x37\xfa\x88\x90\x31\xc8\x9d"
539 "\x8f\xec\xfb\x85\x9f\xb1\xce\xa6\x24\x50\x46\x44\x47\xcb\x65\xd1"
540 "\xdf\xc0\xb1\x6c\x90\x1f\x99\x8e\x4d\xd5\x9e\x31\x07\x66\x87\xdf"
541 "\x01\xaa\x56\x3c\x71\xe0\x2b\x6f\x67\x3b\x23\xed\xc2\xbd\x03\x30"
542 "\x79\x76\x02\x10\x10\x98\x85\x8a\xff\xfd\x0b\xda\xa5\xd9\x32\x48"
543 "\x02\xa0\x0b\xb9\x2a\x8a\x18\xca\xc6\x8f\x3f\xbb\x16\xb2\xaa\x98"
544 "\x27\xe3\x60\x43\xed\x15\x70\xd4\x57\x15\xfe\x19\xd4\x9b\x13\x78"
545 "\x8a\xf7\x21\xf1\xa2\xa2\x2d\xb3\x09\xcf\x44\x91\x6e\x08\x3a\x30"
546 "\x81\x3e\x90\x93\x8a\x67\x33\x00\x59\x54\x9a\x25\xd3\x49\x8e\x9f"
547 "\xc1\x4b\xe5\x86\xf3\x50\x4c\xbc\xc5\xd3\xf5\x3a\x54\xe1\x36\x3f"
548 "\xe2\x5a\xb4\x37\xc0\xeb\x70\x35\xec\xf6\xb7\xe8\x44\x3b\x7b\xf3"
549 "\xf1\xf2\x1e\xdb\x60\x7d\xd5\xbe\xf0\x71\x34\x90\x4c\xcb\xd4\x35"
550 "\x51\xc7\xdd\xd8\xc9\x81\xf5\x5d\x57\x46\x2c\xb1\x7b\x9b\xaa\xcb"
551 "\xd1\x22\x25\x49\x44\xa3\xd4\x6b\x29\x7b\xd8\xb2\x07\x93\xbf\x3d"
552 "\x52\x49\x84\x79\xef\xb8\xe5\xc4\xad\xca\xa8\xc6\xf6\xa6\x76\x70"
553 "\x5b\x0b\xe5\x83\xc6\x0e\xef\x55\xf2\xe7\xff\x04\xea\xe6\x13\xbe"
554 "\x40\xe1\x40\x45\x48\x66\x75\x31\xae\x35\x64\x91\x11\x6f\xda\xee"
555 "\x26\x86\x45\x6f\x0b\xd5\x9f\x03\xb1\x65\x5b\xdb\xa4\xe4\xf9\x45",
556 .key_len = 2349,
557 .m_size = 8,
558 .c_size = 512,
Ard Biesheuvel21c8e722017-01-12 13:40:39 +0000559#endif
Tadeusz Struk946cc462015-06-16 10:31:06 -0700560 }
561};
562
Stephan Mueller12071072017-06-12 23:27:51 +0200563/*
Vitaly Chikunov32fbdbd2019-04-11 18:51:21 +0300564 * EC-RDSA test vectors are generated by gost-engine.
565 */
566static const struct akcipher_testvec ecrdsa_tv_template[] = {
567 {
568 .key =
569 "\x04\x40\xd5\xa7\x77\xf9\x26\x2f\x8c\xbd\xcc\xe3\x1f\x01\x94\x05"
570 "\x3d\x2f\xec\xb5\x00\x34\xf5\x51\x6d\x3b\x90\x4b\x23\x28\x6f\x1d"
571 "\xc8\x36\x61\x60\x36\xec\xbb\xb4\x0b\x95\x4e\x54\x4f\x15\x21\x05"
572 "\xd8\x52\x66\x44\x31\x7e\x5d\xc5\xd1\x26\x00\x5f\x60\xd8\xf0\xc7"
573 "\x27\xfc",
574 .key_len = 66,
575 .params = /* OID_gostCPSignA */
576 "\x30\x13\x06\x07\x2a\x85\x03\x02\x02\x23\x01\x06\x08\x2a\x85\x03"
577 "\x07\x01\x01\x02\x02",
578 .param_len = 21,
579 .c =
580 "\x41\x32\x09\x73\xa4\xc1\x38\xd6\x63\x7d\x8b\xf7\x50\x3f\xda\x9f"
581 "\x68\x48\xc1\x50\xe3\x42\x3a\x9b\x2b\x28\x12\x2a\xa7\xc2\x75\x31"
582 "\x65\x77\x8c\x3c\x9e\x0d\x56\xb2\xf9\xdc\x04\x33\x3e\xb0\x9e\xf9"
583 "\x74\x4e\x59\xb3\x83\xf2\x91\x27\xda\x5e\xc7\x33\xc0\xc1\x8f\x41",
584 .c_size = 64,
585 .algo = OID_gost2012PKey256,
586 .m =
587 "\x75\x1b\x9b\x40\x25\xb9\x96\xd2\x9b\x00\x41\xb3\x58\xbf\x23\x14"
588 "\x79\xd2\x76\x64\xa3\xbd\x66\x10\x79\x05\x5a\x06\x42\xec\xb9\xc9",
589 .m_size = 32,
590 .public_key_vec = true,
591 .siggen_sigver_test = true,
592 },
593 {
594 .key =
595 "\x04\x40\x66\x6f\xd6\xb7\x06\xd0\xf5\xa5\x6f\x69\x5c\xa5\x13\x45"
596 "\x14\xdd\xcb\x12\x9c\x1b\xf5\x28\x64\x7a\x49\x48\x29\x14\x66\x42"
597 "\xb8\x1b\x5c\xf9\x56\x6d\x08\x3b\xce\xbb\x62\x2f\xc2\x3c\xc5\x49"
598 "\x93\x27\x70\x20\xcc\x79\xeb\xdc\x76\x8e\x48\x6e\x04\x96\xc3\x29"
599 "\xa0\x73",
600 .key_len = 66,
601 .params = /* OID_gostCPSignB */
602 "\x30\x13\x06\x07\x2a\x85\x03\x02\x02\x23\x02\x06\x08\x2a\x85\x03"
603 "\x07\x01\x01\x02\x02",
604 .param_len = 21,
605 .c =
606 "\x45\x6d\x4a\x03\x1d\x5c\x0b\x17\x79\xe7\x19\xdb\xbf\x81\x9f\x82"
607 "\xae\x06\xda\xf5\x47\x00\x05\x80\xc3\x16\x06\x9a\x8e\x7c\xb2\x8e"
608 "\x7f\x74\xaa\xec\x6b\x7b\x7f\x8b\xc6\x0b\x10\x42\x4e\x91\x2c\xdf"
609 "\x7b\x8b\x15\xf4\x9e\x59\x0f\xc7\xa4\x68\x2e\xce\x89\xdf\x84\xe9",
610 .c_size = 64,
611 .algo = OID_gost2012PKey256,
612 .m =
613 "\xd0\x54\x00\x27\x6a\xeb\xce\x6c\xf5\xf6\xfb\x57\x18\x18\x21\x13"
614 "\x11\x23\x4a\x70\x43\x52\x7a\x68\x11\x65\x45\x37\xbb\x25\xb7\x40",
615 .m_size = 32,
616 .public_key_vec = true,
617 .siggen_sigver_test = true,
618 },
619 {
620 .key =
621 "\x04\x40\x05\x91\xa9\x7d\xcb\x87\xdc\x98\xa1\xbf\xff\xdd\x20\x61"
622 "\xaa\x58\x3b\x2d\x8e\x9c\x41\x9d\x4f\xc6\x23\x17\xf9\xca\x60\x65"
623 "\xbc\x97\x97\xf6\x6b\x24\xe8\xac\xb1\xa7\x61\x29\x3c\x71\xdc\xad"
624 "\xcb\x20\xbe\x96\xe8\xf4\x44\x2e\x49\xd5\x2c\xb9\xc9\x3b\x9c\xaa"
625 "\xba\x15",
626 .key_len = 66,
627 .params = /* OID_gostCPSignC */
628 "\x30\x13\x06\x07\x2a\x85\x03\x02\x02\x23\x03\x06\x08\x2a\x85\x03"
629 "\x07\x01\x01\x02\x02",
630 .param_len = 21,
631 .c =
632 "\x3b\x2e\x2e\x74\x74\x47\xda\xea\x93\x90\x6a\xe2\xf5\xf5\xe6\x46"
633 "\x11\xfc\xab\xdc\x52\xbc\x58\xdb\x45\x44\x12\x4a\xf7\xd0\xab\xc9"
634 "\x73\xba\x64\xab\x0d\xac\x4e\x72\x10\xa8\x04\xf6\x1e\xe0\x48\x6a"
635 "\xcd\xe8\xe3\x78\x73\x77\x82\x24\x8d\xf1\xd3\xeb\x4c\x25\x7e\xc0",
636 .c_size = 64,
637 .algo = OID_gost2012PKey256,
638 .m =
639 "\x52\x33\xf4\x3f\x7b\x5d\xcf\x20\xee\xe4\x5c\xab\x0b\x3f\x14\xd6"
640 "\x9f\x16\xc6\x1c\xb1\x3f\x84\x41\x69\xec\x34\xfd\xf1\xf9\xa3\x39",
641 .m_size = 32,
642 .public_key_vec = true,
643 .siggen_sigver_test = true,
644 },
645 {
646 .key =
647 "\x04\x81\x80\x85\x46\x8f\x16\xf8\x7a\x7e\x4a\xc3\x81\x9e\xf1\x6e"
648 "\x94\x1e\x5d\x02\x87\xea\xfa\xa0\x0a\x17\x70\x49\x64\xad\x95\x68"
649 "\x60\x0a\xf0\x57\x29\x41\x79\x30\x3c\x61\x69\xf2\xa6\x94\x87\x17"
650 "\x54\xfa\x97\x2c\xe6\x1e\x0a\xbb\x55\x10\x57\xbe\xf7\xc1\x77\x2b"
651 "\x11\x74\x0a\x50\x37\x14\x10\x2a\x45\xfc\x7a\xae\x1c\x4c\xce\x08"
652 "\x05\xb7\xa4\x50\xc8\x3d\x39\x3d\xdc\x5c\x8f\x96\x6c\xe7\xfc\x21"
653 "\xc3\x2d\x1e\x9f\x11\xb3\xec\x22\x18\x8a\x8c\x08\x6b\x8b\xed\xf5"
654 "\xc5\x47\x3c\x7e\x73\x59\x44\x1e\x77\x83\x84\x52\x9e\x3b\x7d\xff"
655 "\x9d\x86\x1a",
656 .key_len = 131,
657 .params = /* OID_gostTC26Sign512A */
658 "\x30\x0b\x06\x09\x2a\x85\x03\x07\x01\x02\x01\x02\x01",
659 .param_len = 13,
660 .c =
661 "\x92\x81\x74\x5f\x95\x48\x38\x87\xd9\x8f\x5e\xc8\x8a\xbb\x01\x4e"
662 "\xb0\x75\x3c\x2f\xc7\x5a\x08\x4c\x68\xab\x75\x01\x32\x75\x75\xb5"
663 "\x37\xe0\x74\x6d\x94\x84\x31\x2a\x6b\xf4\xf7\xb7\xa7\x39\x7b\x46"
664 "\x07\xf0\x98\xbd\x33\x18\xa1\x72\xb2\x6d\x54\xe3\xde\x91\xc2\x2e"
665 "\x4f\x6a\xf8\xb7\xec\xa8\x83\xc9\x8f\xd9\xce\x7c\x45\x06\x02\xf4"
666 "\x4f\x21\xb5\x24\x3d\xb4\xb5\xd8\x58\x42\xbe\x2d\x29\xae\x93\xc0"
667 "\x13\x41\x96\x35\x08\x69\xe8\x36\xc7\xd1\x83\x81\xd7\xca\xfb\xc0"
668 "\xd2\xb7\x78\x32\x3e\x30\x1a\x1e\xce\xdc\x34\x35\xc6\xad\x68\x24",
669 .c_size = 128,
670 .algo = OID_gost2012PKey512,
671 .m =
672 "\x1f\x70\xb5\xe9\x55\x12\xd6\x88\xcc\x55\xb9\x0c\x7f\xc4\x94\xf2"
673 "\x04\x77\x41\x12\x02\xd6\xf1\x1f\x83\x56\xe9\xd6\x5a\x6a\x72\xb9"
674 "\x6e\x8e\x24\x2a\x84\xf1\xba\x67\xe8\xbf\xff\xc1\xd3\xde\xfb\xc6"
675 "\xa8\xf6\x80\x01\xb9\x27\xac\xd8\x45\x96\x66\xa1\xee\x48\x08\x3f",
676 .m_size = 64,
677 .public_key_vec = true,
678 .siggen_sigver_test = true,
679 },
680 {
681 .key =
682 "\x04\x81\x80\x28\xf3\x2b\x92\x04\x32\xea\x66\x20\xde\xa0\x2f\x74"
683 "\xbf\x2d\xf7\xb5\x30\x76\xb1\xc8\xee\x38\x9f\xea\xe5\xad\xc6\xa3"
684 "\x28\x1e\x51\x3d\x67\xa3\x41\xcc\x6b\x81\xe2\xe2\x9e\x82\xf3\x78"
685 "\x56\xd7\x2e\xb2\xb5\xbe\xb4\x50\x21\x05\xe5\x29\x82\xef\x15\x1b"
686 "\xc0\xd7\x30\xd6\x2f\x96\xe8\xff\x99\x4c\x25\xcf\x9a\xfc\x54\x30"
687 "\xce\xdf\x59\xe9\xc6\x45\xce\xe4\x22\xe8\x01\xd5\xcd\x2f\xaa\x78"
688 "\x99\xc6\x04\x1e\x6f\x4c\x25\x6a\x76\xad\xff\x48\xf3\xb3\xb4\xd6"
689 "\x14\x5c\x2c\x0e\xea\xa2\x4b\xb9\x7e\x89\x77\x02\x3a\x29\xc8\x16"
690 "\x8e\x78\x48",
691 .key_len = 131,
692 .params = /* OID_gostTC26Sign512B */
693 "\x30\x0b\x06\x09\x2a\x85\x03\x07\x01\x02\x01\x02\x02",
694 .param_len = 13,
695 .c =
696 "\x0a\xed\xb6\x27\xea\xa7\xa6\x7e\x2f\xc1\x02\x21\x74\xce\x27\xd2"
697 "\xee\x8a\x92\x4d\xa9\x43\x2d\xa4\x5b\xdc\x23\x02\xfc\x3a\xf3\xb2"
698 "\x10\x93\x0b\x40\x1b\x75\x95\x3e\x39\x41\x37\xb9\xab\x51\x09\xeb"
699 "\xf1\xb9\x49\x58\xec\x58\xc7\xf9\x2e\xb9\xc9\x40\xf2\x00\x39\x7e"
700 "\x3f\xde\x72\xe3\x85\x67\x06\xbe\xd8\xb8\xc1\x81\x1e\xe3\x0a\xfe"
701 "\xce\xd3\x77\x92\x56\x8c\x58\xf9\x37\x60\x2d\xe6\x8b\x66\xa3\xdd"
702 "\xd2\xf0\xf8\xda\x1b\x20\xbc\x9c\xec\x29\x5d\xd1\x8f\xcc\x37\xd1"
703 "\x3b\x8d\xb7\xc1\xe0\xb8\x3b\xef\x14\x1b\x87\xbc\xc1\x03\x9a\x93",
704 .c_size = 128,
705 .algo = OID_gost2012PKey512,
706 .m =
707 "\x11\x24\x21\x27\xf2\x42\x9f\xce\x5a\xf9\x01\x70\xe0\x07\x2b\x57"
708 "\xfb\x7d\x77\x5e\x74\x66\xe6\xa5\x40\x4c\x1a\x85\x18\xff\xd0\x63"
709 "\xe0\x39\xd3\xd6\xe5\x17\xf8\xc3\x4b\xc6\x1c\x33\x1a\xca\xa6\x66"
710 "\x6d\xf4\xd2\x45\xc2\x83\xa0\x42\x95\x05\x9d\x89\x8e\x0a\xca\xcc",
711 .m_size = 64,
712 .public_key_vec = true,
713 .siggen_sigver_test = true,
714 },
715};
716
717/*
Stephan Mueller12071072017-06-12 23:27:51 +0200718 * PKCS#1 RSA test vectors. Obtained from CAVS testing.
719 */
720static const struct akcipher_testvec pkcs1pad_rsa_tv_template[] = {
721 {
722 .key =
Conor McLoughlin333e18c2018-02-13 08:29:56 +0000723 "\x30\x82\x03\x1f\x02\x01\x00\x02\x82\x01\x01\x00\xd7\x1e\x77\x82"
Stephan Mueller12071072017-06-12 23:27:51 +0200724 "\x8c\x92\x31\xe7\x69\x02\xa2\xd5\x5c\x78\xde\xa2\x0c\x8f\xfe\x28"
725 "\x59\x31\xdf\x40\x9c\x60\x61\x06\xb9\x2f\x62\x40\x80\x76\xcb\x67"
726 "\x4a\xb5\x59\x56\x69\x17\x07\xfa\xf9\x4c\xbd\x6c\x37\x7a\x46\x7d"
727 "\x70\xa7\x67\x22\xb3\x4d\x7a\x94\xc3\xba\x4b\x7c\x4b\xa9\x32\x7c"
728 "\xb7\x38\x95\x45\x64\xa4\x05\xa8\x9f\x12\x7c\x4e\xc6\xc8\x2d\x40"
729 "\x06\x30\xf4\x60\xa6\x91\xbb\x9b\xca\x04\x79\x11\x13\x75\xf0\xae"
730 "\xd3\x51\x89\xc5\x74\xb9\xaa\x3f\xb6\x83\xe4\x78\x6b\xcd\xf9\x5c"
731 "\x4c\x85\xea\x52\x3b\x51\x93\xfc\x14\x6b\x33\x5d\x30\x70\xfa\x50"
732 "\x1b\x1b\x38\x81\x13\x8d\xf7\xa5\x0c\xc0\x8e\xf9\x63\x52\x18\x4e"
733 "\xa9\xf9\xf8\x5c\x5d\xcd\x7a\x0d\xd4\x8e\x7b\xee\x91\x7b\xad\x7d"
734 "\xb4\x92\xd5\xab\x16\x3b\x0a\x8a\xce\x8e\xde\x47\x1a\x17\x01\x86"
735 "\x7b\xab\x99\xf1\x4b\x0c\x3a\x0d\x82\x47\xc1\x91\x8c\xbb\x2e\x22"
736 "\x9e\x49\x63\x6e\x02\xc1\xc9\x3a\x9b\xa5\x22\x1b\x07\x95\xd6\x10"
737 "\x02\x50\xfd\xfd\xd1\x9b\xbe\xab\xc2\xc0\x74\xd7\xec\x00\xfb\x11"
738 "\x71\xcb\x7a\xdc\x81\x79\x9f\x86\x68\x46\x63\x82\x4d\xb7\xf1\xe6"
739 "\x16\x6f\x42\x63\xf4\x94\xa0\xca\x33\xcc\x75\x13\x02\x82\x01\x00"
740 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
741 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
742 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
743 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
744 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
745 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
746 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
747 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
748 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
749 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
750 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
751 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
752 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
753 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
754 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
755 "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x01"
756 "\x02\x82\x01\x00\x62\xb5\x60\x31\x4f\x3f\x66\x16\xc1\x60\xac\x47"
757 "\x2a\xff\x6b\x69\x00\x4a\xb2\x5c\xe1\x50\xb9\x18\x74\xa8\xe4\xdc"
758 "\xa8\xec\xcd\x30\xbb\xc1\xc6\xe3\xc6\xac\x20\x2a\x3e\x5e\x8b\x12"
759 "\xe6\x82\x08\x09\x38\x0b\xab\x7c\xb3\xcc\x9c\xce\x97\x67\xdd\xef"
760 "\x95\x40\x4e\x92\xe2\x44\xe9\x1d\xc1\x14\xfd\xa9\xb1\xdc\x71\x9c"
761 "\x46\x21\xbd\x58\x88\x6e\x22\x15\x56\xc1\xef\xe0\xc9\x8d\xe5\x80"
762 "\x3e\xda\x7e\x93\x0f\x52\xf6\xf5\xc1\x91\x90\x9e\x42\x49\x4f\x8d"
763 "\x9c\xba\x38\x83\xe9\x33\xc2\x50\x4f\xec\xc2\xf0\xa8\xb7\x6e\x28"
764 "\x25\x56\x6b\x62\x67\xfe\x08\xf1\x56\xe5\x6f\x0e\x99\xf1\xe5\x95"
765 "\x7b\xef\xeb\x0a\x2c\x92\x97\x57\x23\x33\x36\x07\xdd\xfb\xae\xf1"
766 "\xb1\xd8\x33\xb7\x96\x71\x42\x36\xc5\xa4\xa9\x19\x4b\x1b\x52\x4c"
767 "\x50\x69\x91\xf0\x0e\xfa\x80\x37\x4b\xb5\xd0\x2f\xb7\x44\x0d\xd4"
768 "\xf8\x39\x8d\xab\x71\x67\x59\x05\x88\x3d\xeb\x48\x48\x33\x88\x4e"
769 "\xfe\xf8\x27\x1b\xd6\x55\x60\x5e\x48\xb7\x6d\x9a\xa8\x37\xf9\x7a"
770 "\xde\x1b\xcd\x5d\x1a\x30\xd4\xe9\x9e\x5b\x3c\x15\xf8\x9c\x1f\xda"
771 "\xd1\x86\x48\x55\xce\x83\xee\x8e\x51\xc7\xde\x32\x12\x47\x7d\x46"
Conor McLoughlin333e18c2018-02-13 08:29:56 +0000772 "\xb8\x35\xdf\x41\x02\x01\x00\x02\x01\x00\x02\x01\x00\x02\x01\x00"
773 "\x02\x01\x00",
Stephan Mueller12071072017-06-12 23:27:51 +0200774 .key_len = 804,
775 /*
776 * m is SHA256 hash of following message:
777 * "\x49\x41\xbe\x0a\x0c\xc9\xf6\x35\x51\xe4\x27\x56\x13\x71\x4b\xd0"
778 * "\x36\x92\x84\x89\x1b\xf8\x56\x4a\x72\x61\x14\x69\x4f\x5e\x98\xa5"
779 * "\x80\x5a\x37\x51\x1f\xd8\xf5\xb5\x63\xfc\xf4\xb1\xbb\x4d\x33\xa3"
780 * "\x1e\xb9\x75\x8b\x9c\xda\x7e\x6d\x3a\x77\x85\xf7\xfc\x4e\xe7\x64"
781 * "\x43\x10\x19\xa0\x59\xae\xe0\xad\x4b\xd3\xc4\x45\xf7\xb1\xc2\xc1"
782 * "\x65\x01\x41\x39\x5b\x45\x47\xed\x2b\x51\xed\xe3\xd0\x09\x10\xd2"
783 * "\x39\x6c\x4a\x3f\xe5\xd2\x20\xe6\xb0\x71\x7d\x5b\xed\x26\x60\xf1"
784 * "\xb4\x73\xd1\xdb\x7d\xc4\x19\x91\xee\xf6\x32\x76\xf2\x19\x7d\xb7"
785 */
786 .m =
787 "\x3e\xc8\xa1\x26\x20\x54\x44\x52\x48\x0d\xe5\x66\xf3\xb3\xf5\x04"
788 "\xbe\x10\xa8\x48\x94\x22\x2d\xdd\xba\x7a\xb4\x76\x8d\x79\x98\x89",
789 .m_size = 32,
790 .c =
791 "\xc7\xa3\x98\xeb\x43\xd1\x08\xc2\x3d\x78\x45\x04\x70\xc9\x01\xee"
792 "\xf8\x85\x37\x7c\x0b\xf9\x19\x70\x5c\x45\x7b\x2f\x3a\x0b\xb7\x8b"
793 "\xc4\x0d\x7b\x3a\x64\x0b\x0f\xdb\x78\xa9\x0b\xfd\x8d\x82\xa4\x86"
794 "\x39\xbf\x21\xb8\x84\xc4\xce\x9f\xc2\xe8\xb6\x61\x46\x17\xb9\x4e"
795 "\x0b\x57\x05\xb4\x4f\xf9\x9c\x93\x2d\x9b\xd5\x48\x1d\x80\x12\xef"
796 "\x3a\x77\x7f\xbc\xb5\x8e\x2b\x6b\x7c\xfc\x9f\x8c\x9d\xa2\xc4\x85"
797 "\xb0\x87\xe9\x17\x9b\xb6\x23\x62\xd2\xa9\x9f\x57\xe8\xf7\x04\x45"
798 "\x24\x3a\x45\xeb\xeb\x6a\x08\x8e\xaf\xc8\xa0\x84\xbc\x5d\x13\x38"
799 "\xf5\x17\x8c\xa3\x96\x9b\xa9\x38\x8d\xf0\x35\xad\x32\x8a\x72\x5b"
800 "\xdf\x21\xab\x4b\x0e\xa8\x29\xbb\x61\x54\xbf\x05\xdb\x84\x84\xde"
801 "\xdd\x16\x36\x31\xda\xf3\x42\x6d\x7a\x90\x22\x9b\x11\x29\xa6\xf8"
802 "\x30\x61\xda\xd3\x8b\x54\x1e\x42\xd1\x47\x1d\x6f\xd1\xcd\x42\x0b"
803 "\xd1\xe4\x15\x85\x7e\x08\xd6\x59\x64\x4c\x01\x34\x91\x92\x26\xe8"
804 "\xb0\x25\x8c\xf8\xf4\xfa\x8b\xc9\x31\x33\x76\x72\xfb\x64\x92\x9f"
805 "\xda\x62\x8d\xe1\x2a\x71\x91\x43\x40\x61\x3c\x5a\xbe\x86\xfc\x5b"
806 "\xe6\xf9\xa9\x16\x31\x1f\xaf\x25\x6d\xc2\x4a\x23\x6e\x63\x02\xa2",
807 .c_size = 256,
808 .siggen_sigver_test = true,
809 }
810};
811
Eric Biggersb13b1e02017-02-24 15:46:59 -0800812static const struct kpp_testvec dh_tv_template[] = {
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100813 {
814 .secret =
815#ifdef __LITTLE_ENDIAN
816 "\x01\x00" /* type */
Eric Biggers35f7d522018-07-27 15:36:10 -0700817 "\x15\x02" /* len */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100818 "\x00\x01\x00\x00" /* key_size */
819 "\x00\x01\x00\x00" /* p_size */
Stephan Muellerc98fae52018-07-11 20:35:49 +0200820 "\x00\x00\x00\x00" /* q_size */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100821 "\x01\x00\x00\x00" /* g_size */
822#else
823 "\x00\x01" /* type */
Eric Biggers35f7d522018-07-27 15:36:10 -0700824 "\x02\x15" /* len */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100825 "\x00\x00\x01\x00" /* key_size */
826 "\x00\x00\x01\x00" /* p_size */
Stephan Muellerc98fae52018-07-11 20:35:49 +0200827 "\x00\x00\x00\x00" /* q_size */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100828 "\x00\x00\x00\x01" /* g_size */
829#endif
830 /* xa */
831 "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3"
832 "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15"
833 "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e"
834 "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74"
835 "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a"
836 "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22"
837 "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a"
838 "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8"
839 "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4"
840 "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29"
841 "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29"
842 "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5"
843 "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18"
844 "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6"
845 "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0"
846 "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63"
847 /* p */
848 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
849 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
850 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
851 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
852 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
853 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
854 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
855 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
856 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
857 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
858 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
859 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
860 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
861 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
862 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
863 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
864 /* g */
865 "\x02",
866 .b_public =
867 "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54"
868 "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79"
869 "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f"
870 "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3"
871 "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa"
872 "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea"
873 "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37"
874 "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39"
875 "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6"
876 "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60"
877 "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21"
878 "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63"
879 "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e"
880 "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67"
881 "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40"
882 "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f",
883 .expected_a_public =
884 "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee"
885 "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85"
886 "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4"
887 "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6"
888 "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23"
889 "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd"
890 "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e"
891 "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a"
892 "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a"
893 "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb"
894 "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93"
895 "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26"
896 "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7"
897 "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f"
898 "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62"
899 "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39",
900 .expected_ss =
901 "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46"
902 "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24"
903 "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22"
904 "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75"
905 "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb"
906 "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a"
907 "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc"
908 "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4"
909 "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09"
910 "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c"
911 "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44"
912 "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4"
913 "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82"
914 "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11"
915 "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50"
916 "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17",
Eric Biggers35f7d522018-07-27 15:36:10 -0700917 .secret_size = 533,
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100918 .b_public_size = 256,
919 .expected_a_public_size = 256,
920 .expected_ss_size = 256,
921 },
922 {
923 .secret =
924#ifdef __LITTLE_ENDIAN
925 "\x01\x00" /* type */
Eric Biggers35f7d522018-07-27 15:36:10 -0700926 "\x15\x02" /* len */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100927 "\x00\x01\x00\x00" /* key_size */
928 "\x00\x01\x00\x00" /* p_size */
Stephan Muellerc98fae52018-07-11 20:35:49 +0200929 "\x00\x00\x00\x00" /* q_size */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100930 "\x01\x00\x00\x00" /* g_size */
931#else
932 "\x00\x01" /* type */
Eric Biggers35f7d522018-07-27 15:36:10 -0700933 "\x02\x15" /* len */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100934 "\x00\x00\x01\x00" /* key_size */
935 "\x00\x00\x01\x00" /* p_size */
Stephan Muellerc98fae52018-07-11 20:35:49 +0200936 "\x00\x00\x00\x00" /* q_size */
Salvatore Benedetto802c7f12016-06-22 17:49:14 +0100937 "\x00\x00\x00\x01" /* g_size */
938#endif
939 /* xa */
940 "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e"
941 "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5"
942 "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80"
943 "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67"
944 "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04"
945 "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4"
946 "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d"
947 "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9"
948 "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a"
949 "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97"
950 "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1"
951 "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a"
952 "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e"
953 "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21"
954 "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f"
955 "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26"
956 /* p */
957 "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81"
958 "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc"
959 "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89"
960 "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64"
961 "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3"
962 "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98"
963 "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26"
964 "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6"
965 "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06"
966 "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7"
967 "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2"
968 "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb"
969 "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f"
970 "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca"
971 "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67"
972 "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73"
973 /* g */
974 "\x02",
975 .b_public =
976 "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e"
977 "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e"
978 "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94"
979 "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77"
980 "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55"
981 "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f"
982 "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97"
983 "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1"
984 "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5"
985 "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf"
986 "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37"
987 "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25"
988 "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77"
989 "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0"
990 "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96"
991 "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f",
992 .expected_a_public =
993 "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18"
994 "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28"
995 "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d"
996 "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4"
997 "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1"
998 "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3"
999 "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83"
1000 "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c"
1001 "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62"
1002 "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf"
1003 "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e"
1004 "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a"
1005 "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66"
1006 "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a"
1007 "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f"
1008 "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd",
1009 .expected_ss =
1010 "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47"
1011 "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58"
1012 "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81"
1013 "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb"
1014 "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b"
1015 "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f"
1016 "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76"
1017 "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc"
1018 "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0"
1019 "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad"
1020 "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93"
1021 "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94"
1022 "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8"
1023 "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a"
1024 "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee"
1025 "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd",
Eric Biggers35f7d522018-07-27 15:36:10 -07001026 .secret_size = 533,
Salvatore Benedetto802c7f12016-06-22 17:49:14 +01001027 .b_public_size = 256,
1028 .expected_a_public_size = 256,
1029 .expected_ss_size = 256,
1030 }
1031};
1032
Eric Biggersb13b1e02017-02-24 15:46:59 -08001033static const struct kpp_testvec ecdh_tv_template[] = {
Salvatore Benedetto3c4b2392016-06-22 17:49:15 +01001034 {
1035#ifndef CONFIG_CRYPTO_FIPS
1036 .secret =
1037#ifdef __LITTLE_ENDIAN
1038 "\x02\x00" /* type */
1039 "\x20\x00" /* len */
1040 "\x01\x00" /* curve_id */
1041 "\x18\x00" /* key_size */
1042#else
1043 "\x00\x02" /* type */
1044 "\x00\x20" /* len */
1045 "\x00\x01" /* curve_id */
1046 "\x00\x18" /* key_size */
1047#endif
1048 "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda"
1049 "\x4e\x19\x1e\x62\x1f\x23\x23\x31"
1050 "\x36\x1e\xd3\x84\x2f\xcc\x21\x72",
1051 .b_public =
1052 "\xc3\xba\x67\x4b\x71\xec\xd0\x76"
1053 "\x7a\x99\x75\x64\x36\x13\x9a\x94"
1054 "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f"
1055 "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e"
1056 "\x83\x87\xdd\x67\x09\xf8\x8d\x96"
1057 "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67",
1058 .expected_a_public =
1059 "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79"
1060 "\xa3\xe6\xef\x0e\x5c\x80\x49\x85"
1061 "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c"
1062 "\x22\x90\x21\x02\xf9\x1b\x81\x5d"
1063 "\x0c\x8a\xa8\x98\xd6\x27\x69\x88"
1064 "\x5e\xbc\x94\xd8\x15\x9e\x21\xce",
1065 .expected_ss =
1066 "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc"
1067 "\xe3\x40\x60\xc8\x06\x93\xc6\x2e"
1068 "\x99\x80\x81\x28\xaf\xc5\x51\x74",
1069 .secret_size = 32,
1070 .b_public_size = 48,
1071 .expected_a_public_size = 48,
1072 .expected_ss_size = 24
1073 }, {
1074#endif
1075 .secret =
1076#ifdef __LITTLE_ENDIAN
1077 "\x02\x00" /* type */
1078 "\x28\x00" /* len */
1079 "\x02\x00" /* curve_id */
1080 "\x20\x00" /* key_size */
1081#else
1082 "\x00\x02" /* type */
1083 "\x00\x28" /* len */
1084 "\x00\x02" /* curve_id */
1085 "\x00\x20" /* key_size */
1086#endif
1087 "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
1088 "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
1089 "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
1090 "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
1091 .expected_a_public =
1092 "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
1093 "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
1094 "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
1095 "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
1096 "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
1097 "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
1098 "\x6a\x02\x6e\x41\x87\x68\x38\x77"
1099 "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
1100 .expected_ss =
1101 "\xea\x17\x6f\x7e\x6e\x57\x26\x38"
1102 "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5"
1103 "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa"
1104 "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9",
1105 .b_public =
1106 "\xcc\xb4\xda\x74\xb1\x47\x3f\xea"
1107 "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7"
1108 "\x29\xb2\x47\x03\x19\xab\xdd\x34"
1109 "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9"
1110 "\x64\x63\xf7\x70\x20\x2f\xa4\xe6"
1111 "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f"
1112 "\xb1\x32\xbb\xaf\x22\x61\xda\xcb"
1113 "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3",
1114 .secret_size = 40,
1115 .b_public_size = 64,
1116 .expected_a_public_size = 64,
1117 .expected_ss_size = 32
Tudor-Dan Ambarus47d3fd32017-05-30 17:52:49 +03001118 }, {
1119 .secret =
1120#ifdef __LITTLE_ENDIAN
1121 "\x02\x00" /* type */
1122 "\x08\x00" /* len */
1123 "\x02\x00" /* curve_id */
1124 "\x00\x00", /* key_size */
1125#else
1126 "\x00\x02" /* type */
1127 "\x00\x08" /* len */
1128 "\x00\x02" /* curve_id */
1129 "\x00\x00", /* key_size */
1130#endif
1131 .b_secret =
1132#ifdef __LITTLE_ENDIAN
1133 "\x02\x00" /* type */
1134 "\x28\x00" /* len */
1135 "\x02\x00" /* curve_id */
1136 "\x20\x00" /* key_size */
1137#else
1138 "\x00\x02" /* type */
1139 "\x00\x28" /* len */
1140 "\x00\x02" /* curve_id */
1141 "\x00\x20" /* key_size */
1142#endif
1143 "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83"
1144 "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3"
1145 "\x8b\xe0\x86\xc3\x20\x19\xda\x92"
1146 "\x50\x53\x03\xe1\xc0\xea\xb8\x82",
1147 .b_public =
1148 "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31"
1149 "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4"
1150 "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5"
1151 "\xb6\x63\x82\x77\x33\x24\xa1\x5f"
1152 "\x6a\xca\x43\x6f\xf7\x7e\xff\x02"
1153 "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a"
1154 "\x6a\x02\x6e\x41\x87\x68\x38\x77"
1155 "\xfa\xa9\x44\x43\x2d\xef\x09\xdf",
1156 .secret_size = 8,
1157 .b_secret_size = 40,
1158 .b_public_size = 64,
1159 .expected_a_public_size = 64,
1160 .expected_ss_size = 32,
1161 .genkey = true,
Salvatore Benedetto3c4b2392016-06-22 17:49:15 +01001162 }
1163};
1164
Tadeusz Struk946cc462015-06-16 10:31:06 -07001165/*
Herbert Xuda7f0332008-07-31 17:08:25 +08001166 * MD4 test vectors from RFC1320
1167 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08001168static const struct hash_testvec md4_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08001169 {
1170 .plaintext = "",
1171 .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31"
1172 "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0",
1173 }, {
1174 .plaintext = "a",
1175 .psize = 1,
1176 .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46"
1177 "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24",
1178 }, {
1179 .plaintext = "abc",
1180 .psize = 3,
1181 .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52"
1182 "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d",
1183 }, {
1184 .plaintext = "message digest",
1185 .psize = 14,
1186 .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8"
1187 "\x18\x87\x48\x06\xe1\xc7\x01\x4b",
1188 }, {
1189 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1190 .psize = 26,
1191 .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd"
1192 "\xee\xa8\xed\x63\xdf\x41\x2d\xa9",
Herbert Xuda7f0332008-07-31 17:08:25 +08001193 }, {
1194 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1195 .psize = 62,
1196 .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35"
1197 "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4",
1198 }, {
1199 .plaintext = "123456789012345678901234567890123456789012345678901234567890123"
1200 "45678901234567890",
1201 .psize = 80,
1202 .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19"
1203 "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36",
1204 },
1205};
1206
Eric Biggersb13b1e02017-02-24 15:46:59 -08001207static const struct hash_testvec sha3_224_tv_template[] = {
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301208 {
1209 .plaintext = "",
1210 .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7"
1211 "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab"
1212 "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f"
1213 "\x5b\x5a\x6b\xc7",
1214 }, {
1215 .plaintext = "a",
1216 .psize = 1,
1217 .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f"
1218 "\x40\x5f\x08\x12\x69\x68\x5b\x38"
1219 "\xe3\xa8\x19\xb3\x09\xee\x94\x2f"
1220 "\x48\x2b\x6a\x8b",
1221 }, {
1222 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1223 "jklmklmnlmnomnopnopq",
1224 .psize = 56,
1225 .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21"
1226 "\xc9\xfd\x55\x74\x49\x44\x79\xba"
1227 "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea"
1228 "\xd0\xfc\xce\x33",
Ard Biesheuveld60031d2018-01-19 12:04:37 +00001229 }, {
1230 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1231 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1232 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1233 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1234 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1235 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1236 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1237 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1238 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1239 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1240 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1241 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1242 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1243 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1244 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1245 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1246 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1247 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1248 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1249 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1250 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1251 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1252 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1253 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1254 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1255 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1256 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1257 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1258 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1259 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1260 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1261 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1262 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1263 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1264 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1265 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1266 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1267 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1268 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1269 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1270 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1271 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1272 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1273 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1274 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1275 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1276 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1277 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1278 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1279 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1280 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1281 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1282 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1283 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1284 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1285 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1286 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1287 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1288 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1289 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1290 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1291 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1292 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1293 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1294 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1295 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1296 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1297 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1298 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1299 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1300 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1301 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1302 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1303 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1304 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1305 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1306 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1307 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1308 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1309 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1310 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1311 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1312 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1313 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1314 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1315 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1316 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1317 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1318 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1319 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1320 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1321 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1322 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1323 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1324 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1325 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1326 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1327 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1328 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1329 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1330 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1331 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1332 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1333 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1334 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1335 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1336 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1337 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1338 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1339 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1340 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1341 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1342 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1343 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1344 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1345 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1346 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1347 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1348 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1349 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1350 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1351 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1352 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1353 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1354 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1355 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1356 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1357 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1358 .psize = 1023,
1359 .digest = "\x7d\x0f\x2f\xb7\x65\x3b\xa7\x26"
1360 "\xc3\x88\x20\x71\x15\x06\xe8\x2d"
1361 "\xa3\x92\x44\xab\x3e\xe7\xff\x86"
1362 "\xb6\x79\x10\x72",
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301363 },
1364};
1365
Eric Biggersb13b1e02017-02-24 15:46:59 -08001366static const struct hash_testvec sha3_256_tv_template[] = {
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301367 {
1368 .plaintext = "",
1369 .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66"
1370 "\x51\xc1\x47\x56\xa0\x61\xd6\x62"
1371 "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa"
1372 "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a",
1373 }, {
1374 .plaintext = "a",
1375 .psize = 1,
1376 .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75"
1377 "\x72\x6f\xeb\x2c\xab\x2d\x82\x15"
1378 "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2"
1379 "\xc8\x15\x12\x57\x03\x2e\xcd\x8b",
1380 }, {
1381 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1382 "jklmklmnlmnomnopnopq",
1383 .psize = 56,
1384 .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08"
1385 "\x49\x10\x03\x76\xa8\x23\x5e\x2c"
1386 "\x82\xe1\xb9\x99\x8a\x99\x9e\x21"
1387 "\xdb\x32\xdd\x97\x49\x6d\x33\x76",
Ard Biesheuveld60031d2018-01-19 12:04:37 +00001388 }, {
1389 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1390 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1391 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1392 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1393 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1394 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1395 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1396 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1397 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1398 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1399 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1400 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1401 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1402 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1403 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1404 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1405 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1406 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1407 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1408 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1409 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1410 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1411 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1412 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1413 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1414 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1415 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1416 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1417 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1418 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1419 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1420 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1421 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1422 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1423 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1424 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1425 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1426 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1427 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1428 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1429 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1430 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1431 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1432 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1433 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1434 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1435 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1436 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1437 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1438 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1439 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1440 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1441 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1442 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1443 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1444 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1445 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1446 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1447 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1448 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1449 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1450 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1451 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1452 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1453 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1454 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1455 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1456 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1457 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1458 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1459 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1460 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1461 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1462 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1463 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1464 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1465 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1466 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1467 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1468 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1469 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1470 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1471 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1472 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1473 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1474 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1475 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1476 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1477 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1478 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1479 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1480 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1481 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1482 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1483 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1484 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1485 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1486 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1487 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1488 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1489 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1490 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1491 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1492 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1493 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1494 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1495 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1496 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1497 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1498 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1499 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1500 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1501 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1502 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1503 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1504 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1505 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1506 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1507 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1508 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1509 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1510 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1511 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1512 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1513 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1514 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1515 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1516 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1517 .psize = 1023,
1518 .digest = "\xde\x41\x04\xbd\xda\xda\xd9\x71"
1519 "\xf7\xfa\x80\xf5\xea\x11\x03\xb1"
1520 "\x3b\x6a\xbc\x5f\xb9\x66\x26\xf7"
1521 "\x8a\x97\xbb\xf2\x07\x08\x38\x30",
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301522 },
1523};
1524
1525
Eric Biggersb13b1e02017-02-24 15:46:59 -08001526static const struct hash_testvec sha3_384_tv_template[] = {
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301527 {
1528 .plaintext = "",
1529 .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d"
1530 "\x01\x10\x7d\x85\x2e\x4c\x24\x85"
1531 "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61"
1532 "\x99\x5e\x71\xbb\xee\x98\x3a\x2a"
1533 "\xc3\x71\x38\x31\x26\x4a\xdb\x47"
1534 "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04",
1535 }, {
1536 .plaintext = "a",
1537 .psize = 1,
1538 .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b"
1539 "\x48\x56\x9e\xfe\xc7\x94\xd2\x49"
1540 "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7"
1541 "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7"
1542 "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8"
1543 "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9",
1544 }, {
1545 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1546 "jklmklmnlmnomnopnopq",
1547 .psize = 56,
1548 .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b"
1549 "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e"
1550 "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42"
1551 "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a"
1552 "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1"
1553 "\x9e\xef\x51\xac\xd0\x65\x7c\x22",
Ard Biesheuveld60031d2018-01-19 12:04:37 +00001554 }, {
1555 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1556 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1557 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1558 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1559 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1560 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1561 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1562 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1563 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1564 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1565 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1566 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1567 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1568 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1569 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1570 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1571 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1572 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1573 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1574 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1575 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1576 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1577 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1578 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1579 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1580 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1581 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1582 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1583 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1584 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1585 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1586 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1587 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1588 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1589 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1590 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1591 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1592 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1593 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1594 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1595 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1596 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1597 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1598 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1599 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1600 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1601 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1602 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1603 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1604 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1605 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1606 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1607 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1608 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1609 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1610 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1611 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1612 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1613 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1614 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1615 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1616 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1617 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1618 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1619 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1620 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1621 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1622 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1623 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1624 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1625 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1626 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1627 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1628 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1629 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1630 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1631 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1632 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1633 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1634 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1635 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1636 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1637 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1638 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1639 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1640 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1641 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1642 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1643 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1644 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1645 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1646 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1647 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1648 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1649 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1650 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1651 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1652 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1653 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1654 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1655 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1656 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1657 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1658 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1659 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1660 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1661 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1662 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1663 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1664 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1665 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1666 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1667 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1668 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1669 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1670 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1671 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1672 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1673 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1674 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1675 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1676 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1677 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1678 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1679 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1680 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1681 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1682 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1683 .psize = 1023,
1684 .digest = "\x1b\x19\x4d\x8f\xd5\x36\x87\x71"
1685 "\xcf\xca\x30\x85\x9b\xc1\x25\xc7"
1686 "\x00\xcb\x73\x8a\x8e\xd4\xfe\x2b"
1687 "\x1a\xa2\xdc\x2e\x41\xfd\x52\x51"
1688 "\xd2\x21\xae\x2d\xc7\xae\x8c\x40"
1689 "\xb9\xe6\x56\x48\x03\xcd\x88\x6b",
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301690 },
1691};
1692
1693
Eric Biggersb13b1e02017-02-24 15:46:59 -08001694static const struct hash_testvec sha3_512_tv_template[] = {
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301695 {
1696 .plaintext = "",
1697 .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5"
1698 "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e"
1699 "\x97\xc9\x82\x16\x4f\xe2\x58\x59"
1700 "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6"
1701 "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c"
1702 "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58"
1703 "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3"
1704 "\x01\x75\x85\x86\x28\x1d\xcd\x26",
1705 }, {
1706 .plaintext = "a",
1707 .psize = 1,
1708 .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83"
1709 "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3"
1710 "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf"
1711 "\xb4\x96\x2d\x86\x98\xb7\xfa\x80"
1712 "\x3f\x4f\x93\xff\x24\x39\x35\x86"
1713 "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3"
1714 "\x69\x42\x0c\xe5\x33\x32\x71\x2f"
1715 "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a",
1716 }, {
1717 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl"
1718 "jklmklmnlmnomnopnopq",
1719 .psize = 56,
1720 .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8"
1721 "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18"
1722 "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f"
1723 "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d"
1724 "\xee\x69\x1f\xbe\x0c\x98\x53\x02"
1725 "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63"
1726 "\x46\xb5\x33\xb4\x9c\x03\x0d\x99"
1727 "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e",
Ard Biesheuveld60031d2018-01-19 12:04:37 +00001728 }, {
1729 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
1730 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
1731 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
1732 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
1733 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
1734 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
1735 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
1736 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
1737 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
1738 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
1739 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
1740 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
1741 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
1742 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
1743 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
1744 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
1745 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
1746 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
1747 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
1748 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
1749 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
1750 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
1751 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
1752 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
1753 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
1754 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
1755 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
1756 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
1757 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
1758 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
1759 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
1760 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
1761 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
1762 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
1763 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
1764 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
1765 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
1766 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
1767 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
1768 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
1769 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
1770 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
1771 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
1772 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
1773 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
1774 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
1775 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
1776 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
1777 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
1778 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
1779 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
1780 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
1781 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
1782 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
1783 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
1784 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
1785 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
1786 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
1787 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
1788 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
1789 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
1790 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
1791 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
1792 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
1793 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
1794 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
1795 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
1796 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
1797 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
1798 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
1799 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
1800 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
1801 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
1802 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
1803 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
1804 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
1805 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
1806 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
1807 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
1808 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
1809 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
1810 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
1811 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
1812 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
1813 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
1814 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
1815 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
1816 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
1817 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
1818 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
1819 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
1820 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
1821 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
1822 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
1823 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
1824 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
1825 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
1826 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
1827 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
1828 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
1829 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
1830 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
1831 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
1832 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
1833 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
1834 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
1835 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
1836 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
1837 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
1838 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
1839 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
1840 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
1841 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
1842 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
1843 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
1844 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
1845 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
1846 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
1847 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
1848 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
1849 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
1850 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
1851 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
1852 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
1853 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
1854 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
1855 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
1856 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
1857 .psize = 1023,
1858 .digest = "\x59\xda\x30\xe3\x90\xe4\x3d\xde"
1859 "\xf0\xc6\x42\x17\xd7\xb2\x26\x47"
1860 "\x90\x28\xa6\x84\xe8\x49\x7a\x86"
1861 "\xd6\xb8\x9e\xf8\x07\x59\x21\x03"
1862 "\xad\xd2\xed\x48\xa3\xb9\xa5\xf0"
1863 "\xb3\xae\x02\x2b\xb8\xaf\xc3\x3b"
1864 "\xd6\xb0\x8f\xcb\x76\x8b\xa7\x41"
1865 "\x32\xc2\x8e\x50\x91\x86\x90\xfb",
raveendra padasalagi79cc6ab2016-06-17 10:30:36 +05301866 },
1867};
1868
1869
Herbert Xuda7f0332008-07-31 17:08:25 +08001870/*
1871 * MD5 test vectors from RFC1321
1872 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08001873static const struct hash_testvec md5_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08001874 {
1875 .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04"
1876 "\xe9\x80\x09\x98\xec\xf8\x42\x7e",
1877 }, {
1878 .plaintext = "a",
1879 .psize = 1,
1880 .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8"
1881 "\x31\xc3\x99\xe2\x69\x77\x26\x61",
1882 }, {
1883 .plaintext = "abc",
1884 .psize = 3,
1885 .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0"
1886 "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72",
1887 }, {
1888 .plaintext = "message digest",
1889 .psize = 14,
1890 .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d"
1891 "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0",
1892 }, {
1893 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1894 .psize = 26,
1895 .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00"
1896 "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b",
Herbert Xuda7f0332008-07-31 17:08:25 +08001897 }, {
1898 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",
1899 .psize = 62,
1900 .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5"
1901 "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f",
1902 }, {
1903 .plaintext = "12345678901234567890123456789012345678901234567890123456789012"
1904 "345678901234567890",
1905 .psize = 80,
1906 .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55"
1907 "\xac\x49\xda\x2e\x21\x07\xb6\x7a",
1908 }
1909
1910};
1911
1912/*
1913 * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E)
1914 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08001915static const struct hash_testvec rmd128_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08001916 {
1917 .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e"
1918 "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46",
1919 }, {
1920 .plaintext = "a",
1921 .psize = 1,
1922 .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7"
1923 "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33",
1924 }, {
1925 .plaintext = "abc",
1926 .psize = 3,
1927 .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba"
1928 "\x84\x63\x6b\x0f\x69\x14\x4c\x77",
1929 }, {
1930 .plaintext = "message digest",
1931 .psize = 14,
1932 .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62"
1933 "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8",
1934 }, {
1935 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1936 .psize = 26,
1937 .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5"
1938 "\x10\x71\x49\x22\xb3\x71\x83\x4e",
1939 }, {
1940 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
1941 "fghijklmnopqrstuvwxyz0123456789",
1942 .psize = 62,
1943 .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f"
1944 "\xae\xa4\x62\x4c\x60\xc5\xc7\x02",
1945 }, {
1946 .plaintext = "1234567890123456789012345678901234567890"
1947 "1234567890123456789012345678901234567890",
1948 .psize = 80,
1949 .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb"
1950 "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3",
1951 }, {
1952 .plaintext = "abcdbcdecdefdefgefghfghighij"
1953 "hijkijkljklmklmnlmnomnopnopq",
1954 .psize = 56,
1955 .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d"
1956 "\xdc\x22\xe8\x8b\x49\x13\x3a\x06",
Herbert Xuda7f0332008-07-31 17:08:25 +08001957 }, {
1958 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
1959 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
1960 "lmnopqrsmnopqrstnopqrstu",
1961 .psize = 112,
1962 .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b"
1963 "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46",
1964 }, {
1965 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
1966 .psize = 32,
1967 .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d"
1968 "\xe1\x93\xff\x46\xdb\xac\xcf\xd4",
1969 }
1970};
1971
1972/*
1973 * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E)
1974 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08001975static const struct hash_testvec rmd160_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08001976 {
1977 .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28"
1978 "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31",
1979 }, {
1980 .plaintext = "a",
1981 .psize = 1,
1982 .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae"
1983 "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe",
1984 }, {
1985 .plaintext = "abc",
1986 .psize = 3,
1987 .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04"
1988 "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc",
1989 }, {
1990 .plaintext = "message digest",
1991 .psize = 14,
1992 .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8"
1993 "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36",
1994 }, {
1995 .plaintext = "abcdefghijklmnopqrstuvwxyz",
1996 .psize = 26,
1997 .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb"
1998 "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc",
1999 }, {
2000 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
2001 "fghijklmnopqrstuvwxyz0123456789",
2002 .psize = 62,
2003 .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed"
2004 "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89",
2005 }, {
2006 .plaintext = "1234567890123456789012345678901234567890"
2007 "1234567890123456789012345678901234567890",
2008 .psize = 80,
2009 .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb"
2010 "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb",
2011 }, {
2012 .plaintext = "abcdbcdecdefdefgefghfghighij"
2013 "hijkijkljklmklmnlmnomnopnopq",
2014 .psize = 56,
2015 .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05"
2016 "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b",
Herbert Xuda7f0332008-07-31 17:08:25 +08002017 }, {
2018 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi"
2019 "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr"
2020 "lmnopqrsmnopqrstnopqrstu",
2021 .psize = 112,
2022 .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91"
2023 "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45",
2024 }, {
2025 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
2026 .psize = 32,
2027 .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d"
2028 "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f",
2029 }
2030};
2031
2032/*
2033 * RIPEMD-256 test vectors
2034 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08002035static const struct hash_testvec rmd256_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08002036 {
2037 .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18"
2038 "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a"
2039 "\x2d\x97\x74\xfb\x1e\x5d\x02\x63"
2040 "\x80\xae\x01\x68\xe3\xc5\x52\x2d",
2041 }, {
2042 .plaintext = "a",
2043 .psize = 1,
2044 .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9"
2045 "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c"
2046 "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf"
2047 "\xcd\x88\x3a\x91\x34\x69\x29\x25",
2048 }, {
2049 .plaintext = "abc",
2050 .psize = 3,
2051 .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb"
2052 "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1"
2053 "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e"
2054 "\x1e\x42\xd2\xe9\x75\x45\x9b\x65",
2055 }, {
2056 .plaintext = "message digest",
2057 .psize = 14,
2058 .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a"
2059 "\x51\x4d\x5c\x91\x4c\x39\x2c\x90"
2060 "\x18\xc7\xc4\x6b\xc1\x44\x65\x55"
2061 "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e",
2062 }, {
2063 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2064 .psize = 26,
2065 .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16"
2066 "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc"
2067 "\x78\x96\x11\x8a\x51\x97\x96\x87"
2068 "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33",
2069 }, {
2070 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
2071 "fghijklmnopqrstuvwxyz0123456789",
2072 .psize = 62,
2073 .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20"
2074 "\xb8\x44\x24\xae\x93\x1c\xbb\x1f"
2075 "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1"
2076 "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8",
2077 }, {
2078 .plaintext = "1234567890123456789012345678901234567890"
2079 "1234567890123456789012345678901234567890",
2080 .psize = 80,
2081 .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa"
2082 "\xf9\x13\x68\xc0\x6a\x62\x75\xb5"
2083 "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed"
2084 "\xfd\x67\x78\xdf\x89\xa8\x90\xdd",
2085 }, {
2086 .plaintext = "abcdbcdecdefdefgefghfghighij"
2087 "hijkijkljklmklmnlmnomnopnopq",
2088 .psize = 56,
2089 .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8"
2090 "\xc8\xd9\x12\x85\x73\xe7\xa9\x80"
2091 "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e"
2092 "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f",
Herbert Xuda7f0332008-07-31 17:08:25 +08002093 }
2094};
2095
2096/*
2097 * RIPEMD-320 test vectors
2098 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08002099static const struct hash_testvec rmd320_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08002100 {
2101 .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1"
2102 "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25"
2103 "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e"
2104 "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8",
2105 }, {
2106 .plaintext = "a",
2107 .psize = 1,
2108 .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5"
2109 "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57"
2110 "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54"
2111 "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d",
2112 }, {
2113 .plaintext = "abc",
2114 .psize = 3,
2115 .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d"
2116 "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08"
2117 "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74"
2118 "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d",
2119 }, {
2120 .plaintext = "message digest",
2121 .psize = 14,
2122 .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68"
2123 "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa"
2124 "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d"
2125 "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97",
2126 }, {
2127 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2128 .psize = 26,
2129 .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93"
2130 "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4"
2131 "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed"
2132 "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09",
2133 }, {
2134 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde"
2135 "fghijklmnopqrstuvwxyz0123456789",
2136 .psize = 62,
2137 .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2"
2138 "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c"
2139 "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9"
2140 "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4",
2141 }, {
2142 .plaintext = "1234567890123456789012345678901234567890"
2143 "1234567890123456789012345678901234567890",
2144 .psize = 80,
2145 .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6"
2146 "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41"
2147 "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f"
2148 "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42",
2149 }, {
2150 .plaintext = "abcdbcdecdefdefgefghfghighij"
2151 "hijkijkljklmklmnlmnomnopnopq",
2152 .psize = 56,
2153 .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4"
2154 "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59"
2155 "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b"
2156 "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac",
Herbert Xuda7f0332008-07-31 17:08:25 +08002157 }
2158};
2159
Eric Biggersb13b1e02017-02-24 15:46:59 -08002160static const struct hash_testvec crct10dif_tv_template[] = {
Herbert Xu684115212013-09-07 12:56:26 +10002161 {
Ard Biesheuveld31de182016-12-05 18:42:24 +00002162 .plaintext = "abc",
2163 .psize = 3,
2164 .digest = (u8 *)(u16 []){ 0x443b },
Herbert Xu684115212013-09-07 12:56:26 +10002165 }, {
Ard Biesheuveld31de182016-12-05 18:42:24 +00002166 .plaintext = "1234567890123456789012345678901234567890"
2167 "123456789012345678901234567890123456789",
2168 .psize = 79,
2169 .digest = (u8 *)(u16 []){ 0x4b70 },
Herbert Xu684115212013-09-07 12:56:26 +10002170 }, {
Ard Biesheuveld31de182016-12-05 18:42:24 +00002171 .plaintext = "abcdddddddddddddddddddddddddddddddddddddddd"
2172 "ddddddddddddd",
2173 .psize = 56,
2174 .digest = (u8 *)(u16 []){ 0x9ce3 },
Ard Biesheuveld31de182016-12-05 18:42:24 +00002175 }, {
2176 .plaintext = "1234567890123456789012345678901234567890"
2177 "1234567890123456789012345678901234567890"
2178 "1234567890123456789012345678901234567890"
2179 "1234567890123456789012345678901234567890"
2180 "1234567890123456789012345678901234567890"
2181 "1234567890123456789012345678901234567890"
2182 "1234567890123456789012345678901234567890"
2183 "123456789012345678901234567890123456789",
2184 .psize = 319,
2185 .digest = (u8 *)(u16 []){ 0x44c6 },
2186 }, {
Ard Biesheuvel702202f2018-03-10 15:21:46 +00002187 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
2188 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
2189 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
2190 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
2191 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
2192 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
2193 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
2194 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
2195 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
2196 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
2197 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
2198 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
2199 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
2200 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
2201 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
2202 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
2203 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
2204 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
2205 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
2206 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
2207 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
2208 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
2209 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
2210 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
2211 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
2212 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
2213 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
2214 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
2215 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
2216 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
2217 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
2218 "\x47\xde\x75\x0c\x80\x17\xae\x22"
2219 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
2220 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
2221 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
2222 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
2223 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
2224 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
2225 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
2226 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
2227 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
2228 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
2229 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
2230 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
2231 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
2232 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
2233 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
2234 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
2235 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
2236 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
2237 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
2238 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
2239 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
2240 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
2241 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
2242 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
2243 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
2244 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
2245 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
2246 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
2247 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
2248 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
2249 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
2250 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
2251 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
2252 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
2253 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
2254 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
2255 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
2256 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
2257 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
2258 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
2259 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
2260 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
2261 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
2262 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
2263 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
2264 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
2265 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
2266 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
2267 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
2268 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
2269 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
2270 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
2271 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
2272 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
2273 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
2274 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
2275 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
2276 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
2277 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
2278 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
2279 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
2280 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
2281 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
2282 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
2283 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
2284 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
2285 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
2286 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
2287 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
2288 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
2289 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
2290 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
2291 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
2292 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
2293 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
2294 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
2295 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
2296 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
2297 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
2298 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
2299 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
2300 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
2301 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
2302 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
2303 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
2304 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
2305 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
2306 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
2307 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
2308 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
2309 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
2310 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
2311 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
2312 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
2313 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
2314 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
2315 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
2316 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
2317 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
2318 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
2319 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
2320 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
2321 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
2322 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
2323 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
2324 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
2325 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
2326 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
2327 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
2328 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
2329 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
2330 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
2331 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
2332 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
2333 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
2334 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
2335 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
2336 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
2337 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
2338 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
2339 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
2340 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
2341 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
2342 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
2343 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
2344 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
2345 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
2346 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
2347 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
2348 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
2349 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
2350 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
2351 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
2352 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
2353 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
2354 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
2355 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
2356 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
2357 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
2358 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
2359 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
2360 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
2361 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
2362 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
2363 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
2364 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
2365 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
2366 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
2367 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
2368 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
2369 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
2370 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
2371 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
2372 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
2373 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
2374 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
2375 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
2376 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
2377 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
2378 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
2379 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
2380 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
2381 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
2382 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
2383 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
2384 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
2385 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
2386 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
2387 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
2388 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
2389 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
2390 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
2391 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
2392 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
2393 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
2394 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
2395 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
2396 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
2397 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
2398 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
2399 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
2400 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
2401 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
2402 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
2403 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
2404 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
2405 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
2406 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
2407 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
2408 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
2409 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
2410 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
2411 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
2412 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
2413 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
2414 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
2415 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
2416 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
2417 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
2418 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
2419 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
2420 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
2421 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
2422 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
2423 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
2424 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
2425 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
2426 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
2427 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
2428 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
2429 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
2430 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
2431 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
2432 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
2433 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
2434 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
2435 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
2436 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
2437 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
2438 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
2439 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
2440 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
2441 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
2442 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
2443 .psize = 2048,
2444 .digest = (u8 *)(u16 []){ 0x23ca },
Herbert Xu684115212013-09-07 12:56:26 +10002445 }
2446};
2447
Vitaly Chikunov25a0b9d2018-11-07 00:00:03 +03002448/*
2449 * Streebog test vectors from RFC 6986 and GOST R 34.11-2012
2450 */
2451static const struct hash_testvec streebog256_tv_template[] = {
2452 { /* M1 */
2453 .plaintext = "012345678901234567890123456789012345678901234567890123456789012",
2454 .psize = 63,
2455 .digest =
2456 "\x9d\x15\x1e\xef\xd8\x59\x0b\x89"
2457 "\xda\xa6\xba\x6c\xb7\x4a\xf9\x27"
2458 "\x5d\xd0\x51\x02\x6b\xb1\x49\xa4"
2459 "\x52\xfd\x84\xe5\xe5\x7b\x55\x00",
2460 },
2461 { /* M2 */
2462 .plaintext =
2463 "\xd1\xe5\x20\xe2\xe5\xf2\xf0\xe8"
2464 "\x2c\x20\xd1\xf2\xf0\xe8\xe1\xee"
2465 "\xe6\xe8\x20\xe2\xed\xf3\xf6\xe8"
2466 "\x2c\x20\xe2\xe5\xfe\xf2\xfa\x20"
2467 "\xf1\x20\xec\xee\xf0\xff\x20\xf1"
2468 "\xf2\xf0\xe5\xeb\xe0\xec\xe8\x20"
2469 "\xed\xe0\x20\xf5\xf0\xe0\xe1\xf0"
2470 "\xfb\xff\x20\xef\xeb\xfa\xea\xfb"
2471 "\x20\xc8\xe3\xee\xf0\xe5\xe2\xfb",
2472 .psize = 72,
2473 .digest =
2474 "\x9d\xd2\xfe\x4e\x90\x40\x9e\x5d"
2475 "\xa8\x7f\x53\x97\x6d\x74\x05\xb0"
2476 "\xc0\xca\xc6\x28\xfc\x66\x9a\x74"
2477 "\x1d\x50\x06\x3c\x55\x7e\x8f\x50",
2478 },
2479};
2480
2481static const struct hash_testvec streebog512_tv_template[] = {
2482 { /* M1 */
2483 .plaintext = "012345678901234567890123456789012345678901234567890123456789012",
2484 .psize = 63,
2485 .digest =
2486 "\x1b\x54\xd0\x1a\x4a\xf5\xb9\xd5"
2487 "\xcc\x3d\x86\xd6\x8d\x28\x54\x62"
2488 "\xb1\x9a\xbc\x24\x75\x22\x2f\x35"
2489 "\xc0\x85\x12\x2b\xe4\xba\x1f\xfa"
2490 "\x00\xad\x30\xf8\x76\x7b\x3a\x82"
2491 "\x38\x4c\x65\x74\xf0\x24\xc3\x11"
2492 "\xe2\xa4\x81\x33\x2b\x08\xef\x7f"
2493 "\x41\x79\x78\x91\xc1\x64\x6f\x48",
2494 },
2495 { /* M2 */
2496 .plaintext =
2497 "\xd1\xe5\x20\xe2\xe5\xf2\xf0\xe8"
2498 "\x2c\x20\xd1\xf2\xf0\xe8\xe1\xee"
2499 "\xe6\xe8\x20\xe2\xed\xf3\xf6\xe8"
2500 "\x2c\x20\xe2\xe5\xfe\xf2\xfa\x20"
2501 "\xf1\x20\xec\xee\xf0\xff\x20\xf1"
2502 "\xf2\xf0\xe5\xeb\xe0\xec\xe8\x20"
2503 "\xed\xe0\x20\xf5\xf0\xe0\xe1\xf0"
2504 "\xfb\xff\x20\xef\xeb\xfa\xea\xfb"
2505 "\x20\xc8\xe3\xee\xf0\xe5\xe2\xfb",
2506 .psize = 72,
2507 .digest =
2508 "\x1e\x88\xe6\x22\x26\xbf\xca\x6f"
2509 "\x99\x94\xf1\xf2\xd5\x15\x69\xe0"
2510 "\xda\xf8\x47\x5a\x3b\x0f\xe6\x1a"
2511 "\x53\x00\xee\xe4\x6d\x96\x13\x76"
2512 "\x03\x5f\xe8\x35\x49\xad\xa2\xb8"
2513 "\x62\x0f\xcd\x7c\x49\x6c\xe5\xb3"
2514 "\x3f\x0c\xb9\xdd\xdc\x2b\x64\x60"
2515 "\x14\x3b\x03\xda\xba\xc9\xfb\x28",
2516 },
2517};
2518
2519/*
2520 * Two HMAC-Streebog test vectors from RFC 7836 and R 50.1.113-2016 A
2521 */
2522static const struct hash_testvec hmac_streebog256_tv_template[] = {
2523 {
2524 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2525 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2526 "\x10\x11\x12\x13\x14\x15\x16\x17"
2527 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
2528 .ksize = 32,
2529 .plaintext =
2530 "\x01\x26\xbd\xb8\x78\x00\xaf\x21"
2531 "\x43\x41\x45\x65\x63\x78\x01\x00",
2532 .psize = 16,
2533 .digest =
2534 "\xa1\xaa\x5f\x7d\xe4\x02\xd7\xb3"
2535 "\xd3\x23\xf2\x99\x1c\x8d\x45\x34"
2536 "\x01\x31\x37\x01\x0a\x83\x75\x4f"
2537 "\xd0\xaf\x6d\x7c\xd4\x92\x2e\xd9",
2538 },
2539};
2540
2541static const struct hash_testvec hmac_streebog512_tv_template[] = {
2542 {
2543 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
2544 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
2545 "\x10\x11\x12\x13\x14\x15\x16\x17"
2546 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
2547 .ksize = 32,
2548 .plaintext =
2549 "\x01\x26\xbd\xb8\x78\x00\xaf\x21"
2550 "\x43\x41\x45\x65\x63\x78\x01\x00",
2551 .psize = 16,
2552 .digest =
2553 "\xa5\x9b\xab\x22\xec\xae\x19\xc6"
2554 "\x5f\xbd\xe6\xe5\xf4\xe9\xf5\xd8"
2555 "\x54\x9d\x31\xf0\x37\xf9\xdf\x9b"
2556 "\x90\x55\x00\xe1\x71\x92\x3a\x77"
2557 "\x3d\x5f\x15\x30\xf2\xed\x7e\x96"
2558 "\x4c\xb2\xee\xdc\x29\xe9\xad\x2f"
2559 "\x3a\xfe\x93\xb2\x81\x4f\x79\xf5"
2560 "\x00\x0f\xfc\x03\x66\xc2\x51\xe6",
2561 },
2562};
2563
Gilad Ben-Yossefb7e27532017-08-21 13:51:29 +03002564/* Example vectors below taken from
2565 * http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
2566 *
2567 * The rest taken from
2568 * https://github.com/adamws/oscca-sm3
2569 */
2570static const struct hash_testvec sm3_tv_template[] = {
2571 {
2572 .plaintext = "",
2573 .psize = 0,
2574 .digest = (u8 *)(u8 []) {
2575 0x1A, 0xB2, 0x1D, 0x83, 0x55, 0xCF, 0xA1, 0x7F,
2576 0x8e, 0x61, 0x19, 0x48, 0x31, 0xE8, 0x1A, 0x8F,
2577 0x22, 0xBE, 0xC8, 0xC7, 0x28, 0xFE, 0xFB, 0x74,
2578 0x7E, 0xD0, 0x35, 0xEB, 0x50, 0x82, 0xAA, 0x2B }
2579 }, {
2580 .plaintext = "a",
2581 .psize = 1,
2582 .digest = (u8 *)(u8 []) {
2583 0x62, 0x34, 0x76, 0xAC, 0x18, 0xF6, 0x5A, 0x29,
2584 0x09, 0xE4, 0x3C, 0x7F, 0xEC, 0x61, 0xB4, 0x9C,
2585 0x7E, 0x76, 0x4A, 0x91, 0xA1, 0x8C, 0xCB, 0x82,
2586 0xF1, 0x91, 0x7A, 0x29, 0xC8, 0x6C, 0x5E, 0x88 }
2587 }, {
2588 /* A.1. Example 1 */
2589 .plaintext = "abc",
2590 .psize = 3,
2591 .digest = (u8 *)(u8 []) {
2592 0x66, 0xC7, 0xF0, 0xF4, 0x62, 0xEE, 0xED, 0xD9,
2593 0xD1, 0xF2, 0xD4, 0x6B, 0xDC, 0x10, 0xE4, 0xE2,
2594 0x41, 0x67, 0xC4, 0x87, 0x5C, 0xF2, 0xF7, 0xA2,
2595 0x29, 0x7D, 0xA0, 0x2B, 0x8F, 0x4B, 0xA8, 0xE0 }
2596 }, {
2597 .plaintext = "abcdefghijklmnopqrstuvwxyz",
2598 .psize = 26,
2599 .digest = (u8 *)(u8 []) {
2600 0xB8, 0x0F, 0xE9, 0x7A, 0x4D, 0xA2, 0x4A, 0xFC,
2601 0x27, 0x75, 0x64, 0xF6, 0x6A, 0x35, 0x9E, 0xF4,
2602 0x40, 0x46, 0x2A, 0xD2, 0x8D, 0xCC, 0x6D, 0x63,
2603 0xAD, 0xB2, 0x4D, 0x5C, 0x20, 0xA6, 0x15, 0x95 }
2604 }, {
2605 /* A.1. Example 2 */
2606 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdab"
2607 "cdabcdabcdabcdabcd",
2608 .psize = 64,
2609 .digest = (u8 *)(u8 []) {
2610 0xDE, 0xBE, 0x9F, 0xF9, 0x22, 0x75, 0xB8, 0xA1,
2611 0x38, 0x60, 0x48, 0x89, 0xC1, 0x8E, 0x5A, 0x4D,
2612 0x6F, 0xDB, 0x70, 0xE5, 0x38, 0x7E, 0x57, 0x65,
2613 0x29, 0x3D, 0xCB, 0xA3, 0x9C, 0x0C, 0x57, 0x32 }
2614 }, {
2615 .plaintext = "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2616 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2617 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2618 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2619 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2620 "abcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcdabcd"
2621 "abcdabcdabcdabcdabcdabcdabcdabcd",
2622 .psize = 256,
2623 .digest = (u8 *)(u8 []) {
2624 0xB9, 0x65, 0x76, 0x4C, 0x8B, 0xEB, 0xB0, 0x91,
2625 0xC7, 0x60, 0x2B, 0x74, 0xAF, 0xD3, 0x4E, 0xEF,
2626 0xB5, 0x31, 0xDC, 0xCB, 0x4E, 0x00, 0x76, 0xD9,
2627 0xB7, 0xCD, 0x81, 0x31, 0x99, 0xB4, 0x59, 0x71 }
2628 }
2629};
2630
Pascal van Leeuwen8194fd12019-09-13 17:20:38 +02002631/* Example vectors below taken from
2632 * GM/T 0042-2015 Appendix D.3
2633 */
2634static const struct hash_testvec hmac_sm3_tv_template[] = {
2635 {
2636 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2637 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2638 "\x11\x12\x13\x14\x15\x16\x17\x18"
2639 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
2640 .ksize = 32,
2641 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
2642 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2643 .psize = 112,
2644 .digest = "\xca\x05\xe1\x44\xed\x05\xd1\x85"
2645 "\x78\x40\xd1\xf3\x18\xa4\xa8\x66"
2646 "\x9e\x55\x9f\xc8\x39\x1f\x41\x44"
2647 "\x85\xbf\xdf\x7b\xb4\x08\x96\x3a",
2648 }, {
2649 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
2650 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
2651 "\x11\x12\x13\x14\x15\x16\x17\x18"
2652 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
2653 "\x21\x22\x23\x24\x25",
2654 .ksize = 37,
2655 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2656 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2657 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
2658 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
2659 .psize = 50,
2660 .digest = "\x22\x0b\xf5\x79\xde\xd5\x55\x39"
2661 "\x3f\x01\x59\xf6\x6c\x99\x87\x78"
2662 "\x22\xa3\xec\xf6\x10\xd1\x55\x21"
2663 "\x54\xb4\x1d\x44\xb9\x4d\xb3\xae",
2664 }, {
2665 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2666 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
2667 "\x0b\x0b\x0b\x0b\x0b\x0b",
2668 .ksize = 32,
2669 .plaintext = "Hi There",
2670 .psize = 8,
2671 .digest = "\xc0\xba\x18\xc6\x8b\x90\xc8\x8b"
2672 "\xc0\x7d\xe7\x94\xbf\xc7\xd2\xc8"
2673 "\xd1\x9e\xc3\x1e\xd8\x77\x3b\xc2"
2674 "\xb3\x90\xc9\x60\x4e\x0b\xe1\x1e",
2675 }, {
2676 .key = "Jefe",
2677 .ksize = 4,
2678 .plaintext = "what do ya want for nothing?",
2679 .psize = 28,
2680 .digest = "\x2e\x87\xf1\xd1\x68\x62\xe6\xd9"
2681 "\x64\xb5\x0a\x52\x00\xbf\x2b\x10"
2682 "\xb7\x64\xfa\xa9\x68\x0a\x29\x6a"
2683 "\x24\x05\xf2\x4b\xec\x39\xf8\x82",
2684 },
2685};
2686
Herbert Xuda7f0332008-07-31 17:08:25 +08002687/*
2688 * SHA1 test vectors from from FIPS PUB 180-1
Herbert Xubd1f2992011-02-17 14:24:45 +11002689 * Long vector from CAVS 5.0
Herbert Xuda7f0332008-07-31 17:08:25 +08002690 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08002691static const struct hash_testvec sha1_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08002692 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002693 .plaintext = "",
2694 .psize = 0,
2695 .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55"
2696 "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09",
2697 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08002698 .plaintext = "abc",
2699 .psize = 3,
2700 .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e"
2701 "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d",
2702 }, {
2703 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2704 .psize = 56,
2705 .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae"
2706 "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1",
Herbert Xubd1f2992011-02-17 14:24:45 +11002707 }, {
2708 .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06"
2709 "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44"
2710 "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f"
2711 "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5"
2712 "\x73\x6a\x10\x6e\x92\xe1\x71\x39"
2713 "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3"
2714 "\xfb\x95\x46\xab\x42\x96\xfa\x9f"
2715 "\x72\x28\x26\xc0\x66\x86\x9e\xda"
2716 "\xcd\x73\xb2\x54\x80\x35\x18\x58"
2717 "\x13\xe2\x26\x34\xa9\xda\x44\x00"
2718 "\x0d\x95\xa2\x81\xff\x9f\x26\x4e"
2719 "\xcc\xe0\xa9\x31\x22\x21\x62\xd0"
2720 "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa"
2721 "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13"
2722 "\xae\x29\x81\x0f\xd7\x94\xca\xd5"
2723 "\xdf\xaf\x29\xec\x43\xcb\x38\xd1"
2724 "\x98\xfe\x4a\xe1\xda\x23\x59\x78"
2725 "\x02\x21\x40\x5b\xd6\x71\x2a\x53"
2726 "\x05\xda\x4b\x1b\x73\x7f\xce\x7c"
2727 "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23"
2728 "\x5a\x90\x11",
2729 .psize = 163,
2730 .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20"
2731 "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17",
Ard Biesheuvel45859882014-04-16 20:40:04 +08002732 }, {
2733 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2734 .psize = 64,
2735 .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82"
2736 "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91",
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002737 }, {
2738 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2739 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2740 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2741 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2742 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2743 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2744 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2745 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2746 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2747 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2748 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2749 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2750 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2751 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2752 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2753 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2754 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2755 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2756 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2757 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2758 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2759 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2760 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2761 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2762 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2763 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2764 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2765 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2766 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2767 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2768 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2769 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2770 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2771 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2772 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2773 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2774 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2775 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2776 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2777 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2778 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2779 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2780 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2781 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2782 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2783 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2784 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2785 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2786 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2787 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2788 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2789 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2790 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2791 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2792 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2793 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2794 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2795 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2796 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2797 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2798 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2799 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2800 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2801 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2802 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2803 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2804 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2805 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2806 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2807 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2808 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2809 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2810 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2811 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2812 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2813 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2814 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2815 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2816 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2817 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2818 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2819 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2820 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2821 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2822 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2823 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2824 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2825 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2826 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2827 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2828 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2829 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
2830 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
2831 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
2832 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
2833 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
2834 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
2835 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
2836 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
2837 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
2838 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
2839 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
2840 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
2841 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
2842 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
2843 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
2844 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
2845 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
2846 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
2847 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
2848 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
2849 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
2850 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
2851 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
2852 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
2853 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
2854 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
2855 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
2856 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
2857 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
2858 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
2859 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
2860 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
2861 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
2862 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
2863 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
2864 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
2865 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
2866 .psize = 1023,
2867 .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4"
2868 "\x55\x73\x4a\x81\x99\xe4\x47\x2a"
2869 "\x30\xd6\xc9\x85",
Herbert Xuda7f0332008-07-31 17:08:25 +08002870 }
2871};
2872
2873
2874/*
2875 * SHA224 test vectors from from FIPS PUB 180-2
2876 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08002877static const struct hash_testvec sha224_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08002878 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002879 .plaintext = "",
2880 .psize = 0,
2881 .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9"
2882 "\x47\x61\x02\xbb\x28\x82\x34\xc4"
2883 "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a"
2884 "\xc5\xb3\xe4\x2f",
2885 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08002886 .plaintext = "abc",
2887 .psize = 3,
2888 .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22"
2889 "\x86\x42\xA4\x77\xBD\xA2\x55\xB3"
2890 "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7"
2891 "\xE3\x6C\x9D\xA7",
2892 }, {
2893 .plaintext =
2894 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
2895 .psize = 56,
2896 .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC"
2897 "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50"
2898 "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19"
2899 "\x52\x52\x25\x25",
Ard Biesheuvel45859882014-04-16 20:40:04 +08002900 }, {
2901 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
2902 .psize = 64,
2903 .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01"
2904 "\x42\xfd\x10\x92\xaa\x4e\x04\x08"
2905 "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c"
2906 "\xef\x3b\xcb\x0e",
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03002907 }, {
2908 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
2909 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
2910 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
2911 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
2912 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
2913 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
2914 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
2915 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
2916 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
2917 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
2918 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
2919 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
2920 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
2921 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
2922 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
2923 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
2924 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
2925 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
2926 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
2927 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
2928 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
2929 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
2930 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
2931 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
2932 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
2933 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
2934 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
2935 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
2936 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
2937 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
2938 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
2939 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
2940 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
2941 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
2942 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
2943 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
2944 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
2945 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
2946 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
2947 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
2948 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
2949 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
2950 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
2951 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
2952 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
2953 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
2954 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
2955 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
2956 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
2957 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
2958 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
2959 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
2960 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
2961 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
2962 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
2963 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
2964 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
2965 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
2966 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
2967 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
2968 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
2969 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
2970 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
2971 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
2972 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
2973 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
2974 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
2975 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
2976 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
2977 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
2978 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
2979 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
2980 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
2981 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
2982 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
2983 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
2984 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
2985 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
2986 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
2987 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
2988 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
2989 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
2990 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
2991 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
2992 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
2993 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
2994 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
2995 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
2996 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
2997 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
2998 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
2999 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3000 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3001 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3002 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3003 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3004 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3005 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3006 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3007 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3008 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3009 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3010 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3011 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3012 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3013 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3014 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3015 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3016 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3017 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3018 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3019 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3020 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3021 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3022 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3023 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3024 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3025 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3026 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3027 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3028 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3029 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3030 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3031 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3032 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3033 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3034 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3035 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3036 .psize = 1023,
3037 .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c"
3038 "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91"
3039 "\x20\x48\xa4\x28\xff\x55\xb1\xd3"
3040 "\xe6\xf9\x4f\xcc",
Herbert Xuda7f0332008-07-31 17:08:25 +08003041 }
3042};
3043
3044/*
3045 * SHA256 test vectors from from NIST
3046 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003047static const struct hash_testvec sha256_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003048 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003049 .plaintext = "",
3050 .psize = 0,
3051 .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14"
3052 "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24"
3053 "\x27\xae\x41\xe4\x64\x9b\x93\x4c"
3054 "\xa4\x95\x99\x1b\x78\x52\xb8\x55",
3055 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08003056 .plaintext = "abc",
3057 .psize = 3,
3058 .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea"
3059 "\x41\x41\x40\xde\x5d\xae\x22\x23"
3060 "\xb0\x03\x61\xa3\x96\x17\x7a\x9c"
3061 "\xb4\x10\xff\x61\xf2\x00\x15\xad",
3062 }, {
3063 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3064 .psize = 56,
3065 .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8"
3066 "\xe5\xc0\x26\x93\x0c\x3e\x60\x39"
3067 "\xa3\x3c\xe4\x59\x64\xff\x21\x67"
3068 "\xf6\xec\xed\xd4\x19\xdb\x06\xc1",
Ard Biesheuvel45859882014-04-16 20:40:04 +08003069 }, {
3070 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3071 .psize = 64,
3072 .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4"
3073 "\x2c\x32\x29\x32\x19\xbb\xfb\xfa"
3074 "\xd6\xff\x94\xa3\x72\x91\x85\x66"
3075 "\x3b\xa7\x87\x77\x58\xa3\x40\x3a",
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003076 }, {
3077 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
3078 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
3079 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
3080 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
3081 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
3082 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
3083 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
3084 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
3085 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
3086 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
3087 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
3088 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
3089 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
3090 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
3091 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
3092 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
3093 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
3094 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
3095 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
3096 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
3097 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
3098 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
3099 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
3100 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
3101 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
3102 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
3103 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
3104 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
3105 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
3106 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
3107 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
3108 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
3109 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
3110 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
3111 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
3112 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
3113 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
3114 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
3115 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
3116 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
3117 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
3118 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
3119 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
3120 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
3121 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
3122 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
3123 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
3124 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
3125 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
3126 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
3127 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
3128 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
3129 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
3130 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
3131 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
3132 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
3133 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
3134 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
3135 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
3136 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
3137 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
3138 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
3139 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
3140 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
3141 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
3142 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
3143 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
3144 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
3145 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
3146 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
3147 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
3148 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
3149 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
3150 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
3151 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
3152 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
3153 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
3154 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
3155 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
3156 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
3157 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
3158 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
3159 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
3160 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
3161 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
3162 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
3163 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
3164 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
3165 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
3166 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
3167 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
3168 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3169 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3170 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3171 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3172 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3173 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3174 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3175 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3176 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3177 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3178 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3179 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3180 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3181 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3182 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3183 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3184 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3185 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3186 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3187 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3188 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3189 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3190 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3191 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3192 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3193 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3194 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3195 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3196 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3197 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3198 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3199 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3200 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3201 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3202 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3203 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3204 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3205 .psize = 1023,
3206 .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a"
3207 "\x32\x32\x17\xcc\xd4\x6a\x71\xa9"
3208 "\xf3\xed\x50\x10\x64\x8e\x06\xbe"
3209 "\x9b\x4a\xa6\xbb\x05\x89\x59\x51",
Ard Biesheuvel45859882014-04-16 20:40:04 +08003210 }
Herbert Xuda7f0332008-07-31 17:08:25 +08003211};
3212
3213/*
3214 * SHA384 test vectors from from NIST and kerneli
3215 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003216static const struct hash_testvec sha384_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003217 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003218 .plaintext = "",
3219 .psize = 0,
3220 .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38"
3221 "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a"
3222 "\x21\xfd\xb7\x11\x14\xbe\x07\x43"
3223 "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda"
3224 "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb"
3225 "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b",
3226 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08003227 .plaintext= "abc",
3228 .psize = 3,
3229 .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b"
3230 "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07"
3231 "\x27\x2c\x32\xab\x0e\xde\xd1\x63"
3232 "\x1a\x8b\x60\x5a\x43\xff\x5b\xed"
3233 "\x80\x86\x07\x2b\xa1\xe7\xcc\x23"
3234 "\x58\xba\xec\xa1\x34\xc8\x25\xa7",
3235 }, {
3236 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3237 .psize = 56,
3238 .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39"
3239 "\x37\x07\xa6\x5b\x1b\x47\x09\x39"
3240 "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab"
3241 "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6"
3242 "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f"
3243 "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b",
3244 }, {
3245 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
3246 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
3247 .psize = 112,
3248 .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8"
3249 "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47"
3250 "\x53\x11\x1b\x17\x3b\x3b\x05\xd2"
3251 "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12"
3252 "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9"
3253 "\x66\xc3\xe9\xfa\x91\x74\x60\x39",
3254 }, {
3255 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
3256 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
3257 .psize = 104,
3258 .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb"
3259 "\xbd\x7e\x2c\x28\x62\xba\x29\x0a"
3260 "\xd3\x01\x0e\x49\x78\xc1\x98\xdc"
3261 "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a"
3262 "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a"
3263 "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4",
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003264 }, {
3265 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
3266 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
3267 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
3268 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
3269 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
3270 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
3271 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
3272 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
3273 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
3274 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
3275 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
3276 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
3277 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
3278 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
3279 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
3280 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
3281 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
3282 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
3283 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
3284 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
3285 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
3286 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
3287 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
3288 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
3289 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
3290 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
3291 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
3292 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
3293 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
3294 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
3295 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
3296 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
3297 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
3298 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
3299 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
3300 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
3301 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
3302 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
3303 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
3304 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
3305 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
3306 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
3307 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
3308 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
3309 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
3310 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
3311 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
3312 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
3313 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
3314 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
3315 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
3316 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
3317 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
3318 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
3319 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
3320 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
3321 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
3322 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
3323 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
3324 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
3325 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
3326 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
3327 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
3328 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
3329 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
3330 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
3331 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
3332 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
3333 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
3334 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
3335 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
3336 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
3337 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
3338 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
3339 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
3340 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
3341 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
3342 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
3343 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
3344 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
3345 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
3346 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
3347 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
3348 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
3349 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
3350 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
3351 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
3352 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
3353 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
3354 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
3355 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
3356 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3357 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3358 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3359 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3360 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3361 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3362 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3363 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3364 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3365 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3366 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3367 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3368 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3369 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3370 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3371 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3372 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3373 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3374 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3375 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3376 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3377 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3378 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3379 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3380 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3381 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3382 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3383 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3384 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3385 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3386 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3387 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3388 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3389 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3390 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3391 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3392 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3393 .psize = 1023,
3394 .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15"
3395 "\xb8\xff\x97\x9c\xf5\x13\x4f\x31"
3396 "\xde\x67\xf7\x24\x73\xcd\x70\x1c"
3397 "\x03\x4a\xba\x8a\x87\x49\xfe\xdc"
3398 "\x75\x29\x62\x83\xae\x3f\x17\xab"
3399 "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca",
3400 }
Herbert Xuda7f0332008-07-31 17:08:25 +08003401};
3402
3403/*
3404 * SHA512 test vectors from from NIST and kerneli
3405 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003406static const struct hash_testvec sha512_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003407 {
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003408 .plaintext = "",
3409 .psize = 0,
3410 .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd"
3411 "\xf1\x54\x28\x50\xd6\x6d\x80\x07"
3412 "\xd6\x20\xe4\x05\x0b\x57\x15\xdc"
3413 "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce"
3414 "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0"
3415 "\xff\x83\x18\xd2\x87\x7e\xec\x2f"
3416 "\x63\xb9\x31\xbd\x47\x41\x7a\x81"
3417 "\xa5\x38\x32\x7a\xf9\x27\xda\x3e",
3418 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +08003419 .plaintext = "abc",
3420 .psize = 3,
3421 .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba"
3422 "\xcc\x41\x73\x49\xae\x20\x41\x31"
3423 "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2"
3424 "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a"
3425 "\x21\x92\x99\x2a\x27\x4f\xc1\xa8"
3426 "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd"
3427 "\x45\x4d\x44\x23\x64\x3c\xe8\x0e"
3428 "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f",
3429 }, {
3430 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
3431 .psize = 56,
3432 .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a"
3433 "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16"
3434 "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8"
3435 "\x27\x9b\xe3\x31\xa7\x03\xc3\x35"
3436 "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9"
3437 "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0"
3438 "\x31\xad\x85\xc7\xa7\x1d\xd7\x03"
3439 "\x54\xec\x63\x12\x38\xca\x34\x45",
3440 }, {
3441 .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn"
3442 "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu",
3443 .psize = 112,
3444 .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda"
3445 "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f"
3446 "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1"
3447 "\x72\x99\xae\xad\xb6\x88\x90\x18"
3448 "\x50\x1d\x28\x9e\x49\x00\xf7\xe4"
3449 "\x33\x1b\x99\xde\xc4\xb5\x43\x3a"
3450 "\xc7\xd3\x29\xee\xb6\xdd\x26\x54"
3451 "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09",
3452 }, {
3453 .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd"
3454 "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz",
3455 .psize = 104,
3456 .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11"
3457 "\x33\xb6\x89\x81\x21\xf1\xcf\x3d"
3458 "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c"
3459 "\x52\x57\xcf\x06\x99\x11\xf7\x5d"
3460 "\x8f\x58\x31\xb5\x6e\xbf\xda\x67"
3461 "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe"
3462 "\x2b\x28\x70\xf7\x42\xa5\x80\xd8"
3463 "\xed\xb4\x19\x87\x23\x28\x50\xc9",
Jussi Kivilinna950e4e12014-04-12 15:35:29 +03003464 }, {
3465 .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3"
3466 "\x7a\x11\x85\x1c\xb3\x27\xbe\x55"
3467 "\xec\x60\xf7\x8e\x02\x99\x30\xc7"
3468 "\x3b\xd2\x69\x00\x74\x0b\xa2\x16"
3469 "\xad\x44\xdb\x4f\xe6\x7d\x14\x88"
3470 "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa"
3471 "\x91\x05\x9c\x33\xca\x3e\xd5\x6c"
3472 "\x03\x77\x0e\xa5\x19\xb0\x47\xde"
3473 "\x52\xe9\x80\x17\x8b\x22\xb9\x2d"
3474 "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f"
3475 "\x36\xcd\x41\xd8\x6f\x06\x7a\x11"
3476 "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83"
3477 "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5"
3478 "\x69\x00\x97\x0b\xa2\x39\xd0\x44"
3479 "\xdb\x72\x09\x7d\x14\xab\x1f\xb6"
3480 "\x4d\xe4\x58\xef\x86\x1d\x91\x28"
3481 "\xbf\x33\xca\x61\xf8\x6c\x03\x9a"
3482 "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c"
3483 "\x80\x17\xae\x22\xb9\x50\xe7\x5b"
3484 "\xf2\x89\x20\x94\x2b\xc2\x36\xcd"
3485 "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f"
3486 "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1"
3487 "\x25\xbc\x53\xea\x5e\xf5\x8c\x00"
3488 "\x97\x2e\xc5\x39\xd0\x67\xfe\x72"
3489 "\x09\xa0\x14\xab\x42\xd9\x4d\xe4"
3490 "\x7b\x12\x86\x1d\xb4\x28\xbf\x56"
3491 "\xed\x61\xf8\x8f\x03\x9a\x31\xc8"
3492 "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17"
3493 "\xae\x45\xdc\x50\xe7\x7e\x15\x89"
3494 "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb"
3495 "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d"
3496 "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf"
3497 "\x53\xea\x81\x18\x8c\x23\xba\x2e"
3498 "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0"
3499 "\x37\xce\x42\xd9\x70\x07\x7b\x12"
3500 "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84"
3501 "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6"
3502 "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45"
3503 "\xdc\x73\x0a\x7e\x15\xac\x20\xb7"
3504 "\x4e\xe5\x59\xf0\x87\x1e\x92\x29"
3505 "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b"
3506 "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d"
3507 "\x81\x18\xaf\x23\xba\x51\xe8\x5c"
3508 "\xf3\x8a\x21\x95\x2c\xc3\x37\xce"
3509 "\x65\xfc\x70\x07\x9e\x12\xa9\x40"
3510 "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2"
3511 "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01"
3512 "\x98\x2f\xc6\x3a\xd1\x68\xff\x73"
3513 "\x0a\xa1\x15\xac\x43\xda\x4e\xe5"
3514 "\x7c\x13\x87\x1e\xb5\x29\xc0\x57"
3515 "\xee\x62\xf9\x90\x04\x9b\x32\xc9"
3516 "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18"
3517 "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a"
3518 "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc"
3519 "\x93\x07\x9e\x35\xcc\x40\xd7\x6e"
3520 "\x05\x79\x10\xa7\x1b\xb2\x49\xe0"
3521 "\x54\xeb\x82\x19\x8d\x24\xbb\x2f"
3522 "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1"
3523 "\x38\xcf\x43\xda\x71\x08\x7c\x13"
3524 "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85"
3525 "\x1c\x90\x27\xbe\x32\xc9\x60\xf7"
3526 "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46"
3527 "\xdd\x74\x0b\x7f\x16\xad\x21\xb8"
3528 "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a"
3529 "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c"
3530 "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e"
3531 "\x82\x19\xb0\x24\xbb\x52\xe9\x5d"
3532 "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf"
3533 "\x66\xfd\x71\x08\x9f\x13\xaa\x41"
3534 "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3"
3535 "\x27\xbe\x55\xec\x60\xf7\x8e\x02"
3536 "\x99\x30\xc7\x3b\xd2\x69\x00\x74"
3537 "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6"
3538 "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58"
3539 "\xef\x63\xfa\x91\x05\x9c\x33\xca"
3540 "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19"
3541 "\xb0\x47\xde\x52\xe9\x80\x17\x8b"
3542 "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd"
3543 "\x94\x08\x9f\x36\xcd\x41\xd8\x6f"
3544 "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1"
3545 "\x55\xec\x83\x1a\x8e\x25\xbc\x30"
3546 "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2"
3547 "\x39\xd0\x44\xdb\x72\x09\x7d\x14"
3548 "\xab\x1f\xb6\x4d\xe4\x58\xef\x86"
3549 "\x1d\x91\x28\xbf\x33\xca\x61\xf8"
3550 "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47"
3551 "\xde\x75\x0c\x80\x17\xae\x22\xb9"
3552 "\x50\xe7\x5b\xf2\x89\x20\x94\x2b"
3553 "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d"
3554 "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f"
3555 "\x83\x1a\xb1\x25\xbc\x53\xea\x5e"
3556 "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0"
3557 "\x67\xfe\x72\x09\xa0\x14\xab\x42"
3558 "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4"
3559 "\x28\xbf\x56\xed\x61\xf8\x8f\x03"
3560 "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75"
3561 "\x0c\xa3\x17\xae\x45\xdc\x50\xe7"
3562 "\x7e\x15\x89\x20\xb7\x2b\xc2\x59"
3563 "\xf0\x64\xfb\x92\x06\x9d\x34\xcb"
3564 "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a"
3565 "\xb1\x48\xdf\x53\xea\x81\x18\x8c"
3566 "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe"
3567 "\x95\x09\xa0\x37\xce\x42\xd9\x70"
3568 "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2"
3569 "\x56\xed\x84\x1b\x8f\x26\xbd\x31"
3570 "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3"
3571 "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15"
3572 "\xac\x20\xb7\x4e\xe5\x59\xf0\x87"
3573 "\x1e\x92\x29\xc0\x34\xcb\x62\xf9"
3574 "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48"
3575 "\xdf\x76\x0d\x81\x18\xaf\x23\xba"
3576 "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c"
3577 "\xc3\x37\xce\x65\xfc\x70\x07\x9e"
3578 "\x12\xa9\x40\xd7\x4b\xe2\x79\x10"
3579 "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f"
3580 "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1"
3581 "\x68\xff\x73\x0a\xa1\x15\xac\x43"
3582 "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5"
3583 "\x29\xc0\x57\xee\x62\xf9\x90\x04"
3584 "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76"
3585 "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8"
3586 "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a"
3587 "\xf1\x65\xfc\x93\x07\x9e\x35\xcc"
3588 "\x40\xd7\x6e\x05\x79\x10\xa7\x1b"
3589 "\xb2\x49\xe0\x54\xeb\x82\x19\x8d"
3590 "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff"
3591 "\x96\x0a\xa1\x38\xcf\x43\xda\x71"
3592 "\x08\x7c\x13\xaa\x1e\xb5\x4c",
3593 .psize = 1023,
3594 .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa"
3595 "\x13\x39\xf3\x01\x7a\xfa\xe5\x41"
3596 "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0"
3597 "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb"
3598 "\x1c\x19\xde\xe2\x75\xdc\x34\x64"
3599 "\x5f\x35\x9c\x61\x2f\x10\xf9\xec"
3600 "\x59\xca\x9d\xcc\x25\x0c\x43\xba"
3601 "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee",
3602 }
Herbert Xuda7f0332008-07-31 17:08:25 +08003603};
3604
3605
3606/*
3607 * WHIRLPOOL test vectors from Whirlpool package
3608 * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE
3609 * submission
3610 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003611static const struct hash_testvec wp512_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003612 {
3613 .plaintext = "",
3614 .psize = 0,
3615 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3616 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3617 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3618 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
3619 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
3620 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57"
3621 "\xEA\x89\x64\xE5\x9B\x63\xD9\x37"
3622 "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3",
3623
3624
3625 }, {
3626 .plaintext = "a",
3627 .psize = 1,
3628 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3629 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3630 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3631 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
3632 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
3633 "\x3A\x42\x39\x1A\x39\x14\x5A\x59"
3634 "\x1A\x92\x20\x0D\x56\x01\x95\xE5"
3635 "\x3B\x47\x85\x84\xFD\xAE\x23\x1A",
3636 }, {
3637 .plaintext = "abc",
3638 .psize = 3,
3639 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3640 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3641 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3642 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
3643 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
3644 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6"
3645 "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82"
3646 "\xD2\x25\x29\x20\x76\xD4\xEE\xF5",
3647 }, {
3648 .plaintext = "message digest",
3649 .psize = 14,
3650 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3651 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3652 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3653 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
3654 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
3655 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6"
3656 "\x92\xED\x92\x00\x52\x83\x8F\x33"
3657 "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E",
3658 }, {
3659 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3660 .psize = 26,
3661 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3662 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3663 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3664 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
3665 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
3666 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6"
3667 "\xF6\x8F\x67\x3E\x72\x07\x86\x5D"
3668 "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B",
3669 }, {
3670 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3671 "abcdefghijklmnopqrstuvwxyz0123456789",
3672 .psize = 62,
3673 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3674 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3675 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3676 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
3677 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
3678 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6"
3679 "\x55\x17\xCC\x87\x9D\x7B\x96\x21"
3680 "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67",
3681 }, {
3682 .plaintext = "1234567890123456789012345678901234567890"
3683 "1234567890123456789012345678901234567890",
3684 .psize = 80,
3685 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3686 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3687 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3688 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
3689 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
3690 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A"
3691 "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B"
3692 "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B",
3693 }, {
3694 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3695 .psize = 32,
3696 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3697 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3698 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3699 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
3700 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
3701 "\x7B\x94\x76\x39\xFE\x05\x0B\x56"
3702 "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6"
3703 "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD",
3704 },
3705};
3706
Eric Biggersb13b1e02017-02-24 15:46:59 -08003707static const struct hash_testvec wp384_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003708 {
3709 .plaintext = "",
3710 .psize = 0,
3711 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3712 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3713 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3714 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7"
3715 "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB"
3716 "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57",
3717
3718
3719 }, {
3720 .plaintext = "a",
3721 .psize = 1,
3722 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3723 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3724 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3725 "\x73\xC4\x50\x01\xD0\x08\x7B\x42"
3726 "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6"
3727 "\x3A\x42\x39\x1A\x39\x14\x5A\x59",
3728 }, {
3729 .plaintext = "abc",
3730 .psize = 3,
3731 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3732 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3733 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3734 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C"
3735 "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27"
3736 "\x7D\x0E\x34\x95\x71\x14\xCB\xD6",
3737 }, {
3738 .plaintext = "message digest",
3739 .psize = 14,
3740 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3741 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3742 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3743 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B"
3744 "\x84\x21\x55\x76\x59\xEF\x55\xC1"
3745 "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6",
3746 }, {
3747 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3748 .psize = 26,
3749 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3750 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3751 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3752 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B"
3753 "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A"
3754 "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6",
3755 }, {
3756 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3757 "abcdefghijklmnopqrstuvwxyz0123456789",
3758 .psize = 62,
3759 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3760 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3761 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3762 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E"
3763 "\x08\xEB\xA2\x66\x29\x12\x9D\x8F"
3764 "\xB7\xCB\x57\x21\x1B\x92\x81\xA6",
3765 }, {
3766 .plaintext = "1234567890123456789012345678901234567890"
3767 "1234567890123456789012345678901234567890",
3768 .psize = 80,
3769 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3770 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3771 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3772 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29"
3773 "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5"
3774 "\x38\xCD\x04\x7B\x26\x81\xA5\x1A",
3775 }, {
3776 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3777 .psize = 32,
3778 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3779 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3780 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3781 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69"
3782 "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B"
3783 "\x7B\x94\x76\x39\xFE\x05\x0B\x56",
3784 },
3785};
3786
Eric Biggersb13b1e02017-02-24 15:46:59 -08003787static const struct hash_testvec wp256_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003788 {
3789 .plaintext = "",
3790 .psize = 0,
3791 .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66"
3792 "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26"
3793 "\xC5\x30\x23\x21\x30\xD4\x07\xF8"
3794 "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7",
3795
3796
3797 }, {
3798 .plaintext = "a",
3799 .psize = 1,
3800 .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F"
3801 "\x11\xA6\x72\x06\x53\x1F\xB7\xD7"
3802 "\xF0\xDF\xF5\x94\x13\x14\x5E\x69"
3803 "\x73\xC4\x50\x01\xD0\x08\x7B\x42",
3804 }, {
3805 .plaintext = "abc",
3806 .psize = 3,
3807 .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB"
3808 "\x16\xB6\x56\x2C\x73\xB4\x02\x0B"
3809 "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72"
3810 "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C",
3811 }, {
3812 .plaintext = "message digest",
3813 .psize = 14,
3814 .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6"
3815 "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC"
3816 "\x83\x8D\x00\x03\x22\x30\xF5\x3C"
3817 "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B",
3818 }, {
3819 .plaintext = "abcdefghijklmnopqrstuvwxyz",
3820 .psize = 26,
3821 .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9"
3822 "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A"
3823 "\x8D\x38\x63\x1E\xAD\x42\x38\xF5"
3824 "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B",
3825 }, {
3826 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
3827 "abcdefghijklmnopqrstuvwxyz0123456789",
3828 .psize = 62,
3829 .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B"
3830 "\xF1\x1F\x00\xED\x9A\xBA\x26\x90"
3831 "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC"
3832 "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E",
3833 }, {
3834 .plaintext = "1234567890123456789012345678901234567890"
3835 "1234567890123456789012345678901234567890",
3836 .psize = 80,
3837 .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D"
3838 "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0"
3839 "\x87\x84\x37\x2B\xCC\xB2\x04\xD6"
3840 "\x54\x9C\x4A\xFA\xDB\x60\x14\x29",
3841 }, {
3842 .plaintext = "abcdbcdecdefdefgefghfghighijhijk",
3843 .psize = 32,
3844 .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61"
3845 "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48"
3846 "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62"
3847 "\x07\xC5\x62\xF9\x88\xE9\x5C\x69",
3848 },
3849};
3850
3851/*
3852 * TIGER test vectors from Tiger website
3853 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08003854static const struct hash_testvec tgr192_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003855 {
3856 .plaintext = "",
3857 .psize = 0,
3858 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3859 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
3860 "\xf3\x73\xde\x2d\x49\x58\x4e\x7a",
3861 }, {
3862 .plaintext = "abc",
3863 .psize = 3,
3864 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3865 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
3866 "\x93\x5f\x7b\x95\x1c\x13\x29\x51",
3867 }, {
3868 .plaintext = "Tiger",
3869 .psize = 5,
3870 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3871 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
3872 "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf",
3873 }, {
3874 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3875 .psize = 64,
3876 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3877 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
3878 "\xb5\x86\x44\x50\x34\xa5\xa3\x86",
3879 }, {
3880 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3881 .psize = 64,
3882 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3883 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
3884 "\x57\x89\x65\x65\x97\x5f\x91\x97",
3885 }, {
3886 .plaintext = "Tiger - A Fast New Hash Function, "
3887 "by Ross Anderson and Eli Biham, "
3888 "proceedings of Fast Software Encryption 3, "
3889 "Cambridge, 1996.",
3890 .psize = 125,
3891 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3892 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
3893 "\xdd\x68\x15\x1d\x50\x39\x74\xfc",
3894 },
3895};
3896
Eric Biggersb13b1e02017-02-24 15:46:59 -08003897static const struct hash_testvec tgr160_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003898 {
3899 .plaintext = "",
3900 .psize = 0,
3901 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3902 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f"
3903 "\xf3\x73\xde\x2d",
3904 }, {
3905 .plaintext = "abc",
3906 .psize = 3,
3907 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3908 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf"
3909 "\x93\x5f\x7b\x95",
3910 }, {
3911 .plaintext = "Tiger",
3912 .psize = 5,
3913 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3914 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec"
3915 "\x37\x79\x0c\x11",
3916 }, {
3917 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3918 .psize = 64,
3919 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3920 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e"
3921 "\xb5\x86\x44\x50",
3922 }, {
3923 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3924 .psize = 64,
3925 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3926 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9"
3927 "\x57\x89\x65\x65",
3928 }, {
3929 .plaintext = "Tiger - A Fast New Hash Function, "
3930 "by Ross Anderson and Eli Biham, "
3931 "proceedings of Fast Software Encryption 3, "
3932 "Cambridge, 1996.",
3933 .psize = 125,
3934 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3935 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24"
3936 "\xdd\x68\x15\x1d",
3937 },
3938};
3939
Eric Biggersb13b1e02017-02-24 15:46:59 -08003940static const struct hash_testvec tgr128_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08003941 {
3942 .plaintext = "",
3943 .psize = 0,
3944 .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32"
3945 "\x16\x16\x6e\x76\xb1\xbb\x92\x5f",
3946 }, {
3947 .plaintext = "abc",
3948 .psize = 3,
3949 .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a"
3950 "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf",
3951 }, {
3952 .plaintext = "Tiger",
3953 .psize = 5,
3954 .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd"
3955 "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec",
3956 }, {
3957 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-",
3958 .psize = 64,
3959 .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7"
3960 "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e",
3961 }, {
3962 .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789",
3963 .psize = 64,
3964 .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48"
3965 "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9",
3966 }, {
3967 .plaintext = "Tiger - A Fast New Hash Function, "
3968 "by Ross Anderson and Eli Biham, "
3969 "proceedings of Fast Software Encryption 3, "
3970 "Cambridge, 1996.",
3971 .psize = 125,
3972 .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63"
3973 "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24",
3974 },
3975};
3976
Eric Biggersb13b1e02017-02-24 15:46:59 -08003977static const struct hash_testvec ghash_tv_template[] =
Youquan, Song507069c2009-11-23 20:23:04 +08003978{
3979 {
Ard Biesheuvel6c9e3dc2014-06-12 17:01:50 +02003980 .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03"
3981 "\xff\xca\xff\x95\xf8\x30\xf0\x61",
Youquan, Song507069c2009-11-23 20:23:04 +08003982 .ksize = 16,
Ard Biesheuvel6c9e3dc2014-06-12 17:01:50 +02003983 .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
3984 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
Youquan, Song507069c2009-11-23 20:23:04 +08003985 .psize = 16,
3986 .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
3987 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
Ard Biesheuvel6c9e3dc2014-06-12 17:01:50 +02003988 }, {
3989 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
3990 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
3991 .ksize = 16,
3992 .plaintext = "what do ya want for nothing?",
3993 .psize = 28,
3994 .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce"
3995 "\x0d\x61\x06\x27\x66\x51\xd5\xe2",
Ard Biesheuvel6c9e3dc2014-06-12 17:01:50 +02003996 }, {
3997 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
3998 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
3999 .ksize = 16,
4000 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4001 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4002 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4003 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4004 .psize = 50,
4005 .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96"
4006 "\xe1\x96\xe1\x96\xe1\x96\xe1\x96",
4007 }, {
4008 .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6"
4009 "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60",
4010 .ksize = 16,
4011 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4012 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4013 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4014 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4015 .psize = 50,
4016 .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2"
4017 "\x49\xed\x6e\x32\x7a\xa9\xbe\x08",
4018 }, {
4019 .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0"
4020 "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6",
4021 .ksize = 16,
4022 .plaintext = "Test With Truncation",
4023 .psize = 20,
4024 .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28"
4025 "\x23\xf7\x93\xf7\x19\xf5\x96\xd9",
Harald Freudenberger445a8e02015-05-21 17:34:31 +02004026 }, {
4027 .key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71"
4028 "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9",
4029 .ksize = 16,
4030 .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74"
4031 "\x65\x72\x20\x4c\x61\x75\x73\x63"
4032 "\x68\x65\x6e\x20\x75\x6e\x64\x20"
4033 "\x53\x74\x61\x75\x6e\x65\x6e\x20"
4034 "\x73\x65\x69\x20\x73\x74\x69\x6c"
4035 "\x6c\x2c\x0a\x64\x75\x20\x6d\x65"
4036 "\x69\x6e\x20\x74\x69\x65\x66\x74"
4037 "\x69\x65\x66\x65\x73\x20\x4c\x65"
4038 "\x62\x65\x6e\x3b\x0a\x64\x61\x73"
4039 "\x73\x20\x64\x75\x20\x77\x65\x69"
4040 "\xc3\x9f\x74\x20\x77\x61\x73\x20"
4041 "\x64\x65\x72\x20\x57\x69\x6e\x64"
4042 "\x20\x64\x69\x72\x20\x77\x69\x6c"
4043 "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f"
4044 "\x63\x68\x20\x64\x69\x65\x20\x42"
4045 "\x69\x72\x6b\x65\x6e\x20\x62\x65"
4046 "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e"
4047 "\x64\x20\x77\x65\x6e\x6e\x20\x64"
4048 "\x69\x72\x20\x65\x69\x6e\x6d\x61"
4049 "\x6c\x20\x64\x61\x73\x20\x53\x63"
4050 "\x68\x77\x65\x69\x67\x65\x6e\x20"
4051 "\x73\x70\x72\x61\x63\x68\x2c\x0a"
4052 "\x6c\x61\x73\x73\x20\x64\x65\x69"
4053 "\x6e\x65\x20\x53\x69\x6e\x6e\x65"
4054 "\x20\x62\x65\x73\x69\x65\x67\x65"
4055 "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d"
4056 "\x20\x48\x61\x75\x63\x68\x65\x20"
4057 "\x67\x69\x62\x74\x20\x64\x69\x63"
4058 "\x68\x2c\x20\x67\x69\x62\x20\x6e"
4059 "\x61\x63\x68\x2c\x0a\x65\x72\x20"
4060 "\x77\x69\x72\x64\x20\x64\x69\x63"
4061 "\x68\x20\x6c\x69\x65\x62\x65\x6e"
4062 "\x20\x75\x6e\x64\x20\x77\x69\x65"
4063 "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e"
4064 "\x64\x20\x64\x61\x6e\x6e\x20\x6d"
4065 "\x65\x69\x6e\x65\x20\x53\x65\x65"
4066 "\x6c\x65\x20\x73\x65\x69\x74\x20"
4067 "\x77\x65\x69\x74\x2c\x20\x73\x65"
4068 "\x69\x20\x77\x65\x69\x74\x2c\x0a"
4069 "\x64\x61\x73\x73\x20\x64\x69\x72"
4070 "\x20\x64\x61\x73\x20\x4c\x65\x62"
4071 "\x65\x6e\x20\x67\x65\x6c\x69\x6e"
4072 "\x67\x65\x2c\x0a\x62\x72\x65\x69"
4073 "\x74\x65\x20\x64\x69\x63\x68\x20"
4074 "\x77\x69\x65\x20\x65\x69\x6e\x20"
4075 "\x46\x65\x69\x65\x72\x6b\x6c\x65"
4076 "\x69\x64\x0a\xc3\xbc\x62\x65\x72"
4077 "\x20\x64\x69\x65\x20\x73\x69\x6e"
4078 "\x6e\x65\x6e\x64\x65\x6e\x20\x44"
4079 "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a",
4080 .psize = 400,
4081 .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d"
4082 "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57",
Youquan, Song507069c2009-11-23 20:23:04 +08004083 },
4084};
4085
Herbert Xuda7f0332008-07-31 17:08:25 +08004086/*
4087 * HMAC-MD5 test vectors from RFC2202
4088 * (These need to be fixed to not use strlen).
4089 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004090static const struct hash_testvec hmac_md5_tv_template[] =
Herbert Xuda7f0332008-07-31 17:08:25 +08004091{
4092 {
4093 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
4094 .ksize = 16,
4095 .plaintext = "Hi There",
4096 .psize = 8,
4097 .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c"
4098 "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d",
4099 }, {
4100 .key = "Jefe",
4101 .ksize = 4,
4102 .plaintext = "what do ya want for nothing?",
4103 .psize = 28,
4104 .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03"
4105 "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38",
Herbert Xuda7f0332008-07-31 17:08:25 +08004106 }, {
4107 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4108 .ksize = 16,
4109 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4110 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4111 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4112 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4113 .psize = 50,
4114 .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88"
4115 "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6",
4116 }, {
4117 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4118 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4119 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
4120 .ksize = 25,
4121 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4122 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4123 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4124 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4125 .psize = 50,
4126 .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea"
4127 "\x3a\x75\x16\x47\x46\xff\xaa\x79",
4128 }, {
4129 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
4130 .ksize = 16,
4131 .plaintext = "Test With Truncation",
4132 .psize = 20,
4133 .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00"
4134 "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c",
4135 }, {
4136 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4137 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4138 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4139 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4140 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4141 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4142 "\xaa\xaa",
4143 .ksize = 80,
4144 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4145 .psize = 54,
4146 .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f"
4147 "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd",
4148 }, {
4149 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4150 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4151 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4152 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4153 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4154 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4155 "\xaa\xaa",
4156 .ksize = 80,
4157 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4158 "Block-Size Data",
4159 .psize = 73,
4160 .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee"
4161 "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e",
4162 },
4163};
4164
4165/*
4166 * HMAC-RIPEMD128 test vectors from RFC2286
4167 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004168static const struct hash_testvec hmac_rmd128_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004169 {
4170 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
4171 .ksize = 16,
4172 .plaintext = "Hi There",
4173 .psize = 8,
4174 .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf"
4175 "\x81\xc1\x72\xe8\x4e\x07\x34\xdb",
4176 }, {
4177 .key = "Jefe",
4178 .ksize = 4,
4179 .plaintext = "what do ya want for nothing?",
4180 .psize = 28,
4181 .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34"
4182 "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b",
Herbert Xuda7f0332008-07-31 17:08:25 +08004183 }, {
4184 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4185 .ksize = 16,
4186 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4187 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4188 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4189 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4190 .psize = 50,
4191 .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d"
4192 "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d",
4193 }, {
4194 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4195 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4196 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
4197 .ksize = 25,
4198 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4199 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4200 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4201 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4202 .psize = 50,
4203 .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a"
4204 "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94",
4205 }, {
4206 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
4207 .ksize = 16,
4208 .plaintext = "Test With Truncation",
4209 .psize = 20,
4210 .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03"
4211 "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a",
4212 }, {
4213 .key = "\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\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4216 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4217 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4218 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4219 "\xaa\xaa",
4220 .ksize = 80,
4221 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4222 .psize = 54,
4223 .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a"
4224 "\x1f\x59\xd3\x73\xc1\x50\xac\xbb",
4225 }, {
4226 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4227 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4228 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4229 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4230 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4231 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4232 "\xaa\xaa",
4233 .ksize = 80,
4234 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4235 "Block-Size Data",
4236 .psize = 73,
4237 .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4"
4238 "\x06\x90\xc2\x37\x63\x5f\x30\xc5",
4239 },
4240};
4241
4242/*
4243 * HMAC-RIPEMD160 test vectors from RFC2286
4244 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004245static const struct hash_testvec hmac_rmd160_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004246 {
4247 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
4248 .ksize = 20,
4249 .plaintext = "Hi There",
4250 .psize = 8,
4251 .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e"
4252 "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68",
4253 }, {
4254 .key = "Jefe",
4255 .ksize = 4,
4256 .plaintext = "what do ya want for nothing?",
4257 .psize = 28,
4258 .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4"
4259 "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69",
Herbert Xuda7f0332008-07-31 17:08:25 +08004260 }, {
4261 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4262 .ksize = 20,
4263 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4264 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4265 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4266 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4267 .psize = 50,
4268 .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4"
4269 "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1",
4270 }, {
4271 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4272 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4273 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
4274 .ksize = 25,
4275 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4276 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4277 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4278 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4279 .psize = 50,
4280 .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1"
4281 "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4",
4282 }, {
4283 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
4284 .ksize = 20,
4285 .plaintext = "Test With Truncation",
4286 .psize = 20,
4287 .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a"
4288 "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39",
4289 }, {
4290 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4291 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4292 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4293 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4294 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4295 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4296 "\xaa\xaa",
4297 .ksize = 80,
4298 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4299 .psize = 54,
4300 .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd"
4301 "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b",
4302 }, {
4303 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4304 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4305 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4306 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4307 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4308 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4309 "\xaa\xaa",
4310 .ksize = 80,
4311 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4312 "Block-Size Data",
4313 .psize = 73,
4314 .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f"
4315 "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a",
4316 },
4317};
4318
4319/*
4320 * HMAC-SHA1 test vectors from RFC2202
4321 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004322static const struct hash_testvec hmac_sha1_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004323 {
4324 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b",
4325 .ksize = 20,
4326 .plaintext = "Hi There",
4327 .psize = 8,
4328 .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64"
4329 "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1"
4330 "\x46\xbe",
4331 }, {
4332 .key = "Jefe",
4333 .ksize = 4,
4334 .plaintext = "what do ya want for nothing?",
4335 .psize = 28,
4336 .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74"
4337 "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79",
Herbert Xuda7f0332008-07-31 17:08:25 +08004338 }, {
4339 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4340 .ksize = 20,
4341 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4342 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4343 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4344 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4345 .psize = 50,
4346 .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3"
4347 "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3",
4348 }, {
4349 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4350 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4351 "\x11\x12\x13\x14\x15\x16\x17\x18\x19",
4352 .ksize = 25,
4353 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4354 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4355 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4356 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4357 .psize = 50,
4358 .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84"
4359 "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda",
4360 }, {
4361 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c",
4362 .ksize = 20,
4363 .plaintext = "Test With Truncation",
4364 .psize = 20,
4365 .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2"
4366 "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04",
4367 }, {
4368 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4369 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4370 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4371 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4372 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4373 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4374 "\xaa\xaa",
4375 .ksize = 80,
4376 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4377 .psize = 54,
4378 .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70"
4379 "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12",
4380 }, {
4381 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4382 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4383 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4384 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4385 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4386 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4387 "\xaa\xaa",
4388 .ksize = 80,
4389 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One "
4390 "Block-Size Data",
4391 .psize = 73,
4392 .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b"
4393 "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91",
4394 },
4395};
4396
4397
4398/*
4399 * SHA224 HMAC test vectors from RFC4231
4400 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004401static const struct hash_testvec hmac_sha224_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004402 {
4403 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4404 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4405 "\x0b\x0b\x0b\x0b",
4406 .ksize = 20,
4407 /* ("Hi There") */
4408 .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65",
4409 .psize = 8,
4410 .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19"
4411 "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f"
4412 "\x47\xb4\xb1\x16\x99\x12\xba\x4f"
4413 "\x53\x68\x4b\x22",
4414 }, {
4415 .key = "Jefe",
4416 .ksize = 4,
4417 /* ("what do ya want for nothing?") */
4418 .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20"
4419 "\x79\x61\x20\x77\x61\x6e\x74\x20"
4420 "\x66\x6f\x72\x20\x6e\x6f\x74\x68"
4421 "\x69\x6e\x67\x3f",
4422 .psize = 28,
4423 .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf"
4424 "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f"
4425 "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00"
4426 "\x8f\xd0\x5e\x44",
Herbert Xuda7f0332008-07-31 17:08:25 +08004427 }, {
4428 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4429 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4430 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4431 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4432 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4433 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4434 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4435 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4436 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4437 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4438 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4439 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4440 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4441 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4442 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4443 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4444 "\xaa\xaa\xaa",
4445 .ksize = 131,
4446 /* ("Test Using Larger Than Block-Size Key - Hash Key First") */
4447 .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69"
4448 "\x6e\x67\x20\x4c\x61\x72\x67\x65"
4449 "\x72\x20\x54\x68\x61\x6e\x20\x42"
4450 "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a"
4451 "\x65\x20\x4b\x65\x79\x20\x2d\x20"
4452 "\x48\x61\x73\x68\x20\x4b\x65\x79"
4453 "\x20\x46\x69\x72\x73\x74",
4454 .psize = 54,
4455 .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad"
4456 "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2"
4457 "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27"
4458 "\x3f\xa6\x87\x0e",
4459 }, {
4460 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4461 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4462 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4463 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4464 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4465 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4466 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4467 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4468 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4469 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4470 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4471 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4472 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4473 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4474 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4475 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4476 "\xaa\xaa\xaa",
4477 .ksize = 131,
4478 /* ("This is a test using a larger than block-size key and a")
4479 (" larger than block-size data. The key needs to be")
4480 (" hashed before being used by the HMAC algorithm.") */
4481 .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20"
4482 "\x61\x20\x74\x65\x73\x74\x20\x75"
4483 "\x73\x69\x6e\x67\x20\x61\x20\x6c"
4484 "\x61\x72\x67\x65\x72\x20\x74\x68"
4485 "\x61\x6e\x20\x62\x6c\x6f\x63\x6b"
4486 "\x2d\x73\x69\x7a\x65\x20\x6b\x65"
4487 "\x79\x20\x61\x6e\x64\x20\x61\x20"
4488 "\x6c\x61\x72\x67\x65\x72\x20\x74"
4489 "\x68\x61\x6e\x20\x62\x6c\x6f\x63"
4490 "\x6b\x2d\x73\x69\x7a\x65\x20\x64"
4491 "\x61\x74\x61\x2e\x20\x54\x68\x65"
4492 "\x20\x6b\x65\x79\x20\x6e\x65\x65"
4493 "\x64\x73\x20\x74\x6f\x20\x62\x65"
4494 "\x20\x68\x61\x73\x68\x65\x64\x20"
4495 "\x62\x65\x66\x6f\x72\x65\x20\x62"
4496 "\x65\x69\x6e\x67\x20\x75\x73\x65"
4497 "\x64\x20\x62\x79\x20\x74\x68\x65"
4498 "\x20\x48\x4d\x41\x43\x20\x61\x6c"
4499 "\x67\x6f\x72\x69\x74\x68\x6d\x2e",
4500 .psize = 152,
4501 .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02"
4502 "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd"
4503 "\x94\x67\x70\xdb\x9c\x2b\x95\xc9"
4504 "\xf6\xf5\x65\xd1",
4505 },
4506};
4507
4508/*
4509 * HMAC-SHA256 test vectors from
4510 * draft-ietf-ipsec-ciph-sha-256-01.txt
4511 */
Eric Biggersb13b1e02017-02-24 15:46:59 -08004512static const struct hash_testvec hmac_sha256_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004513 {
4514 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4515 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4516 "\x11\x12\x13\x14\x15\x16\x17\x18"
4517 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4518 .ksize = 32,
4519 .plaintext = "abc",
4520 .psize = 3,
4521 .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a"
4522 "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a"
4523 "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66"
4524 "\x92\x75\x90\x21\xcf\xab\x81\x81",
4525 }, {
4526 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4527 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4528 "\x11\x12\x13\x14\x15\x16\x17\x18"
4529 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4530 .ksize = 32,
4531 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
4532 .psize = 56,
4533 .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08"
4534 "\x18\x4b\xa7\x31\x31\xc5\x3c\xae"
4535 "\xe6\x98\xe3\x61\x19\x42\x11\x49"
4536 "\xea\x8c\x71\x24\x56\x69\x7d\x30",
4537 }, {
4538 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4539 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4540 "\x11\x12\x13\x14\x15\x16\x17\x18"
4541 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20",
4542 .ksize = 32,
4543 .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
4544 "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq",
4545 .psize = 112,
4546 .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34"
4547 "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab"
4548 "\x73\xac\xf0\xfd\x06\x04\x47\xa5"
4549 "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3",
4550 }, {
4551 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4552 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
4553 "\x0b\x0b\x0b\x0b\x0b\x0b",
4554 .ksize = 32,
4555 .plaintext = "Hi There",
4556 .psize = 8,
4557 .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6"
4558 "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5"
4559 "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c"
4560 "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7",
4561 }, {
4562 .key = "Jefe",
4563 .ksize = 4,
4564 .plaintext = "what do ya want for nothing?",
4565 .psize = 28,
4566 .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e"
4567 "\x6a\x04\x24\x26\x08\x95\x75\xc7"
4568 "\x5a\x00\x3f\x08\x9d\x27\x39\x83"
4569 "\x9d\xec\x58\xb9\x64\xec\x38\x43",
Herbert Xuda7f0332008-07-31 17:08:25 +08004570 }, {
4571 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4572 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4573 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa",
4574 .ksize = 32,
4575 .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4576 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4577 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
4578 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd",
4579 .psize = 50,
4580 .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea"
4581 "\x91\xe5\x3a\xba\x30\x92\xf9\x62"
4582 "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc"
4583 "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0",
4584 }, {
4585 .key = "\x01\x02\x03\x04\x05\x06\x07\x08"
4586 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
4587 "\x11\x12\x13\x14\x15\x16\x17\x18"
4588 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
4589 "\x21\x22\x23\x24\x25",
4590 .ksize = 37,
4591 .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4592 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4593 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd"
4594 "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd",
4595 .psize = 50,
4596 .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74"
4597 "\x4c\x66\xde\xe0\xf8\xf0\x74\x55"
4598 "\x6e\xc4\xaf\x55\xef\x07\x99\x85"
4599 "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17",
4600 }, {
4601 .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
4602 "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c"
4603 "\x0c\x0c\x0c\x0c\x0c\x0c",
4604 .ksize = 32,
4605 .plaintext = "Test With Truncation",
4606 .psize = 20,
4607 .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b"
4608 "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17"
4609 "\xd4\xf5\x89\x66\x8a\x58\x7b\x27"
4610 "\x00\xa9\xc9\x7c\x11\x93\xcf\x42",
4611 }, {
4612 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4613 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4614 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4615 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4616 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4617 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4618 "\xaa\xaa",
4619 .ksize = 80,
4620 .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First",
4621 .psize = 54,
4622 .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09"
4623 "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb"
4624 "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e"
4625 "\x7d\xdd\x39\x09\x1b\x32\x35\x2f",
4626 }, {
4627 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4628 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4629 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4630 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4631 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4632 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
4633 "\xaa\xaa",
4634 .ksize = 80,
4635 .plaintext = "Test Using Larger Than Block-Size Key and Larger Than "
4636 "One Block-Size Data",
4637 .psize = 73,
4638 .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3"
4639 "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8"
4640 "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc"
4641 "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6",
4642 },
4643};
4644
Eric Biggersb13b1e02017-02-24 15:46:59 -08004645static const struct hash_testvec aes_cmac128_tv_template[] = {
Jussi Kivilinna93b5e862013-04-08 10:48:44 +03004646 { /* From NIST Special Publication 800-38B, AES-128 */
4647 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4648 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4649 .plaintext = zeroed_string,
4650 .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28"
4651 "\x7f\xa3\x7d\x12\x9b\x75\x67\x46",
4652 .psize = 0,
4653 .ksize = 16,
4654 }, {
4655 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4656 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4657 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4658 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
4659 .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44"
4660 "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c",
4661 .psize = 16,
4662 .ksize = 16,
4663 }, {
4664 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4665 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4666 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4667 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4668 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4669 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4670 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11",
4671 .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30"
4672 "\x30\xca\x32\x61\x14\x97\xc8\x27",
4673 .psize = 40,
4674 .ksize = 16,
4675 }, {
4676 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4677 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4678 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4679 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4680 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4681 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4682 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4683 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4684 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4685 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
4686 .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92"
4687 "\xfc\x49\x74\x17\x79\x36\x3c\xfe",
4688 .psize = 64,
4689 .ksize = 16,
4690 }, { /* From NIST Special Publication 800-38B, AES-256 */
4691 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4692 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4693 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4694 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4695 .plaintext = zeroed_string,
4696 .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e"
4697 "\xfc\x6b\x55\x1f\x46\x67\xd9\x83",
4698 .psize = 0,
4699 .ksize = 32,
4700 }, {
4701 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4702 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4703 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4704 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4705 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4706 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4707 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4708 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4709 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4710 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4711 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4712 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
4713 .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5"
4714 "\x69\x6a\x2c\x05\x6c\x31\x54\x10",
4715 .psize = 64,
4716 .ksize = 32,
4717 }
4718};
4719
Eric Biggersb13b1e02017-02-24 15:46:59 -08004720static const struct hash_testvec aes_cbcmac_tv_template[] = {
Ard Biesheuvel092acf02017-02-03 14:49:35 +00004721 {
4722 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4723 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4724 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4725 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a",
4726 .digest = "\x3a\xd7\x7b\xb4\x0d\x7a\x36\x60"
4727 "\xa8\x9e\xca\xf3\x24\x66\xef\x97",
4728 .psize = 16,
4729 .ksize = 16,
4730 }, {
4731 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4732 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4733 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4734 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4735 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4736 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4737 "\x30",
4738 .digest = "\x9d\x0d\xd0\x63\xfb\xcb\x24\x43"
4739 "\xf8\xf2\x76\x03\xac\x39\xb0\x9d",
4740 .psize = 33,
4741 .ksize = 16,
Ard Biesheuvel092acf02017-02-03 14:49:35 +00004742 }, {
4743 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
4744 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
4745 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4746 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4747 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4748 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4749 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4750 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4751 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4752 "\xad\x2b\x41\x7b\xe6\x6c\x37",
4753 .digest = "\xc0\x71\x73\xb8\xa0\x2c\x11\x7c"
4754 "\xaf\xdc\xb2\xf8\x89\x32\xa3\x3a",
4755 .psize = 63,
4756 .ksize = 16,
4757 }, {
4758 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
4759 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
4760 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
4761 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
4762 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4763 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4764 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4765 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
4766 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
4767 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
4768 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
4769 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10"
4770 "\x1c",
4771 .digest = "\x6a\x4e\xdb\x21\x47\x51\xdf\x4f"
4772 "\xa8\x4d\x4c\x10\x3b\x72\x7d\xd6",
4773 .psize = 65,
4774 .ksize = 32,
4775 }
4776};
4777
Eric Biggersb13b1e02017-02-24 15:46:59 -08004778static const struct hash_testvec des3_ede_cmac64_tv_template[] = {
Jussi Kivilinna93b5e862013-04-08 10:48:44 +03004779/*
4780 * From NIST Special Publication 800-38B, Three Key TDEA
4781 * Corrected test vectors from:
4782 * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf
4783 */
4784 {
4785 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4786 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4787 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4788 .plaintext = zeroed_string,
4789 .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95",
4790 .psize = 0,
4791 .ksize = 24,
4792 }, {
4793 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4794 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4795 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4796 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96",
4797 .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97",
4798 .psize = 8,
4799 .ksize = 24,
4800 }, {
4801 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4802 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4803 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4804 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4805 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4806 "\xae\x2d\x8a\x57",
4807 .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed",
4808 .psize = 20,
4809 .ksize = 24,
4810 }, {
4811 .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62"
4812 "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58"
4813 "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5",
4814 .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
4815 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
4816 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
4817 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51",
4818 .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5",
4819 .psize = 32,
4820 .ksize = 24,
4821 }
4822};
4823
Eric Biggersb13b1e02017-02-24 15:46:59 -08004824static const struct hash_testvec aes_xcbc128_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08004825 {
4826 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4827 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4828 .plaintext = zeroed_string,
4829 .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c"
4830 "\x45\x73\xdf\xd5\x84\xd7\x9f\x29",
4831 .psize = 0,
4832 .ksize = 16,
4833 }, {
4834 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4835 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4836 .plaintext = "\x00\x01\x02",
4837 .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf"
4838 "\xe7\x21\x9c\xee\xf1\x72\x75\x6f",
4839 .psize = 3,
4840 .ksize = 16,
4841 } , {
4842 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4843 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4844 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4845 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4846 .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7"
4847 "\x99\x98\xa4\x39\x4f\xf7\xa2\x63",
4848 .psize = 16,
4849 .ksize = 16,
4850 }, {
4851 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4852 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4853 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4854 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4855 "\x10\x11\x12\x13",
4856 .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15"
4857 "\xb8\x98\x5c\x63\x05\x5e\xd3\x08",
Herbert Xuda7f0332008-07-31 17:08:25 +08004858 .psize = 20,
Herbert Xuda7f0332008-07-31 17:08:25 +08004859 .ksize = 16,
4860 }, {
4861 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4862 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4863 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4864 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4865 "\x10\x11\x12\x13\x14\x15\x16\x17"
4866 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
4867 .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3"
4868 "\x68\x07\x73\x4b\xd5\x28\x3f\xd4",
4869 .psize = 32,
4870 .ksize = 16,
4871 }, {
4872 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4873 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4874 .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07"
4875 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
4876 "\x10\x11\x12\x13\x14\x15\x16\x17"
4877 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
4878 "\x20\x21",
4879 .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3"
4880 "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8",
Herbert Xuda7f0332008-07-31 17:08:25 +08004881 .psize = 34,
Herbert Xuda7f0332008-07-31 17:08:25 +08004882 .ksize = 16,
4883 }
4884};
4885
Eric Biggersed331ad2018-06-18 10:22:39 -07004886static const char vmac64_string1[144] = {
4887 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4888 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4889 '\x01', '\x01', '\x01', '\x01', '\x02', '\x03', '\x02', '\x02',
4890 '\x02', '\x04', '\x01', '\x07', '\x04', '\x01', '\x04', '\x03',
4891};
4892
4893static const char vmac64_string2[144] = {
4894 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4895 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4896 'a', 'b', 'c',
4897};
4898
4899static const char vmac64_string3[144] = {
4900 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4901 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4902 'a', 'b', 'c', 'a', 'b', 'c', 'a', 'b',
4903 'c', 'a', 'b', 'c', 'a', 'b', 'c', 'a',
4904 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c',
4905 'a', 'b', 'c', 'a', 'b', 'c', 'a', 'b',
4906 'c', 'a', 'b', 'c', 'a', 'b', 'c', 'a',
4907 'b', 'c', 'a', 'b', 'c', 'a', 'b', 'c',
4908};
4909
4910static const char vmac64_string4[33] = {
4911 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4912 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4913 'b', 'c', 'e', 'f', 'i', 'j', 'l', 'm',
4914 'o', 'p', 'r', 's', 't', 'u', 'w', 'x',
4915 'z',
4916};
4917
4918static const char vmac64_string5[143] = {
4919 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4920 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4921 'r', 'm', 'b', 't', 'c', 'o', 'l', 'k',
4922 ']', '%', '9', '2', '7', '!', 'A',
4923};
4924
4925static const char vmac64_string6[145] = {
4926 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4927 '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
4928 'p', 't', '*', '7', 'l', 'i', '!', '#',
4929 'w', '0', 'z', '/', '4', 'A', 'n',
4930};
4931
4932static const struct hash_testvec vmac64_aes_tv_template[] = {
4933 { /* draft-krovetz-vmac-01 test vector 1 */
4934 .key = "abcdefghijklmnop",
4935 .ksize = 16,
4936 .plaintext = "\0\0\0\0\0\0\0\0bcdefghi",
4937 .psize = 16,
4938 .digest = "\x25\x76\xbe\x1c\x56\xd8\xb8\x1b",
4939 }, { /* draft-krovetz-vmac-01 test vector 2 */
4940 .key = "abcdefghijklmnop",
4941 .ksize = 16,
4942 .plaintext = "\0\0\0\0\0\0\0\0bcdefghiabc",
4943 .psize = 19,
4944 .digest = "\x2d\x37\x6c\xf5\xb1\x81\x3c\xe5",
4945 }, { /* draft-krovetz-vmac-01 test vector 3 */
4946 .key = "abcdefghijklmnop",
4947 .ksize = 16,
4948 .plaintext = "\0\0\0\0\0\0\0\0bcdefghi"
4949 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc",
4950 .psize = 64,
4951 .digest = "\xe8\x42\x1f\x61\xd5\x73\xd2\x98",
4952 }, { /* draft-krovetz-vmac-01 test vector 4 */
4953 .key = "abcdefghijklmnop",
4954 .ksize = 16,
4955 .plaintext = "\0\0\0\0\0\0\0\0bcdefghi"
4956 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4957 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4958 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4959 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4960 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabcabc"
4961 "abcabcabcabcabcabcabcabcabcabcabcabcabcabcabc",
4962 .psize = 316,
4963 .digest = "\x44\x92\xdf\x6c\x5c\xac\x1b\xbe",
Eric Biggersed331ad2018-06-18 10:22:39 -07004964 }, {
4965 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4966 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4967 .ksize = 16,
4968 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4969 "\x00\x00\x00\x00\x00\x00\x00\x00",
4970 .psize = 16,
4971 .digest = "\x54\x7b\xa4\x77\x35\x80\x58\x07",
4972 }, {
4973 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4974 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4975 .ksize = 16,
4976 .plaintext = vmac64_string1,
4977 .psize = sizeof(vmac64_string1),
4978 .digest = "\xa1\x8c\x68\xae\xd3\x3c\xf5\xce",
4979 }, {
4980 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4981 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4982 .ksize = 16,
4983 .plaintext = vmac64_string2,
4984 .psize = sizeof(vmac64_string2),
4985 .digest = "\x2d\x14\xbd\x81\x73\xb0\x27\xc9",
4986 }, {
4987 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
4988 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
4989 .ksize = 16,
4990 .plaintext = vmac64_string3,
4991 .psize = sizeof(vmac64_string3),
4992 .digest = "\x19\x0b\x47\x98\x8c\x95\x1a\x8d",
4993 }, {
4994 .key = "abcdefghijklmnop",
4995 .ksize = 16,
4996 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
4997 "\x00\x00\x00\x00\x00\x00\x00\x00",
4998 .psize = 16,
4999 .digest = "\x84\x8f\x55\x9e\x26\xa1\x89\x3b",
5000 }, {
5001 .key = "abcdefghijklmnop",
5002 .ksize = 16,
5003 .plaintext = vmac64_string1,
5004 .psize = sizeof(vmac64_string1),
5005 .digest = "\xc2\x74\x8d\xf6\xb0\xab\x5e\xab",
5006 }, {
5007 .key = "abcdefghijklmnop",
5008 .ksize = 16,
5009 .plaintext = vmac64_string2,
5010 .psize = sizeof(vmac64_string2),
5011 .digest = "\xdf\x09\x7b\x3d\x42\x68\x15\x11",
5012 }, {
5013 .key = "abcdefghijklmnop",
5014 .ksize = 16,
5015 .plaintext = vmac64_string3,
5016 .psize = sizeof(vmac64_string3),
5017 .digest = "\xd4\xfa\x8f\xed\xe1\x8f\x32\x8b",
5018 }, {
5019 .key = "a09b5cd!f#07K\x00\x00\x00",
5020 .ksize = 16,
5021 .plaintext = vmac64_string4,
5022 .psize = sizeof(vmac64_string4),
5023 .digest = "\x5f\xa1\x4e\x42\xea\x0f\xa5\xab",
5024 }, {
5025 .key = "a09b5cd!f#07K\x00\x00\x00",
5026 .ksize = 16,
5027 .plaintext = vmac64_string5,
5028 .psize = sizeof(vmac64_string5),
5029 .digest = "\x60\x67\xe8\x1d\xbc\x98\x31\x25",
5030 }, {
5031 .key = "a09b5cd!f#07K\x00\x00\x00",
5032 .ksize = 16,
5033 .plaintext = vmac64_string6,
5034 .psize = sizeof(vmac64_string6),
5035 .digest = "\x41\xeb\x65\x95\x47\x9b\xae\xc4",
5036 },
5037};
5038
Herbert Xuda7f0332008-07-31 17:08:25 +08005039/*
5040 * SHA384 HMAC test vectors from RFC4231
5041 */
5042
Eric Biggersb13b1e02017-02-24 15:46:59 -08005043static const struct hash_testvec hmac_sha384_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08005044 {
5045 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5046 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5047 "\x0b\x0b\x0b\x0b",
5048 .ksize = 20,
5049 .plaintext = "Hi There",
5050 .psize = 8,
5051 .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62"
5052 "\x6b\x08\x25\xf4\xab\x46\x90\x7f"
5053 "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6"
5054 "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c"
5055 "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f"
5056 "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6",
5057 }, {
5058 .key = "Jefe",
5059 .ksize = 4,
5060 .plaintext = "what do ya want for nothing?",
5061 .psize = 28,
5062 .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31"
5063 "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b"
5064 "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47"
5065 "\xe4\x2e\xc3\x73\x63\x22\x44\x5e"
5066 "\x8e\x22\x40\xca\x5e\x69\xe2\xc7"
5067 "\x8b\x32\x39\xec\xfa\xb2\x16\x49",
Herbert Xuda7f0332008-07-31 17:08:25 +08005068 }, {
5069 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5070 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5071 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5072 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5073 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5074 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5075 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5076 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5077 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5078 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5079 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5080 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5081 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5082 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5083 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5084 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5085 "\xaa\xaa\xaa",
5086 .ksize = 131,
5087 .plaintext = "Test Using Larger Than Block-Siz"
5088 "e Key - Hash Key First",
5089 .psize = 54,
5090 .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90"
5091 "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4"
5092 "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f"
5093 "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6"
5094 "\x0c\x2e\xf6\xab\x40\x30\xfe\x82"
5095 "\x96\x24\x8d\xf1\x63\xf4\x49\x52",
5096 }, {
5097 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5098 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5099 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5100 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5101 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5102 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5103 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5104 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5105 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5106 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5107 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5108 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5109 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5110 "\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",
5114 .ksize = 131,
5115 .plaintext = "This is a test u"
5116 "sing a larger th"
5117 "an block-size ke"
5118 "y and a larger t"
5119 "han block-size d"
5120 "ata. The key nee"
5121 "ds to be hashed "
5122 "before being use"
5123 "d by the HMAC al"
5124 "gorithm.",
5125 .psize = 152,
5126 .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d"
5127 "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c"
5128 "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a"
5129 "\xdc\xce\xbb\x82\x46\x1e\x99\xc5"
5130 "\xa6\x78\xcc\x31\xe7\x99\x17\x6d"
5131 "\x38\x60\xe6\x11\x0c\x46\x52\x3e",
5132 },
5133};
5134
5135/*
5136 * SHA512 HMAC test vectors from RFC4231
5137 */
5138
Eric Biggersb13b1e02017-02-24 15:46:59 -08005139static const struct hash_testvec hmac_sha512_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08005140 {
5141 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5142 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5143 "\x0b\x0b\x0b\x0b",
5144 .ksize = 20,
5145 .plaintext = "Hi There",
5146 .psize = 8,
5147 .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d"
5148 "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0"
5149 "\x23\x79\xf4\xe2\xce\x4e\xc2\x78"
5150 "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde"
5151 "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02"
5152 "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4"
5153 "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70"
5154 "\x2e\x69\x6c\x20\x3a\x12\x68\x54",
5155 }, {
5156 .key = "Jefe",
5157 .ksize = 4,
5158 .plaintext = "what do ya want for nothing?",
5159 .psize = 28,
5160 .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2"
5161 "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3"
5162 "\x87\xbd\x64\x22\x2e\x83\x1f\xd6"
5163 "\x10\x27\x0c\xd7\xea\x25\x05\x54"
5164 "\x97\x58\xbf\x75\xc0\x5a\x99\x4a"
5165 "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd"
5166 "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b"
5167 "\x63\x6e\x07\x0a\x38\xbc\xe7\x37",
Herbert Xuda7f0332008-07-31 17:08:25 +08005168 }, {
5169 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5170 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5171 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5172 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5173 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5174 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5175 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5176 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5177 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5178 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5179 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5180 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5181 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5182 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5183 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5184 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5185 "\xaa\xaa\xaa",
5186 .ksize = 131,
5187 .plaintext = "Test Using Large"
5188 "r Than Block-Siz"
5189 "e Key - Hash Key"
5190 " First",
5191 .psize = 54,
5192 .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb"
5193 "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4"
5194 "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1"
5195 "\x12\x1b\x01\x37\x83\xf8\xf3\x52"
5196 "\x6b\x56\xd0\x37\xe0\x5f\x25\x98"
5197 "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52"
5198 "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec"
5199 "\x8b\x91\x5a\x98\x5d\x78\x65\x98",
5200 }, {
5201 .key = "\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\xaa\xaa\xaa\xaa\xaa"
5216 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5217 "\xaa\xaa\xaa",
5218 .ksize = 131,
5219 .plaintext =
5220 "This is a test u"
5221 "sing a larger th"
5222 "an block-size ke"
5223 "y and a larger t"
5224 "han block-size d"
5225 "ata. The key nee"
5226 "ds to be hashed "
5227 "before being use"
5228 "d by the HMAC al"
5229 "gorithm.",
5230 .psize = 152,
5231 .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba"
5232 "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd"
5233 "\xde\xbd\x71\xf8\x86\x72\x89\x86"
5234 "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44"
5235 "\xb6\x02\x2c\xac\x3c\x49\x82\xb1"
5236 "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15"
5237 "\x13\x46\x76\xfb\x6d\xe0\x44\x60"
5238 "\x65\xc9\x74\x40\xfa\x8c\x6a\x58",
5239 },
5240};
5241
Eric Biggersb13b1e02017-02-24 15:46:59 -08005242static const struct hash_testvec hmac_sha3_224_tv_template[] = {
raveendra padasalagi98eca722016-07-01 11:16:54 +05305243 {
5244 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5245 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5246 "\x0b\x0b\x0b\x0b",
5247 .ksize = 20,
5248 .plaintext = "Hi There",
5249 .psize = 8,
5250 .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70"
5251 "\x6a\x03\x1d\xca\xfd\x56\x37\x3d"
5252 "\x98\x84\x36\x76\x41\xd8\xc5\x9a"
5253 "\xf3\xc8\x60\xf7",
5254 }, {
5255 .key = "Jefe",
5256 .ksize = 4,
5257 .plaintext = "what do ya want for nothing?",
5258 .psize = 28,
5259 .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d"
5260 "\x1b\x79\x86\x34\xad\x38\x68\x11"
5261 "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b"
5262 "\xba\xce\x5e\x66",
raveendra padasalagi98eca722016-07-01 11:16:54 +05305263 }, {
5264 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5265 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5266 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5267 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5268 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5269 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5270 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5271 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5272 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5273 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5274 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5275 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5276 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5277 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5278 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5279 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5280 "\xaa\xaa\xaa",
5281 .ksize = 131,
5282 .plaintext = "Test Using Large"
5283 "r Than Block-Siz"
5284 "e Key - Hash Key"
5285 " First",
5286 .psize = 54,
5287 .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b"
5288 "\x7f\x60\x75\xb3\x13\xd2\x79\xb8"
5289 "\x33\xbc\x8f\x75\x12\x43\x52\xd0"
5290 "\x5f\xb9\x99\x5f",
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 =
5311 "This is a test u"
5312 "sing a larger th"
5313 "an block-size ke"
5314 "y and a larger t"
5315 "han block-size d"
5316 "ata. The key nee"
5317 "ds to be hashed "
5318 "before being use"
5319 "d by the HMAC al"
5320 "gorithm.",
5321 .psize = 152,
5322 .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d"
5323 "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd"
5324 "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b"
5325 "\x29\xcd\x62\xa0",
5326 },
5327};
5328
Eric Biggersb13b1e02017-02-24 15:46:59 -08005329static const struct hash_testvec hmac_sha3_256_tv_template[] = {
raveendra padasalagi98eca722016-07-01 11:16:54 +05305330 {
5331 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5332 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5333 "\x0b\x0b\x0b\x0b",
5334 .ksize = 20,
5335 .plaintext = "Hi There",
5336 .psize = 8,
5337 .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96"
5338 "\xe2\xa3\xa4\x0e\x69\x77\x43\x51"
5339 "\x14\x0b\xb7\x18\x5e\x12\x02\xcd"
5340 "\xcc\x91\x75\x89\xf9\x5e\x16\xbb",
5341 }, {
5342 .key = "Jefe",
5343 .ksize = 4,
5344 .plaintext = "what do ya want for nothing?",
5345 .psize = 28,
5346 .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae"
5347 "\x35\x96\xbb\xb0\xda\x73\xb8\x87"
5348 "\xc9\x17\x1f\x93\x09\x5b\x29\x4a"
5349 "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5",
raveendra padasalagi98eca722016-07-01 11:16:54 +05305350 }, {
5351 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5352 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5353 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5354 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5355 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5356 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5357 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5358 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5359 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5360 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5361 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5362 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5363 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5364 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5365 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5366 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5367 "\xaa\xaa\xaa",
5368 .ksize = 131,
5369 .plaintext = "Test Using Large"
5370 "r Than Block-Siz"
5371 "e Key - Hash Key"
5372 " First",
5373 .psize = 54,
5374 .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52"
5375 "\x35\xf9\x48\x03\x2f\x09\x67\x4a"
5376 "\x58\xc0\xce\x55\x5c\xfc\x1f\x22"
5377 "\x3b\x02\x35\x65\x60\x31\x2c\x3b",
5378 }, {
5379 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5380 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5381 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5382 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5383 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5384 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5385 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5386 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5387 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5388 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5389 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5390 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5391 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5392 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5393 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5394 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5395 "\xaa\xaa\xaa",
5396 .ksize = 131,
5397 .plaintext =
5398 "This is a test u"
5399 "sing a larger th"
5400 "an block-size ke"
5401 "y and a larger t"
5402 "han block-size d"
5403 "ata. The key nee"
5404 "ds to be hashed "
5405 "before being use"
5406 "d by the HMAC al"
5407 "gorithm.",
5408 .psize = 152,
5409 .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a"
5410 "\x7a\xef\x87\x63\x26\x1e\x49\xad"
5411 "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e"
5412 "\x8d\xe6\x17\x01\xfc\x63\xe1\x23",
5413 },
5414};
5415
Eric Biggersb13b1e02017-02-24 15:46:59 -08005416static const struct hash_testvec hmac_sha3_384_tv_template[] = {
raveendra padasalagi98eca722016-07-01 11:16:54 +05305417 {
5418 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5419 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5420 "\x0b\x0b\x0b\x0b",
5421 .ksize = 20,
5422 .plaintext = "Hi There",
5423 .psize = 8,
5424 .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a"
5425 "\x22\x40\xc8\xa4\x37\x30\x5f\x61"
5426 "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e"
5427 "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a"
5428 "\x20\xd3\x70\xb4\x77\x43\x13\x0e"
5429 "\x26\xac\x7e\x3d\x53\x28\x86\xbd",
5430 }, {
5431 .key = "Jefe",
5432 .ksize = 4,
5433 .plaintext = "what do ya want for nothing?",
5434 .psize = 28,
5435 .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd"
5436 "\x67\x64\xd2\xed\x61\x90\x3f\x21"
5437 "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2"
5438 "\x3c\xa1\x35\x08\xa9\x32\x43\xce"
5439 "\x48\xc0\x45\xdc\x00\x7f\x26\xa2"
5440 "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a",
raveendra padasalagi98eca722016-07-01 11:16:54 +05305441 }, {
5442 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5443 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5444 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5445 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5446 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5447 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5448 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5449 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5450 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5451 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5452 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5453 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5454 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5455 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5456 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5457 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5458 "\xaa\xaa\xaa",
5459 .ksize = 131,
5460 .plaintext = "Test Using Large"
5461 "r Than Block-Siz"
5462 "e Key - Hash Key"
5463 " First",
5464 .psize = 54,
5465 .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78"
5466 "\x03\x70\x16\x70\x6a\x0e\x57\xbc"
5467 "\x52\x81\x39\x83\x6b\x9a\x42\xc3"
5468 "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96"
5469 "\x16\xfd\x66\x91\x38\xd3\x3a\x11"
5470 "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc",
5471 }, {
5472 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5473 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5474 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5475 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5476 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5477 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5478 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5479 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5480 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5481 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5482 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5483 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5484 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5485 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5486 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5487 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5488 "\xaa\xaa\xaa",
5489 .ksize = 131,
5490 .plaintext =
5491 "This is a test u"
5492 "sing a larger th"
5493 "an block-size ke"
5494 "y and a larger t"
5495 "han block-size d"
5496 "ata. The key nee"
5497 "ds to be hashed "
5498 "before being use"
5499 "d by the HMAC al"
5500 "gorithm.",
5501 .psize = 152,
5502 .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37"
5503 "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e"
5504 "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a"
5505 "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5"
5506 "\xa9\x00\xed\xce\x01\xf5\xf6\x1e"
5507 "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8",
5508 },
5509};
5510
Eric Biggersb13b1e02017-02-24 15:46:59 -08005511static const struct hash_testvec hmac_sha3_512_tv_template[] = {
raveendra padasalagi98eca722016-07-01 11:16:54 +05305512 {
5513 .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5514 "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b"
5515 "\x0b\x0b\x0b\x0b",
5516 .ksize = 20,
5517 .plaintext = "Hi There",
5518 .psize = 8,
5519 .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5"
5520 "\xc5\x04\xbd\x3a\x41\x46\x5a\xac"
5521 "\xec\x15\x77\x0a\x7c\xab\xac\x53"
5522 "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba"
5523 "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f"
5524 "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2"
5525 "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05"
5526 "\x37\xc0\xa0\xb8\x64\x07\x68\x9e",
5527 }, {
5528 .key = "Jefe",
5529 .ksize = 4,
5530 .plaintext = "what do ya want for nothing?",
5531 .psize = 28,
5532 .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c"
5533 "\x7a\x36\x47\xb7\x47\x29\x2b\x83"
5534 "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf"
5535 "\x56\x65\xe4\xc5\xe7\x09\x35\x0b"
5536 "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0"
5537 "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e"
5538 "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83"
5539 "\x96\x02\x75\xbe\xb4\xe6\x20\x24",
raveendra padasalagi98eca722016-07-01 11:16:54 +05305540 }, {
5541 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5542 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5543 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5544 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5545 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5546 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5547 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5548 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5549 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5550 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5551 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5552 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5553 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5554 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5555 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5556 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5557 "\xaa\xaa\xaa",
5558 .ksize = 131,
5559 .plaintext = "Test Using Large"
5560 "r Than Block-Siz"
5561 "e Key - Hash Key"
5562 " First",
5563 .psize = 54,
5564 .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0"
5565 "\x90\xed\x69\x11\xa4\xb6\x55\x24"
5566 "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58"
5567 "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a"
5568 "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab"
5569 "\x27\xe8\x3f\xde\x9e\x11\xf6\x34"
5570 "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2"
5571 "\xee\xe7\xfc\x87\x24\x26\xc3\xa4",
5572 }, {
5573 .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5574 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5575 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5576 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5577 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5578 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5579 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5580 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5581 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5582 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5583 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5584 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5585 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5586 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5587 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5588 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
5589 "\xaa\xaa\xaa",
5590 .ksize = 131,
5591 .plaintext =
5592 "This is a test u"
5593 "sing a larger th"
5594 "an block-size ke"
5595 "y and a larger t"
5596 "han block-size d"
5597 "ata. The key nee"
5598 "ds to be hashed "
5599 "before being use"
5600 "d by the HMAC al"
5601 "gorithm.",
5602 .psize = 152,
5603 .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3"
5604 "\x2c\x9a\xb8\x33\x66\x84\x11\x28"
5605 "\x62\xc3\xdb\x61\xad\xcc\xa3\x18"
5606 "\x29\x35\x5e\xaf\x46\xfd\x5c\x73"
5607 "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6"
5608 "\x52\xfb\x38\x11\xb5\x77\xb1\xb1"
5609 "\xd1\xb9\x78\x9f\x97\xae\x5b\x83"
5610 "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba",
5611 },
5612};
5613
Herbert Xuda7f0332008-07-31 17:08:25 +08005614/*
Martin Willieee9dc62015-06-01 13:43:59 +02005615 * Poly1305 test vectors from RFC7539 A.3.
5616 */
5617
Eric Biggersb13b1e02017-02-24 15:46:59 -08005618static const struct hash_testvec poly1305_tv_template[] = {
Martin Willieee9dc62015-06-01 13:43:59 +02005619 { /* Test Vector #1 */
Martin Willieee9dc62015-06-01 13:43:59 +02005620 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
5621 "\x00\x00\x00\x00\x00\x00\x00\x00"
5622 "\x00\x00\x00\x00\x00\x00\x00\x00"
5623 "\x00\x00\x00\x00\x00\x00\x00\x00"
5624 "\x00\x00\x00\x00\x00\x00\x00\x00"
5625 "\x00\x00\x00\x00\x00\x00\x00\x00"
5626 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005627 "\x00\x00\x00\x00\x00\x00\x00\x00"
5628 "\x00\x00\x00\x00\x00\x00\x00\x00"
5629 "\x00\x00\x00\x00\x00\x00\x00\x00"
5630 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005631 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005632 .psize = 96,
Martin Willieee9dc62015-06-01 13:43:59 +02005633 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
5634 "\x00\x00\x00\x00\x00\x00\x00\x00",
5635 }, { /* Test Vector #2 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005636 .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005637 "\x00\x00\x00\x00\x00\x00\x00\x00"
5638 "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005639 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
5640 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
Martin Willieee9dc62015-06-01 13:43:59 +02005641 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
5642 "\x6f\x20\x74\x68\x65\x20\x49\x45"
5643 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
5644 "\x64\x65\x64\x20\x62\x79\x20\x74"
5645 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
5646 "\x69\x62\x75\x74\x6f\x72\x20\x66"
5647 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
5648 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
5649 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
5650 "\x20\x70\x61\x72\x74\x20\x6f\x66"
5651 "\x20\x61\x6e\x20\x49\x45\x54\x46"
5652 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
5653 "\x74\x2d\x44\x72\x61\x66\x74\x20"
5654 "\x6f\x72\x20\x52\x46\x43\x20\x61"
5655 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
5656 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
5657 "\x20\x6d\x61\x64\x65\x20\x77\x69"
5658 "\x74\x68\x69\x6e\x20\x74\x68\x65"
5659 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
5660 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
5661 "\x45\x54\x46\x20\x61\x63\x74\x69"
5662 "\x76\x69\x74\x79\x20\x69\x73\x20"
5663 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
5664 "\x65\x64\x20\x61\x6e\x20\x22\x49"
5665 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
5666 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
5667 "\x22\x2e\x20\x53\x75\x63\x68\x20"
5668 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5669 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
5670 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
5671 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5672 "\x74\x73\x20\x69\x6e\x20\x49\x45"
5673 "\x54\x46\x20\x73\x65\x73\x73\x69"
5674 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
5675 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
5676 "\x77\x72\x69\x74\x74\x65\x6e\x20"
5677 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
5678 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
5679 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
5680 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
5681 "\x64\x65\x20\x61\x74\x20\x61\x6e"
5682 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
5683 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
5684 "\x20\x77\x68\x69\x63\x68\x20\x61"
5685 "\x72\x65\x20\x61\x64\x64\x72\x65"
5686 "\x73\x73\x65\x64\x20\x74\x6f",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005687 .psize = 407,
Martin Willieee9dc62015-06-01 13:43:59 +02005688 .digest = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
5689 "\xf0\xef\xca\x96\x22\x7a\x86\x3e",
5690 }, { /* Test Vector #3 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005691 .plaintext = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70"
Martin Willieee9dc62015-06-01 13:43:59 +02005692 "\xf0\xef\xca\x96\x22\x7a\x86\x3e"
5693 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005694 "\x00\x00\x00\x00\x00\x00\x00\x00"
5695 "\x41\x6e\x79\x20\x73\x75\x62\x6d"
Martin Willieee9dc62015-06-01 13:43:59 +02005696 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
5697 "\x6f\x20\x74\x68\x65\x20\x49\x45"
5698 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
5699 "\x64\x65\x64\x20\x62\x79\x20\x74"
5700 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
5701 "\x69\x62\x75\x74\x6f\x72\x20\x66"
5702 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
5703 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
5704 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
5705 "\x20\x70\x61\x72\x74\x20\x6f\x66"
5706 "\x20\x61\x6e\x20\x49\x45\x54\x46"
5707 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
5708 "\x74\x2d\x44\x72\x61\x66\x74\x20"
5709 "\x6f\x72\x20\x52\x46\x43\x20\x61"
5710 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
5711 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
5712 "\x20\x6d\x61\x64\x65\x20\x77\x69"
5713 "\x74\x68\x69\x6e\x20\x74\x68\x65"
5714 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
5715 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
5716 "\x45\x54\x46\x20\x61\x63\x74\x69"
5717 "\x76\x69\x74\x79\x20\x69\x73\x20"
5718 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
5719 "\x65\x64\x20\x61\x6e\x20\x22\x49"
5720 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
5721 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
5722 "\x22\x2e\x20\x53\x75\x63\x68\x20"
5723 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5724 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
5725 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
5726 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
5727 "\x74\x73\x20\x69\x6e\x20\x49\x45"
5728 "\x54\x46\x20\x73\x65\x73\x73\x69"
5729 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
5730 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
5731 "\x77\x72\x69\x74\x74\x65\x6e\x20"
5732 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
5733 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
5734 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
5735 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
5736 "\x64\x65\x20\x61\x74\x20\x61\x6e"
5737 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
5738 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
5739 "\x20\x77\x68\x69\x63\x68\x20\x61"
5740 "\x72\x65\x20\x61\x64\x64\x72\x65"
5741 "\x73\x73\x65\x64\x20\x74\x6f",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005742 .psize = 407,
Martin Willieee9dc62015-06-01 13:43:59 +02005743 .digest = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf"
5744 "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0",
5745 }, { /* Test Vector #4 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005746 .plaintext = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
Martin Willieee9dc62015-06-01 13:43:59 +02005747 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
5748 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005749 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
5750 "\x27\x54\x77\x61\x73\x20\x62\x72"
Martin Willieee9dc62015-06-01 13:43:59 +02005751 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
5752 "\x6e\x64\x20\x74\x68\x65\x20\x73"
5753 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
5754 "\x76\x65\x73\x0a\x44\x69\x64\x20"
5755 "\x67\x79\x72\x65\x20\x61\x6e\x64"
5756 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
5757 "\x69\x6e\x20\x74\x68\x65\x20\x77"
5758 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
5759 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
5760 "\x65\x72\x65\x20\x74\x68\x65\x20"
5761 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
5762 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
5763 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
5764 "\x72\x61\x74\x68\x73\x20\x6f\x75"
5765 "\x74\x67\x72\x61\x62\x65\x2e",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005766 .psize = 159,
Martin Willieee9dc62015-06-01 13:43:59 +02005767 .digest = "\x45\x41\x66\x9a\x7e\xaa\xee\x61"
5768 "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62",
5769 }, { /* Test Vector #5 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005770 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005771 "\x00\x00\x00\x00\x00\x00\x00\x00"
5772 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005773 "\x00\x00\x00\x00\x00\x00\x00\x00"
5774 "\xff\xff\xff\xff\xff\xff\xff\xff"
5775 "\xff\xff\xff\xff\xff\xff\xff\xff",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005776 .psize = 48,
5777 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005778 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005779 }, { /* Test Vector #6 */
5780 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
5781 "\x00\x00\x00\x00\x00\x00\x00\x00"
5782 "\xff\xff\xff\xff\xff\xff\xff\xff"
5783 "\xff\xff\xff\xff\xff\xff\xff\xff"
5784 "\x02\x00\x00\x00\x00\x00\x00\x00"
5785 "\x00\x00\x00\x00\x00\x00\x00\x00",
5786 .psize = 48,
Martin Willieee9dc62015-06-01 13:43:59 +02005787 .digest = "\x03\x00\x00\x00\x00\x00\x00\x00"
5788 "\x00\x00\x00\x00\x00\x00\x00\x00",
5789 }, { /* Test Vector #7 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005790 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005791 "\x00\x00\x00\x00\x00\x00\x00\x00"
5792 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005793 "\x00\x00\x00\x00\x00\x00\x00\x00"
5794 "\xff\xff\xff\xff\xff\xff\xff\xff"
Martin Willieee9dc62015-06-01 13:43:59 +02005795 "\xff\xff\xff\xff\xff\xff\xff\xff"
5796 "\xf0\xff\xff\xff\xff\xff\xff\xff"
5797 "\xff\xff\xff\xff\xff\xff\xff\xff"
5798 "\x11\x00\x00\x00\x00\x00\x00\x00"
5799 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005800 .psize = 80,
Martin Willieee9dc62015-06-01 13:43:59 +02005801 .digest = "\x05\x00\x00\x00\x00\x00\x00\x00"
5802 "\x00\x00\x00\x00\x00\x00\x00\x00",
5803 }, { /* Test Vector #8 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005804 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005805 "\x00\x00\x00\x00\x00\x00\x00\x00"
5806 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005807 "\x00\x00\x00\x00\x00\x00\x00\x00"
5808 "\xff\xff\xff\xff\xff\xff\xff\xff"
Martin Willieee9dc62015-06-01 13:43:59 +02005809 "\xff\xff\xff\xff\xff\xff\xff\xff"
5810 "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
5811 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
5812 "\x01\x01\x01\x01\x01\x01\x01\x01"
5813 "\x01\x01\x01\x01\x01\x01\x01\x01",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005814 .psize = 80,
Martin Willieee9dc62015-06-01 13:43:59 +02005815 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
5816 "\x00\x00\x00\x00\x00\x00\x00\x00",
5817 }, { /* Test Vector #9 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005818 .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005819 "\x00\x00\x00\x00\x00\x00\x00\x00"
5820 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005821 "\x00\x00\x00\x00\x00\x00\x00\x00"
5822 "\xfd\xff\xff\xff\xff\xff\xff\xff"
Martin Willieee9dc62015-06-01 13:43:59 +02005823 "\xff\xff\xff\xff\xff\xff\xff\xff",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005824 .psize = 48,
Martin Willieee9dc62015-06-01 13:43:59 +02005825 .digest = "\xfa\xff\xff\xff\xff\xff\xff\xff"
5826 "\xff\xff\xff\xff\xff\xff\xff\xff",
5827 }, { /* Test Vector #10 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005828 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005829 "\x04\x00\x00\x00\x00\x00\x00\x00"
5830 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005831 "\x00\x00\x00\x00\x00\x00\x00\x00"
5832 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
Martin Willieee9dc62015-06-01 13:43:59 +02005833 "\x00\x00\x00\x00\x00\x00\x00\x00"
5834 "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
5835 "\x01\x00\x00\x00\x00\x00\x00\x00"
5836 "\x00\x00\x00\x00\x00\x00\x00\x00"
5837 "\x00\x00\x00\x00\x00\x00\x00\x00"
5838 "\x01\x00\x00\x00\x00\x00\x00\x00"
5839 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005840 .psize = 96,
Martin Willieee9dc62015-06-01 13:43:59 +02005841 .digest = "\x14\x00\x00\x00\x00\x00\x00\x00"
5842 "\x55\x00\x00\x00\x00\x00\x00\x00",
5843 }, { /* Test Vector #11 */
Martin Willic2b7b20a2015-06-16 11:34:16 +02005844 .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00"
Martin Willieee9dc62015-06-01 13:43:59 +02005845 "\x04\x00\x00\x00\x00\x00\x00\x00"
5846 "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willic2b7b20a2015-06-16 11:34:16 +02005847 "\x00\x00\x00\x00\x00\x00\x00\x00"
5848 "\xe3\x35\x94\xd7\x50\x5e\x43\xb9"
Martin Willieee9dc62015-06-01 13:43:59 +02005849 "\x00\x00\x00\x00\x00\x00\x00\x00"
5850 "\x33\x94\xd7\x50\x5e\x43\x79\xcd"
5851 "\x01\x00\x00\x00\x00\x00\x00\x00"
5852 "\x00\x00\x00\x00\x00\x00\x00\x00"
5853 "\x00\x00\x00\x00\x00\x00\x00\x00",
Martin Willic2b7b20a2015-06-16 11:34:16 +02005854 .psize = 80,
Martin Willieee9dc62015-06-01 13:43:59 +02005855 .digest = "\x13\x00\x00\x00\x00\x00\x00\x00"
5856 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers678cce42019-03-31 13:04:11 -07005857 }, { /* Regression test for overflow in AVX2 implementation */
5858 .plaintext = "\xff\xff\xff\xff\xff\xff\xff\xff"
5859 "\xff\xff\xff\xff\xff\xff\xff\xff"
5860 "\xff\xff\xff\xff\xff\xff\xff\xff"
5861 "\xff\xff\xff\xff\xff\xff\xff\xff"
5862 "\xff\xff\xff\xff\xff\xff\xff\xff"
5863 "\xff\xff\xff\xff\xff\xff\xff\xff"
5864 "\xff\xff\xff\xff\xff\xff\xff\xff"
5865 "\xff\xff\xff\xff\xff\xff\xff\xff"
5866 "\xff\xff\xff\xff\xff\xff\xff\xff"
5867 "\xff\xff\xff\xff\xff\xff\xff\xff"
5868 "\xff\xff\xff\xff\xff\xff\xff\xff"
5869 "\xff\xff\xff\xff\xff\xff\xff\xff"
5870 "\xff\xff\xff\xff\xff\xff\xff\xff"
5871 "\xff\xff\xff\xff\xff\xff\xff\xff"
5872 "\xff\xff\xff\xff\xff\xff\xff\xff"
5873 "\xff\xff\xff\xff\xff\xff\xff\xff"
5874 "\xff\xff\xff\xff\xff\xff\xff\xff"
5875 "\xff\xff\xff\xff\xff\xff\xff\xff"
5876 "\xff\xff\xff\xff\xff\xff\xff\xff"
5877 "\xff\xff\xff\xff\xff\xff\xff\xff"
5878 "\xff\xff\xff\xff\xff\xff\xff\xff"
5879 "\xff\xff\xff\xff\xff\xff\xff\xff"
5880 "\xff\xff\xff\xff\xff\xff\xff\xff"
5881 "\xff\xff\xff\xff\xff\xff\xff\xff"
5882 "\xff\xff\xff\xff\xff\xff\xff\xff"
5883 "\xff\xff\xff\xff\xff\xff\xff\xff"
5884 "\xff\xff\xff\xff\xff\xff\xff\xff"
5885 "\xff\xff\xff\xff\xff\xff\xff\xff"
5886 "\xff\xff\xff\xff\xff\xff\xff\xff"
5887 "\xff\xff\xff\xff\xff\xff\xff\xff"
5888 "\xff\xff\xff\xff\xff\xff\xff\xff"
5889 "\xff\xff\xff\xff\xff\xff\xff\xff"
5890 "\xff\xff\xff\xff\xff\xff\xff\xff"
5891 "\xff\xff\xff\xff\xff\xff\xff\xff"
5892 "\xff\xff\xff\xff\xff\xff\xff\xff"
5893 "\xff\xff\xff\xff\xff\xff\xff\xff"
5894 "\xff\xff\xff\xff\xff\xff\xff\xff"
5895 "\xff\xff\xff\xff",
5896 .psize = 300,
5897 .digest = "\xfb\x5e\x96\xd8\x61\xd5\xc7\xc8"
5898 "\x78\xe5\x87\xcc\x2d\x5a\x22\xe1",
5899 }
Martin Willieee9dc62015-06-01 13:43:59 +02005900};
5901
Eric Biggers26609a22018-11-16 17:26:29 -08005902/* NHPoly1305 test vectors from https://github.com/google/adiantum */
5903static const struct hash_testvec nhpoly1305_tv_template[] = {
5904 {
5905 .key = "\xd2\x5d\x4c\xdd\x8d\x2b\x7f\x7a"
5906 "\xd9\xbe\x71\xec\xd1\x83\x52\xe3"
5907 "\xe1\xad\xd7\x5c\x0a\x75\x9d\xec"
5908 "\x1d\x13\x7e\x5d\x71\x07\xc9\xe4"
5909 "\x57\x2d\x44\x68\xcf\xd8\xd6\xc5"
5910 "\x39\x69\x7d\x32\x75\x51\x4f\x7e"
5911 "\xb2\x4c\xc6\x90\x51\x6e\xd9\xd6"
5912 "\xa5\x8b\x2d\xf1\x94\xf9\xf7\x5e"
5913 "\x2c\x84\x7b\x41\x0f\x88\x50\x89"
5914 "\x30\xd9\xa1\x38\x46\x6c\xc0\x4f"
5915 "\xe8\xdf\xdc\x66\xab\x24\x43\x41"
5916 "\x91\x55\x29\x65\x86\x28\x5e\x45"
5917 "\xd5\x2d\xb7\x80\x08\x9a\xc3\xd4"
5918 "\x9a\x77\x0a\xd4\xef\x3e\xe6\x3f"
5919 "\x6f\x2f\x9b\x3a\x7d\x12\x1e\x80"
5920 "\x6c\x44\xa2\x25\xe1\xf6\x60\xe9"
5921 "\x0d\xaf\xc5\x3c\xa5\x79\xae\x64"
5922 "\xbc\xa0\x39\xa3\x4d\x10\xe5\x4d"
5923 "\xd5\xe7\x89\x7a\x13\xee\x06\x78"
5924 "\xdc\xa4\xdc\x14\x27\xe6\x49\x38"
5925 "\xd0\xe0\x45\x25\x36\xc5\xf4\x79"
5926 "\x2e\x9a\x98\x04\xe4\x2b\x46\x52"
5927 "\x7c\x33\xca\xe2\x56\x51\x50\xe2"
5928 "\xa5\x9a\xae\x18\x6a\x13\xf8\xd2"
5929 "\x21\x31\x66\x02\xe2\xda\x8d\x7e"
5930 "\x41\x19\xb2\x61\xee\x48\x8f\xf1"
5931 "\x65\x24\x2e\x1e\x68\xce\x05\xd9"
5932 "\x2a\xcf\xa5\x3a\x57\xdd\x35\x91"
5933 "\x93\x01\xca\x95\xfc\x2b\x36\x04"
5934 "\xe6\x96\x97\x28\xf6\x31\xfe\xa3"
5935 "\x9d\xf6\x6a\x1e\x80\x8d\xdc\xec"
5936 "\xaf\x66\x11\x13\x02\x88\xd5\x27"
5937 "\x33\xb4\x1a\xcd\xa3\xf6\xde\x31"
5938 "\x8e\xc0\x0e\x6c\xd8\x5a\x97\x5e"
5939 "\xdd\xfd\x60\x69\x38\x46\x3f\x90"
5940 "\x5e\x97\xd3\x32\x76\xc7\x82\x49"
5941 "\xfe\xba\x06\x5f\x2f\xa2\xfd\xff"
5942 "\x80\x05\x40\xe4\x33\x03\xfb\x10"
5943 "\xc0\xde\x65\x8c\xc9\x8d\x3a\x9d"
5944 "\xb5\x7b\x36\x4b\xb5\x0c\xcf\x00"
5945 "\x9c\x87\xe4\x49\xad\x90\xda\x4a"
5946 "\xdd\xbd\xff\xe2\x32\x57\xd6\x78"
5947 "\x36\x39\x6c\xd3\x5b\x9b\x88\x59"
5948 "\x2d\xf0\x46\xe4\x13\x0e\x2b\x35"
5949 "\x0d\x0f\x73\x8a\x4f\x26\x84\x75"
5950 "\x88\x3c\xc5\x58\x66\x18\x1a\xb4"
5951 "\x64\x51\x34\x27\x1b\xa4\x11\xc9"
5952 "\x6d\x91\x8a\xfa\x32\x60\x9d\xd7"
5953 "\x87\xe5\xaa\x43\x72\xf8\xda\xd1"
5954 "\x48\x44\x13\x61\xdc\x8c\x76\x17"
5955 "\x0c\x85\x4e\xf3\xdd\xa2\x42\xd2"
5956 "\x74\xc1\x30\x1b\xeb\x35\x31\x29"
5957 "\x5b\xd7\x4c\x94\x46\x35\xa1\x23"
5958 "\x50\xf2\xa2\x8e\x7e\x4f\x23\x4f"
5959 "\x51\xff\xe2\xc9\xa3\x7d\x56\x8b"
5960 "\x41\xf2\xd0\xc5\x57\x7e\x59\xac"
5961 "\xbb\x65\xf3\xfe\xf7\x17\xef\x63"
5962 "\x7c\x6f\x23\xdd\x22\x8e\xed\x84"
5963 "\x0e\x3b\x09\xb3\xf3\xf4\x8f\xcd"
5964 "\x37\xa8\xe1\xa7\x30\xdb\xb1\xa2"
5965 "\x9c\xa2\xdf\x34\x17\x3e\x68\x44"
5966 "\xd0\xde\x03\x50\xd1\x48\x6b\x20"
5967 "\xe2\x63\x45\xa5\xea\x87\xc2\x42"
5968 "\x95\x03\x49\x05\xed\xe0\x90\x29"
5969 "\x1a\xb8\xcf\x9b\x43\xcf\x29\x7a"
5970 "\x63\x17\x41\x9f\xe0\xc9\x10\xfd"
5971 "\x2c\x56\x8c\x08\x55\xb4\xa9\x27"
5972 "\x0f\x23\xb1\x05\x6a\x12\x46\xc7"
5973 "\xe1\xfe\x28\x93\x93\xd7\x2f\xdc"
5974 "\x98\x30\xdb\x75\x8a\xbe\x97\x7a"
5975 "\x02\xfb\x8c\xba\xbe\x25\x09\xbe"
5976 "\xce\xcb\xa2\xef\x79\x4d\x0e\x9d"
5977 "\x1b\x9d\xb6\x39\x34\x38\xfa\x07"
5978 "\xec\xe8\xfc\x32\x85\x1d\xf7\x85"
5979 "\x63\xc3\x3c\xc0\x02\x75\xd7\x3f"
5980 "\xb2\x68\x60\x66\x65\x81\xc6\xb1"
5981 "\x42\x65\x4b\x4b\x28\xd7\xc7\xaa"
5982 "\x9b\xd2\xdc\x1b\x01\xe0\x26\x39"
5983 "\x01\xc1\x52\x14\xd1\x3f\xb7\xe6"
5984 "\x61\x41\xc7\x93\xd2\xa2\x67\xc6"
5985 "\xf7\x11\xb5\xf5\xea\xdd\x19\xfb"
5986 "\x4d\x21\x12\xd6\x7d\xf1\x10\xb0"
5987 "\x89\x07\xc7\x5a\x52\x73\x70\x2f"
5988 "\x32\xef\x65\x2b\x12\xb2\xf0\xf5"
5989 "\x20\xe0\x90\x59\x7e\x64\xf1\x4c"
5990 "\x41\xb3\xa5\x91\x08\xe6\x5e\x5f"
5991 "\x05\x56\x76\xb4\xb0\xcd\x70\x53"
5992 "\x10\x48\x9c\xff\xc2\x69\x55\x24"
5993 "\x87\xef\x84\xea\xfb\xa7\xbf\xa0"
5994 "\x91\x04\xad\x4f\x8b\x57\x54\x4b"
5995 "\xb6\xe9\xd1\xac\x37\x2f\x1d\x2e"
5996 "\xab\xa5\xa4\xe8\xff\xfb\xd9\x39"
5997 "\x2f\xb7\xac\xd1\xfe\x0b\x9a\x80"
5998 "\x0f\xb6\xf4\x36\x39\x90\x51\xe3"
5999 "\x0a\x2f\xb6\x45\x76\x89\xcd\x61"
6000 "\xfe\x48\x5f\x75\x1d\x13\x00\x62"
6001 "\x80\x24\x47\xe7\xbc\x37\xd7\xe3"
6002 "\x15\xe8\x68\x22\xaf\x80\x6f\x4b"
6003 "\xa8\x9f\x01\x10\x48\x14\xc3\x02"
6004 "\x52\xd2\xc7\x75\x9b\x52\x6d\x30"
6005 "\xac\x13\x85\xc8\xf7\xa3\x58\x4b"
6006 "\x49\xf7\x1c\x45\x55\x8c\x39\x9a"
6007 "\x99\x6d\x97\x27\x27\xe6\xab\xdd"
6008 "\x2c\x42\x1b\x35\xdd\x9d\x73\xbb"
6009 "\x6c\xf3\x64\xf1\xfb\xb9\xf7\xe6"
6010 "\x4a\x3c\xc0\x92\xc0\x2e\xb7\x1a"
6011 "\xbe\xab\xb3\x5a\xe5\xea\xb1\x48"
6012 "\x58\x13\x53\x90\xfd\xc3\x8e\x54"
6013 "\xf9\x18\x16\x73\xe8\xcb\x6d\x39"
6014 "\x0e\xd7\xe0\xfe\xb6\x9f\x43\x97"
6015 "\xe8\xd0\x85\x56\x83\x3e\x98\x68"
6016 "\x7f\xbd\x95\xa8\x9a\x61\x21\x8f"
6017 "\x06\x98\x34\xa6\xc8\xd6\x1d\xf3"
6018 "\x3d\x43\xa4\x9a\x8c\xe5\xd3\x5a"
6019 "\x32\xa2\x04\x22\xa4\x19\x1a\x46"
6020 "\x42\x7e\x4d\xe5\xe0\xe6\x0e\xca"
6021 "\xd5\x58\x9d\x2c\xaf\xda\x33\x5c"
6022 "\xb0\x79\x9e\xc9\xfc\xca\xf0\x2f"
6023 "\xa8\xb2\x77\xeb\x7a\xa2\xdd\x37"
6024 "\x35\x83\x07\xd6\x02\x1a\xb6\x6c"
6025 "\x24\xe2\x59\x08\x0e\xfd\x3e\x46"
6026 "\xec\x40\x93\xf4\x00\x26\x4f\x2a"
6027 "\xff\x47\x2f\xeb\x02\x92\x26\x5b"
6028 "\x53\x17\xc2\x8d\x2a\xc7\xa3\x1b"
6029 "\xcd\xbc\xa7\xe8\xd1\x76\xe3\x80"
6030 "\x21\xca\x5d\x3b\xe4\x9c\x8f\xa9"
6031 "\x5b\x7f\x29\x7f\x7c\xd8\xed\x6d"
6032 "\x8c\xb2\x86\x85\xe7\x77\xf2\x85"
6033 "\xab\x38\xa9\x9d\xc1\x4e\xc5\x64"
6034 "\x33\x73\x8b\x59\x03\xad\x05\xdf"
6035 "\x25\x98\x31\xde\xef\x13\xf1\x9b"
6036 "\x3c\x91\x9d\x7b\xb1\xfa\xe6\xbf"
6037 "\x5b\xed\xa5\x55\xe6\xea\x6c\x74"
6038 "\xf4\xb9\xe4\x45\x64\x72\x81\xc2"
6039 "\x4c\x28\xd4\xcd\xac\xe2\xde\xf9"
6040 "\xeb\x5c\xeb\x61\x60\x5a\xe5\x28",
6041 .ksize = 1088,
6042 .plaintext = "",
6043 .psize = 0,
6044 .digest = "\x00\x00\x00\x00\x00\x00\x00\x00"
6045 "\x00\x00\x00\x00\x00\x00\x00\x00",
6046 }, {
6047 .key = "\x29\x21\x43\xcb\xcb\x13\x07\xde"
6048 "\xbf\x48\xdf\x8a\x7f\xa2\x84\xde"
6049 "\x72\x23\x9d\xf5\xf0\x07\xf2\x4c"
6050 "\x20\x3a\x93\xb9\xcd\x5d\xfe\xcb"
6051 "\x99\x2c\x2b\x58\xc6\x50\x5f\x94"
6052 "\x56\xc3\x7c\x0d\x02\x3f\xb8\x5e"
6053 "\x7b\xc0\x6c\x51\x34\x76\xc0\x0e"
6054 "\xc6\x22\xc8\x9e\x92\xa0\x21\xc9"
6055 "\x85\x5c\x7c\xf8\xe2\x64\x47\xc9"
6056 "\xe4\xa2\x57\x93\xf8\xa2\x69\xcd"
6057 "\x62\x98\x99\xf4\xd7\x7b\x14\xb1"
6058 "\xd8\x05\xff\x04\x15\xc9\xe1\x6e"
6059 "\x9b\xe6\x50\x6b\x0b\x3f\x22\x1f"
6060 "\x08\xde\x0c\x5b\x08\x7e\xc6\x2f"
6061 "\x6c\xed\xd6\xb2\x15\xa4\xb3\xf9"
6062 "\xa7\x46\x38\x2a\xea\x69\xa5\xde"
6063 "\x02\xc3\x96\x89\x4d\x55\x3b\xed"
6064 "\x3d\x3a\x85\x77\xbf\x97\x45\x5c"
6065 "\x9e\x02\x69\xe2\x1b\x68\xbe\x96"
6066 "\xfb\x64\x6f\x0f\xf6\x06\x40\x67"
6067 "\xfa\x04\xe3\x55\xfa\xbe\xa4\x60"
6068 "\xef\x21\x66\x97\xe6\x9d\x5c\x1f"
6069 "\x62\x37\xaa\x31\xde\xe4\x9c\x28"
6070 "\x95\xe0\x22\x86\xf4\x4d\xf3\x07"
6071 "\xfd\x5f\x3a\x54\x2c\x51\x80\x71"
6072 "\xba\x78\x69\x5b\x65\xab\x1f\x81"
6073 "\xed\x3b\xff\x34\xa3\xfb\xbc\x73"
6074 "\x66\x7d\x13\x7f\xdf\x6e\xe2\xe2"
6075 "\xeb\x4f\x6c\xda\x7d\x33\x57\xd0"
6076 "\xd3\x7c\x95\x4f\x33\x58\x21\xc7"
6077 "\xc0\xe5\x6f\x42\x26\xc6\x1f\x5e"
6078 "\x85\x1b\x98\x9a\xa2\x1e\x55\x77"
6079 "\x23\xdf\x81\x5e\x79\x55\x05\xfc"
6080 "\xfb\xda\xee\xba\x5a\xba\xf7\x77"
6081 "\x7f\x0e\xd3\xe1\x37\xfe\x8d\x2b"
6082 "\xd5\x3f\xfb\xd0\xc0\x3c\x0b\x3f"
6083 "\xcf\x3c\x14\xcf\xfb\x46\x72\x4c"
6084 "\x1f\x39\xe2\xda\x03\x71\x6d\x23"
6085 "\xef\x93\xcd\x39\xd9\x37\x80\x4d"
6086 "\x65\x61\xd1\x2c\x03\xa9\x47\x72"
6087 "\x4d\x1e\x0e\x16\x33\x0f\x21\x17"
6088 "\xec\x92\xea\x6f\x37\x22\xa4\xd8"
6089 "\x03\x33\x9e\xd8\x03\x69\x9a\xe8"
6090 "\xb2\x57\xaf\x78\x99\x05\x12\xab"
6091 "\x48\x90\x80\xf0\x12\x9b\x20\x64"
6092 "\x7a\x1d\x47\x5f\xba\x3c\xf9\xc3"
6093 "\x0a\x0d\x8d\xa1\xf9\x1b\x82\x13"
6094 "\x3e\x0d\xec\x0a\x83\xc0\x65\xe1"
6095 "\xe9\x95\xff\x97\xd6\xf2\xe4\xd5"
6096 "\x86\xc0\x1f\x29\x27\x63\xd7\xde"
6097 "\xb7\x0a\x07\x99\x04\x2d\xa3\x89"
6098 "\xa2\x43\xcf\xf3\xe1\x43\xac\x4a"
6099 "\x06\x97\xd0\x05\x4f\x87\xfa\xf9"
6100 "\x9b\xbf\x52\x70\xbd\xbc\x6c\xf3"
6101 "\x03\x13\x60\x41\x28\x09\xec\xcc"
6102 "\xb1\x1a\xec\xd6\xfb\x6f\x2a\x89"
6103 "\x5d\x0b\x53\x9c\x59\xc1\x84\x21"
6104 "\x33\x51\x47\x19\x31\x9c\xd4\x0a"
6105 "\x4d\x04\xec\x50\x90\x61\xbd\xbc"
6106 "\x7e\xc8\xd9\x6c\x98\x1d\x45\x41"
6107 "\x17\x5e\x97\x1c\xc5\xa8\xe8\xea"
6108 "\x46\x58\x53\xf7\x17\xd5\xad\x11"
6109 "\xc8\x54\xf5\x7a\x33\x90\xf5\x19"
6110 "\xba\x36\xb4\xfc\x52\xa5\x72\x3d"
6111 "\x14\xbb\x55\xa7\xe9\xe3\x12\xf7"
6112 "\x1c\x30\xa2\x82\x03\xbf\x53\x91"
6113 "\x2e\x60\x41\x9f\x5b\x69\x39\xf6"
6114 "\x4d\xc8\xf8\x46\x7a\x7f\xa4\x98"
6115 "\x36\xff\x06\xcb\xca\xe7\x33\xf2"
6116 "\xc0\x4a\xf4\x3c\x14\x44\x5f\x6b"
6117 "\x75\xef\x02\x36\x75\x08\x14\xfd"
6118 "\x10\x8e\xa5\x58\xd0\x30\x46\x49"
6119 "\xaf\x3a\xf8\x40\x3d\x35\xdb\x84"
6120 "\x11\x2e\x97\x6a\xb7\x87\x7f\xad"
6121 "\xf1\xfa\xa5\x63\x60\xd8\x5e\xbf"
6122 "\x41\x78\x49\xcf\x77\xbb\x56\xbb"
6123 "\x7d\x01\x67\x05\x22\xc8\x8f\x41"
6124 "\xba\x81\xd2\xca\x2c\x38\xac\x76"
6125 "\x06\xc1\x1a\xc2\xce\xac\x90\x67"
6126 "\x57\x3e\x20\x12\x5b\xd9\x97\x58"
6127 "\x65\x05\xb7\x04\x61\x7e\xd8\x3a"
6128 "\xbf\x55\x3b\x13\xe9\x34\x5a\x37"
6129 "\x36\xcb\x94\x45\xc5\x32\xb3\xa0"
6130 "\x0c\x3e\x49\xc5\xd3\xed\xa7\xf0"
6131 "\x1c\x69\xcc\xea\xcc\x83\xc9\x16"
6132 "\x95\x72\x4b\xf4\x89\xd5\xb9\x10"
6133 "\xf6\x2d\x60\x15\xea\x3c\x06\x66"
6134 "\x9f\x82\xad\x17\xce\xd2\xa4\x48"
6135 "\x7c\x65\xd9\xf8\x02\x4d\x9b\x4c"
6136 "\x89\x06\x3a\x34\x85\x48\x89\x86"
6137 "\xf9\x24\xa9\x54\x72\xdb\x44\x95"
6138 "\xc7\x44\x1c\x19\x11\x4c\x04\xdc"
6139 "\x13\xb9\x67\xc8\xc3\x3a\x6a\x50"
6140 "\xfa\xd1\xfb\xe1\x88\xb6\xf1\xa3"
6141 "\xc5\x3b\xdc\x38\x45\x16\x26\x02"
6142 "\x3b\xb8\x8f\x8b\x58\x7d\x23\x04"
6143 "\x50\x6b\x81\x9f\xae\x66\xac\x6f"
6144 "\xcf\x2a\x9d\xf1\xfd\x1d\x57\x07"
6145 "\xbe\x58\xeb\x77\x0c\xe3\xc2\x19"
6146 "\x14\x74\x1b\x51\x1c\x4f\x41\xf3"
6147 "\x32\x89\xb3\xe7\xde\x62\xf6\x5f"
6148 "\xc7\x6a\x4a\x2a\x5b\x0f\x5f\x87"
6149 "\x9c\x08\xb9\x02\x88\xc8\x29\xb7"
6150 "\x94\x52\xfa\x52\xfe\xaa\x50\x10"
6151 "\xba\x48\x75\x5e\x11\x1b\xe6\x39"
6152 "\xd7\x82\x2c\x87\xf1\x1e\xa4\x38"
6153 "\x72\x3e\x51\xe7\xd8\x3e\x5b\x7b"
6154 "\x31\x16\x89\xba\xd6\xad\x18\x5e"
6155 "\xba\xf8\x12\xb3\xf4\x6c\x47\x30"
6156 "\xc0\x38\x58\xb3\x10\x8d\x58\x5d"
6157 "\xb4\xfb\x19\x7e\x41\xc3\x66\xb8"
6158 "\xd6\x72\x84\xe1\x1a\xc2\x71\x4c"
6159 "\x0d\x4a\x21\x7a\xab\xa2\xc0\x36"
6160 "\x15\xc5\xe9\x46\xd7\x29\x17\x76"
6161 "\x5e\x47\x36\x7f\x72\x05\xa7\xcc"
6162 "\x36\x63\xf9\x47\x7d\xe6\x07\x3c"
6163 "\x8b\x79\x1d\x96\x61\x8d\x90\x65"
6164 "\x7c\xf5\xeb\x4e\x6e\x09\x59\x6d"
6165 "\x62\x50\x1b\x0f\xe0\xdc\x78\xf2"
6166 "\x5b\x83\x1a\xa1\x11\x75\xfd\x18"
6167 "\xd7\xe2\x8d\x65\x14\x21\xce\xbe"
6168 "\xb5\x87\xe3\x0a\xda\x24\x0a\x64"
6169 "\xa9\x9f\x03\x8d\x46\x5d\x24\x1a"
6170 "\x8a\x0c\x42\x01\xca\xb1\x5f\x7c"
6171 "\xa5\xac\x32\x4a\xb8\x07\x91\x18"
6172 "\x6f\xb0\x71\x3c\xc9\xb1\xa8\xf8"
6173 "\x5f\x69\xa5\xa1\xca\x9e\x7a\xaa"
6174 "\xac\xe9\xc7\x47\x41\x75\x25\xc3"
6175 "\x73\xe2\x0b\xdd\x6d\x52\x71\xbe"
6176 "\xc5\xdc\xb4\xe7\x01\x26\x53\x77"
6177 "\x86\x90\x85\x68\x6b\x7b\x03\x53"
6178 "\xda\x52\x52\x51\x68\xc8\xf3\xec"
6179 "\x6c\xd5\x03\x7a\xa3\x0e\xb4\x02"
6180 "\x5f\x1a\xab\xee\xca\x67\x29\x7b"
6181 "\xbd\x96\x59\xb3\x8b\x32\x7a\x92"
6182 "\x9f\xd8\x25\x2b\xdf\xc0\x4c\xda",
6183 .ksize = 1088,
6184 .plaintext = "\xbc\xda\x81\xa8\x78\x79\x1c\xbf"
6185 "\x77\x53\xba\x4c\x30\x5b\xb8\x33",
6186 .psize = 16,
6187 .digest = "\x04\xbf\x7f\x6a\xce\x72\xea\x6a"
6188 "\x79\xdb\xb0\xc9\x60\xf6\x12\xcc",
Eric Biggers26609a22018-11-16 17:26:29 -08006189 }, {
Eric Biggers367ecc02019-02-14 10:27:48 -08006190 .key = "\x2e\x77\x1e\x2c\x63\x76\x34\x3f"
6191 "\x71\x08\x4f\x5a\xe3\x3d\x74\x56"
6192 "\xc7\x98\x46\x52\xe5\x8a\xba\x0d"
6193 "\x72\x41\x11\x15\x14\x72\x50\x8a"
6194 "\xd5\xec\x60\x09\xdd\x71\xcc\xb9"
6195 "\x59\x81\x65\x2d\x9e\x50\x18\xf3"
6196 "\x32\xf3\xf1\xe7\x01\x82\x1c\xad"
6197 "\x88\xa0\x21\x0c\x4b\x80\x5e\x62"
6198 "\xfc\x81\xec\x52\xaa\xe4\xa5\x86"
6199 "\xc2\xe6\x03\x11\xdc\x66\x09\x86"
6200 "\x3c\x3b\xf0\x59\x0f\xb3\xf7\x44"
6201 "\x24\xb7\x88\xc5\xfc\xc8\x77\x9f"
6202 "\x8c\x44\xc4\x11\x55\xce\x7a\xa3"
6203 "\xe0\xa2\xb8\xbf\xb5\x3d\x07\x2c"
6204 "\x32\xb6\x6c\xfc\xb4\x42\x95\x95"
6205 "\x98\x32\x81\xc4\xe7\xe2\xd9\x6a"
6206 "\x87\xf4\xf4\x1e\x74\x7c\xb5\xcd"
6207 "\x51\x45\x68\x38\x51\xdb\x30\x74"
6208 "\x11\xe0\xaa\xae\x19\x8f\x15\x55"
6209 "\xdd\x47\x4a\x35\xb9\x0c\xb4\x4e"
6210 "\xa9\xce\x2f\xfa\x8f\xc1\x8a\x5e"
6211 "\x5b\xec\xa5\x81\x3b\xb3\x43\x06"
6212 "\x24\x81\xf4\x24\xe2\x21\xfa\xcb"
6213 "\x49\xa8\xf8\xbd\x31\x4a\x5b\x2d"
6214 "\x64\x0a\x07\xf0\x80\xc9\x0d\x81"
6215 "\x14\x58\x54\x2b\xba\x22\x31\xba"
6216 "\xef\x66\xc9\x49\x69\x69\x83\x0d"
6217 "\xf2\xf9\x80\x9d\x30\x36\xfb\xe3"
6218 "\xc0\x72\x2b\xcc\x5a\x81\x2c\x5d"
6219 "\x3b\x5e\xf8\x2b\xd3\x14\x28\x73"
6220 "\xf9\x1c\x70\xe6\xd8\xbb\xac\x30"
6221 "\xf9\xd9\xa0\xe2\x33\x7c\x33\x34"
6222 "\xa5\x6a\x77\x6d\xd5\xaf\xf4\xf3"
6223 "\xc7\xb3\x0e\x83\x3d\xcb\x01\xcc"
6224 "\x81\xc0\xf9\x4a\xae\x36\x92\xf7"
6225 "\x69\x7b\x65\x01\xc3\xc8\xb8\xae"
6226 "\x16\xd8\x30\xbb\xba\x6d\x78\x6e"
6227 "\x0d\xf0\x7d\x84\xb7\x87\xda\x28"
6228 "\x7a\x18\x10\x0b\x29\xec\x29\xf3"
6229 "\xb0\x7b\xa1\x28\xbf\xbc\x2b\x2c"
6230 "\x92\x2c\x16\xfb\x02\x39\xf9\xa6"
6231 "\xa2\x15\x05\xa6\x72\x10\xbc\x62"
6232 "\x4a\x6e\xb8\xb5\x5d\x59\xae\x3c"
6233 "\x32\xd3\x68\xd7\x8e\x5a\xcd\x1b"
6234 "\xef\xf6\xa7\x5e\x10\x51\x15\x4b"
6235 "\x2c\xe3\xba\x70\x4f\x2c\xa0\x1c"
6236 "\x7b\x97\xd7\xb2\xa5\x05\x17\xcc"
6237 "\xf7\x3a\x29\x6f\xd5\x4b\xb8\x24"
6238 "\xf4\x65\x95\x12\xc0\x86\xd1\x64"
6239 "\x81\xdf\x46\x55\x0d\x22\x06\x77"
6240 "\xd8\xca\x8d\xc8\x87\xc3\xfa\xb9"
6241 "\xe1\x98\x94\xe6\x7b\xed\x65\x66"
6242 "\x0e\xc7\x25\x15\xee\x4a\xe6\x7e"
6243 "\xea\x1b\x58\xee\x96\xa0\x75\x9a"
6244 "\xa3\x00\x9e\x42\xc2\x26\x20\x8c"
6245 "\x3d\x22\x1f\x94\x3e\x74\x43\x72"
6246 "\xe9\x1d\xa6\xa1\x6c\xa7\xb8\x03"
6247 "\xdf\xb9\x7a\xaf\xe9\xe9\x3b\xfe"
6248 "\xdf\x91\xc1\x01\xa8\xba\x5d\x29"
6249 "\xa5\xe0\x98\x9b\x13\xe5\x13\x11"
6250 "\x7c\x04\x3a\xe8\x44\x7e\x78\xfc"
6251 "\xd6\x96\xa8\xbc\x7d\xc1\x89\x3d"
6252 "\x75\x64\xa9\x0e\x86\x33\xfb\x73"
6253 "\xf7\x15\xbc\x2c\x9a\x3f\x29\xce"
6254 "\x1c\x9d\x10\x4e\x85\xe1\x77\x41"
6255 "\x01\xe2\xbc\x88\xec\x81\xef\xc2"
6256 "\x6a\xed\x4f\xf7\xdf\xac\x10\x71"
6257 "\x94\xed\x71\xa4\x01\xd4\xd6\xbe"
6258 "\xfe\x3e\xc3\x92\x6a\xf2\x2b\xb5"
6259 "\xab\x15\x96\xb7\x88\x2c\xc2\xe1"
6260 "\xb0\x04\x22\xe7\x3d\xa9\xc9\x7d"
6261 "\x2c\x7c\x21\xff\x97\x86\x6b\x0c"
6262 "\x2b\x5b\xe0\xb6\x48\x74\x8f\x24"
6263 "\xef\x8e\xdd\x0f\x2a\x5f\xff\x33"
6264 "\xf4\x8e\xc5\xeb\x9c\xd7\x2a\x45"
6265 "\xf3\x50\xf1\xc0\x91\x8f\xc7\xf9"
6266 "\x97\xc1\x3c\x9c\xf4\xed\x8a\x23"
6267 "\x61\x5b\x40\x1a\x09\xee\x23\xa8"
6268 "\x7c\x7a\x96\xe1\x31\x55\x3d\x12"
6269 "\x04\x1f\x21\x78\x72\xf0\x0f\xa5"
6270 "\x80\x58\x7c\x2f\x37\xb5\x67\x24"
6271 "\x2f\xce\xf9\xf6\x86\x9f\xb3\x34"
6272 "\x0c\xfe\x0a\xaf\x27\xe6\x5e\x0a"
6273 "\x21\x44\x68\xe1\x5d\x84\x25\xae"
6274 "\x2c\x5a\x94\x66\x9a\x3f\x0e\x5a"
6275 "\xd0\x60\x2a\xd5\x3a\x4e\x2f\x40"
6276 "\x87\xe9\x27\x3e\xee\x92\xe1\x07"
6277 "\x22\x43\x52\xed\x67\x49\x13\xdd"
6278 "\x68\xd7\x54\xc2\x76\x72\x7e\x75"
6279 "\xaf\x24\x98\x5c\xe8\x22\xaa\x35"
6280 "\x0f\x9a\x1c\x4c\x0b\x43\x68\x99"
6281 "\x45\xdd\xbf\x82\xa5\x6f\x0a\xef"
6282 "\x44\x90\x85\xe7\x57\x23\x22\x41"
6283 "\x2e\xda\x24\x28\x65\x7f\x96\x85"
6284 "\x9f\x4b\x0d\x43\xb9\xa8\xbd\x84"
6285 "\xad\x0b\x09\xcc\x2c\x4a\x0c\xec"
6286 "\x71\x58\xba\xf1\xfc\x49\x4c\xca"
6287 "\x5c\x5d\xb2\x77\x0c\x99\xae\x1c"
6288 "\xce\x70\x05\x5b\x73\x6b\x7c\x28"
6289 "\x3b\xeb\x21\x3f\xa3\x71\xe1\x6a"
6290 "\xf4\x87\xd0\xbf\x73\xaa\x0b\x0b"
6291 "\xed\x70\xb3\xd4\xa3\xca\x76\x3a"
6292 "\xdb\xfa\xd8\x08\x95\xec\xac\x59"
6293 "\xd0\x79\x90\xc2\x33\x7b\xcc\x28"
6294 "\x65\xb6\x5f\x92\xc4\xac\x23\x40"
6295 "\xd1\x20\x44\x1f\xd7\x29\xab\x46"
6296 "\x79\x32\xc6\x8f\x79\xe5\xaa\x2c"
6297 "\xa6\x76\x70\x3a\x9e\x46\x3f\x8c"
6298 "\x1a\x89\x32\x28\x61\x5c\xcf\x93"
6299 "\x1e\xde\x9e\x98\xbe\x06\x30\x23"
6300 "\xc4\x8b\xda\x1c\xd1\x67\x46\x93"
6301 "\x9d\x41\xa2\x8c\x03\x22\xbd\x55"
6302 "\x7e\x91\x51\x13\xdc\xcf\x5c\x1e"
6303 "\xcb\x5d\xfb\x14\x16\x1a\x44\x56"
6304 "\x27\x77\xfd\xed\x7d\xbd\xd1\x49"
6305 "\x7f\x0d\xc3\x59\x48\x6b\x3c\x02"
6306 "\x6b\xb5\xd0\x83\xd5\x81\x29\xe7"
6307 "\xe0\xc9\x36\x23\x8d\x41\x33\x77"
6308 "\xff\x5f\x54\xde\x4d\x3f\xd2\x4e"
6309 "\xb6\x4d\xdd\x85\xf8\x9b\x20\x7d"
6310 "\x39\x27\x68\x63\xd3\x8e\x61\x39"
6311 "\xfa\xe1\xc3\x04\x74\x27\x5a\x34"
6312 "\x7f\xec\x59\x2d\xc5\x6e\x54\x23"
6313 "\xf5\x7b\x4b\xbe\x58\x2b\xf2\x81"
6314 "\x93\x63\xcc\x13\xd9\x90\xbb\x6a"
6315 "\x41\x03\x8d\x95\xeb\xbb\x5d\x06"
6316 "\x38\x4c\x0e\xd6\xa9\x5b\x84\x97"
6317 "\x3e\x64\x72\xe9\x96\x07\x0f\x73"
6318 "\x6e\xc6\x3b\x32\xbe\xac\x13\x14"
6319 "\xd0\x0a\x17\x5f\xb9\x9c\x3e\x34"
6320 "\xd9\xec\xd6\x8f\x89\xbf\x1e\xd3"
6321 "\xda\x80\xb2\x29\xff\x28\x96\xb3"
6322 "\x46\x50\x5b\x15\x80\x97\xee\x1f"
6323 "\x6c\xd8\xe8\xe0\xbd\x09\xe7\x20"
6324 "\x8c\x23\x8e\xd9\xbb\x92\xfa\x82"
6325 "\xaa\x0f\xb5\xf8\x78\x60\x11\xf0",
6326 .ksize = 1088,
6327 .plaintext = "\x0b\xb2\x31\x2d\xad\xfe\xce\xf9"
6328 "\xec\x5d\x3d\x64\x5f\x3f\x75\x43"
6329 "\x05\x5b\x97",
6330 .psize = 19,
6331 .digest = "\x5f\x02\xae\x65\x6c\x13\x21\x67"
6332 "\x77\x9e\xc4\x43\x58\x68\xde\x8f",
6333 }, {
Eric Biggers26609a22018-11-16 17:26:29 -08006334 .key = "\x65\x4d\xe3\xf8\xd2\x4c\xac\x28"
6335 "\x68\xf5\xb3\x81\x71\x4b\xa1\xfa"
6336 "\x04\x0e\xd3\x81\x36\xbe\x0c\x81"
6337 "\x5e\xaf\xbc\x3a\xa4\xc0\x8e\x8b"
6338 "\x55\x63\xd3\x52\x97\x88\xd6\x19"
6339 "\xbc\x96\xdf\x49\xff\x04\x63\xf5"
6340 "\x0c\x11\x13\xaa\x9e\x1f\x5a\xf7"
6341 "\xdd\xbd\x37\x80\xc3\xd0\xbe\xa7"
6342 "\x05\xc8\x3c\x98\x1e\x05\x3c\x84"
6343 "\x39\x61\xc4\xed\xed\x71\x1b\xc4"
6344 "\x74\x45\x2c\xa1\x56\x70\x97\xfd"
6345 "\x44\x18\x07\x7d\xca\x60\x1f\x73"
6346 "\x3b\x6d\x21\xcb\x61\x87\x70\x25"
6347 "\x46\x21\xf1\x1f\x21\x91\x31\x2d"
6348 "\x5d\xcc\xb7\xd1\x84\x3e\x3d\xdb"
6349 "\x03\x53\x2a\x82\xa6\x9a\x95\xbc"
6350 "\x1a\x1e\x0a\x5e\x07\x43\xab\x43"
6351 "\xaf\x92\x82\x06\x91\x04\x09\xf4"
6352 "\x17\x0a\x9a\x2c\x54\xdb\xb8\xf4"
6353 "\xd0\xf0\x10\x66\x24\x8d\xcd\xda"
6354 "\xfe\x0e\x45\x9d\x6f\xc4\x4e\xf4"
6355 "\x96\xaf\x13\xdc\xa9\xd4\x8c\xc4"
6356 "\xc8\x57\x39\x3c\xc2\xd3\x0a\x76"
6357 "\x4a\x1f\x75\x83\x44\xc7\xd1\x39"
6358 "\xd8\xb5\x41\xba\x73\x87\xfa\x96"
6359 "\xc7\x18\x53\xfb\x9b\xda\xa0\x97"
6360 "\x1d\xee\x60\x85\x9e\x14\xc3\xce"
6361 "\xc4\x05\x29\x3b\x95\x30\xa3\xd1"
6362 "\x9f\x82\x6a\x04\xf5\xa7\x75\x57"
6363 "\x82\x04\xfe\x71\x51\x71\xb1\x49"
6364 "\x50\xf8\xe0\x96\xf1\xfa\xa8\x88"
6365 "\x3f\xa0\x86\x20\xd4\x60\x79\x59"
6366 "\x17\x2d\xd1\x09\xf4\xec\x05\x57"
6367 "\xcf\x62\x7e\x0e\x7e\x60\x78\xe6"
6368 "\x08\x60\x29\xd8\xd5\x08\x1a\x24"
6369 "\xc4\x6c\x24\xe7\x92\x08\x3d\x8a"
6370 "\x98\x7a\xcf\x99\x0a\x65\x0e\xdc"
6371 "\x8c\x8a\xbe\x92\x82\x91\xcc\x62"
6372 "\x30\xb6\xf4\x3f\xc6\x8a\x7f\x12"
6373 "\x4a\x8a\x49\xfa\x3f\x5c\xd4\x5a"
6374 "\xa6\x82\xa3\xe6\xaa\x34\x76\xb2"
6375 "\xab\x0a\x30\xef\x6c\x77\x58\x3f"
6376 "\x05\x6b\xcc\x5c\xae\xdc\xd7\xb9"
6377 "\x51\x7e\x8d\x32\x5b\x24\x25\xbe"
6378 "\x2b\x24\x01\xcf\x80\xda\x16\xd8"
6379 "\x90\x72\x2c\xad\x34\x8d\x0c\x74"
6380 "\x02\xcb\xfd\xcf\x6e\xef\x97\xb5"
6381 "\x4c\xf2\x68\xca\xde\x43\x9e\x8a"
6382 "\xc5\x5f\x31\x7f\x14\x71\x38\xec"
6383 "\xbd\x98\xe5\x71\xc4\xb5\xdb\xef"
6384 "\x59\xd2\xca\xc0\xc1\x86\x75\x01"
6385 "\xd4\x15\x0d\x6f\xa4\xf7\x7b\x37"
6386 "\x47\xda\x18\x93\x63\xda\xbe\x9e"
6387 "\x07\xfb\xb2\x83\xd5\xc4\x34\x55"
6388 "\xee\x73\xa1\x42\x96\xf9\x66\x41"
6389 "\xa4\xcc\xd2\x93\x6e\xe1\x0a\xbb"
6390 "\xd2\xdd\x18\x23\xe6\x6b\x98\x0b"
6391 "\x8a\x83\x59\x2c\xc3\xa6\x59\x5b"
6392 "\x01\x22\x59\xf7\xdc\xb0\x87\x7e"
6393 "\xdb\x7d\xf4\x71\x41\xab\xbd\xee"
6394 "\x79\xbe\x3c\x01\x76\x0b\x2d\x0a"
6395 "\x42\xc9\x77\x8c\xbb\x54\x95\x60"
6396 "\x43\x2e\xe0\x17\x52\xbd\x90\xc9"
6397 "\xc2\x2c\xdd\x90\x24\x22\x76\x40"
6398 "\x5c\xb9\x41\xc9\xa1\xd5\xbd\xe3"
6399 "\x44\xe0\xa4\xab\xcc\xb8\xe2\x32"
6400 "\x02\x15\x04\x1f\x8c\xec\x5d\x14"
6401 "\xac\x18\xaa\xef\x6e\x33\x19\x6e"
6402 "\xde\xfe\x19\xdb\xeb\x61\xca\x18"
6403 "\xad\xd8\x3d\xbf\x09\x11\xc7\xa5"
6404 "\x86\x0b\x0f\xe5\x3e\xde\xe8\xd9"
6405 "\x0a\x69\x9e\x4c\x20\xff\xf9\xc5"
6406 "\xfa\xf8\xf3\x7f\xa5\x01\x4b\x5e"
6407 "\x0f\xf0\x3b\x68\xf0\x46\x8c\x2a"
6408 "\x7a\xc1\x8f\xa0\xfe\x6a\x5b\x44"
6409 "\x70\x5c\xcc\x92\x2c\x6f\x0f\xbd"
6410 "\x25\x3e\xb7\x8e\x73\x58\xda\xc9"
6411 "\xa5\xaa\x9e\xf3\x9b\xfd\x37\x3e"
6412 "\xe2\x88\xa4\x7b\xc8\x5c\xa8\x93"
6413 "\x0e\xe7\x9a\x9c\x2e\x95\x18\x9f"
6414 "\xc8\x45\x0c\x88\x9e\x53\x4f\x3a"
6415 "\x76\xc1\x35\xfa\x17\xd8\xac\xa0"
6416 "\x0c\x2d\x47\x2e\x4f\x69\x9b\xf7"
6417 "\xd0\xb6\x96\x0c\x19\xb3\x08\x01"
6418 "\x65\x7a\x1f\xc7\x31\x86\xdb\xc8"
6419 "\xc1\x99\x8f\xf8\x08\x4a\x9d\x23"
6420 "\x22\xa8\xcf\x27\x01\x01\x88\x93"
6421 "\x9c\x86\x45\xbd\xe0\x51\xca\x52"
6422 "\x84\xba\xfe\x03\xf7\xda\xc5\xce"
6423 "\x3e\x77\x75\x86\xaf\x84\xc8\x05"
6424 "\x44\x01\x0f\x02\xf3\x58\xb0\x06"
6425 "\x5a\xd7\x12\x30\x8d\xdf\x1f\x1f"
6426 "\x0a\xe6\xd2\xea\xf6\x3a\x7a\x99"
6427 "\x63\xe8\xd2\xc1\x4a\x45\x8b\x40"
6428 "\x4d\x0a\xa9\x76\x92\xb3\xda\x87"
6429 "\x36\x33\xf0\x78\xc3\x2f\x5f\x02"
6430 "\x1a\x6a\x2c\x32\xcd\x76\xbf\xbd"
6431 "\x5a\x26\x20\x28\x8c\x8c\xbc\x52"
6432 "\x3d\x0a\xc9\xcb\xab\xa4\x21\xb0"
6433 "\x54\x40\x81\x44\xc7\xd6\x1c\x11"
6434 "\x44\xc6\x02\x92\x14\x5a\xbf\x1a"
6435 "\x09\x8a\x18\xad\xcd\x64\x3d\x53"
6436 "\x4a\xb6\xa5\x1b\x57\x0e\xef\xe0"
6437 "\x8c\x44\x5f\x7d\xbd\x6c\xfd\x60"
6438 "\xae\x02\x24\xb6\x99\xdd\x8c\xaf"
6439 "\x59\x39\x75\x3c\xd1\x54\x7b\x86"
6440 "\xcc\x99\xd9\x28\x0c\xb0\x94\x62"
6441 "\xf9\x51\xd1\x19\x96\x2d\x66\xf5"
6442 "\x55\xcf\x9e\x59\xe2\x6b\x2c\x08"
6443 "\xc0\x54\x48\x24\x45\xc3\x8c\x73"
6444 "\xea\x27\x6e\x66\x7d\x1d\x0e\x6e"
6445 "\x13\xe8\x56\x65\x3a\xb0\x81\x5c"
6446 "\xf0\xe8\xd8\x00\x6b\xcd\x8f\xad"
6447 "\xdd\x53\xf3\xa4\x6c\x43\xd6\x31"
6448 "\xaf\xd2\x76\x1e\x91\x12\xdb\x3c"
6449 "\x8c\xc2\x81\xf0\x49\xdb\xe2\x6b"
6450 "\x76\x62\x0a\x04\xe4\xaa\x8a\x7c"
6451 "\x08\x0b\x5d\xd0\xee\x1d\xfb\xc4"
6452 "\x02\x75\x42\xd6\xba\xa7\x22\xa8"
6453 "\x47\x29\xb7\x85\x6d\x93\x3a\xdb"
6454 "\x00\x53\x0b\xa2\xeb\xf8\xfe\x01"
6455 "\x6f\x8a\x31\xd6\x17\x05\x6f\x67"
6456 "\x88\x95\x32\xfe\x4f\xa6\x4b\xf8"
6457 "\x03\xe4\xcd\x9a\x18\xe8\x4e\x2d"
6458 "\xf7\x97\x9a\x0c\x7d\x9f\x7e\x44"
6459 "\x69\x51\xe0\x32\x6b\x62\x86\x8f"
6460 "\xa6\x8e\x0b\x21\x96\xe5\xaf\x77"
6461 "\xc0\x83\xdf\xa5\x0e\xd0\xa1\x04"
6462 "\xaf\xc1\x10\xcb\x5a\x40\xe4\xe3"
6463 "\x38\x7e\x07\xe8\x4d\xfa\xed\xc5"
6464 "\xf0\x37\xdf\xbb\x8a\xcf\x3d\xdc"
6465 "\x61\xd2\xc6\x2b\xff\x07\xc9\x2f"
6466 "\x0c\x2d\x5c\x07\xa8\x35\x6a\xfc"
6467 "\xae\x09\x03\x45\x74\x51\x4d\xc4"
6468 "\xb8\x23\x87\x4a\x99\x27\x20\x87"
6469 "\x62\x44\x0a\x4a\xce\x78\x47\x22",
6470 .ksize = 1088,
6471 .plaintext = "\x8e\xb0\x4c\xde\x9c\x4a\x04\x5a"
6472 "\xf6\xa9\x7f\x45\x25\xa5\x7b\x3a"
6473 "\xbc\x4d\x73\x39\x81\xb5\xbd\x3d"
6474 "\x21\x6f\xd7\x37\x50\x3c\x7b\x28"
6475 "\xd1\x03\x3a\x17\xed\x7b\x7c\x2a"
6476 "\x16\xbc\xdf\x19\x89\x52\x71\x31"
6477 "\xb6\xc0\xfd\xb5\xd3\xba\x96\x99"
6478 "\xb6\x34\x0b\xd0\x99\x93\xfc\x1a"
6479 "\x01\x3c\x85\xc6\x9b\x78\x5c\x8b"
6480 "\xfe\xae\xd2\xbf\xb2\x6f\xf9\xed"
6481 "\xc8\x25\x17\xfe\x10\x3b\x7d\xda"
6482 "\xf4\x8d\x35\x4b\x7c\x7b\x82\xe7"
6483 "\xc2\xb3\xee\x60\x4a\x03\x86\xc9"
6484 "\x4e\xb5\xc4\xbe\xd2\xbd\x66\xf1"
6485 "\x13\xf1\x09\xab\x5d\xca\x63\x1f"
6486 "\xfc\xfb\x57\x2a\xfc\xca\x66\xd8"
6487 "\x77\x84\x38\x23\x1d\xac\xd3\xb3"
6488 "\x7a\xad\x4c\x70\xfa\x9c\xc9\x61"
6489 "\xa6\x1b\xba\x33\x4b\x4e\x33\xec"
6490 "\xa0\xa1\x64\x39\x40\x05\x1c\xc2"
6491 "\x3f\x49\x9d\xae\xf2\xc5\xf2\xc5"
6492 "\xfe\xe8\xf4\xc2\xf9\x96\x2d\x28"
6493 "\x92\x30\x44\xbc\xd2\x7f\xe1\x6e"
6494 "\x62\x02\x8f\x3d\x1c\x80\xda\x0e"
6495 "\x6a\x90\x7e\x75\xff\xec\x3e\xc4"
6496 "\xcd\x16\x34\x3b\x05\x6d\x4d\x20"
6497 "\x1c\x7b\xf5\x57\x4f\xfa\x3d\xac"
6498 "\xd0\x13\x55\xe8\xb3\xe1\x1b\x78"
6499 "\x30\xe6\x9f\x84\xd4\x69\xd1\x08"
6500 "\x12\x77\xa7\x4a\xbd\xc0\xf2\xd2"
6501 "\x78\xdd\xa3\x81\x12\xcb\x6c\x14"
6502 "\x90\x61\xe2\x84\xc6\x2b\x16\xcc"
6503 "\x40\x99\x50\x88\x01\x09\x64\x4f"
6504 "\x0a\x80\xbe\x61\xae\x46\xc9\x0a"
6505 "\x5d\xe0\xfb\x72\x7a\x1a\xdd\x61"
6506 "\x63\x20\x05\xa0\x4a\xf0\x60\x69"
6507 "\x7f\x92\xbc\xbf\x4e\x39\x4d\xdd"
6508 "\x74\xd1\xb7\xc0\x5a\x34\xb7\xae"
6509 "\x76\x65\x2e\xbc\x36\xb9\x04\x95"
6510 "\x42\xe9\x6f\xca\x78\xb3\x72\x07"
6511 "\xa3\xba\x02\x94\x67\x4c\xb1\xd7"
6512 "\xe9\x30\x0d\xf0\x3b\xb8\x10\x6d"
6513 "\xea\x2b\x21\xbf\x74\x59\x82\x97"
6514 "\x85\xaa\xf1\xd7\x54\x39\xeb\x05"
6515 "\xbd\xf3\x40\xa0\x97\xe6\x74\xfe"
6516 "\xb4\x82\x5b\xb1\x36\xcb\xe8\x0d"
6517 "\xce\x14\xd9\xdf\xf1\x94\x22\xcd"
6518 "\xd6\x00\xba\x04\x4c\x05\x0c\xc0"
6519 "\xd1\x5a\xeb\x52\xd5\xa8\x8e\xc8"
6520 "\x97\xa1\xaa\xc1\xea\xc1\xbe\x7c"
6521 "\x36\xb3\x36\xa0\xc6\x76\x66\xc5"
6522 "\xe2\xaf\xd6\x5c\xe2\xdb\x2c\xb3"
6523 "\x6c\xb9\x99\x7f\xff\x9f\x03\x24"
6524 "\xe1\x51\x44\x66\xd8\x0c\x5d\x7f"
6525 "\x5c\x85\x22\x2a\xcf\x6d\x79\x28"
6526 "\xab\x98\x01\x72\xfe\x80\x87\x5f"
6527 "\x46\xba\xef\x81\x24\xee\xbf\xb0"
6528 "\x24\x74\xa3\x65\x97\x12\xc4\xaf"
6529 "\x8b\xa0\x39\xda\x8a\x7e\x74\x6e"
6530 "\x1b\x42\xb4\x44\x37\xfc\x59\xfd"
6531 "\x86\xed\xfb\x8c\x66\x33\xda\x63"
6532 "\x75\xeb\xe1\xa4\x85\x4f\x50\x8f"
6533 "\x83\x66\x0d\xd3\x37\xfa\xe6\x9c"
6534 "\x4f\x30\x87\x35\x18\xe3\x0b\xb7"
6535 "\x6e\x64\x54\xcd\x70\xb3\xde\x54"
6536 "\xb7\x1d\xe6\x4c\x4d\x55\x12\x12"
6537 "\xaf\x5f\x7f\x5e\xee\x9d\xe8\x8e"
6538 "\x32\x9d\x4e\x75\xeb\xc6\xdd\xaa"
6539 "\x48\x82\xa4\x3f\x3c\xd7\xd3\xa8"
6540 "\x63\x9e\x64\xfe\xe3\x97\x00\x62"
6541 "\xe5\x40\x5d\xc3\xad\x72\xe1\x28"
6542 "\x18\x50\xb7\x75\xef\xcd\x23\xbf"
6543 "\x3f\xc0\x51\x36\xf8\x41\xc3\x08"
6544 "\xcb\xf1\x8d\x38\x34\xbd\x48\x45"
6545 "\x75\xed\xbc\x65\x7b\xb5\x0c\x9b"
6546 "\xd7\x67\x7d\x27\xb4\xc4\x80\xd7"
6547 "\xa9\xb9\xc7\x4a\x97\xaa\xda\xc8"
6548 "\x3c\x74\xcf\x36\x8f\xe4\x41\xe3"
6549 "\xd4\xd3\x26\xa7\xf3\x23\x9d\x8f"
6550 "\x6c\x20\x05\x32\x3e\xe0\xc3\xc8"
6551 "\x56\x3f\xa7\x09\xb7\xfb\xc7\xf7"
6552 "\xbe\x2a\xdd\x0f\x06\x7b\x0d\xdd"
6553 "\xb0\xb4\x86\x17\xfd\xb9\x04\xe5"
6554 "\xc0\x64\x5d\xad\x2a\x36\x38\xdb"
6555 "\x24\xaf\x5b\xff\xca\xf9\x41\xe8"
6556 "\xf9\x2f\x1e\x5e\xf9\xf5\xd5\xf2"
6557 "\xb2\x88\xca\xc9\xa1\x31\xe2\xe8"
6558 "\x10\x95\x65\xbf\xf1\x11\x61\x7a"
6559 "\x30\x1a\x54\x90\xea\xd2\x30\xf6"
6560 "\xa5\xad\x60\xf9\x4d\x84\x21\x1b"
6561 "\xe4\x42\x22\xc8\x12\x4b\xb0\x58"
6562 "\x3e\x9c\x2d\x32\x95\x0a\x8e\xb0"
6563 "\x0a\x7e\x77\x2f\xe8\x97\x31\x6a"
6564 "\xf5\x59\xb4\x26\xe6\x37\x12\xc9"
6565 "\xcb\xa0\x58\x33\x6f\xd5\x55\x55"
6566 "\x3c\xa1\x33\xb1\x0b\x7e\x2e\xb4"
6567 "\x43\x2a\x84\x39\xf0\x9c\xf4\x69"
6568 "\x4f\x1e\x79\xa6\x15\x1b\x87\xbb"
6569 "\xdb\x9b\xe0\xf1\x0b\xba\xe3\x6e"
6570 "\xcc\x2f\x49\x19\x22\x29\xfc\x71"
6571 "\xbb\x77\x38\x18\x61\xaf\x85\x76"
6572 "\xeb\xd1\x09\xcc\x86\x04\x20\x9a"
6573 "\x66\x53\x2f\x44\x8b\xc6\xa3\xd2"
6574 "\x5f\xc7\x79\x82\x66\xa8\x6e\x75"
6575 "\x7d\x94\xd1\x86\x75\x0f\xa5\x4f"
6576 "\x3c\x7a\x33\xce\xd1\x6e\x9d\x7b"
6577 "\x1f\x91\x37\xb8\x37\x80\xfb\xe0"
6578 "\x52\x26\xd0\x9a\xd4\x48\x02\x41"
6579 "\x05\xe3\x5a\x94\xf1\x65\x61\x19"
6580 "\xb8\x88\x4e\x2b\xea\xba\x8b\x58"
6581 "\x8b\x42\x01\x00\xa8\xfe\x00\x5c"
6582 "\xfe\x1c\xee\x31\x15\x69\xfa\xb3"
6583 "\x9b\x5f\x22\x8e\x0d\x2c\xe3\xa5"
6584 "\x21\xb9\x99\x8a\x8e\x94\x5a\xef"
6585 "\x13\x3e\x99\x96\x79\x6e\xd5\x42"
6586 "\x36\x03\xa9\xe2\xca\x65\x4e\x8a"
6587 "\x8a\x30\xd2\x7d\x74\xe7\xf0\xaa"
6588 "\x23\x26\xdd\xcb\x82\x39\xfc\x9d"
6589 "\x51\x76\x21\x80\xa2\xbe\x93\x03"
6590 "\x47\xb0\xc1\xb6\xdc\x63\xfd\x9f"
6591 "\xca\x9d\xa5\xca\x27\x85\xe2\xd8"
6592 "\x15\x5b\x7e\x14\x7a\xc4\x89\xcc"
6593 "\x74\x14\x4b\x46\xd2\xce\xac\x39"
6594 "\x6b\x6a\x5a\xa4\x0e\xe3\x7b\x15"
6595 "\x94\x4b\x0f\x74\xcb\x0c\x7f\xa9"
6596 "\xbe\x09\x39\xa3\xdd\x56\x5c\xc7"
6597 "\x99\x56\x65\x39\xf4\x0b\x7d\x87"
6598 "\xec\xaa\xe3\x4d\x22\x65\x39\x4e",
6599 .psize = 1024,
6600 .digest = "\x64\x3a\xbc\xc3\x3f\x74\x40\x51"
6601 "\x6e\x56\x01\x1a\x51\xec\x36\xde",
Eric Biggers26609a22018-11-16 17:26:29 -08006602 }, {
6603 .key = "\x1b\x82\x2e\x1b\x17\x23\xb9\x6d"
6604 "\xdc\x9c\xda\x99\x07\xe3\x5f\xd8"
6605 "\xd2\xf8\x43\x80\x8d\x86\x7d\x80"
6606 "\x1a\xd0\xcc\x13\xb9\x11\x05\x3f"
6607 "\x7e\xcf\x7e\x80\x0e\xd8\x25\x48"
6608 "\x8b\xaa\x63\x83\x92\xd0\x72\xf5"
6609 "\x4f\x67\x7e\x50\x18\x25\xa4\xd1"
6610 "\xe0\x7e\x1e\xba\xd8\xa7\x6e\xdb"
6611 "\x1a\xcc\x0d\xfe\x9f\x6d\x22\x35"
6612 "\xe1\xe6\xe0\xa8\x7b\x9c\xb1\x66"
6613 "\xa3\xf8\xff\x4d\x90\x84\x28\xbc"
6614 "\xdc\x19\xc7\x91\x49\xfc\xf6\x33"
6615 "\xc9\x6e\x65\x7f\x28\x6f\x68\x2e"
6616 "\xdf\x1a\x75\xe9\xc2\x0c\x96\xb9"
6617 "\x31\x22\xc4\x07\xc6\x0a\x2f\xfd"
6618 "\x36\x06\x5f\x5c\xc5\xb1\x3a\xf4"
6619 "\x5e\x48\xa4\x45\x2b\x88\xa7\xee"
6620 "\xa9\x8b\x52\xcc\x99\xd9\x2f\xb8"
6621 "\xa4\x58\x0a\x13\xeb\x71\x5a\xfa"
6622 "\xe5\x5e\xbe\xf2\x64\xad\x75\xbc"
6623 "\x0b\x5b\x34\x13\x3b\x23\x13\x9a"
6624 "\x69\x30\x1e\x9a\xb8\x03\xb8\x8b"
6625 "\x3e\x46\x18\x6d\x38\xd9\xb3\xd8"
6626 "\xbf\xf1\xd0\x28\xe6\x51\x57\x80"
6627 "\x5e\x99\xfb\xd0\xce\x1e\x83\xf7"
6628 "\xe9\x07\x5a\x63\xa9\xef\xce\xa5"
6629 "\xfb\x3f\x37\x17\xfc\x0b\x37\x0e"
6630 "\xbb\x4b\x21\x62\xb7\x83\x0e\xa9"
6631 "\x9e\xb0\xc4\xad\x47\xbe\x35\xe7"
6632 "\x51\xb2\xf2\xac\x2b\x65\x7b\x48"
6633 "\xe3\x3f\x5f\xb6\x09\x04\x0c\x58"
6634 "\xce\x99\xa9\x15\x2f\x4e\xc1\xf2"
6635 "\x24\x48\xc0\xd8\x6c\xd3\x76\x17"
6636 "\x83\x5d\xe6\xe3\xfd\x01\x8e\xf7"
6637 "\x42\xa5\x04\x29\x30\xdf\xf9\x00"
6638 "\x4a\xdc\x71\x22\x1a\x33\x15\xb6"
6639 "\xd7\x72\xfb\x9a\xb8\xeb\x2b\x38"
6640 "\xea\xa8\x61\xa8\x90\x11\x9d\x73"
6641 "\x2e\x6c\xce\x81\x54\x5a\x9f\xcd"
6642 "\xcf\xd5\xbd\x26\x5d\x66\xdb\xfb"
6643 "\xdc\x1e\x7c\x10\xfe\x58\x82\x10"
6644 "\x16\x24\x01\xce\x67\x55\x51\xd1"
6645 "\xdd\x6b\x44\xa3\x20\x8e\xa9\xa6"
6646 "\x06\xa8\x29\x77\x6e\x00\x38\x5b"
6647 "\xde\x4d\x58\xd8\x1f\x34\xdf\xf9"
6648 "\x2c\xac\x3e\xad\xfb\x92\x0d\x72"
6649 "\x39\xa4\xac\x44\x10\xc0\x43\xc4"
6650 "\xa4\x77\x3b\xfc\xc4\x0d\x37\xd3"
6651 "\x05\x84\xda\x53\x71\xf8\x80\xd3"
6652 "\x34\x44\xdb\x09\xb4\x2b\x8e\xe3"
6653 "\x00\x75\x50\x9e\x43\x22\x00\x0b"
6654 "\x7c\x70\xab\xd4\x41\xf1\x93\xcd"
6655 "\x25\x2d\x84\x74\xb5\xf2\x92\xcd"
6656 "\x0a\x28\xea\x9a\x49\x02\x96\xcb"
6657 "\x85\x9e\x2f\x33\x03\x86\x1d\xdc"
6658 "\x1d\x31\xd5\xfc\x9d\xaa\xc5\xe9"
6659 "\x9a\xc4\x57\xf5\x35\xed\xf4\x4b"
6660 "\x3d\x34\xc2\x29\x13\x86\x36\x42"
6661 "\x5d\xbf\x90\x86\x13\x77\xe5\xc3"
6662 "\x62\xb4\xfe\x0b\x70\x39\x35\x65"
6663 "\x02\xea\xf6\xce\x57\x0c\xbb\x74"
6664 "\x29\xe3\xfd\x60\x90\xfd\x10\x38"
6665 "\xd5\x4e\x86\xbd\x37\x70\xf0\x97"
6666 "\xa6\xab\x3b\x83\x64\x52\xca\x66"
6667 "\x2f\xf9\xa4\xca\x3a\x55\x6b\xb0"
6668 "\xe8\x3a\x34\xdb\x9e\x48\x50\x2f"
6669 "\x3b\xef\xfd\x08\x2d\x5f\xc1\x37"
6670 "\x5d\xbe\x73\xe4\xd8\xe9\xac\xca"
6671 "\x8a\xaa\x48\x7c\x5c\xf4\xa6\x96"
6672 "\x5f\xfa\x70\xa6\xb7\x8b\x50\xcb"
6673 "\xa6\xf5\xa9\xbd\x7b\x75\x4c\x22"
6674 "\x0b\x19\x40\x2e\xc9\x39\x39\x32"
6675 "\x83\x03\xa8\xa4\x98\xe6\x8e\x16"
6676 "\xb9\xde\x08\xc5\xfc\xbf\xad\x39"
6677 "\xa8\xc7\x93\x6c\x6f\x23\xaf\xc1"
6678 "\xab\xe1\xdf\xbb\x39\xae\x93\x29"
6679 "\x0e\x7d\x80\x8d\x3e\x65\xf3\xfd"
6680 "\x96\x06\x65\x90\xa1\x28\x64\x4b"
6681 "\x69\xf9\xa8\x84\x27\x50\xfc\x87"
6682 "\xf7\xbf\x55\x8e\x56\x13\x58\x7b"
6683 "\x85\xb4\x6a\x72\x0f\x40\xf1\x4f"
6684 "\x83\x81\x1f\x76\xde\x15\x64\x7a"
6685 "\x7a\x80\xe4\xc7\x5e\x63\x01\x91"
6686 "\xd7\x6b\xea\x0b\x9b\xa2\x99\x3b"
6687 "\x6c\x88\xd8\xfd\x59\x3c\x8d\x22"
6688 "\x86\x56\xbe\xab\xa1\x37\x08\x01"
6689 "\x50\x85\x69\x29\xee\x9f\xdf\x21"
6690 "\x3e\x20\x20\xf5\xb0\xbb\x6b\xd0"
6691 "\x9c\x41\x38\xec\x54\x6f\x2d\xbd"
6692 "\x0f\xe1\xbd\xf1\x2b\x6e\x60\x56"
6693 "\x29\xe5\x7a\x70\x1c\xe2\xfc\x97"
6694 "\x82\x68\x67\xd9\x3d\x1f\xfb\xd8"
6695 "\x07\x9f\xbf\x96\x74\xba\x6a\x0e"
6696 "\x10\x48\x20\xd8\x13\x1e\xb5\x44"
6697 "\xf2\xcc\xb1\x8b\xfb\xbb\xec\xd7"
6698 "\x37\x70\x1f\x7c\x55\xd2\x4b\xb9"
6699 "\xfd\x70\x5e\xa3\x91\x73\x63\x52"
6700 "\x13\x47\x5a\x06\xfb\x01\x67\xa5"
6701 "\xc0\xd0\x49\x19\x56\x66\x9a\x77"
6702 "\x64\xaf\x8c\x25\x91\x52\x87\x0e"
6703 "\x18\xf3\x5f\x97\xfd\x71\x13\xf8"
6704 "\x05\xa5\x39\xcc\x65\xd3\xcc\x63"
6705 "\x5b\xdb\x5f\x7e\x5f\x6e\xad\xc4"
6706 "\xf4\xa0\xc5\xc2\x2b\x4d\x97\x38"
6707 "\x4f\xbc\xfa\x33\x17\xb4\x47\xb9"
6708 "\x43\x24\x15\x8d\xd2\xed\x80\x68"
6709 "\x84\xdb\x04\x80\xca\x5e\x6a\x35"
6710 "\x2c\x2c\xe7\xc5\x03\x5f\x54\xb0"
6711 "\x5e\x4f\x1d\x40\x54\x3d\x78\x9a"
6712 "\xac\xda\x80\x27\x4d\x15\x4c\x1a"
6713 "\x6e\x80\xc9\xc4\x3b\x84\x0e\xd9"
6714 "\x2e\x93\x01\x8c\xc3\xc8\x91\x4b"
6715 "\xb3\xaa\x07\x04\x68\x5b\x93\xa5"
6716 "\xe7\xc4\x9d\xe7\x07\xee\xf5\x3b"
6717 "\x40\x89\xcc\x60\x34\x9d\xb4\x06"
6718 "\x1b\xef\x92\xe6\xc1\x2a\x7d\x0f"
6719 "\x81\xaa\x56\xe3\xd7\xed\xa7\xd4"
6720 "\xa7\x3a\x49\xc4\xad\x81\x5c\x83"
6721 "\x55\x8e\x91\x54\xb7\x7d\x65\xa5"
6722 "\x06\x16\xd5\x9a\x16\xc1\xb0\xa2"
6723 "\x06\xd8\x98\x47\x73\x7e\x73\xa0"
6724 "\xb8\x23\xb1\x52\xbf\x68\x74\x5d"
6725 "\x0b\xcb\xfa\x8c\x46\xe3\x24\xe6"
6726 "\xab\xd4\x69\x8d\x8c\xf2\x8a\x59"
6727 "\xbe\x48\x46\x50\x8c\x9a\xe8\xe3"
6728 "\x31\x55\x0a\x06\xed\x4f\xf8\xb7"
6729 "\x4f\xe3\x85\x17\x30\xbd\xd5\x20"
6730 "\xe7\x5b\xb2\x32\xcf\x6b\x16\x44"
6731 "\xd2\xf5\x7e\xd7\xd1\x2f\xee\x64"
6732 "\x3e\x9d\x10\xef\x27\x35\x43\x64"
6733 "\x67\xfb\x7a\x7b\xe0\x62\x31\x9a"
6734 "\x4d\xdf\xa5\xab\xc0\x20\xbb\x01"
6735 "\xe9\x7b\x54\xf1\xde\xb2\x79\x50"
6736 "\x6c\x4b\x91\xdb\x7f\xbb\x50\xc1"
6737 "\x55\x44\x38\x9a\xe0\x9f\xe8\x29"
6738 "\x6f\x15\xf8\x4e\xa6\xec\xa0\x60",
6739 .ksize = 1088,
6740 .plaintext = "\x15\x68\x9e\x2f\xad\x15\x52\xdf"
6741 "\xf0\x42\x62\x24\x2a\x2d\xea\xbf"
6742 "\xc7\xf3\xb4\x1a\xf5\xed\xb2\x08"
6743 "\x15\x60\x1c\x00\x77\xbf\x0b\x0e"
6744 "\xb7\x2c\xcf\x32\x3a\xc7\x01\x77"
6745 "\xef\xa6\x75\xd0\x29\xc7\x68\x20"
6746 "\xb2\x92\x25\xbf\x12\x34\xe9\xa4"
6747 "\xfd\x32\x7b\x3f\x7c\xbd\xa5\x02"
6748 "\x38\x41\xde\xc9\xc1\x09\xd9\xfc"
6749 "\x6e\x78\x22\x83\x18\xf7\x50\x8d"
6750 "\x8f\x9c\x2d\x02\xa5\x30\xac\xff"
6751 "\xea\x63\x2e\x80\x37\x83\xb0\x58"
6752 "\xda\x2f\xef\x21\x55\xba\x7b\xb1"
6753 "\xb6\xed\xf5\xd2\x4d\xaa\x8c\xa9"
6754 "\xdd\xdb\x0f\xb4\xce\xc1\x9a\xb1"
6755 "\xc1\xdc\xbd\xab\x86\xc2\xdf\x0b"
6756 "\xe1\x2c\xf9\xbe\xf6\xd8\xda\x62"
6757 "\x72\xdd\x98\x09\x52\xc0\xc4\xb6"
6758 "\x7b\x17\x5c\xf5\xd8\x4b\x88\xd6"
6759 "\x6b\xbf\x84\x4a\x3f\xf5\x4d\xd2"
6760 "\x94\xe2\x9c\xff\xc7\x3c\xd9\xc8"
6761 "\x37\x38\xbc\x8c\xf3\xe7\xb7\xd0"
6762 "\x1d\x78\xc4\x39\x07\xc8\x5e\x79"
6763 "\xb6\x5a\x90\x5b\x6e\x97\xc9\xd4"
6764 "\x82\x9c\xf3\x83\x7a\xe7\x97\xfc"
6765 "\x1d\xbb\xef\xdb\xce\xe0\x82\xad"
6766 "\xca\x07\x6c\x54\x62\x6f\x81\xe6"
6767 "\x7a\x5a\x96\x6e\x80\x3a\xa2\x37"
6768 "\x6f\xc6\xa4\x29\xc3\x9e\x19\x94"
6769 "\x9f\xb0\x3e\x38\xfb\x3c\x2b\x7d"
6770 "\xaa\xb8\x74\xda\x54\x23\x51\x12"
6771 "\x4b\x96\x36\x8f\x91\x4f\x19\x37"
6772 "\x83\xc9\xdd\xc7\x1a\x32\x2d\xab"
6773 "\xc7\x89\xe2\x07\x47\x6c\xe8\xa6"
6774 "\x70\x6b\x8e\x0c\xda\x5c\x6a\x59"
6775 "\x27\x33\x0e\xe1\xe1\x20\xe8\xc8"
6776 "\xae\xdc\xd0\xe3\x6d\xa8\xa6\x06"
6777 "\x41\xb4\xd4\xd4\xcf\x91\x3e\x06"
6778 "\xb0\x9a\xf7\xf1\xaa\xa6\x23\x92"
6779 "\x10\x86\xf0\x94\xd1\x7c\x2e\x07"
6780 "\x30\xfb\xc5\xd8\xf3\x12\xa9\xe8"
6781 "\x22\x1c\x97\x1a\xad\x96\xb0\xa1"
6782 "\x72\x6a\x6b\xb4\xfd\xf7\xe8\xfa"
6783 "\xe2\x74\xd8\x65\x8d\x35\x17\x4b"
6784 "\x00\x23\x5c\x8c\x70\xad\x71\xa2"
6785 "\xca\xc5\x6c\x59\xbf\xb4\xc0\x6d"
6786 "\x86\x98\x3e\x19\x5a\x90\x92\xb1"
6787 "\x66\x57\x6a\x91\x68\x7c\xbc\xf3"
6788 "\xf1\xdb\x94\xf8\x48\xf1\x36\xd8"
6789 "\x78\xac\x1c\xa9\xcc\xd6\x27\xba"
6790 "\x91\x54\x22\xf5\xe6\x05\x3f\xcc"
6791 "\xc2\x8f\x2c\x3b\x2b\xc3\x2b\x2b"
6792 "\x3b\xb8\xb6\x29\xb7\x2f\x94\xb6"
6793 "\x7b\xfc\x94\x3e\xd0\x7a\x41\x59"
6794 "\x7b\x1f\x9a\x09\xa6\xed\x4a\x82"
6795 "\x9d\x34\x1c\xbd\x4e\x1c\x3a\x66"
6796 "\x80\x74\x0e\x9a\x4f\x55\x54\x47"
6797 "\x16\xba\x2a\x0a\x03\x35\x99\xa3"
6798 "\x5c\x63\x8d\xa2\x72\x8b\x17\x15"
6799 "\x68\x39\x73\xeb\xec\xf2\xe8\xf5"
6800 "\x95\x32\x27\xd6\xc4\xfe\xb0\x51"
6801 "\xd5\x0c\x50\xc5\xcd\x6d\x16\xb3"
6802 "\xa3\x1e\x95\x69\xad\x78\x95\x06"
6803 "\xb9\x46\xf2\x6d\x24\x5a\x99\x76"
6804 "\x73\x6a\x91\xa6\xac\x12\xe1\x28"
6805 "\x79\xbc\x08\x4e\x97\x00\x98\x63"
6806 "\x07\x1c\x4e\xd1\x68\xf3\xb3\x81"
6807 "\xa8\xa6\x5f\xf1\x01\xc9\xc1\xaf"
6808 "\x3a\x96\xf9\x9d\xb5\x5a\x5f\x8f"
6809 "\x7e\xc1\x7e\x77\x0a\x40\xc8\x8e"
6810 "\xfc\x0e\xed\xe1\x0d\xb0\xe5\x5e"
6811 "\x5e\x6f\xf5\x7f\xab\x33\x7d\xcd"
6812 "\xf0\x09\x4b\xb2\x11\x37\xdc\x65"
6813 "\x97\x32\x62\x71\x3a\x29\x54\xb9"
6814 "\xc7\xa4\xbf\x75\x0f\xf9\x40\xa9"
6815 "\x8d\xd7\x8b\xa7\xe0\x9a\xbe\x15"
6816 "\xc6\xda\xd8\x00\x14\x69\x1a\xaf"
6817 "\x5f\x79\xc3\xf5\xbb\x6c\x2a\x9d"
6818 "\xdd\x3c\x5f\x97\x21\xe1\x3a\x03"
6819 "\x84\x6a\xe9\x76\x11\x1f\xd3\xd5"
6820 "\xf0\x54\x20\x4d\xc2\x91\xc3\xa4"
6821 "\x36\x25\xbe\x1b\x2a\x06\xb7\xf3"
6822 "\xd1\xd0\x55\x29\x81\x4c\x83\xa3"
6823 "\xa6\x84\x1e\x5c\xd1\xd0\x6c\x90"
6824 "\xa4\x11\xf0\xd7\x63\x6a\x48\x05"
6825 "\xbc\x48\x18\x53\xcd\xb0\x8d\xdb"
6826 "\xdc\xfe\x55\x11\x5c\x51\xb3\xab"
6827 "\xab\x63\x3e\x31\x5a\x8b\x93\x63"
6828 "\x34\xa9\xba\x2b\x69\x1a\xc0\xe3"
6829 "\xcb\x41\xbc\xd7\xf5\x7f\x82\x3e"
6830 "\x01\xa3\x3c\x72\xf4\xfe\xdf\xbe"
6831 "\xb1\x67\x17\x2b\x37\x60\x0d\xca"
6832 "\x6f\xc3\x94\x2c\xd2\x92\x6d\x9d"
6833 "\x75\x18\x77\xaa\x29\x38\x96\xed"
6834 "\x0e\x20\x70\x92\xd5\xd0\xb4\x00"
6835 "\xc0\x31\xf2\xc9\x43\x0e\x75\x1d"
6836 "\x4b\x64\xf2\x1f\xf2\x29\x6c\x7b"
6837 "\x7f\xec\x59\x7d\x8c\x0d\xd4\xd3"
6838 "\xac\x53\x4c\xa3\xde\x42\x92\x95"
6839 "\x6d\xa3\x4f\xd0\xe6\x3d\xe7\xec"
6840 "\x7a\x4d\x68\xf1\xfe\x67\x66\x09"
6841 "\x83\x22\xb1\x98\x43\x8c\xab\xb8"
6842 "\x45\xe6\x6d\xdf\x5e\x50\x71\xce"
6843 "\xf5\x4e\x40\x93\x2b\xfa\x86\x0e"
6844 "\xe8\x30\xbd\x82\xcc\x1c\x9c\x5f"
6845 "\xad\xfd\x08\x31\xbe\x52\xe7\xe6"
6846 "\xf2\x06\x01\x62\x25\x15\x99\x74"
6847 "\x33\x51\x52\x57\x3f\x57\x87\x61"
6848 "\xb9\x7f\x29\x3d\xcd\x92\x5e\xa6"
6849 "\x5c\x3b\xf1\xed\x5f\xeb\x82\xed"
6850 "\x56\x7b\x61\xe7\xfd\x02\x47\x0e"
6851 "\x2a\x15\xa4\xce\x43\x86\x9b\xe1"
6852 "\x2b\x4c\x2a\xd9\x42\x97\xf7\x9a"
6853 "\xe5\x47\x46\x48\xd3\x55\x6f\x4d"
6854 "\xd9\xeb\x4b\xdd\x7b\x21\x2f\xb3"
6855 "\xa8\x36\x28\xdf\xca\xf1\xf6\xd9"
6856 "\x10\xf6\x1c\xfd\x2e\x0c\x27\xe0"
6857 "\x01\xb3\xff\x6d\x47\x08\x4d\xd4"
6858 "\x00\x25\xee\x55\x4a\xe9\xe8\x5b"
6859 "\xd8\xf7\x56\x12\xd4\x50\xb2\xe5"
6860 "\x51\x6f\x34\x63\x69\xd2\x4e\x96"
6861 "\x4e\xbc\x79\xbf\x18\xae\xc6\x13"
6862 "\x80\x92\x77\xb0\xb4\x0f\x29\x94"
6863 "\x6f\x4c\xbb\x53\x11\x36\xc3\x9f"
6864 "\x42\x8e\x96\x8a\x91\xc8\xe9\xfc"
6865 "\xfe\xbf\x7c\x2d\x6f\xf9\xb8\x44"
6866 "\x89\x1b\x09\x53\x0a\x2a\x92\xc3"
6867 "\x54\x7a\x3a\xf9\xe2\xe4\x75\x87"
6868 "\xa0\x5e\x4b\x03\x7a\x0d\x8a\xf4"
6869 "\x55\x59\x94\x2b\x63\x96\x0e\xf5",
6870 .psize = 1040,
6871 .digest = "\xb5\xb9\x08\xb3\x24\x3e\x03\xf0"
6872 "\xd6\x0b\x57\xbc\x0a\x6d\x89\x59",
6873 }, {
6874 .key = "\xf6\x34\x42\x71\x35\x52\x8b\x58"
6875 "\x02\x3a\x8e\x4a\x8d\x41\x13\xe9"
6876 "\x7f\xba\xb9\x55\x9d\x73\x4d\xf8"
6877 "\x3f\x5d\x73\x15\xff\xd3\x9e\x7f"
6878 "\x20\x2a\x6a\xa8\xd1\xf0\x8f\x12"
6879 "\x6b\x02\xd8\x6c\xde\xba\x80\x22"
6880 "\x19\x37\xc8\xd0\x4e\x89\x17\x7c"
6881 "\x7c\xdd\x88\xfd\x41\xc0\x04\xb7"
6882 "\x1d\xac\x19\xe3\x20\xc7\x16\xcf"
6883 "\x58\xee\x1d\x7a\x61\x69\xa9\x12"
6884 "\x4b\xef\x4f\xb6\x38\xdd\x78\xf8"
6885 "\x28\xee\x70\x08\xc7\x7c\xcc\xc8"
6886 "\x1e\x41\xf5\x80\x86\x70\xd0\xf0"
6887 "\xa3\x87\x6b\x0a\x00\xd2\x41\x28"
6888 "\x74\x26\xf1\x24\xf3\xd0\x28\x77"
6889 "\xd7\xcd\xf6\x2d\x61\xf4\xa2\x13"
6890 "\x77\xb4\x6f\xa0\xf4\xfb\xd6\xb5"
6891 "\x38\x9d\x5a\x0c\x51\xaf\xad\x63"
6892 "\x27\x67\x8c\x01\xea\x42\x1a\x66"
6893 "\xda\x16\x7c\x3c\x30\x0c\x66\x53"
6894 "\x1c\x88\xa4\x5c\xb2\xe3\x78\x0a"
6895 "\x13\x05\x6d\xe2\xaf\xb3\xe4\x75"
6896 "\x00\x99\x58\xee\x76\x09\x64\xaa"
6897 "\xbb\x2e\xb1\x81\xec\xd8\x0e\xd3"
6898 "\x0c\x33\x5d\xb7\x98\xef\x36\xb6"
6899 "\xd2\x65\x69\x41\x70\x12\xdc\x25"
6900 "\x41\x03\x99\x81\x41\x19\x62\x13"
6901 "\xd1\x0a\x29\xc5\x8c\xe0\x4c\xf3"
6902 "\xd6\xef\x4c\xf4\x1d\x83\x2e\x6d"
6903 "\x8e\x14\x87\xed\x80\xe0\xaa\xd3"
6904 "\x08\x04\x73\x1a\x84\x40\xf5\x64"
6905 "\xbd\x61\x32\x65\x40\x42\xfb\xb0"
6906 "\x40\xf6\x40\x8d\xc7\x7f\x14\xd0"
6907 "\x83\x99\xaa\x36\x7e\x60\xc6\xbf"
6908 "\x13\x8a\xf9\x21\xe4\x7e\x68\x87"
6909 "\xf3\x33\x86\xb4\xe0\x23\x7e\x0a"
6910 "\x21\xb1\xf5\xad\x67\x3c\x9c\x9d"
6911 "\x09\xab\xaf\x5f\xba\xe0\xd0\x82"
6912 "\x48\x22\x70\xb5\x6d\x53\xd6\x0e"
6913 "\xde\x64\x92\x41\xb0\xd3\xfb\xda"
6914 "\x21\xfe\xab\xea\x20\xc4\x03\x58"
6915 "\x18\x2e\x7d\x2f\x03\xa9\x47\x66"
6916 "\xdf\x7b\xa4\x6b\x34\x6b\x55\x9c"
6917 "\x4f\xd7\x9c\x47\xfb\xa9\x42\xec"
6918 "\x5a\x12\xfd\xfe\x76\xa0\x92\x9d"
6919 "\xfe\x1e\x16\xdd\x24\x2a\xe4\x27"
6920 "\xd5\xa9\xf2\x05\x4f\x83\xa2\xaf"
6921 "\xfe\xee\x83\x7a\xad\xde\xdf\x9a"
6922 "\x80\xd5\x81\x14\x93\x16\x7e\x46"
6923 "\x47\xc2\x14\xef\x49\x6e\xb9\xdb"
6924 "\x40\xe8\x06\x6f\x9c\x2a\xfd\x62"
6925 "\x06\x46\xfd\x15\x1d\x36\x61\x6f"
6926 "\x77\x77\x5e\x64\xce\x78\x1b\x85"
6927 "\xbf\x50\x9a\xfd\x67\xa6\x1a\x65"
6928 "\xad\x5b\x33\x30\xf1\x71\xaa\xd9"
6929 "\x23\x0d\x92\x24\x5f\xae\x57\xb0"
6930 "\x24\x37\x0a\x94\x12\xfb\xb5\xb1"
6931 "\xd3\xb8\x1d\x12\x29\xb0\x80\x24"
6932 "\x2d\x47\x9f\x96\x1f\x95\xf1\xb1"
6933 "\xda\x35\xf6\x29\xe0\xe1\x23\x96"
6934 "\xc7\xe8\x22\x9b\x7c\xac\xf9\x41"
6935 "\x39\x01\xe5\x73\x15\x5e\x99\xec"
6936 "\xb4\xc1\xf4\xe7\xa7\x97\x6a\xd5"
6937 "\x90\x9a\xa0\x1d\xf3\x5a\x8b\x5f"
6938 "\xdf\x01\x52\xa4\x93\x31\x97\xb0"
6939 "\x93\x24\xb5\xbc\xb2\x14\x24\x98"
6940 "\x4a\x8f\x19\x85\xc3\x2d\x0f\x74"
6941 "\x9d\x16\x13\x80\x5e\x59\x62\x62"
6942 "\x25\xe0\xd1\x2f\x64\xef\xba\xac"
6943 "\xcd\x09\x07\x15\x8a\xcf\x73\xb5"
6944 "\x8b\xc9\xd8\x24\xb0\x53\xd5\x6f"
6945 "\xe1\x2b\x77\xb1\xc5\xe4\xa7\x0e"
6946 "\x18\x45\xab\x36\x03\x59\xa8\xbd"
6947 "\x43\xf0\xd8\x2c\x1a\x69\x96\xbb"
6948 "\x13\xdf\x6c\x33\x77\xdf\x25\x34"
6949 "\x5b\xa5\x5b\x8c\xf9\x51\x05\xd4"
6950 "\x8b\x8b\x44\x87\x49\xfc\xa0\x8f"
6951 "\x45\x15\x5b\x40\x42\xc4\x09\x92"
6952 "\x98\x0c\x4d\xf4\x26\x37\x1b\x13"
6953 "\x76\x01\x93\x8d\x4f\xe6\xed\x18"
6954 "\xd0\x79\x7b\x3f\x44\x50\xcb\xee"
6955 "\xf7\x4a\xc9\x9e\xe0\x96\x74\xa7"
6956 "\xe6\x93\xb2\x53\xca\x55\xa8\xdc"
6957 "\x1e\x68\x07\x87\xb7\x2e\xc1\x08"
6958 "\xb2\xa4\x5b\xaf\xc6\xdb\x5c\x66"
6959 "\x41\x1c\x51\xd9\xb0\x07\x00\x0d"
6960 "\xf0\x4c\xdc\x93\xde\xa9\x1e\x8e"
6961 "\xd3\x22\x62\xd8\x8b\x88\x2c\xea"
6962 "\x5e\xf1\x6e\x14\x40\xc7\xbe\xaa"
6963 "\x42\x28\xd0\x26\x30\x78\x01\x9b"
6964 "\x83\x07\xbc\x94\xc7\x57\xa2\x9f"
6965 "\x03\x07\xff\x16\xff\x3c\x6e\x48"
6966 "\x0a\xd0\xdd\x4c\xf6\x64\x9a\xf1"
6967 "\xcd\x30\x12\x82\x2c\x38\xd3\x26"
6968 "\x83\xdb\xab\x3e\xc6\xf8\xe6\xfa"
6969 "\x77\x0a\x78\x82\x75\xf8\x63\x51"
6970 "\x59\xd0\x8d\x24\x9f\x25\xe6\xa3"
6971 "\x4c\xbc\x34\xfc\xe3\x10\xc7\x62"
6972 "\xd4\x23\xc8\x3d\xa7\xc6\xa6\x0a"
6973 "\x4f\x7e\x29\x9d\x6d\xbe\xb5\xf1"
6974 "\xdf\xa4\x53\xfa\xc0\x23\x0f\x37"
6975 "\x84\x68\xd0\xb5\xc8\xc6\xae\xf8"
6976 "\xb7\x8d\xb3\x16\xfe\x8f\x87\xad"
6977 "\xd0\xc1\x08\xee\x12\x1c\x9b\x1d"
6978 "\x90\xf8\xd1\x63\xa4\x92\x3c\xf0"
6979 "\xc7\x34\xd8\xf1\x14\xed\xa3\xbc"
6980 "\x17\x7e\xd4\x62\x42\x54\x57\x2c"
6981 "\x3e\x7a\x35\x35\x17\x0f\x0b\x7f"
6982 "\x81\xa1\x3f\xd0\xcd\xc8\x3b\x96"
6983 "\xe9\xe0\x4a\x04\xe1\xb6\x3c\xa1"
6984 "\xd6\xca\xc4\xbd\xb6\xb5\x95\x34"
6985 "\x12\x9d\xc5\x96\xf2\xdf\xba\x54"
6986 "\x76\xd1\xb2\x6b\x3b\x39\xe0\xb9"
6987 "\x18\x62\xfb\xf7\xfc\x12\xf1\x5f"
6988 "\x7e\xc7\xe3\x59\x4c\xa6\xc2\x3d"
6989 "\x40\x15\xf9\xa3\x95\x64\x4c\x74"
6990 "\x8b\x73\x77\x33\x07\xa7\x04\x1d"
6991 "\x33\x5a\x7e\x8f\xbd\x86\x01\x4f"
6992 "\x3e\xb9\x27\x6f\xe2\x41\xf7\x09"
6993 "\x67\xfd\x29\x28\xc5\xe4\xf6\x18"
6994 "\x4c\x1b\x49\xb2\x9c\x5b\xf6\x81"
6995 "\x4f\xbb\x5c\xcc\x0b\xdf\x84\x23"
6996 "\x58\xd6\x28\x34\x93\x3a\x25\x97"
6997 "\xdf\xb2\xc3\x9e\x97\x38\x0b\x7d"
6998 "\x10\xb3\x54\x35\x23\x8c\x64\xee"
6999 "\xf0\xd8\x66\xff\x8b\x22\xd2\x5b"
7000 "\x05\x16\x3c\x89\xf7\xb1\x75\xaf"
7001 "\xc0\xae\x6a\x4f\x3f\xaf\x9a\xf4"
7002 "\xf4\x9a\x24\xd9\x80\x82\xc0\x12"
7003 "\xde\x96\xd1\xbe\x15\x0b\x8d\x6a"
7004 "\xd7\x12\xe4\x85\x9f\x83\xc9\xc3"
7005 "\xff\x0b\xb5\xaf\x3b\xd8\x6d\x67"
7006 "\x81\x45\xe6\xac\xec\xc1\x7b\x16"
7007 "\x18\x0a\xce\x4b\xc0\x2e\x76\xbc"
7008 "\x1b\xfa\xb4\x34\xb8\xfc\x3e\xc8"
7009 "\x5d\x90\x71\x6d\x7a\x79\xef\x06",
7010 .ksize = 1088,
7011 .plaintext = "\xaa\x5d\x54\xcb\xea\x1e\x46\x0f"
7012 "\x45\x87\x70\x51\x8a\x66\x7a\x33"
7013 "\xb4\x18\xff\xa9\x82\xf9\x45\x4b"
7014 "\x93\xae\x2e\x7f\xab\x98\xfe\xbf"
7015 "\x01\xee\xe5\xa0\x37\x8f\x57\xa6"
7016 "\xb0\x76\x0d\xa4\xd6\x28\x2b\x5d"
7017 "\xe1\x03\xd6\x1c\x6f\x34\x0d\xe7"
7018 "\x61\x2d\x2e\xe5\xae\x5d\x47\xc7"
7019 "\x80\x4b\x18\x8f\xa8\x99\xbc\x28"
7020 "\xed\x1d\x9d\x86\x7d\xd7\x41\xd1"
7021 "\xe0\x2b\xe1\x8c\x93\x2a\xa7\x80"
7022 "\xe1\x07\xa0\xa9\x9f\x8c\x8d\x1a"
7023 "\x55\xfc\x6b\x24\x7a\xbd\x3e\x51"
7024 "\x68\x4b\x26\x59\xc8\xa7\x16\xd9"
7025 "\xb9\x61\x13\xde\x8b\x63\x1c\xf6"
7026 "\x60\x01\xfb\x08\xb3\x5b\x0a\xbf"
7027 "\x34\x73\xda\x87\x87\x3d\x6f\x97"
7028 "\x4a\x0c\xa3\x58\x20\xa2\xc0\x81"
7029 "\x5b\x8c\xef\xa9\xc2\x01\x1e\x64"
7030 "\x83\x8c\xbc\x03\xb6\xd0\x29\x9f"
7031 "\x54\xe2\xce\x8b\xc2\x07\x85\x78"
7032 "\x25\x38\x96\x4c\xb4\xbe\x17\x4a"
7033 "\x65\xa6\xfa\x52\x9d\x66\x9d\x65"
7034 "\x4a\xd1\x01\x01\xf0\xcb\x13\xcc"
7035 "\xa5\x82\xf3\xf2\x66\xcd\x3f\x9d"
7036 "\xd1\xaa\xe4\x67\xea\xf2\xad\x88"
7037 "\x56\x76\xa7\x9b\x59\x3c\xb1\x5d"
7038 "\x78\xfd\x69\x79\x74\x78\x43\x26"
7039 "\x7b\xde\x3f\xf1\xf5\x4e\x14\xd9"
7040 "\x15\xf5\x75\xb5\x2e\x19\xf3\x0c"
7041 "\x48\x72\xd6\x71\x6d\x03\x6e\xaa"
7042 "\xa7\x08\xf9\xaa\x70\xa3\x0f\x4d"
7043 "\x12\x8a\xdd\xe3\x39\x73\x7e\xa7"
7044 "\xea\x1f\x6d\x06\x26\x2a\xf2\xc5"
7045 "\x52\xb4\xbf\xfd\x52\x0c\x06\x60"
7046 "\x90\xd1\xb2\x7b\x56\xae\xac\x58"
7047 "\x5a\x6b\x50\x2a\xf5\xe0\x30\x3c"
7048 "\x2a\x98\x0f\x1b\x5b\x0a\x84\x6c"
7049 "\x31\xae\x92\xe2\xd4\xbb\x7f\x59"
7050 "\x26\x10\xb9\x89\x37\x68\x26\xbf"
7051 "\x41\xc8\x49\xc4\x70\x35\x7d\xff"
7052 "\x2d\x7f\xf6\x8a\x93\x68\x8c\x78"
7053 "\x0d\x53\xce\x7d\xff\x7d\xfb\xae"
7054 "\x13\x1b\x75\xc4\x78\xd7\x71\xd8"
7055 "\xea\xd3\xf4\x9d\x95\x64\x8e\xb4"
7056 "\xde\xb8\xe4\xa6\x68\xc8\xae\x73"
7057 "\x58\xaf\xa8\xb0\x5a\x20\xde\x87"
7058 "\x43\xb9\x0f\xe3\xad\x41\x4b\xd5"
7059 "\xb7\xad\x16\x00\xa6\xff\xf6\x74"
7060 "\xbf\x8c\x9f\xb3\x58\x1b\xb6\x55"
7061 "\xa9\x90\x56\x28\xf0\xb5\x13\x4e"
7062 "\x9e\xf7\x25\x86\xe0\x07\x7b\x98"
7063 "\xd8\x60\x5d\x38\x95\x3c\xe4\x22"
7064 "\x16\x2f\xb2\xa2\xaf\xe8\x90\x17"
7065 "\xec\x11\x83\x1a\xf4\xa9\x26\xda"
7066 "\x39\x72\xf5\x94\x61\x05\x51\xec"
7067 "\xa8\x30\x8b\x2c\x13\xd0\x72\xac"
7068 "\xb9\xd2\xa0\x4c\x4b\x78\xe8\x6e"
7069 "\x04\x85\xe9\x04\x49\x82\x91\xff"
7070 "\x89\xe5\xab\x4c\xaa\x37\x03\x12"
7071 "\xca\x8b\x74\x10\xfd\x9e\xd9\x7b"
7072 "\xcb\xdb\x82\x6e\xce\x2e\x33\x39"
7073 "\xce\xd2\x84\x6e\x34\x71\x51\x6e"
7074 "\x0d\xd6\x01\x87\xc7\xfa\x0a\xd3"
7075 "\xad\x36\xf3\x4c\x9f\x96\x5e\x62"
7076 "\x62\x54\xc3\x03\x78\xd6\xab\xdd"
7077 "\x89\x73\x55\x25\x30\xf8\xa7\xe6"
7078 "\x4f\x11\x0c\x7c\x0a\xa1\x2b\x7b"
7079 "\x3d\x0d\xde\x81\xd4\x9d\x0b\xae"
7080 "\xdf\x00\xf9\x4c\xb6\x90\x8e\x16"
7081 "\xcb\x11\xc8\xd1\x2e\x73\x13\x75"
7082 "\x75\x3e\xaa\xf5\xee\x02\xb3\x18"
7083 "\xa6\x2d\xf5\x3b\x51\xd1\x1f\x47"
7084 "\x6b\x2c\xdb\xc4\x10\xe0\xc8\xba"
7085 "\x9d\xac\xb1\x9d\x75\xd5\x41\x0e"
7086 "\x7e\xbe\x18\x5b\xa4\x1f\xf8\x22"
7087 "\x4c\xc1\x68\xda\x6d\x51\x34\x6c"
7088 "\x19\x59\xec\xb5\xb1\xec\xa7\x03"
7089 "\xca\x54\x99\x63\x05\x6c\xb1\xac"
7090 "\x9c\x31\xd6\xdb\xba\x7b\x14\x12"
7091 "\x7a\xc3\x2f\xbf\x8d\xdc\x37\x46"
7092 "\xdb\xd2\xbc\xd4\x2f\xab\x30\xd5"
7093 "\xed\x34\x99\x8e\x83\x3e\xbe\x4c"
7094 "\x86\x79\x58\xe0\x33\x8d\x9a\xb8"
7095 "\xa9\xa6\x90\x46\xa2\x02\xb8\xdd"
7096 "\xf5\xf9\x1a\x5c\x8c\x01\xaa\x6e"
7097 "\xb4\x22\x12\xf5\x0c\x1b\x9b\x7a"
7098 "\xc3\x80\xf3\x06\x00\x5f\x30\xd5"
7099 "\x06\xdb\x7d\x82\xc2\xd4\x0b\x4c"
7100 "\x5f\xe9\xc5\xf5\xdf\x97\x12\xbf"
7101 "\x56\xaf\x9b\x69\xcd\xee\x30\xb4"
7102 "\xa8\x71\xff\x3e\x7d\x73\x7a\xb4"
7103 "\x0d\xa5\x46\x7a\xf3\xf4\x15\x87"
7104 "\x5d\x93\x2b\x8c\x37\x64\xb5\xdd"
7105 "\x48\xd1\xe5\x8c\xae\xd4\xf1\x76"
7106 "\xda\xf4\xba\x9e\x25\x0e\xad\xa3"
7107 "\x0d\x08\x7c\xa8\x82\x16\x8d\x90"
7108 "\x56\x40\x16\x84\xe7\x22\x53\x3a"
7109 "\x58\xbc\xb9\x8f\x33\xc8\xc2\x84"
7110 "\x22\xe6\x0d\xe7\xb3\xdc\x5d\xdf"
7111 "\xd7\x2a\x36\xe4\x16\x06\x07\xd2"
7112 "\x97\x60\xb2\xf5\x5e\x14\xc9\xfd"
7113 "\x8b\x05\xd1\xce\xee\x9a\x65\x99"
7114 "\xb7\xae\x19\xb7\xc8\xbc\xd5\xa2"
7115 "\x7b\x95\xe1\xcc\xba\x0d\xdc\x8a"
7116 "\x1d\x59\x52\x50\xaa\x16\x02\x82"
7117 "\xdf\x61\x33\x2e\x44\xce\x49\xc7"
7118 "\xe5\xc6\x2e\x76\xcf\x80\x52\xf0"
7119 "\x3d\x17\x34\x47\x3f\xd3\x80\x48"
7120 "\xa2\xba\xd5\xc7\x7b\x02\x28\xdb"
7121 "\xac\x44\xc7\x6e\x05\x5c\xc2\x79"
7122 "\xb3\x7d\x6a\x47\x77\x66\xf1\x38"
7123 "\xf0\xf5\x4f\x27\x1a\x31\xca\x6c"
7124 "\x72\x95\x92\x8e\x3f\xb0\xec\x1d"
7125 "\xc7\x2a\xff\x73\xee\xdf\x55\x80"
7126 "\x93\xd2\xbd\x34\xd3\x9f\x00\x51"
7127 "\xfb\x2e\x41\xba\x6c\x5a\x7c\x17"
7128 "\x7f\xe6\x70\xac\x8d\x39\x3f\x77"
7129 "\xe2\x23\xac\x8f\x72\x4e\xe4\x53"
7130 "\xcc\xf1\x1b\xf1\x35\xfe\x52\xa4"
7131 "\xd6\xb8\x40\x6b\xc1\xfd\xa0\xa1"
7132 "\xf5\x46\x65\xc2\x50\xbb\x43\xe2"
7133 "\xd1\x43\x28\x34\x74\xf5\x87\xa0"
7134 "\xf2\x5e\x27\x3b\x59\x2b\x3e\x49"
7135 "\xdf\x46\xee\xaf\x71\xd7\x32\x36"
7136 "\xc7\x14\x0b\x58\x6e\x3e\x2d\x41"
7137 "\xfa\x75\x66\x3a\x54\xe0\xb2\xb9"
7138 "\xaf\xdd\x04\x80\x15\x19\x3f\x6f"
7139 "\xce\x12\xb4\xd8\xe8\x89\x3c\x05"
7140 "\x30\xeb\xf3\x3d\xcd\x27\xec\xdc"
7141 "\x56\x70\x12\xcf\x78\x2b\x77\xbf"
7142 "\x22\xf0\x1b\x17\x9c\xcc\xd6\x1b"
7143 "\x2d\x3d\xa0\x3b\xd8\xc9\x70\xa4"
7144 "\x7a\x3e\x07\xb9\x06\xc3\xfa\xb0"
7145 "\x33\xee\xc1\xd8\xf6\xe0\xf0\xb2"
7146 "\x61\x12\x69\xb0\x5f\x28\x99\xda"
7147 "\xc3\x61\x48\xfa\x07\x16\x03\xc4"
7148 "\xa8\xe1\x3c\xe8\x0e\x64\x15\x30"
7149 "\xc1\x9d\x84\x2f\x73\x98\x0e\x3a"
7150 "\xf2\x86\x21\xa4\x9e\x1d\xb5\x86"
7151 "\x16\xdb\x2b\x9a\x06\x64\x8e\x79"
7152 "\x8d\x76\x3e\xc3\xc2\x64\x44\xe3"
7153 "\xda\xbc\x1a\x52\xd7\x61\x03\x65"
7154 "\x54\x32\x77\x01\xed\x9d\x8a\x43"
7155 "\x25\x24\xe3\xc1\xbe\xb8\x2f\xcb"
7156 "\x89\x14\x64\xab\xf6\xa0\x6e\x02"
7157 "\x57\xe4\x7d\xa9\x4e\x9a\x03\x36"
7158 "\xad\xf1\xb1\xfc\x0b\xe6\x79\x51"
7159 "\x9f\x81\x77\xc4\x14\x78\x9d\xbf"
7160 "\xb6\xd6\xa3\x8c\xba\x0b\x26\xe7"
7161 "\xc8\xb9\x5c\xcc\xe1\x5f\xd5\xc6"
7162 "\xc4\xca\xc2\xa3\x45\xba\x94\x13"
7163 "\xb2\x8f\xc3\x54\x01\x09\xe7\x8b"
7164 "\xda\x2a\x0a\x11\x02\x43\xcb\x57"
7165 "\xc9\xcc\xb5\x5c\xab\xc4\xec\x54"
7166 "\x00\x06\x34\xe1\x6e\x03\x89\x7c"
7167 "\xc6\xfb\x6a\xc7\x60\x43\xd6\xc5"
7168 "\xb5\x68\x72\x89\x8f\x42\xc3\x74"
7169 "\xbd\x25\xaa\x9f\x67\xb5\xdf\x26"
7170 "\x20\xe8\xb7\x01\x3c\xe4\x77\xce"
7171 "\xc4\x65\xa7\x23\x79\xea\x33\xc7"
7172 "\x82\x14\x5c\x82\xf2\x4e\x3d\xf6"
7173 "\xc6\x4a\x0e\x29\xbb\xec\x44\xcd"
7174 "\x2f\xd1\x4f\x21\x71\xa9\xce\x0f"
7175 "\x5c\xf2\x72\x5c\x08\x2e\x21\xd2"
7176 "\xc3\x29\x13\xd8\xac\xc3\xda\x13"
7177 "\x1a\x9d\xa7\x71\x1d\x27\x1d\x27"
7178 "\x1d\xea\xab\x44\x79\xad\xe5\xeb"
7179 "\xef\x1f\x22\x0a\x44\x4f\xcb\x87"
7180 "\xa7\x58\x71\x0e\x66\xf8\x60\xbf"
7181 "\x60\x74\x4a\xb4\xec\x2e\xfe\xd3"
7182 "\xf5\xb8\xfe\x46\x08\x50\x99\x6c"
7183 "\x66\xa5\xa8\x34\x44\xb5\xe5\xf0"
7184 "\xdd\x2c\x67\x4e\x35\x96\x8e\x67"
7185 "\x48\x3f\x5f\x37\x44\x60\x51\x2e"
7186 "\x14\x91\x5e\x57\xc3\x0e\x79\x77"
7187 "\x2f\x03\xf4\xe2\x1c\x72\xbf\x85"
7188 "\x5d\xd3\x17\xdf\x6c\xc5\x70\x24"
7189 "\x42\xdf\x51\x4e\x2a\xb2\xd2\x5b"
7190 "\x9e\x69\x83\x41\x11\xfe\x73\x22"
7191 "\xde\x8a\x9e\xd8\x8a\xfb\x20\x38"
7192 "\xd8\x47\x6f\xd5\xed\x8f\x41\xfd"
7193 "\x13\x7a\x18\x03\x7d\x0f\xcd\x7d"
7194 "\xa6\x7d\x31\x9e\xf1\x8f\x30\xa3"
7195 "\x8b\x4c\x24\xb7\xf5\x48\xd7\xd9"
7196 "\x12\xe7\x84\x97\x5c\x31\x6d\xfb"
7197 "\xdf\xf3\xd3\xd1\xd5\x0c\x30\x06"
7198 "\x01\x6a\xbc\x6c\x78\x7b\xa6\x50"
7199 "\xfa\x0f\x3c\x42\x2d\xa5\xa3\x3b"
7200 "\xcf\x62\x50\xff\x71\x6d\xe7\xda"
7201 "\x27\xab\xc6\x67\x16\x65\x68\x64"
7202 "\xc7\xd5\x5f\x81\xa9\xf6\x65\xb3"
7203 "\x5e\x43\x91\x16\xcd\x3d\x55\x37"
7204 "\x55\xb3\xf0\x28\xc5\x54\x19\xc0"
7205 "\xe0\xd6\x2a\x61\xd4\xc8\x72\x51"
7206 "\xe9\xa1\x7b\x48\x21\xad\x44\x09"
7207 "\xe4\x01\x61\x3c\x8a\x5b\xf9\xa1"
7208 "\x6e\x1b\xdf\xc0\x04\xa8\x8b\xf2"
7209 "\x21\xbe\x34\x7b\xfc\xa1\xcd\xc9"
7210 "\xa9\x96\xf4\xa4\x4c\xf7\x4e\x8f"
7211 "\x84\xcc\xd3\xa8\x92\x77\x8f\x36"
7212 "\xe2\x2e\x8c\x33\xe8\x84\xa6\x0c"
7213 "\x6c\x8a\xda\x14\x32\xc2\x96\xff"
7214 "\xc6\x4a\xc2\x9b\x30\x7f\xd1\x29"
7215 "\xc0\xd5\x78\x41\x00\x80\x80\x03"
7216 "\x2a\xb1\xde\x26\x03\x48\x49\xee"
7217 "\x57\x14\x76\x51\x3c\x36\x5d\x0a"
7218 "\x5c\x9f\xe8\xd8\x53\xdb\x4f\xd4"
7219 "\x38\xbf\x66\xc9\x75\x12\x18\x75"
7220 "\x34\x2d\x93\x22\x96\x51\x24\x6e"
7221 "\x4e\xd9\x30\xea\x67\xff\x92\x1c"
7222 "\x16\x26\xe9\xb5\x33\xab\x8c\x22"
7223 "\x47\xdb\xa0\x2c\x08\xf0\x12\x69"
7224 "\x7e\x93\x52\xda\xa5\xe5\xca\xc1"
7225 "\x0f\x55\x2a\xbd\x09\x30\x88\x1b"
7226 "\x9c\xc6\x9f\xe6\xdb\xa6\x92\xeb"
7227 "\xf4\xbd\x5c\xc4\xdb\xc6\x71\x09"
7228 "\xab\x5e\x48\x0c\xed\x6f\xda\x8e"
7229 "\x8d\x0c\x98\x71\x7d\x10\xd0\x9c"
7230 "\x20\x9b\x79\x53\x26\x5d\xb9\x85"
7231 "\x8a\x31\xb8\xc5\x1c\x97\xde\x88"
7232 "\x61\x55\x7f\x7c\x21\x06\xea\xc4"
7233 "\x5f\xaf\xf2\xf0\xd5\x5e\x7d\xb4"
7234 "\x6e\xcf\xe9\xae\x1b\x0e\x11\x80"
7235 "\xc1\x9a\x74\x7e\x52\x6f\xa0\xb7"
7236 "\x24\xcd\x8d\x0a\x11\x40\x63\x72"
7237 "\xfa\xe2\xc5\xb3\x94\xef\x29\xa2"
7238 "\x1a\x23\x43\x04\x37\x55\x0d\xe9"
7239 "\x83\xb2\x29\x51\x49\x64\xa0\xbd"
7240 "\xde\x73\xfd\xa5\x7c\x95\x70\x62"
7241 "\x58\xdc\xe2\xd0\xbf\x98\xf5\x8a"
7242 "\x6a\xfd\xce\xa8\x0e\x42\x2a\xeb"
7243 "\xd2\xff\x83\x27\x53\x5c\xa0\x6e"
7244 "\x93\xef\xe2\xb9\x5d\x35\xd6\x98"
7245 "\xf6\x71\x19\x7a\x54\xa1\xa7\xe8"
7246 "\x09\xfe\xf6\x9e\xc7\xbd\x3e\x29"
7247 "\xbd\x6b\x17\xf4\xe7\x3e\x10\x5c"
7248 "\xc1\xd2\x59\x4f\x4b\x12\x1a\x5b"
7249 "\x50\x80\x59\xb9\xec\x13\x66\xa8"
7250 "\xd2\x31\x7b\x6a\x61\x22\xdd\x7d"
7251 "\x61\xee\x87\x16\x46\x9f\xf9\xc7"
7252 "\x41\xee\x74\xf8\xd0\x96\x2c\x76"
7253 "\x2a\xac\x7d\x6e\x9f\x0e\x7f\x95"
7254 "\xfe\x50\x16\xb2\x23\xca\x62\xd5"
7255 "\x68\xcf\x07\x3f\x3f\x97\x85\x2a"
7256 "\x0c\x25\x45\xba\xdb\x32\xcb\x83"
7257 "\x8c\x4f\xe0\x6d\x9a\x99\xf9\xc9"
7258 "\xda\xd4\x19\x31\xc1\x7c\x6d\xd9"
7259 "\x9c\x56\xd3\xec\xc1\x81\x4c\xed"
7260 "\x28\x9d\x87\xeb\x19\xd7\x1a\x4f"
7261 "\x04\x6a\xcb\x1f\xcf\x1f\xa2\x16"
7262 "\xfc\x2a\x0d\xa1\x14\x2d\xfa\xc5"
7263 "\x5a\xd2\xc5\xf9\x19\x7c\x20\x1f"
7264 "\x2d\x10\xc0\x66\x7c\xd9\x2d\xe5"
7265 "\x88\x70\x59\xa7\x85\xd5\x2e\x7c"
7266 "\x5c\xe3\xb7\x12\xd6\x97\x3f\x29",
7267 .psize = 2048,
7268 .digest = "\x37\x90\x92\xc2\xeb\x01\x87\xd9"
7269 "\x95\xc7\x91\xc3\x17\x8b\x38\x52",
7270 }
7271};
7272
7273
Martin Willieee9dc62015-06-01 13:43:59 +02007274/*
Herbert Xuda7f0332008-07-31 17:08:25 +08007275 * DES test vectors.
7276 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007277static const struct cipher_testvec des_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08007278 { /* From Applied Cryptography */
7279 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7280 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007281 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
7282 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
7283 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007284 }, { /* Same key, different plaintext block */
7285 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7286 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007287 .ptext = "\x22\x33\x44\x55\x66\x77\x88\x99",
7288 .ctext = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
7289 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007290 }, { /* Sbox test from NBS */
7291 .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57",
7292 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007293 .ptext = "\x01\xa1\xd6\xd0\x39\x77\x67\x42",
7294 .ctext = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
7295 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007296 }, { /* Three blocks */
7297 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7298 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007299 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08007300 "\x22\x33\x44\x55\x66\x77\x88\x99"
7301 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007302 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08007303 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
7304 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007305 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08007306 }, { /* Weak key */
Eric Biggers5283a8e2019-04-11 21:57:36 -07007307 .setkey_error = -EINVAL,
Herbert Xuda7f0332008-07-31 17:08:25 +08007308 .wk = 1,
7309 .key = "\x01\x01\x01\x01\x01\x01\x01\x01",
7310 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007311 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7",
7312 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d",
7313 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007314 }, { /* Two blocks -- for testing encryption across pages */
7315 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7316 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007317 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08007318 "\x22\x33\x44\x55\x66\x77\x88\x99",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007319 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08007320 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007321 .len = 16,
Eric Biggers097012e2018-05-20 22:50:25 -07007322 }, {
7323 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7324 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007325 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Eric Biggers097012e2018-05-20 22:50:25 -07007326 "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007327 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Eric Biggers097012e2018-05-20 22:50:25 -07007328 "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007329 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08007330 }, { /* Four blocks -- for testing encryption with chunking */
7331 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7332 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007333 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +08007334 "\x22\x33\x44\x55\x66\x77\x88\x99"
7335 "\xca\xfe\xba\xbe\xfe\xed\xbe\xef"
7336 "\x22\x33\x44\x55\x66\x77\x88\x99",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007337 .ctext = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d"
Herbert Xuda7f0332008-07-31 17:08:25 +08007338 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b"
7339 "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90"
7340 "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007341 .len = 32,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007342 }, { /* Generated with Crypto++ */
7343 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
7344 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007345 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007346 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
7347 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
7348 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
7349 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
7350 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
7351 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
7352 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
7353 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
7354 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
7355 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
7356 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
7357 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
7358 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
7359 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
7360 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
7361 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
7362 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
7363 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
7364 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
7365 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
7366 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
7367 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
7368 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
7369 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
7370 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
7371 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
7372 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
7373 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
7374 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
7375 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007376 .ctext = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007377 "\x92\xB9\x77\xFF\x2F\x47\x58\xDD"
7378 "\xD7\x8A\x91\x95\x26\x33\x78\xB2"
7379 "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF"
7380 "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3"
7381 "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55"
7382 "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD"
7383 "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8"
7384 "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9"
7385 "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94"
7386 "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4"
7387 "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC"
7388 "\x73\x58\x11\x1F\x81\xD7\x21\x1A"
7389 "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5"
7390 "\x2E\x51\x16\xCA\x09\x89\x54\x62"
7391 "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4"
7392 "\x62\xF0\x02\x58\x83\xAF\x30\x87"
7393 "\x85\x3F\x01\xCD\x8E\x58\x42\xC4"
7394 "\x41\x73\xE0\x15\x0A\xE6\x2E\x80"
7395 "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2"
7396 "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E"
7397 "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F"
7398 "\x14\xA0\x66\xAB\x79\x39\xD0\x8E"
7399 "\xE9\x95\x61\x74\x12\xED\x07\xD7"
7400 "\xDD\x95\xDC\x7B\x57\x25\x27\x9C"
7401 "\x51\x96\x16\xF7\x94\x61\xB8\x87"
7402 "\xF0\x21\x1B\x32\xFB\x07\x0F\x29"
7403 "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9"
7404 "\x46\x31\x4C\x5E\x2E\x95\x61\xEF"
7405 "\xE1\x58\x39\x09\xB4\x8B\x40\xAC"
7406 "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007407 .len = 248,
Herbert Xuda7f0332008-07-31 17:08:25 +08007408 },
7409};
7410
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007411static const struct cipher_testvec des_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08007412 { /* From OpenSSL */
7413 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7414 .klen = 8,
7415 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggerscdc69462019-02-14 00:03:52 -08007416 .iv_out = "\x46\x8e\x91\x15\x78\x88\xba\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007417 .ptext = "\x37\x36\x35\x34\x33\x32\x31\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +08007418 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
7419 "\x68\x65\x20\x74\x69\x6d\x65\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007420 .ctext = "\xcc\xd1\x73\xff\xab\x20\x39\xf4"
Herbert Xuda7f0332008-07-31 17:08:25 +08007421 "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb"
7422 "\x46\x8e\x91\x15\x78\x88\xba\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007423 .len = 24,
Herbert Xuda7f0332008-07-31 17:08:25 +08007424 }, { /* FIPS Pub 81 */
7425 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7426 .klen = 8,
7427 .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef",
Eric Biggerscdc69462019-02-14 00:03:52 -08007428 .iv_out = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007429 .ptext = "\x4e\x6f\x77\x20\x69\x73\x20\x74",
7430 .ctext = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
7431 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007432 }, {
7433 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7434 .klen = 8,
7435 .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c",
Eric Biggerscdc69462019-02-14 00:03:52 -08007436 .iv_out = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007437 .ptext = "\x68\x65\x20\x74\x69\x6d\x65\x20",
7438 .ctext = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
7439 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007440 }, {
7441 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
7442 .klen = 8,
7443 .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f",
Eric Biggerscdc69462019-02-14 00:03:52 -08007444 .iv_out = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007445 .ptext = "\x66\x6f\x72\x20\x61\x6c\x6c\x20",
7446 .ctext = "\x68\x37\x88\x49\x9a\x7c\x05\xf6",
7447 .len = 8,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007448 }, { /* Generated with Crypto++ */
7449 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
7450 .klen = 8,
7451 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
Eric Biggerscdc69462019-02-14 00:03:52 -08007452 .iv_out = "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007453 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007454 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
7455 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
7456 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
7457 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
7458 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
7459 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
7460 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
7461 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
7462 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
7463 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
7464 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
7465 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
7466 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
7467 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
7468 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
7469 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
7470 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
7471 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
7472 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
7473 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
7474 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
7475 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
7476 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
7477 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
7478 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
7479 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
7480 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
7481 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
7482 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
7483 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007484 .ctext = "\x71\xCC\x56\x1C\x87\x2C\x43\x20"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007485 "\x1C\x20\x13\x09\xF9\x2B\x40\x47"
7486 "\x99\x10\xD1\x1B\x65\x33\x33\xBA"
7487 "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4"
7488 "\x5A\x0C\x12\x96\x32\x57\xAA\x26"
7489 "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E"
7490 "\x81\x72\x74\xDE\x30\x19\x69\x49"
7491 "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1"
7492 "\xE8\x6D\x0D\x05\x83\xA5\x12\x08"
7493 "\x47\xF8\x88\x03\x86\x51\x3C\xEF"
7494 "\xE7\x11\x73\x4D\x44\x2B\xE2\x16"
7495 "\xE8\xA5\x06\x50\x66\x70\x0E\x14"
7496 "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F"
7497 "\x56\xB6\xA7\x44\xDB\x86\xAB\x69"
7498 "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE"
7499 "\x49\x90\x88\x6A\x09\x8F\x76\x59"
7500 "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A"
7501 "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B"
7502 "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63"
7503 "\x80\x02\x61\x2F\xE3\x46\xB6\xB5"
7504 "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F"
7505 "\x20\xCF\xD2\x47\x4E\x39\x65\xB3"
7506 "\x11\x87\xA2\x6C\x49\x7E\x36\xC7"
7507 "\x62\x8B\x48\x0D\x6A\x64\x00\xBD"
7508 "\x71\x91\x8C\xE9\x70\x19\x01\x4F"
7509 "\x4E\x68\x23\xBA\xDA\x24\x2E\x45"
7510 "\x02\x14\x33\x21\xAE\x58\x4B\xCF"
7511 "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93"
7512 "\xD7\x07\x8A\xD7\x18\x92\x36\x8C"
7513 "\x82\xA9\xBD\x6A\x31\x91\x39\x11"
7514 "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007515 .len = 248,
Herbert Xuda7f0332008-07-31 17:08:25 +08007516 },
7517};
7518
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007519static const struct cipher_testvec des_ctr_tv_template[] = {
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007520 { /* Generated with Crypto++ */
7521 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
7522 .klen = 8,
7523 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggerse674dbc2019-02-14 00:03:53 -08007524 .iv_out = "\x00\x00\x00\x00\x00\x00\x00\x1C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007525 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007526 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
7527 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
7528 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
7529 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
7530 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
7531 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
7532 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
7533 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
7534 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
7535 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
7536 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
7537 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
7538 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
7539 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
7540 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
7541 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
7542 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
7543 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
7544 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
7545 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
7546 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
7547 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
7548 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
7549 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
7550 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
7551 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
7552 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
7553 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
7554 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
7555 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007556 .ctext = "\x2F\x96\x06\x0F\x50\xC9\x68\x03"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007557 "\x0F\x31\xD4\x64\xA5\x29\x77\x35"
7558 "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E"
7559 "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02"
7560 "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C"
7561 "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47"
7562 "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B"
7563 "\xC8\x0F\x85\xDC\x03\x13\xA9\x04"
7564 "\x19\x40\xBE\xBE\x5C\x49\x4A\x69"
7565 "\xED\xE8\xE1\x9E\x14\x43\x74\xDE"
7566 "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB"
7567 "\xBE\x4C\x91\x43\x22\x65\x72\x48"
7568 "\xE2\x12\xED\x88\xAC\xA7\xC9\x91"
7569 "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F"
7570 "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA"
7571 "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C"
7572 "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31"
7573 "\xB7\x30\x1C\x21\x38\xFB\x68\x8C"
7574 "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12"
7575 "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86"
7576 "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B"
7577 "\x96\x28\x72\x6B\xF3\x30\xA9\xEB"
7578 "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7"
7579 "\xC0\xEF\x07\xB7\x77\x2C\x00\x05"
7580 "\x46\xBD\xFE\x53\x81\x8B\xA4\x03"
7581 "\x20\x0F\xDB\x78\x0B\x1F\x53\x04"
7582 "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E"
7583 "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2"
7584 "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD"
7585 "\x19\x7F\x99\x19\x53\xCE\x1D\x14"
7586 "\x69\x74\xA1\x06\x46\x0F\x4E\x75",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007587 .len = 248,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007588 }, { /* Generated with Crypto++ */
7589 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55",
7590 .klen = 8,
7591 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47",
Eric Biggerse674dbc2019-02-14 00:03:53 -08007592 .iv_out = "\xE7\x82\x1D\xB8\x53\x11\xAC\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007593 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007594 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
7595 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
7596 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
7597 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
7598 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
7599 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
7600 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
7601 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
7602 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
7603 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
7604 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
7605 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
7606 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
7607 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
7608 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
7609 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
7610 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
7611 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
7612 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
7613 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
7614 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
7615 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
7616 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
7617 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
7618 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
7619 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
7620 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
7621 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
7622 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
7623 "\xC6\x2F\xBB\x24\x8D\x19\x82",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007624 .ctext = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3"
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007625 "\xF4\x10\xCC\x21\x99\xEB\xDC\x15"
7626 "\x19\x13\x93\x27\x9D\xB6\x6F\x45"
7627 "\x17\x55\x61\x72\xC8\xD3\x7F\xA5"
7628 "\x32\xD0\xD3\x02\x15\xA4\x05\x23"
7629 "\x9C\x23\x61\x60\x77\x7B\x6C\x95"
7630 "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D"
7631 "\xC8\x47\xD5\x94\xE7\x53\xC8\x23"
7632 "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12"
7633 "\xA4\x42\x15\x34\xF7\x5F\xDC\x58"
7634 "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6"
7635 "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8"
7636 "\x02\x82\xBB\x16\xB8\xDC\xB5\x58"
7637 "\xC3\x2D\x79\xE4\x25\x79\x43\xF9"
7638 "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E"
7639 "\x04\x25\x79\xFD\x27\xFB\xC4\xEA"
7640 "\x32\x94\x48\x92\xF3\x68\x1A\x7F"
7641 "\x36\x33\x43\x79\xF7\xCA\xC2\x38"
7642 "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C"
7643 "\x40\x57\x3E\xED\x00\x9F\x22\x6E"
7644 "\x80\x99\x0B\xCC\x40\x63\x46\x8A"
7645 "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9"
7646 "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D"
7647 "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C"
7648 "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A"
7649 "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E"
7650 "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0"
7651 "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7"
7652 "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94"
7653 "\xA5\xA6\xE7\xB0\x51\x36\x52\x37"
7654 "\x91\x45\x05\x3E\x58\xBF\x32",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007655 .len = 247,
Jussi Kivilinna8163fc32012-10-20 14:53:07 +03007656 },
7657};
7658
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007659static const struct cipher_testvec des3_ede_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08007660 { /* These are from openssl */
7661 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
7662 "\x55\x55\x55\x55\x55\x55\x55\x55"
7663 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
7664 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007665 .ptext = "\x73\x6f\x6d\x65\x64\x61\x74\x61",
7666 .ctext = "\x18\xd7\x48\xe5\x63\x62\x05\x72",
7667 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007668 }, {
7669 .key = "\x03\x52\x02\x07\x67\x20\x82\x17"
7670 "\x86\x02\x87\x66\x59\x08\x21\x98"
7671 "\x64\x05\x6a\xbd\xfe\xa9\x34\x57",
7672 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007673 .ptext = "\x73\x71\x75\x69\x67\x67\x6c\x65",
7674 .ctext = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30",
7675 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08007676 }, {
7677 .key = "\x10\x46\x10\x34\x89\x98\x80\x20"
7678 "\x91\x07\xd0\x15\x89\x19\x01\x01"
7679 "\x19\x07\x92\x10\x98\x1a\x01\x01",
7680 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007681 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
7682 .ctext = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b",
7683 .len = 8,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007684 }, { /* Generated with Crypto++ */
7685 .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67"
7686 "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D"
7687 "\xCE\xEB\xB4\x51\x72\xB4\x51\x72",
7688 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007689 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007690 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
7691 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
7692 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
7693 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
7694 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
7695 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
7696 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
7697 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
7698 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
7699 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
7700 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
7701 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
7702 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
7703 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
7704 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
7705 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
7706 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
7707 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
7708 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
7709 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
7710 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
7711 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
7712 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
7713 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
7714 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
7715 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
7716 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
7717 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
7718 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
7719 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
7720 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
7721 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
7722 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
7723 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
7724 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
7725 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
7726 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
7727 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
7728 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
7729 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
7730 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
7731 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
7732 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
7733 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
7734 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
7735 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
7736 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
7737 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
7738 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
7739 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
7740 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
7741 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
7742 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
7743 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
7744 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
7745 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
7746 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
7747 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
7748 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
7749 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
7750 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007751 .ctext = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007752 "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4"
7753 "\x81\x01\x04\x00\x76\xFA\xED\xD3"
7754 "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64"
7755 "\xCA\x4E\x90\xE0\xC0\x63\x28\x92"
7756 "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77"
7757 "\x69\x56\xD0\x19\xAD\x00\x2D\x97"
7758 "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2"
7759 "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B"
7760 "\xEA\x32\x56\xE4\x0B\xAF\x27\x36"
7761 "\xAF\x08\xB9\x61\xB7\x48\x23\x27"
7762 "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7"
7763 "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6"
7764 "\x9D\xDA\x04\x59\xE2\x09\x48\x7E"
7765 "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E"
7766 "\x0D\x19\xFA\x33\x0F\xEE\x36\x68"
7767 "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA"
7768 "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16"
7769 "\x45\x86\x50\x01\x70\x35\x99\x92"
7770 "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B"
7771 "\xD2\x04\x84\x90\xC4\x27\xDF\x0A"
7772 "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA"
7773 "\xB3\x18\x5C\xC3\x93\x63\x5A\x68"
7774 "\x77\x02\xBA\xED\x62\x71\xB1\xD9"
7775 "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E"
7776 "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4"
7777 "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70"
7778 "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD"
7779 "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1"
7780 "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2"
7781 "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52"
7782 "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3"
7783 "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F"
7784 "\xDB\xEA\x84\x13\x26\x6C\x85\x4E"
7785 "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06"
7786 "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2"
7787 "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C"
7788 "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5"
7789 "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7"
7790 "\xD1\x17\x25\x08\xF9\xA9\xA6\x67"
7791 "\x38\x80\xD1\x22\xAB\x1A\xD7\x26"
7792 "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57"
7793 "\x31\xEC\xC9\xED\xDB\x79\xC0\x48"
7794 "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E"
7795 "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC"
7796 "\x58\xC8\xDE\x51\x4E\x17\x15\x11"
7797 "\x66\x58\xB6\x90\xDC\xDF\xA1\x49"
7798 "\xCA\x79\xE9\x31\x31\x42\xDC\x56"
7799 "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19"
7800 "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90"
7801 "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B"
7802 "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46"
7803 "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84"
7804 "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA"
7805 "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F"
7806 "\xE4\x82\x77\xCE\x87\xC0\x09\xF0"
7807 "\xD6\x10\x9E\x34\xE1\x0C\x67\x55"
7808 "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA"
7809 "\xF2\x7B\xBE\x75\x07\x42\x9D\x99"
7810 "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6"
7811 "\x93\x03\xD7\x51\x09\xFA\xBE\x68"
7812 "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007813 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +08007814 },
7815};
7816
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007817static const struct cipher_testvec des3_ede_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08007818 { /* Generated from openssl */
7819 .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
7820 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
7821 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
7822 .klen = 24,
7823 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Eric Biggerscdc69462019-02-14 00:03:52 -08007824 .iv_out = "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007825 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Herbert Xuda7f0332008-07-31 17:08:25 +08007826 "\x53\x20\x63\x65\x65\x72\x73\x74"
7827 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
7828 "\x20\x79\x65\x53\x72\x63\x74\x65"
7829 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
7830 "\x79\x6e\x53\x20\x63\x65\x65\x72"
7831 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
7832 "\x6e\x61\x20\x79\x65\x53\x72\x63"
7833 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
7834 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
7835 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
7836 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
7837 "\x72\x63\x74\x65\x20\x73\x6f\x54"
7838 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
7839 "\x63\x65\x65\x72\x73\x74\x54\x20"
7840 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007841 .ctext = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
Herbert Xuda7f0332008-07-31 17:08:25 +08007842 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
7843 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
7844 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
7845 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
7846 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
7847 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
7848 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
7849 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
7850 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
7851 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
7852 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
7853 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
7854 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
7855 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
7856 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007857 .len = 128,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007858 }, { /* Generated with Crypto++ */
7859 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
7860 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
7861 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
7862 .klen = 24,
7863 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12"
7864 "\xB7\x28\x4D\x83\x24\x59\xF2\x17",
Eric Biggerscdc69462019-02-14 00:03:52 -08007865 .iv_out = "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007866 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007867 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
7868 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
7869 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
7870 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
7871 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
7872 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
7873 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
7874 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
7875 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
7876 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
7877 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
7878 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
7879 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
7880 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
7881 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
7882 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
7883 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
7884 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
7885 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
7886 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
7887 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
7888 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
7889 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
7890 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
7891 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
7892 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
7893 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
7894 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
7895 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
7896 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
7897 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
7898 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
7899 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
7900 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
7901 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
7902 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
7903 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
7904 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
7905 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
7906 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
7907 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
7908 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
7909 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
7910 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
7911 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
7912 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
7913 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
7914 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
7915 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
7916 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
7917 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
7918 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
7919 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
7920 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
7921 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
7922 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
7923 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
7924 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
7925 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
7926 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
7927 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007928 .ctext = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007929 "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5"
7930 "\x1E\x68\x8E\x85\x12\x86\x1D\x38"
7931 "\x1C\x91\x40\xCC\x69\x6A\xD5\x35"
7932 "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF"
7933 "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C"
7934 "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37"
7935 "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90"
7936 "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B"
7937 "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B"
7938 "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9"
7939 "\xE6\xA5\xAD\x25\xE6\x17\x69\x63"
7940 "\x11\x35\x61\x94\x88\x7B\x1C\x48"
7941 "\xF1\x24\x20\x29\x6B\x93\x1A\x8E"
7942 "\x43\x03\x89\xD8\xB1\xDA\x47\x7B"
7943 "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB"
7944 "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8"
7945 "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73"
7946 "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6"
7947 "\x67\x88\xA5\x20\x6F\x5F\x97\xC7"
7948 "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7"
7949 "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7"
7950 "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E"
7951 "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6"
7952 "\xEE\xFE\x55\xA3\x29\x65\xE0\x12"
7953 "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96"
7954 "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF"
7955 "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE"
7956 "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99"
7957 "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D"
7958 "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6"
7959 "\x2B\x1C\xD5\xFB\x96\x24\x60\x60"
7960 "\x54\x40\xB8\x62\xA4\xF8\x46\x95"
7961 "\x73\x28\xA3\xA6\x16\x2B\x17\xE7"
7962 "\x7A\xF8\x62\x54\x3B\x64\x69\xE1"
7963 "\x71\x34\x29\x5B\x4E\x05\x9B\xFA"
7964 "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59"
7965 "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2"
7966 "\x3B\x8E\x71\x69\x6A\x91\xB6\x65"
7967 "\x32\x09\xB8\xE4\x09\x1F\xEA\x39"
7968 "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0"
7969 "\x73\x50\x08\x56\x20\x9B\x94\x23"
7970 "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F"
7971 "\x41\x5B\xCC\xE2\x18\xAE\x62\x89"
7972 "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5"
7973 "\x25\xC9\x48\x97\xB5\xD3\x17\xD5"
7974 "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B"
7975 "\x57\x08\xAE\x91\xF2\xB7\x57\x89"
7976 "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF"
7977 "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02"
7978 "\xD4\x56\x42\x79\x79\x7F\x2A\x77"
7979 "\x25\xE9\x7D\xC1\x88\x19\x2B\x49"
7980 "\x6F\x46\x59\xAB\x56\x1F\x61\xE0"
7981 "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12"
7982 "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8"
7983 "\x21\x85\x1A\x62\x7E\x34\xBB\xEB"
7984 "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5"
7985 "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38"
7986 "\x02\x80\xA3\x28\x22\x75\xE1\xE9"
7987 "\x90\xE9\xFA\x4B\x00\x10\xAC\x58"
7988 "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F"
7989 "\x95\x63\x73\xA2\x44\xAC\xF8\xA5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007990 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +08007991 },
7992};
7993
Eric Biggers92a4c9f2018-05-20 22:50:29 -07007994static const struct cipher_testvec des3_ede_ctr_tv_template[] = {
Jussi Kivilinnae080b172012-10-20 14:53:12 +03007995 { /* Generated with Crypto++ */
7996 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
7997 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
7998 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
7999 .klen = 24,
Eric Biggersc9e1d482019-02-14 00:03:50 -08008000 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF",
Eric Biggerse674dbc2019-02-14 00:03:53 -08008001 .iv_out = "\x00\x00\x00\x00\x00\x00\x00\x3D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008002 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03008003 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
8004 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
8005 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
8006 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
8007 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
8008 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
8009 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
8010 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
8011 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
8012 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
8013 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
8014 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
8015 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
8016 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
8017 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
8018 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
8019 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
8020 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
8021 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
8022 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
8023 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
8024 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
8025 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
8026 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
8027 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
8028 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
8029 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
8030 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
8031 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
8032 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
8033 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
8034 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
8035 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
8036 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
8037 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
8038 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
8039 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
8040 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
8041 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
8042 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
8043 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
8044 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
8045 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
8046 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
8047 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
8048 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
8049 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
8050 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
8051 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
8052 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
8053 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
8054 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
8055 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
8056 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
8057 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
8058 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
8059 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
8060 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
8061 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
8062 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
8063 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008064 .ctext = "\x07\xC2\x08\x20\x72\x1F\x49\xEF"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03008065 "\x19\xCD\x6F\x32\x53\x05\x22\x15"
8066 "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9"
8067 "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4"
8068 "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE"
8069 "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E"
8070 "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C"
8071 "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA"
8072 "\x13\x78\xDC\x89\x12\x12\x43\xFA"
8073 "\xF6\x12\xEF\x8D\x87\x62\x78\x83"
8074 "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B"
8075 "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03"
8076 "\xBF\x45\x73\xD4\xE5\x59\x95\xD1"
8077 "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F"
8078 "\xA4\xD2\x39\x80\xAA\x50\x23\xF0"
8079 "\x74\x88\x3D\xA8\x6A\x18\x79\x3B"
8080 "\xC4\x96\x6C\x8D\x22\x40\x92\x6E"
8081 "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7"
8082 "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC"
8083 "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA"
8084 "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B"
8085 "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B"
8086 "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D"
8087 "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01"
8088 "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0"
8089 "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA"
8090 "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA"
8091 "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2"
8092 "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F"
8093 "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9"
8094 "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C"
8095 "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4"
8096 "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08"
8097 "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D"
8098 "\x14\x28\x0C\xCF\x99\x13\x7A\xF1"
8099 "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1"
8100 "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E"
8101 "\x83\x37\x4F\x1F\x48\x30\xED\x04"
8102 "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C"
8103 "\x41\x8F\x63\x37\x78\x2F\x86\xA6"
8104 "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67"
8105 "\x52\x71\xC3\x8E\xF8\x26\x93\x72"
8106 "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A"
8107 "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C"
8108 "\x52\xBC\x8B\x05\x56\xB2\xBC\x31"
8109 "\x9B\x74\xB9\x29\x29\x96\x9A\x50"
8110 "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4"
8111 "\xD3\x05\x7E\x59\x55\xC3\xF4\x90"
8112 "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1"
8113 "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC"
8114 "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA"
8115 "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65"
8116 "\x32\xDC\x48\xC4\xF2\x00\x6B\x77"
8117 "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A"
8118 "\xA5\x3A\x62\xC8\x91\xB1\x03\x65"
8119 "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC"
8120 "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0"
8121 "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0"
8122 "\x40\x77\x72\xC2\xEA\x0E\x3A\x78"
8123 "\x46\xB9\x91\xB6\xE7\x3D\x51\x42"
8124 "\xFD\x51\xB0\xC6\x2C\x63\x13\x78"
8125 "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008126 .len = 496,
Jussi Kivilinnae080b172012-10-20 14:53:12 +03008127 }, { /* Generated with Crypto++ */
8128 .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00"
8129 "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE"
8130 "\xEB\xB4\x51\x72\xB4\x51\x72\x1F",
8131 .klen = 24,
Eric Biggersc9e1d482019-02-14 00:03:50 -08008132 .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12",
Eric Biggerse674dbc2019-02-14 00:03:53 -08008133 .iv_out = "\xB2\xD7\x48\xED\x06\x44\xF9\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008134 .ptext = "\x05\xEC\x77\xFB\x42\xD5\x59\x20"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03008135 "\x8B\x12\x86\x69\xF0\x5B\xCF\x56"
8136 "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4"
8137 "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A"
8138 "\xFE\x41\x28\x5C\x27\x8E\x11\x85"
8139 "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B"
8140 "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9"
8141 "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F"
8142 "\x53\x3A\x8D\x14\x98\x63\xCA\x5D"
8143 "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC"
8144 "\x77\xDE\x42\xD5\xBC\x07\x8B\x12"
8145 "\xE5\x4C\xF0\x5B\x22\x56\x39\x80"
8146 "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36"
8147 "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41"
8148 "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7"
8149 "\x5E\x21\x55\x3C\x87\x6E\x92\x65"
8150 "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB"
8151 "\x72\xE6\x49\xD0\x44\x2F\xB6\x19"
8152 "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8"
8153 "\x33\x9A\x6D\x91\x78\xC3\x77\xDE"
8154 "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C"
8155 "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2"
8156 "\x45\xC9\x50\x3B\xAF\x36\x99\x60"
8157 "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3"
8158 "\x1A\xED\x74\xF8\x43\x2A\x5E\x21"
8159 "\x88\x13\x87\x6E\xF1\x58\xCC\x57"
8160 "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5"
8161 "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B"
8162 "\xFF\x46\x29\x5D\x24\x8F\x16\x9A"
8163 "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08"
8164 "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE"
8165 "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C"
8166 "\x50\x3B\x82\x15\x99\x60\xCB\x52"
8167 "\xC6\xA9\x30\xA4\x0F\x96\x79\xED"
8168 "\x74\xDF\x43\x2A\xBD\x04\x88\x13"
8169 "\xFA\x4D\xF1\x58\x23\x57\x3E\x81"
8170 "\x68\x9C\x67\xCE\x51\xC5\xAC\x37"
8171 "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46"
8172 "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4"
8173 "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A"
8174 "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8"
8175 "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E"
8176 "\x82\x15\xFC\x47\xCB\x52\x25\xA9"
8177 "\x30\x9B\x62\x96\x79\xC0\x74\xDF"
8178 "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D"
8179 "\xD4\x58\x23\x8A\x1D\x81\x68\xF3"
8180 "\x5A\xCE\x51\x38\xAC\x37\x9E\x61"
8181 "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0"
8182 "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26"
8183 "\x89\x10\x84\x6F\xF6\x59\xCD\x54"
8184 "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA"
8185 "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48"
8186 "\xFC\x47\x2E\x52\x25\x8C\x17\x9B"
8187 "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09"
8188 "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF"
8189 "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D"
8190 "\x51\x38\x83\x6A\x9E\x61\xC8\x53"
8191 "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2"
8192 "\x75\xDC\x40\x2B\xB2\x05\x89\x10"
8193 "\xFB\x42\xF6\x59\x20\x54\x3F\x86"
8194 "\x69\x9D\x64\xCF\x56\xDA\xAD\x34"
8195 "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47"
8196 "\x2E\xB1\x18",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008197 .ctext = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4"
Jussi Kivilinnae080b172012-10-20 14:53:12 +03008198 "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7"
8199 "\x94\x9D\x1B\xFF\x8E\x95\x57\x89"
8200 "\x8C\x2E\x33\x70\x43\x61\xE6\xD2"
8201 "\x82\x33\x63\xB6\xC4\x34\x5E\xF8"
8202 "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA"
8203 "\x7C\xA0\x55\x89\x2E\xE1\x85\x25"
8204 "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF"
8205 "\x08\x2E\x69\xD4\x54\xDE\x22\x84"
8206 "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05"
8207 "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F"
8208 "\x58\x5C\x46\xEA\x07\x40\xDA\xE1"
8209 "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54"
8210 "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5"
8211 "\x97\x5D\x61\x78\x2E\x46\xEC\x6A"
8212 "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29"
8213 "\x9F\x17\x33\x24\xD8\xB9\xB2\x05"
8214 "\x93\x88\xEA\xF7\xA0\x70\x69\x49"
8215 "\x88\x6B\x73\x40\x41\x8D\xD9\xD9"
8216 "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A"
8217 "\x66\xE1\xDA\xED\x10\xFF\x69\x1D"
8218 "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2"
8219 "\x45\x54\x8B\xA3\x70\x23\xB4\x5E"
8220 "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2"
8221 "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2"
8222 "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8"
8223 "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0"
8224 "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E"
8225 "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71"
8226 "\xCE\x05\x49\x89\xBA\xD6\x72\xE7"
8227 "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02"
8228 "\xD6\x43\x22\xAF\xA2\xE4\x80\x85"
8229 "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF"
8230 "\x5C\x82\x2E\x98\x0D\x30\x41\x6B"
8231 "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D"
8232 "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58"
8233 "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40"
8234 "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC"
8235 "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B"
8236 "\xC6\x12\x13\x4F\xCB\x35\xBA\x35"
8237 "\xDD\x7A\x36\x9C\x12\x57\x55\x83"
8238 "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C"
8239 "\x38\xCF\xBD\x79\x5B\x13\x4D\x97"
8240 "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4"
8241 "\x98\xE2\xBD\x77\x6B\x53\x39\x1A"
8242 "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69"
8243 "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15"
8244 "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F"
8245 "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F"
8246 "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA"
8247 "\x8A\x19\x08\xE1\x08\x48\x59\x51"
8248 "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F"
8249 "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA"
8250 "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4"
8251 "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED"
8252 "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75"
8253 "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4"
8254 "\x97\x73\x28\xDE\xCF\xAF\x82\xBD"
8255 "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42"
8256 "\x42\x39\x7C\x53\xA4\xD4\xDD\x40"
8257 "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7"
8258 "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B"
8259 "\xF2\x79\xD9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008260 .len = 499,
Herbert Xuda7f0332008-07-31 17:08:25 +08008261 },
8262};
8263
8264/*
8265 * Blowfish test vectors.
8266 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008267static const struct cipher_testvec bf_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08008268 { /* DES test vectors from OpenSSL */
8269 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
8270 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008271 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
8272 .ctext = "\x4e\xf9\x97\x45\x61\x98\xdd\x78",
8273 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008274 }, {
8275 .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e",
8276 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008277 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
8278 .ctext = "\xa7\x90\x79\x51\x08\xea\x3c\xae",
8279 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008280 }, {
8281 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
8282 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008283 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
8284 .ctext = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82",
8285 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008286 }, { /* Vary the keylength... */
8287 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
8288 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f",
8289 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008290 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
8291 .ctext = "\x93\x14\x28\x87\xee\x3b\xe1\x5c",
8292 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008293 }, {
8294 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
8295 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
8296 "\x00\x11\x22\x33\x44",
8297 .klen = 21,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008298 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
8299 .ctext = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f",
8300 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +08008301 }, { /* Generated with bf488 */
8302 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87"
8303 "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f"
8304 "\x00\x11\x22\x33\x44\x55\x66\x77"
8305 "\x04\x68\x91\x04\xc2\xfd\x3b\x2f"
8306 "\x58\x40\x23\x64\x1a\xba\x61\x76"
8307 "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e"
8308 "\xff\xff\xff\xff\xff\xff\xff\xff",
8309 .klen = 56,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008310 .ptext = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
8311 .ctext = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53",
8312 .len = 8,
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008313 }, { /* Generated with Crypto++ */
8314 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8315 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8316 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8317 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8318 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008319 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008320 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8321 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8322 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008323 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8324 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8325 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8326 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8327 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8328 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8329 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8330 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8331 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8332 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8333 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8334 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8335 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8336 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8337 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8338 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8339 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8340 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8341 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8342 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8343 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8344 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8345 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8346 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8347 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8348 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8349 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8350 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8351 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8352 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8353 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8354 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8355 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8356 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8357 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8358 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8359 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8360 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8361 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8362 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8363 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8364 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8365 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8366 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8367 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8368 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8369 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8370 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8371 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8372 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8373 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8374 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8375 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8376 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8377 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8378 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8379 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8380 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8381 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008382 .ctext = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008383 "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D"
8384 "\xD7\x87\xA1\xF2\xDF\x51\x71\x26"
8385 "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008386 "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B"
8387 "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9"
8388 "\xCD\xF3\x88\x39\x39\x7A\xDF\x19"
8389 "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86"
8390 "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5"
8391 "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D"
8392 "\x6E\x66\xAF\x38\x6C\xD3\x13\xED"
8393 "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A"
8394 "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B"
8395 "\x9D\x5B\x54\x65\x4F\x16\x8A\x97"
8396 "\xF3\xF6\xD4\xAA\x87\x36\x77\x72"
8397 "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D"
8398 "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F"
8399 "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8"
8400 "\x47\x82\x98\x23\x33\x36\xBC\x1B"
8401 "\x36\xE7\xF6\xCF\x97\x37\x16\xC0"
8402 "\x87\x31\x8B\xB0\xDB\x19\x42\xA5"
8403 "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9"
8404 "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71"
8405 "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B"
8406 "\x60\x00\x55\x57\x06\x8B\xD5\xB3"
8407 "\x86\x30\x78\xDA\x33\x9A\x9D\xCC"
8408 "\xBA\x0B\x81\x06\x77\x43\xC7\xC9"
8409 "\xDB\x37\x60\x11\x45\x59\x6D\x2D"
8410 "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C"
8411 "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B"
8412 "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9"
8413 "\x98\xE4\x7F\xC3\x6E\x51\x24\x70"
8414 "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3"
8415 "\xE0\x8A\x44\xA2\x5C\x94\x74\x34"
8416 "\x37\x52\x7C\x03\xE8\x8E\x97\xE1"
8417 "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F"
8418 "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45"
8419 "\x55\xC5\xA7\xA3\x19\x80\x28\x51"
8420 "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB"
8421 "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC"
8422 "\x3E\x42\x14\x49\x88\x51\xBF\x68"
8423 "\x45\x75\x27\x1B\x0A\x72\xED\xAF"
8424 "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3"
8425 "\x34\xDD\x91\x19\x42\x3A\xCB\xDA"
8426 "\x38\xFA\x3C\x93\x62\xF2\xE3\x81"
8427 "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09"
8428 "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2"
8429 "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E"
8430 "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC"
8431 "\x36\x56\x6E\x85\x73\xD7\x52\xBA"
8432 "\x35\x5E\x32\x89\x5D\x42\xF5\x36"
8433 "\x52\x8D\x46\x7D\xC8\x71\xAD\x33"
8434 "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC"
8435 "\xFE\x88\xE6\x16\xE4\xC8\x13\x00"
8436 "\x3C\xDA\x59\x32\x38\x19\xD5\xEB"
8437 "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C"
8438 "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B"
8439 "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29"
8440 "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D"
8441 "\xC9\x0D\x59\x82\x27\x57\x9D\x42"
8442 "\x54\x59\x09\xA5\x3D\xC5\x84\x68"
8443 "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5"
8444 "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008445 .len = 504,
Herbert Xuda7f0332008-07-31 17:08:25 +08008446 },
8447};
8448
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008449static const struct cipher_testvec bf_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08008450 { /* From OpenSSL */
8451 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
8452 "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
8453 .klen = 16,
8454 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggerscdc69462019-02-14 00:03:52 -08008455 .iv_out = "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008456 .ptext = "\x37\x36\x35\x34\x33\x32\x31\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +08008457 "\x4e\x6f\x77\x20\x69\x73\x20\x74"
8458 "\x68\x65\x20\x74\x69\x6d\x65\x20"
8459 "\x66\x6f\x72\x20\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008460 .ctext = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6"
Herbert Xuda7f0332008-07-31 17:08:25 +08008461 "\x05\xb1\x56\xe2\x74\x03\x97\x93"
8462 "\x58\xde\xb9\xe7\x15\x46\x16\xd9"
8463 "\x59\xf1\x65\x2b\xd5\xff\x92\xcc",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008464 .len = 32,
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008465 }, { /* Generated with Crypto++ */
8466 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8467 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8468 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8469 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8470 .klen = 32,
8471 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggerscdc69462019-02-14 00:03:52 -08008472 .iv_out = "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008473 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008474 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8475 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8476 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008477 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8478 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8479 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8480 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8481 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8482 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8483 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8484 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8485 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8486 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8487 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8488 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8489 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8490 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8491 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8492 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8493 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8494 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8495 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8496 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8497 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8498 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8499 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8500 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8501 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8502 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8503 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8504 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8505 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8506 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8507 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8508 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8509 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8510 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8511 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8512 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8513 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8514 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8515 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8516 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8517 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8518 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8519 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8520 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8521 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8522 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8523 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8524 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8525 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8526 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8527 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8528 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8529 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8530 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8531 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8532 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8533 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8534 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8535 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008536 .ctext = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008537 "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62"
8538 "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E"
8539 "\x1B\xD9\x02\xB6\x48\xB0\x87\x25"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008540 "\x01\x9C\x93\x63\x51\x60\x82\xD2"
8541 "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD"
8542 "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F"
8543 "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69"
8544 "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5"
8545 "\x43\x29\x9D\x94\xF4\x2F\x0A\x65"
8546 "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A"
8547 "\x60\xD3\x52\xA8\xED\x91\xDF\xE1"
8548 "\x91\x73\x7C\x28\xA1\x14\xC3\x4C"
8549 "\x82\x72\x4B\x7D\x7D\x32\xD5\x19"
8550 "\xE8\xB8\x6B\x30\x21\x09\x0E\x27"
8551 "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6"
8552 "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13"
8553 "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69"
8554 "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C"
8555 "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40"
8556 "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43"
8557 "\x65\xFE\x15\x40\xD0\x62\x41\x02"
8558 "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE"
8559 "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C"
8560 "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B"
8561 "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A"
8562 "\xC2\x6D\xBD\x5E\x89\x95\x86\x43"
8563 "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24"
8564 "\x04\xF0\x86\x08\x78\x18\x42\xE0"
8565 "\x39\x1B\x22\x9E\x89\x4C\x04\x6B"
8566 "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7"
8567 "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC"
8568 "\xF0\x51\xCC\x93\x68\xFC\xE9\x19"
8569 "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC"
8570 "\x97\x18\x92\xFF\x15\x11\xCE\xED"
8571 "\x04\x41\x05\xA3\x92\xFF\x3B\xE6"
8572 "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04"
8573 "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68"
8574 "\xEF\xB3\x61\x18\xDB\x83\x9B\x39"
8575 "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02"
8576 "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35"
8577 "\x75\x6F\x06\x81\x0A\x97\x4D\xF0"
8578 "\x43\x12\x73\x77\xDB\x91\x83\x5B"
8579 "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50"
8580 "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F"
8581 "\x7E\x12\x40\xB2\x3E\x19\x23\xF1"
8582 "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87"
8583 "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88"
8584 "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A"
8585 "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76"
8586 "\x14\x48\x2E\xDE\x2A\x44\x5E\x45"
8587 "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A"
8588 "\xED\x73\xD3\x79\xF7\x38\x1D\xD0"
8589 "\xC5\xF8\x69\x83\x28\x84\x87\x56"
8590 "\x3F\xAE\x81\x04\x79\x1F\xD1\x09"
8591 "\xC5\xE5\x05\x0D\x64\x16\xCE\x42"
8592 "\xC5\xF8\xDB\x57\x89\x33\x22\xFC"
8593 "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90"
8594 "\x02\xBA\x55\x1E\x24\x3E\x02\x1D"
8595 "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51"
8596 "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9"
8597 "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0"
8598 "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008599 .len = 504,
Herbert Xuda7f0332008-07-31 17:08:25 +08008600 },
8601};
8602
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008603static const struct cipher_testvec bf_ctr_tv_template[] = {
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008604 { /* Generated with Crypto++ */
8605 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8606 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8607 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8608 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8609 .klen = 32,
8610 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggerse674dbc2019-02-14 00:03:53 -08008611 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x9E",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008612 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008613 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8614 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8615 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008616 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8617 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8618 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8619 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8620 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8621 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8622 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8623 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8624 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8625 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8626 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8627 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8628 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8629 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8630 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8631 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8632 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8633 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8634 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8635 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8636 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8637 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8638 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8639 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8640 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8641 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8642 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8643 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8644 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8645 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8646 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8647 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8648 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8649 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8650 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8651 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8652 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8653 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8654 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8655 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8656 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8657 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8658 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8659 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8660 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8661 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8662 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8663 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8664 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8665 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8666 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8667 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8668 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8669 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8670 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8671 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8672 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8673 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8674 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008675 .ctext = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008676 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
8677 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
8678 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008679 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
8680 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
8681 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
8682 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
8683 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
8684 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
8685 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
8686 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
8687 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
8688 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
8689 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
8690 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
8691 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
8692 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
8693 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
8694 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
8695 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
8696 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
8697 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
8698 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
8699 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
8700 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
8701 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
8702 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
8703 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
8704 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
8705 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
8706 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
8707 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
8708 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
8709 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
8710 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
8711 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
8712 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
8713 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
8714 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
8715 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
8716 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
8717 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
8718 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
8719 "\x82\x63\x11\xB3\x54\x49\x00\x08"
8720 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
8721 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
8722 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
8723 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
8724 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
8725 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
8726 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
8727 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
8728 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
8729 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
8730 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
8731 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
8732 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
8733 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
8734 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
8735 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
8736 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
8737 "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008738 .len = 504,
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008739 }, { /* Generated with Crypto++ */
8740 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8741 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8742 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8743 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8744 .klen = 32,
8745 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggerse674dbc2019-02-14 00:03:53 -08008746 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x9E",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008747 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008748 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8749 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8750 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8751 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008752 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8753 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8754 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8755 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8756 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8757 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8758 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8759 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8760 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8761 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8762 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8763 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8764 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8765 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8766 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8767 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8768 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8769 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8770 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8771 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8772 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8773 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8774 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8775 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8776 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8777 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8778 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8779 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8780 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8781 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8782 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8783 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8784 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8785 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8786 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8787 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8788 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8789 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8790 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8791 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8792 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8793 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8794 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8795 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8796 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8797 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8798 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8799 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8800 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8801 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8802 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8803 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8804 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8805 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8806 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8807 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8808 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8809 "\x2B\xC2\x59\xF0\x64\xFB\x92",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008810 .ctext = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D"
Jussi Kivilinna85b63e32011-10-10 23:03:03 +03008811 "\x9E\xDF\x38\x18\x83\x07\xEF\xC1"
8812 "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC"
8813 "\x0D\x70\x86\x5A\x44\xAD\x85\x17"
8814 "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC"
Jussi Kivilinna963ae392012-10-20 14:52:52 +03008815 "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE"
8816 "\x99\x38\x07\xCA\x1D\x21\xC1\x11"
8817 "\x97\xEB\x98\x75\xC4\x73\x45\x83"
8818 "\x46\x1C\x9C\x91\x87\xC1\xA0\x56"
8819 "\x98\xA1\x8B\xDB\x22\x76\xBD\x62"
8820 "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13"
8821 "\x13\xD2\x96\x68\x69\x10\x67\x0C"
8822 "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93"
8823 "\xA6\x82\x20\xCF\x0F\xA6\x47\x79"
8824 "\x88\x09\x40\x59\xBD\x12\x64\xB5"
8825 "\x19\x38\x0D\xFF\x86\xD9\x42\x20"
8826 "\x81\x0D\x96\x99\xAF\x22\x1F\x94"
8827 "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09"
8828 "\x43\x19\x7F\xD0\xBB\x10\xC2\x49"
8829 "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3"
8830 "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04"
8831 "\xFD\x29\x1A\xAC\xC0\x92\x48\x34"
8832 "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A"
8833 "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01"
8834 "\x03\x6A\x45\xDD\x07\x71\x5F\x5B"
8835 "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC"
8836 "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28"
8837 "\xE3\x05\xD2\x94\x78\x4C\x33\x1B"
8838 "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86"
8839 "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC"
8840 "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F"
8841 "\x60\x51\x14\x65\xF9\x91\xE9\xDA"
8842 "\x9A\xBC\xFC\x19\x29\x67\xAA\x63"
8843 "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4"
8844 "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0"
8845 "\xED\x52\xAE\x90\x8F\x5B\x98\x34"
8846 "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6"
8847 "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02"
8848 "\xC1\x90\xA4\x72\x31\x6B\x24\x51"
8849 "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D"
8850 "\x41\xE0\x37\x6D\xBE\x41\x58\xDE"
8851 "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F"
8852 "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2"
8853 "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86"
8854 "\x82\x63\x11\xB3\x54\x49\x00\x08"
8855 "\x07\xF2\xE8\x1F\x34\x49\x61\xF4"
8856 "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F"
8857 "\x66\x99\x08\x06\xF2\xE8\x2D\xD1"
8858 "\xD0\x67\xBA\x32\x1F\x02\x86\x7B"
8859 "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF"
8860 "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B"
8861 "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE"
8862 "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC"
8863 "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA"
8864 "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5"
8865 "\x91\x04\x94\x99\x03\x3B\x42\x6D"
8866 "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8"
8867 "\x5C\x97\x2E\x4D\x79\x67\x71\xAF"
8868 "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E"
8869 "\x23\x8D\xD6\xA6\x68\x10\x78\x9A"
8870 "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5"
8871 "\x32\x44\x96\x1C\xD8\xEB\x95\xD2"
8872 "\xF3\x71\xEF\xEB\x4E\xBB\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008873 .len = 503,
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008874 }, { /* Generated with Crypto++ */
8875 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
8876 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
8877 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
8878 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
8879 .klen = 32,
8880 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggerse674dbc2019-02-14 00:03:53 -08008881 .iv_out = "\x00\x00\x00\x00\x00\x00\x00\x3C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008882 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008883 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
8884 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
8885 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
8886 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
8887 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
8888 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
8889 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
8890 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
8891 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
8892 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
8893 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
8894 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
8895 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
8896 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
8897 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
8898 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
8899 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
8900 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
8901 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
8902 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
8903 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
8904 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
8905 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
8906 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
8907 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
8908 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
8909 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
8910 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
8911 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
8912 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
8913 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
8914 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
8915 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
8916 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
8917 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
8918 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
8919 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
8920 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
8921 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
8922 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
8923 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
8924 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
8925 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
8926 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
8927 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
8928 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
8929 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
8930 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
8931 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
8932 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
8933 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
8934 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
8935 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
8936 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
8937 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
8938 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
8939 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
8940 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
8941 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
8942 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
8943 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
8944 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07008945 .ctext = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03008946 "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82"
8947 "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F"
8948 "\x25\xF9\x27\x21\xF2\xD2\x9A\x01"
8949 "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE"
8950 "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2"
8951 "\x62\x44\x72\xB9\x5D\xC0\xF8\x37"
8952 "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2"
8953 "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18"
8954 "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60"
8955 "\xF8\x98\xA2\x39\x81\x23\x6C\xA9"
8956 "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44"
8957 "\x2A\x67\x7A\x88\x28\xDC\x36\x83"
8958 "\x18\xD7\x48\x43\x17\x2B\x1B\xE6"
8959 "\x0B\x82\x59\x14\x26\x67\x08\x09"
8960 "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A"
8961 "\xCD\x22\x94\x42\xF5\xBA\x74\x7E"
8962 "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E"
8963 "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8"
8964 "\xF4\xCC\x19\x76\xAB\x48\x29\xAA"
8965 "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21"
8966 "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F"
8967 "\x59\x28\x1A\xE4\x18\x16\xA0\x29"
8968 "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E"
8969 "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D"
8970 "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD"
8971 "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31"
8972 "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB"
8973 "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8"
8974 "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F"
8975 "\xC5\xE9\x09\x08\xDD\x22\x77\x42"
8976 "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C"
8977 "\xF0\xFF\x15\x8E\x84\x86\xC0\x10"
8978 "\x0F\x8D\x33\x06\xB8\x72\xA4\x47"
8979 "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B"
8980 "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2"
8981 "\x63\x66\x07\x6D\x3F\x6C\x51\x7C"
8982 "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D"
8983 "\xB4\x19\xD8\x19\x45\x66\x27\x02"
8984 "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D"
8985 "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1"
8986 "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7"
8987 "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53"
8988 "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3"
8989 "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8"
8990 "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A"
8991 "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E"
8992 "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37"
8993 "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22"
8994 "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9"
8995 "\x91\x51\x4E\x71\xF2\x98\x85\x16"
8996 "\x25\x7A\x76\x8A\x51\x0E\x65\x14"
8997 "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A"
8998 "\xE1\xCF\x41\x72\x14\x29\x4C\xF0"
8999 "\x20\xD9\x9A\xC5\x66\xA4\x03\x76"
9000 "\x5B\xA4\x15\x4F\x0E\x64\x39\x40"
9001 "\x25\xF9\x20\x22\xF5\x88\xF5\xBA"
9002 "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24"
9003 "\x4B\x92\x71\xD9\x2F\x77\xA7\x95"
9004 "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB"
9005 "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0"
9006 "\x16\x4C\x18\x6B\xF2\x69\xA0\x07"
9007 "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009008 .len = 504,
Herbert Xuda7f0332008-07-31 17:08:25 +08009009 },
9010};
9011
9012/*
9013 * Twofish test vectors.
9014 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009015static const struct cipher_testvec tf_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08009016 {
9017 .key = zeroed_string,
9018 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009019 .ptext = zeroed_string,
9020 .ctext = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +08009021 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009022 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08009023 }, {
9024 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
9025 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
9026 "\x00\x11\x22\x33\x44\x55\x66\x77",
9027 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009028 .ptext = zeroed_string,
9029 .ctext = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf"
Herbert Xuda7f0332008-07-31 17:08:25 +08009030 "\x50\x1f\x13\xb8\x92\xbd\x22\x48",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009031 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08009032 }, {
9033 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
9034 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
9035 "\x00\x11\x22\x33\x44\x55\x66\x77"
9036 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
9037 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009038 .ptext = zeroed_string,
9039 .ctext = "\x37\x52\x7b\xe0\x05\x23\x34\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +08009040 "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009041 .len = 16,
Jussi Kivilinna573da622011-10-10 23:03:12 +03009042 }, { /* Generated with Crypto++ */
9043 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
9044 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
9045 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
9046 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
9047 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009048 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009049 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9050 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9051 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9052 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9053 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9054 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009055 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9056 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9057 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9058 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9059 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9060 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9061 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9062 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9063 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9064 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9065 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9066 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9067 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9068 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9069 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9070 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9071 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9072 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9073 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9074 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9075 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9076 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9077 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9078 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9079 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9080 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9081 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9082 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9083 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9084 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9085 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9086 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9087 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9088 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9089 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9090 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9091 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9092 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9093 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9094 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9095 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9096 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9097 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9098 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9099 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9100 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9101 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9102 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9103 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9104 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9105 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9106 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9107 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9108 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9109 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009110 .ctext = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009111 "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC"
9112 "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D"
9113 "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14"
9114 "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5"
9115 "\xDF\xFA\xC7\xE8\x09\x50\x76\x08"
9116 "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009117 "\x89\xF6\x82\xF0\xD3\xDB\x06\x02"
9118 "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43"
9119 "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40"
9120 "\x80\x27\x88\xBA\x2C\x74\x42\xE0"
9121 "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A"
9122 "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A"
9123 "\x91\x75\x47\xBC\x67\x21\x4E\xF9"
9124 "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C"
9125 "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22"
9126 "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C"
9127 "\xC6\x24\x42\xB8\x23\x66\x80\xA9"
9128 "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63"
9129 "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3"
9130 "\x33\x62\x70\xE2\x1B\x86\x7A\xA1"
9131 "\x51\x4A\x16\xFE\x29\x63\x7E\xD0"
9132 "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8"
9133 "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66"
9134 "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B"
9135 "\xB6\x41\x42\x64\x43\xEE\x6E\x7C"
9136 "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F"
9137 "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97"
9138 "\x66\xA3\x96\x0F\x1C\x25\x60\xF5"
9139 "\x3C\x2E\x32\x69\x0E\x82\xFF\x27"
9140 "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C"
9141 "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A"
9142 "\x1B\x42\x1F\x5B\x29\x19\x96\x13"
9143 "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B"
9144 "\x81\x77\x6D\xF4\xA0\x01\x42\xEC"
9145 "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB"
9146 "\x83\x54\xDF\x0F\x86\xB7\xEA\x40"
9147 "\x46\x39\xF7\x2A\x89\x8D\x4E\x96"
9148 "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D"
9149 "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16"
9150 "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D"
9151 "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41"
9152 "\xC6\xBD\x36\xEF\xED\x29\x50\x6D"
9153 "\x10\xEF\x26\xE8\xA8\x93\x11\x3F"
9154 "\x2D\x1F\x88\x20\x77\x45\xF5\x66"
9155 "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81"
9156 "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C"
9157 "\xB2\x10\x7A\xCA\x05\x25\x59\xDB"
9158 "\xC7\x28\xF5\x20\x35\x52\x9E\x62"
9159 "\xF8\x88\x24\x1C\x4D\x84\x12\x39"
9160 "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC"
9161 "\x87\x66\xE6\xC0\x6B\x31\x9A\x66"
9162 "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F"
9163 "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD"
9164 "\xA3\x63\xE2\x71\x4F\x03\x94\x87"
9165 "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F"
9166 "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D"
9167 "\x84\x9B\x2A\xE9\x55\xDD\x46\x91"
9168 "\x15\x33\xF3\x2B\x9B\x46\x97\x00"
9169 "\xF0\x29\xD8\x59\x5D\x33\x37\xF9"
9170 "\x58\x33\x9B\x78\xC7\x58\x48\x6B"
9171 "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009172 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +08009173 },
9174};
9175
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009176static const struct cipher_testvec tf_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +08009177 { /* Generated with Nettle */
9178 .key = zeroed_string,
9179 .klen = 16,
9180 .iv = zeroed_string,
Eric Biggerscdc69462019-02-14 00:03:52 -08009181 .iv_out = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
9182 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009183 .ptext = zeroed_string,
9184 .ctext = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +08009185 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009186 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08009187 }, {
9188 .key = zeroed_string,
9189 .klen = 16,
9190 .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
9191 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a",
Eric Biggerscdc69462019-02-14 00:03:52 -08009192 .iv_out = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
9193 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009194 .ptext = zeroed_string,
9195 .ctext = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
Herbert Xuda7f0332008-07-31 17:08:25 +08009196 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009197 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08009198 }, {
9199 .key = zeroed_string,
9200 .klen = 16,
9201 .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
9202 "\x86\xcb\x08\x6b\x78\x9f\x54\x19",
Eric Biggerscdc69462019-02-14 00:03:52 -08009203 .iv_out = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
9204 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009205 .ptext = zeroed_string,
9206 .ctext = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
Herbert Xuda7f0332008-07-31 17:08:25 +08009207 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009208 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +08009209 }, {
9210 .key = zeroed_string,
9211 .klen = 16,
9212 .iv = zeroed_string,
Eric Biggerscdc69462019-02-14 00:03:52 -08009213 .iv_out = "\x05\xef\x8c\x61\xa8\x11\x58\x26"
9214 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009215 .ptext = zeroed_string,
9216 .ctext = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +08009217 "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a"
9218 "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e"
9219 "\x86\xcb\x08\x6b\x78\x9f\x54\x19"
9220 "\x05\xef\x8c\x61\xa8\x11\x58\x26"
9221 "\x34\xba\x5c\xb7\x10\x6a\xa6\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009222 .len = 48,
Jussi Kivilinna573da622011-10-10 23:03:12 +03009223 }, { /* Generated with Crypto++ */
9224 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9225 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9226 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9227 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9228 .klen = 32,
9229 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9230 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerscdc69462019-02-14 00:03:52 -08009231 .iv_out = "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
9232 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009233 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009234 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9235 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9236 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9237 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9238 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9239 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009240 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9241 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9242 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9243 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9244 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9245 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9246 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9247 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9248 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9249 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9250 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9251 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9252 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9253 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9254 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9255 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9256 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9257 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9258 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9259 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9260 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9261 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9262 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9263 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9264 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9265 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9266 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9267 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9268 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9269 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9270 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9271 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9272 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9273 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9274 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9275 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9276 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9277 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9278 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9279 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9280 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9281 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9282 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9283 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9284 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9285 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9286 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9287 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9288 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9289 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9290 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9291 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9292 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9293 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9294 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009295 .ctext = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009296 "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5"
9297 "\x26\x1B\x05\x0C\x05\x12\x3F\xC0"
9298 "\xF9\x1C\x02\x28\x40\x96\x6F\xD0"
9299 "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE"
9300 "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC"
9301 "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009302 "\xB1\xD3\x44\x65\xDF\xE7\x63\x38"
9303 "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8"
9304 "\x43\xFC\xFE\x18\xB5\x11\x6D\x31"
9305 "\x81\x8B\x0D\x75\xF6\x80\xEC\x84"
9306 "\x04\xB9\xE6\x09\x63\xED\x39\xDB"
9307 "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD"
9308 "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63"
9309 "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80"
9310 "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68"
9311 "\x45\xDD\xC8\x83\x1D\x41\x96\x0D"
9312 "\x91\x2E\x05\xD3\x59\x82\xE0\x43"
9313 "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF"
9314 "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C"
9315 "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3"
9316 "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC"
9317 "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF"
9318 "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38"
9319 "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34"
9320 "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60"
9321 "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7"
9322 "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8"
9323 "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25"
9324 "\x94\x70\x74\x0E\x1D\xC5\xBC\x12"
9325 "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55"
9326 "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3"
9327 "\x75\x42\x62\x04\x31\x1F\x95\x7C"
9328 "\x66\x1A\x97\xDC\x2F\x40\x5C\x39"
9329 "\x78\xE6\x02\xDB\x49\xE1\xC6\x47"
9330 "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93"
9331 "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7"
9332 "\xC2\x89\xF3\x91\x88\x83\x3D\xF0"
9333 "\x29\xA2\xCD\xB5\x79\x16\xC2\x40"
9334 "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4"
9335 "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B"
9336 "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF"
9337 "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA"
9338 "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C"
9339 "\x78\xB6\xC9\xBF\xF9\x78\x57\x88"
9340 "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8"
9341 "\xEE\xC4\xBE\x7B\x55\x59\x00\x48"
9342 "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C"
9343 "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE"
9344 "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D"
9345 "\xBC\x68\x9C\x91\x2A\x59\x57\x04"
9346 "\xED\x1A\x1E\x00\xB1\x85\x92\x04"
9347 "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7"
9348 "\x4C\x3E\xB0\xE7\x86\x62\x68\x91"
9349 "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93"
9350 "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64"
9351 "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD"
9352 "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1"
9353 "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39"
9354 "\x69\xA1\x62\xBD\x49\x3A\x9D\x91"
9355 "\x30\x70\x56\xA4\x37\xDD\x7C\xC0"
9356 "\x0A\xA3\x30\x10\x26\x25\x41\x2C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009357 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +08009358 },
9359};
9360
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009361static const struct cipher_testvec tf_ctr_tv_template[] = {
Jussi Kivilinna573da622011-10-10 23:03:12 +03009362 { /* Generated with Crypto++ */
9363 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9364 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9365 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9366 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9367 .klen = 32,
9368 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9369 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerse674dbc2019-02-14 00:03:53 -08009370 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9371 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x83",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009372 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009373 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9374 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9375 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9376 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9377 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9378 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009379 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9380 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9381 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9382 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9383 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9384 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9385 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9386 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9387 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9388 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9389 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9390 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9391 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9392 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9393 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9394 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9395 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9396 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9397 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9398 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9399 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9400 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9401 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9402 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9403 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9404 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9405 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9406 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9407 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9408 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9409 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9410 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9411 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9412 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9413 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9414 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9415 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9416 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9417 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9418 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9419 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9420 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9421 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9422 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9423 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9424 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9425 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9426 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9427 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9428 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9429 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9430 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9431 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9432 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9433 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009434 .ctext = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009435 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9436 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9437 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9438 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9439 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9440 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009441 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
9442 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9443 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9444 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9445 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9446 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9447 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9448 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9449 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9450 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9451 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9452 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9453 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9454 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9455 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9456 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9457 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9458 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9459 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9460 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9461 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9462 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9463 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9464 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9465 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9466 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9467 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9468 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9469 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9470 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9471 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9472 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9473 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9474 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9475 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9476 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9477 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9478 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9479 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9480 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9481 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9482 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9483 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9484 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9485 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9486 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9487 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9488 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9489 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9490 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9491 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9492 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9493 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9494 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9495 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009496 .len = 496,
Jussi Kivilinna573da622011-10-10 23:03:12 +03009497 }, { /* Generated with Crypto++ */
9498 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9499 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9500 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9501 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9502 .klen = 32,
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009503 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
9504 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggerse674dbc2019-02-14 00:03:53 -08009505 .iv_out = "\x00\x00\x00\x00\x00\x00\x00\x00"
9506 "\x00\x00\x00\x00\x00\x00\x00\x1C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009507 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009508 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9509 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9510 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9511 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9512 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9513 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9514 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
9515 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9516 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9517 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9518 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9519 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9520 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9521 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9522 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9523 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9524 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9525 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9526 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9527 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9528 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9529 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9530 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9531 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9532 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9533 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9534 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9535 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9536 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9537 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9538 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9539 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9540 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9541 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9542 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9543 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9544 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9545 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9546 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9547 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9548 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9549 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9550 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9551 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9552 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9553 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9554 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9555 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9556 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9557 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9558 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9559 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9560 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9561 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9562 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9563 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9564 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9565 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9566 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9567 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9568 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009569 .ctext = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44"
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009570 "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C"
9571 "\x53\xC8\x16\x38\xDE\x40\x4F\x91"
9572 "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA"
9573 "\x88\x7E\x89\xE9\x67\x2B\x83\xA2"
9574 "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B"
9575 "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3"
9576 "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33"
9577 "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E"
9578 "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0"
9579 "\x64\x89\x9F\x6A\x27\x96\x07\xA6"
9580 "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01"
9581 "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34"
9582 "\x39\x18\x09\xA4\x82\x59\x78\xE7"
9583 "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2"
9584 "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3"
9585 "\xE6\x87\x31\x9E\x16\x85\xAD\xB1"
9586 "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E"
9587 "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3"
9588 "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF"
9589 "\x89\x16\x4D\x2D\xA2\x26\x33\x72"
9590 "\x18\x33\x7E\xD6\xD2\x16\xA4\x54"
9591 "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB"
9592 "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2"
9593 "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19"
9594 "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E"
9595 "\xAC\x00\xE3\x50\x63\x4A\x80\x9A"
9596 "\x05\xBC\x50\x39\xD3\x32\xD9\x0D"
9597 "\xE3\x20\x0D\x75\x54\xEC\xE6\x31"
9598 "\x14\xB9\x3A\x59\x00\x43\x37\x8E"
9599 "\x8C\x5A\x79\x62\x14\x76\x8A\xAE"
9600 "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D"
9601 "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60"
9602 "\xC9\x87\xB1\x79\x1E\xA5\x86\x68"
9603 "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73"
9604 "\xD0\xDA\x75\x77\x9E\x05\x27\xF1"
9605 "\x08\xA9\x66\x64\x6C\xBC\x82\x17"
9606 "\x2C\x23\x5F\x62\x4D\x02\x1A\x58"
9607 "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF"
9608 "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83"
9609 "\x95\x87\x13\x57\x60\xD7\xB5\xB1"
9610 "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D"
9611 "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF"
9612 "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A"
9613 "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8"
9614 "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0"
9615 "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC"
9616 "\xDE\x55\x1B\x50\x14\x53\x44\x17"
9617 "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A"
9618 "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B"
9619 "\x1A\x09\x97\xA9\xB6\x97\x79\x06"
9620 "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1"
9621 "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5"
9622 "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D"
9623 "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23"
9624 "\x41\x67\xA1\x24\x99\x7E\xCC\x9B"
9625 "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A"
9626 "\xF4\x78\xFD\x79\x62\x63\x4F\x14"
9627 "\xD6\x11\x11\x04\x05\x5F\x7E\xEA"
9628 "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54"
9629 "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B"
9630 "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009631 .len = 496,
Jussi Kivilinna549595a2012-09-19 09:42:59 +03009632 }, { /* Generated with Crypto++ */
9633 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
9634 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
9635 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
9636 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
9637 .klen = 32,
Jussi Kivilinna573da622011-10-10 23:03:12 +03009638 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9639 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerse674dbc2019-02-14 00:03:53 -08009640 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
9641 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x84",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009642 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009643 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
9644 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
9645 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
9646 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
9647 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
9648 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
9649 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009650 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
9651 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
9652 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
9653 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
9654 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
9655 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
9656 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
9657 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
9658 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
9659 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
9660 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
9661 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
9662 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
9663 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
9664 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
9665 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
9666 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
9667 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
9668 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
9669 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
9670 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
9671 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
9672 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
9673 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
9674 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
9675 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
9676 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
9677 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
9678 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
9679 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
9680 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
9681 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
9682 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
9683 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
9684 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
9685 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
9686 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
9687 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
9688 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
9689 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
9690 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
9691 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
9692 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
9693 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
9694 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
9695 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
9696 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
9697 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
9698 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
9699 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
9700 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
9701 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
9702 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
9703 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
9704 "\x2B\xC2\x59",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009705 .ctext = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE"
Jussi Kivilinna573da622011-10-10 23:03:12 +03009706 "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30"
9707 "\x26\x9B\x89\xA1\xEE\x43\xE0\x52"
9708 "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1"
9709 "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0"
9710 "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA"
9711 "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60"
9712 "\x01\x41\x21\x12\x38\xAB\x52\x4F"
Johannes Goetzfried4da7de42012-05-28 15:55:38 +02009713 "\xA8\x57\x20\xE0\x21\x6A\x17\x0D"
9714 "\x0E\xF9\x8E\x49\x42\x00\x3C\x94"
9715 "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29"
9716 "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC"
9717 "\x29\x35\x25\x2F\xE7\x11\x6C\x68"
9718 "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9"
9719 "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA"
9720 "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E"
9721 "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E"
9722 "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C"
9723 "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69"
9724 "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58"
9725 "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C"
9726 "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06"
9727 "\x02\xC5\x03\x9D\xC4\x48\x15\x66"
9728 "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB"
9729 "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A"
9730 "\x23\x61\x48\xEA\x80\x04\x27\xAA"
9731 "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A"
9732 "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23"
9733 "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D"
9734 "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D"
9735 "\x96\xBA\x36\x11\x45\x41\xDA\xCE"
9736 "\xA4\x48\x80\x8B\x06\xF4\x98\x89"
9737 "\x8B\x23\x08\x53\xF4\xD4\x5A\x24"
9738 "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0"
9739 "\xF8\xFE\x09\x0C\x75\x05\x38\x0B"
9740 "\x7C\x81\xDE\x9D\xE4\x61\x37\x63"
9741 "\x63\xAD\x12\xD2\x04\xB9\xCE\x45"
9742 "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74"
9743 "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5"
9744 "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4"
9745 "\xEB\x6E\x96\xE8\x43\x80\xB5\x51"
9746 "\x61\x2D\x48\xAA\x07\x65\x11\x8C"
9747 "\x48\xE3\x90\x7E\x78\x3A\xEC\x97"
9748 "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD"
9749 "\x83\x29\x0E\x1A\x81\x73\x7B\xE0"
9750 "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D"
9751 "\x49\xA4\x2F\x6E\xBE\x68\x99\x08"
9752 "\x99\xAA\x4C\x12\x04\xAE\x1F\x77"
9753 "\x35\x88\xF1\x65\x06\x0A\x0B\x4D"
9754 "\x47\xF9\x50\x38\x5D\x71\xF9\x6E"
9755 "\xDE\xEC\x61\x35\x2C\x4C\x96\x50"
9756 "\xE8\x28\x93\x9C\x7E\x01\xC6\x04"
9757 "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D"
9758 "\x11\xE9\x43\x83\x76\xAA\x53\x37"
9759 "\x0C\x1D\x39\x89\x53\x72\x09\x7E"
9760 "\xD9\x85\x16\x04\xA5\x2C\x05\x6F"
9761 "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9"
9762 "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D"
9763 "\x7C\x36\xC7\x71\x70\x9C\x10\xD8"
9764 "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3"
9765 "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC"
9766 "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF"
9767 "\x6C\x82\x9D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009768 .len = 499,
Jussi Kivilinna573da622011-10-10 23:03:12 +03009769 },
9770};
9771
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009772static const struct cipher_testvec tf_lrw_tv_template[] = {
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009773 /* Generated from AES-LRW test vectors */
9774 {
9775 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
9776 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
9777 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
9778 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
9779 .klen = 32,
9780 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9781 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009782 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009783 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009784 .ctext = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009785 "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009786 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009787 }, {
9788 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
9789 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
9790 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
9791 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
9792 .klen = 32,
9793 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9794 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009795 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009796 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009797 .ctext = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009798 "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009799 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009800 }, {
9801 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
9802 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
9803 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
9804 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
9805 .klen = 32,
9806 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9807 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009808 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009809 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009810 .ctext = "\x85\xa7\x56\x67\x08\xfa\x42\xe1"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009811 "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009812 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009813 }, {
9814 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
9815 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
9816 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
9817 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
9818 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
9819 .klen = 40,
9820 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9821 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009822 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009823 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009824 .ctext = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009825 "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009826 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009827 }, {
9828 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
9829 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
9830 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
9831 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
9832 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
9833 .klen = 40,
9834 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9835 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009836 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009837 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009838 .ctext = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009839 "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009840 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009841 }, {
9842 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9843 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9844 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9845 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9846 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9847 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9848 .klen = 48,
9849 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9850 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009851 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009852 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009853 .ctext = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009854 "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009855 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009856 }, {
9857 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
9858 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
9859 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
9860 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
9861 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
9862 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
9863 .klen = 48,
9864 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9865 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009866 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009867 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009868 .ctext = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009869 "\x17\x66\x5e\x0c\x14\xa1\x3d\x40",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009870 .len = 16,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009871 }, {
9872 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
9873 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
9874 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
9875 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
9876 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
9877 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
9878 .klen = 48,
9879 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
9880 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009881 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009882 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
9883 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
9884 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
9885 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
9886 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
9887 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
9888 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
9889 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
9890 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
9891 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
9892 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
9893 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
9894 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
9895 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
9896 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
9897 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
9898 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
9899 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
9900 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
9901 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
9902 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
9903 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
9904 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
9905 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
9906 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
9907 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
9908 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
9909 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
9910 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
9911 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
9912 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
9913 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
9914 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
9915 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
9916 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
9917 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
9918 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
9919 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
9920 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
9921 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
9922 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
9923 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
9924 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
9925 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
9926 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
9927 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
9928 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
9929 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
9930 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
9931 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
9932 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
9933 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
9934 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
9935 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
9936 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
9937 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
9938 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
9939 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
9940 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
9941 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
9942 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
9943 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
9944 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -07009945 .ctext = "\x30\x38\xeb\xaf\x12\x43\x1a\x89"
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +03009946 "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9"
9947 "\x08\xc3\x0d\xdd\x95\xab\x19\x96"
9948 "\x27\x52\x41\xc3\xca\xfb\xf6\xee"
9949 "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a"
9950 "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45"
9951 "\x42\xe9\x29\xc0\xb4\x07\xb4\x31"
9952 "\x66\x77\x72\xb5\xb6\xb3\x57\x46"
9953 "\x34\x9a\xfe\x03\xaf\x6b\x36\x07"
9954 "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d"
9955 "\xfb\x6d\x82\x51\xb6\x98\xd0\x71"
9956 "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d"
9957 "\x72\x2b\x54\x13\xe3\x6d\x79\x37"
9958 "\xa9\x39\x2c\xdf\x21\xab\x87\xd5"
9959 "\xee\xef\x9a\x12\x50\x39\x2e\x1b"
9960 "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac"
9961 "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08"
9962 "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25"
9963 "\x31\x9d\xef\xb1\x1d\x27\x55\x04"
9964 "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a"
9965 "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb"
9966 "\x26\xbe\x4f\x27\x04\x42\xd1\x44"
9967 "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf"
9968 "\x1d\x28\x14\xfd\xb1\x1a\x34\x18"
9969 "\xf5\x1e\x28\x69\x95\x6a\x5a\xba"
9970 "\x8e\xb2\x58\x1d\x28\x17\x13\x3d"
9971 "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8"
9972 "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b"
9973 "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a"
9974 "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a"
9975 "\x63\xa5\x99\x82\x09\x72\x8f\xc6"
9976 "\xa4\x62\x24\x69\x8c\x2d\x26\x00"
9977 "\x99\x83\x91\xd6\xc6\xcf\x57\x67"
9978 "\x38\xea\xf2\xfc\x29\xe0\x73\x39"
9979 "\xf9\x13\x94\x6d\xe2\x58\x28\x75"
9980 "\x3e\xae\x71\x90\x07\x70\x1c\x38"
9981 "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef"
9982 "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22"
9983 "\x82\x09\xe3\x18\x3f\x4f\x48\xfc"
9984 "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b"
9985 "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e"
9986 "\xc3\xac\x4a\xed\xe7\x82\xef\x31"
9987 "\x1f\x1a\x51\x1e\x29\x60\xc8\x98"
9988 "\x93\x51\x1d\x3d\x62\x59\x83\x82"
9989 "\x0c\xf1\xd7\x8d\xac\x33\x44\x81"
9990 "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4"
9991 "\xec\xdc\x24\xfd\x0e\x1a\x79\x94"
9992 "\x34\xb0\x62\xfa\x98\x49\x26\x1f"
9993 "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe"
9994 "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc"
9995 "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c"
9996 "\xdb\xf6\x21\x80\xf7\x5a\x37\x15"
9997 "\x0c\xe3\x36\xc8\x74\x75\x20\x91"
9998 "\xdf\x52\x2d\x0c\xe7\x45\xff\x46"
9999 "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6"
10000 "\x26\xa2\x5d\x7d\x61\xbf\x10\x46"
10001 "\x57\x8d\x05\x96\x70\x0b\xd6\x41"
10002 "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd"
10003 "\x5f\x92\x81\x6e\x35\x03\xd4\x72"
10004 "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23"
10005 "\x45\x5d\xec\x72\xc1\x52\xef\x2e"
10006 "\x81\x00\xd3\xfe\x4c\x3c\x05\x61"
10007 "\x80\x18\xc4\x6c\x03\xd3\xb7\xba"
10008 "\x11\xd7\xb8\x6e\xea\xe1\x80\x30",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010009 .len = 512,
Jussi Kivilinna0b2a1552011-10-18 13:32:50 +030010010 },
10011};
10012
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010013static const struct cipher_testvec tf_xts_tv_template[] = {
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010014 /* Generated from AES-XTS test vectors */
10015{
10016 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
10017 "\x00\x00\x00\x00\x00\x00\x00\x00"
10018 "\x00\x00\x00\x00\x00\x00\x00\x00"
10019 "\x00\x00\x00\x00\x00\x00\x00\x00",
10020 .klen = 32,
10021 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10022 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010023 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010024 "\x00\x00\x00\x00\x00\x00\x00\x00"
10025 "\x00\x00\x00\x00\x00\x00\x00\x00"
10026 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010027 .ctext = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010028 "\x30\x74\xe4\x44\x52\x77\x97\x43"
10029 "\xa7\x60\xb2\x45\x2e\xf9\x00\x90"
10030 "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010031 .len = 32,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010032 }, {
10033 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
10034 "\x11\x11\x11\x11\x11\x11\x11\x11"
10035 "\x22\x22\x22\x22\x22\x22\x22\x22"
10036 "\x22\x22\x22\x22\x22\x22\x22\x22",
10037 .klen = 32,
10038 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10039 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010040 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010041 "\x44\x44\x44\x44\x44\x44\x44\x44"
10042 "\x44\x44\x44\x44\x44\x44\x44\x44"
10043 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010044 .ctext = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010045 "\x32\xd3\xbd\x36\x05\x15\x44\x2c"
10046 "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5"
10047 "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010048 .len = 32,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010049 }, {
10050 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
10051 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
10052 "\x22\x22\x22\x22\x22\x22\x22\x22"
10053 "\x22\x22\x22\x22\x22\x22\x22\x22",
10054 .klen = 32,
10055 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
10056 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010057 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010058 "\x44\x44\x44\x44\x44\x44\x44\x44"
10059 "\x44\x44\x44\x44\x44\x44\x44\x44"
10060 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010061 .ctext = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010062 "\x40\x0c\x89\x56\xf6\x4d\xa7\x07"
10063 "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2"
10064 "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010065 .len = 32,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010066 }, {
10067 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10068 "\x23\x53\x60\x28\x74\x71\x35\x26"
10069 "\x31\x41\x59\x26\x53\x58\x97\x93"
10070 "\x23\x84\x62\x64\x33\x83\x27\x95",
10071 .klen = 32,
10072 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
10073 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010074 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010075 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10076 "\x10\x11\x12\x13\x14\x15\x16\x17"
10077 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10078 "\x20\x21\x22\x23\x24\x25\x26\x27"
10079 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10080 "\x30\x31\x32\x33\x34\x35\x36\x37"
10081 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10082 "\x40\x41\x42\x43\x44\x45\x46\x47"
10083 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10084 "\x50\x51\x52\x53\x54\x55\x56\x57"
10085 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10086 "\x60\x61\x62\x63\x64\x65\x66\x67"
10087 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10088 "\x70\x71\x72\x73\x74\x75\x76\x77"
10089 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10090 "\x80\x81\x82\x83\x84\x85\x86\x87"
10091 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10092 "\x90\x91\x92\x93\x94\x95\x96\x97"
10093 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10094 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10095 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10096 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10097 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10098 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10099 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10100 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10101 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10102 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10103 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10104 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10105 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10106 "\x00\x01\x02\x03\x04\x05\x06\x07"
10107 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10108 "\x10\x11\x12\x13\x14\x15\x16\x17"
10109 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10110 "\x20\x21\x22\x23\x24\x25\x26\x27"
10111 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10112 "\x30\x31\x32\x33\x34\x35\x36\x37"
10113 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10114 "\x40\x41\x42\x43\x44\x45\x46\x47"
10115 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10116 "\x50\x51\x52\x53\x54\x55\x56\x57"
10117 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10118 "\x60\x61\x62\x63\x64\x65\x66\x67"
10119 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10120 "\x70\x71\x72\x73\x74\x75\x76\x77"
10121 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10122 "\x80\x81\x82\x83\x84\x85\x86\x87"
10123 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10124 "\x90\x91\x92\x93\x94\x95\x96\x97"
10125 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10126 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10127 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10128 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10129 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10130 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10131 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10132 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10133 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10134 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10135 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10136 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10137 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010138 .ctext = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010139 "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0"
10140 "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58"
10141 "\xb8\x2d\xb9\x5d\x58\x07\x66\x50"
10142 "\xea\x35\x35\x8c\xb2\x46\x61\x06"
10143 "\x5d\x65\xfc\x57\x8f\x69\x74\xab"
10144 "\x8a\x06\x69\xb5\x6c\xda\x66\xc7"
10145 "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2"
10146 "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3"
10147 "\x32\x36\x7c\x97\x6b\x4e\x8a\x50"
10148 "\xe4\x91\x83\x96\x8f\xf4\x94\x1a"
10149 "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f"
10150 "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e"
10151 "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53"
10152 "\x01\x73\x68\x32\x25\x19\xfa\xfb"
10153 "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31"
10154 "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6"
10155 "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11"
10156 "\x39\x80\x39\x09\x97\x65\xf2\x83"
10157 "\xae\xe6\xa1\x6f\x47\xb8\x49\xde"
10158 "\x99\x36\x20\x7d\x97\x3b\xec\xfa"
10159 "\xb4\x33\x6e\x7a\xc7\x46\x84\x49"
10160 "\x91\xcd\xe1\x57\x0d\xed\x40\x08"
10161 "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6"
10162 "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47"
10163 "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a"
10164 "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12"
10165 "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3"
10166 "\xca\x1c\xa3\x8e\xed\x39\x28\xb5"
10167 "\x10\x1b\x4b\x08\x42\x00\x4a\xd3"
10168 "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4"
10169 "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d"
10170 "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20"
10171 "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24"
10172 "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47"
10173 "\x24\x65\x63\x7e\xbd\x8c\xe6\x52"
10174 "\x7d\xef\x33\x53\x63\xec\xaa\x0b"
10175 "\x64\x15\xa9\xa6\x1f\x10\x00\x38"
10176 "\x35\xa8\xe7\xbe\x23\x70\x22\xe0"
10177 "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50"
10178 "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c"
10179 "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71"
10180 "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e"
10181 "\x7a\x74\x85\xa9\x6a\x90\xab\x2c"
10182 "\x38\x51\xbc\x1f\x43\x4a\x56\x1c"
10183 "\xf8\x47\x03\x4e\x67\xa8\x1f\x99"
10184 "\x04\x39\x73\x32\xb2\x86\x79\xe7"
10185 "\x14\x28\x70\xb8\xe2\x7d\x69\x85"
10186 "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6"
10187 "\x09\x0f\x75\xf7\xb6\x81\xd2\x11"
10188 "\x20\x9c\xa1\xee\x11\x44\x79\xd0"
10189 "\xb2\x34\x77\xda\x10\x9a\x6f\x6f"
10190 "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd"
10191 "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac"
10192 "\xfe\x2f\x85\x00\x44\xdf\x33\x16"
10193 "\x35\xb6\xa3\xd3\x70\xdf\x69\x35"
10194 "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e"
10195 "\x5a\x14\x30\xd0\x55\x3e\x4f\x64"
10196 "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26"
10197 "\x75\xae\xf6\xb5\x23\x0b\x17\x31"
10198 "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f"
10199 "\x43\xc4\x46\x24\x22\x4f\x8f\x7e"
10200 "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb"
10201 "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010202 .len = 512,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010203 }, {
10204 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
10205 "\x23\x53\x60\x28\x74\x71\x35\x26"
10206 "\x62\x49\x77\x57\x24\x70\x93\x69"
10207 "\x99\x59\x57\x49\x66\x96\x76\x27"
10208 "\x31\x41\x59\x26\x53\x58\x97\x93"
10209 "\x23\x84\x62\x64\x33\x83\x27\x95"
10210 "\x02\x88\x41\x97\x16\x93\x99\x37"
10211 "\x51\x05\x82\x09\x74\x94\x45\x92",
10212 .klen = 64,
10213 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
10214 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010215 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010216 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10217 "\x10\x11\x12\x13\x14\x15\x16\x17"
10218 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10219 "\x20\x21\x22\x23\x24\x25\x26\x27"
10220 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10221 "\x30\x31\x32\x33\x34\x35\x36\x37"
10222 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10223 "\x40\x41\x42\x43\x44\x45\x46\x47"
10224 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10225 "\x50\x51\x52\x53\x54\x55\x56\x57"
10226 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10227 "\x60\x61\x62\x63\x64\x65\x66\x67"
10228 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10229 "\x70\x71\x72\x73\x74\x75\x76\x77"
10230 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10231 "\x80\x81\x82\x83\x84\x85\x86\x87"
10232 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10233 "\x90\x91\x92\x93\x94\x95\x96\x97"
10234 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10235 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10236 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10237 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10238 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10239 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10240 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10241 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10242 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10243 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10244 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10245 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10246 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
10247 "\x00\x01\x02\x03\x04\x05\x06\x07"
10248 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10249 "\x10\x11\x12\x13\x14\x15\x16\x17"
10250 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
10251 "\x20\x21\x22\x23\x24\x25\x26\x27"
10252 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
10253 "\x30\x31\x32\x33\x34\x35\x36\x37"
10254 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
10255 "\x40\x41\x42\x43\x44\x45\x46\x47"
10256 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
10257 "\x50\x51\x52\x53\x54\x55\x56\x57"
10258 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
10259 "\x60\x61\x62\x63\x64\x65\x66\x67"
10260 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
10261 "\x70\x71\x72\x73\x74\x75\x76\x77"
10262 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
10263 "\x80\x81\x82\x83\x84\x85\x86\x87"
10264 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
10265 "\x90\x91\x92\x93\x94\x95\x96\x97"
10266 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
10267 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
10268 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
10269 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
10270 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
10271 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
10272 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
10273 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
10274 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
10275 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
10276 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
10277 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
10278 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010279 .ctext = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1"
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010280 "\x35\x39\x71\x88\x76\x1e\xc9\xea"
10281 "\x86\xad\xf3\x14\x48\x3d\x5e\xe9"
10282 "\xe9\x2d\xb2\x56\x59\x35\x9d\xec"
10283 "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f"
10284 "\xce\xf4\xa9\x21\x0b\x5f\x96\xec"
10285 "\xcb\xf9\x57\x68\x33\x88\x39\xbf"
10286 "\x2f\xbb\x59\x03\xbd\x66\x8b\x11"
10287 "\x11\x65\x51\x2e\xb8\x67\x05\xd1"
10288 "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3"
10289 "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5"
10290 "\x85\xdc\x46\xe6\xf0\x24\xeb\x93"
10291 "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03"
10292 "\x22\xc8\x3a\x4f\xb4\x19\x91\x09"
10293 "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53"
10294 "\x72\x60\x79\xcb\x0e\x32\x8a\x77"
10295 "\xd5\xed\xdb\x33\xd7\x62\x16\x69"
10296 "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d"
10297 "\x69\x35\x61\x86\xf8\x86\xb9\x89"
10298 "\x6e\x59\x35\xac\xf6\x6b\x33\xa0"
10299 "\xea\xef\x96\x62\xd8\xa9\xcf\x56"
10300 "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73"
10301 "\x3d\x94\x4a\x49\x42\x6d\x08\x60"
10302 "\xa1\xea\xab\xb6\x88\x13\x94\xb8"
10303 "\x51\x98\xdb\x35\x85\xdf\xf6\xb9"
10304 "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72"
10305 "\xb8\xb2\x6c\x02\x43\x35\x22\x2a"
10306 "\x31\xed\xcd\x16\x19\xdf\x62\x0f"
10307 "\x29\xcf\x87\x04\xec\x02\x4f\xe4"
10308 "\xa2\xed\x73\xc6\x69\xd3\x7e\x89"
10309 "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25"
10310 "\xed\xcc\x60\x5d\x61\x20\xc1\x97"
10311 "\x56\x91\x57\x28\xbe\x71\x0d\xcd"
10312 "\xde\xc4\x9e\x55\x91\xbe\xd1\x28"
10313 "\x9b\x90\xeb\x73\xf3\x68\x51\xc6"
10314 "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27"
10315 "\xc0\x60\x5e\x33\xd6\xa7\x20\xea"
10316 "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47"
10317 "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42"
10318 "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0"
10319 "\xad\x12\x32\x31\x03\xf7\x21\xbe"
10320 "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd"
10321 "\xd8\x81\x77\xa9\x49\x98\x6c\x09"
10322 "\xc5\xa3\x61\x12\x62\x85\x6b\xcd"
10323 "\xb3\xf4\x20\x0c\x41\xc4\x05\x37"
10324 "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e"
10325 "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb"
10326 "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8"
10327 "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0"
10328 "\x93\x4a\x2f\xda\x7b\xe0\x20\x54"
10329 "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75"
10330 "\xb9\x07\x67\xcc\xc8\xe7\x21\x15"
10331 "\xa7\xc8\x98\xff\x4b\x80\x1c\x12"
10332 "\xa8\x54\xe1\x38\x52\xe6\x74\x81"
10333 "\x97\x47\xa1\x41\x0e\xc0\x50\xe3"
10334 "\x55\x0e\xc3\xa7\x70\x77\xce\x07"
10335 "\xed\x8c\x88\xe6\xa1\x5b\x14\xec"
10336 "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa"
10337 "\xe5\x2f\x5a\xff\xc8\x05\xee\x27"
10338 "\x35\x61\xbf\x0b\x19\x78\x9b\xd2"
10339 "\x04\xc7\x05\xb1\x79\xb4\xff\x5f"
10340 "\xf3\xea\x67\x52\x78\xc2\xce\x70"
10341 "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97"
10342 "\x37\x30\xe1\x91\x8d\xb3\x2a\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010343 .len = 512,
Jussi Kivilinnaaed265b2011-10-18 13:33:33 +030010344 },
10345};
10346
Herbert Xuda7f0332008-07-31 17:08:25 +080010347/*
10348 * Serpent test vectors. These are backwards because Serpent writes
10349 * octet sequences in right-to-left mode.
10350 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010351static const struct cipher_testvec serpent_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080010352 {
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010353 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080010354 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010355 .ctext = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47"
Herbert Xuda7f0332008-07-31 17:08:25 +080010356 "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010357 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010358 }, {
10359 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10360 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10361 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010362 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080010363 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010364 .ctext = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c"
Herbert Xuda7f0332008-07-31 17:08:25 +080010365 "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010366 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010367 }, {
10368 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10369 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10370 "\x10\x11\x12\x13\x14\x15\x16\x17"
10371 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
10372 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010373 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080010374 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010375 .ctext = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +080010376 "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010377 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010378 }, {
10379 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
10380 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010381 .ptext = zeroed_string,
10382 .ctext = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c"
Herbert Xuda7f0332008-07-31 17:08:25 +080010383 "\x05\x34\x5a\x9d\xad\xbf\xaf\x49",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010384 .len = 16,
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010385 }, { /* Generated with Crypto++ */
10386 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10387 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10388 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10389 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10390 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010391 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010392 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10393 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10394 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10395 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10396 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10397 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10398 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10399 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10400 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10401 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10402 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10403 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10404 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10405 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10406 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10407 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010408 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10409 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10410 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10411 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10412 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10413 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10414 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10415 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10416 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10417 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10418 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10419 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10420 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10421 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10422 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10423 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10424 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10425 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10426 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10427 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10428 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10429 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10430 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10431 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10432 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10433 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10434 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10435 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10436 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10437 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10438 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10439 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10440 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10441 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10442 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10443 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10444 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10445 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10446 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10447 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10448 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10449 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10450 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10451 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10452 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010453 .ctext = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010454 "\xB1\x80\x10\x43\xDE\x62\x70\xBD"
10455 "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7"
10456 "\x0C\xD1\xBB\x29\x25\x14\x4C\x22"
10457 "\x77\xA6\x38\x00\xDB\xB9\xE2\x07"
10458 "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39"
10459 "\x99\x34\x89\x5B\x54\xE9\x12\x13"
10460 "\x3B\x04\xE5\x12\x42\xC5\x79\xAB"
10461 "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6"
10462 "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA"
10463 "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A"
10464 "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87"
10465 "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5"
10466 "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73"
10467 "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD"
10468 "\x69\xDA\x7A\x01\xF5\x6A\x70\x39"
10469 "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010470 "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6"
10471 "\xB6\x31\x36\x34\x38\x3C\x1D\x69"
10472 "\x9F\x47\x28\x9A\x1D\x96\x70\x54"
10473 "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A"
10474 "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A"
10475 "\x23\x9C\x9B\x79\xC7\x75\xC8\x39"
10476 "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D"
10477 "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B"
10478 "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F"
10479 "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8"
10480 "\xEF\x50\x22\x20\x93\x30\xBE\xE2"
10481 "\x38\x05\x65\xAF\xBA\xB6\xE4\x72"
10482 "\xA9\xEE\x05\x42\x88\xBD\x9D\x49"
10483 "\xAD\x93\xCA\x4D\x45\x11\x43\x4D"
10484 "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4"
10485 "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD"
10486 "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6"
10487 "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69"
10488 "\x73\x65\x65\x51\xD6\x0B\x4E\x8C"
10489 "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B"
10490 "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39"
10491 "\xE8\x10\x93\x16\xC8\x68\x4C\x60"
10492 "\x87\x70\x14\xD0\x01\x57\xCB\x42"
10493 "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7"
10494 "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE"
10495 "\xFD\x72\xEC\xD7\x6F\x97\x14\x90"
10496 "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE"
10497 "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B"
10498 "\x71\x80\x05\x35\x3F\x40\x0B\x21"
10499 "\x76\xE5\xEF\x42\x6C\xDB\x31\x05"
10500 "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2"
10501 "\x49\x03\x5E\x77\x2E\x20\xBA\xA1"
10502 "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E"
10503 "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F"
10504 "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6"
10505 "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1"
10506 "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00"
10507 "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF"
10508 "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45"
10509 "\x91\x76\xE7\x6E\x65\x3D\x15\x86"
10510 "\x10\xF8\xDB\x66\x97\x7C\x43\x4D"
10511 "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A"
10512 "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02"
10513 "\x75\x55\x9B\xFF\x36\x73\xAB\x7C"
10514 "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010515 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +080010516 },
10517};
10518
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010519static const struct cipher_testvec tnepres_tv_template[] = {
Eric Biggersa0e20b92018-05-20 22:50:27 -070010520 { /* KeySize=0 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010521 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010522 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010523 .ctext = "\x41\xcc\x6b\x31\x59\x31\x45\x97"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010524 "\x6d\x6f\xbb\x38\x4b\x37\x21\x28",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010525 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010526 },
Herbert Xuda7f0332008-07-31 17:08:25 +080010527 { /* KeySize=128, PT=0, I=1 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010528 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080010529 "\x00\x00\x00\x00\x00\x00\x00\x00",
10530 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
10531 "\x00\x00\x00\x00\x00\x00\x00\x00",
10532 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010533 .ctext = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05"
Herbert Xuda7f0332008-07-31 17:08:25 +080010534 "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010535 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010536 }, { /* KeySize=128 */
10537 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10538 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
10539 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010540 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010541 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010542 .ctext = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010543 "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010544 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010545 }, { /* KeySize=128, I=121 */
10546 .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80",
10547 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010548 .ptext = zeroed_string,
10549 .ctext = "\x3d\xda\xbf\xc0\x06\xda\xab\x06"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010550 "\x46\x2a\xf4\xef\x81\x54\x4e\x26",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010551 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010552 }, { /* KeySize=192, PT=0, I=1 */
10553 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
10554 "\x00\x00\x00\x00\x00\x00\x00\x00"
10555 "\x00\x00\x00\x00\x00\x00\x00\x00",
10556 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010557 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080010558 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010559 .ctext = "\xe7\x8e\x54\x02\xc7\x19\x55\x68"
Herbert Xuda7f0332008-07-31 17:08:25 +080010560 "\xac\x36\x78\xf7\xa3\xf6\x0c\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010561 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010562 }, { /* KeySize=256, PT=0, I=1 */
10563 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
10564 "\x00\x00\x00\x00\x00\x00\x00\x00"
10565 "\x00\x00\x00\x00\x00\x00\x00\x00"
10566 "\x00\x00\x00\x00\x00\x00\x00\x00",
10567 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010568 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080010569 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010570 .ctext = "\xab\xed\x96\xe7\x66\xbf\x28\xcb"
Herbert Xuda7f0332008-07-31 17:08:25 +080010571 "\xc0\xeb\xd2\x1a\x82\xef\x08\x19",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010572 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080010573 }, { /* KeySize=256, I=257 */
10574 .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18"
10575 "\x17\x16\x15\x14\x13\x12\x11\x10"
10576 "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
10577 "\x07\x06\x05\x04\x03\x02\x01\x00",
10578 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010579 .ptext = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08"
Herbert Xuda7f0332008-07-31 17:08:25 +080010580 "\x07\x06\x05\x04\x03\x02\x01\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010581 .ctext = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b"
Herbert Xuda7f0332008-07-31 17:08:25 +080010582 "\xb8\x32\xe4\x33\xf8\x9f\x26\xde",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010583 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010584 }, { /* KeySize=256 */
10585 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
10586 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
10587 "\x10\x11\x12\x13\x14\x15\x16\x17"
10588 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
10589 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010590 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010591 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010592 .ctext = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49"
Eric Biggersa0e20b92018-05-20 22:50:27 -070010593 "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010594 .len = 16,
Eric Biggersa0e20b92018-05-20 22:50:27 -070010595 }
Herbert Xuda7f0332008-07-31 17:08:25 +080010596};
10597
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010598static const struct cipher_testvec serpent_cbc_tv_template[] = {
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010599 { /* Generated with Crypto++ */
10600 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10601 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10602 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10603 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10604 .klen = 32,
10605 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10606 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerscdc69462019-02-14 00:03:52 -080010607 .iv_out = "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
10608 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010609 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010610 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10611 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10612 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10613 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10614 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10615 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10616 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10617 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10618 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10619 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10620 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10621 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10622 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10623 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10624 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10625 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010626 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10627 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10628 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10629 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10630 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10631 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10632 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10633 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10634 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10635 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10636 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10637 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10638 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10639 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10640 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10641 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10642 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10643 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10644 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10645 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10646 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10647 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10648 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10649 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10650 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10651 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10652 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10653 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10654 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10655 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10656 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10657 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10658 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10659 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10660 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10661 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10662 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10663 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10664 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10665 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10666 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10667 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10668 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10669 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10670 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010671 .ctext = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010672 "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E"
10673 "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD"
10674 "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C"
10675 "\x38\x63\x35\x7E\x79\x18\x0A\xE8"
10676 "\x67\x06\x76\xD5\xFF\x22\x2F\xDA"
10677 "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97"
10678 "\xFE\x53\x75\x35\x97\x7F\x51\xEA"
10679 "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7"
10680 "\x62\x67\xFF\x04\xC2\x18\x22\x5F"
10681 "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E"
10682 "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41"
10683 "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB"
10684 "\x72\x84\xF8\x0A\x3F\x38\x5E\x91"
10685 "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2"
10686 "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB"
10687 "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010688 "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C"
10689 "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A"
10690 "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC"
10691 "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97"
10692 "\x5A\x5E\x7E\x96\x52\x20\xDC\x25"
10693 "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C"
10694 "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B"
10695 "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9"
10696 "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5"
10697 "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B"
10698 "\xA1\xC0\x12\x54\x4E\xC9\x20\x92"
10699 "\x11\x00\x10\x4E\xB3\x7C\xCA\x63"
10700 "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7"
10701 "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D"
10702 "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7"
10703 "\x81\x92\x66\x67\x15\x1E\x39\x98"
10704 "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A"
10705 "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05"
10706 "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B"
10707 "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C"
10708 "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3"
10709 "\x96\xC6\x66\x49\xDA\x0D\x71\xAC"
10710 "\x04\x05\x46\xD3\x90\x0F\x64\x64"
10711 "\x01\x66\x2C\x62\x5D\x34\xD1\xCB"
10712 "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97"
10713 "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D"
10714 "\x62\xA6\x19\x28\x9E\x26\xB4\x3F"
10715 "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0"
10716 "\x7D\xE9\x95\x45\x86\xED\xB1\xE0"
10717 "\x8D\xE9\xC5\x86\x13\x24\x28\x7D"
10718 "\x74\xEF\xCA\x50\x12\x7E\x64\x8F"
10719 "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7"
10720 "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA"
10721 "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2"
10722 "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E"
10723 "\xE6\x75\x0D\x54\x64\x11\xA3\x3A"
10724 "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E"
10725 "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4"
10726 "\xBA\x23\x2D\x8D\x29\x07\x12\xCF"
10727 "\x34\xCD\x72\x7F\x01\x30\xE7\xA0"
10728 "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2"
10729 "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4"
10730 "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF"
10731 "\xFC\x66\xAA\x37\xF2\x37\x39\x6B"
10732 "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010733 .len = 496,
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010734 },
10735};
10736
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010737static const struct cipher_testvec serpent_ctr_tv_template[] = {
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010738 { /* Generated with Crypto++ */
10739 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10740 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10741 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10742 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10743 .klen = 32,
10744 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10745 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerse674dbc2019-02-14 00:03:53 -080010746 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10747 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x83",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010748 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010749 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10750 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10751 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10752 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10753 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10754 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10755 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10756 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10757 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10758 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10759 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10760 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10761 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10762 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10763 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10764 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010765 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
10766 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10767 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10768 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10769 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10770 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10771 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10772 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10773 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10774 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10775 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10776 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10777 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10778 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10779 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10780 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10781 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10782 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10783 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10784 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10785 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10786 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10787 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10788 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10789 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10790 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10791 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10792 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10793 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10794 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10795 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10796 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10797 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10798 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10799 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10800 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10801 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10802 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10803 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10804 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10805 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10806 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10807 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10808 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10809 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010810 .ctext = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010811 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10812 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10813 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10814 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10815 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10816 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10817 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10818 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10819 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10820 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10821 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10822 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10823 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10824 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10825 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10826 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010827 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
10828 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10829 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10830 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10831 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10832 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10833 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10834 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10835 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10836 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10837 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10838 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10839 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10840 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10841 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10842 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10843 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10844 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10845 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10846 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10847 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10848 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10849 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10850 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10851 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10852 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10853 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10854 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10855 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10856 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10857 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10858 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10859 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10860 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10861 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10862 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10863 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
10864 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
10865 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
10866 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
10867 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
10868 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
10869 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
10870 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
10871 "\x40\x53\x77\x8C\x15\xF8\x8D\x13",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010872 .len = 496,
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010873 }, { /* Generated with Crypto++ */
10874 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
10875 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
10876 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
10877 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
10878 .klen = 32,
10879 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10880 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerse674dbc2019-02-14 00:03:53 -080010881 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
10882 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x84",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010883 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010884 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
10885 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
10886 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
10887 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
10888 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
10889 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
10890 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
10891 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
10892 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
10893 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
10894 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
10895 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
10896 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
10897 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
10898 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
10899 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
10900 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010901 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
10902 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
10903 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
10904 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
10905 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
10906 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
10907 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
10908 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
10909 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
10910 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
10911 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
10912 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
10913 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
10914 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
10915 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
10916 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
10917 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
10918 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
10919 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
10920 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
10921 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
10922 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
10923 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
10924 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
10925 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
10926 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
10927 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
10928 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
10929 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
10930 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
10931 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
10932 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
10933 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
10934 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
10935 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
10936 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
10937 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
10938 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
10939 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
10940 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
10941 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
10942 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
10943 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
10944 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
10945 "\x2B\xC2\x59",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070010946 .ctext = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA"
Jussi Kivilinna9d259172011-10-18 00:02:53 +030010947 "\x37\x69\xE3\x3A\x22\x85\x48\x46"
10948 "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E"
10949 "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9"
10950 "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D"
10951 "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF"
10952 "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8"
10953 "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B"
10954 "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88"
10955 "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C"
10956 "\x22\xF6\x55\x5A\xFA\x35\xA5\x17"
10957 "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91"
10958 "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE"
10959 "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96"
10960 "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5"
10961 "\x7C\xB5\x12\x89\xED\xBF\xB6\x09"
10962 "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC"
10963 "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9"
Jussi Kivilinna9f28e972012-10-20 14:52:57 +030010964 "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A"
10965 "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86"
10966 "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C"
10967 "\xAE\x82\xD3\x73\x31\x09\xCB\xB3"
10968 "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55"
10969 "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2"
10970 "\x8A\xF2\x26\xCD\x63\x38\x35\xF7"
10971 "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C"
10972 "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF"
10973 "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C"
10974 "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA"
10975 "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2"
10976 "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61"
10977 "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC"
10978 "\x2E\xE0\x48\x67\x09\x42\xCC\x91"
10979 "\xBE\x20\x38\xC0\x5E\x3B\x95\x00"
10980 "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7"
10981 "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71"
10982 "\x07\x97\x38\x4B\x5C\x56\x98\x67"
10983 "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90"
10984 "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D"
10985 "\x18\x06\x15\x9D\x5A\x10\x13\x37"
10986 "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12"
10987 "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF"
10988 "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C"
10989 "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1"
10990 "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27"
10991 "\x37\xDC\x35\xF3\x79\x01\x53\xA4"
10992 "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB"
10993 "\x9B\x1E\x8C\x07\xA7\x52\x49\x50"
10994 "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD"
10995 "\x7A\xC9\x36\xAE\xDE\x21\x48\x64"
10996 "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C"
10997 "\x98\x52\xCC\x04\xBD\x5E\x61\x26"
10998 "\x10\xD3\x21\xD9\x6E\x25\x98\x77"
10999 "\x8E\x98\x63\xF6\xF6\x52\xFB\x13"
11000 "\xAA\x30\xF2\xB9\xA4\x43\x53\x39"
11001 "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43"
11002 "\xA6\x71\x6B\x66\x8F\x58\x3F\x71"
11003 "\x90\x47\x40\x92\xE6\x69\xD1\x96"
11004 "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56"
11005 "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B"
11006 "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50"
11007 "\x40\x53\x77\x8C\x15\xF8\x8D\x13"
11008 "\x38\xE2\xE5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011009 .len = 499,
Jussi Kivilinna549595a2012-09-19 09:42:59 +030011010 }, { /* Generated with Crypto++ */
11011 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
11012 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
11013 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
11014 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
11015 .klen = 32,
11016 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
11017 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggerse674dbc2019-02-14 00:03:53 -080011018 .iv_out = "\x00\x00\x00\x00\x00\x00\x00\x00"
11019 "\x00\x00\x00\x00\x00\x00\x00\x1C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011020 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030011021 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
11022 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
11023 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
11024 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
11025 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
11026 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
11027 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
11028 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
11029 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
11030 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
11031 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
11032 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
11033 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
11034 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
11035 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
11036 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
11037 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
11038 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
11039 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
11040 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
11041 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
11042 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
11043 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
11044 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
11045 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
11046 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
11047 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
11048 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
11049 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
11050 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
11051 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
11052 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
11053 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
11054 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
11055 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
11056 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
11057 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
11058 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
11059 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
11060 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
11061 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
11062 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
11063 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
11064 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
11065 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
11066 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
11067 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
11068 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
11069 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
11070 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
11071 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
11072 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
11073 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
11074 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
11075 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
11076 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
11077 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
11078 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
11079 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
11080 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
11081 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011082 .ctext = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030011083 "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D"
11084 "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC"
11085 "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A"
11086 "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E"
11087 "\x71\x28\x06\x4F\xE8\x08\x39\xDA"
11088 "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69"
11089 "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B"
11090 "\x9F\x3E\x39\x79\xF0\xCD\x64\x35"
11091 "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B"
11092 "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18"
11093 "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2"
11094 "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47"
11095 "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2"
11096 "\x7D\xE2\x43\x81\x86\x72\x2E\xB1"
11097 "\x39\xF6\x95\xE1\x1F\xCB\x76\x33"
11098 "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F"
11099 "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C"
11100 "\x70\xFE\x52\xAA\x93\x3C\xC4\x46"
11101 "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE"
11102 "\x25\x92\xB2\x63\xBD\x49\x77\xB4"
11103 "\x22\xA4\x6A\xD5\x04\xE0\x45\x58"
11104 "\x1C\x34\x96\x7C\x03\x0C\x13\xA2"
11105 "\x05\x22\xE2\xCB\x5A\x35\x03\x09"
11106 "\x40\xD2\x82\x05\xCA\x58\x73\xF2"
11107 "\x29\x5E\x01\x47\x13\x32\x78\xBE"
11108 "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C"
11109 "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1"
11110 "\x38\x35\x11\x26\x4A\xB4\x06\x32"
11111 "\xFA\xD2\x07\x77\xB3\x74\x98\x80"
11112 "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF"
11113 "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F"
11114 "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65"
11115 "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA"
11116 "\xD6\x9B\xC9\x6D\x58\x40\x81\x02"
11117 "\x73\x44\x4E\x43\x6E\x37\xBB\x11"
11118 "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA"
11119 "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8"
11120 "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B"
11121 "\x07\xB5\x82\x3A\xC4\xE8\x42\x51"
11122 "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F"
11123 "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7"
11124 "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F"
11125 "\xBF\xF9\xAC\x59\x50\xA8\x08\x70"
11126 "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2"
11127 "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD"
11128 "\xC1\x03\x9A\xAA\x89\x8B\x32\x46"
11129 "\x5B\x18\x27\xBA\x46\xAA\x64\xDE"
11130 "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB"
11131 "\x7E\xDA\xEC\x30\x17\x19\xF8\x80"
11132 "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28"
11133 "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE"
11134 "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8"
11135 "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B"
11136 "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E"
11137 "\xDC\x34\x27\x89\x98\xCE\x1C\xA2"
11138 "\xD8\xB8\x90\xBE\xEC\x72\x28\x13"
11139 "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50"
11140 "\xB7\x99\x65\x8A\xC9\xC6\x21\x34"
11141 "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17"
11142 "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0"
11143 "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011144 .len = 496,
Jussi Kivilinna9d259172011-10-18 00:02:53 +030011145 },
11146};
11147
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011148static const struct cipher_testvec serpent_lrw_tv_template[] = {
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011149 /* Generated from AES-LRW test vectors */
11150 {
11151 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
11152 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
11153 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
11154 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
11155 .klen = 32,
11156 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11157 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011158 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011159 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011160 .ctext = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011161 "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011162 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011163 }, {
11164 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
11165 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
11166 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
11167 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
11168 .klen = 32,
11169 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11170 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011171 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011172 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011173 .ctext = "\xfd\xb2\x66\x98\x80\x96\x55\xad"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011174 "\x08\x94\x54\x9c\x21\x7c\x69\xe3",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011175 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011176 }, {
11177 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
11178 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
11179 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
11180 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
11181 .klen = 32,
11182 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11183 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011184 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011185 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011186 .ctext = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011187 "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011188 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011189 }, {
11190 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
11191 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
11192 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
11193 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
11194 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
11195 .klen = 40,
11196 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11197 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011198 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011199 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011200 .ctext = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011201 "\x5d\x45\x95\x30\x8f\xff\x2f\x1b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011202 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011203 }, {
11204 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
11205 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
11206 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
11207 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
11208 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
11209 .klen = 40,
11210 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11211 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011212 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011213 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011214 .ctext = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011215 "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011216 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011217 }, {
11218 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
11219 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
11220 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
11221 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
11222 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
11223 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
11224 .klen = 48,
11225 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11226 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011227 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011228 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011229 .ctext = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011230 "\x2e\x18\xe6\x99\xcd\xd3\x15\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011231 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011232 }, {
11233 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
11234 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
11235 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
11236 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
11237 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
11238 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
11239 .klen = 48,
11240 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11241 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011242 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011243 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011244 .ctext = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011245 "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011246 .len = 16,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011247 }, {
11248 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
11249 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
11250 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
11251 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
11252 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
11253 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
11254 .klen = 48,
11255 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11256 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011257 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011258 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
11259 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
11260 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
11261 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
11262 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
11263 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
11264 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
11265 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
11266 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
11267 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
11268 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
11269 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
11270 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
11271 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
11272 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
11273 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
11274 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
11275 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
11276 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
11277 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
11278 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
11279 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
11280 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
11281 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
11282 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
11283 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
11284 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
11285 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
11286 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
11287 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
11288 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
11289 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
11290 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
11291 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
11292 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
11293 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
11294 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
11295 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
11296 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
11297 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
11298 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
11299 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
11300 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
11301 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
11302 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
11303 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
11304 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
11305 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
11306 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
11307 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
11308 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
11309 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
11310 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
11311 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
11312 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
11313 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
11314 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
11315 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
11316 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
11317 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
11318 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
11319 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
11320 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011321 .ctext = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74"
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011322 "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d"
11323 "\x82\xec\xf1\x5f\x03\x6d\x02\x58"
11324 "\x90\x67\xfc\xdd\x8d\xe1\x38\x08"
11325 "\x7b\xc9\x9b\x4b\x04\x09\x50\x15"
11326 "\xce\xab\xda\x33\x30\x20\x12\xfa"
11327 "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9"
11328 "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c"
11329 "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22"
11330 "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b"
11331 "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5"
11332 "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5"
11333 "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b"
11334 "\x89\x58\x7c\x9a\xae\x26\xe8\xb7"
11335 "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d"
11336 "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47"
11337 "\x5f\x03\x8b\xdd\x94\xd1\xee\x12"
11338 "\xa7\x83\x80\xf2\xc1\x15\x74\x4f"
11339 "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f"
11340 "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52"
11341 "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98"
11342 "\x04\xd6\xdd\x4c\x00\x64\xd9\x54"
11343 "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8"
11344 "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b"
11345 "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9"
11346 "\x04\xc3\x6f\x17\x66\xa9\x1f\x59"
11347 "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b"
11348 "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43"
11349 "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb"
11350 "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49"
11351 "\xb3\xac\x5d\xcf\x31\xa0\x27\x26"
11352 "\x21\xbe\x94\x2e\x19\xea\xf4\xee"
11353 "\xb5\x13\x89\xf7\x94\x0b\xef\x59"
11354 "\x44\xc5\x78\x8b\x3c\x3b\x71\x20"
11355 "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2"
11356 "\xb4\x11\x0e\x2c\x61\xa1\x52\x46"
11357 "\x18\x11\x16\xc6\x86\x44\xa7\xaf"
11358 "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b"
11359 "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea"
11360 "\x3f\x0e\x90\xd6\x8f\x83\x30\x64"
11361 "\xb5\x51\x2d\x08\x3c\xcd\x99\x36"
11362 "\x96\xd4\xb1\xb5\x48\x30\xca\x48"
11363 "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d"
11364 "\x12\x33\x2f\xc0\xe8\xda\xec\x8a"
11365 "\xe1\x88\x72\x63\xde\x20\xa3\xe1"
11366 "\x8e\xac\x84\x37\x35\xf5\xf7\x3f"
11367 "\x00\x02\x0e\xe4\xc1\x53\x68\x3f"
11368 "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d"
11369 "\x7c\x83\xd0\xbd\xaa\x97\x35\x36"
11370 "\x98\x88\x59\x5d\xe7\x24\xe3\x90"
11371 "\x9d\x30\x47\xa7\xc3\x60\x35\xf4"
11372 "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b"
11373 "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d"
11374 "\x49\x5a\x3c\x8a\xa3\x01\xae\x25"
11375 "\x42\xab\xd2\x87\x1b\x35\xd6\xd2"
11376 "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39"
11377 "\x1c\x58\xa2\xb4\xd0\x78\x55\x72"
11378 "\x76\x59\xea\xd9\xd7\x6e\x63\x8b"
11379 "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68"
11380 "\x86\x28\xd1\xbb\x54\x8d\x66\xad"
11381 "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd"
11382 "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a"
11383 "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd"
11384 "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011385 .len = 512,
Jussi Kivilinnad7bfc0f2011-10-18 13:32:34 +030011386 },
11387};
11388
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011389static const struct cipher_testvec serpent_xts_tv_template[] = {
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011390 /* Generated from AES-XTS test vectors */
11391 {
11392 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
11393 "\x00\x00\x00\x00\x00\x00\x00\x00"
11394 "\x00\x00\x00\x00\x00\x00\x00\x00"
11395 "\x00\x00\x00\x00\x00\x00\x00\x00",
11396 .klen = 32,
11397 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11398 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011399 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011400 "\x00\x00\x00\x00\x00\x00\x00\x00"
11401 "\x00\x00\x00\x00\x00\x00\x00\x00"
11402 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011403 .ctext = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011404 "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4"
11405 "\x6a\x31\xc5\xf3\x00\xca\xb9\x16"
11406 "\xde\xe2\x77\x66\xf7\xfe\x62\x08",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011407 .len = 32,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011408 }, {
11409 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
11410 "\x11\x11\x11\x11\x11\x11\x11\x11"
11411 "\x22\x22\x22\x22\x22\x22\x22\x22"
11412 "\x22\x22\x22\x22\x22\x22\x22\x22",
11413 .klen = 32,
11414 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11415 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011416 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011417 "\x44\x44\x44\x44\x44\x44\x44\x44"
11418 "\x44\x44\x44\x44\x44\x44\x44\x44"
11419 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011420 .ctext = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011421 "\x41\x86\x12\xaf\xb3\xd7\x68\x13"
11422 "\xed\x81\xcd\x06\x87\x43\x1a\xbb"
11423 "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011424 .len = 32,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011425 }, {
11426 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
11427 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
11428 "\x22\x22\x22\x22\x22\x22\x22\x22"
11429 "\x22\x22\x22\x22\x22\x22\x22\x22",
11430 .klen = 32,
11431 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
11432 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011433 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011434 "\x44\x44\x44\x44\x44\x44\x44\x44"
11435 "\x44\x44\x44\x44\x44\x44\x44\x44"
11436 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011437 .ctext = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011438 "\xb6\x1c\x81\x8f\x2c\x87\x60\x89"
11439 "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86"
11440 "\xc1\x68\x45\xaa\x00\xe9\x24\xc5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011441 .len = 32,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011442 }, {
11443 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11444 "\x23\x53\x60\x28\x74\x71\x35\x26"
11445 "\x31\x41\x59\x26\x53\x58\x97\x93"
11446 "\x23\x84\x62\x64\x33\x83\x27\x95",
11447 .klen = 32,
11448 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
11449 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011450 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011451 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11452 "\x10\x11\x12\x13\x14\x15\x16\x17"
11453 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11454 "\x20\x21\x22\x23\x24\x25\x26\x27"
11455 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11456 "\x30\x31\x32\x33\x34\x35\x36\x37"
11457 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11458 "\x40\x41\x42\x43\x44\x45\x46\x47"
11459 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11460 "\x50\x51\x52\x53\x54\x55\x56\x57"
11461 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11462 "\x60\x61\x62\x63\x64\x65\x66\x67"
11463 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11464 "\x70\x71\x72\x73\x74\x75\x76\x77"
11465 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11466 "\x80\x81\x82\x83\x84\x85\x86\x87"
11467 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11468 "\x90\x91\x92\x93\x94\x95\x96\x97"
11469 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11470 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11471 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11472 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11473 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11474 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11475 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11476 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11477 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11478 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11479 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11480 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11481 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11482 "\x00\x01\x02\x03\x04\x05\x06\x07"
11483 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11484 "\x10\x11\x12\x13\x14\x15\x16\x17"
11485 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11486 "\x20\x21\x22\x23\x24\x25\x26\x27"
11487 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11488 "\x30\x31\x32\x33\x34\x35\x36\x37"
11489 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11490 "\x40\x41\x42\x43\x44\x45\x46\x47"
11491 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11492 "\x50\x51\x52\x53\x54\x55\x56\x57"
11493 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11494 "\x60\x61\x62\x63\x64\x65\x66\x67"
11495 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11496 "\x70\x71\x72\x73\x74\x75\x76\x77"
11497 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11498 "\x80\x81\x82\x83\x84\x85\x86\x87"
11499 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11500 "\x90\x91\x92\x93\x94\x95\x96\x97"
11501 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11502 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11503 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11504 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11505 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11506 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11507 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11508 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11509 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11510 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11511 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11512 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11513 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011514 .ctext = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011515 "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53"
11516 "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e"
11517 "\x28\xca\xb0\x22\xb3\x85\x75\xf4"
11518 "\x00\x5c\x75\x14\x06\xd6\x25\x82"
11519 "\xe6\xcb\x08\xf7\x29\x90\x23\x8e"
11520 "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3"
11521 "\x80\x51\x67\xb5\x0b\x85\x69\xe8"
11522 "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3"
11523 "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0"
11524 "\x63\x5a\x16\x0f\xf0\xce\x66\x1f"
11525 "\x2c\x21\x07\xf1\xa4\x03\xa3\x44"
11526 "\x41\x61\x87\x5d\x6b\xb3\xef\xd4"
11527 "\xfc\xaa\x32\x7e\x55\x58\x04\x41"
11528 "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a"
11529 "\x55\x79\x4b\x6f\xcf\x89\xb9\x19"
11530 "\xe5\x54\x13\x15\xb2\x1a\xfa\x15"
11531 "\xc2\xf0\x06\x59\xfa\xa0\x25\x05"
11532 "\x58\xfa\x43\x91\x16\x85\x40\xbb"
11533 "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08"
11534 "\xcd\x22\x22\x41\x11\x9f\x6c\x7c"
11535 "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7"
11536 "\xa0\x42\xa8\xde\xfc\xa3\xca\x98"
11537 "\x4b\x43\xb1\xce\x4b\xbf\x01\x67"
11538 "\x6e\x29\x60\xbd\x10\x14\x84\x82"
11539 "\x83\x82\x0c\x63\x73\x92\x02\x7c"
11540 "\x55\x37\x20\x80\x17\x51\xc8\xbc"
11541 "\x46\x02\xcb\x38\x07\x6d\xe2\x85"
11542 "\xaa\x29\xaf\x24\x58\x0d\xf0\x75"
11543 "\x08\x0a\xa5\x34\x25\x16\xf3\x74"
11544 "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29"
11545 "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c"
11546 "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e"
11547 "\x8c\x2b\x4f\x54\x76\x47\x53\x8e"
11548 "\xe8\x00\xec\x92\xb9\x55\xe6\xa2"
11549 "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87"
11550 "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21"
11551 "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19"
11552 "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9"
11553 "\x94\x4e\x63\xc7\xae\xfc\xed\x47"
11554 "\xe2\xfe\x7a\x63\x77\xfe\x97\x82"
11555 "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80"
11556 "\xec\x69\x41\xec\xa7\x8a\xe0\x2f"
11557 "\xe3\x49\x26\xa2\x41\xb2\x08\x0f"
11558 "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e"
11559 "\x43\x42\x35\xd0\xcf\xec\x77\x67"
11560 "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e"
11561 "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50"
11562 "\xab\x6c\x6b\xff\xea\x00\x67\xaa"
11563 "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76"
11564 "\x2b\x77\x3f\xbe\x12\x75\xfb\x92"
11565 "\xc6\x89\x67\x4d\xca\xf7\xd4\x50"
11566 "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6"
11567 "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5"
11568 "\x86\xad\x51\xcc\xd5\x96\xb8\xdc"
11569 "\x03\x57\xe6\x98\x52\x2f\x61\x62"
11570 "\xc4\x5c\x9c\x36\x71\x07\xfb\x94"
11571 "\xe3\x02\xc4\x2b\x08\x75\xc7\x35"
11572 "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1"
11573 "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e"
11574 "\x76\x87\x19\x04\x1a\x2f\x38\x3e"
11575 "\xef\x91\x64\x1d\x18\x07\x4e\x31"
11576 "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c"
11577 "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011578 .len = 512,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011579 }, {
11580 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
11581 "\x23\x53\x60\x28\x74\x71\x35\x26"
11582 "\x62\x49\x77\x57\x24\x70\x93\x69"
11583 "\x99\x59\x57\x49\x66\x96\x76\x27"
11584 "\x31\x41\x59\x26\x53\x58\x97\x93"
11585 "\x23\x84\x62\x64\x33\x83\x27\x95"
11586 "\x02\x88\x41\x97\x16\x93\x99\x37"
11587 "\x51\x05\x82\x09\x74\x94\x45\x92",
11588 .klen = 64,
11589 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
11590 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011591 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011592 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11593 "\x10\x11\x12\x13\x14\x15\x16\x17"
11594 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11595 "\x20\x21\x22\x23\x24\x25\x26\x27"
11596 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11597 "\x30\x31\x32\x33\x34\x35\x36\x37"
11598 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11599 "\x40\x41\x42\x43\x44\x45\x46\x47"
11600 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11601 "\x50\x51\x52\x53\x54\x55\x56\x57"
11602 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11603 "\x60\x61\x62\x63\x64\x65\x66\x67"
11604 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11605 "\x70\x71\x72\x73\x74\x75\x76\x77"
11606 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11607 "\x80\x81\x82\x83\x84\x85\x86\x87"
11608 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11609 "\x90\x91\x92\x93\x94\x95\x96\x97"
11610 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11611 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11612 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11613 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11614 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11615 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11616 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11617 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11618 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11619 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11620 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11621 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11622 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
11623 "\x00\x01\x02\x03\x04\x05\x06\x07"
11624 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11625 "\x10\x11\x12\x13\x14\x15\x16\x17"
11626 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
11627 "\x20\x21\x22\x23\x24\x25\x26\x27"
11628 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
11629 "\x30\x31\x32\x33\x34\x35\x36\x37"
11630 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
11631 "\x40\x41\x42\x43\x44\x45\x46\x47"
11632 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
11633 "\x50\x51\x52\x53\x54\x55\x56\x57"
11634 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
11635 "\x60\x61\x62\x63\x64\x65\x66\x67"
11636 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
11637 "\x70\x71\x72\x73\x74\x75\x76\x77"
11638 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
11639 "\x80\x81\x82\x83\x84\x85\x86\x87"
11640 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
11641 "\x90\x91\x92\x93\x94\x95\x96\x97"
11642 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
11643 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
11644 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
11645 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
11646 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
11647 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
11648 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
11649 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
11650 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
11651 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
11652 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
11653 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
11654 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011655 .ctext = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32"
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011656 "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f"
11657 "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b"
11658 "\x80\x1b\x82\xcb\x01\x59\x91\x7f"
11659 "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3"
11660 "\x34\xfd\xe6\x11\xf9\x33\x45\x12"
11661 "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23"
11662 "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7"
11663 "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0"
11664 "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78"
11665 "\xcd\xec\x7d\xdc\x19\x9c\x72\x64"
11666 "\x63\x0b\x38\x2e\x76\xdd\x2d\x36"
11667 "\x49\xb0\x1d\xea\x78\x9e\x00\xca"
11668 "\x20\xcc\x1b\x1e\x98\x74\xab\xed"
11669 "\x79\xf7\xd0\x6c\xd8\x93\x80\x29"
11670 "\xac\xa5\x5e\x34\xa9\xab\xa0\x55"
11671 "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46"
11672 "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae"
11673 "\x25\x42\x17\xbf\x76\x8f\x1c\x3d"
11674 "\xec\x9a\xda\x64\x96\xb5\x61\xff"
11675 "\x99\xeb\x12\x96\x85\x82\x9d\xd5"
11676 "\x81\x85\x14\xa8\x59\xac\x8c\x94"
11677 "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba"
11678 "\x82\xc6\x4d\xca\x86\xea\x53\x28"
11679 "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79"
11680 "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff"
11681 "\x05\xca\x81\x7b\xda\xa2\xde\x63"
11682 "\x3a\x10\xbe\xc2\xac\x32\xc4\x05"
11683 "\x47\x7e\xef\x67\xe2\x5f\x5b\xae"
11684 "\xed\xf1\x70\x34\x16\x9a\x07\x7b"
11685 "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a"
11686 "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd"
11687 "\x93\x1f\x06\xba\xd4\x9a\x22\x69"
11688 "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c"
11689 "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6"
11690 "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32"
11691 "\xfd\x43\x7d\xda\x42\x51\x87\x43"
11692 "\x9d\xf9\xef\xf4\x30\x97\xf8\x09"
11693 "\x88\xfc\x3f\x93\x70\xc1\x4a\xec"
11694 "\x27\x5f\x11\xac\x71\xc7\x48\x46"
11695 "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56"
11696 "\x0d\x4e\xb0\x32\x76\xce\x86\x81"
11697 "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24"
11698 "\xaf\xf7\x9a\xde\xff\x18\xac\x14"
11699 "\x90\xc5\x01\x39\x34\x0f\x24\xf3"
11700 "\x13\x2f\x5e\x4f\x30\x9a\x36\x40"
11701 "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23"
11702 "\x50\x88\x97\x40\x69\xb1\x37\xf5"
11703 "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8"
11704 "\x7b\x10\x20\xb9\x2b\x46\x83\x5b"
11705 "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2"
11706 "\x72\xb0\x97\x4e\x89\xb3\x48\x00"
11707 "\xc1\x16\x73\x50\x77\xba\xa6\x65"
11708 "\x20\x2d\xb0\x02\x27\x89\xda\x99"
11709 "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6"
11710 "\x2a\xda\x09\x12\x11\xaf\xe6\x57"
11711 "\x01\x04\x8a\xff\x86\x8b\xac\xf8"
11712 "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76"
11713 "\xa3\x0e\x33\x74\x40\x18\x39\x72"
11714 "\x66\x50\x31\xfd\x70\xdf\xe8\x51"
11715 "\x96\x21\x36\xb2\x9b\xfa\x85\xd1"
11716 "\x30\x05\xc8\x92\x98\x80\xff\x7a"
11717 "\xaf\x43\x0b\xc5\x20\x41\x92\x20"
11718 "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011719 .len = 512,
Jussi Kivilinna18be20b92011-10-18 13:33:17 +030011720 },
11721};
11722
Eric Biggersda7a0ab2018-02-14 10:42:19 -080011723/*
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011724 * SM4 test vectors taken from the "The SM4 Blockcipher Algorithm And Its
11725 * Modes Of Operations" draft RFC
11726 * https://datatracker.ietf.org/doc/draft-ribose-cfrg-sm4
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011727 */
11728
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011729static const struct cipher_testvec sm4_tv_template[] = {
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011730 { /* GB/T 32907-2016 Example 1. */
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011731 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11732 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11733 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011734 .ptext = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011735 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011736 .ctext = "\x68\x1E\xDF\x34\xD2\x06\x96\x5E"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011737 "\x86\xB3\xE9\x4F\x53\x6E\x42\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011738 .len = 16,
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011739 }, { /* Last 10 iterations of GB/T 32907-2016 Example 2. */
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011740 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11741 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11742 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011743 .ptext = "\x99\x4a\xc3\xe7\xc3\x57\x89\x6a"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011744 "\x81\xfc\xa8\xe\x38\x3e\xef\x80"
11745 "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
11746 "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
11747 "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
11748 "\xad\x57\x15\xab\x31\x5d\xc\xef"
11749 "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
11750 "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
11751 "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
11752 "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
11753 "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
11754 "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
11755 "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
11756 "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
11757 "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
11758 "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
11759 "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
11760 "\xed\xce\x0\x19\xe\x16\x2\x6e"
11761 "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
11762 "\x31\x51\xec\x47\xc3\x51\x83\xc1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011763 .ctext = "\xb1\x98\xf2\xde\x3f\x4b\xae\xd1"
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011764 "\xf0\xf1\x30\x4c\x1\x27\x5a\x8f"
11765 "\x45\xe1\x39\xb7\xae\xff\x1f\x27"
11766 "\xad\x57\x15\xab\x31\x5d\xc\xef"
11767 "\x8c\xc8\x80\xbd\x11\x98\xf3\x7b"
11768 "\xa2\xdd\x14\x20\xf9\xe8\xbb\x82"
11769 "\xf7\x32\xca\x4b\xa8\xf7\xb3\x4d"
11770 "\x27\xd1\xcd\xe6\xb6\x65\x5a\x23"
11771 "\xc2\xf3\x54\x84\x53\xe3\xb9\x20"
11772 "\xa5\x37\x0\xbe\xe7\x7b\x48\xfb"
11773 "\x21\x3d\x9e\x48\x1d\x9e\xf5\xbf"
11774 "\x77\xd5\xb4\x4a\x53\x71\x94\x7a"
11775 "\x88\xa6\x6e\x6\x93\xca\x43\xa5"
11776 "\xc4\xf6\xcd\x53\x4b\x7b\x8e\xfe"
11777 "\xb4\x28\x7c\x42\x29\x32\x5d\x88"
11778 "\xed\xce\x0\x19\xe\x16\x2\x6e"
11779 "\x87\xff\x2c\xac\xe8\xe7\xe9\xbf"
11780 "\x31\x51\xec\x47\xc3\x51\x83\xc1"
11781 "\x59\x52\x98\xc7\xc6\xfd\x27\x1f"
11782 "\x4\x2\xf8\x4\xc3\x3d\x3f\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070011783 .len = 160
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011784 }, { /* A.2.1.1 SM4-ECB Example 1 */
11785 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11786 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11787 .klen = 16,
11788 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11789 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11790 "\xee\xee\xee\xee\xff\xff\xff\xff"
11791 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11792 .ctext = "\x5e\xc8\x14\x3d\xe5\x09\xcf\xf7"
11793 "\xb5\x17\x9f\x8f\x47\x4b\x86\x19"
11794 "\x2f\x1d\x30\x5a\x7f\xb1\x7d\xf9"
11795 "\x85\xf8\x1c\x84\x82\x19\x23\x04",
11796 .len = 32,
11797 }, { /* A.2.1.2 SM4-ECB Example 2 */
11798 .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10"
11799 "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
11800 .klen = 16,
11801 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11802 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11803 "\xee\xee\xee\xee\xff\xff\xff\xff"
11804 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11805 .ctext = "\xC5\x87\x68\x97\xE4\xA5\x9B\xBB"
11806 "\xA7\x2A\x10\xC8\x38\x72\x24\x5B"
11807 "\x12\xDD\x90\xBC\x2D\x20\x06\x92"
11808 "\xB5\x29\xA4\x15\x5A\xC9\xE6\x00",
11809 .len = 32,
11810 }
11811};
11812
11813static const struct cipher_testvec sm4_cbc_tv_template[] = {
11814 { /* A.2.2.1 SM4-CBC Example 1 */
11815 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11816 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11817 .klen = 16,
11818 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11819 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11820 "\xee\xee\xee\xee\xff\xff\xff\xff"
11821 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11822 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11823 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
Eric Biggerscdc69462019-02-14 00:03:52 -080011824 .iv_out = "\x4C\xB7\x01\x69\x51\x90\x92\x26"
11825 "\x97\x9B\x0D\x15\xDC\x6A\x8F\x6D",
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011826 .ctext = "\x78\xEB\xB1\x1C\xC4\x0B\x0A\x48"
11827 "\x31\x2A\xAE\xB2\x04\x02\x44\xCB"
11828 "\x4C\xB7\x01\x69\x51\x90\x92\x26"
11829 "\x97\x9B\x0D\x15\xDC\x6A\x8F\x6D",
11830 .len = 32,
11831 }, { /* A.2.2.2 SM4-CBC Example 2 */
11832 .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10"
11833 "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
11834 .klen = 16,
11835 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11836 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11837 "\xee\xee\xee\xee\xff\xff\xff\xff"
11838 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11839 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11840 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
Eric Biggerscdc69462019-02-14 00:03:52 -080011841 .iv_out = "\x91\xf2\xc1\x47\x91\x1a\x41\x44"
11842 "\x66\x5e\x1f\xa1\xd4\x0b\xae\x38",
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011843 .ctext = "\x0d\x3a\x6d\xdc\x2d\x21\xc6\x98"
11844 "\x85\x72\x15\x58\x7b\x7b\xb5\x9a"
11845 "\x91\xf2\xc1\x47\x91\x1a\x41\x44"
11846 "\x66\x5e\x1f\xa1\xd4\x0b\xae\x38",
11847 .len = 32,
11848 }
11849};
11850
11851static const struct cipher_testvec sm4_ctr_tv_template[] = {
11852 { /* A.2.5.1 SM4-CTR Example 1 */
11853 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
11854 "\xFE\xDC\xBA\x98\x76\x54\x32\x10",
11855 .klen = 16,
11856 .ptext = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
11857 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb"
11858 "\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc"
11859 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
11860 "\xee\xee\xee\xee\xee\xee\xee\xee"
11861 "\xff\xff\xff\xff\xff\xff\xff\xff"
11862 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
11863 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb",
11864 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11865 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
Eric Biggerse674dbc2019-02-14 00:03:53 -080011866 .iv_out = "\x00\x01\x02\x03\x04\x05\x06\x07"
11867 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x13",
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011868 .ctext = "\xac\x32\x36\xcb\x97\x0c\xc2\x07"
11869 "\x91\x36\x4c\x39\x5a\x13\x42\xd1"
11870 "\xa3\xcb\xc1\x87\x8c\x6f\x30\xcd"
11871 "\x07\x4c\xce\x38\x5c\xdd\x70\xc7"
11872 "\xf2\x34\xbc\x0e\x24\xc1\x19\x80"
11873 "\xfd\x12\x86\x31\x0c\xe3\x7b\x92"
11874 "\x6e\x02\xfc\xd0\xfa\xa0\xba\xf3"
11875 "\x8b\x29\x33\x85\x1d\x82\x45\x14",
11876 .len = 64,
11877 }, { /* A.2.5.2 SM4-CTR Example 2 */
11878 .key = "\xFE\xDC\xBA\x98\x76\x54\x32\x10"
11879 "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
11880 .klen = 16,
11881 .ptext = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
11882 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb"
11883 "\xcc\xcc\xcc\xcc\xcc\xcc\xcc\xcc"
11884 "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd"
11885 "\xee\xee\xee\xee\xee\xee\xee\xee"
11886 "\xff\xff\xff\xff\xff\xff\xff\xff"
11887 "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
11888 "\xbb\xbb\xbb\xbb\xbb\xbb\xbb\xbb",
11889 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11890 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
Eric Biggerse674dbc2019-02-14 00:03:53 -080011891 .iv_out = "\x00\x01\x02\x03\x04\x05\x06\x07"
11892 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x13",
Gilad Ben-Yossef95ba5972018-09-20 14:18:38 +010011893 .ctext = "\x5d\xcc\xcd\x25\xb9\x5a\xb0\x74"
11894 "\x17\xa0\x85\x12\xee\x16\x0e\x2f"
11895 "\x8f\x66\x15\x21\xcb\xba\xb4\x4c"
11896 "\xc8\x71\x38\x44\x5b\xc2\x9e\x5c"
11897 "\x0a\xe0\x29\x72\x05\xd6\x27\x04"
11898 "\x17\x3b\x21\x23\x9b\x88\x7f\x6c"
11899 "\x8c\xb5\xb8\x00\x91\x7a\x24\x88"
11900 "\x28\x4b\xde\x9e\x16\xea\x29\x06",
11901 .len = 64,
Gilad Ben-Yossefcd83a8a2018-03-06 09:44:43 +000011902 }
11903};
11904
Pascal van Leeuwene4886212019-09-13 11:10:42 +020011905static const struct cipher_testvec sm4_ctr_rfc3686_tv_template[] = {
11906 {
11907 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
11908 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
11909 "\x00\x00\x00\x30",
11910 .klen = 20,
11911 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
11912 .ptext = "Single block msg",
11913 .ctext = "\x20\x9b\x77\x31\xd3\x65\xdb\xab"
11914 "\x9e\x48\x74\x7e\xbd\x13\x83\xeb",
11915 .len = 16,
11916 }, {
11917 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
11918 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
11919 "\x00\x6c\xb6\xdb",
11920 .klen = 20,
11921 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
11922 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
11923 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
11924 "\x10\x11\x12\x13\x14\x15\x16\x17"
11925 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
11926 .ctext = "\x33\xe0\x28\x01\x92\xed\xc9\x1e"
11927 "\x97\x35\xd9\x4a\xec\xd4\xbc\x23"
11928 "\x4f\x35\x9f\x1c\x55\x1f\xe0\x27"
11929 "\xe0\xdf\xc5\x43\xbc\xb0\x23\x94",
11930 .len = 32,
11931 }
11932};
11933
Pascal van Leeuwena06b15b2019-09-13 11:10:39 +020011934static const struct cipher_testvec sm4_ofb_tv_template[] = {
11935 { /* From: draft-ribose-cfrg-sm4-02, paragraph 12.2.3 */
11936 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11937 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
11938 .klen = 16,
11939 .iv = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11940 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
11941 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11942 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
11943 "\x01\x23\x45\x67\x89\xab\xcd\xef"
11944 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
11945 .ctext = "\x69\x3d\x9a\x53\x5b\xad\x5b\xb1"
11946 "\x78\x6f\x53\xd7\x25\x3a\x70\x56"
11947 "\xf2\x07\x5d\x28\xb5\x23\x5f\x58"
11948 "\xd5\x00\x27\xe4\x17\x7d\x2b\xce",
11949 .len = 32,
11950 }, { /* From: draft-ribose-cfrg-sm4-09, appendix A.2.3, Example 1 */
11951 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11952 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
11953 .klen = 16,
11954 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11955 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11956 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11957 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11958 "\xee\xee\xee\xee\xff\xff\xff\xff"
11959 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11960 .ctext = "\xac\x32\x36\xcb\x86\x1d\xd3\x16"
11961 "\xe6\x41\x3b\x4e\x3c\x75\x24\xb7"
11962 "\x1d\x01\xac\xa2\x48\x7c\xa5\x82"
11963 "\xcb\xf5\x46\x3e\x66\x98\x53\x9b",
11964 .len = 32,
11965 }, { /* From: draft-ribose-cfrg-sm4-09, appendix A.2.3, Example 2 */
11966 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10"
11967 "\x01\x23\x45\x67\x89\xab\xcd\xef",
11968 .klen = 16,
11969 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
11970 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
11971 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
11972 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
11973 "\xee\xee\xee\xee\xff\xff\xff\xff"
11974 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
11975 .ctext = "\x5d\xcc\xcd\x25\xa8\x4b\xa1\x65"
11976 "\x60\xd7\xf2\x65\x88\x70\x68\x49"
11977 "\x33\xfa\x16\xbd\x5c\xd9\xc8\x56"
11978 "\xca\xca\xa1\xe1\x01\x89\x7a\x97",
11979 .len = 32,
11980 }
11981};
11982
11983static const struct cipher_testvec sm4_cfb_tv_template[] = {
11984 { /* From: draft-ribose-cfrg-sm4-02, paragraph 12.2.4 */
11985 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11986 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
11987 .klen = 16,
11988 .iv = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11989 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
11990 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
11991 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
11992 "\x01\x23\x45\x67\x89\xab\xcd\xef"
11993 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
11994 .ctext = "\x69\x3d\x9a\x53\x5b\xad\x5b\xb1"
11995 "\x78\x6f\x53\xd7\x25\x3a\x70\x56"
11996 "\x9e\xd2\x58\xa8\x5a\x04\x67\xcc"
11997 "\x92\xaa\xb3\x93\xdd\x97\x89\x95",
11998 .len = 32,
11999 }, { /* From: draft-ribose-cfrg-sm4-09, appendix A.2.4, Example 1 */
12000 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
12001 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
12002 .klen = 16,
12003 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12004 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12005 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
12006 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
12007 "\xee\xee\xee\xee\xff\xff\xff\xff"
12008 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
12009 .ctext = "\xac\x32\x36\xcb\x86\x1d\xd3\x16"
12010 "\xe6\x41\x3b\x4e\x3c\x75\x24\xb7"
12011 "\x69\xd4\xc5\x4e\xd4\x33\xb9\xa0"
12012 "\x34\x60\x09\xbe\xb3\x7b\x2b\x3f",
12013 .len = 32,
12014 }, { /* From: draft-ribose-cfrg-sm4-09, appendix A.2.4, Example 2 */
12015 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10"
12016 "\x01\x23\x45\x67\x89\xab\xcd\xef",
12017 .klen = 16,
12018 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12019 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12020 .ptext = "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb"
12021 "\xcc\xcc\xcc\xcc\xdd\xdd\xdd\xdd"
12022 "\xee\xee\xee\xee\xff\xff\xff\xff"
12023 "\xaa\xaa\xaa\xaa\xbb\xbb\xbb\xbb",
12024 .ctext = "\x5d\xcc\xcd\x25\xa8\x4b\xa1\x65"
12025 "\x60\xd7\xf2\x65\x88\x70\x68\x49"
12026 "\x0d\x9b\x86\xff\x20\xc3\xbf\xe1"
12027 "\x15\xff\xa0\x2c\xa6\x19\x2c\xc5",
12028 .len = 32,
12029 }
12030};
12031
Herbert Xuda7f0332008-07-31 17:08:25 +080012032/* Cast6 test vectors from RFC 2612 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012033static const struct cipher_testvec cast6_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080012034 {
12035 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12036 "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d",
12037 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012038 .ptext = zeroed_string,
12039 .ctext = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080012040 "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012041 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080012042 }, {
12043 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12044 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12045 "\xba\xc7\x7a\x77\x17\x94\x28\x63",
12046 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012047 .ptext = zeroed_string,
12048 .ctext = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb"
Herbert Xuda7f0332008-07-31 17:08:25 +080012049 "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012050 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080012051 }, {
12052 .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c"
12053 "\xbe\xd0\xac\x83\x94\x0a\xc2\x98"
12054 "\x8d\x7c\x47\xce\x26\x49\x08\x46"
12055 "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04",
12056 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012057 .ptext = zeroed_string,
12058 .ctext = "\x4f\x6a\x20\x38\x28\x68\x97\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080012059 "\xc9\x87\x01\x36\x55\x33\x17\xfa",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012060 .len = 16,
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012061 }, { /* Generated from TF test vectors */
12062 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12063 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12064 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12065 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12066 .klen = 32,
12067 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12068 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012069 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012070 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12071 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12072 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12073 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12074 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12075 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12076 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12077 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12078 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12079 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12080 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12081 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12082 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12083 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12084 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12085 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12086 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12087 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12088 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12089 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12090 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12091 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12092 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12093 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12094 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12095 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12096 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12097 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12098 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12099 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12100 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12101 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12102 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12103 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12104 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12105 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12106 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12107 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12108 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12109 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12110 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12111 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12112 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12113 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12114 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12115 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12116 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12117 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12118 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12119 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12120 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12121 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12122 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12123 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12124 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12125 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12126 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12127 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12128 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12129 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12130 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012131 .ctext = "\xC3\x70\x22\x32\xF5\x80\xCB\x54"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012132 "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6"
12133 "\xB6\xB9\xC5\xA4\x91\x55\x14\x97"
12134 "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA"
12135 "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE"
12136 "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C"
12137 "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C"
12138 "\xD0\x6A\x99\x10\x72\xF8\x47\x62"
12139 "\x81\x42\xF8\xD8\xF5\xBB\x94\x08"
12140 "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E"
12141 "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58"
12142 "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12"
12143 "\x5A\x72\x85\x47\x8B\xEC\x9F\x26"
12144 "\x84\xB6\xED\x10\x33\x63\x9B\x5F"
12145 "\x4D\x53\xEE\x94\x45\x8B\x60\x58"
12146 "\x86\x20\xF9\x1E\x82\x08\x3E\x58"
12147 "\x60\x1B\x34\x19\x02\xBE\x4E\x09"
12148 "\xBB\x7C\x15\xCC\x60\x27\x55\x7A"
12149 "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3"
12150 "\xF1\xDD\xA7\x07\xA3\x12\x85\x28"
12151 "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A"
12152 "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43"
12153 "\x92\xE4\x7C\x26\x69\x4D\x83\x68"
12154 "\x14\x96\x42\x47\xBD\xA9\xE4\x8A"
12155 "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E"
12156 "\x91\x51\xB5\x36\x08\xDE\x1C\x06"
12157 "\x03\xBD\xDE\x81\x26\xF7\x99\xC2"
12158 "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF"
12159 "\xC1\xF5\x27\x05\xB8\x02\x57\x72"
12160 "\xE6\x42\x13\x0B\xC6\x47\x05\x74"
12161 "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9"
12162 "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C"
12163 "\x98\x82\x67\x67\xB4\xD7\xD3\x43"
12164 "\x23\x08\x02\xB7\x9B\x99\x05\xFB"
12165 "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6"
12166 "\x2E\x49\x58\xD0\xA8\x57\x29\x7F"
12167 "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67"
12168 "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D"
12169 "\x17\xE2\x58\x2B\x88\x0D\x68\x62"
12170 "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62"
12171 "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08"
12172 "\xEB\x84\x1D\x25\xA7\x38\x94\x06"
12173 "\x93\x9D\xF8\xFE\x88\x71\xE7\x84"
12174 "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29"
12175 "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB"
12176 "\x8E\x75\x3D\x73\xEB\x6A\xED\x29"
12177 "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA"
12178 "\x41\xE2\x10\x4C\x01\x8B\x69\x2B"
12179 "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B"
12180 "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6"
12181 "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06"
12182 "\x59\x28\x1D\x86\x43\x04\x5D\x3B"
12183 "\x99\x4C\x04\x5A\x21\x17\x8B\x76"
12184 "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3"
12185 "\x65\xA2\x58\x2A\xC5\x66\x24\xBF"
12186 "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8"
12187 "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9"
12188 "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E"
12189 "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1"
12190 "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C"
12191 "\x84\x52\x6D\x68\xDE\xC6\x64\xB2"
12192 "\x11\x74\x93\x57\xB4\x7E\xC6\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012193 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +080012194 },
12195};
12196
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012197static const struct cipher_testvec cast6_cbc_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012198 { /* Generated from TF test vectors */
12199 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12200 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12201 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12202 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12203 .klen = 32,
12204 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12205 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerscdc69462019-02-14 00:03:52 -080012206 .iv_out = "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
12207 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012208 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012209 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
12210 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12211 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12212 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12213 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12214 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12215 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12216 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12217 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12218 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12219 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12220 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12221 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12222 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12223 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12224 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12225 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12226 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12227 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12228 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12229 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12230 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12231 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12232 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12233 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12234 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12235 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12236 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12237 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12238 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12239 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12240 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12241 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12242 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12243 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12244 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12245 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12246 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12247 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12248 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12249 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12250 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12251 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12252 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12253 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12254 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12255 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12256 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12257 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12258 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12259 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12260 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12261 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12262 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12263 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12264 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12265 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12266 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12267 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12268 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12269 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012270 .ctext = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012271 "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F"
12272 "\xA0\x73\xB3\x70\xC3\x68\x64\x70"
12273 "\xAD\x33\x02\xFB\x88\x74\xAA\x78"
12274 "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F"
12275 "\x7E\x6F\xDF\x05\x13\x76\xA6\x72"
12276 "\xB7\x13\x09\x0F\x7D\x38\xDF\x25"
12277 "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0"
12278 "\x57\x95\xE1\x21\x26\x10\x9A\x21"
12279 "\xA1\x8A\x51\x05\xD1\xB1\x78\x35"
12280 "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF"
12281 "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B"
12282 "\x23\x16\x47\x72\x81\x13\x3A\x72"
12283 "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8"
12284 "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E"
12285 "\xA3\x63\x98\x7D\x35\xE4\xD9\x83"
12286 "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3"
12287 "\x41\x1A\x93\x8D\x76\x31\x9F\xF2"
12288 "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9"
12289 "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1"
12290 "\x21\x9C\x1A\xCA\x65\xDE\x44\x03"
12291 "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37"
12292 "\x53\x50\x23\xA4\x81\x6E\xDA\xFB"
12293 "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8"
12294 "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7"
12295 "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3"
12296 "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2"
12297 "\xC1\x03\xE6\x5A\x37\xD8\x64\x18"
12298 "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB"
12299 "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4"
12300 "\x89\x05\x81\x6E\x71\x4F\xC3\x28"
12301 "\x10\xC1\x62\xC4\x41\xE9\xD2\x39"
12302 "\xF3\x22\x39\x12\x2C\xC2\x95\x2D"
12303 "\xBF\x93\x58\x4B\x04\xD1\x8D\x57"
12304 "\xAE\xEB\x60\x03\x56\x35\xAD\x5A"
12305 "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8"
12306 "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E"
12307 "\x07\x09\x82\xBA\xF0\x80\x8A\xD0"
12308 "\xA0\x3F\x6A\xE9\x24\x87\x19\x65"
12309 "\x73\x3F\x12\x91\x47\x54\xBA\x39"
12310 "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF"
12311 "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76"
12312 "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47"
12313 "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1"
12314 "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12"
12315 "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D"
12316 "\x23\xFA\x7D\x77\xB8\x46\x75\xFE"
12317 "\x4F\x10\xD3\x09\x60\xA1\x36\x96"
12318 "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14"
12319 "\x80\x21\x83\x58\x3C\x76\xFD\x28"
12320 "\x1D\xF9\x93\x13\xD7\x0E\x62\x14"
12321 "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C"
12322 "\x68\x93\x44\x70\xDF\xCF\x4A\x51"
12323 "\x0B\x81\x29\x41\xE5\x62\x4D\x36"
12324 "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09"
12325 "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6"
12326 "\x01\x91\xB4\x27\xDA\x59\xD6\x17"
12327 "\x56\x4D\x82\x62\x37\xA3\x48\x01"
12328 "\x99\x91\x77\xB2\x08\x6B\x2C\x37"
12329 "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3"
12330 "\x4D\x59\x7D\xC5\x28\x69\xFA\x92"
12331 "\x22\x46\x89\x2D\x0F\x2B\x08\x24",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012332 .len = 496,
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012333 },
12334};
12335
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012336static const struct cipher_testvec cast6_ctr_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012337 { /* Generated from TF test vectors */
12338 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12339 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12340 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12341 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12342 .klen = 32,
12343 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12344 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerse674dbc2019-02-14 00:03:53 -080012345 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12346 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012347 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012348 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030012349 "\x3A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012350 .ctext = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030012351 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12352 "\x57",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012353 .len = 17,
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030012354 }, { /* Generated from TF test vectors */
12355 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
12356 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
12357 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
12358 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
12359 .klen = 32,
12360 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12361 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerse674dbc2019-02-14 00:03:53 -080012362 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
12363 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x83",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012364 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030012365 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012366 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
12367 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
12368 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
12369 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
12370 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
12371 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
12372 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
12373 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
12374 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
12375 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
12376 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
12377 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
12378 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
12379 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
12380 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
12381 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
12382 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
12383 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
12384 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
12385 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
12386 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
12387 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
12388 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
12389 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
12390 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
12391 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
12392 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
12393 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
12394 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
12395 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
12396 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
12397 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
12398 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
12399 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
12400 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
12401 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
12402 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
12403 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
12404 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
12405 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
12406 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
12407 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
12408 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
12409 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
12410 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
12411 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
12412 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
12413 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
12414 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
12415 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
12416 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
12417 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
12418 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
12419 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
12420 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
12421 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
12422 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
12423 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
12424 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
12425 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012426 .ctext = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012427 "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A"
12428 "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7"
12429 "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56"
12430 "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8"
12431 "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3"
12432 "\xE3\xF3\xFA\xC2\x23\x55\x98\x20"
12433 "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5"
12434 "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30"
12435 "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D"
12436 "\x66\x45\xEE\xC8\x19\xBE\x50\xF0"
12437 "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9"
12438 "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5"
12439 "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C"
12440 "\x81\xDF\x82\x12\xC7\x4C\x1B\x07"
12441 "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA"
12442 "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6"
12443 "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5"
12444 "\x49\x61\x22\x52\x64\x8C\x46\x41"
12445 "\x1F\x48\x5F\x4F\xA2\x89\x36\x17"
12446 "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0"
12447 "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3"
12448 "\x00\x14\x15\x59\xC1\x30\x64\xAF"
12449 "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C"
12450 "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4"
12451 "\x02\x37\xC4\x69\xEF\x36\xC1\xF3"
12452 "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0"
12453 "\x51\x73\xA3\x22\x42\x41\xAB\xD2"
12454 "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA"
12455 "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF"
12456 "\xC9\x3F\x07\x87\x42\x4B\x3A\x54"
12457 "\x34\x8E\x37\xA3\x03\x6F\x65\x66"
12458 "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD"
12459 "\x61\xB4\x2B\x80\xA3\x98\x13\xF5"
12460 "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8"
12461 "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D"
12462 "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE"
12463 "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A"
12464 "\x60\x40\x38\x90\x20\x46\xC7\xB3"
12465 "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4"
12466 "\x11\x41\x76\x6B\xB3\x60\x82\x3C"
12467 "\x84\xFB\x08\x2E\x92\x25\xCB\x79"
12468 "\x6F\x58\xC5\x94\x00\x00\x47\xB6"
12469 "\x9E\xDC\x0F\x29\x70\x46\x20\x76"
12470 "\x65\x75\x66\x5C\x00\x96\xB3\xE1"
12471 "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45"
12472 "\x73\xFC\x91\xAB\x79\x41\x23\x14"
12473 "\x13\xB6\x72\x6C\x46\xB3\x03\x11"
12474 "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32"
12475 "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7"
12476 "\x15\x48\x44\x99\x09\xF6\xE0\xD7"
12477 "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2"
12478 "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2"
12479 "\x12\x53\x35\x9C\xF9\xE7\x35\x5D"
12480 "\x81\xE4\x86\x42\xC3\x58\xFB\xF0"
12481 "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F"
12482 "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4"
12483 "\x19\x35\x88\x22\x45\x59\x0E\x8F"
12484 "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41"
12485 "\x9B\x66\x8D\x32\xBA\x81\x34\x87"
12486 "\x0E\x74\x33\x30\x62\xB9\x89\xDF"
12487 "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012488 .len = 496,
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012489 },
12490};
12491
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012492static const struct cipher_testvec cast6_lrw_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012493 { /* Generated from TF test vectors */
12494 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
12495 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
12496 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
12497 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
12498 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
12499 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
12500 .klen = 48,
12501 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
12502 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012503 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012504 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
12505 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
12506 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
12507 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
12508 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
12509 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
12510 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
12511 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
12512 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
12513 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
12514 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
12515 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
12516 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
12517 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
12518 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
12519 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
12520 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
12521 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
12522 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
12523 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
12524 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
12525 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
12526 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
12527 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
12528 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
12529 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
12530 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
12531 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
12532 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
12533 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
12534 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
12535 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
12536 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
12537 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
12538 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
12539 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
12540 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
12541 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
12542 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
12543 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
12544 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
12545 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
12546 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
12547 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
12548 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
12549 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
12550 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
12551 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
12552 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
12553 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
12554 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
12555 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
12556 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
12557 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
12558 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
12559 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
12560 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
12561 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
12562 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
12563 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
12564 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
12565 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
12566 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012567 .ctext = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012568 "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB"
12569 "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA"
12570 "\x58\xB6\x73\xF0\xD7\x52\x34\xEF"
12571 "\xFB\x3E\x96\x81\xB7\x71\x34\xA4"
12572 "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1"
12573 "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7"
12574 "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B"
12575 "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08"
12576 "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D"
12577 "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE"
12578 "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA"
12579 "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D"
12580 "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28"
12581 "\x80\x1D\xF0\x30\xBA\x62\x77\x7D"
12582 "\xDB\x15\x69\xDF\xFA\x2A\x81\x64"
12583 "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30"
12584 "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7"
12585 "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B"
12586 "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61"
12587 "\x5E\xDB\xFC\x11\x74\x25\x96\x65"
12588 "\xE8\xE2\x34\x57\x77\x15\x5E\x70"
12589 "\xFF\x10\x90\xC3\x64\xF0\x11\x0A"
12590 "\x63\x3A\xD3\x55\x92\x15\x4B\x0C"
12591 "\xC7\x08\x89\x17\x3B\x99\xAD\x63"
12592 "\xE7\x06\xDF\x52\xBC\x15\x64\x45"
12593 "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9"
12594 "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23"
12595 "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E"
12596 "\xBD\xAB\x60\x1A\x51\x17\x54\x27"
12597 "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19"
12598 "\x2F\x6F\x20\xA7\x47\xED\x74\x6C"
12599 "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F"
12600 "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1"
12601 "\x07\x16\xDE\x76\xCC\x5E\x94\x02"
12602 "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F"
12603 "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7"
12604 "\x6E\x21\x58\x36\x06\xDE\xB3\xD4"
12605 "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23"
12606 "\x51\x21\x2B\x32\x68\xAA\xF8\xA8"
12607 "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7"
12608 "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25"
12609 "\x30\xC7\x10\x3F\x97\x27\x01\x8E"
12610 "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB"
12611 "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8"
12612 "\x22\xE2\xE6\x92\xA7\x5F\x11\x32"
12613 "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54"
12614 "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC"
12615 "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5"
12616 "\x96\x3D\x69\x91\x20\x4E\xF2\x61"
12617 "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A"
12618 "\x78\x39\xB0\xE0\xCF\x12\x56\xD6"
12619 "\x05\xDC\xF9\x19\x66\x44\x1D\xF9"
12620 "\x82\x37\xD4\xC2\x60\xB6\x31\xDF"
12621 "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D"
12622 "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9"
12623 "\x9B\x8D\xA7\x00\x86\x25\xB6\x14"
12624 "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3"
12625 "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6"
12626 "\x15\xB7\x94\x7D\x4E\x70\x4C\x75"
12627 "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A"
12628 "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5"
12629 "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7"
12630 "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012631 .len = 512,
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012632 },
12633};
12634
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012635static const struct cipher_testvec cast6_xts_tv_template[] = {
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012636 { /* Generated from TF test vectors */
12637 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
12638 "\x23\x53\x60\x28\x74\x71\x35\x26"
12639 "\x62\x49\x77\x57\x24\x70\x93\x69"
12640 "\x99\x59\x57\x49\x66\x96\x76\x27"
12641 "\x31\x41\x59\x26\x53\x58\x97\x93"
12642 "\x23\x84\x62\x64\x33\x83\x27\x95"
12643 "\x02\x88\x41\x97\x16\x93\x99\x37"
12644 "\x51\x05\x82\x09\x74\x94\x45\x92",
12645 .klen = 64,
12646 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
12647 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012648 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012649 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12650 "\x10\x11\x12\x13\x14\x15\x16\x17"
12651 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12652 "\x20\x21\x22\x23\x24\x25\x26\x27"
12653 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12654 "\x30\x31\x32\x33\x34\x35\x36\x37"
12655 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12656 "\x40\x41\x42\x43\x44\x45\x46\x47"
12657 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12658 "\x50\x51\x52\x53\x54\x55\x56\x57"
12659 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12660 "\x60\x61\x62\x63\x64\x65\x66\x67"
12661 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12662 "\x70\x71\x72\x73\x74\x75\x76\x77"
12663 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12664 "\x80\x81\x82\x83\x84\x85\x86\x87"
12665 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12666 "\x90\x91\x92\x93\x94\x95\x96\x97"
12667 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12668 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12669 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12670 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12671 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12672 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12673 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12674 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12675 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12676 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12677 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12678 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12679 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
12680 "\x00\x01\x02\x03\x04\x05\x06\x07"
12681 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12682 "\x10\x11\x12\x13\x14\x15\x16\x17"
12683 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
12684 "\x20\x21\x22\x23\x24\x25\x26\x27"
12685 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
12686 "\x30\x31\x32\x33\x34\x35\x36\x37"
12687 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
12688 "\x40\x41\x42\x43\x44\x45\x46\x47"
12689 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
12690 "\x50\x51\x52\x53\x54\x55\x56\x57"
12691 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
12692 "\x60\x61\x62\x63\x64\x65\x66\x67"
12693 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
12694 "\x70\x71\x72\x73\x74\x75\x76\x77"
12695 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
12696 "\x80\x81\x82\x83\x84\x85\x86\x87"
12697 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
12698 "\x90\x91\x92\x93\x94\x95\x96\x97"
12699 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
12700 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
12701 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
12702 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
12703 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
12704 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
12705 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
12706 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
12707 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
12708 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
12709 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
12710 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
12711 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012712 .ctext = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78"
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012713 "\x88\x5A\x4F\x8D\x82\x76\x52\x6D"
12714 "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6"
12715 "\xE2\xC5\x62\x8D\x61\xA1\x01\xED"
12716 "\xD9\x38\x01\xC1\x43\x63\x4E\x88"
12717 "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71"
12718 "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13"
12719 "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81"
12720 "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6"
12721 "\x60\x54\x09\x32\xFE\x6A\x76\x2E"
12722 "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D"
12723 "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB"
12724 "\xB8\x25\x70\xF8\x40\xBC\x90\x1B"
12725 "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD"
12726 "\xD3\x3B\xCF\x60\xA1\x78\x94\x57"
12727 "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98"
12728 "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA"
12729 "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67"
12730 "\x05\xDD\x1D\x58\x6E\x2F\x95\x08"
12731 "\x3A\xF8\x78\x76\x82\x56\xA7\xEC"
12732 "\x51\x4B\x85\x77\xC2\x4C\x4A\x34"
12733 "\x71\x38\x17\x91\x44\xE8\xFC\x65"
12734 "\x99\x0D\x52\x91\xEE\xF8\xEF\x27"
12735 "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4"
12736 "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D"
12737 "\x59\x22\x9B\x29\x5C\x18\xF0\xC3"
12738 "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1"
12739 "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3"
12740 "\x91\x3B\x49\x73\x18\xAB\xD4\xC9"
12741 "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A"
12742 "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E"
12743 "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24"
12744 "\xE6\x87\xEA\xFE\x96\x25\x67\x8E"
12745 "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C"
12746 "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9"
12747 "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97"
12748 "\x49\xF7\x04\xCB\xEF\x84\x98\x33"
12749 "\xAF\x38\xD3\x04\x1C\x24\x71\x38"
12750 "\xC7\x71\xDD\x43\x0D\x12\x4A\x18"
12751 "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95"
12752 "\x02\x43\x5D\xCE\x19\xCC\xCD\x66"
12753 "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C"
12754 "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB"
12755 "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B"
12756 "\x30\x45\xA9\xB7\xAF\x80\x64\x6F"
12757 "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE"
12758 "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE"
12759 "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8"
12760 "\x97\xA3\xE1\x6F\x38\x24\x34\x88"
12761 "\xCE\xBD\x32\x52\xE0\x00\x6C\x94"
12762 "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F"
12763 "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59"
12764 "\x34\x39\xA8\x35\x12\xB7\xBC\xAC"
12765 "\xEA\x52\x9C\x78\x02\x6D\x92\x36"
12766 "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83"
12767 "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64"
12768 "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3"
12769 "\xB0\xEB\x31\xE4\x69\x95\xAB\x35"
12770 "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82"
12771 "\xF8\xD9\x47\x82\xA9\x82\x03\x91"
12772 "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F"
12773 "\x45\x72\x80\x17\x81\xBD\x9D\x62"
12774 "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC"
12775 "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012776 .len = 512,
Johannes Goetzfried9b8b0402012-07-11 19:38:29 +020012777 },
12778};
12779
Herbert Xuda7f0332008-07-31 17:08:25 +080012780/*
12781 * AES test vectors.
12782 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012783static const struct cipher_testvec aes_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080012784 { /* From FIPS-197 */
12785 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
12786 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
12787 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012788 .ptext = "\x00\x11\x22\x33\x44\x55\x66\x77"
Herbert Xuda7f0332008-07-31 17:08:25 +080012789 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012790 .ctext = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30"
Herbert Xuda7f0332008-07-31 17:08:25 +080012791 "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012792 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080012793 }, {
12794 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
12795 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12796 "\x10\x11\x12\x13\x14\x15\x16\x17",
12797 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012798 .ptext = "\x00\x11\x22\x33\x44\x55\x66\x77"
Herbert Xuda7f0332008-07-31 17:08:25 +080012799 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012800 .ctext = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0"
Herbert Xuda7f0332008-07-31 17:08:25 +080012801 "\x6e\xaf\x70\xa0\xec\x0d\x71\x91",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012802 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080012803 }, {
12804 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
12805 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12806 "\x10\x11\x12\x13\x14\x15\x16\x17"
12807 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
12808 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012809 .ptext = "\x00\x11\x22\x33\x44\x55\x66\x77"
Herbert Xuda7f0332008-07-31 17:08:25 +080012810 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012811 .ctext = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf"
Herbert Xuda7f0332008-07-31 17:08:25 +080012812 "\xea\xfc\x49\x90\x4b\x49\x60\x89",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012813 .len = 16,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012814 }, { /* Generated with Crypto++ */
12815 .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32"
12816 "\x55\x0F\x32\x55\x78\x9B\xBE\x78"
12817 "\x9B\xBE\xE1\x04\x27\xE1\x04\x27"
12818 "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6",
12819 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012820 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012821 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
12822 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
12823 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
12824 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
12825 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
12826 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
12827 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
12828 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
12829 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
12830 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
12831 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
12832 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
12833 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
12834 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
12835 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
12836 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
12837 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
12838 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
12839 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
12840 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
12841 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
12842 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
12843 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
12844 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
12845 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
12846 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
12847 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
12848 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
12849 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
12850 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
12851 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
12852 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
12853 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
12854 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
12855 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
12856 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
12857 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
12858 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
12859 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
12860 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
12861 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
12862 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
12863 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
12864 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
12865 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
12866 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
12867 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
12868 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
12869 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
12870 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
12871 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
12872 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
12873 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
12874 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
12875 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
12876 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
12877 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
12878 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
12879 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
12880 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
12881 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012882 .ctext = "\x71\x73\xF7\xDB\x24\x93\x21\x6D"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030012883 "\x61\x1E\xBB\x63\x42\x79\xDB\x64"
12884 "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B"
12885 "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F"
12886 "\x5E\x06\xF0\x5F\x31\x51\x18\x37"
12887 "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1"
12888 "\xDD\x8D\x22\x65\x2B\x00\x50\xCE"
12889 "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA"
12890 "\x78\x69\x7F\xAE\x8F\x8B\x69\x37"
12891 "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09"
12892 "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8"
12893 "\x81\x82\x27\xFA\x45\x9C\x29\xA4"
12894 "\x22\x8B\x78\x69\x5B\x46\xF9\x39"
12895 "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C"
12896 "\x41\x72\x51\x97\x1D\x07\x49\xA0"
12897 "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03"
12898 "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64"
12899 "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA"
12900 "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F"
12901 "\xE1\x8B\x22\x17\x59\x0C\x47\x89"
12902 "\x33\xA1\xD6\x47\x03\x19\x4F\xA8"
12903 "\x67\x69\xF0\x5B\xF0\x20\xAD\x06"
12904 "\x27\x81\x92\xD8\xC5\xBA\x98\x12"
12905 "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD"
12906 "\x12\x2F\x07\x32\xEE\x39\xAF\x64"
12907 "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E"
12908 "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68"
12909 "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC"
12910 "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F"
12911 "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C"
12912 "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B"
12913 "\x25\xFB\x26\x81\xE0\x2F\xF0\x96"
12914 "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64"
12915 "\x63\x29\x4C\x8E\x18\x13\xC5\xBF"
12916 "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29"
12917 "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1"
12918 "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1"
12919 "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA"
12920 "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50"
12921 "\x31\xCB\x69\x3F\x96\x15\xD6\xF5"
12922 "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10"
12923 "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A"
12924 "\xDC\x6A\x80\x34\x73\x97\x1B\xC5"
12925 "\xCA\x26\x16\x77\x0E\x60\xAB\x89"
12926 "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4"
12927 "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70"
12928 "\x42\x71\x51\x78\x70\xB3\xE0\x3D"
12929 "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92"
12930 "\x11\x08\x42\x4F\xE5\xAD\x26\x92"
12931 "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47"
12932 "\x22\xC1\x95\xC1\x63\x7F\xCB\x03"
12933 "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA"
12934 "\x35\xA2\xFD\x45\x52\x39\x13\x6F"
12935 "\xC1\x53\xF3\x53\xDF\x33\x84\xD7"
12936 "\xD2\xC8\x37\xB0\x75\xE3\x41\x46"
12937 "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5"
12938 "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD"
12939 "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F"
12940 "\x40\x86\x7F\x51\xE1\x11\x9C\xCB"
12941 "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF"
12942 "\x09\x79\xA0\x43\x5C\x0D\x08\x58"
12943 "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012944 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +080012945 },
12946};
12947
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012948static const struct cipher_testvec aes_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080012949 { /* From RFC 3602 */
12950 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
12951 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
12952 .klen = 16,
12953 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
12954 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Eric Biggerscdc69462019-02-14 00:03:52 -080012955 .iv_out = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
12956 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012957 .ptext = "Single block msg",
12958 .ctext = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +080012959 "\x27\x08\x94\x2d\xbe\x77\x18\x1a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012960 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080012961 }, {
12962 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
12963 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
12964 .klen = 16,
12965 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
12966 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Eric Biggerscdc69462019-02-14 00:03:52 -080012967 .iv_out = "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12968 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012969 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080012970 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
12971 "\x10\x11\x12\x13\x14\x15\x16\x17"
12972 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012973 .ctext = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
Herbert Xuda7f0332008-07-31 17:08:25 +080012974 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
12975 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
12976 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012977 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080012978 }, { /* From NIST SP800-38A */
12979 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
12980 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
12981 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
12982 .klen = 24,
12983 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
12984 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggerscdc69462019-02-14 00:03:52 -080012985 .iv_out = "\x08\xb0\xe2\x79\x88\x59\x88\x81"
12986 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012987 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Herbert Xuda7f0332008-07-31 17:08:25 +080012988 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
12989 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
12990 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
12991 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
12992 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
12993 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
12994 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070012995 .ctext = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
Herbert Xuda7f0332008-07-31 17:08:25 +080012996 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
12997 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
12998 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
12999 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13000 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13001 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13002 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013003 .len = 64,
Herbert Xuda7f0332008-07-31 17:08:25 +080013004 }, {
13005 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13006 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13007 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13008 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13009 .klen = 32,
13010 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13011 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggerscdc69462019-02-14 00:03:52 -080013012 .iv_out = "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13013 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013014 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Herbert Xuda7f0332008-07-31 17:08:25 +080013015 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13016 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13017 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13018 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13019 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13020 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13021 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013022 .ctext = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
Herbert Xuda7f0332008-07-31 17:08:25 +080013023 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13024 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13025 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13026 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13027 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13028 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13029 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013030 .len = 64,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030013031 }, { /* Generated with Crypto++ */
13032 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
13033 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
13034 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
13035 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
13036 .klen = 32,
13037 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
13038 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
Eric Biggerscdc69462019-02-14 00:03:52 -080013039 .iv_out = "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
13040 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013041 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030013042 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
13043 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
13044 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
13045 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
13046 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
13047 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
13048 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
13049 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
13050 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
13051 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
13052 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
13053 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
13054 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
13055 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
13056 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
13057 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
13058 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
13059 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
13060 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
13061 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
13062 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
13063 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
13064 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
13065 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
13066 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
13067 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
13068 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
13069 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
13070 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
13071 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
13072 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
13073 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
13074 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
13075 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
13076 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
13077 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
13078 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
13079 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
13080 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
13081 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
13082 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
13083 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
13084 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
13085 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
13086 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
13087 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
13088 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
13089 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
13090 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
13091 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
13092 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
13093 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
13094 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
13095 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
13096 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
13097 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
13098 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
13099 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
13100 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
13101 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
13102 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013103 .ctext = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030013104 "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF"
13105 "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F"
13106 "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8"
13107 "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0"
13108 "\x11\x15\xFF\x6D\x1E\x82\x04\xA6"
13109 "\xB1\x74\xD1\x08\x13\xFD\x90\x7C"
13110 "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F"
13111 "\x0A\x70\xF1\x88\x07\xCF\x21\x26"
13112 "\x40\x40\x8A\xF5\x53\xF7\x24\x4F"
13113 "\x83\x38\x43\x5F\x08\x99\xEB\xE3"
13114 "\xDC\x02\x64\x67\x50\x6E\x15\xC3"
13115 "\x01\x1A\xA0\x81\x13\x65\xA6\x73"
13116 "\x71\xA6\x3B\x91\x83\x77\xBE\xFA"
13117 "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3"
13118 "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F"
13119 "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F"
13120 "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43"
13121 "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40"
13122 "\x03\xA8\x6C\x50\x42\x9F\x77\x59"
13123 "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99"
13124 "\x16\x24\x02\x07\x48\xAE\xF2\x31"
13125 "\x34\x0E\xC3\x85\xFE\x1C\x95\x99"
13126 "\x87\x58\x98\x8B\xE7\xC6\xC5\x70"
13127 "\x73\x81\x07\x7C\x56\x2F\xD8\x1B"
13128 "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F"
13129 "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98"
13130 "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04"
13131 "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5"
13132 "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD"
13133 "\xF1\xE3\x3D\x98\x50\x02\x77\x9E"
13134 "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66"
13135 "\x20\x02\x23\xDA\xDF\xA0\x89\xF6"
13136 "\xD8\xF3\x45\x24\x53\x6F\x16\x77"
13137 "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78"
13138 "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3"
13139 "\x57\xBC\x0B\x9F\x43\x51\x28\x4F"
13140 "\x07\x50\x6C\x68\x12\x07\xCF\xFA"
13141 "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C"
13142 "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD"
13143 "\x22\x39\x7B\x16\x03\x01\x69\xAF"
13144 "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5"
13145 "\x03\xB4\x2F\x51\x8A\x56\x17\x2B"
13146 "\x88\x42\x6D\x40\x68\x8F\xD0\x11"
13147 "\x19\xF9\x1F\x43\x79\x95\x31\xFA"
13148 "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC"
13149 "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC"
13150 "\x8D\x53\x6E\x72\x68\xA3\xC7\x63"
13151 "\x43\x2B\x78\xE0\x04\x29\x8F\x72"
13152 "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD"
13153 "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D"
13154 "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44"
13155 "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61"
13156 "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC"
13157 "\x58\x08\x15\xAB\x12\xAB\x17\x4A"
13158 "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB"
13159 "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F"
13160 "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61"
13161 "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD"
13162 "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A"
13163 "\xE0\x1F\x91\xF8\x82\x96\x2D\x65"
13164 "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070013165 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +080013166 },
13167};
13168
Dmitry Eremin-Solenikov7da66672018-10-20 02:01:53 +030013169static const struct cipher_testvec aes_cfb_tv_template[] = {
13170 { /* From NIST SP800-38A */
13171 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
13172 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
13173 .klen = 16,
13174 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13175 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13176 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13177 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13178 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13179 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13180 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13181 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13182 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13183 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13184 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
13185 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
13186 "\xc8\xa6\x45\x37\xa0\xb3\xa9\x3f"
13187 "\xcd\xe3\xcd\xad\x9f\x1c\xe5\x8b"
13188 "\x26\x75\x1f\x67\xa3\xcb\xb1\x40"
13189 "\xb1\x80\x8c\xf1\x87\xa4\xf4\xdf"
13190 "\xc0\x4b\x05\x35\x7c\x5d\x1c\x0e"
13191 "\xea\xc4\xc6\x6f\x9f\xf7\xf2\xe6",
13192 .len = 64,
13193 }, {
13194 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13195 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13196 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13197 .klen = 24,
13198 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13199 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13200 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13201 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13202 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13203 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13204 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13205 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13206 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13207 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13208 .ctext = "\xcd\xc8\x0d\x6f\xdd\xf1\x8c\xab"
13209 "\x34\xc2\x59\x09\xc9\x9a\x41\x74"
13210 "\x67\xce\x7f\x7f\x81\x17\x36\x21"
13211 "\x96\x1a\x2b\x70\x17\x1d\x3d\x7a"
13212 "\x2e\x1e\x8a\x1d\xd5\x9b\x88\xb1"
13213 "\xc8\xe6\x0f\xed\x1e\xfa\xc4\xc9"
13214 "\xc0\x5f\x9f\x9c\xa9\x83\x4f\xa0"
13215 "\x42\xae\x8f\xba\x58\x4b\x09\xff",
13216 .len = 64,
13217 }, {
13218 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13219 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13220 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13221 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13222 .klen = 32,
13223 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13224 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13225 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13226 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13227 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13228 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13229 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13230 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13231 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13232 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
13233 .ctext = "\xdc\x7e\x84\xbf\xda\x79\x16\x4b"
13234 "\x7e\xcd\x84\x86\x98\x5d\x38\x60"
13235 "\x39\xff\xed\x14\x3b\x28\xb1\xc8"
13236 "\x32\x11\x3c\x63\x31\xe5\x40\x7b"
13237 "\xdf\x10\x13\x24\x15\xe5\x4b\x92"
13238 "\xa1\x3e\xd0\xa8\x26\x7a\xe2\xf9"
13239 "\x75\xa3\x85\x74\x1a\xb9\xce\xf8"
13240 "\x20\x31\x62\x3d\x55\xb1\xe4\x71",
13241 .len = 64,
Eric Biggers394a9e02019-01-03 20:16:10 -080013242 }, { /* > 16 bytes, not a multiple of 16 bytes */
13243 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
13244 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
13245 .klen = 16,
13246 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13247 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13248 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
13249 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13250 "\xae",
13251 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
13252 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
13253 "\xc8",
13254 .len = 17,
13255 }, { /* < 16 bytes */
13256 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
13257 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
13258 .klen = 16,
13259 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13260 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13261 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f",
13262 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad",
13263 .len = 7,
Dmitry Eremin-Solenikov7da66672018-10-20 02:01:53 +030013264 },
13265};
13266
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013267static const struct aead_testvec hmac_md5_ecb_cipher_null_tv_template[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020013268 { /* Input data from RFC 2410 Case 1 */
13269#ifdef __LITTLE_ENDIAN
13270 .key = "\x08\x00" /* rta length */
13271 "\x01\x00" /* rta type */
13272#else
13273 .key = "\x00\x08" /* rta length */
13274 "\x00\x01" /* rta type */
13275#endif
13276 "\x00\x00\x00\x00" /* enc key length */
13277 "\x00\x00\x00\x00\x00\x00\x00\x00"
13278 "\x00\x00\x00\x00\x00\x00\x00\x00",
13279 .klen = 8 + 16 + 0,
13280 .iv = "",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013281 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
13282 .plen = 8,
13283 .ctext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Horia Geantabca4feb2014-03-14 17:46:51 +020013284 "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a"
13285 "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013286 .clen = 8 + 16,
Horia Geantabca4feb2014-03-14 17:46:51 +020013287 }, { /* Input data from RFC 2410 Case 2 */
13288#ifdef __LITTLE_ENDIAN
13289 .key = "\x08\x00" /* rta length */
13290 "\x01\x00" /* rta type */
13291#else
13292 .key = "\x00\x08" /* rta length */
13293 "\x00\x01" /* rta type */
13294#endif
13295 "\x00\x00\x00\x00" /* enc key length */
13296 "\x00\x00\x00\x00\x00\x00\x00\x00"
13297 "\x00\x00\x00\x00\x00\x00\x00\x00",
13298 .klen = 8 + 16 + 0,
13299 .iv = "",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013300 .ptext = "Network Security People Have A Strange Sense Of Humor",
13301 .plen = 53,
13302 .ctext = "Network Security People Have A Strange Sense Of Humor"
Horia Geantabca4feb2014-03-14 17:46:51 +020013303 "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a"
13304 "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013305 .clen = 53 + 16,
Horia Geantabca4feb2014-03-14 17:46:51 +020013306 },
13307};
13308
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013309static const struct aead_testvec hmac_sha1_aes_cbc_tv_temp[] = {
Horia Geantae46e9a42012-07-03 19:16:54 +030013310 { /* RFC 3602 Case 1 */
13311#ifdef __LITTLE_ENDIAN
13312 .key = "\x08\x00" /* rta length */
13313 "\x01\x00" /* rta type */
13314#else
13315 .key = "\x00\x08" /* rta length */
13316 "\x00\x01" /* rta type */
13317#endif
13318 "\x00\x00\x00\x10" /* enc key length */
13319 "\x00\x00\x00\x00\x00\x00\x00\x00"
13320 "\x00\x00\x00\x00\x00\x00\x00\x00"
13321 "\x00\x00\x00\x00"
13322 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13323 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13324 .klen = 8 + 20 + 16,
13325 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13326 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Herbert Xu7079ce62015-07-30 17:53:14 +080013327 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13328 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13329 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013330 .ptext = "Single block msg",
13331 .plen = 16,
13332 .ctext = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
Horia Geantae46e9a42012-07-03 19:16:54 +030013333 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
13334 "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c"
13335 "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5"
13336 "\x03\x71\xa2\x06",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013337 .clen = 16 + 20,
Horia Geantae46e9a42012-07-03 19:16:54 +030013338 }, { /* RFC 3602 Case 2 */
13339#ifdef __LITTLE_ENDIAN
13340 .key = "\x08\x00" /* rta length */
13341 "\x01\x00" /* rta type */
13342#else
13343 .key = "\x00\x08" /* rta length */
13344 "\x00\x01" /* rta type */
13345#endif
13346 "\x00\x00\x00\x10" /* enc key length */
13347 "\x20\x21\x22\x23\x24\x25\x26\x27"
13348 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13349 "\x30\x31\x32\x33"
13350 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13351 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13352 .klen = 8 + 20 + 16,
13353 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13354 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Herbert Xu7079ce62015-07-30 17:53:14 +080013355 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13356 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13357 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013358 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Horia Geantae46e9a42012-07-03 19:16:54 +030013359 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13360 "\x10\x11\x12\x13\x14\x15\x16\x17"
13361 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013362 .plen = 32,
13363 .ctext = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
Horia Geantae46e9a42012-07-03 19:16:54 +030013364 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13365 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13366 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
13367 "\xad\x9b\x4c\x5c\x85\xe1\xda\xae"
13368 "\xee\x81\x4e\xd7\xdb\x74\xcf\x58"
13369 "\x65\x39\xf8\xde",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013370 .clen = 32 + 20,
Horia Geantae46e9a42012-07-03 19:16:54 +030013371 }, { /* RFC 3602 Case 3 */
13372#ifdef __LITTLE_ENDIAN
13373 .key = "\x08\x00" /* rta length */
13374 "\x01\x00" /* rta type */
13375#else
13376 .key = "\x00\x08" /* rta length */
13377 "\x00\x01" /* rta type */
13378#endif
13379 "\x00\x00\x00\x10" /* enc key length */
13380 "\x11\x22\x33\x44\x55\x66\x77\x88"
13381 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13382 "\x22\x33\x44\x55"
13383 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
13384 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
13385 .klen = 8 + 20 + 16,
13386 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13387 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
Herbert Xu7079ce62015-07-30 17:53:14 +080013388 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13389 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
13390 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013391 .ptext = "This is a 48-byte message (exactly 3 AES blocks)",
13392 .plen = 48,
13393 .ctext = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
Horia Geantae46e9a42012-07-03 19:16:54 +030013394 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
13395 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
13396 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
13397 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
13398 "\x85\x79\x69\x5d\x83\xba\x26\x84"
13399 "\xc2\xec\x0c\xf8\x7f\x05\xba\xca"
13400 "\xff\xee\x4c\xd0\x93\xe6\x36\x7f"
13401 "\x8d\x62\xf2\x1e",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013402 .clen = 48 + 20,
Horia Geantae46e9a42012-07-03 19:16:54 +030013403 }, { /* RFC 3602 Case 4 */
13404#ifdef __LITTLE_ENDIAN
13405 .key = "\x08\x00" /* rta length */
13406 "\x01\x00" /* rta type */
13407#else
13408 .key = "\x00\x08" /* rta length */
13409 "\x00\x01" /* rta type */
13410#endif
13411 "\x00\x00\x00\x10" /* enc key length */
13412 "\x11\x22\x33\x44\x55\x66\x77\x88"
13413 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13414 "\x22\x33\x44\x55"
13415 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
13416 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
13417 .klen = 8 + 20 + 16,
13418 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13419 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
Herbert Xu7079ce62015-07-30 17:53:14 +080013420 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13421 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
13422 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013423 .ptext = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
Horia Geantae46e9a42012-07-03 19:16:54 +030013424 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13425 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13426 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13427 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13428 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13429 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13430 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013431 .plen = 64,
13432 .ctext = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
Horia Geantae46e9a42012-07-03 19:16:54 +030013433 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
13434 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
13435 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
13436 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
13437 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
13438 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
13439 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
13440 "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d"
13441 "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d"
13442 "\x1d\xbe\xc6\xe9",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013443 .clen = 64 + 20,
Horia Geantae46e9a42012-07-03 19:16:54 +030013444 }, { /* RFC 3602 Case 5 */
13445#ifdef __LITTLE_ENDIAN
13446 .key = "\x08\x00" /* rta length */
13447 "\x01\x00" /* rta type */
13448#else
13449 .key = "\x00\x08" /* rta length */
13450 "\x00\x01" /* rta type */
13451#endif
13452 "\x00\x00\x00\x10" /* enc key length */
13453 "\x11\x22\x33\x44\x55\x66\x77\x88"
13454 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13455 "\x22\x33\x44\x55"
13456 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
13457 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
13458 .klen = 8 + 20 + 16,
13459 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13460 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
Herbert Xu7079ce62015-07-30 17:53:14 +080013461 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13462 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13463 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
13464 .alen = 24,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013465 .ptext = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
Horia Geantae46e9a42012-07-03 19:16:54 +030013466 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
13467 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13468 "\x10\x11\x12\x13\x14\x15\x16\x17"
13469 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13470 "\x20\x21\x22\x23\x24\x25\x26\x27"
13471 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13472 "\x30\x31\x32\x33\x34\x35\x36\x37"
13473 "\x01\x02\x03\x04\x05\x06\x07\x08"
13474 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013475 .plen = 80,
13476 .ctext = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
Horia Geantae46e9a42012-07-03 19:16:54 +030013477 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
13478 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
13479 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
13480 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
13481 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
13482 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
13483 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
13484 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
13485 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
13486 "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c"
13487 "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8"
13488 "\x85\xe1\x59\xf7",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013489 .clen = 80 + 20,
Horia Geantae46e9a42012-07-03 19:16:54 +030013490 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
13491#ifdef __LITTLE_ENDIAN
13492 .key = "\x08\x00" /* rta length */
13493 "\x01\x00" /* rta type */
13494#else
13495 .key = "\x00\x08" /* rta length */
13496 "\x00\x01" /* rta type */
13497#endif
13498 "\x00\x00\x00\x18" /* enc key length */
13499 "\x11\x22\x33\x44\x55\x66\x77\x88"
13500 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13501 "\x22\x33\x44\x55"
13502 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13503 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13504 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13505 .klen = 8 + 20 + 24,
13506 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13507 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013508 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13509 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13510 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013511 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Horia Geantae46e9a42012-07-03 19:16:54 +030013512 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13513 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13514 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13515 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13516 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13517 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13518 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013519 .plen = 64,
13520 .ctext = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
Horia Geantae46e9a42012-07-03 19:16:54 +030013521 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13522 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13523 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13524 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13525 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13526 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13527 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
13528 "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4"
13529 "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36"
13530 "\x47\x4c\xfc\x36",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013531 .clen = 64 + 20,
Horia Geantae46e9a42012-07-03 19:16:54 +030013532 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
13533#ifdef __LITTLE_ENDIAN
13534 .key = "\x08\x00" /* rta length */
13535 "\x01\x00" /* rta type */
13536#else
13537 .key = "\x00\x08" /* rta length */
13538 "\x00\x01" /* rta type */
13539#endif
13540 "\x00\x00\x00\x20" /* enc key length */
13541 "\x11\x22\x33\x44\x55\x66\x77\x88"
13542 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13543 "\x22\x33\x44\x55"
13544 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13545 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13546 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13547 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13548 .klen = 8 + 20 + 32,
13549 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13550 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013551 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13552 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13553 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013554 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Horia Geantae46e9a42012-07-03 19:16:54 +030013555 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13556 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13557 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13558 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13559 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13560 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13561 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013562 .plen = 64,
13563 .ctext = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
Horia Geantae46e9a42012-07-03 19:16:54 +030013564 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13565 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13566 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13567 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13568 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13569 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13570 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
13571 "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde"
13572 "\x1b\x9f\xc6\x81\x26\x43\x4a\x87"
13573 "\x51\xee\xd6\x4e",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013574 .clen = 64 + 20,
Horia Geantae46e9a42012-07-03 19:16:54 +030013575 },
13576};
13577
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013578static const struct aead_testvec hmac_sha1_ecb_cipher_null_tv_temp[] = {
Horia Geantabca4feb2014-03-14 17:46:51 +020013579 { /* Input data from RFC 2410 Case 1 */
13580#ifdef __LITTLE_ENDIAN
13581 .key = "\x08\x00" /* rta length */
13582 "\x01\x00" /* rta type */
13583#else
13584 .key = "\x00\x08" /* rta length */
13585 "\x00\x01" /* rta type */
13586#endif
13587 "\x00\x00\x00\x00" /* enc key length */
13588 "\x00\x00\x00\x00\x00\x00\x00\x00"
13589 "\x00\x00\x00\x00\x00\x00\x00\x00"
13590 "\x00\x00\x00\x00",
13591 .klen = 8 + 20 + 0,
13592 .iv = "",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013593 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
13594 .plen = 8,
13595 .ctext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Horia Geantabca4feb2014-03-14 17:46:51 +020013596 "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab"
13597 "\x99\x5e\x19\x04\xd1\x72\xef\xb8"
13598 "\x8c\x5e\xe4\x08",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013599 .clen = 8 + 20,
Horia Geantabca4feb2014-03-14 17:46:51 +020013600 }, { /* Input data from RFC 2410 Case 2 */
13601#ifdef __LITTLE_ENDIAN
13602 .key = "\x08\x00" /* rta length */
13603 "\x01\x00" /* rta type */
13604#else
13605 .key = "\x00\x08" /* rta length */
13606 "\x00\x01" /* rta type */
13607#endif
13608 "\x00\x00\x00\x00" /* enc key length */
13609 "\x00\x00\x00\x00\x00\x00\x00\x00"
13610 "\x00\x00\x00\x00\x00\x00\x00\x00"
13611 "\x00\x00\x00\x00",
13612 .klen = 8 + 20 + 0,
13613 .iv = "",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013614 .ptext = "Network Security People Have A Strange Sense Of Humor",
13615 .plen = 53,
13616 .ctext = "Network Security People Have A Strange Sense Of Humor"
Horia Geantabca4feb2014-03-14 17:46:51 +020013617 "\x75\x6f\x42\x1e\xf8\x50\x21\xd2"
13618 "\x65\x47\xee\x8e\x1a\xef\x16\xf6"
13619 "\x91\x56\xe4\xd6",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013620 .clen = 53 + 20,
Horia Geantabca4feb2014-03-14 17:46:51 +020013621 },
13622};
13623
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013624static const struct aead_testvec hmac_sha256_aes_cbc_tv_temp[] = {
Horia Geantae46e9a42012-07-03 19:16:54 +030013625 { /* RFC 3602 Case 1 */
13626#ifdef __LITTLE_ENDIAN
13627 .key = "\x08\x00" /* rta length */
13628 "\x01\x00" /* rta type */
13629#else
13630 .key = "\x00\x08" /* rta length */
13631 "\x00\x01" /* rta type */
13632#endif
13633 "\x00\x00\x00\x10" /* enc key length */
13634 "\x00\x00\x00\x00\x00\x00\x00\x00"
13635 "\x00\x00\x00\x00\x00\x00\x00\x00"
13636 "\x00\x00\x00\x00\x00\x00\x00\x00"
13637 "\x00\x00\x00\x00\x00\x00\x00\x00"
13638 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13639 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13640 .klen = 8 + 32 + 16,
13641 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13642 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Herbert Xu7079ce62015-07-30 17:53:14 +080013643 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13644 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13645 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013646 .ptext = "Single block msg",
13647 .plen = 16,
13648 .ctext = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
Horia Geantae46e9a42012-07-03 19:16:54 +030013649 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
13650 "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
13651 "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
13652 "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
13653 "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013654 .clen = 16 + 32,
Horia Geantae46e9a42012-07-03 19:16:54 +030013655 }, { /* RFC 3602 Case 2 */
13656#ifdef __LITTLE_ENDIAN
13657 .key = "\x08\x00" /* rta length */
13658 "\x01\x00" /* rta type */
13659#else
13660 .key = "\x00\x08" /* rta length */
13661 "\x00\x01" /* rta type */
13662#endif
13663 "\x00\x00\x00\x10" /* enc key length */
13664 "\x20\x21\x22\x23\x24\x25\x26\x27"
13665 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13666 "\x30\x31\x32\x33\x34\x35\x36\x37"
13667 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13668 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13669 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13670 .klen = 8 + 32 + 16,
13671 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13672 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Herbert Xu7079ce62015-07-30 17:53:14 +080013673 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13674 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13675 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013676 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Horia Geantae46e9a42012-07-03 19:16:54 +030013677 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13678 "\x10\x11\x12\x13\x14\x15\x16\x17"
13679 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013680 .plen = 32,
13681 .ctext = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
Horia Geantae46e9a42012-07-03 19:16:54 +030013682 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13683 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13684 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
13685 "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
13686 "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
13687 "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
13688 "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013689 .clen = 32 + 32,
Horia Geantae46e9a42012-07-03 19:16:54 +030013690 }, { /* RFC 3602 Case 3 */
13691#ifdef __LITTLE_ENDIAN
13692 .key = "\x08\x00" /* rta length */
13693 "\x01\x00" /* rta type */
13694#else
13695 .key = "\x00\x08" /* rta length */
13696 "\x00\x01" /* rta type */
13697#endif
13698 "\x00\x00\x00\x10" /* enc key length */
13699 "\x11\x22\x33\x44\x55\x66\x77\x88"
13700 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13701 "\x22\x33\x44\x55\x66\x77\x88\x99"
13702 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13703 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
13704 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
13705 .klen = 8 + 32 + 16,
13706 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13707 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
Herbert Xu7079ce62015-07-30 17:53:14 +080013708 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
13709 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
13710 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013711 .ptext = "This is a 48-byte message (exactly 3 AES blocks)",
13712 .plen = 48,
13713 .ctext = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
Horia Geantae46e9a42012-07-03 19:16:54 +030013714 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
13715 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
13716 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
13717 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
13718 "\x85\x79\x69\x5d\x83\xba\x26\x84"
13719 "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
13720 "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
13721 "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
13722 "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013723 .clen = 48 + 32,
Horia Geantae46e9a42012-07-03 19:16:54 +030013724 }, { /* RFC 3602 Case 4 */
13725#ifdef __LITTLE_ENDIAN
13726 .key = "\x08\x00" /* rta length */
13727 "\x01\x00" /* rta type */
13728#else
13729 .key = "\x00\x08" /* rta length */
13730 "\x00\x01" /* rta type */
13731#endif
13732 "\x00\x00\x00\x10" /* enc key length */
13733 "\x11\x22\x33\x44\x55\x66\x77\x88"
13734 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13735 "\x22\x33\x44\x55\x66\x77\x88\x99"
13736 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13737 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
13738 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
13739 .klen = 8 + 32 + 16,
13740 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13741 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
Herbert Xu7079ce62015-07-30 17:53:14 +080013742 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
13743 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
13744 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013745 .ptext = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
Horia Geantae46e9a42012-07-03 19:16:54 +030013746 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
13747 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
13748 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
13749 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
13750 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
13751 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
13752 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013753 .plen = 64,
13754 .ctext = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
Horia Geantae46e9a42012-07-03 19:16:54 +030013755 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
13756 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
13757 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
13758 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
13759 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
13760 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
13761 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
13762 "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
13763 "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
13764 "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
13765 "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013766 .clen = 64 + 32,
Horia Geantae46e9a42012-07-03 19:16:54 +030013767 }, { /* RFC 3602 Case 5 */
13768#ifdef __LITTLE_ENDIAN
13769 .key = "\x08\x00" /* rta length */
13770 "\x01\x00" /* rta type */
13771#else
13772 .key = "\x00\x08" /* rta length */
13773 "\x00\x01" /* rta type */
13774#endif
13775 "\x00\x00\x00\x10" /* enc key length */
13776 "\x11\x22\x33\x44\x55\x66\x77\x88"
13777 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13778 "\x22\x33\x44\x55\x66\x77\x88\x99"
13779 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13780 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
13781 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
13782 .klen = 8 + 32 + 16,
13783 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13784 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
Herbert Xu7079ce62015-07-30 17:53:14 +080013785 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
13786 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
13787 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
13788 .alen = 24,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013789 .ptext = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
Horia Geantae46e9a42012-07-03 19:16:54 +030013790 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
13791 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13792 "\x10\x11\x12\x13\x14\x15\x16\x17"
13793 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
13794 "\x20\x21\x22\x23\x24\x25\x26\x27"
13795 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13796 "\x30\x31\x32\x33\x34\x35\x36\x37"
13797 "\x01\x02\x03\x04\x05\x06\x07\x08"
13798 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013799 .plen = 80,
13800 .ctext = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
Horia Geantae46e9a42012-07-03 19:16:54 +030013801 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
13802 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
13803 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
13804 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
13805 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
13806 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
13807 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
13808 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
13809 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
13810 "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
13811 "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
13812 "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
13813 "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013814 .clen = 80 + 32,
Horia Geantae46e9a42012-07-03 19:16:54 +030013815 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
13816#ifdef __LITTLE_ENDIAN
13817 .key = "\x08\x00" /* rta length */
13818 "\x01\x00" /* rta type */
13819#else
13820 .key = "\x00\x08" /* rta length */
13821 "\x00\x01" /* rta type */
13822#endif
13823 "\x00\x00\x00\x18" /* enc key length */
13824 "\x11\x22\x33\x44\x55\x66\x77\x88"
13825 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13826 "\x22\x33\x44\x55\x66\x77\x88\x99"
13827 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13828 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
13829 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
13830 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
13831 .klen = 8 + 32 + 24,
13832 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13833 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013834 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13835 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13836 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013837 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Horia Geantae46e9a42012-07-03 19:16:54 +030013838 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13839 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13840 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13841 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13842 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13843 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13844 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013845 .plen = 64,
13846 .ctext = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
Horia Geantae46e9a42012-07-03 19:16:54 +030013847 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
13848 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
13849 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
13850 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
13851 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
13852 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
13853 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
13854 "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
13855 "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
13856 "\xca\x71\x85\x93\xf7\x85\x55\x8b"
13857 "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013858 .clen = 64 + 32,
Horia Geantae46e9a42012-07-03 19:16:54 +030013859 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
13860#ifdef __LITTLE_ENDIAN
13861 .key = "\x08\x00" /* rta length */
13862 "\x01\x00" /* rta type */
13863#else
13864 .key = "\x00\x08" /* rta length */
13865 "\x00\x01" /* rta type */
13866#endif
13867 "\x00\x00\x00\x20" /* enc key length */
13868 "\x11\x22\x33\x44\x55\x66\x77\x88"
13869 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
13870 "\x22\x33\x44\x55\x66\x77\x88\x99"
13871 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
13872 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
13873 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
13874 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
13875 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
13876 .klen = 8 + 32 + 32,
13877 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
13878 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080013879 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
13880 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
13881 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013882 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Horia Geantae46e9a42012-07-03 19:16:54 +030013883 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
13884 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
13885 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
13886 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
13887 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
13888 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
13889 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013890 .plen = 64,
13891 .ctext = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
Horia Geantae46e9a42012-07-03 19:16:54 +030013892 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
13893 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
13894 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
13895 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
13896 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
13897 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
13898 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
13899 "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
13900 "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
13901 "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
13902 "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013903 .clen = 64 + 32,
Horia Geantae46e9a42012-07-03 19:16:54 +030013904 },
13905};
13906
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013907static const struct aead_testvec hmac_sha512_aes_cbc_tv_temp[] = {
Horia Geantae46e9a42012-07-03 19:16:54 +030013908 { /* RFC 3602 Case 1 */
13909#ifdef __LITTLE_ENDIAN
13910 .key = "\x08\x00" /* rta length */
13911 "\x01\x00" /* rta type */
13912#else
13913 .key = "\x00\x08" /* rta length */
13914 "\x00\x01" /* rta type */
13915#endif
13916 "\x00\x00\x00\x10" /* enc key length */
13917 "\x00\x00\x00\x00\x00\x00\x00\x00"
13918 "\x00\x00\x00\x00\x00\x00\x00\x00"
13919 "\x00\x00\x00\x00\x00\x00\x00\x00"
13920 "\x00\x00\x00\x00\x00\x00\x00\x00"
13921 "\x00\x00\x00\x00\x00\x00\x00\x00"
13922 "\x00\x00\x00\x00\x00\x00\x00\x00"
13923 "\x00\x00\x00\x00\x00\x00\x00\x00"
13924 "\x00\x00\x00\x00\x00\x00\x00\x00"
13925 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
13926 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
13927 .klen = 8 + 64 + 16,
13928 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13929 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Herbert Xu7079ce62015-07-30 17:53:14 +080013930 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
13931 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
13932 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013933 .ptext = "Single block msg",
13934 .plen = 16,
13935 .ctext = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
Horia Geantae46e9a42012-07-03 19:16:54 +030013936 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
13937 "\x3f\xdc\xad\x90\x03\x63\x5e\x68"
13938 "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7"
13939 "\x19\x6e\x03\x75\x2b\xa1\x62\xce"
13940 "\xe0\xc6\x96\x75\xb2\x14\xca\x96"
13941 "\xec\xbd\x50\x08\x07\x64\x1a\x49"
13942 "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2"
13943 "\xfa\x20\x89\xdd\x9c\xac\x9e\x16"
13944 "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013945 .clen = 16 + 64,
Horia Geantae46e9a42012-07-03 19:16:54 +030013946 }, { /* RFC 3602 Case 2 */
13947#ifdef __LITTLE_ENDIAN
13948 .key = "\x08\x00" /* rta length */
13949 "\x01\x00" /* rta type */
13950#else
13951 .key = "\x00\x08" /* rta length */
13952 "\x00\x01" /* rta type */
13953#endif
13954 "\x00\x00\x00\x10" /* enc key length */
13955 "\x20\x21\x22\x23\x24\x25\x26\x27"
13956 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
13957 "\x30\x31\x32\x33\x34\x35\x36\x37"
13958 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
13959 "\x40\x41\x42\x43\x44\x45\x46\x47"
13960 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
13961 "\x50\x51\x52\x53\x54\x55\x56\x57"
13962 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
13963 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
13964 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
13965 .klen = 8 + 64 + 16,
13966 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13967 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Herbert Xu7079ce62015-07-30 17:53:14 +080013968 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
13969 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
13970 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013971 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Horia Geantae46e9a42012-07-03 19:16:54 +030013972 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
13973 "\x10\x11\x12\x13\x14\x15\x16\x17"
13974 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013975 .plen = 32,
13976 .ctext = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
Horia Geantae46e9a42012-07-03 19:16:54 +030013977 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
13978 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
13979 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
13980 "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef"
13981 "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41"
13982 "\x03\x9f\xc4\x64\x7f\x01\x42\x9b"
13983 "\x0e\x1b\xea\xef\xbc\x88\x19\x5e"
13984 "\x31\x7e\xc2\x95\xfc\x09\x32\x0a"
13985 "\x46\x32\x7c\x41\x9c\x59\x3e\xe9"
13986 "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8"
13987 "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080013988 .clen = 32 + 64,
Horia Geantae46e9a42012-07-03 19:16:54 +030013989 }, { /* RFC 3602 Case 3 */
13990#ifdef __LITTLE_ENDIAN
13991 .key = "\x08\x00" /* rta length */
13992 "\x01\x00" /* rta type */
13993#else
13994 .key = "\x00\x08" /* rta length */
13995 "\x00\x01" /* rta type */
13996#endif
13997 "\x00\x00\x00\x10" /* enc key length */
13998 "\x11\x22\x33\x44\x55\x66\x77\x88"
13999 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14000 "\x22\x33\x44\x55\x66\x77\x88\x99"
14001 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14002 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14003 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14004 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14005 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14006 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
14007 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
14008 .klen = 8 + 64 + 16,
14009 .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
14010 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
Herbert Xu7079ce62015-07-30 17:53:14 +080014011 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
14012 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
14013 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014014 .ptext = "This is a 48-byte message (exactly 3 AES blocks)",
14015 .plen = 48,
14016 .ctext = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
Horia Geantae46e9a42012-07-03 19:16:54 +030014017 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
14018 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
14019 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
14020 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
14021 "\x85\x79\x69\x5d\x83\xba\x26\x84"
14022 "\x64\x19\x17\x5b\x57\xe0\x21\x0f"
14023 "\xca\xdb\xa1\x26\x38\x14\xa2\x69"
14024 "\xdb\x54\x67\x80\xc0\x54\xe0\xfd"
14025 "\x3e\x91\xe7\x91\x7f\x13\x38\x44"
14026 "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41"
14027 "\x08\xea\x29\x6c\x74\x67\x3f\xb0"
14028 "\xac\x7f\x5c\x1d\xf5\xee\x22\x66"
14029 "\x27\xa6\xb6\x13\xba\xba\xf0\xc2",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014030 .clen = 48 + 64,
Horia Geantae46e9a42012-07-03 19:16:54 +030014031 }, { /* RFC 3602 Case 4 */
14032#ifdef __LITTLE_ENDIAN
14033 .key = "\x08\x00" /* rta length */
14034 "\x01\x00" /* rta type */
14035#else
14036 .key = "\x00\x08" /* rta length */
14037 "\x00\x01" /* rta type */
14038#endif
14039 "\x00\x00\x00\x10" /* enc key length */
14040 "\x11\x22\x33\x44\x55\x66\x77\x88"
14041 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14042 "\x22\x33\x44\x55\x66\x77\x88\x99"
14043 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14044 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14045 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14046 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14047 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14048 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
14049 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
14050 .klen = 8 + 64 + 16,
14051 .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
14052 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
Herbert Xu7079ce62015-07-30 17:53:14 +080014053 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
14054 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
14055 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014056 .ptext = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
Horia Geantae46e9a42012-07-03 19:16:54 +030014057 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
14058 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
14059 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
14060 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
14061 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
14062 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
14063 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014064 .plen = 64,
14065 .ctext = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
Horia Geantae46e9a42012-07-03 19:16:54 +030014066 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
14067 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
14068 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
14069 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
14070 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
14071 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
14072 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
14073 "\x82\xcd\x42\x28\x21\x20\x15\xcc"
14074 "\xb7\xb2\x48\x40\xc7\x64\x41\x3a"
14075 "\x61\x32\x82\x85\xcf\x27\xed\xb4"
14076 "\xe4\x68\xa2\xf5\x79\x26\x27\xb2"
14077 "\x51\x67\x6a\xc4\xf0\x66\x55\x50"
14078 "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c"
14079 "\x62\x98\x14\xd7\x2f\x37\x8d\xdf"
14080 "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014081 .clen = 64 + 64,
Horia Geantae46e9a42012-07-03 19:16:54 +030014082 }, { /* RFC 3602 Case 5 */
14083#ifdef __LITTLE_ENDIAN
14084 .key = "\x08\x00" /* rta length */
14085 "\x01\x00" /* rta type */
14086#else
14087 .key = "\x00\x08" /* rta length */
14088 "\x00\x01" /* rta type */
14089#endif
14090 "\x00\x00\x00\x10" /* enc key length */
14091 "\x11\x22\x33\x44\x55\x66\x77\x88"
14092 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14093 "\x22\x33\x44\x55\x66\x77\x88\x99"
14094 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14095 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14096 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14097 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14098 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14099 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
14100 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
14101 .klen = 8 + 64 + 16,
14102 .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
14103 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
Herbert Xu7079ce62015-07-30 17:53:14 +080014104 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14105 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
14106 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
14107 .alen = 24,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014108 .ptext = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
Horia Geantae46e9a42012-07-03 19:16:54 +030014109 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
14110 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
14111 "\x10\x11\x12\x13\x14\x15\x16\x17"
14112 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
14113 "\x20\x21\x22\x23\x24\x25\x26\x27"
14114 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
14115 "\x30\x31\x32\x33\x34\x35\x36\x37"
14116 "\x01\x02\x03\x04\x05\x06\x07\x08"
14117 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014118 .plen = 80,
14119 .ctext = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
Horia Geantae46e9a42012-07-03 19:16:54 +030014120 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
14121 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
14122 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
14123 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
14124 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
14125 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
14126 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
14127 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
14128 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
14129 "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf"
14130 "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf"
14131 "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f"
14132 "\x14\xd9\x3d\x53\x8e\x12\xb3\x00"
14133 "\x4c\x0a\x4e\x32\x40\x43\x88\xce"
14134 "\x92\x26\xc1\x76\x20\x11\xeb\xba"
14135 "\x62\x4f\x9a\x62\x25\xc3\x75\x80"
14136 "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014137 .clen = 80 + 64,
Horia Geantae46e9a42012-07-03 19:16:54 +030014138 }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */
14139#ifdef __LITTLE_ENDIAN
14140 .key = "\x08\x00" /* rta length */
14141 "\x01\x00" /* rta type */
14142#else
14143 .key = "\x00\x08" /* rta length */
14144 "\x00\x01" /* rta type */
14145#endif
14146 "\x00\x00\x00\x18" /* enc key length */
14147 "\x11\x22\x33\x44\x55\x66\x77\x88"
14148 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14149 "\x22\x33\x44\x55\x66\x77\x88\x99"
14150 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14151 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14152 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14153 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14154 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14155 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
14156 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
14157 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
14158 .klen = 8 + 64 + 24,
14159 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14160 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080014161 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
14162 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14163 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014164 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Horia Geantae46e9a42012-07-03 19:16:54 +030014165 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14166 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14167 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14168 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14169 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14170 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14171 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014172 .plen = 64,
14173 .ctext = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
Horia Geantae46e9a42012-07-03 19:16:54 +030014174 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
14175 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
14176 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
14177 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
14178 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
14179 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
14180 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
14181 "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99"
14182 "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56"
14183 "\xbb\x21\xd2\x7d\x93\x11\x17\x91"
14184 "\xc4\x83\xfd\x0a\xea\x71\xfe\x77"
14185 "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35"
14186 "\xba\x03\xd5\x32\xfa\x5f\x41\x58"
14187 "\x8d\x43\x98\xa7\x94\x16\x07\x02"
14188 "\x0f\xb6\x81\x50\x28\x95\x2e\x75",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014189 .clen = 64 + 64,
Horia Geantae46e9a42012-07-03 19:16:54 +030014190 }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */
14191#ifdef __LITTLE_ENDIAN
14192 .key = "\x08\x00" /* rta length */
14193 "\x01\x00" /* rta type */
14194#else
14195 .key = "\x00\x08" /* rta length */
14196 "\x00\x01" /* rta type */
14197#endif
14198 "\x00\x00\x00\x20" /* enc key length */
14199 "\x11\x22\x33\x44\x55\x66\x77\x88"
14200 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14201 "\x22\x33\x44\x55\x66\x77\x88\x99"
14202 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14203 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14204 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14205 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14206 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14207 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
14208 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
14209 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
14210 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
14211 .klen = 8 + 64 + 32,
14212 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
14213 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Herbert Xu7079ce62015-07-30 17:53:14 +080014214 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
14215 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
14216 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014217 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Horia Geantae46e9a42012-07-03 19:16:54 +030014218 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
14219 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
14220 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
14221 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
14222 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
14223 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
14224 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014225 .plen = 64,
14226 .ctext = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
Horia Geantae46e9a42012-07-03 19:16:54 +030014227 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
14228 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
14229 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
14230 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
14231 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
14232 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
14233 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
14234 "\xb2\x27\x69\x7f\x45\x64\x79\x2b"
14235 "\xb7\xb8\x4c\xd4\x75\x94\x68\x40"
14236 "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b"
14237 "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d"
14238 "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c"
14239 "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c"
14240 "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2"
14241 "\x2c\xb1\x62\x2c\x10\xca\xf1\x21",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014242 .clen = 64 + 64,
Horia Geantae46e9a42012-07-03 19:16:54 +030014243 },
14244};
14245
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014246static const struct aead_testvec hmac_sha1_des_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014247 { /*Generated with cryptopp*/
14248#ifdef __LITTLE_ENDIAN
14249 .key = "\x08\x00" /* rta length */
14250 "\x01\x00" /* rta type */
14251#else
14252 .key = "\x00\x08" /* rta length */
14253 "\x00\x01" /* rta type */
14254#endif
14255 "\x00\x00\x00\x08" /* enc key length */
14256 "\x11\x22\x33\x44\x55\x66\x77\x88"
14257 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14258 "\x22\x33\x44\x55"
14259 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
14260 .klen = 8 + 20 + 8,
14261 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014262 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14263 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14264 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014265 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014266 "\x53\x20\x63\x65\x65\x72\x73\x74"
14267 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14268 "\x20\x79\x65\x53\x72\x63\x74\x65"
14269 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14270 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14271 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14272 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14273 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14274 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14275 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14276 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14277 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14278 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14279 "\x63\x65\x65\x72\x73\x74\x54\x20"
14280 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014281 .plen = 128,
14282 .ctext = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014283 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14284 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14285 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14286 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14287 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14288 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14289 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14290 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14291 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14292 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14293 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14294 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14295 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14296 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14297 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14298 "\x95\x16\x20\x09\xf5\x95\x19\xfd"
14299 "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa"
14300 "\x5c\x44\xa9\x37",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014301 .clen = 128 + 20,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014302 },
14303};
14304
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014305static const struct aead_testvec hmac_sha224_des_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014306 { /*Generated with cryptopp*/
14307#ifdef __LITTLE_ENDIAN
14308 .key = "\x08\x00" /* rta length */
14309 "\x01\x00" /* rta type */
14310#else
14311 .key = "\x00\x08" /* rta length */
14312 "\x00\x01" /* rta type */
14313#endif
14314 "\x00\x00\x00\x08" /* enc key length */
14315 "\x11\x22\x33\x44\x55\x66\x77\x88"
14316 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14317 "\x22\x33\x44\x55\x66\x77\x88\x99"
14318 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
14319 .klen = 8 + 24 + 8,
14320 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014321 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14322 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14323 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014324 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014325 "\x53\x20\x63\x65\x65\x72\x73\x74"
14326 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14327 "\x20\x79\x65\x53\x72\x63\x74\x65"
14328 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14329 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14330 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14331 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14332 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14333 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14334 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14335 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14336 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14337 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14338 "\x63\x65\x65\x72\x73\x74\x54\x20"
14339 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014340 .plen = 128,
14341 .ctext = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014342 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14343 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14344 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14345 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14346 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14347 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14348 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14349 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14350 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14351 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14352 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14353 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14354 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14355 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14356 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14357 "\x9c\x2d\x7e\xee\x20\x34\x55\x0a"
14358 "\xce\xb5\x4e\x64\x53\xe7\xbf\x91"
14359 "\xab\xd4\xd9\xda\xc9\x12\xae\xf7",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014360 .clen = 128 + 24,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014361 },
14362};
14363
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014364static const struct aead_testvec hmac_sha256_des_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014365 { /*Generated with cryptopp*/
14366#ifdef __LITTLE_ENDIAN
14367 .key = "\x08\x00" /* rta length */
14368 "\x01\x00" /* rta type */
14369#else
14370 .key = "\x00\x08" /* rta length */
14371 "\x00\x01" /* rta type */
14372#endif
14373 "\x00\x00\x00\x08" /* enc key length */
14374 "\x11\x22\x33\x44\x55\x66\x77\x88"
14375 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14376 "\x22\x33\x44\x55\x66\x77\x88\x99"
14377 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14378 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
14379 .klen = 8 + 32 + 8,
14380 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014381 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14382 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14383 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014384 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014385 "\x53\x20\x63\x65\x65\x72\x73\x74"
14386 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14387 "\x20\x79\x65\x53\x72\x63\x74\x65"
14388 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14389 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14390 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14391 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14392 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14393 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14394 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14395 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14396 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14397 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14398 "\x63\x65\x65\x72\x73\x74\x54\x20"
14399 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014400 .plen = 128,
14401 .ctext = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014402 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14403 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14404 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14405 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14406 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14407 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14408 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14409 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14410 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14411 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14412 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14413 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14414 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14415 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14416 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14417 "\xc6\x58\xa1\x60\x70\x91\x39\x36"
14418 "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e"
14419 "\xde\x63\xde\x76\x52\xde\x9f\xba"
14420 "\x90\xcf\x15\xf2\xbb\x6e\x84\x00",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014421 .clen = 128 + 32,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014422 },
14423};
14424
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014425static const struct aead_testvec hmac_sha384_des_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014426 { /*Generated with cryptopp*/
14427#ifdef __LITTLE_ENDIAN
14428 .key = "\x08\x00" /* rta length */
14429 "\x01\x00" /* rta type */
14430#else
14431 .key = "\x00\x08" /* rta length */
14432 "\x00\x01" /* rta type */
14433#endif
14434 "\x00\x00\x00\x08" /* enc key length */
14435 "\x11\x22\x33\x44\x55\x66\x77\x88"
14436 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14437 "\x22\x33\x44\x55\x66\x77\x88\x99"
14438 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14439 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14440 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14441 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
14442 .klen = 8 + 48 + 8,
14443 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014444 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14445 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14446 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014447 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014448 "\x53\x20\x63\x65\x65\x72\x73\x74"
14449 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14450 "\x20\x79\x65\x53\x72\x63\x74\x65"
14451 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14452 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14453 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14454 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14455 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14456 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14457 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14458 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14459 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14460 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14461 "\x63\x65\x65\x72\x73\x74\x54\x20"
14462 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014463 .plen = 128,
14464 .ctext = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014465 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14466 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14467 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14468 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14469 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14470 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14471 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14472 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14473 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14474 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14475 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14476 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14477 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14478 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14479 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14480 "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0"
14481 "\xc8\x8c\xef\x25\x07\x83\x11\x3a"
14482 "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe"
14483 "\x5e\x67\xb5\x74\xe7\xe7\x85\x61"
14484 "\x6a\x95\x26\x75\xcc\x53\x89\xf3"
14485 "\x74\xc9\x2a\x76\x20\xa2\x64\x62",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014486 .clen = 128 + 48,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014487 },
14488};
14489
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014490static const struct aead_testvec hmac_sha512_des_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014491 { /*Generated with cryptopp*/
14492#ifdef __LITTLE_ENDIAN
14493 .key = "\x08\x00" /* rta length */
14494 "\x01\x00" /* rta type */
14495#else
14496 .key = "\x00\x08" /* rta length */
14497 "\x00\x01" /* rta type */
14498#endif
14499 "\x00\x00\x00\x08" /* enc key length */
14500 "\x11\x22\x33\x44\x55\x66\x77\x88"
14501 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14502 "\x22\x33\x44\x55\x66\x77\x88\x99"
14503 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14504 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14505 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14506 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14507 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14508 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24",
14509 .klen = 8 + 64 + 8,
14510 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014511 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14512 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14513 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014514 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014515 "\x53\x20\x63\x65\x65\x72\x73\x74"
14516 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14517 "\x20\x79\x65\x53\x72\x63\x74\x65"
14518 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14519 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14520 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14521 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14522 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14523 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14524 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14525 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14526 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14527 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14528 "\x63\x65\x65\x72\x73\x74\x54\x20"
14529 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014530 .plen = 128,
14531 .ctext = "\x70\xd6\xde\x64\x87\x17\xf1\xe8"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014532 "\x54\x31\x85\x37\xed\x6b\x01\x8d"
14533 "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1"
14534 "\x41\xaa\x33\x91\xa7\x7d\x99\x88"
14535 "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82"
14536 "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b"
14537 "\xaa\x9c\x11\xd5\x76\x67\xce\xde"
14538 "\x56\xd7\x5a\x80\x69\xea\x3a\x02"
14539 "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52"
14540 "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1"
14541 "\xe3\x26\x1f\xe1\x15\x41\xc7\xba"
14542 "\x99\xdb\x08\x51\x1c\xd3\x01\xf4"
14543 "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb"
14544 "\x66\x13\xdf\x1c\x01\x44\xf0\x7a"
14545 "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba"
14546 "\x53\xba\xe1\x76\xe3\x82\x07\x86"
14547 "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e"
14548 "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb"
14549 "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb"
14550 "\x58\x83\xda\x67\xfb\x21\x24\xa2"
14551 "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93"
14552 "\x97\xe2\xe3\xb8\xaa\x48\x85\xee"
14553 "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96"
14554 "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014555 .clen = 128 + 64,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014556 },
14557};
14558
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014559static const struct aead_testvec hmac_sha1_des3_ede_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014560 { /*Generated with cryptopp*/
14561#ifdef __LITTLE_ENDIAN
14562 .key = "\x08\x00" /* rta length */
14563 "\x01\x00" /* rta type */
14564#else
14565 .key = "\x00\x08" /* rta length */
14566 "\x00\x01" /* rta type */
14567#endif
14568 "\x00\x00\x00\x18" /* enc key length */
14569 "\x11\x22\x33\x44\x55\x66\x77\x88"
14570 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14571 "\x22\x33\x44\x55"
14572 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14573 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14574 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14575 .klen = 8 + 20 + 24,
14576 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014577 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14578 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14579 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014580 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014581 "\x53\x20\x63\x65\x65\x72\x73\x74"
14582 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14583 "\x20\x79\x65\x53\x72\x63\x74\x65"
14584 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14585 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14586 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14587 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14588 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14589 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14590 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14591 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14592 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14593 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14594 "\x63\x65\x65\x72\x73\x74\x54\x20"
14595 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014596 .plen = 128,
14597 .ctext = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014598 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14599 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14600 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14601 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14602 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14603 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14604 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14605 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14606 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14607 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14608 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14609 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14610 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14611 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14612 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14613 "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6"
14614 "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf"
14615 "\xd1\x60\x91\xb3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014616 .clen = 128 + 20,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014617 },
14618};
14619
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014620static const struct aead_testvec hmac_sha224_des3_ede_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014621 { /*Generated with cryptopp*/
14622#ifdef __LITTLE_ENDIAN
14623 .key = "\x08\x00" /* rta length */
14624 "\x01\x00" /* rta type */
14625#else
14626 .key = "\x00\x08" /* rta length */
14627 "\x00\x01" /* rta type */
14628#endif
14629 "\x00\x00\x00\x18" /* enc key length */
14630 "\x11\x22\x33\x44\x55\x66\x77\x88"
14631 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14632 "\x22\x33\x44\x55\x66\x77\x88\x99"
14633 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14634 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14635 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14636 .klen = 8 + 24 + 24,
14637 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014638 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14639 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14640 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014641 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014642 "\x53\x20\x63\x65\x65\x72\x73\x74"
14643 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14644 "\x20\x79\x65\x53\x72\x63\x74\x65"
14645 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14646 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14647 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14648 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14649 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14650 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14651 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14652 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14653 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14654 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14655 "\x63\x65\x65\x72\x73\x74\x54\x20"
14656 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014657 .plen = 128,
14658 .ctext = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014659 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14660 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14661 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14662 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14663 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14664 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14665 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14666 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14667 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14668 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14669 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14670 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14671 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14672 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14673 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14674 "\x15\x24\x7f\x5a\x45\x4a\x66\xce"
14675 "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c"
14676 "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014677 .clen = 128 + 24,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014678 },
14679};
14680
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014681static const struct aead_testvec hmac_sha256_des3_ede_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014682 { /*Generated with cryptopp*/
14683#ifdef __LITTLE_ENDIAN
14684 .key = "\x08\x00" /* rta length */
14685 "\x01\x00" /* rta type */
14686#else
14687 .key = "\x00\x08" /* rta length */
14688 "\x00\x01" /* rta type */
14689#endif
14690 "\x00\x00\x00\x18" /* enc key length */
14691 "\x11\x22\x33\x44\x55\x66\x77\x88"
14692 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14693 "\x22\x33\x44\x55\x66\x77\x88\x99"
14694 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14695 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14696 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14697 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14698 .klen = 8 + 32 + 24,
14699 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014700 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14701 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14702 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014703 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014704 "\x53\x20\x63\x65\x65\x72\x73\x74"
14705 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14706 "\x20\x79\x65\x53\x72\x63\x74\x65"
14707 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14708 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14709 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14710 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14711 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14712 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14713 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14714 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14715 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14716 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14717 "\x63\x65\x65\x72\x73\x74\x54\x20"
14718 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014719 .plen = 128,
14720 .ctext = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014721 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14722 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14723 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14724 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14725 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14726 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14727 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14728 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14729 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14730 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14731 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14732 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14733 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14734 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14735 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14736 "\x73\xb0\xea\x9f\xe8\x18\x80\xd6"
14737 "\x56\x38\x44\xc0\xdb\xe3\x4f\x71"
14738 "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f"
14739 "\xca\x43\x95\xdf\x80\x61\x81\xa9",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014740 .clen = 128 + 32,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014741 },
14742};
14743
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014744static const struct aead_testvec hmac_sha384_des3_ede_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014745 { /*Generated with cryptopp*/
14746#ifdef __LITTLE_ENDIAN
14747 .key = "\x08\x00" /* rta length */
14748 "\x01\x00" /* rta type */
14749#else
14750 .key = "\x00\x08" /* rta length */
14751 "\x00\x01" /* rta type */
14752#endif
14753 "\x00\x00\x00\x18" /* enc key length */
14754 "\x11\x22\x33\x44\x55\x66\x77\x88"
14755 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14756 "\x22\x33\x44\x55\x66\x77\x88\x99"
14757 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14758 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14759 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14760 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14761 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14762 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14763 .klen = 8 + 48 + 24,
14764 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014765 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14766 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14767 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014768 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014769 "\x53\x20\x63\x65\x65\x72\x73\x74"
14770 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14771 "\x20\x79\x65\x53\x72\x63\x74\x65"
14772 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14773 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14774 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14775 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14776 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14777 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14778 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14779 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14780 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14781 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14782 "\x63\x65\x65\x72\x73\x74\x54\x20"
14783 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014784 .plen = 128,
14785 .ctext = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014786 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14787 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14788 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14789 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14790 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14791 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14792 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14793 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14794 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14795 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14796 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14797 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14798 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14799 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14800 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14801 "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7"
14802 "\x70\xe7\x93\xbf\x73\xe6\x9f\x83"
14803 "\x99\x62\x23\xe6\x5b\xd0\xda\x18"
14804 "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39"
14805 "\x36\x5d\x13\x2f\x86\x10\x78\xd6"
14806 "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014807 .clen = 128 + 48,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014808 },
14809};
14810
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014811static const struct aead_testvec hmac_sha512_des3_ede_cbc_tv_temp[] = {
Nitesh Lal5208ed22014-05-21 17:09:08 +053014812 { /*Generated with cryptopp*/
14813#ifdef __LITTLE_ENDIAN
14814 .key = "\x08\x00" /* rta length */
14815 "\x01\x00" /* rta type */
14816#else
14817 .key = "\x00\x08" /* rta length */
14818 "\x00\x01" /* rta type */
14819#endif
14820 "\x00\x00\x00\x18" /* enc key length */
14821 "\x11\x22\x33\x44\x55\x66\x77\x88"
14822 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
14823 "\x22\x33\x44\x55\x66\x77\x88\x99"
14824 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
14825 "\x33\x44\x55\x66\x77\x88\x99\xaa"
14826 "\xbb\xcc\xdd\xee\xff\x11\x22\x33"
14827 "\x44\x55\x66\x77\x88\x99\xaa\xbb"
14828 "\xcc\xdd\xee\xff\x11\x22\x33\x44"
14829 "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24"
14830 "\x44\x4D\x99\x5A\x12\xD6\x40\xC0"
14831 "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8",
14832 .klen = 8 + 64 + 24,
14833 .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
Herbert Xu7079ce62015-07-30 17:53:14 +080014834 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
14835 "\x7D\x33\x88\x93\x0F\x93\xB2\x42",
14836 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014837 .ptext = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014838 "\x53\x20\x63\x65\x65\x72\x73\x74"
14839 "\x54\x20\x6f\x6f\x4d\x20\x6e\x61"
14840 "\x20\x79\x65\x53\x72\x63\x74\x65"
14841 "\x20\x73\x6f\x54\x20\x6f\x61\x4d"
14842 "\x79\x6e\x53\x20\x63\x65\x65\x72"
14843 "\x73\x74\x54\x20\x6f\x6f\x4d\x20"
14844 "\x6e\x61\x20\x79\x65\x53\x72\x63"
14845 "\x74\x65\x20\x73\x6f\x54\x20\x6f"
14846 "\x61\x4d\x79\x6e\x53\x20\x63\x65"
14847 "\x65\x72\x73\x74\x54\x20\x6f\x6f"
14848 "\x4d\x20\x6e\x61\x20\x79\x65\x53"
14849 "\x72\x63\x74\x65\x20\x73\x6f\x54"
14850 "\x20\x6f\x61\x4d\x79\x6e\x53\x20"
14851 "\x63\x65\x65\x72\x73\x74\x54\x20"
14852 "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014853 .plen = 128,
14854 .ctext = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4"
Nitesh Lal5208ed22014-05-21 17:09:08 +053014855 "\x67\x17\x21\xc7\x6e\x8a\xd5\x49"
14856 "\x74\xb3\x49\x05\xc5\x1c\xd0\xed"
14857 "\x12\x56\x5c\x53\x96\xb6\x00\x7d"
14858 "\x90\x48\xfc\xf5\x8d\x29\x39\xcc"
14859 "\x8a\xd5\x35\x18\x36\x23\x4e\xd7"
14860 "\x76\xd1\xda\x0c\x94\x67\xbb\x04"
14861 "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea"
14862 "\x22\x64\x47\xaa\x8f\x75\x13\xbf"
14863 "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a"
14864 "\x71\x63\x2e\x89\x7b\x1e\x12\xca"
14865 "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a"
14866 "\xd6\xf9\x21\x31\x62\x44\x45\xa6"
14867 "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc"
14868 "\x9d\xde\xa5\x70\xe9\x42\x45\x8a"
14869 "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19"
14870 "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32"
14871 "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e"
14872 "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b"
14873 "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60"
14874 "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0"
14875 "\x2a\x74\xd4\x65\x12\xcb\x55\xf2"
14876 "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2"
14877 "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080014878 .clen = 128 + 64,
Nitesh Lal5208ed22014-05-21 17:09:08 +053014879 },
14880};
14881
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014882static const struct cipher_testvec aes_lrw_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080014883 /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */
14884 { /* LRW-32-AES 1 */
14885 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
14886 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
14887 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
14888 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
14889 .klen = 32,
14890 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14891 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014892 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014893 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014894 .ctext = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
Herbert Xuda7f0332008-07-31 17:08:25 +080014895 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014896 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014897 }, { /* LRW-32-AES 2 */
14898 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
14899 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
14900 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
14901 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
14902 .klen = 32,
14903 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14904 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014905 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014906 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014907 .ctext = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5"
Herbert Xuda7f0332008-07-31 17:08:25 +080014908 "\x27\x4f\x07\x69\xb2\x60\xe1\x36",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014909 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014910 }, { /* LRW-32-AES 3 */
14911 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
14912 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
14913 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
14914 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
14915 .klen = 32,
14916 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14917 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014918 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014919 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014920 .ctext = "\x76\x32\x21\x83\xed\x8f\xf1\x82"
Herbert Xuda7f0332008-07-31 17:08:25 +080014921 "\xf9\x59\x62\x03\x69\x0e\x5e\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014922 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014923 }, { /* LRW-32-AES 4 */
14924 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
14925 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
14926 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
14927 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
14928 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
14929 .klen = 40,
14930 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14931 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014932 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014933 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014934 .ctext = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0"
Herbert Xuda7f0332008-07-31 17:08:25 +080014935 "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014936 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014937 }, { /* LRW-32-AES 5 */
14938 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
14939 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
14940 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
14941 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
14942 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
14943 .klen = 40,
14944 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14945 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014946 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014947 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014948 .ctext = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65"
Herbert Xuda7f0332008-07-31 17:08:25 +080014949 "\xc8\x60\x48\x02\x87\xe3\x34\x06",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014950 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014951 }, { /* LRW-32-AES 6 */
14952 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
14953 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
14954 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
14955 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
14956 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
14957 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
14958 .klen = 48,
14959 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14960 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014961 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014962 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014963 .ctext = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e"
Herbert Xuda7f0332008-07-31 17:08:25 +080014964 "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014965 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080014966 }, { /* LRW-32-AES 7 */
14967 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
14968 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
14969 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
14970 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
14971 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
14972 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
14973 .klen = 48,
14974 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
14975 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014976 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Herbert Xuda7f0332008-07-31 17:08:25 +080014977 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014978 .ctext = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f"
Herbert Xuda7f0332008-07-31 17:08:25 +080014979 "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070014980 .len = 16,
Ondrej Mosnacekdc6d6d52018-09-13 10:51:32 +020014981 }, { /* Test counter wrap-around, modified from LRW-32-AES 1 */
14982 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
14983 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
14984 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
14985 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
14986 .klen = 32,
14987 .iv = "\xff\xff\xff\xff\xff\xff\xff\xff"
14988 "\xff\xff\xff\xff\xff\xff\xff\xff",
14989 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
14990 "\x38\x39\x41\x42\x43\x44\x45\x46"
14991 "\x30\x31\x32\x33\x34\x35\x36\x37"
14992 "\x38\x39\x41\x42\x43\x44\x45\x46"
14993 "\x30\x31\x32\x33\x34\x35\x36\x37"
14994 "\x38\x39\x41\x42\x43\x44\x45\x46",
14995 .ctext = "\x47\x90\x50\xf6\xf4\x8d\x5c\x7f"
14996 "\x84\xc7\x83\x95\x2d\xa2\x02\xc0"
14997 "\xda\x7f\xa3\xc0\x88\x2a\x0a\x50"
14998 "\xfb\xc1\x78\x03\x39\xfe\x1d\xe5"
14999 "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f"
15000 "\xe9\x5d\x48\x92\x54\x63\x4e\xb8",
15001 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080015002 }, {
15003/* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */
15004 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
15005 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
15006 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
15007 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
15008 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
15009 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
15010 .klen = 48,
15011 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
15012 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015013 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Herbert Xuda7f0332008-07-31 17:08:25 +080015014 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
15015 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
15016 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
15017 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
15018 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
15019 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
15020 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
15021 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
15022 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
15023 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
15024 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
15025 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
15026 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
15027 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
15028 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
15029 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
15030 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
15031 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
15032 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
15033 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
15034 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
15035 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
15036 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
15037 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
15038 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
15039 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
15040 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
15041 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
15042 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
15043 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
15044 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
15045 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
15046 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
15047 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
15048 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
15049 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
15050 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
15051 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
15052 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
15053 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
15054 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
15055 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
15056 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
15057 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
15058 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
15059 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
15060 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
15061 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
15062 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
15063 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
15064 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
15065 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
15066 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
15067 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
15068 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
15069 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
15070 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
15071 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
15072 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
15073 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
15074 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
15075 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
15076 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015077 .ctext = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b"
Herbert Xuda7f0332008-07-31 17:08:25 +080015078 "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a"
15079 "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23"
15080 "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e"
15081 "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c"
15082 "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d"
15083 "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3"
15084 "\xe8\x58\x46\x97\x39\x51\x07\xde"
15085 "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3"
15086 "\x0e\x84\x23\x1d\x16\xd4\x1c\x59"
15087 "\x9c\x1a\x02\x55\xab\x3a\x97\x1d"
15088 "\xdf\xdd\xc7\x06\x51\xd7\x70\xae"
15089 "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82"
15090 "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68"
15091 "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce"
15092 "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98"
15093 "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2"
15094 "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f"
15095 "\xea\x20\xe7\xcb\x65\x77\x3a\xdf"
15096 "\xc8\x97\x67\x15\xc2\x2a\x27\xcc"
15097 "\x18\x55\xa1\x24\x0b\x24\x24\xaf"
15098 "\x5b\xec\x68\xb8\xc8\xf5\xba\x63"
15099 "\xff\xed\x89\xce\xd5\x3d\x88\xf3"
15100 "\x25\xef\x05\x7c\x3a\xef\xeb\xd8"
15101 "\x7a\x32\x0d\xd1\x1e\x58\x59\x99"
15102 "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c"
15103 "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50"
15104 "\x41\x30\x58\xc5\x62\x74\x52\x1d"
15105 "\x45\x24\x6a\x42\x64\x4f\x97\x1c"
15106 "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48"
15107 "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1"
15108 "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46"
15109 "\xe4\x81\x84\x95\x36\x59\x7a\x6b"
15110 "\xaa\xb3\x60\xad\xce\x9f\x9f\x28"
15111 "\xe0\x01\x75\x22\xc4\x4e\xa9\x62"
15112 "\x5c\x62\x0d\x00\xcb\x13\xe8\x43"
15113 "\x72\xd4\x2d\x53\x46\xb5\xd1\x16"
15114 "\x22\x18\xdf\x34\x33\xf5\xd6\x1c"
15115 "\xb8\x79\x78\x97\x94\xff\x72\x13"
15116 "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6"
15117 "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4"
15118 "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f"
15119 "\x2d\x14\x8e\x24\x61\x2c\xe1\x17"
15120 "\xcc\xce\x51\x0c\x19\x8a\x82\x30"
15121 "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd"
15122 "\xb7\xeb\xfa\xfd\x27\x51\xde\x85"
15123 "\x1e\x86\x53\x11\x53\x94\x00\xee"
15124 "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11"
15125 "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62"
15126 "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1"
15127 "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a"
15128 "\x9e\xfa\x31\x18\x45\x3c\x21\x33"
15129 "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1"
15130 "\x03\xad\x1b\x48\xd4\x67\x27\xf0"
15131 "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7"
15132 "\xdd\x2b\x01\x39\x04\x5a\x58\x7a"
15133 "\xf7\x11\x90\xec\xbd\x51\x5c\x32"
15134 "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6"
15135 "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d"
15136 "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4"
15137 "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3"
15138 "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29"
15139 "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7"
15140 "\x74\x3f\x7d\x58\x88\x75\xde\x3e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015141 .len = 512,
Herbert Xuda7f0332008-07-31 17:08:25 +080015142 }
15143};
15144
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015145static const struct cipher_testvec aes_xts_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080015146 /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */
15147 { /* XTS-AES 1 */
15148 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
15149 "\x00\x00\x00\x00\x00\x00\x00\x00"
15150 "\x00\x00\x00\x00\x00\x00\x00\x00"
15151 "\x00\x00\x00\x00\x00\x00\x00\x00",
15152 .klen = 32,
Stephan Mueller10faa8c2016-08-25 15:15:01 +020015153 .fips_skip = 1,
Herbert Xuda7f0332008-07-31 17:08:25 +080015154 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
15155 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015156 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080015157 "\x00\x00\x00\x00\x00\x00\x00\x00"
15158 "\x00\x00\x00\x00\x00\x00\x00\x00"
15159 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015160 .ctext = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec"
Herbert Xuda7f0332008-07-31 17:08:25 +080015161 "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92"
15162 "\xcd\x43\xd2\xf5\x95\x98\xed\x85"
15163 "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015164 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080015165 }, { /* XTS-AES 2 */
15166 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
15167 "\x11\x11\x11\x11\x11\x11\x11\x11"
15168 "\x22\x22\x22\x22\x22\x22\x22\x22"
15169 "\x22\x22\x22\x22\x22\x22\x22\x22",
15170 .klen = 32,
15171 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
15172 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015173 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Herbert Xuda7f0332008-07-31 17:08:25 +080015174 "\x44\x44\x44\x44\x44\x44\x44\x44"
15175 "\x44\x44\x44\x44\x44\x44\x44\x44"
15176 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015177 .ctext = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e"
Herbert Xuda7f0332008-07-31 17:08:25 +080015178 "\x39\x33\x40\x38\xac\xef\x83\x8b"
15179 "\xfb\x18\x6f\xff\x74\x80\xad\xc4"
15180 "\x28\x93\x82\xec\xd6\xd3\x94\xf0",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015181 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080015182 }, { /* XTS-AES 3 */
15183 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
15184 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
15185 "\x22\x22\x22\x22\x22\x22\x22\x22"
15186 "\x22\x22\x22\x22\x22\x22\x22\x22",
15187 .klen = 32,
15188 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
15189 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015190 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Herbert Xuda7f0332008-07-31 17:08:25 +080015191 "\x44\x44\x44\x44\x44\x44\x44\x44"
15192 "\x44\x44\x44\x44\x44\x44\x44\x44"
15193 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015194 .ctext = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a"
Herbert Xuda7f0332008-07-31 17:08:25 +080015195 "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2"
15196 "\x92\xdf\x4c\x04\x7e\x0b\x21\x53"
15197 "\x21\x86\xa5\x97\x1a\x22\x7a\x89",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015198 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080015199 }, { /* XTS-AES 4 */
15200 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
15201 "\x23\x53\x60\x28\x74\x71\x35\x26"
15202 "\x31\x41\x59\x26\x53\x58\x97\x93"
15203 "\x23\x84\x62\x64\x33\x83\x27\x95",
15204 .klen = 32,
15205 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
15206 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015207 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080015208 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15209 "\x10\x11\x12\x13\x14\x15\x16\x17"
15210 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15211 "\x20\x21\x22\x23\x24\x25\x26\x27"
15212 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15213 "\x30\x31\x32\x33\x34\x35\x36\x37"
15214 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15215 "\x40\x41\x42\x43\x44\x45\x46\x47"
15216 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15217 "\x50\x51\x52\x53\x54\x55\x56\x57"
15218 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15219 "\x60\x61\x62\x63\x64\x65\x66\x67"
15220 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15221 "\x70\x71\x72\x73\x74\x75\x76\x77"
15222 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15223 "\x80\x81\x82\x83\x84\x85\x86\x87"
15224 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15225 "\x90\x91\x92\x93\x94\x95\x96\x97"
15226 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15227 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15228 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15229 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15230 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15231 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15232 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15233 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15234 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15235 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15236 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15237 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15238 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15239 "\x00\x01\x02\x03\x04\x05\x06\x07"
15240 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15241 "\x10\x11\x12\x13\x14\x15\x16\x17"
15242 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15243 "\x20\x21\x22\x23\x24\x25\x26\x27"
15244 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15245 "\x30\x31\x32\x33\x34\x35\x36\x37"
15246 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15247 "\x40\x41\x42\x43\x44\x45\x46\x47"
15248 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15249 "\x50\x51\x52\x53\x54\x55\x56\x57"
15250 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15251 "\x60\x61\x62\x63\x64\x65\x66\x67"
15252 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15253 "\x70\x71\x72\x73\x74\x75\x76\x77"
15254 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15255 "\x80\x81\x82\x83\x84\x85\x86\x87"
15256 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15257 "\x90\x91\x92\x93\x94\x95\x96\x97"
15258 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15259 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15260 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15261 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15262 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15263 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15264 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15265 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15266 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15267 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15268 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15269 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15270 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015271 .ctext = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76"
Herbert Xuda7f0332008-07-31 17:08:25 +080015272 "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2"
15273 "\xa9\x6e\x4b\xbe\x32\x08\xff\x25"
15274 "\x28\x7d\xd3\x81\x96\x16\xe8\x9c"
15275 "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f"
15276 "\x83\x33\xd8\xfa\x7f\x56\x00\x00"
15277 "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad"
15278 "\x40\xe7\x36\xdd\xb4\xd3\x54\x12"
15279 "\x32\x80\x63\xfd\x2a\xab\x53\xe5"
15280 "\xea\x1e\x0a\x9f\x33\x25\x00\xa5"
15281 "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc"
15282 "\x51\x2c\x88\x66\xc7\xe8\x60\xce"
15283 "\x93\xfd\xf1\x66\xa2\x49\x12\xb4"
15284 "\x22\x97\x61\x46\xae\x20\xce\x84"
15285 "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a"
15286 "\xae\xf2\x0c\x0d\x61\xad\x02\x65"
15287 "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89"
15288 "\x52\xc6\x51\xd3\x31\x74\xbe\x51"
15289 "\xa1\x0c\x42\x11\x10\xe6\xd8\x15"
15290 "\x88\xed\xe8\x21\x03\xa2\x52\xd8"
15291 "\xa7\x50\xe8\x76\x8d\xef\xff\xed"
15292 "\x91\x22\x81\x0a\xae\xb9\x9f\x91"
15293 "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e"
15294 "\x51\xbc\xb0\x82\x35\xa6\xf4\x34"
15295 "\x13\x32\xe4\xca\x60\x48\x2a\x4b"
15296 "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5"
15297 "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4"
15298 "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c"
15299 "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd"
15300 "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3"
15301 "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f"
15302 "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e"
15303 "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91"
15304 "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19"
15305 "\x7c\x4e\x5b\x03\x39\x36\x97\xe1"
15306 "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc"
15307 "\x1e\x08\x29\x85\x16\xe2\xc9\xed"
15308 "\x03\xff\x3c\x1b\x78\x60\xf6\xde"
15309 "\x76\xd4\xce\xcd\x94\xc8\x11\x98"
15310 "\x55\xef\x52\x97\xca\x67\xe9\xf3"
15311 "\xe7\xff\x72\xb1\xe9\x97\x85\xca"
15312 "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6"
15313 "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc"
15314 "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44"
15315 "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0"
15316 "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95"
15317 "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4"
15318 "\x99\x02\x7a\x78\x57\x2a\xee\xbd"
15319 "\x74\xd2\x0c\xc3\x98\x81\xc2\x13"
15320 "\xee\x77\x0b\x10\x10\xe4\xbe\xa7"
15321 "\x18\x84\x69\x77\xae\x11\x9f\x7a"
15322 "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52"
15323 "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a"
15324 "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38"
15325 "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e"
15326 "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e"
15327 "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad"
15328 "\x15\xb4\xaa\x5b\x65\x50\x16\xa8"
15329 "\x44\x92\x77\xdb\xd4\x77\xef\x2c"
15330 "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d"
15331 "\xeb\x4a\x42\x7d\x19\x23\xce\x3f"
15332 "\xf2\x62\x73\x57\x79\xa4\x18\xf2"
15333 "\x0a\x28\x2d\xf9\x20\x14\x7b\xea"
15334 "\xbe\x42\x1e\xe5\x31\x9d\x05\x68",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015335 .len = 512,
Jarod Wilson5165e5b2011-05-31 15:23:57 +100015336 }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */
15337 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
15338 "\x23\x53\x60\x28\x74\x71\x35\x26"
15339 "\x62\x49\x77\x57\x24\x70\x93\x69"
15340 "\x99\x59\x57\x49\x66\x96\x76\x27"
15341 "\x31\x41\x59\x26\x53\x58\x97\x93"
15342 "\x23\x84\x62\x64\x33\x83\x27\x95"
15343 "\x02\x88\x41\x97\x16\x93\x99\x37"
15344 "\x51\x05\x82\x09\x74\x94\x45\x92",
15345 .klen = 64,
15346 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
15347 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015348 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jarod Wilson5165e5b2011-05-31 15:23:57 +100015349 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15350 "\x10\x11\x12\x13\x14\x15\x16\x17"
15351 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15352 "\x20\x21\x22\x23\x24\x25\x26\x27"
15353 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15354 "\x30\x31\x32\x33\x34\x35\x36\x37"
15355 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15356 "\x40\x41\x42\x43\x44\x45\x46\x47"
15357 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15358 "\x50\x51\x52\x53\x54\x55\x56\x57"
15359 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15360 "\x60\x61\x62\x63\x64\x65\x66\x67"
15361 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15362 "\x70\x71\x72\x73\x74\x75\x76\x77"
15363 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15364 "\x80\x81\x82\x83\x84\x85\x86\x87"
15365 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15366 "\x90\x91\x92\x93\x94\x95\x96\x97"
15367 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15368 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15369 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15370 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15371 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15372 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15373 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15374 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15375 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15376 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15377 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15378 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15379 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15380 "\x00\x01\x02\x03\x04\x05\x06\x07"
15381 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15382 "\x10\x11\x12\x13\x14\x15\x16\x17"
15383 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15384 "\x20\x21\x22\x23\x24\x25\x26\x27"
15385 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15386 "\x30\x31\x32\x33\x34\x35\x36\x37"
15387 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15388 "\x40\x41\x42\x43\x44\x45\x46\x47"
15389 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15390 "\x50\x51\x52\x53\x54\x55\x56\x57"
15391 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15392 "\x60\x61\x62\x63\x64\x65\x66\x67"
15393 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15394 "\x70\x71\x72\x73\x74\x75\x76\x77"
15395 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15396 "\x80\x81\x82\x83\x84\x85\x86\x87"
15397 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15398 "\x90\x91\x92\x93\x94\x95\x96\x97"
15399 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15400 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15401 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15402 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15403 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15404 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15405 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15406 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15407 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15408 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15409 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15410 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15411 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015412 .ctext = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86"
Jarod Wilson5165e5b2011-05-31 15:23:57 +100015413 "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b"
15414 "\xea\x00\x80\x3f\x5e\x48\x23\x57"
15415 "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b"
15416 "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d"
15417 "\x66\xb3\x17\xf9\xac\x68\x3f\x44"
15418 "\x68\x0a\x86\xac\x35\xad\xfc\x33"
15419 "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd"
15420 "\x57\x76\x92\x6c\x49\xa3\x09\x5e"
15421 "\xb1\x08\xfd\x10\x98\xba\xec\x70"
15422 "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2"
15423 "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0"
15424 "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89"
15425 "\xae\xba\x12\x29\x61\xd0\x3a\x75"
15426 "\x71\x23\xe9\x87\x0f\x8a\xcf\x10"
15427 "\x00\x02\x08\x87\x89\x14\x29\xca"
15428 "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03"
15429 "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d"
15430 "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd"
15431 "\x12\x0c\x0f\x74\x18\xda\xe3\xd0"
15432 "\xb5\x78\x1c\x34\x80\x3f\xa7\x54"
15433 "\x21\xc7\x90\xdf\xe1\xde\x18\x34"
15434 "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c"
15435 "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f"
15436 "\x93\xec\x05\xc5\x2e\x04\x93\xef"
15437 "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a"
15438 "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50"
15439 "\x84\x14\x73\xd1\xa8\xcc\x81\xec"
15440 "\x58\x3e\x96\x45\xe0\x7b\x8d\x96"
15441 "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6"
15442 "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb"
15443 "\x17\xb6\xba\x02\x46\x9a\x02\x0a"
15444 "\x84\xe1\x8e\x8f\x84\x25\x20\x70"
15445 "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f"
15446 "\xbc\x48\x14\x57\x77\x8f\x61\x60"
15447 "\x15\xe1\x32\x7a\x02\xb1\x40\xf1"
15448 "\x50\x5e\xb3\x09\x32\x6d\x68\x37"
15449 "\x8f\x83\x74\x59\x5c\x84\x9d\x84"
15450 "\xf4\xc3\x33\xec\x44\x23\x88\x51"
15451 "\x43\xcb\x47\xbd\x71\xc5\xed\xae"
15452 "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe"
15453 "\xc9\xde\x24\x4f\xbe\x15\x99\x2b"
15454 "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f"
15455 "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29"
15456 "\xa9\xab\xc3\xd4\xd8\x93\x92\x72"
15457 "\x84\xc5\x87\x54\xcc\xe2\x94\x52"
15458 "\x9f\x86\x14\xdc\xd2\xab\xa9\x91"
15459 "\x92\x5f\xed\xc4\xae\x74\xff\xac"
15460 "\x6e\x33\x3b\x93\xeb\x4a\xff\x04"
15461 "\x79\xda\x9a\x41\x0e\x44\x50\xe0"
15462 "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00"
15463 "\x57\x5d\xa4\x01\xfc\x07\x05\x9f"
15464 "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33"
15465 "\x94\x30\x54\xff\x84\x01\x14\x93"
15466 "\xc2\x7b\x34\x29\xea\xed\xb4\xed"
15467 "\x53\x76\x44\x1a\x77\xed\x43\x85"
15468 "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2"
15469 "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a"
15470 "\xab\x1c\xbb\x4c\x15\x50\xbe\x97"
15471 "\xf7\xab\x40\x66\x19\x3c\x4c\xaa"
15472 "\x77\x3d\xad\x38\x01\x4b\xd2\x09"
15473 "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54"
15474 "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70"
15475 "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015476 .len = 512,
Herbert Xuda7f0332008-07-31 17:08:25 +080015477 }
15478};
15479
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015480static const struct cipher_testvec aes_ctr_tv_template[] = {
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015481 { /* From NIST Special Publication 800-38A, Appendix F.5 */
15482 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
15483 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
15484 .klen = 16,
15485 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15486 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggerse674dbc2019-02-14 00:03:53 -080015487 .iv_out = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15488 "\xf8\xf9\xfa\xfb\xfc\xfd\xff\x03",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015489 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015490 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15491 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15492 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15493 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15494 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15495 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15496 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015497 .ctext = "\x87\x4d\x61\x91\xb6\x20\xe3\x26"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015498 "\x1b\xef\x68\x64\x99\x0d\xb6\xce"
15499 "\x98\x06\xf6\x6b\x79\x70\xfd\xff"
15500 "\x86\x17\x18\x7b\xb9\xff\xfd\xff"
15501 "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e"
15502 "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab"
15503 "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1"
15504 "\x79\x21\x70\xa0\xf3\x00\x9c\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015505 .len = 64,
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015506 }, {
15507 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
15508 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
15509 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
15510 .klen = 24,
15511 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15512 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggerse674dbc2019-02-14 00:03:53 -080015513 .iv_out = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15514 "\xf8\xf9\xfa\xfb\xfc\xfd\xff\x03",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015515 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015516 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15517 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15518 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15519 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15520 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15521 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15522 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015523 .ctext = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015524 "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b"
15525 "\x09\x03\x39\xec\x0a\xa6\xfa\xef"
15526 "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94"
15527 "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70"
15528 "\xd1\xbd\x1d\x66\x56\x20\xab\xf7"
15529 "\x4f\x78\xa7\xf6\xd2\x98\x09\x58"
15530 "\x5a\x97\xda\xec\x58\xc6\xb0\x50",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015531 .len = 64,
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015532 }, {
15533 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
15534 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
15535 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
15536 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
15537 .klen = 32,
15538 .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15539 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggerse674dbc2019-02-14 00:03:53 -080015540 .iv_out = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15541 "\xf8\xf9\xfa\xfb\xfc\xfd\xff\x03",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015542 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015543 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
15544 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
15545 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
15546 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
15547 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
15548 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
15549 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015550 .ctext = "\x60\x1e\xc3\x13\x77\x57\x89\xa5"
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015551 "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28"
15552 "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a"
15553 "\xca\x84\xe9\x90\xca\xca\xf5\xc5"
15554 "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c"
15555 "\xe8\x70\x17\xba\x2d\x84\x98\x8d"
15556 "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6"
15557 "\x13\xc2\xdd\x08\x45\x79\x41\xa6",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015558 .len = 64,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015559 }, { /* Generated with Crypto++ */
15560 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15561 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15562 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15563 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15564 .klen = 32,
15565 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
15566 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggerse674dbc2019-02-14 00:03:53 -080015567 .iv_out = "\x00\x00\x00\x00\x00\x00\x00\x00"
15568 "\x00\x00\x00\x00\x00\x00\x00\x1C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015569 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015570 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15571 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15572 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15573 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15574 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15575 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15576 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15577 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15578 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15579 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15580 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15581 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15582 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15583 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15584 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15585 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15586 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15587 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15588 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15589 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15590 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15591 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15592 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15593 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15594 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15595 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15596 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15597 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15598 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15599 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15600 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15601 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15602 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15603 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15604 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15605 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15606 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15607 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15608 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15609 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15610 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15611 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15612 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15613 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15614 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15615 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15616 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15617 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15618 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15619 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15620 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15621 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15622 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15623 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15624 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15625 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15626 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15627 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15628 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15629 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15630 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015631 .ctext = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015632 "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53"
15633 "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9"
15634 "\x69\x95\x35\x98\x8D\x4D\x8C\xC1"
15635 "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2"
15636 "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE"
15637 "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB"
15638 "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB"
15639 "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81"
15640 "\x47\x61\x12\x4D\xC2\x8C\xFA\x78"
15641 "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC"
15642 "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B"
15643 "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D"
15644 "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74"
15645 "\x32\x41\x1F\x31\x9C\x08\xA2\x5D"
15646 "\x67\xEB\x72\x1D\xF8\xE7\x70\x54"
15647 "\x34\x4B\x31\x69\x84\x66\x96\x44"
15648 "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9"
15649 "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF"
15650 "\x16\x5C\x5F\x79\x34\x52\x54\xFE"
15651 "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06"
15652 "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B"
15653 "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC"
15654 "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD"
15655 "\x3C\x98\x08\x12\xEC\xAA\x9E\x11"
15656 "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72"
15657 "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56"
15658 "\xD5\x45\x16\xD2\xAF\x13\x66\xF7"
15659 "\x8C\x67\xAC\x79\xB2\xAF\x56\x27"
15660 "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1"
15661 "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4"
15662 "\x42\xC8\x21\x08\x16\xF7\x01\xD7"
15663 "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4"
15664 "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3"
15665 "\x35\x1C\x82\xB9\x10\xF9\x42\xA1"
15666 "\xFC\x74\x9B\x44\x4F\x25\x02\xE3"
15667 "\x08\xF5\xD4\x32\x39\x08\x11\xE8"
15668 "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B"
15669 "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E"
15670 "\x0D\x07\x19\xDB\x67\xD7\x98\x91"
15671 "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33"
15672 "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA"
15673 "\x85\x99\x22\xE8\x91\x38\x70\x83"
15674 "\x93\x01\x24\x6C\xFA\x9A\xB9\x07"
15675 "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16"
15676 "\x2F\x69\xEE\x84\x36\x44\x76\x98"
15677 "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B"
15678 "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D"
15679 "\xAC\xED\x18\x1F\x50\xA4\xF5\x98"
15680 "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6"
15681 "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3"
15682 "\x1B\x39\x72\xD5\x26\xCA\x04\xE0"
15683 "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C"
15684 "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA"
15685 "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D"
15686 "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC"
15687 "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63"
15688 "\xEF\xDC\xC9\x79\x10\x26\xE8\x61"
15689 "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63"
15690 "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B"
15691 "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE"
15692 "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015693 .len = 496,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015694 }, { /* Generated with Crypto++ */
15695 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
15696 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
15697 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
15698 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
15699 .klen = 32,
15700 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15701 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42",
Eric Biggerse674dbc2019-02-14 00:03:53 -080015702 .iv_out = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
15703 "\xE2\x7D\x18\xD6\x71\x0C\xA7\x62",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015704 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015705 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
15706 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
15707 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
15708 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
15709 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
15710 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
15711 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
15712 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
15713 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
15714 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
15715 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
15716 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
15717 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
15718 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
15719 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
15720 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
15721 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
15722 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
15723 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
15724 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
15725 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
15726 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
15727 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
15728 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
15729 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
15730 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
15731 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
15732 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
15733 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
15734 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
15735 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
15736 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
15737 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
15738 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
15739 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
15740 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
15741 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
15742 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
15743 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
15744 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
15745 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
15746 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
15747 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
15748 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
15749 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
15750 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
15751 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
15752 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
15753 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
15754 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
15755 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
15756 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
15757 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
15758 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
15759 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
15760 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
15761 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
15762 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
15763 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
15764 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
15765 "\xED\x56\xBF\x28\xB4\x1D\x86\x12"
15766 "\x7B\xE4\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015767 .ctext = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2"
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015768 "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5"
15769 "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44"
15770 "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE"
15771 "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F"
15772 "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E"
15773 "\x76\xEA\x06\x32\x23\xF3\x59\x2E"
15774 "\x75\xDE\x71\x86\x3C\x98\x23\x44"
15775 "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD"
15776 "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04"
15777 "\x70\x8B\x92\x55\x23\xE9\x6A\x3A"
15778 "\x78\x7A\x1B\x10\x85\x52\x9C\x12"
15779 "\xE4\x55\x81\x21\xCE\x53\xD0\x3B"
15780 "\x63\x77\x2C\x74\xD1\xF5\x60\xF3"
15781 "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD"
15782 "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E"
15783 "\xA8\x28\x69\x65\x31\xE1\x45\x83"
15784 "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21"
15785 "\xCD\x5D\x0F\x15\xB7\x93\x07\x26"
15786 "\xB0\x65\x6D\x91\x90\x23\x7A\xC6"
15787 "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E"
15788 "\xC6\x91\x83\x20\x92\x4D\x63\x7A"
15789 "\x45\x18\x18\x74\x19\xAD\x71\x01"
15790 "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46"
15791 "\xC9\x73\x7A\xF9\x02\x95\xF4\x07"
15792 "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C"
15793 "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8"
15794 "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D"
15795 "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7"
15796 "\xE8\x61\xE5\x95\x52\x1E\x3E\x49"
15797 "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD"
15798 "\xDD\x15\x3B\x20\x59\x24\xFF\xB0"
15799 "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5"
15800 "\x15\xF0\x61\x4F\xAE\x89\x10\x58"
15801 "\x5A\x33\x95\x52\x2A\xB5\x77\x9C"
15802 "\xA5\x43\x80\x40\x27\x2D\xAE\xD9"
15803 "\x3F\xE0\x80\x94\x78\x79\xCB\x7E"
15804 "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE"
15805 "\x0B\x05\x2A\x82\x99\x58\xBB\x7A"
15806 "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93"
15807 "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70"
15808 "\x16\xAE\x35\xC5\x52\x0F\x46\x1F"
15809 "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F"
15810 "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6"
15811 "\xF6\xB8\x32\xCD\xD6\x85\x73\x60"
15812 "\x59\x20\xE7\x55\x0E\x91\xE2\x0C"
15813 "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2"
15814 "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D"
15815 "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7"
15816 "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D"
15817 "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4"
15818 "\xFB\x81\x5D\xF7\x96\x96\xD4\x50"
15819 "\x89\xA7\xF6\xB9\x67\x76\x40\x9E"
15820 "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F"
15821 "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D"
15822 "\x87\x52\xA4\x91\xA9\xD7\xA9\x51"
15823 "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D"
15824 "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D"
15825 "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37"
15826 "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A"
15827 "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11"
15828 "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76"
15829 "\xFB\xF2\x3F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015830 .len = 499,
Jussi Kivilinnac3b9e8f2012-10-20 14:53:02 +030015831 },
Jarod Wilsonf7cb80f2009-05-06 17:29:17 +080015832};
15833
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015834static const struct cipher_testvec aes_ctr_rfc3686_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080015835 { /* From RFC 3686 */
15836 .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc"
15837 "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e"
15838 "\x00\x00\x00\x30",
15839 .klen = 20,
15840 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015841 .ptext = "Single block msg",
15842 .ctext = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79"
Herbert Xuda7f0332008-07-31 17:08:25 +080015843 "\x2d\x61\x75\xa3\x26\x13\x11\xb8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015844 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080015845 }, {
15846 .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7"
15847 "\x43\xd6\xce\x1f\x32\x53\x91\x63"
15848 "\x00\x6c\xb6\xdb",
15849 .klen = 20,
15850 .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015851 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080015852 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15853 "\x10\x11\x12\x13\x14\x15\x16\x17"
15854 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015855 .ctext = "\x51\x04\xa1\x06\x16\x8a\x72\xd9"
Herbert Xuda7f0332008-07-31 17:08:25 +080015856 "\x79\x0d\x41\xee\x8e\xda\xd3\x88"
15857 "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8"
15858 "\xfc\xe6\x30\xdf\x91\x41\xbe\x28",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015859 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080015860 }, {
15861 .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79"
15862 "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed"
15863 "\x86\x3d\x06\xcc\xfd\xb7\x85\x15"
15864 "\x00\x00\x00\x48",
15865 .klen = 28,
15866 .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015867 .ptext = "Single block msg",
15868 .ctext = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8"
Herbert Xuda7f0332008-07-31 17:08:25 +080015869 "\x4e\x79\x35\xa0\x03\xcb\xe9\x28",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015870 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080015871 }, {
15872 .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c"
15873 "\x19\xe7\x34\x08\x19\xe0\xf6\x9c"
15874 "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a"
15875 "\x00\x96\xb0\x3b",
15876 .klen = 28,
15877 .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015878 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080015879 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15880 "\x10\x11\x12\x13\x14\x15\x16\x17"
15881 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015882 .ctext = "\x45\x32\x43\xfc\x60\x9b\x23\x32"
Herbert Xuda7f0332008-07-31 17:08:25 +080015883 "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f"
15884 "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c"
15885 "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015886 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080015887 }, {
15888 .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f"
15889 "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c"
15890 "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3"
15891 "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04"
15892 "\x00\x00\x00\x60",
15893 .klen = 36,
15894 .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015895 .ptext = "Single block msg",
15896 .ctext = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7"
Herbert Xuda7f0332008-07-31 17:08:25 +080015897 "\x56\x08\x63\xdc\x71\xe3\xe0\xc0",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015898 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080015899 }, {
15900 .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb"
15901 "\x07\x96\x36\x58\x79\xef\xf8\x86"
15902 "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74"
15903 "\x4b\x50\x59\x0c\x87\xa2\x38\x84"
15904 "\x00\xfa\xac\x24",
15905 .klen = 36,
15906 .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015907 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080015908 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15909 "\x10\x11\x12\x13\x14\x15\x16\x17"
15910 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015911 .ctext = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c"
Herbert Xuda7f0332008-07-31 17:08:25 +080015912 "\x49\xee\x00\x0b\x80\x4e\xb2\xa9"
15913 "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a"
15914 "\x55\x30\x83\x1d\x93\x44\xaf\x1c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015915 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080015916 }, {
15917 // generated using Crypto++
15918 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
15919 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15920 "\x10\x11\x12\x13\x14\x15\x16\x17"
15921 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15922 "\x00\x00\x00\x00",
15923 .klen = 32 + 4,
15924 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070015925 .ptext =
Herbert Xuda7f0332008-07-31 17:08:25 +080015926 "\x00\x01\x02\x03\x04\x05\x06\x07"
15927 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
15928 "\x10\x11\x12\x13\x14\x15\x16\x17"
15929 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
15930 "\x20\x21\x22\x23\x24\x25\x26\x27"
15931 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
15932 "\x30\x31\x32\x33\x34\x35\x36\x37"
15933 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
15934 "\x40\x41\x42\x43\x44\x45\x46\x47"
15935 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
15936 "\x50\x51\x52\x53\x54\x55\x56\x57"
15937 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
15938 "\x60\x61\x62\x63\x64\x65\x66\x67"
15939 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
15940 "\x70\x71\x72\x73\x74\x75\x76\x77"
15941 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
15942 "\x80\x81\x82\x83\x84\x85\x86\x87"
15943 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
15944 "\x90\x91\x92\x93\x94\x95\x96\x97"
15945 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
15946 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
15947 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
15948 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
15949 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
15950 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
15951 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
15952 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
15953 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
15954 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
15955 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
15956 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
15957 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
15958 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
15959 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
15960 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
15961 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
15962 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
15963 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
15964 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
15965 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
15966 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
15967 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
15968 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
15969 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
15970 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
15971 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
15972 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
15973 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
15974 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
15975 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
15976 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
15977 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
15978 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
15979 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
15980 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
15981 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
15982 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
15983 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
15984 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
15985 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
15986 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
15987 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
15988 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
15989 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
15990 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
15991 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
15992 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
15993 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
15994 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
15995 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
15996 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
15997 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
15998 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
15999 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
16000 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
16001 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
16002 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
16003 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
16004 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
16005 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
16006 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
16007 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
16008 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
16009 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
16010 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
16011 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
16012 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
16013 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
16014 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
16015 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
16016 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
16017 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
16018 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
16019 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
16020 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
16021 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
16022 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
16023 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
16024 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
16025 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
16026 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
16027 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
16028 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
16029 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
16030 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
16031 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
16032 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
16033 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
16034 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
16035 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
16036 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
16037 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
16038 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
16039 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
16040 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
16041 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
16042 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
16043 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
16044 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
16045 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
16046 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
16047 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
16048 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
16049 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
16050 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
16051 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
16052 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
16053 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
16054 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
16055 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
16056 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
16057 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
16058 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
16059 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
16060 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
16061 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
16062 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
16063 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
16064 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
16065 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
16066 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
16067 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
16068 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
16069 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
16070 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
16071 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
16072 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
16073 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
16074 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
16075 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
16076 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
16077 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
16078 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
16079 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
16080 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
16081 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
16082 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
16083 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
16084 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
16085 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
16086 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
16087 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
16088 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
16089 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
16090 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
16091 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
16092 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
16093 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
16094 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
16095 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
16096 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
16097 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
16098 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
16099 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
16100 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
16101 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
16102 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
16103 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
16104 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
16105 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
16106 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
16107 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
16108 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
16109 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
16110 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
16111 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
16112 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
16113 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
16114 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
16115 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
16116 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
16117 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
16118 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
16119 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
16120 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
16121 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
16122 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
16123 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
16124 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
16125 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
16126 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
16127 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
16128 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
16129 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
16130 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
16131 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
16132 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
16133 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
16134 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
16135 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
16136 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
16137 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
16138 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
16139 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
16140 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
16141 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
16142 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
16143 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
16144 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
16145 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
16146 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
16147 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
16148 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
16149 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
16150 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
16151 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
16152 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
16153 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
16154 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
16155 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
16156 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
16157 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
16158 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
16159 "\x38\x47\x56\x65\x74\x83\x92\xa1"
16160 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
16161 "\x28\x37\x46\x55\x64\x73\x82\x91"
16162 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
16163 "\x18\x27\x36\x45\x54\x63\x72\x81"
16164 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
16165 "\x08\x17\x26\x35\x44\x53\x62\x71"
16166 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
16167 "\xf8\x07\x16\x25\x34\x43\x52\x61"
16168 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
16169 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
16170 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
16171 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
16172 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
16173 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
16174 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
16175 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
16176 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
16177 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
16178 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
16179 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
16180 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
16181 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
16182 "\x00\x11\x22\x33\x44\x55\x66\x77"
16183 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
16184 "\x10\x21\x32\x43\x54\x65\x76\x87"
16185 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
16186 "\x20\x31\x42\x53\x64\x75\x86\x97"
16187 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
16188 "\x30\x41\x52\x63\x74\x85\x96\xa7"
16189 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
16190 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
16191 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
16192 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
16193 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
16194 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
16195 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
16196 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
16197 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
16198 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
16199 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
16200 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
16201 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
16202 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
16203 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
16204 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
16205 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
16206 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
16207 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
16208 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
16209 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
16210 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
16211 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
16212 "\xf0\x01\x12\x23\x34\x45\x56\x67"
16213 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
16214 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
16215 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
16216 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
16217 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
16218 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
16219 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
16220 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
16221 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
16222 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
16223 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
16224 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
16225 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
16226 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
16227 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
16228 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
16229 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
16230 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
16231 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
16232 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
16233 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
16234 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
16235 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
16236 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
16237 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
16238 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
16239 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
16240 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
16241 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
16242 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
16243 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
16244 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
16245 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
16246 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
16247 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
16248 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
16249 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
16250 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
16251 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
16252 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
16253 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
16254 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
16255 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
16256 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
16257 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
16258 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
16259 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
16260 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
16261 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
16262 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
16263 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
16264 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
16265 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
16266 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
16267 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
16268 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
16269 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
16270 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
16271 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
16272 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
16273 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
16274 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
16275 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
16276 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
16277 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
16278 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
16279 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
16280 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
16281 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
16282 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
16283 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
16284 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
16285 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
16286 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
16287 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
16288 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
16289 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
16290 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
16291 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
16292 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
16293 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
16294 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
16295 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
16296 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
16297 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
16298 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
16299 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
16300 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
16301 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
16302 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
16303 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
16304 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
16305 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
16306 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
16307 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
16308 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
16309 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
16310 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
16311 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
16312 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
16313 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
16314 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
16315 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
16316 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
16317 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
16318 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
16319 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
16320 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
16321 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
16322 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
16323 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
16324 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
16325 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
16326 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
16327 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
16328 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
16329 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
16330 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
16331 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
16332 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
16333 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
16334 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
16335 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
16336 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
16337 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
16338 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
16339 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
16340 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
16341 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
16342 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
16343 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
16344 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
16345 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
16346 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
16347 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
16348 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
16349 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
16350 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
16351 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
16352 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
16353 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
16354 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
16355 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
16356 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
16357 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
16358 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
16359 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
16360 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
16361 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
16362 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
16363 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
16364 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
16365 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
16366 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
16367 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
16368 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
16369 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
16370 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
16371 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
16372 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
16373 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
16374 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
16375 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
16376 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
16377 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
16378 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
16379 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
16380 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
16381 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
16382 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
16383 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
16384 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
16385 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
16386 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
16387 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
16388 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
16389 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
16390 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
16391 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
16392 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
16393 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
16394 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
16395 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
16396 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
16397 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
16398 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
16399 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
16400 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
16401 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
16402 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
16403 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
16404 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
16405 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
16406 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
16407 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
16408 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
16409 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
16410 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
16411 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
16412 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
16413 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
16414 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
16415 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
16416 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
16417 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
16418 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
16419 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
16420 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
16421 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
16422 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
16423 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
16424 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
16425 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
16426 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
16427 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
16428 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
16429 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
16430 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
16431 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
16432 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
16433 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
16434 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
16435 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
16436 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
16437 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
16438 "\x00\x21\x42\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016439 .ctext =
Herbert Xuda7f0332008-07-31 17:08:25 +080016440 "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2"
16441 "\xae\xff\x91\x3a\x44\xcf\x38\x32"
16442 "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa"
16443 "\x10\xb1\xb3\x2e\x04\x31\x8f\x86"
16444 "\xf2\x62\x74\x70\x0c\xa4\x46\x08"
16445 "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79"
16446 "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31"
16447 "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71"
16448 "\xe9\x46\x03\xa5\x3d\x34\x00\xe2"
16449 "\x18\xff\x75\x6d\x06\x2d\x00\xab"
16450 "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5"
16451 "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6"
16452 "\x3d\x74\x54\xfa\x44\xcd\x23\x26"
16453 "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf"
16454 "\xa7\x20\x3c\x74\x58\x2a\x9a\xde"
16455 "\x61\x00\x1c\x4f\xff\x59\xc4\x22"
16456 "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b"
16457 "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d"
16458 "\xee\x2f\x04\x1f\x7f\xbc\x99\xee"
16459 "\x84\xff\x42\x60\xdc\x3a\x18\xa5"
16460 "\x81\xf9\xef\xdc\x7a\x0f\x65\x41"
16461 "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d"
16462 "\x8f\xd3\x76\x96\xad\x49\x6d\x38"
16463 "\x3d\x39\x0b\x6c\x80\xb7\x54\x69"
16464 "\xf0\x2c\x90\x02\x29\x0d\x1c\x12"
16465 "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3"
16466 "\xb2\x64\x33\x90\x5e\xca\x4b\xe2"
16467 "\xfb\x75\xdc\x63\xf7\x9f\x82\x74"
16468 "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33"
16469 "\xbc\x88\x00\x7f\xca\xb2\x1f\x14"
16470 "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08"
16471 "\xf3\x83\xe8\xe0\x94\x86\x2e\x92"
16472 "\x78\x6b\x01\xc9\xc7\x83\xba\x21"
16473 "\x6a\x25\x15\x33\x4e\x45\x08\xec"
16474 "\x35\xdb\xe0\x6e\x31\x51\x79\xa9"
16475 "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a"
16476 "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc"
16477 "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec"
16478 "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16"
16479 "\x1b\x66\x84\xda\xe2\x92\xe5\xc0"
16480 "\xc8\x53\x07\xaf\x80\x84\xec\xfd"
16481 "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36"
16482 "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a"
16483 "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a"
16484 "\x06\x51\x48\x4e\xf6\x59\x87\xd2"
16485 "\x04\x02\xef\xd3\x44\xde\x76\x31"
16486 "\xb3\x34\x17\x1b\x9d\x66\x11\x9f"
16487 "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7"
16488 "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb"
16489 "\x65\x83\xd0\x3b\xe3\x30\xea\x94"
16490 "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64"
16491 "\xb4\x01\xab\x36\x2c\x77\x13\xaf"
16492 "\xf8\x2b\x88\x3f\x54\x39\xc4\x44"
16493 "\xfe\xef\x6f\x68\x34\xbe\x0f\x05"
16494 "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed"
16495 "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe"
16496 "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7"
16497 "\x93\x97\xc6\x48\x45\x1d\x9f\x83"
16498 "\xdf\x4b\x40\x3e\x42\x25\x87\x80"
16499 "\x4c\x7d\xa8\xd4\x98\x23\x95\x75"
16500 "\x41\x8c\xda\x41\x9b\xd4\xa7\x06"
16501 "\xb5\xf1\x71\x09\x53\xbe\xca\xbf"
16502 "\x32\x03\xed\xf0\x50\x1c\x56\x39"
16503 "\x5b\xa4\x75\x18\xf7\x9b\x58\xef"
16504 "\x53\xfc\x2a\x38\x23\x15\x75\xcd"
16505 "\x45\xe5\x5a\x82\x55\xba\x21\xfa"
16506 "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12"
16507 "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28"
16508 "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e"
16509 "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32"
16510 "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0"
16511 "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed"
16512 "\xd1\x26\xb9\xd8\x49\x5a\x07\x19"
16513 "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3"
16514 "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59"
16515 "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31"
16516 "\xb3\x42\xba\xa2\x7e\xd4\x32\x71"
16517 "\x45\x87\x48\xa9\xc2\xf2\x89\xb3"
16518 "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe"
16519 "\xc9\xdd\x81\xeb\x13\xab\xab\xc3"
16520 "\x98\x59\xd8\x16\x3d\x14\x7a\x1c"
16521 "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2"
16522 "\x69\x3a\x29\x23\xac\x86\x32\xa5"
16523 "\x48\x9c\x9e\xf3\x47\x77\x81\x70"
16524 "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff"
16525 "\x59\x6a\xd3\x50\x59\x43\x59\xde"
16526 "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a"
16527 "\x18\x34\x0d\x1a\x63\x33\xed\x10"
16528 "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8"
16529 "\xca\xb5\x9a\xd3\xdd\xca\x45\x84"
16530 "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe"
16531 "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d"
16532 "\x85\xd8\xc9\xdf\x68\xc9\x12\x80"
16533 "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d"
16534 "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0"
16535 "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f"
16536 "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8"
16537 "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2"
16538 "\xa6\xad\x30\xbc\x78\x3c\x5b\x10"
16539 "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33"
16540 "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8"
16541 "\xe8\x99\x57\x8c\x11\xed\x66\xd9"
16542 "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a"
16543 "\x6a\xcb\x42\x24\x06\xed\x3e\x4e"
16544 "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5"
16545 "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc"
16546 "\x64\x76\x38\x49\x4d\xfe\x30\x6d"
16547 "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba"
16548 "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3"
16549 "\x28\xa2\x82\x1f\x61\x69\xad\xc1"
16550 "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b"
16551 "\x51\xb5\x17\x7f\x12\x69\x8c\x24"
16552 "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a"
16553 "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a"
16554 "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5"
16555 "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7"
16556 "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2"
16557 "\x4d\x29\x77\x53\x35\x6a\x00\x8d"
16558 "\xcd\xa3\x58\xbe\x77\x99\x18\xf8"
16559 "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2"
16560 "\x5a\x8a\x93\x25\xaf\xf3\x78\x80"
16561 "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91"
16562 "\x58\xe1\x9f\x89\x35\x9d\x1d\x21"
16563 "\x29\x9f\xf4\x99\x02\x27\x0f\xa8"
16564 "\x4f\x79\x94\x2b\x33\x2c\xda\xa2"
16565 "\x26\x39\x83\x94\xef\x27\xd8\x53"
16566 "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd"
16567 "\x43\x7c\x95\x0a\x53\xef\x66\xda"
16568 "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71"
16569 "\xba\x40\x9b\x74\xf8\xd7\xd7\x41"
16570 "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c"
16571 "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3"
16572 "\x88\xee\x73\xcf\x66\x2f\x52\x56"
16573 "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88"
16574 "\x3f\x0e\x54\x17\x48\x80\x5d\xd3"
16575 "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f"
16576 "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1"
16577 "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9"
16578 "\x85\x9c\xf1\xac\xeb\x0c\x02\x46"
16579 "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94"
16580 "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36"
16581 "\xba\x61\x34\x38\x7c\xda\x48\x3e"
16582 "\x08\xc9\x39\x23\x5e\x02\x2c\x1a"
16583 "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02"
16584 "\xb1\x33\x37\x32\xe7\xde\xd6\xd0"
16585 "\x7c\x58\x65\x4b\xf8\x34\x27\x9c"
16586 "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d"
16587 "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37"
16588 "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4"
16589 "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a"
16590 "\x35\x12\xe3\x36\x28\x27\x36\x58"
16591 "\x01\x2b\x79\xe4\xba\x6d\x10\x7d"
16592 "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f"
16593 "\x2b\x9f\x96\x00\x86\x60\xf0\x21"
16594 "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b"
16595 "\x97\xd7\xb6\x53\x2a\xcc\xab\x40"
16596 "\x9d\x62\x79\x58\x52\xe6\x65\xb7"
16597 "\xab\x55\x67\x9c\x89\x7c\x03\xb0"
16598 "\x73\x59\xc5\x81\xf5\x18\x17\x5c"
16599 "\x89\xf3\x78\x35\x44\x62\x78\x72"
16600 "\xd0\x96\xeb\x31\xe7\x87\x77\x14"
16601 "\x99\x51\xf2\x59\x26\x9e\xb5\xa6"
16602 "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a"
16603 "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe"
16604 "\x17\xd4\x84\xa0\xac\xb5\xc7\xda"
16605 "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d"
16606 "\xfb\x79\x2e\x04\x2d\x50\x28\x83"
16607 "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a"
16608 "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c"
16609 "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92"
16610 "\xd2\x49\x77\x81\x6d\x90\x70\xae"
16611 "\x98\xa1\x03\x0d\x6b\xb9\x77\x14"
16612 "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2"
16613 "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f"
16614 "\x65\x54\xa4\x7a\x42\xdc\x18\x0d"
16615 "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b"
16616 "\x45\x42\x27\x75\x50\xe5\xee\xb8"
16617 "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c"
16618 "\x3c\xe3\x0d\x80\x01\xba\x0d\x29"
16619 "\xd8\x3c\xe9\x13\x16\x57\xe6\xea"
16620 "\x94\x52\xe7\x00\x4d\x30\xb0\x0f"
16621 "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44"
16622 "\xe1\x2f\xfd\x88\xed\x43\xe7\x52"
16623 "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7"
16624 "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3"
16625 "\xdc\x9b\x2f\x01\x56\x36\x09\xc5"
16626 "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03"
16627 "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a"
16628 "\xa9\x21\x2b\x92\x94\x87\x62\x57"
16629 "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84"
16630 "\x3b\x9e\x72\x02\xd7\xcc\x09\x56"
16631 "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8"
16632 "\xd2\x0d\x61\xcb\xef\xce\x0d\x05"
16633 "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93"
16634 "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1"
16635 "\xec\xfc\x89\xf9\x64\xb0\x22\xbf"
16636 "\x9e\x55\x46\x9f\x7c\x50\x8e\x84"
16637 "\x54\x20\x98\xd7\x6c\x40\x1e\xdb"
16638 "\x69\x34\x78\x61\x24\x21\x9c\x8a"
16639 "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35"
16640 "\x86\x13\xb1\x6c\x64\x2e\x41\xa5"
16641 "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e"
16642 "\x8a\x59\x94\x3c\xcf\x36\x27\x82"
16643 "\xc2\x45\xee\x58\xcd\x88\xb4\xec"
16644 "\xde\xb2\x96\x0a\xaf\x38\x6f\x88"
16645 "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a"
16646 "\xb1\x95\x28\x86\x20\xe9\x17\x49"
16647 "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1"
16648 "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b"
16649 "\xdb\x7c\x73\x10\xb9\xba\x89\x76"
16650 "\x54\xae\x7d\x71\xb3\x93\xf6\x32"
16651 "\xe6\x47\x43\x55\xac\xa0\x0d\xc2"
16652 "\x93\x27\x4a\x8e\x0e\x74\x15\xc7"
16653 "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e"
16654 "\xea\x8f\x85\x6d\x3a\x12\x4f\x72"
16655 "\x69\x58\x7a\x80\xbb\xb5\x97\xf3"
16656 "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79"
16657 "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62"
16658 "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0"
16659 "\x79\x00\xa8\x6c\x29\xd9\x18\x24"
16660 "\x36\xa2\x46\xc0\x96\x65\x7f\xbd"
16661 "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4"
16662 "\xc5\xb4\xe2\x12\xed\x69\xed\x4f"
16663 "\x26\x2c\x39\x52\x89\x98\xe7\x2c"
16664 "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a"
16665 "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b"
16666 "\x95\x0d\x3b\x09\x6e\xee\x83\x5d"
16667 "\x32\x4d\xed\xab\xfa\x98\x14\x4e"
16668 "\xc3\x15\x45\x53\x61\xc4\x93\xbd"
16669 "\x90\xf4\x99\x95\x4c\xe6\x76\x92"
16670 "\x29\x90\x46\x30\x92\x69\x7d\x13"
16671 "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f"
16672 "\x63\x40\x36\x5f\x09\xe2\x78\xf8"
16673 "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24"
16674 "\xa8\x89\x32\x5c\x37\x25\x1d\xb2"
16675 "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c"
16676 "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2"
16677 "\x85\x8e\xbf\xf8\xde\x92\xa0\xae"
16678 "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e"
16679 "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e"
16680 "\x37\x2f\xe2\x94\x32\xaf\xa0\x23"
16681 "\x49\xe4\xc0\xb3\xac\x00\x8f\x36"
16682 "\x05\xc4\xa6\x96\xec\x05\x98\x4f"
16683 "\x96\x67\x57\x1f\x20\x86\x1b\x2d"
16684 "\x69\xe4\x29\x93\x66\x5f\xaf\x6b"
16685 "\x88\x26\x2c\x67\x02\x4b\x52\xd0"
16686 "\x83\x7a\x43\x1f\xc0\x71\x15\x25"
16687 "\x77\x65\x08\x60\x11\x76\x4c\x8d"
16688 "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a"
16689 "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3"
16690 "\x03\xd1\x24\x95\xec\x6d\xab\x38"
16691 "\x72\xce\xe2\x8b\x33\xd7\x51\x09"
16692 "\xdc\x45\xe0\x09\x96\x32\xf3\xc4"
16693 "\x84\xdc\x73\x73\x2d\x1b\x11\x98"
16694 "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d"
16695 "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74"
16696 "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a"
16697 "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96"
16698 "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1"
16699 "\x62\x8f\x7a\x73\x32\xab\xc8\x18"
16700 "\x69\xe3\x34\x30\xdf\x13\xa6\xe5"
16701 "\xe8\x0e\x67\x7f\x81\x11\xb4\x60"
16702 "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b"
16703 "\xde\x39\xa4\x01\x72\x63\xf3\xd1"
16704 "\x64\x4e\xdf\xfc\x27\x92\x37\x0d"
16705 "\x57\xcd\x11\x4f\x11\x04\x8e\x1d"
16706 "\x16\xf7\xcd\x92\x9a\x99\x30\x14"
16707 "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8"
16708 "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f"
16709 "\xe5\x79\x81\x73\xcd\x43\x59\x68"
16710 "\x73\x02\x3b\x78\x21\x72\x43\x00"
16711 "\x49\x17\xf7\x00\xaf\x68\x24\x53"
16712 "\x05\x0a\xc3\x33\xe0\x33\x3f\x69"
16713 "\xd2\x84\x2f\x0b\xed\xde\x04\xf4"
16714 "\x11\x94\x13\x69\x51\x09\x28\xde"
16715 "\x57\x5c\xef\xdc\x9a\x49\x1c\x17"
16716 "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d"
16717 "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7"
16718 "\xc9\x8d\xa3\x36\x34\x8a\x77\x13"
16719 "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e"
16720 "\x05\xa1\x7b\x0c\xcb\x74\x47\x31"
16721 "\x62\x03\x43\xf1\x87\xb4\xb0\x85"
16722 "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b"
16723 "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f"
16724 "\x73\xac\xe6\x07\xee\xc1\xa1\xd6"
16725 "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1"
16726 "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3"
16727 "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55"
16728 "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b"
16729 "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38"
16730 "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2"
16731 "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7"
16732 "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e"
16733 "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3"
16734 "\x69\xdc\xab\x24\x57\x60\x47\xc1"
16735 "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe"
16736 "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb"
16737 "\xd6\x9d\x99\x69\xab\x7a\x07\x0c"
16738 "\x65\xe7\xc4\x08\x96\xe2\xa5\x01"
16739 "\x3f\x46\x07\x05\x7e\xe8\x9a\x90"
16740 "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e"
16741 "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b"
16742 "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c"
16743 "\x26\x10\x8f\x3d\x80\xe9\x58\xf7"
16744 "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99"
16745 "\x63\x19\x3d\xd5\xec\x1b\x77\x69"
16746 "\x98\xf6\xe4\x5f\x67\x17\x4b\x09"
16747 "\x85\x62\x82\x70\x18\xe2\x9a\x78"
16748 "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb"
16749 "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8"
16750 "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f"
16751 "\x35\xf3\x61\x06\x72\x84\xc4\x32"
16752 "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02"
16753 "\x04\xc2\xde\x57\x64\x60\x8d\xcf"
16754 "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01"
16755 "\xd6\x28\x8f\x99\xbc\x46\xeb\x05"
16756 "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c"
16757 "\xb3\x71\xa0\xde\xca\x96\xf1\x78"
16758 "\x49\xa2\x99\x81\x80\x5c\x01\xf5"
16759 "\xa0\xa2\x56\x63\xe2\x70\x07\xa5"
16760 "\x95\xd6\x85\xeb\x36\x9e\xa9\x51"
16761 "\x66\x56\x5f\x1d\x02\x19\xe2\xf6"
16762 "\x4f\x73\x38\x09\x75\x64\x48\xe0"
16763 "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94"
16764 "\xfe\x16\x26\x62\x49\x74\xf4\xb0"
16765 "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81"
16766 "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81"
16767 "\x79\x99\x77\x01\x3b\xe9\xa2\xb6"
16768 "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e"
16769 "\x8f\x06\x55\x2c\x6c\xdc\x92\x87"
16770 "\x64\x3b\x4b\x19\xa1\x13\x64\x1d"
16771 "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b"
16772 "\x1a\x86\x6d\x37\x52\x02\xc2\xe0"
16773 "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9"
16774 "\xef\xa0\x54\xe4\x5e\x16\x53\x81"
16775 "\x70\x62\x10\xaf\xde\xb8\xb5\xd3"
16776 "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07"
16777 "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4"
16778 "\x26\xa7\xa3\x93\x86\xb2\x04\x1e"
16779 "\x53\x5d\x86\xd6\xde\x65\xca\xe3"
16780 "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83"
16781 "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6"
16782 "\x37\x7a\x93\x7a\x50\x11\x9f\x96"
16783 "\x86\x25\xfd\xac\xdc\xbe\x18\x93"
16784 "\x19\x6b\xec\x58\x4f\xb9\x75\xa7"
16785 "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab"
16786 "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6"
16787 "\x03\xfb\x03\x6a\xea\x66\xbf\xd4"
16788 "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c"
16789 "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80"
16790 "\x24\x6d\xa0\xef\x25\x7c\xb7\xea"
16791 "\xce\x4d\x5f\x18\x60\xce\x87\x22"
16792 "\x66\x2f\xd5\xdd\xdd\x02\x21\x75"
16793 "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7"
16794 "\x32\xd8\xaf\x1e\x07\x77\x51\x96"
16795 "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67"
16796 "\xea\x17\x0b\x10\xd2\x3f\x28\x25"
16797 "\x4f\x05\x77\x02\x14\x69\xf0\x2c"
16798 "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b"
16799 "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3"
16800 "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12"
16801 "\x4c\x21\x87\xcb\xc9\x1d\x16\x96"
16802 "\x07\x6f\x23\x54\xb9\x6f\x79\xe5"
16803 "\x64\xc0\x64\xda\xb1\xae\xdd\x60"
16804 "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0"
16805 "\x92\x61\xd0\x48\x81\xed\x5e\x1d"
16806 "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d"
16807 "\x7f\x83\x73\xb6\x70\x18\x65\x3e"
16808 "\x2f\x0e\x7a\x12\x39\x98\xab\xd8"
16809 "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd"
16810 "\xf0\x03\x01\x1c\x85\x35\x9f\xeb"
16811 "\x19\x63\xa1\xaf\xfe\x2d\x35\x50"
16812 "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe"
16813 "\xc1\xac\x07\x7c\x98\x4f\xbe\x57"
16814 "\xa7\x22\xec\xe2\x7e\x29\x09\x53"
16815 "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14"
16816 "\xce\x54\xf9\x18\x58\xb5\xff\x44"
16817 "\x05\x9d\xce\x1b\xb6\x82\x23\xc8"
16818 "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65"
16819 "\x94\xf0\x63\x06\x0e\xef\x8c\xbd"
16820 "\xff\xfd\xb0\x21\x6e\x57\x05\x75"
16821 "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50"
16822 "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b"
16823 "\x80\x8c\xc8\x78\x40\x24\x4b\x89"
16824 "\x30\xce\x7a\x97\x0e\xc4\xaf\xef"
16825 "\x9b\xb4\xcd\x66\x74\x14\x04\x2b"
16826 "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c"
16827 "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d"
16828 "\xa7\x20\xeb\x86\x52\xb7\x67\xd8"
16829 "\x0c\xd6\x04\x14\xde\x51\x74\x75"
16830 "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad"
16831 "\x4f\xef\xa0\x0f\x70\x00\x6d\x13"
16832 "\x19\x1d\x41\x50\xe9\xd8\xf0\x32"
16833 "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf"
16834 "\x75\x46\x65\x4e\x07\x34\x37\xa3"
16835 "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f"
16836 "\x69\x24\x0e\x38\x67\x43\x8c\xde"
16837 "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f"
16838 "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde"
16839 "\x64\xb1\xdb\xee\x00\x50\x77\xe1"
16840 "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3"
16841 "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b"
16842 "\x6d\x55\xf0\xfc\x88\x54\x4e\x89"
16843 "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8"
16844 "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05"
16845 "\x91\x7d\x62\x64\x96\x72\xde\xfc"
16846 "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b"
16847 "\x1d\x08\x57\xce\x09\xb8\xf6\xcd"
16848 "\x8d\x95\xf2\x20\xbf\x0f\x20\x57"
16849 "\x98\x81\x84\x4f\x15\x5c\x76\xe7"
16850 "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78"
16851 "\x74\x77\xc3\x09\x4b\x5d\x48\xe4"
16852 "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf"
16853 "\x31\x32\x44\xa4\xe5\x0e\x1a\x98"
16854 "\x94\xc4\xf0\xff\xae\x3e\x44\xe8"
16855 "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f"
16856 "\x28\xc1\x37\x5f\x31\xd2\xb9\x33"
16857 "\xb1\xb2\x52\x94\x75\x2c\x29\x59"
16858 "\x06\xc2\x25\xe8\x71\x65\x4e\xed"
16859 "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7"
16860 "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a"
16861 "\xe0\x50\x40\x96\x35\x63\xe4\x0b"
16862 "\x76\xbd\xa4\x65\x00\x1b\x57\x88"
16863 "\xae\xed\x39\x88\x42\x11\x3c\xed"
16864 "\x85\x67\x7d\xb9\x68\x82\xe9\x43"
16865 "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f"
16866 "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e"
16867 "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8"
16868 "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd"
16869 "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60"
16870 "\xce\x20\x56\x32\xc6\xc5\x99\x1f"
16871 "\x09\xe6\x4e\x18\x1a\x15\x13\xa8"
16872 "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26"
16873 "\x66\xf8\x3d\x18\x74\x70\x66\x7a"
16874 "\x34\x17\xde\xba\x47\xf1\x06\x18"
16875 "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77"
16876 "\xe0\x3b\x78\x62\x66\xc9\x10\xea"
16877 "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e"
16878 "\x1d\xe2\x65\x61\x50\x9c\xd7\x05"
16879 "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5"
16880 "\x63\x4f\x20\x0c\x07\x17\x33\x5e"
16881 "\x03\x9a\x53\x0f\x2e\x55\xfe\x50"
16882 "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae"
16883 "\x58\xef\x15\xa9\x83\xd9\x46\xb1"
16884 "\x42\xaa\xf5\x02\x6c\xce\x92\x06"
16885 "\x1b\xdb\x66\x45\x91\x79\xc2\x2d"
16886 "\xe6\x53\xd3\x14\xfd\xbb\x44\x63"
16887 "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d"
16888 "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b"
16889 "\xfe\xd3\xef\x60\x83\xf6\x8e\x70"
16890 "\xb6\x67\xc7\x77\xed\x23\xef\x4c"
16891 "\xf0\xed\x2d\x07\x59\x6f\xc1\x01"
16892 "\x34\x37\x08\xab\xd9\x1f\x09\xb1"
16893 "\xce\x5b\x17\xff\x74\xf8\x9c\xd5"
16894 "\x2c\x56\x39\x79\x0f\x69\x44\x75"
16895 "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d"
16896 "\x90\x17\x77\x86\x5a\x3f\xd9\xd1"
16897 "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f"
16898 "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7"
16899 "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41"
16900 "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d"
16901 "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90"
16902 "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06"
16903 "\x63\x9b\xce\x61\x24\x79\xc0\x70"
16904 "\x52\xd0\xb6\xd4\x28\x95\x24\x87"
16905 "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52"
16906 "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42"
16907 "\xf7\xd5\xfd\xad\x06\x32\x9f\xba"
16908 "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38"
16909 "\x74\x56\x58\x40\x02\x37\x52\x2c"
16910 "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38"
16911 "\x41\x5e\x0c\x35\xe2\x11\xd1\x13"
16912 "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0"
16913 "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3"
16914 "\x24\x90\xec\x58\xd2\x09\xc7\x2d"
16915 "\xed\x38\x80\x36\x72\x43\x27\x49"
16916 "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30"
16917 "\x7d\xb6\x82\x37\x86\x92\x86\x3e"
16918 "\x08\xb2\x28\x5a\x55\x44\x24\x7d"
16919 "\x40\x48\x8a\xb6\x89\x58\x08\xa0"
16920 "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2"
16921 "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b"
16922 "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3"
16923 "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81"
16924 "\x14\x32\x45\x05\xe0\xdb\x9f\x75"
16925 "\x85\xb4\x6a\xfc\x95\xe3\x54\x22"
16926 "\x12\xee\x30\xfe\xd8\x30\xef\x34"
16927 "\x50\xab\x46\x30\x98\x2f\xb7\xc0"
16928 "\x15\xa2\x83\xb6\xf2\x06\x21\xa2"
16929 "\xc3\x26\x37\x14\xd1\x4d\xb5\x10"
16930 "\x52\x76\x4d\x6a\xee\xb5\x2b\x15"
16931 "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa"
16932 "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e"
16933 "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f"
16934 "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3"
16935 "\x02\x9d\x27\x1f\xef\x85\x05\x8d"
16936 "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8"
16937 "\xa1\x75\xa0\xd8\x06\x47\x14\xef"
16938 "\xaa\x61\xcf\x26\x15\xad\xd8\xa3"
16939 "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf"
16940 "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e"
16941 "\x42\xee\xb4\x2f\x51\xff\x7b\x2e"
16942 "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc"
16943 "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16"
16944 "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0"
16945 "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02"
16946 "\xac\x82\x93\x6e\xb6\x1c\x28\xfc"
16947 "\x44\x12\xfb\x73\x77\xd4\x13\x39"
16948 "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0"
16949 "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b"
16950 "\x41\x01\x18\x5d\x5d\x07\x97\xa6"
16951 "\x4b\xef\x31\x18\xea\xac\xb1\x84"
16952 "\x21\xed\xda\x86",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016953 .len = 4100,
Herbert Xuda7f0332008-07-31 17:08:25 +080016954 },
16955};
16956
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016957static const struct cipher_testvec aes_ofb_tv_template[] = {
Eric Biggersb3e3e2d2019-01-03 20:16:12 -080016958 { /* From NIST Special Publication 800-38A, Appendix F.5 */
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100016959 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
16960 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
16961 .klen = 16,
16962 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08"
16963 "\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016964 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100016965 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16966 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
16967 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
16968 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
16969 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
16970 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
16971 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016972 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100016973 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
16974 "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5"
16975 "\x3c\x52\xda\xc5\x4e\xd8\x25"
16976 "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43"
16977 "\x44\xf7\xa8\x22\x60\xed\xcc"
16978 "\x30\x4c\x65\x28\xf6\x59\xc7\x78"
16979 "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070016980 .len = 64,
Eric Biggersb3e3e2d2019-01-03 20:16:12 -080016981 }, { /* > 16 bytes, not a multiple of 16 bytes */
16982 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
16983 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
16984 .klen = 16,
16985 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16986 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
16987 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
16988 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
16989 "\xae",
16990 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20"
16991 "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a"
16992 "\x77",
16993 .len = 17,
16994 }, { /* < 16 bytes */
16995 .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6"
16996 "\xab\xf7\x15\x88\x09\xcf\x4f\x3c",
16997 .klen = 16,
16998 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
16999 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
17000 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f",
17001 .ctext = "\x3b\x3f\xd9\x2e\xb7\x2d\xad",
17002 .len = 7,
Puneet Saxenaba0e14a2011-05-04 15:04:10 +100017003 }
17004};
17005
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017006static const struct aead_testvec aes_gcm_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080017007 { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */
17008 .key = zeroed_string,
17009 .klen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017010 .ctext = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61"
Herbert Xuda7f0332008-07-31 17:08:25 +080017011 "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017012 .clen = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080017013 }, {
17014 .key = zeroed_string,
17015 .klen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017016 .ptext = zeroed_string,
17017 .plen = 16,
17018 .ctext = "\x03\x88\xda\xce\x60\xb6\xa3\x92"
Herbert Xuda7f0332008-07-31 17:08:25 +080017019 "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78"
17020 "\xab\x6e\x47\xd4\x2c\xec\x13\xbd"
17021 "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017022 .clen = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080017023 }, {
17024 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17025 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17026 .klen = 16,
17027 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17028 "\xde\xca\xf8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017029 .ptext = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
Herbert Xuda7f0332008-07-31 17:08:25 +080017030 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17031 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17032 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17033 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17034 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17035 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17036 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017037 .plen = 64,
17038 .ctext = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
Herbert Xuda7f0332008-07-31 17:08:25 +080017039 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
17040 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
17041 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
17042 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
17043 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
17044 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
17045 "\x3d\x58\xe0\x91\x47\x3f\x59\x85"
17046 "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6"
17047 "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017048 .clen = 80,
Herbert Xuda7f0332008-07-31 17:08:25 +080017049 }, {
17050 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17051 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17052 .klen = 16,
17053 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17054 "\xde\xca\xf8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017055 .ptext = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
Herbert Xuda7f0332008-07-31 17:08:25 +080017056 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17057 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17058 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17059 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17060 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17061 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17062 "\xba\x63\x7b\x39",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017063 .plen = 60,
Herbert Xuda7f0332008-07-31 17:08:25 +080017064 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17065 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17066 "\xab\xad\xda\xd2",
17067 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017068 .ctext = "\x42\x83\x1e\xc2\x21\x77\x74\x24"
Herbert Xuda7f0332008-07-31 17:08:25 +080017069 "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c"
17070 "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0"
17071 "\x35\xc1\x7e\x23\x29\xac\xa1\x2e"
17072 "\x21\xd5\x14\xb2\x54\x66\x93\x1c"
17073 "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05"
17074 "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97"
17075 "\x3d\x58\xe0\x91"
17076 "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb"
17077 "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017078 .clen = 76,
Herbert Xuda7f0332008-07-31 17:08:25 +080017079 }, {
17080 .key = zeroed_string,
17081 .klen = 24,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017082 .ctext = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b"
Herbert Xuda7f0332008-07-31 17:08:25 +080017083 "\xa0\x0e\xd1\xf3\x12\x57\x24\x35",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017084 .clen = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080017085 }, {
17086 .key = zeroed_string,
17087 .klen = 24,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017088 .ptext = zeroed_string,
17089 .plen = 16,
17090 .ctext = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41"
Herbert Xuda7f0332008-07-31 17:08:25 +080017091 "\x1c\x26\x7e\x43\x84\xb0\xf6\x00"
17092 "\x2f\xf5\x8d\x80\x03\x39\x27\xab"
17093 "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017094 .clen = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080017095 }, {
17096 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17097 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17098 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
17099 .klen = 24,
17100 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17101 "\xde\xca\xf8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017102 .ptext = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
Herbert Xuda7f0332008-07-31 17:08:25 +080017103 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17104 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17105 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17106 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17107 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17108 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17109 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017110 .plen = 64,
17111 .ctext = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
Herbert Xuda7f0332008-07-31 17:08:25 +080017112 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
17113 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
17114 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
17115 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
17116 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
17117 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
17118 "\xcc\xda\x27\x10\xac\xad\xe2\x56"
17119 "\x99\x24\xa7\xc8\x58\x73\x36\xbf"
17120 "\xb1\x18\x02\x4d\xb8\x67\x4a\x14",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017121 .clen = 80,
Herbert Xuda7f0332008-07-31 17:08:25 +080017122 }, {
Herbert Xuda7f0332008-07-31 17:08:25 +080017123 .key = zeroed_string,
17124 .klen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017125 .ctext = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080017126 "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017127 .clen = 16,
Eric Biggersf38e8882019-01-13 15:32:26 -080017128 }, {
17129 .key = zeroed_string,
17130 .klen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017131 .ptext = zeroed_string,
17132 .plen = 16,
17133 .ctext = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e"
Eric Biggersf38e8882019-01-13 15:32:26 -080017134 "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18"
17135 "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0"
17136 "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017137 .clen = 32,
Eric Biggersf38e8882019-01-13 15:32:26 -080017138 }, {
17139 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17140 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17141 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17142 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17143 .klen = 32,
17144 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17145 "\xde\xca\xf8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017146 .ptext = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
Eric Biggersf38e8882019-01-13 15:32:26 -080017147 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17148 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17149 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17150 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17151 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17152 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17153 "\xba\x63\x7b\x39\x1a\xaf\xd2\x55",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017154 .plen = 64,
17155 .ctext = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
Eric Biggersf38e8882019-01-13 15:32:26 -080017156 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
17157 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
17158 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
17159 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
17160 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
17161 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
17162 "\xbc\xc9\xf6\x62\x89\x80\x15\xad"
17163 "\xb0\x94\xda\xc5\xd9\x34\x71\xbd"
17164 "\xec\x1a\x50\x22\x70\xe3\xcc\x6c",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017165 .clen = 80,
Eric Biggersf38e8882019-01-13 15:32:26 -080017166 }, {
17167 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17168 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17169 "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17170 "\x6d\x6a\x8f\x94\x67\x30\x83\x08",
17171 .klen = 32,
17172 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17173 "\xde\xca\xf8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017174 .ptext = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
Eric Biggersf38e8882019-01-13 15:32:26 -080017175 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17176 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17177 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17178 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17179 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17180 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17181 "\xba\x63\x7b\x39",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017182 .plen = 60,
Eric Biggersf38e8882019-01-13 15:32:26 -080017183 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17184 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17185 "\xab\xad\xda\xd2",
17186 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017187 .ctext = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07"
Eric Biggersf38e8882019-01-13 15:32:26 -080017188 "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d"
17189 "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9"
17190 "\x75\x98\xa2\xbd\x25\x55\xd1\xaa"
17191 "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d"
17192 "\xa7\xb0\x8b\x10\x56\x82\x88\x38"
17193 "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a"
17194 "\xbc\xc9\xf6\x62"
17195 "\x76\xfc\x6e\xce\x0f\x4e\x17\x68"
17196 "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017197 .clen = 76,
Eric Biggersf38e8882019-01-13 15:32:26 -080017198 }, {
17199 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17200 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
17201 "\xfe\xff\xe9\x92\x86\x65\x73\x1c",
17202 .klen = 24,
17203 .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad"
17204 "\xde\xca\xf8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017205 .ptext = "\xd9\x31\x32\x25\xf8\x84\x06\xe5"
Eric Biggersf38e8882019-01-13 15:32:26 -080017206 "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a"
17207 "\x86\xa7\xa9\x53\x15\x34\xf7\xda"
17208 "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72"
17209 "\x1c\x3c\x0c\x95\x95\x68\x09\x53"
17210 "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25"
17211 "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57"
17212 "\xba\x63\x7b\x39",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017213 .plen = 60,
Eric Biggersf38e8882019-01-13 15:32:26 -080017214 .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17215 "\xfe\xed\xfa\xce\xde\xad\xbe\xef"
17216 "\xab\xad\xda\xd2",
17217 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017218 .ctext = "\x39\x80\xca\x0b\x3c\x00\xe8\x41"
Eric Biggersf38e8882019-01-13 15:32:26 -080017219 "\xeb\x06\xfa\xc4\x87\x2a\x27\x57"
17220 "\x85\x9e\x1c\xea\xa6\xef\xd9\x84"
17221 "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c"
17222 "\x7d\x77\x3d\x00\xc1\x44\xc5\x25"
17223 "\xac\x61\x9d\x18\xc8\x4a\x3f\x47"
17224 "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9"
17225 "\xcc\xda\x27\x10"
17226 "\x25\x19\x49\x8e\x80\xf1\x47\x8f"
17227 "\x37\xba\x55\xbd\x6d\x27\x61\x8c",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017228 .clen = 76,
Ard Biesheuvelec05a742019-09-11 00:18:59 +010017229 }, {
17230 .key = "\x62\x35\xf8\x95\xfc\xa5\xeb\xf6"
17231 "\x0e\x92\x12\x04\xd3\xa1\x3f\x2e"
17232 "\x8b\x32\xcf\xe7\x44\xed\x13\x59"
17233 "\x04\x38\x77\xb0\xb9\xad\xb4\x38",
17234 .klen = 32,
17235 .iv = "\x00\xff\xff\xff\xff\x00\x00\xff"
17236 "\xff\xff\x00\xff",
17237 .ptext = "\x42\xc1\xcc\x08\x48\x6f\x41\x3f"
17238 "\x2f\x11\x66\x8b\x2a\x16\xf0\xe0"
17239 "\x58\x83\xf0\xc3\x70\x14\xc0\x5b"
17240 "\x3f\xec\x1d\x25\x3c\x51\xd2\x03"
17241 "\xcf\x59\x74\x1f\xb2\x85\xb4\x07"
17242 "\xc6\x6a\x63\x39\x8a\x5b\xde\xcb"
17243 "\xaf\x08\x44\xbd\x6f\x91\x15\xe1"
17244 "\xf5\x7a\x6e\x18\xbd\xdd\x61\x50"
17245 "\x59\xa9\x97\xab\xbb\x0e\x74\x5c"
17246 "\x00\xa4\x43\x54\x04\x54\x9b\x3b"
17247 "\x77\xec\xfd\x5c\xa6\xe8\x7b\x08"
17248 "\xae\xe6\x10\x3f\x32\x65\xd1\xfc"
17249 "\xa4\x1d\x2c\x31\xfb\x33\x7a\xb3"
17250 "\x35\x23\xf4\x20\x41\xd4\xad\x82"
17251 "\x8b\xa4\xad\x96\x1c\x20\x53\xbe"
17252 "\x0e\xa6\xf4\xdc\x78\x49\x3e\x72"
17253 "\xb1\xa9\xb5\x83\xcb\x08\x54\xb7"
17254 "\xad\x49\x3a\xae\x98\xce\xa6\x66"
17255 "\x10\x30\x90\x8c\x55\x83\xd7\x7c"
17256 "\x8b\xe6\x53\xde\xd2\x6e\x18\x21"
17257 "\x01\x52\xd1\x9f\x9d\xbb\x9c\x73"
17258 "\x57\xcc\x89\x09\x75\x9b\x78\x70"
17259 "\xed\x26\x97\x4d\xb4\xe4\x0c\xa5"
17260 "\xfa\x70\x04\x70\xc6\x96\x1c\x7d"
17261 "\x54\x41\x77\xa8\xe3\xb0\x7e\x96"
17262 "\x82\xd9\xec\xa2\x87\x68\x55\xf9"
17263 "\x8f\x9e\x73\x43\x47\x6a\x08\x36"
17264 "\x93\x67\xa8\x2d\xde\xac\x41\xa9"
17265 "\x5c\x4d\x73\x97\x0f\x70\x68\xfa"
17266 "\x56\x4d\x00\xc2\x3b\x1f\xc8\xb9"
17267 "\x78\x1f\x51\x07\xe3\x9a\x13\x4e"
17268 "\xed\x2b\x2e\xa3\xf7\x44\xb2\xe7"
17269 "\xab\x19\x37\xd9\xba\x76\x5e\xd2"
17270 "\xf2\x53\x15\x17\x4c\x6b\x16\x9f"
17271 "\x02\x66\x49\xca\x7c\x91\x05\xf2"
17272 "\x45\x36\x1e\xf5\x77\xad\x1f\x46"
17273 "\xa8\x13\xfb\x63\xb6\x08\x99\x63"
17274 "\x82\xa2\xed\xb3\xac\xdf\x43\x19"
17275 "\x45\xea\x78\x73\xd9\xb7\x39\x11"
17276 "\xa3\x13\x7c\xf8\x3f\xf7\xad\x81"
17277 "\x48\x2f\xa9\x5c\x5f\xa0\xf0\x79"
17278 "\xa4\x47\x7d\x80\x20\x26\xfd\x63"
17279 "\x0a\xc7\x7e\x6d\x75\x47\xff\x76"
17280 "\x66\x2e\x8a\x6c\x81\x35\xaf\x0b"
17281 "\x2e\x6a\x49\x60\xc1\x10\xe1\xe1"
17282 "\x54\x03\xa4\x09\x0c\x37\x7a\x15"
17283 "\x23\x27\x5b\x8b\x4b\xa5\x64\x97"
17284 "\xae\x4a\x50\x73\x1f\x66\x1c\x5c"
17285 "\x03\x25\x3c\x8d\x48\x58\x71\x34"
17286 "\x0e\xec\x4e\x55\x1a\x03\x6a\xe5"
17287 "\xb6\x19\x2b\x84\x2a\x20\xd1\xea"
17288 "\x80\x6f\x96\x0e\x05\x62\xc7\x78"
17289 "\x87\x79\x60\x38\x46\xb4\x25\x57"
17290 "\x6e\x16\x63\xf8\xad\x6e\xd7\x42"
17291 "\x69\xe1\x88\xef\x6e\xd5\xb4\x9a"
17292 "\x3c\x78\x6c\x3b\xe5\xa0\x1d\x22"
17293 "\x86\x5c\x74\x3a\xeb\x24\x26\xc7"
17294 "\x09\xfc\x91\x96\x47\x87\x4f\x1a"
17295 "\xd6\x6b\x2c\x18\x47\xc0\xb8\x24"
17296 "\xa8\x5a\x4a\x9e\xcb\x03\xe7\x2a"
17297 "\x09\xe6\x4d\x9c\x6d\x86\x60\xf5"
17298 "\x2f\x48\x69\x37\x9f\xf2\xd2\xcb"
17299 "\x0e\x5a\xdd\x6e\x8a\xfb\x6a\xfe"
17300 "\x0b\x63\xde\x87\x42\x79\x8a\x68"
17301 "\x51\x28\x9b\x7a\xeb\xaf\xb8\x2f"
17302 "\x9d\xd1\xc7\x45\x90\x08\xc9\x83"
17303 "\xe9\x83\x84\xcb\x28\x69\x09\x69"
17304 "\xce\x99\x46\x00\x54\xcb\xd8\x38"
17305 "\xf9\x53\x4a\xbf\x31\xce\x57\x15"
17306 "\x33\xfa\x96\x04\x33\x42\xe3\xc0"
17307 "\xb7\x54\x4a\x65\x7a\x7c\x02\xe6"
17308 "\x19\x95\xd0\x0e\x82\x07\x63\xf9"
17309 "\xe1\x2b\x2a\xfc\x55\x92\x52\xc9"
17310 "\xb5\x9f\x23\x28\x60\xe7\x20\x51"
17311 "\x10\xd3\xed\x6d\x9b\xab\xb8\xe2"
17312 "\x5d\x9a\x34\xb3\xbe\x9c\x64\xcb"
17313 "\x78\xc6\x91\x22\x40\x91\x80\xbe"
17314 "\xd7\x78\x5c\x0e\x0a\xdc\x08\xe9"
17315 "\x67\x10\xa4\x83\x98\x79\x23\xe7"
17316 "\x92\xda\xa9\x22\x16\xb1\xe7\x78"
17317 "\xa3\x1c\x6c\x8f\x35\x7c\x4d\x37"
17318 "\x2f\x6e\x0b\x50\x5c\x34\xb9\xf9"
17319 "\xe6\x3d\x91\x0d\x32\x95\xaa\x3d"
17320 "\x48\x11\x06\xbb\x2d\xf2\x63\x88"
17321 "\x3f\x73\x09\xe2\x45\x56\x31\x51"
17322 "\xfa\x5e\x4e\x62\xf7\x90\xf9\xa9"
17323 "\x7d\x7b\x1b\xb1\xc8\x26\x6e\x66"
17324 "\xf6\x90\x9a\x7f\xf2\x57\xcc\x23"
17325 "\x59\xfa\xfa\xaa\x44\x04\x01\xa7"
17326 "\xa4\x78\xdb\x74\x3d\x8b\xb5",
17327 .plen = 719,
17328 .ctext = "\x84\x0b\xdb\xd5\xb7\xa8\xfe\x20"
17329 "\xbb\xb1\x12\x7f\x41\xea\xb3\xc0"
17330 "\xa2\xb4\x37\x19\x11\x58\xb6\x0b"
17331 "\x4c\x1d\x38\x05\x54\xd1\x16\x73"
17332 "\x8e\x1c\x20\x90\xa2\x9a\xb7\x74"
17333 "\x47\xe6\xd8\xfc\x18\x3a\xb4\xea"
17334 "\xd5\x16\x5a\x2c\x53\x01\x46\xb3"
17335 "\x18\x33\x74\x6c\x50\xf2\xe8\xc0"
17336 "\x73\xda\x60\x22\xeb\xe3\xe5\x9b"
17337 "\x20\x93\x6c\x4b\x37\x99\xb8\x23"
17338 "\x3b\x4e\xac\xe8\x5b\xe8\x0f\xb7"
17339 "\xc3\x8f\xfb\x4a\x37\xd9\x39\x95"
17340 "\x34\xf1\xdb\x8f\x71\xd9\xc7\x0b"
17341 "\x02\xf1\x63\xfc\x9b\xfc\xc5\xab"
17342 "\xb9\x14\x13\x21\xdf\xce\xaa\x88"
17343 "\x44\x30\x1e\xce\x26\x01\x92\xf8"
17344 "\x9f\x00\x4b\x0c\x4b\xf7\x5f\xe0"
17345 "\x89\xca\x94\x66\x11\x21\x97\xca"
17346 "\x3e\x83\x74\x2d\xdb\x4d\x11\xeb"
17347 "\x97\xc2\x14\xff\x9e\x1e\xa0\x6b"
17348 "\x08\xb4\x31\x2b\x85\xc6\x85\x6c"
17349 "\x90\xec\x39\xc0\xec\xb3\xb5\x4e"
17350 "\xf3\x9c\xe7\x83\x3a\x77\x0a\xf4"
17351 "\x56\xfe\xce\x18\x33\x6d\x0b\x2d"
17352 "\x33\xda\xc8\x05\x5c\xb4\x09\x2a"
17353 "\xde\x6b\x52\x98\x01\xef\x36\x3d"
17354 "\xbd\xf9\x8f\xa8\x3e\xaa\xcd\xd1"
17355 "\x01\x2d\x42\x49\xc3\xb6\x84\xbb"
17356 "\x48\x96\xe0\x90\x93\x6c\x48\x64"
17357 "\xd4\xfa\x7f\x93\x2c\xa6\x21\xc8"
17358 "\x7a\x23\x7b\xaa\x20\x56\x12\xae"
17359 "\x16\x9d\x94\x0f\x54\xa1\xec\xca"
17360 "\x51\x4e\xf2\x39\xf4\xf8\x5f\x04"
17361 "\x5a\x0d\xbf\xf5\x83\xa1\x15\xe1"
17362 "\xf5\x3c\xd8\x62\xa3\xed\x47\x89"
17363 "\x85\x4c\xe5\xdb\xac\x9e\x17\x1d"
17364 "\x0c\x09\xe3\x3e\x39\x5b\x4d\x74"
17365 "\x0e\xf5\x34\xee\x70\x11\x4c\xfd"
17366 "\xdb\x34\xb1\xb5\x10\x3f\x73\xb7"
17367 "\xf5\xfa\xed\xb0\x1f\xa5\xcd\x3c"
17368 "\x8d\x35\x83\xd4\x11\x44\x6e\x6c"
17369 "\x5b\xe0\x0e\x69\xa5\x39\xe5\xbb"
17370 "\xa9\x57\x24\x37\xe6\x1f\xdd\xcf"
17371 "\x16\x2a\x13\xf9\x6a\x2d\x90\xa0"
17372 "\x03\x60\x7a\xed\x69\xd5\x00\x8b"
17373 "\x7e\x4f\xcb\xb9\xfa\x91\xb9\x37"
17374 "\xc1\x26\xce\x90\x97\x22\x64\x64"
17375 "\xc1\x72\x43\x1b\xf6\xac\xc1\x54"
17376 "\x8a\x10\x9c\xdd\x8d\xd5\x8e\xb2"
17377 "\xe4\x85\xda\xe0\x20\x5f\xf4\xb4"
17378 "\x15\xb5\xa0\x8d\x12\x74\x49\x23"
17379 "\x3a\xdf\x4a\xd3\xf0\x3b\x89\xeb"
17380 "\xf8\xcc\x62\x7b\xfb\x93\x07\x41"
17381 "\x61\x26\x94\x58\x70\xa6\x3c\xe4"
17382 "\xff\x58\xc4\x13\x3d\xcb\x36\x6b"
17383 "\x32\xe5\xb2\x6d\x03\x74\x6f\x76"
17384 "\x93\x77\xde\x48\xc4\xfa\x30\x4a"
17385 "\xda\x49\x80\x77\x0f\x1c\xbe\x11"
17386 "\xc8\x48\xb1\xe5\xbb\xf2\x8a\xe1"
17387 "\x96\x2f\x9f\xd1\x8e\x8a\x5c\xe2"
17388 "\xf7\xd7\xd8\x54\xf3\x3f\xc4\x91"
17389 "\xb8\xfb\x86\xdc\x46\x24\x91\x60"
17390 "\x6c\x2f\xc9\x41\x37\x51\x49\x54"
17391 "\x09\x81\x21\xf3\x03\x9f\x2b\xe3"
17392 "\x1f\x39\x63\xaf\xf4\xd7\x53\x60"
17393 "\xa7\xc7\x54\xf9\xee\xb1\xb1\x7d"
17394 "\x75\x54\x65\x93\xfe\xb1\x68\x6b"
17395 "\x57\x02\xf9\xbb\x0e\xf9\xf8\xbf"
17396 "\x01\x12\x27\xb4\xfe\xe4\x79\x7a"
17397 "\x40\x5b\x51\x4b\xdf\x38\xec\xb1"
17398 "\x6a\x56\xff\x35\x4d\x42\x33\xaa"
17399 "\x6f\x1b\xe4\xdc\xe0\xdb\x85\x35"
17400 "\x62\x10\xd4\xec\xeb\xc5\x7e\x45"
17401 "\x1c\x6f\x17\xca\x3b\x8e\x2d\x66"
17402 "\x4f\x4b\x36\x56\xcd\x1b\x59\xaa"
17403 "\xd2\x9b\x17\xb9\x58\xdf\x7b\x64"
17404 "\x8a\xff\x3b\x9c\xa6\xb5\x48\x9e"
17405 "\xaa\xe2\x5d\x09\x71\x32\x5f\xb6"
17406 "\x29\xbe\xe7\xc7\x52\x7e\x91\x82"
17407 "\x6b\x6d\x33\xe1\x34\x06\x36\x21"
17408 "\x5e\xbe\x1e\x2f\x3e\xc1\xfb\xea"
17409 "\x49\x2c\xb5\xca\xf7\xb0\x37\xea"
17410 "\x1f\xed\x10\x04\xd9\x48\x0d\x1a"
17411 "\x1c\xfb\xe7\x84\x0e\x83\x53\x74"
17412 "\xc7\x65\xe2\x5c\xe5\xba\x73\x4c"
17413 "\x0e\xe1\xb5\x11\x45\x61\x43\x46"
17414 "\xaa\x25\x8f\xbd\x85\x08\xfa\x4c"
17415 "\x15\xc1\xc0\xd8\xf5\xdc\x16\xbb"
17416 "\x7b\x1d\xe3\x87\x57\xa7\x2a\x1d"
17417 "\x38\x58\x9e\x8a\x43\xdc\x57"
17418 "\xd1\x81\x7d\x2b\xe9\xff\x99\x3a"
17419 "\x4b\x24\x52\x58\x55\xe1\x49\x14",
17420 .clen = 735,
Herbert Xuda7f0332008-07-31 17:08:25 +080017421 }
17422};
17423
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017424static const struct aead_testvec aes_gcm_rfc4106_tv_template[] = {
Herbert Xu85375442015-07-09 07:17:25 +080017425 { /* Generated using Crypto++ */
Adrian Hoban69435b92010-11-04 15:02:04 -040017426 .key = zeroed_string,
17427 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017428 .iv = zeroed_string,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017429 .ptext = zeroed_string,
17430 .plen = 16,
Herbert Xu85375442015-07-09 07:17:25 +080017431 .assoc = zeroed_string,
17432 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017433 .ctext = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92"
Herbert Xu85375442015-07-09 07:17:25 +080017434 "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78"
17435 "\x97\xFE\x4C\x23\x37\x42\x01\xE0"
17436 "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017437 .clen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017438 },{
Adrian Hoban69435b92010-11-04 15:02:04 -040017439 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17440 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017441 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017442 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017443 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017444 .ptext = zeroed_string,
17445 .plen = 16,
Herbert Xu85375442015-07-09 07:17:25 +080017446 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
17447 "\x00\x00\x00\x00\x00\x00\x00\x01",
17448 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017449 .ctext = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18"
Herbert Xu85375442015-07-09 07:17:25 +080017450 "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28"
17451 "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D"
17452 "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017453 .clen = 32,
Adrian Hoban69435b92010-11-04 15:02:04 -040017454
Herbert Xu85375442015-07-09 07:17:25 +080017455 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017456 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17457 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017458 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017459 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017460 .iv = zeroed_string,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017461 .ptext = "\x01\x01\x01\x01\x01\x01\x01\x01"
Herbert Xu85375442015-07-09 07:17:25 +080017462 "\x01\x01\x01\x01\x01\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017463 .plen = 16,
Herbert Xu85375442015-07-09 07:17:25 +080017464 .assoc = zeroed_string,
17465 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017466 .ctext = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080017467 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
17468 "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C"
17469 "\xB1\x68\xFD\x14\x52\x64\x61\xB2",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017470 .clen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017471 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017472 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17473 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017474 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017475 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017476 .iv = zeroed_string,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017477 .ptext = "\x01\x01\x01\x01\x01\x01\x01\x01"
Herbert Xu85375442015-07-09 07:17:25 +080017478 "\x01\x01\x01\x01\x01\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017479 .plen = 16,
Herbert Xu85375442015-07-09 07:17:25 +080017480 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17481 "\x00\x00\x00\x00\x00\x00\x00\x00",
17482 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017483 .ctext = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE"
Herbert Xu85375442015-07-09 07:17:25 +080017484 "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC"
17485 "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63"
17486 "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017487 .clen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017488 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017489 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17490 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017491 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017492 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017493 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017494 .ptext = "\x01\x01\x01\x01\x01\x01\x01\x01"
Herbert Xu85375442015-07-09 07:17:25 +080017495 "\x01\x01\x01\x01\x01\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017496 .plen = 16,
Herbert Xu85375442015-07-09 07:17:25 +080017497 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17498 "\x00\x00\x00\x00\x00\x00\x00\x01",
17499 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017500 .ctext = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080017501 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
17502 "\x64\x50\xF9\x32\x13\xFB\x74\x61"
17503 "\xF4\xED\x52\xD3\xC5\x10\x55\x3C",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017504 .clen = 32,
Herbert Xu85375442015-07-09 07:17:25 +080017505 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017506 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
17507 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
Herbert Xu85375442015-07-09 07:17:25 +080017508 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017509 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017510 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017511 .ptext = "\x01\x01\x01\x01\x01\x01\x01\x01"
Herbert Xu85375442015-07-09 07:17:25 +080017512 "\x01\x01\x01\x01\x01\x01\x01\x01"
17513 "\x01\x01\x01\x01\x01\x01\x01\x01"
17514 "\x01\x01\x01\x01\x01\x01\x01\x01"
17515 "\x01\x01\x01\x01\x01\x01\x01\x01"
17516 "\x01\x01\x01\x01\x01\x01\x01\x01"
17517 "\x01\x01\x01\x01\x01\x01\x01\x01"
17518 "\x01\x01\x01\x01\x01\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017519 .plen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080017520 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
17521 "\x00\x00\x00\x00\x00\x00\x00\x01",
17522 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017523 .ctext = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19"
Herbert Xu85375442015-07-09 07:17:25 +080017524 "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29"
17525 "\x98\x14\xA1\x42\x37\x80\xFD\x90"
17526 "\x68\x12\x01\xA8\x91\x89\xB9\x83"
17527 "\x5B\x11\x77\x12\x9B\xFF\x24\x89"
17528 "\x94\x5F\x18\x12\xBA\x27\x09\x39"
17529 "\x99\x96\x76\x42\x15\x1C\xCD\xCB"
17530 "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD"
17531 "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85"
17532 "\xBD\xCF\x62\x98\x58\x14\xE5\xBD",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017533 .clen = 80,
Herbert Xu85375442015-07-09 07:17:25 +080017534 }, {
Adrian Hoban69435b92010-11-04 15:02:04 -040017535 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
17536 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
Herbert Xu85375442015-07-09 07:17:25 +080017537 "\x00\x00\x00\x00",
Adrian Hoban69435b92010-11-04 15:02:04 -040017538 .klen = 20,
Herbert Xu85375442015-07-09 07:17:25 +080017539 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017540 .ptext = "\xff\xff\xff\xff\xff\xff\xff\xff"
Herbert Xu85375442015-07-09 07:17:25 +080017541 "\xff\xff\xff\xff\xff\xff\xff\xff"
17542 "\xff\xff\xff\xff\xff\xff\xff\xff"
17543 "\xff\xff\xff\xff\xff\xff\xff\xff"
17544 "\xff\xff\xff\xff\xff\xff\xff\xff"
17545 "\xff\xff\xff\xff\xff\xff\xff\xff"
17546 "\xff\xff\xff\xff\xff\xff\xff\xff"
17547 "\xff\xff\xff\xff\xff\xff\xff\xff"
17548 "\xff\xff\xff\xff\xff\xff\xff\xff"
17549 "\xff\xff\xff\xff\xff\xff\xff\xff"
17550 "\xff\xff\xff\xff\xff\xff\xff\xff"
17551 "\xff\xff\xff\xff\xff\xff\xff\xff"
17552 "\xff\xff\xff\xff\xff\xff\xff\xff"
17553 "\xff\xff\xff\xff\xff\xff\xff\xff"
17554 "\xff\xff\xff\xff\xff\xff\xff\xff"
17555 "\xff\xff\xff\xff\xff\xff\xff\xff"
17556 "\xff\xff\xff\xff\xff\xff\xff\xff"
17557 "\xff\xff\xff\xff\xff\xff\xff\xff"
17558 "\xff\xff\xff\xff\xff\xff\xff\xff"
17559 "\xff\xff\xff\xff\xff\xff\xff\xff"
17560 "\xff\xff\xff\xff\xff\xff\xff\xff"
17561 "\xff\xff\xff\xff\xff\xff\xff\xff"
17562 "\xff\xff\xff\xff\xff\xff\xff\xff"
17563 "\xff\xff\xff\xff\xff\xff\xff\xff",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017564 .plen = 192,
Herbert Xu85375442015-07-09 07:17:25 +080017565 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
17566 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
17567 "\x89\xab\xcd\xef",
17568 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017569 .ctext = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE"
Adrian Hoban69435b92010-11-04 15:02:04 -040017570 "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A"
17571 "\x44\x6D\xC3\x88\x46\x2E\xC2\x01"
17572 "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82"
17573 "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44"
17574 "\x41\xA9\x82\x6F\x22\xA1\x23\x1A"
17575 "\xA8\xE3\x16\xFD\x31\x5C\x27\x31"
17576 "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1"
17577 "\xCF\x07\x57\x41\x67\xD0\xC4\x42"
17578 "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F"
17579 "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B"
17580 "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE"
17581 "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C"
17582 "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF"
17583 "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59"
17584 "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA"
17585 "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25"
17586 "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B"
17587 "\x7E\x13\x06\x82\x08\x17\xA4\x35"
17588 "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F"
17589 "\xA3\x05\x38\x95\x20\x1A\x47\x04"
17590 "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35"
17591 "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E"
17592 "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B"
17593 "\x37\x08\x1C\xCF\xBA\x5D\x71\x46"
17594 "\x80\x72\xB0\x4C\x82\x0D\x60\x3C",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017595 .clen = 208,
Herbert Xu8f69b762015-06-16 13:54:26 +080017596 }, { /* From draft-mcgrew-gcm-test-01 */
17597 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
17598 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
17599 "\x2E\x44\x3B\x68",
17600 .klen = 20,
17601 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017602 .ptext = "\x45\x00\x00\x48\x69\x9A\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017603 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
17604 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
17605 "\x38\xD3\x01\x00\x00\x01\x00\x00"
17606 "\x00\x00\x00\x00\x04\x5F\x73\x69"
17607 "\x70\x04\x5F\x75\x64\x70\x03\x73"
17608 "\x69\x70\x09\x63\x79\x62\x65\x72"
17609 "\x63\x69\x74\x79\x02\x64\x6B\x00"
17610 "\x00\x21\x00\x01\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017611 .plen = 72,
Herbert Xu8f69b762015-06-16 13:54:26 +080017612 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080017613 "\x00\x00\x00\x00\x49\x56\xED\x7E"
17614 "\x3B\x24\x4C\xFE",
17615 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017616 .ctext = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07"
Herbert Xu8f69b762015-06-16 13:54:26 +080017617 "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76"
17618 "\x8D\x1B\x98\x73\x66\x96\xA6\xFD"
17619 "\x34\x85\x09\xFA\x13\xCE\xAC\x34"
17620 "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF"
17621 "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D"
17622 "\x15\xB2\x1E\x18\x84\xF5\xFF\x62"
17623 "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE"
17624 "\x61\xBC\x17\xD7\x68\xFD\x97\x32"
17625 "\x45\x90\x18\x14\x8F\x6C\xBE\x72"
17626 "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017627 .clen = 88,
Herbert Xu8f69b762015-06-16 13:54:26 +080017628 }, {
17629 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17630 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17631 "\xCA\xFE\xBA\xBE",
17632 .klen = 20,
17633 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017634 .ptext = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017635 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
17636 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
17637 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
17638 "\x00\x01\x00\x00\x00\x00\x00\x00"
17639 "\x03\x73\x69\x70\x09\x63\x79\x62"
17640 "\x65\x72\x63\x69\x74\x79\x02\x64"
17641 "\x6B\x00\x00\x01\x00\x01\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017642 .plen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080017643 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17644 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17645 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017646 .ctext = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1"
Herbert Xu8f69b762015-06-16 13:54:26 +080017647 "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04"
17648 "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F"
17649 "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C"
17650 "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F"
17651 "\x51\x33\x0D\x0E\xEC\x41\x66\x42"
17652 "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4"
17653 "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1"
17654 "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4"
17655 "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017656 .clen = 80,
Herbert Xu8f69b762015-06-16 13:54:26 +080017657 }, {
17658 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17659 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17660 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17661 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17662 "\x11\x22\x33\x44",
17663 .klen = 36,
17664 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017665 .ptext = "\x45\x00\x00\x30\x69\xA6\x40\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017666 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
17667 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
17668 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
17669 "\x70\x02\x40\x00\x20\xBF\x00\x00"
17670 "\x02\x04\x05\xB4\x01\x01\x04\x02"
17671 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017672 .plen = 52,
Herbert Xu85375442015-07-09 07:17:25 +080017673 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
17674 "\x01\x02\x03\x04\x05\x06\x07\x08",
17675 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017676 .ctext = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF"
Herbert Xu8f69b762015-06-16 13:54:26 +080017677 "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D"
17678 "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF"
17679 "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63"
17680 "\x74\x8A\x63\x79\x85\x77\x1D\x34"
17681 "\x7F\x05\x45\x65\x9F\x14\xE9\x9D"
17682 "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE"
17683 "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49"
17684 "\x15\x95\x6C\x96",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017685 .clen = 68,
Herbert Xu8f69b762015-06-16 13:54:26 +080017686 }, {
17687 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
17688 "\x00\x00\x00\x00\x00\x00\x00\x00"
17689 "\x00\x00\x00\x00",
17690 .klen = 20,
17691 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017692 .ptext = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017693 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
17694 "\x01\x01\x01\x01\x08\x00\x07\x5C"
17695 "\x02\x00\x44\x00\x61\x62\x63\x64"
17696 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17697 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17698 "\x75\x76\x77\x61\x62\x63\x64\x65"
17699 "\x66\x67\x68\x69\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017700 .plen = 64,
Herbert Xu85375442015-07-09 07:17:25 +080017701 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
17702 "\x00\x00\x00\x00\x00\x00\x00\x00",
17703 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017704 .ctext = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92"
Herbert Xu8f69b762015-06-16 13:54:26 +080017705 "\x73\x29\x09\xC3\x31\xD5\x6D\x60"
17706 "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F"
17707 "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84"
17708 "\x45\x64\x76\x49\x27\x19\xFF\xB6"
17709 "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94"
17710 "\xBC\x3B\xD5\x78\x73\xED\x4D\x18"
17711 "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3"
17712 "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9"
17713 "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017714 .clen = 80,
Herbert Xu8f69b762015-06-16 13:54:26 +080017715 }, {
17716 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17717 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17718 "\x57\x69\x0E\x43",
17719 .klen = 20,
17720 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017721 .ptext = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017722 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
17723 "\x01\x01\x01\x01\x08\x00\x08\x5C"
17724 "\x02\x00\x43\x00\x61\x62\x63\x64"
17725 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17726 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17727 "\x75\x76\x77\x61\x62\x63\x64\x65"
17728 "\x66\x67\x68\x69\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017729 .plen = 64,
Herbert Xu8f69b762015-06-16 13:54:26 +080017730 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080017731 "\x10\x10\x10\x10\x4E\x28\x00\x00"
17732 "\xA2\xFC\xA1\xA3",
17733 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017734 .ctext = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0"
Herbert Xu8f69b762015-06-16 13:54:26 +080017735 "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0"
17736 "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0"
17737 "\x0D\x11\x38\xEC\x9C\x35\x79\x17"
17738 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
17739 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
17740 "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D"
17741 "\x1F\x5E\x22\x73\x95\x30\x32\x0A"
17742 "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA"
17743 "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017744 .clen = 80,
Herbert Xu8f69b762015-06-16 13:54:26 +080017745 }, {
17746 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17747 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17748 "\x57\x69\x0E\x43",
17749 .klen = 20,
17750 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017751 .ptext = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017752 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
17753 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
17754 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017755 .plen = 28,
Herbert Xu8f69b762015-06-16 13:54:26 +080017756 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080017757 "\x10\x10\x10\x10\x4E\x28\x00\x00"
17758 "\xA2\xFC\xA1\xA3",
17759 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017760 .ctext = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0"
Herbert Xu8f69b762015-06-16 13:54:26 +080017761 "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E"
17762 "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13"
17763 "\x0E\x13\x79\xED\x36\x9F\x07\x1F"
17764 "\x35\xE0\x34\xBE\x95\xF1\x12\xE4"
17765 "\xE7\xD0\x5D\x35",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017766 .clen = 44,
Herbert Xu8f69b762015-06-16 13:54:26 +080017767 }, {
17768 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17769 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
17770 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
17771 "\xCA\xFE\xBA\xBE",
17772 .klen = 28,
17773 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017774 .ptext = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017775 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
17776 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
17777 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
17778 "\x50\x10\x16\xD0\x75\x68\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017779 .plen = 40,
Herbert Xu85375442015-07-09 07:17:25 +080017780 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
17781 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
17782 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017783 .ctext = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4"
Herbert Xu8f69b762015-06-16 13:54:26 +080017784 "\x0E\x59\x8B\x81\x22\xDE\x02\x42"
17785 "\x09\x38\xB3\xAB\x33\xF8\x28\xE6"
17786 "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0"
17787 "\x31\x5B\x27\x45\x21\x44\xCC\x77"
17788 "\x95\x45\x7B\x96\x52\x03\x7F\x53"
17789 "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017790 .clen = 56,
Herbert Xu8f69b762015-06-16 13:54:26 +080017791 }, {
17792 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17793 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17794 "\xDE\xCA\xF8\x88",
17795 .klen = 20,
17796 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017797 .ptext = "\x45\x00\x00\x49\x33\xBA\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017798 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
17799 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
17800 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
17801 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
17802 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
17803 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
17804 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
17805 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
17806 "\x23\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017807 .plen = 76,
Herbert Xu8f69b762015-06-16 13:54:26 +080017808 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080017809 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
17810 "\xCE\xFA\xCE\x74",
17811 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017812 .ctext = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A"
Herbert Xu8f69b762015-06-16 13:54:26 +080017813 "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14"
17814 "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1"
17815 "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F"
17816 "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19"
17817 "\x84\xE6\x58\x63\x96\x5D\x74\x72"
17818 "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19"
17819 "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22"
17820 "\x6F\x21\x27\xB2\x7D\xB3\x57\x24"
17821 "\xE7\x84\x5D\x68\x65\x1F\x57\xE6"
17822 "\x5F\x35\x4F\x75\xFF\x17\x01\x57"
17823 "\x69\x62\x34\x36",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017824 .clen = 92,
Herbert Xu8f69b762015-06-16 13:54:26 +080017825 }, {
17826 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17827 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17828 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17829 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17830 "\x73\x61\x6C\x74",
17831 .klen = 36,
17832 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017833 .ptext = "\x45\x08\x00\x28\x73\x2C\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017834 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
17835 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
17836 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
17837 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017838 .plen = 40,
Herbert Xu8f69b762015-06-16 13:54:26 +080017839 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080017840 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
17841 "\x69\x76\x65\x63",
17842 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017843 .ctext = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B"
Herbert Xu8f69b762015-06-16 13:54:26 +080017844 "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D"
17845 "\x1F\x27\x8F\xDE\x98\xEF\x67\x54"
17846 "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F"
17847 "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E"
17848 "\x45\x16\x26\xC2\x41\x57\x71\xE3"
17849 "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017850 .clen = 56,
Herbert Xu8f69b762015-06-16 13:54:26 +080017851 }, {
17852 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17853 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17854 "\x57\x69\x0E\x43",
17855 .klen = 20,
17856 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017857 .ptext = "\x45\x00\x00\x49\x33\x3E\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017858 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
17859 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
17860 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
17861 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
17862 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
17863 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
17864 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
17865 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
17866 "\x15\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017867 .plen = 76,
Herbert Xu8f69b762015-06-16 13:54:26 +080017868 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080017869 "\x10\x10\x10\x10\x4E\x28\x00\x00"
17870 "\xA2\xFC\xA1\xA3",
17871 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017872 .ctext = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0"
Herbert Xu8f69b762015-06-16 13:54:26 +080017873 "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8"
17874 "\x3D\x77\x84\xB6\x07\x32\x3D\x22"
17875 "\x0F\x24\xB0\xA9\x7D\x54\x18\x28"
17876 "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0"
17877 "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88"
17878 "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74"
17879 "\x0F\x74\x24\x44\x74\x7B\x5B\x39"
17880 "\xAB\x53\x31\x63\xAA\xD4\x55\x0E"
17881 "\xE5\x16\x09\x75\xCD\xB6\x08\xC5"
17882 "\x76\x91\x89\x60\x97\x63\xB8\xE1"
17883 "\x8C\xAA\x81\xE2",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017884 .clen = 92,
Herbert Xu8f69b762015-06-16 13:54:26 +080017885 }, {
17886 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17887 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17888 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17889 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17890 "\x73\x61\x6C\x74",
17891 .klen = 36,
17892 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017893 .ptext = "\x63\x69\x73\x63\x6F\x01\x72\x75"
Herbert Xu8f69b762015-06-16 13:54:26 +080017894 "\x6C\x65\x73\x01\x74\x68\x65\x01"
17895 "\x6E\x65\x74\x77\x65\x01\x64\x65"
17896 "\x66\x69\x6E\x65\x01\x74\x68\x65"
17897 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
17898 "\x67\x69\x65\x73\x01\x74\x68\x61"
17899 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
17900 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
17901 "\x72\x72\x6F\x77\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017902 .plen = 72,
Herbert Xu8f69b762015-06-16 13:54:26 +080017903 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
Herbert Xu85375442015-07-09 07:17:25 +080017904 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
17905 "\x69\x76\x65\x63",
17906 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017907 .ctext = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E"
Herbert Xu8f69b762015-06-16 13:54:26 +080017908 "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E"
17909 "\x7B\x43\xF8\x26\xFB\x56\x83\x12"
17910 "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18"
17911 "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0"
17912 "\x74\x11\x3E\x14\xC6\x41\x02\x4E"
17913 "\x3E\x67\x73\xD9\x1A\x62\xEE\x42"
17914 "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0"
17915 "\x12\xA4\x93\x63\x41\x23\x64\xF8"
17916 "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B"
17917 "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017918 .clen = 88,
Herbert Xu8f69b762015-06-16 13:54:26 +080017919 }, {
17920 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
17921 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
17922 "\xD9\x66\x42\x67",
17923 .klen = 20,
17924 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017925 .ptext = "\x01\x02\x02\x01",
17926 .plen = 4,
Herbert Xu85375442015-07-09 07:17:25 +080017927 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
17928 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
17929 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017930 .ctext = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F"
Herbert Xu8f69b762015-06-16 13:54:26 +080017931 "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45"
17932 "\x04\xBE\xF2\x70",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017933 .clen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017934 }, {
17935 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
17936 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
17937 "\xDE\xCA\xF8\x88",
17938 .klen = 20,
17939 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017940 .ptext = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
Herbert Xu8f69b762015-06-16 13:54:26 +080017941 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
17942 "\x62\x65\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017943 .plen = 20,
Herbert Xu8f69b762015-06-16 13:54:26 +080017944 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
Herbert Xu85375442015-07-09 07:17:25 +080017945 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
17946 "\xCE\xFA\xCE\x74",
17947 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017948 .ctext = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38"
Herbert Xu8f69b762015-06-16 13:54:26 +080017949 "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05"
17950 "\x43\x33\x21\x64\x41\x25\x03\x52"
17951 "\x43\x03\xED\x3C\x6C\x5F\x28\x38"
17952 "\x43\xAF\x8C\x3E",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017953 .clen = 36,
Herbert Xu8f69b762015-06-16 13:54:26 +080017954 }, {
17955 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
17956 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
17957 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
17958 "\x62\x65\x66\x6F\x72\x65\x69\x61"
17959 "\x74\x75\x72\x6E",
17960 .klen = 36,
17961 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017962 .ptext = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017963 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
17964 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
17965 "\x02\x00\x07\x00\x61\x62\x63\x64"
17966 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17967 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17968 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017969 .plen = 52,
Herbert Xu8f69b762015-06-16 13:54:26 +080017970 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
Herbert Xu85375442015-07-09 07:17:25 +080017971 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
17972 "\x67\x65\x74\x6D",
17973 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017974 .ctext = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC"
Herbert Xu8f69b762015-06-16 13:54:26 +080017975 "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D"
17976 "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6"
17977 "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86"
17978 "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3"
17979 "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82"
17980 "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2"
17981 "\x94\x5F\x66\x93\x68\x66\x1A\x32"
17982 "\x9F\xB4\xC0\x53",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017983 .clen = 68,
Herbert Xu8f69b762015-06-16 13:54:26 +080017984 }, {
17985 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
17986 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
17987 "\x57\x69\x0E\x43",
17988 .klen = 20,
17989 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017990 .ptext = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080017991 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
17992 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
17993 "\x02\x00\x07\x00\x61\x62\x63\x64"
17994 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
17995 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
17996 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080017997 .plen = 52,
Herbert Xu8f69b762015-06-16 13:54:26 +080017998 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
Herbert Xu85375442015-07-09 07:17:25 +080017999 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18000 "\xA2\xFC\xA1\xA3",
18001 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018002 .ctext = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0"
Herbert Xu8f69b762015-06-16 13:54:26 +080018003 "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD"
18004 "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21"
18005 "\x0D\x11\x7C\xEC\x9C\x35\x79\x17"
18006 "\x65\xAC\xBD\x87\x01\xAD\x79\x84"
18007 "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9"
18008 "\x63\x21\x93\x06\x84\xEE\xCA\xDB"
18009 "\x56\x91\x25\x46\xE7\xA9\x5C\x97"
18010 "\x40\xD7\xCB\x05",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018011 .clen = 68,
Herbert Xu8f69b762015-06-16 13:54:26 +080018012 }, {
18013 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18014 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18015 "\x22\x43\x3C\x64",
18016 .klen = 20,
18017 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018018 .ptext = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
Herbert Xu8f69b762015-06-16 13:54:26 +080018019 "\x61\x62\x63\x64\x65\x66\x67\x68"
18020 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
18021 "\x71\x72\x73\x74\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018022 .plen = 32,
Herbert Xu8f69b762015-06-16 13:54:26 +080018023 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
Herbert Xu85375442015-07-09 07:17:25 +080018024 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
18025 "\x3A\x23\x4B\xFD",
18026 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018027 .ctext = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C"
Herbert Xu8f69b762015-06-16 13:54:26 +080018028 "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF"
18029 "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6"
18030 "\xAC\xDA\x68\x94\xBC\x61\x90\x69"
18031 "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7"
18032 "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018033 .clen = 48,
Adrian Hoban69435b92010-11-04 15:02:04 -040018034 }
18035};
18036
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018037static const struct aead_testvec aes_gcm_rfc4543_tv_template[] = {
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030018038 { /* From draft-mcgrew-gcm-test-01 */
18039 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
18040 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
18041 "\x22\x43\x3c\x64",
18042 .klen = 20,
18043 .iv = zeroed_string,
Herbert Xu0af8fbc2015-06-16 13:54:19 +080018044 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
18045 "\x00\x00\x00\x00\x00\x00\x00\x00",
18046 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018047 .ptext = "\x45\x00\x00\x30\xda\x3a\x00\x00"
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030018048 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18049 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18050 "\x02\x00\x07\x00\x61\x62\x63\x64"
18051 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18052 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18053 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018054 .plen = 52,
18055 .ctext = "\x45\x00\x00\x30\xda\x3a\x00\x00"
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030018056 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18057 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18058 "\x02\x00\x07\x00\x61\x62\x63\x64"
18059 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18060 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18061 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
18062 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
18063 "\xe4\x09\x9a\xaa",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018064 .clen = 68,
Eric Biggersd7250b42019-01-13 15:32:27 -080018065 }, { /* nearly same as previous, but should fail */
18066 .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda"
18067 "\x90\x6a\xc7\x3c\x36\x13\xa6\x34"
18068 "\x22\x43\x3c\x64",
18069 .klen = 20,
18070 .iv = zeroed_string,
18071 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07"
18072 "\x00\x00\x00\x00\x00\x00\x00\x00",
18073 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018074 .ptext = "\x45\x00\x00\x30\xda\x3a\x00\x00"
Eric Biggersd7250b42019-01-13 15:32:27 -080018075 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18076 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18077 "\x02\x00\x07\x00\x61\x62\x63\x64"
18078 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18079 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18080 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018081 .plen = 52,
Eric Biggersd7250b42019-01-13 15:32:27 -080018082 .novrfy = 1,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018083 .ctext = "\x45\x00\x00\x30\xda\x3a\x00\x00"
Eric Biggersd7250b42019-01-13 15:32:27 -080018084 "\x80\x01\xdf\x3b\xc0\xa8\x00\x05"
18085 "\xc0\xa8\x00\x01\x08\x00\xc6\xcd"
18086 "\x02\x00\x07\x00\x61\x62\x63\x64"
18087 "\x65\x66\x67\x68\x69\x6a\x6b\x6c"
18088 "\x6d\x6e\x6f\x70\x71\x72\x73\x74"
18089 "\x01\x02\x02\x01\xf2\xa9\xa8\x36"
18090 "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18"
18091 "\x00\x00\x00\x00",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018092 .clen = 68,
Eric Biggersd7250b42019-01-13 15:32:27 -080018093 },
Jussi Kivilinnae9b74412013-04-07 16:43:51 +030018094};
18095
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018096static const struct aead_testvec aes_ccm_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080018097 { /* From RFC 3610 */
18098 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18099 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18100 .klen = 16,
18101 .iv = "\x01\x00\x00\x00\x03\x02\x01\x00"
18102 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18103 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
18104 .alen = 8,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018105 .ptext = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
Herbert Xuda7f0332008-07-31 17:08:25 +080018106 "\x10\x11\x12\x13\x14\x15\x16\x17"
18107 "\x18\x19\x1a\x1b\x1c\x1d\x1e",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018108 .plen = 23,
18109 .ctext = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2"
Herbert Xuda7f0332008-07-31 17:08:25 +080018110 "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80"
18111 "\x6d\x5f\x6b\x61\xda\xc3\x84\x17"
18112 "\xe8\xd1\x2c\xfd\xf9\x26\xe0",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018113 .clen = 31,
Herbert Xuda7f0332008-07-31 17:08:25 +080018114 }, {
18115 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18116 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18117 .klen = 16,
18118 .iv = "\x01\x00\x00\x00\x07\x06\x05\x04"
18119 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18120 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
18121 "\x08\x09\x0a\x0b",
18122 .alen = 12,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018123 .ptext = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
Herbert Xuda7f0332008-07-31 17:08:25 +080018124 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18125 "\x1c\x1d\x1e\x1f",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018126 .plen = 20,
18127 .ctext = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb"
Herbert Xuda7f0332008-07-31 17:08:25 +080018128 "\x9d\x4e\x13\x12\x53\x65\x8a\xd8"
18129 "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07"
18130 "\x7d\x9c\x2d\x93",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018131 .clen = 28,
Herbert Xuda7f0332008-07-31 17:08:25 +080018132 }, {
18133 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18134 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18135 .klen = 16,
18136 .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08"
18137 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18138 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07",
18139 .alen = 8,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018140 .ptext = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
Herbert Xuda7f0332008-07-31 17:08:25 +080018141 "\x10\x11\x12\x13\x14\x15\x16\x17"
18142 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
18143 "\x20",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018144 .plen = 25,
18145 .ctext = "\x82\x53\x1a\x60\xcc\x24\x94\x5a"
Herbert Xuda7f0332008-07-31 17:08:25 +080018146 "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d"
18147 "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1"
18148 "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1"
18149 "\x7e\x5f\x4e",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018150 .clen = 35,
Herbert Xuda7f0332008-07-31 17:08:25 +080018151 }, {
18152 .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
18153 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf",
18154 .klen = 16,
18155 .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09"
18156 "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00",
18157 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
18158 "\x08\x09\x0a\x0b",
18159 .alen = 12,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018160 .ptext = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13"
Herbert Xuda7f0332008-07-31 17:08:25 +080018161 "\x14\x15\x16\x17\x18\x19\x1a\x1b"
18162 "\x1c\x1d\x1e",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018163 .plen = 19,
18164 .ctext = "\x07\x34\x25\x94\x15\x77\x85\x15"
Herbert Xuda7f0332008-07-31 17:08:25 +080018165 "\x2b\x07\x40\x98\x33\x0a\xbb\x14"
18166 "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b"
18167 "\x4d\x99\x99\x88\xdd",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018168 .clen = 29,
Herbert Xuda7f0332008-07-31 17:08:25 +080018169 }, {
18170 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18171 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18172 .klen = 16,
18173 .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63"
18174 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18175 .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb",
18176 .alen = 8,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018177 .ptext = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a"
Herbert Xuda7f0332008-07-31 17:08:25 +080018178 "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf"
18179 "\xb7\x9c\x70\x28\x94\x9c\xd0\xec",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018180 .plen = 24,
18181 .ctext = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa"
Herbert Xuda7f0332008-07-31 17:08:25 +080018182 "\xa0\x72\x6c\x55\xd3\x78\x06\x12"
18183 "\x98\xc8\x5c\x92\x81\x4a\xbc\x33"
18184 "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018185 .clen = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080018186 }, {
18187 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18188 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18189 .klen = 16,
18190 .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70"
18191 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18192 .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81"
18193 "\x20\xea\x60\xc0",
18194 .alen = 12,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018195 .ptext = "\x64\x35\xac\xba\xfb\x11\xa8\x2e"
Herbert Xuda7f0332008-07-31 17:08:25 +080018196 "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9"
18197 "\x3a\x80\x3b\xa8\x7f",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018198 .plen = 21,
18199 .ctext = "\x00\x97\x69\xec\xab\xdf\x48\x62"
Herbert Xuda7f0332008-07-31 17:08:25 +080018200 "\x55\x94\xc5\x92\x51\xe6\x03\x57"
18201 "\x22\x67\x5e\x04\xc8\x47\x09\x9e"
18202 "\x5a\xe0\x70\x45\x51",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018203 .clen = 29,
Herbert Xuda7f0332008-07-31 17:08:25 +080018204 }, {
18205 .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3"
18206 "\x25\xa7\x62\x36\xdf\x93\xcc\x6b",
18207 .klen = 16,
18208 .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c"
18209 "\x3c\x96\x96\x76\x6c\xfa\x00\x00",
18210 .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8",
18211 .alen = 8,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018212 .ptext = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01"
Herbert Xuda7f0332008-07-31 17:08:25 +080018213 "\x8e\x5e\x67\x01\xc9\x17\x87\x65"
18214 "\x98\x09\xd6\x7d\xbe\xdd\x18",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018215 .plen = 23,
18216 .ctext = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6"
Herbert Xuda7f0332008-07-31 17:08:25 +080018217 "\xdb\x38\x6a\x99\xac\x1a\xef\x23"
18218 "\xad\xe0\xb5\x29\x39\xcb\x6a\x63"
18219 "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6"
18220 "\xba",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018221 .clen = 33,
Ard Biesheuvel45859882014-04-16 20:40:04 +080018222 }, {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018223 /* This is taken from FIPS CAVS. */
Ard Biesheuvel45859882014-04-16 20:40:04 +080018224 .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05"
18225 "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e",
18226 .klen = 16,
18227 .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0",
18228 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018229 .ptext = "\x19\xc8\x81\xf6\xe9\x86\xff\x93"
Ard Biesheuvel45859882014-04-16 20:40:04 +080018230 "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e"
18231 "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c"
18232 "\x35\x2e\xad\xe0\x62\xf9\x91\xa1",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018233 .plen = 32,
18234 .ctext = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8"
Ard Biesheuvel45859882014-04-16 20:40:04 +080018235 "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1"
18236 "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a"
18237 "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32"
18238 "\xda\x24\xea\xd9\xa1\x39\x98\xfd"
18239 "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018240 .clen = 48,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018241 }, {
18242 .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0"
18243 "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3",
18244 .klen = 16,
18245 .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8"
18246 "\x30\x60\x15\x56\x00\x00\x00\x00",
18247 .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63"
18248 "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7"
18249 "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1"
18250 "\x0a\x63\x09\x78\xbc\x2c\x55\xde",
18251 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018252 .ptext = "\x87\xa3\x36\xfd\x96\xb3\x93\x78"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018253 "\xa9\x28\x63\xba\x12\xa3\x14\x85"
18254 "\x57\x1e\x06\xc9\x7b\x21\xef\x76"
18255 "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018256 .plen = 32,
18257 .ctext = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018258 "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab"
18259 "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff"
18260 "\x3b\xb5\xce\x53\xef\xde\xbb\x02"
18261 "\xa9\x86\x15\x6c\x13\xfe\xda\x0a"
18262 "\x22\xb8\x29\x3d\xd8\x39\x9a\x23",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018263 .clen = 48,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018264 }, {
18265 .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1"
18266 "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75"
18267 "\x53\x14\x73\x66\x8d\x88\xf6\x80",
18268 .klen = 24,
18269 .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d"
18270 "\x50\x20\xda\xe2\x00\x00\x00\x00",
18271 .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1"
18272 "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47"
18273 "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d"
18274 "\xd8\x9e\x2b\x56\x10\x23\x56\xe7",
18275 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018276 .ctext = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018277 "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018278 .clen = 16,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018279 }, {
18280 .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42"
18281 "\xef\x7a\xd3\xce\xfc\x84\x60\x62"
18282 "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01",
18283 .klen = 24,
18284 .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd"
18285 "\xef\x09\x2e\x94\x00\x00\x00\x00",
18286 .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91"
18287 "\xb1\xb9\xda\x76\x9a\x78\x6d\x95"
18288 "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c"
18289 "\xe3\x00\x73\x69\x84\x69\x87\x79",
18290 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018291 .ptext = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018292 "\x43\x69\x3a\x2d\x8e\x70\xad\x7e"
18293 "\xe0\xe5\x46\x09\x80\x89\x13\xb2"
18294 "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018295 .plen = 32,
18296 .ctext = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018297 "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f"
18298 "\x9b\x6a\x09\x70\xc1\x51\x83\xc2"
18299 "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e"
18300 "\xc7\x79\x11\x58\xe5\x6b\x20\x40"
18301 "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018302 .clen = 48,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018303 }, {
18304 .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a"
18305 "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a"
18306 "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e"
18307 "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b",
18308 .klen = 32,
18309 .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53"
18310 "\x0a\xcf\x2d\xbe\x00\x00\x00\x00",
18311 .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b"
18312 "\x78\x2b\x94\x02\x29\x0f\x42\x27"
18313 "\x6b\x75\xcb\x98\x34\x08\x7e\x79"
18314 "\xe4\x3e\x49\x0d\x84\x8b\x22\x87",
18315 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018316 .ptext = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018317 "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66"
18318 "\xbf\x17\x99\x62\x4a\x39\x27\x1f"
18319 "\x1d\xdc\x24\xae\x19\x2f\x98\x4c",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018320 .plen = 32,
18321 .ctext = "\x19\xb8\x61\x33\x45\x2b\x43\x96"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018322 "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6"
18323 "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f"
18324 "\xf0\x62\x17\x34\xf2\x1e\x8d\x75"
18325 "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018326 .clen = 40,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018327 }, {
18328 .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c"
18329 "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32"
18330 "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c"
18331 "\x09\x75\x9a\x9b\x3c\x9b\x27\x39",
18332 .klen = 32,
18333 .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d"
Laura Abbott1c68bb02017-02-28 14:07:25 -080018334 "\x43\xf6\x1e\x50\0\0\0\0",
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018335 .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b"
18336 "\x13\x02\x01\x0c\x83\x4c\x96\x35"
18337 "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94"
18338 "\xb0\x39\x36\xe6\x8f\x57\xe0\x13",
18339 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018340 .ptext = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018341 "\x83\x72\x07\x4f\xcf\xfa\x66\x89"
18342 "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27"
18343 "\x30\xdb\x75\x09\x93\xd4\x65\xe4",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018344 .plen = 32,
18345 .ctext = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018346 "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d"
18347 "\xcc\x63\x44\x25\x07\x78\x4f\x9e"
18348 "\x96\xb8\x88\xeb\xbc\x48\x1f\x06"
18349 "\x39\xaf\x39\xac\xd8\x4a\x80\x39"
18350 "\x7b\x72\x8a\xf7",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018351 .clen = 44,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018352 }, {
18353 .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83"
18354 "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46"
18355 "\xf9\x8f\xad\xe3\x02\x13\x83\x77"
18356 "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b",
18357 .klen = 32,
18358 .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e"
18359 "\xe6\x33\xbf\xf5\x00\x00\x00\x00",
18360 .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f"
18361 "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d"
18362 "\xab\x90\x65\x8d\x8e\xca\x4d\x4f"
18363 "\x16\x0c\x40\x90\x4b\xc7\x36\x73",
18364 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018365 .ptext = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018366 "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d"
18367 "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2"
18368 "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018369 .plen = 32,
18370 .ctext = "\x83\x6f\x40\x87\x72\xcf\xc1\x13"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018371 "\xef\xbb\x80\x21\x04\x6c\x58\x09"
18372 "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7"
18373 "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf"
18374 "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d"
18375 "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018376 .clen = 48,
Eric Biggersde845da2019-01-13 15:32:25 -080018377 }, {
18378 /* This is taken from FIPS CAVS. */
18379 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
18380 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
18381 .klen = 16,
18382 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
18383 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
18384 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018385 .ptext = "\x00",
18386 .plen = 0,
18387 .ctext = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b",
18388 .clen = 8,
Eric Biggersde845da2019-01-13 15:32:25 -080018389 .novrfy = 1,
18390 }, {
18391 .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1"
18392 "\xff\x80\x2e\x48\x7d\x82\xf8\xb9",
18393 .klen = 16,
18394 .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81"
18395 "\x7f\x88\x94\x68\x00\x00\x00\x00",
18396 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018397 .ptext = "\x00",
18398 .plen = 0,
18399 .ctext = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3",
18400 .clen = 8,
Eric Biggersde845da2019-01-13 15:32:25 -080018401 }, {
18402 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
18403 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
18404 .klen = 16,
18405 .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab"
18406 "\xd8\xa6\xb2\xd8\x00\x00\x00\x00",
18407 .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f"
18408 "\x88\x94\x68\xb1\x78\x6b\x2b\xd6"
18409 "\x04\x1f\x4e\xed\x78\xd5\x33\x66"
18410 "\xd8\x94\x99\x91\x81\x54\x62\x57",
18411 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018412 .ptext = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb"
Eric Biggersde845da2019-01-13 15:32:25 -080018413 "\x33\xe4\x73\xce\xd2\xfb\x95\x79"
18414 "\xe8\xb4\xb5\x77\x11\x10\x62\x6f"
18415 "\x6a\x82\xd1\x13\xec\xf5\xd0\x48",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018416 .plen = 32,
18417 .ctext = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55"
Eric Biggersde845da2019-01-13 15:32:25 -080018418 "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a"
18419 "\x86\xb0\x87\x6b\x62\x33\x8c\x34"
18420 "\xce\xab\x57\xcc\x79\x0b\xe0\x6f"
18421 "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51"
18422 "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018423 .clen = 48,
Eric Biggersde845da2019-01-13 15:32:25 -080018424 .novrfy = 1,
18425 }, {
18426 .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38"
18427 "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8",
18428 .klen = 16,
18429 .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea"
18430 "\x97\xd4\x3b\xdf\x00\x00\x00\x00",
18431 .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81"
18432 "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1"
18433 "\xd8\x5c\x42\x68\xe0\x6c\xda\x89"
18434 "\x05\xac\x56\xac\x1b\x2a\xd3\x86",
18435 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018436 .ptext = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60"
Eric Biggersde845da2019-01-13 15:32:25 -080018437 "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7"
18438 "\xf2\xae\x61\x05\x8f\x82\x24\x3f"
18439 "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018440 .plen = 32,
18441 .ctext = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c"
Eric Biggersde845da2019-01-13 15:32:25 -080018442 "\xad\x83\x52\x6d\x71\x03\x25\x1c"
18443 "\xed\x81\x3a\x9a\x16\x7d\x19\x80"
18444 "\x72\x04\x72\xd0\xf6\xff\x05\x0f"
18445 "\xb7\x14\x30\x00\x32\x9e\xa0\xa6"
18446 "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018447 .clen = 48,
Eric Biggersde845da2019-01-13 15:32:25 -080018448 }, {
18449 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
18450 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
18451 "\xa4\x48\x93\x39\x26\x71\x4a\xc6",
18452 .klen = 24,
18453 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18454 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18455 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
18456 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
18457 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
18458 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
18459 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018460 .ptext = "\x00",
18461 .plen = 0,
18462 .ctext = "\x71\x99\xfa\xf4\x44\x12\x68\x9b",
18463 .clen = 8,
Eric Biggersde845da2019-01-13 15:32:25 -080018464 }, {
18465 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18466 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18467 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
18468 .klen = 24,
18469 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18470 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18471 .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1"
18472 "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64"
18473 "\xa4\xf0\x13\x05\xd1\x77\x99\x67"
18474 "\x11\xc4\xc6\xdb\x00\x56\x36\x61",
18475 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018476 .ptext = "\x85\x34\x66\x42\xc8\x92\x0f\x36"
Eric Biggersde845da2019-01-13 15:32:25 -080018477 "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb"
18478 "\x0a\x85\xcc\x02\xad\x7a\x96\xe9"
18479 "\x65\x43\xa4\xc3\x0f\xdc\x55\x81",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018480 .plen = 32,
18481 .ctext = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7"
Eric Biggersde845da2019-01-13 15:32:25 -080018482 "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2"
18483 "\x66\xca\x61\x1e\x96\x7a\x61\xb3"
18484 "\x1c\x16\x45\x52\xba\x04\x9c\x9f"
18485 "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018486 .clen = 40,
Eric Biggersde845da2019-01-13 15:32:25 -080018487 }, {
18488 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18489 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18490 "\x29\xa0\xba\x9e\x48\x78\xd1\xba",
18491 .klen = 24,
18492 .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c"
18493 "\xad\x71\xaa\x1f\x00\x00\x00\x00",
18494 .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6"
18495 "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3"
18496 "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7"
18497 "\x3c\xa1\x52\x13\x03\x8a\x23\x3a",
18498 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018499 .ptext = "\x02\x87\x4d\x28\x80\x6e\xb2\xed"
Eric Biggersde845da2019-01-13 15:32:25 -080018500 "\x99\x2a\xa8\xca\x04\x25\x45\x90"
18501 "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c"
18502 "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018503 .plen = 32,
18504 .ctext = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00"
Eric Biggersde845da2019-01-13 15:32:25 -080018505 "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37"
18506 "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa"
18507 "\x64\x19\xc0\x30\xd7\xfc\x14\x6b"
18508 "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f"
18509 "\xa9\xb4\x2d\x68\x03\xa3\x44\xef",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018510 .clen = 48,
Eric Biggersde845da2019-01-13 15:32:25 -080018511 .novrfy = 1,
18512 }, {
18513 .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01"
18514 "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c"
18515 "\x20\x2c\xad\x30\xc2\x2b\x41\xfb"
18516 "\x0e\x85\xbc\x33\xad\x0f\x2b\xff",
18517 .klen = 32,
18518 .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9"
18519 "\x57\xba\xfd\x9e\x00\x00\x00\x00",
18520 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018521 .ptext = "\x00",
18522 .plen = 0,
18523 .ctext = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2",
18524 .clen = 8,
Eric Biggersde845da2019-01-13 15:32:25 -080018525 }, {
18526 .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73"
18527 "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3"
18528 "\xa4\x48\x93\x39\x26\x71\x4a\xc6"
18529 "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb",
18530 .klen = 32,
18531 .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f"
18532 "\x36\x58\xe0\x6b\x00\x00\x00\x00",
18533 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018534 .ptext = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c"
Eric Biggersde845da2019-01-13 15:32:25 -080018535 "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99"
18536 "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39"
18537 "\x89\xd4\x75\x7a\x63\xb1\xda\x93",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018538 .plen = 32,
18539 .ctext = "\x48\x01\x5e\x02\x24\x04\x66\x47"
Eric Biggersde845da2019-01-13 15:32:25 -080018540 "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd"
18541 "\xa5\xa9\x87\x8d\x84\xee\x2e\x77"
18542 "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6"
18543 "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07"
18544 "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018545 .clen = 48,
Eric Biggersde845da2019-01-13 15:32:25 -080018546 .novrfy = 1,
18547 }, {
18548 .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7"
18549 "\x96\xe5\xc5\x68\xaa\x95\x35\xe0"
18550 "\x29\xa0\xba\x9e\x48\x78\xd1\xba"
18551 "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b",
18552 .klen = 32,
18553 .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f"
18554 "\x44\x89\x40\x7b\x00\x00\x00\x00",
18555 .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88"
18556 "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b"
18557 "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b"
18558 "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe",
18559 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018560 .ptext = "\xc2\x54\xc8\xde\x78\x87\x77\x40"
Eric Biggersde845da2019-01-13 15:32:25 -080018561 "\x49\x71\xe4\xb7\xe7\xcb\x76\x61"
18562 "\x0a\x41\xb9\xe9\xc0\x76\x54\xab"
18563 "\x04\x49\x3b\x19\x93\x57\x25\x5d",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018564 .plen = 32,
18565 .ctext = "\x48\x58\xd6\xf3\xad\x63\x58\xbf"
Eric Biggersde845da2019-01-13 15:32:25 -080018566 "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4"
18567 "\x78\x5c\x4c\x67\x71\x89\x94\xbf"
18568 "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5"
18569 "\x7f\x44\x0a\x0c\x01\x18\x07\x92"
18570 "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018571 .clen = 48,
Jarod Wilson5d667322009-05-04 19:23:40 +080018572 },
18573};
18574
Jarod Wilsone08ca2d2009-05-04 19:46:29 +080018575/*
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018576 * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all
18577 * use a 13-byte nonce, we only support an 11-byte nonce. Worse,
18578 * they use AD lengths which are not valid ESP header lengths.
18579 *
18580 * These vectors are copied/generated from the ones for rfc4106 with
18581 * the key truncated by one byte..
18582 */
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018583static const struct aead_testvec aes_ccm_rfc4309_tv_template[] = {
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018584 { /* Generated using Crypto++ */
18585 .key = zeroed_string,
18586 .klen = 19,
18587 .iv = zeroed_string,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018588 .ptext = zeroed_string,
18589 .plen = 16,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018590 .assoc = zeroed_string,
18591 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018592 .ctext = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018593 "\x12\x50\xE8\xDE\x81\x3C\x63\x08"
18594 "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5"
18595 "\x27\x50\x01\xAC\x03\x33\x39\xFB",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018596 .clen = 32,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018597 },{
18598 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18599 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18600 "\x00\x00\x00",
18601 .klen = 19,
18602 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018603 .ptext = zeroed_string,
18604 .plen = 16,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018605 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00"
18606 "\x00\x00\x00\x00\x00\x00\x00\x01",
18607 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018608 .ctext = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018609 "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17"
18610 "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA"
18611 "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018612 .clen = 32,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018613
18614 }, {
18615 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18616 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18617 "\x00\x00\x00",
18618 .klen = 19,
18619 .iv = zeroed_string,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018620 .ptext = "\x01\x01\x01\x01\x01\x01\x01\x01"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018621 "\x01\x01\x01\x01\x01\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018622 .plen = 16,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018623 .assoc = zeroed_string,
18624 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018625 .ctext = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018626 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18627 "\xA1\xE2\xC2\x42\x2B\x81\x70\x40"
18628 "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018629 .clen = 32,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018630 }, {
18631 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18632 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18633 "\x00\x00\x00",
18634 .klen = 19,
18635 .iv = zeroed_string,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018636 .ptext = "\x01\x01\x01\x01\x01\x01\x01\x01"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018637 "\x01\x01\x01\x01\x01\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018638 .plen = 16,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018639 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
18640 "\x00\x00\x00\x00\x00\x00\x00\x00",
18641 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018642 .ctext = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018643 "\x61\xF4\xF5\x41\x03\x4A\xE3\x86"
18644 "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9"
18645 "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018646 .clen = 32,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018647 }, {
18648 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18649 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18650 "\x00\x00\x00",
18651 .klen = 19,
18652 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018653 .ptext = "\x01\x01\x01\x01\x01\x01\x01\x01"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018654 "\x01\x01\x01\x01\x01\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018655 .plen = 16,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018656 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
18657 "\x00\x00\x00\x00\x00\x00\x00\x01",
18658 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018659 .ctext = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018660 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18661 "\x43\x8E\x76\x57\x3B\xB4\x05\xE8"
18662 "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018663 .clen = 32,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018664 }, {
18665 .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c"
18666 "\x6d\x6a\x8f\x94\x67\x30\x83\x08"
18667 "\x00\x00\x00",
18668 .klen = 19,
18669 .iv = "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018670 .ptext = "\x01\x01\x01\x01\x01\x01\x01\x01"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018671 "\x01\x01\x01\x01\x01\x01\x01\x01"
18672 "\x01\x01\x01\x01\x01\x01\x01\x01"
18673 "\x01\x01\x01\x01\x01\x01\x01\x01"
18674 "\x01\x01\x01\x01\x01\x01\x01\x01"
18675 "\x01\x01\x01\x01\x01\x01\x01\x01"
18676 "\x01\x01\x01\x01\x01\x01\x01\x01"
18677 "\x01\x01\x01\x01\x01\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018678 .plen = 64,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018679 .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01"
18680 "\x00\x00\x00\x00\x00\x00\x00\x01",
18681 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018682 .ctext = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018683 "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16"
18684 "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4"
18685 "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02"
18686 "\x9B\xAB\x39\x18\xEB\x94\x34\x36"
18687 "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49"
18688 "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E"
18689 "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB"
18690 "\x02\x73\xDD\xE7\x30\x4A\x30\x54"
18691 "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018692 .clen = 80,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018693 }, {
18694 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
18695 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
18696 "\x00\x00\x00",
18697 .klen = 19,
18698 .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018699 .ptext = "\xff\xff\xff\xff\xff\xff\xff\xff"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018700 "\xff\xff\xff\xff\xff\xff\xff\xff"
18701 "\xff\xff\xff\xff\xff\xff\xff\xff"
18702 "\xff\xff\xff\xff\xff\xff\xff\xff"
18703 "\xff\xff\xff\xff\xff\xff\xff\xff"
18704 "\xff\xff\xff\xff\xff\xff\xff\xff"
18705 "\xff\xff\xff\xff\xff\xff\xff\xff"
18706 "\xff\xff\xff\xff\xff\xff\xff\xff"
18707 "\xff\xff\xff\xff\xff\xff\xff\xff"
18708 "\xff\xff\xff\xff\xff\xff\xff\xff"
18709 "\xff\xff\xff\xff\xff\xff\xff\xff"
18710 "\xff\xff\xff\xff\xff\xff\xff\xff"
18711 "\xff\xff\xff\xff\xff\xff\xff\xff"
18712 "\xff\xff\xff\xff\xff\xff\xff\xff"
18713 "\xff\xff\xff\xff\xff\xff\xff\xff"
18714 "\xff\xff\xff\xff\xff\xff\xff\xff"
18715 "\xff\xff\xff\xff\xff\xff\xff\xff"
18716 "\xff\xff\xff\xff\xff\xff\xff\xff"
18717 "\xff\xff\xff\xff\xff\xff\xff\xff"
18718 "\xff\xff\xff\xff\xff\xff\xff\xff"
18719 "\xff\xff\xff\xff\xff\xff\xff\xff"
18720 "\xff\xff\xff\xff\xff\xff\xff\xff"
18721 "\xff\xff\xff\xff\xff\xff\xff\xff"
18722 "\xff\xff\xff\xff\xff\xff\xff\xff",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018723 .plen = 192,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018724 .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa"
18725 "\xaa\xaa\xaa\xaa\x00\x00\x45\x67"
18726 "\x89\xab\xcd\xef",
18727 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018728 .ctext = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018729 "\x7C\x64\x6D\x33\x46\x77\xAC\xB1"
18730 "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95"
18731 "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C"
18732 "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB"
18733 "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01"
18734 "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04"
18735 "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B"
18736 "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09"
18737 "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79"
18738 "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D"
18739 "\x22\xEB\xD1\x09\x80\x3F\x5A\x70"
18740 "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B"
18741 "\x36\x12\x00\x89\xAA\x5D\x55\xDA"
18742 "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6"
18743 "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F"
18744 "\x2B\x50\x44\x52\xC2\x10\x7D\x38"
18745 "\x82\x64\x83\x0C\xAE\x49\xD0\xE5"
18746 "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43"
18747 "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC"
18748 "\x19\x6D\x60\x66\x61\xF9\x9A\x3F"
18749 "\x75\xFC\x38\x53\x5B\xB5\xCD\x52"
18750 "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98"
18751 "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E"
18752 "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC"
18753 "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018754 .clen = 208,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018755 }, { /* From draft-mcgrew-gcm-test-01 */
18756 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
18757 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
18758 "\x2E\x44\x3B",
18759 .klen = 19,
18760 .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018761 .ptext = "\x45\x00\x00\x48\x69\x9A\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018762 "\x80\x11\x4D\xB7\xC0\xA8\x01\x02"
18763 "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56"
18764 "\x38\xD3\x01\x00\x00\x01\x00\x00"
18765 "\x00\x00\x00\x00\x04\x5F\x73\x69"
18766 "\x70\x04\x5F\x75\x64\x70\x03\x73"
18767 "\x69\x70\x09\x63\x79\x62\x65\x72"
18768 "\x63\x69\x74\x79\x02\x64\x6B\x00"
18769 "\x00\x21\x00\x01\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018770 .plen = 72,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018771 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
18772 "\x00\x00\x00\x00\x49\x56\xED\x7E"
18773 "\x3B\x24\x4C\xFE",
18774 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018775 .ctext = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018776 "\x83\x60\xF5\xBA\x3A\x56\x79\xE6"
18777 "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E"
18778 "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF"
18779 "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0"
18780 "\x39\xF8\x53\x6D\x31\x22\x2B\xBF"
18781 "\x98\x81\xFC\x34\xEE\x85\x36\xCD"
18782 "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35"
18783 "\x18\x85\x54\xB2\xBC\xDD\x3F\x43"
18784 "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC"
18785 "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018786 .clen = 88,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018787 }, {
18788 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18789 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18790 "\xCA\xFE\xBA",
18791 .klen = 19,
18792 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018793 .ptext = "\x45\x00\x00\x3E\x69\x8F\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018794 "\x80\x11\x4D\xCC\xC0\xA8\x01\x02"
18795 "\xC0\xA8\x01\x01\x0A\x98\x00\x35"
18796 "\x00\x2A\x23\x43\xB2\xD0\x01\x00"
18797 "\x00\x01\x00\x00\x00\x00\x00\x00"
18798 "\x03\x73\x69\x70\x09\x63\x79\x62"
18799 "\x65\x72\x63\x69\x74\x79\x02\x64"
18800 "\x6B\x00\x00\x01\x00\x01\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018801 .plen = 64,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018802 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18803 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18804 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018805 .ctext = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018806 "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16"
18807 "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF"
18808 "\xF5\x71\xB6\x37\x84\xA7\xB1\x99"
18809 "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D"
18810 "\xEF\x25\x88\x1F\x1D\x77\x11\xFF"
18811 "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B"
18812 "\x00\x62\x1F\x68\x4E\x7C\xA0\x97"
18813 "\x10\x72\x7E\x53\x13\x3B\x68\xE4"
18814 "\x30\x99\x91\x79\x09\xEA\xFF\x6A",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018815 .clen = 80,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018816 }, {
18817 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18818 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18819 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18820 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18821 "\x11\x22\x33",
18822 .klen = 35,
18823 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018824 .ptext = "\x45\x00\x00\x30\x69\xA6\x40\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018825 "\x80\x06\x26\x90\xC0\xA8\x01\x02"
18826 "\x93\x89\x15\x5E\x0A\x9E\x00\x8B"
18827 "\x2D\xC5\x7E\xE0\x00\x00\x00\x00"
18828 "\x70\x02\x40\x00\x20\xBF\x00\x00"
18829 "\x02\x04\x05\xB4\x01\x01\x04\x02"
18830 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018831 .plen = 52,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018832 .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02"
18833 "\x01\x02\x03\x04\x05\x06\x07\x08",
18834 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018835 .ctext = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018836 "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4"
18837 "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD"
18838 "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55"
18839 "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10"
18840 "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B"
18841 "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92"
18842 "\x23\xA6\x10\xB0\x26\xD6\xD9\x26"
18843 "\x5A\x48\x6A\x3E",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018844 .clen = 68,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018845 }, {
18846 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
18847 "\x00\x00\x00\x00\x00\x00\x00\x00"
18848 "\x00\x00\x00",
18849 .klen = 19,
18850 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018851 .ptext = "\x45\x00\x00\x3C\x99\xC5\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018852 "\x80\x01\xCB\x7A\x40\x67\x93\x18"
18853 "\x01\x01\x01\x01\x08\x00\x07\x5C"
18854 "\x02\x00\x44\x00\x61\x62\x63\x64"
18855 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18856 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18857 "\x75\x76\x77\x61\x62\x63\x64\x65"
18858 "\x66\x67\x68\x69\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018859 .plen = 64,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018860 .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01"
18861 "\x00\x00\x00\x00\x00\x00\x00\x00",
18862 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018863 .ctext = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018864 "\x92\x51\x23\xA4\xC1\x5B\xF0\x10"
18865 "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC"
18866 "\x89\xC8\xF8\x42\x62\x95\xB7\xCB"
18867 "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7"
18868 "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C"
18869 "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9"
18870 "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE"
18871 "\x36\x25\xC1\x10\x12\x1C\xCA\x82"
18872 "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018873 .clen = 80,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018874 }, {
18875 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18876 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18877 "\x57\x69\x0E",
18878 .klen = 19,
18879 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018880 .ptext = "\x45\x00\x00\x3C\x99\xC3\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018881 "\x80\x01\xCB\x7C\x40\x67\x93\x18"
18882 "\x01\x01\x01\x01\x08\x00\x08\x5C"
18883 "\x02\x00\x43\x00\x61\x62\x63\x64"
18884 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
18885 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
18886 "\x75\x76\x77\x61\x62\x63\x64\x65"
18887 "\x66\x67\x68\x69\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018888 .plen = 64,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018889 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18890 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18891 "\xA2\xFC\xA1\xA3",
18892 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018893 .ctext = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018894 "\x10\x60\x40\x62\x6B\x4F\x97\x8E"
18895 "\x0B\xB2\x22\x97\xCB\x21\xE0\x90"
18896 "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B"
18897 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
18898 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
18899 "\x30\xB8\xE5\xDF\xD7\x12\x56\x75"
18900 "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD"
18901 "\x97\x57\xCA\xC1\x20\xD0\x86\xB9"
18902 "\x66\x9D\xB4\x2B\x96\x22\xAC\x67",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018903 .clen = 80,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018904 }, {
18905 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
18906 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
18907 "\x57\x69\x0E",
18908 .klen = 19,
18909 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018910 .ptext = "\x45\x00\x00\x1C\x42\xA2\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018911 "\x80\x01\x44\x1F\x40\x67\x93\xB6"
18912 "\xE0\x00\x00\x02\x0A\x00\xF5\xFF"
18913 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018914 .plen = 28,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018915 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
18916 "\x10\x10\x10\x10\x4E\x28\x00\x00"
18917 "\xA2\xFC\xA1\xA3",
18918 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018919 .ctext = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018920 "\x10\x60\xCF\x01\x6B\x4F\x97\x20"
18921 "\xEA\xB3\x23\x94\xC9\x21\x1D\x33"
18922 "\xA1\xE5\x90\x40\x05\x37\x45\x70"
18923 "\xB5\xD6\x09\x0A\x23\x73\x33\xF9"
18924 "\x08\xB4\x22\xE4",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018925 .clen = 44,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018926 }, {
18927 .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18928 "\x6D\x6A\x8F\x94\x67\x30\x83\x08"
18929 "\xFE\xFF\xE9\x92\x86\x65\x73\x1C"
18930 "\xCA\xFE\xBA",
18931 .klen = 27,
18932 .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018933 .ptext = "\x45\x00\x00\x28\xA4\xAD\x40\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018934 "\x40\x06\x78\x80\x0A\x01\x03\x8F"
18935 "\x0A\x01\x06\x12\x80\x23\x06\xB8"
18936 "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E"
18937 "\x50\x10\x16\xD0\x75\x68\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018938 .plen = 40,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018939 .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A"
18940 "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88",
18941 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018942 .ctext = "\x05\x22\x15\xD1\x52\x56\x85\x04"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018943 "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA"
18944 "\xEA\x16\x37\x50\xF3\xDF\x84\x3B"
18945 "\x2F\x32\x18\x57\x34\x2A\x8C\x23"
18946 "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB"
18947 "\x34\xA5\x9F\x6C\x48\x30\x1E\x22"
18948 "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018949 .clen = 56,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018950 }, {
18951 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18952 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18953 "\xDE\xCA\xF8",
18954 .klen = 19,
18955 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018956 .ptext = "\x45\x00\x00\x49\x33\xBA\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018957 "\x7F\x11\x91\x06\xC3\xFB\x1D\x10"
18958 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
18959 "\x00\x35\xDD\x7B\x80\x03\x02\xD5"
18960 "\x00\x00\x4E\x20\x00\x1E\x8C\x18"
18961 "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47"
18962 "\x6B\x91\xB9\x24\xB2\x80\x38\x9D"
18963 "\x92\xC9\x63\xBA\xC0\x46\xEC\x95"
18964 "\x9B\x62\x66\xC0\x47\x22\xB1\x49"
18965 "\x23\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018966 .plen = 76,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018967 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
18968 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
18969 "\xCE\xFA\xCE\x74",
18970 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018971 .ctext = "\x92\xD0\x53\x79\x33\x38\xD5\xF3"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018972 "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90"
18973 "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76"
18974 "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00"
18975 "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA"
18976 "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7"
18977 "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6"
18978 "\x63\xC9\xDB\x05\x69\x51\x12\xAD"
18979 "\x3E\x00\x32\x73\x86\xF2\xEE\xF5"
18980 "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D"
18981 "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7"
18982 "\x12\x25\x0B\xF9",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018983 .clen = 92,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018984 }, {
18985 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18986 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18987 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
18988 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
18989 "\x73\x61\x6C",
18990 .klen = 35,
18991 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018992 .ptext = "\x45\x08\x00\x28\x73\x2C\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018993 "\x40\x06\xE9\xF9\x0A\x01\x06\x12"
18994 "\x0A\x01\x03\x8F\x06\xB8\x80\x23"
18995 "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02"
18996 "\x50\x10\x1F\x64\x6D\x54\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080018997 .plen = 40,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080018998 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
18999 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
19000 "\x69\x76\x65\x63",
19001 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019002 .ctext = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019003 "\x2C\x64\x87\x46\x1E\x34\x10\x05"
19004 "\x29\x6B\xBB\x36\xE9\x69\xAD\x92"
19005 "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D"
19006 "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA"
19007 "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7"
19008 "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019009 .clen = 56,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019010 }, {
19011 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19012 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19013 "\x57\x69\x0E",
19014 .klen = 19,
19015 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019016 .ptext = "\x45\x00\x00\x49\x33\x3E\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019017 "\x7F\x11\x91\x82\xC3\xFB\x1D\x10"
19018 "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE"
19019 "\x00\x35\xCB\x45\x80\x03\x02\x5B"
19020 "\x00\x00\x01\xE0\x00\x1E\x8C\x18"
19021 "\xD6\x57\x59\xD5\x22\x84\xA0\x35"
19022 "\x2C\x71\x47\x5C\x88\x80\x39\x1C"
19023 "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32"
19024 "\x5A\xE2\x70\xC0\x38\x99\x49\x39"
19025 "\x15\x01\x01\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019026 .plen = 76,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019027 .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10"
19028 "\x10\x10\x10\x10\x4E\x28\x00\x00"
19029 "\xA2\xFC\xA1\xA3",
19030 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019031 .ctext = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019032 "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86"
19033 "\xC8\x02\xF0\xB0\x03\x09\xD9\x02"
19034 "\xA0\xD2\x59\x04\xD1\x85\x2A\x24"
19035 "\x1C\x67\x3E\xD8\x68\x72\x06\x94"
19036 "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B"
19037 "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C"
19038 "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE"
19039 "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5"
19040 "\x23\xF4\x84\x40\x74\x14\x8A\x6B"
19041 "\xDB\xD7\x67\xED\xA4\x93\xF3\x47"
19042 "\xCC\xF7\x46\x6F",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019043 .clen = 92,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019044 }, {
19045 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19046 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19047 "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19048 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19049 "\x73\x61\x6C",
19050 .klen = 35,
19051 .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019052 .ptext = "\x63\x69\x73\x63\x6F\x01\x72\x75"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019053 "\x6C\x65\x73\x01\x74\x68\x65\x01"
19054 "\x6E\x65\x74\x77\x65\x01\x64\x65"
19055 "\x66\x69\x6E\x65\x01\x74\x68\x65"
19056 "\x74\x65\x63\x68\x6E\x6F\x6C\x6F"
19057 "\x67\x69\x65\x73\x01\x74\x68\x61"
19058 "\x74\x77\x69\x6C\x6C\x01\x64\x65"
19059 "\x66\x69\x6E\x65\x74\x6F\x6D\x6F"
19060 "\x72\x72\x6F\x77\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019061 .plen = 72,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019062 .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26"
19063 "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01"
19064 "\x69\x76\x65\x63",
19065 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019066 .ctext = "\xEA\x15\xC4\x98\xAC\x15\x22\x37"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019067 "\x00\x07\x1D\xBE\x60\x5D\x73\x16"
19068 "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4"
19069 "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A"
19070 "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4"
19071 "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5"
19072 "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6"
19073 "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C"
19074 "\x73\xF4\xE7\x12\x84\x4C\x37\x0A"
19075 "\x4A\x8F\x06\x37\x48\xF9\xF9\x05"
19076 "\x55\x13\x40\xC3\xD5\x55\x3A\x3D",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019077 .clen = 88,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019078 }, {
19079 .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25"
19080 "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47"
19081 "\xD9\x66\x42",
19082 .klen = 19,
19083 .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019084 .ptext = "\x01\x02\x02\x01",
19085 .plen = 4,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019086 .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF"
19087 "\x43\x45\x7E\x91\x82\x44\x3B\xC6",
19088 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019089 .ctext = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019090 "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90"
19091 "\xF7\x61\x24\x62",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019092 .clen = 20,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019093 }, {
19094 .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23"
19095 "\x34\x45\x56\x67\x78\x89\x9A\xAB"
19096 "\xDE\xCA\xF8",
19097 .klen = 19,
19098 .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019099 .ptext = "\x74\x6F\x01\x62\x65\x01\x6F\x72"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019100 "\x01\x6E\x6F\x74\x01\x74\x6F\x01"
19101 "\x62\x65\x00\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019102 .plen = 20,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019103 .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00"
19104 "\x00\x00\x00\x01\xCA\xFE\xDE\xBA"
19105 "\xCE\xFA\xCE\x74",
19106 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019107 .ctext = "\xA3\xBF\x52\x52\x65\x83\xBA\x81"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019108 "\x03\x9B\x84\xFC\x44\x8C\xBB\x81"
19109 "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0"
19110 "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC"
19111 "\x17\x17\x65\xAD",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019112 .clen = 36,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019113 }, {
19114 .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65"
19115 "\x6D\x61\x72\x69\x6A\x75\x61\x6E"
19116 "\x61\x61\x6E\x64\x64\x6F\x69\x74"
19117 "\x62\x65\x66\x6F\x72\x65\x69\x61"
19118 "\x74\x75\x72",
19119 .klen = 35,
19120 .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019121 .ptext = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019122 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
19123 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
19124 "\x02\x00\x07\x00\x61\x62\x63\x64"
19125 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19126 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19127 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019128 .plen = 52,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019129 .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF"
19130 "\xFF\xFF\xFF\xFF\x33\x30\x21\x69"
19131 "\x67\x65\x74\x6D",
19132 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019133 .ctext = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019134 "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A"
19135 "\x48\x59\x80\x18\x1A\x18\x1A\x04"
19136 "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75"
19137 "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF"
19138 "\x16\xC3\x35\xA8\xE7\xCE\x84\x04"
19139 "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42"
19140 "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B"
19141 "\x39\xDB\xC8\xDC",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019142 .clen = 68,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019143 }, {
19144 .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49"
19145 "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F"
19146 "\x57\x69\x0E",
19147 .klen = 19,
19148 .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019149 .ptext = "\x45\x00\x00\x30\xDA\x3A\x00\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019150 "\x80\x01\xDF\x3B\xC0\xA8\x00\x05"
19151 "\xC0\xA8\x00\x01\x08\x00\xC6\xCD"
19152 "\x02\x00\x07\x00\x61\x62\x63\x64"
19153 "\x65\x66\x67\x68\x69\x6A\x6B\x6C"
19154 "\x6D\x6E\x6F\x70\x71\x72\x73\x74"
19155 "\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019156 .plen = 52,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019157 .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10"
19158 "\x10\x10\x10\x10\x4E\x28\x00\x00"
19159 "\xA2\xFC\xA1\xA3",
19160 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019161 .ctext = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019162 "\x10\x60\x54\x25\xEB\x80\x04\x93"
19163 "\xCA\x1B\x23\x97\xCB\x21\x2E\x01"
19164 "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B"
19165 "\x79\x01\x58\x50\x01\x06\xE1\xE0"
19166 "\x2C\x83\x79\xD3\xDE\x46\x97\x1A"
19167 "\x44\xCC\x90\xBF\x00\x94\x94\x92"
19168 "\x20\x17\x0C\x1B\x55\xDE\x7E\x68"
19169 "\xF4\x95\x5D\x4F",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019170 .clen = 68,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019171 }, {
19172 .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA"
19173 "\x90\x6A\xC7\x3C\x36\x13\xA6\x34"
19174 "\x22\x43\x3C",
19175 .klen = 19,
19176 .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019177 .ptext = "\x08\x00\xC6\xCD\x02\x00\x07\x00"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019178 "\x61\x62\x63\x64\x65\x66\x67\x68"
19179 "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70"
19180 "\x71\x72\x73\x74\x01\x02\x02\x01",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019181 .plen = 32,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019182 .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21"
19183 "\x00\x00\x00\x07\x48\x55\xEC\x7D"
19184 "\x3A\x23\x4B\xFD",
19185 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019186 .ctext = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02"
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019187 "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F"
19188 "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF"
19189 "\x58\x7D\xCF\x29\xA3\x41\x68\x6B"
19190 "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F"
19191 "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019192 .clen = 48,
Herbert Xu0bc5a6c2015-07-14 16:53:17 +080019193 }
19194};
19195
19196/*
Martin Williaf2b76b2015-06-01 13:44:01 +020019197 * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5.
19198 */
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019199static const struct aead_testvec rfc7539_tv_template[] = {
Martin Williaf2b76b2015-06-01 13:44:01 +020019200 {
19201 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
19202 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
19203 "\x90\x91\x92\x93\x94\x95\x96\x97"
19204 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
19205 .klen = 32,
19206 .iv = "\x07\x00\x00\x00\x40\x41\x42\x43"
19207 "\x44\x45\x46\x47",
19208 .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3"
19209 "\xc4\xc5\xc6\xc7",
19210 .alen = 12,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019211 .ptext = "\x4c\x61\x64\x69\x65\x73\x20\x61"
Martin Williaf2b76b2015-06-01 13:44:01 +020019212 "\x6e\x64\x20\x47\x65\x6e\x74\x6c"
19213 "\x65\x6d\x65\x6e\x20\x6f\x66\x20"
19214 "\x74\x68\x65\x20\x63\x6c\x61\x73"
19215 "\x73\x20\x6f\x66\x20\x27\x39\x39"
19216 "\x3a\x20\x49\x66\x20\x49\x20\x63"
19217 "\x6f\x75\x6c\x64\x20\x6f\x66\x66"
19218 "\x65\x72\x20\x79\x6f\x75\x20\x6f"
19219 "\x6e\x6c\x79\x20\x6f\x6e\x65\x20"
19220 "\x74\x69\x70\x20\x66\x6f\x72\x20"
19221 "\x74\x68\x65\x20\x66\x75\x74\x75"
19222 "\x72\x65\x2c\x20\x73\x75\x6e\x73"
19223 "\x63\x72\x65\x65\x6e\x20\x77\x6f"
19224 "\x75\x6c\x64\x20\x62\x65\x20\x69"
19225 "\x74\x2e",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019226 .plen = 114,
19227 .ctext = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb"
Martin Williaf2b76b2015-06-01 13:44:01 +020019228 "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2"
19229 "\xa4\xad\xed\x51\x29\x6e\x08\xfe"
19230 "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6"
19231 "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12"
19232 "\x82\xfa\xfb\x69\xda\x92\x72\x8b"
19233 "\x1a\x71\xde\x0a\x9e\x06\x0b\x29"
19234 "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36"
19235 "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c"
19236 "\x98\x03\xae\xe3\x28\x09\x1b\x58"
19237 "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94"
19238 "\x55\x85\x80\x8b\x48\x31\xd7\xbc"
19239 "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d"
19240 "\xe5\x76\xd2\x65\x86\xce\xc6\x4b"
19241 "\x61\x16\x1a\xe1\x0b\x59\x4f\x09"
19242 "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60"
19243 "\x06\x91",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019244 .clen = 130,
Martin Williaf2b76b2015-06-01 13:44:01 +020019245 }, {
19246 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19247 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19248 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19249 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
19250 .klen = 32,
19251 .iv = "\x00\x00\x00\x00\x01\x02\x03\x04"
19252 "\x05\x06\x07\x08",
19253 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
19254 "\x00\x00\x4e\x91",
19255 .alen = 12,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019256 .ptext = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
Martin Williaf2b76b2015-06-01 13:44:01 +020019257 "\x2d\x44\x72\x61\x66\x74\x73\x20"
19258 "\x61\x72\x65\x20\x64\x72\x61\x66"
19259 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19260 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19261 "\x64\x20\x66\x6f\x72\x20\x61\x20"
19262 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19263 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19264 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19265 "\x64\x20\x6d\x61\x79\x20\x62\x65"
19266 "\x20\x75\x70\x64\x61\x74\x65\x64"
19267 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19268 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19269 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19270 "\x20\x62\x79\x20\x6f\x74\x68\x65"
19271 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19272 "\x6e\x74\x73\x20\x61\x74\x20\x61"
19273 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19274 "\x20\x49\x74\x20\x69\x73\x20\x69"
19275 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19276 "\x69\x61\x74\x65\x20\x74\x6f\x20"
19277 "\x75\x73\x65\x20\x49\x6e\x74\x65"
19278 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19279 "\x66\x74\x73\x20\x61\x73\x20\x72"
19280 "\x65\x66\x65\x72\x65\x6e\x63\x65"
19281 "\x20\x6d\x61\x74\x65\x72\x69\x61"
19282 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19283 "\x63\x69\x74\x65\x20\x74\x68\x65"
19284 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19285 "\x74\x68\x61\x6e\x20\x61\x73\x20"
19286 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19287 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19288 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19289 "\x9d",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019290 .plen = 265,
19291 .ctext = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
Martin Williaf2b76b2015-06-01 13:44:01 +020019292 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19293 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19294 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19295 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19296 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19297 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19298 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19299 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19300 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19301 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19302 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19303 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19304 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19305 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19306 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19307 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19308 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19309 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19310 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19311 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19312 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19313 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19314 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19315 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19316 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19317 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19318 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19319 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19320 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19321 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19322 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19323 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19324 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19325 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19326 "\x38",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019327 .clen = 281,
Martin Williaf2b76b2015-06-01 13:44:01 +020019328 },
19329};
19330
19331/*
Martin Willi59007582015-06-01 13:44:03 +020019332 * draft-irtf-cfrg-chacha20-poly1305
19333 */
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019334static const struct aead_testvec rfc7539esp_tv_template[] = {
Martin Willi59007582015-06-01 13:44:03 +020019335 {
19336 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
19337 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
19338 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
19339 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0"
19340 "\x00\x00\x00\x00",
19341 .klen = 36,
19342 .iv = "\x01\x02\x03\x04\x05\x06\x07\x08",
19343 .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00"
Herbert Xu74790922015-07-16 12:35:08 +080019344 "\x00\x00\x4e\x91\x01\x02\x03\x04"
19345 "\x05\x06\x07\x08",
19346 .alen = 20,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019347 .ptext = "\x49\x6e\x74\x65\x72\x6e\x65\x74"
Martin Willi59007582015-06-01 13:44:03 +020019348 "\x2d\x44\x72\x61\x66\x74\x73\x20"
19349 "\x61\x72\x65\x20\x64\x72\x61\x66"
19350 "\x74\x20\x64\x6f\x63\x75\x6d\x65"
19351 "\x6e\x74\x73\x20\x76\x61\x6c\x69"
19352 "\x64\x20\x66\x6f\x72\x20\x61\x20"
19353 "\x6d\x61\x78\x69\x6d\x75\x6d\x20"
19354 "\x6f\x66\x20\x73\x69\x78\x20\x6d"
19355 "\x6f\x6e\x74\x68\x73\x20\x61\x6e"
19356 "\x64\x20\x6d\x61\x79\x20\x62\x65"
19357 "\x20\x75\x70\x64\x61\x74\x65\x64"
19358 "\x2c\x20\x72\x65\x70\x6c\x61\x63"
19359 "\x65\x64\x2c\x20\x6f\x72\x20\x6f"
19360 "\x62\x73\x6f\x6c\x65\x74\x65\x64"
19361 "\x20\x62\x79\x20\x6f\x74\x68\x65"
19362 "\x72\x20\x64\x6f\x63\x75\x6d\x65"
19363 "\x6e\x74\x73\x20\x61\x74\x20\x61"
19364 "\x6e\x79\x20\x74\x69\x6d\x65\x2e"
19365 "\x20\x49\x74\x20\x69\x73\x20\x69"
19366 "\x6e\x61\x70\x70\x72\x6f\x70\x72"
19367 "\x69\x61\x74\x65\x20\x74\x6f\x20"
19368 "\x75\x73\x65\x20\x49\x6e\x74\x65"
19369 "\x72\x6e\x65\x74\x2d\x44\x72\x61"
19370 "\x66\x74\x73\x20\x61\x73\x20\x72"
19371 "\x65\x66\x65\x72\x65\x6e\x63\x65"
19372 "\x20\x6d\x61\x74\x65\x72\x69\x61"
19373 "\x6c\x20\x6f\x72\x20\x74\x6f\x20"
19374 "\x63\x69\x74\x65\x20\x74\x68\x65"
19375 "\x6d\x20\x6f\x74\x68\x65\x72\x20"
19376 "\x74\x68\x61\x6e\x20\x61\x73\x20"
19377 "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b"
19378 "\x20\x69\x6e\x20\x70\x72\x6f\x67"
19379 "\x72\x65\x73\x73\x2e\x2f\xe2\x80"
19380 "\x9d",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019381 .plen = 265,
19382 .ctext = "\x64\xa0\x86\x15\x75\x86\x1a\xf4"
Martin Willi59007582015-06-01 13:44:03 +020019383 "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd"
19384 "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89"
19385 "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2"
19386 "\x4c\x6c\xfc\x18\x75\x5d\x43\xee"
19387 "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0"
19388 "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00"
19389 "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf"
19390 "\x33\x2f\x83\x0e\x71\x0b\x97\xce"
19391 "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81"
19392 "\x14\xad\x17\x6e\x00\x8d\x33\xbd"
19393 "\x60\xf9\x82\xb1\xff\x37\xc8\x55"
19394 "\x97\x97\xa0\x6e\xf4\xf0\xef\x61"
19395 "\xc1\x86\x32\x4e\x2b\x35\x06\x38"
19396 "\x36\x06\x90\x7b\x6a\x7c\x02\xb0"
19397 "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4"
19398 "\xb9\x16\x6c\x76\x7b\x80\x4d\x46"
19399 "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9"
19400 "\x90\x40\xc5\xa4\x04\x33\x22\x5e"
19401 "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e"
19402 "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15"
19403 "\x5b\x00\x47\x71\x8c\xbc\x54\x6a"
19404 "\x0d\x07\x2b\x04\xb3\x56\x4e\xea"
19405 "\x1b\x42\x22\x73\xf5\x48\x27\x1a"
19406 "\x0b\xb2\x31\x60\x53\xfa\x76\x99"
19407 "\x19\x55\xeb\xd6\x31\x59\x43\x4e"
19408 "\xce\xbb\x4e\x46\x6d\xae\x5a\x10"
19409 "\x73\xa6\x72\x76\x27\x09\x7a\x10"
19410 "\x49\xe6\x17\xd9\x1d\x36\x10\x94"
19411 "\xfa\x68\xf0\xff\x77\x98\x71\x30"
19412 "\x30\x5b\xea\xba\x2e\xda\x04\xdf"
19413 "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29"
19414 "\xa6\xad\x5c\xb4\x02\x2b\x02\x70"
19415 "\x9b\xee\xad\x9d\x67\x89\x0c\xbb"
19416 "\x22\x39\x23\x36\xfe\xa1\x85\x1f"
19417 "\x38",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019418 .clen = 281,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019419 },
19420};
19421
19422/*
19423 * AEGIS-128 test vectors - generated via reference implementation from
19424 * SUPERCOP (https://bench.cr.yp.to/supercop.html):
19425 *
19426 * https://bench.cr.yp.to/supercop/supercop-20170228.tar.xz
19427 * (see crypto_aead/aegis128/)
19428 */
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019429static const struct aead_testvec aegis128_tv_template[] = {
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019430 {
19431 .key = "\x0f\xc9\x8e\x67\x44\x9e\xaa\x86"
19432 "\x20\x36\x2c\x24\xfe\xc9\x30\x81",
19433 .klen = 16,
19434 .iv = "\x1e\x92\x1c\xcf\x88\x3d\x54\x0d"
19435 "\x40\x6d\x59\x48\xfc\x92\x61\x03",
19436 .assoc = "",
19437 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019438 .ptext = "",
19439 .plen = 0,
19440 .ctext = "\x07\xa5\x11\xf2\x9d\x40\xb8\x6d"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019441 "\xda\xb8\x12\x34\x4c\x53\xd9\x72",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019442 .clen = 16,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019443 }, {
19444 .key = "\x4b\xed\xc8\x07\x54\x1a\x52\xa2"
19445 "\xa1\x10\xde\xb5\xf8\xed\xf3\x87",
19446 .klen = 16,
19447 .iv = "\x5a\xb7\x56\x6e\x98\xb9\xfd\x29"
19448 "\xc1\x47\x0b\xda\xf6\xb6\x23\x09",
19449 .assoc = "",
19450 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019451 .ptext = "\x79",
19452 .plen = 1,
19453 .ctext = "\x9e\x78\x52\xae\xcb\x9e\xe4\xd3"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019454 "\x9a\xd7\x5d\xd7\xaa\x9a\xe9\x5a"
19455 "\xcc",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019456 .clen = 17,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019457 }, {
19458 .key = "\x88\x12\x01\xa6\x64\x96\xfb\xbe"
19459 "\x22\xea\x90\x47\xf2\x11\xb5\x8e",
19460 .klen = 16,
19461 .iv = "\x97\xdb\x90\x0e\xa8\x35\xa5\x45"
19462 "\x42\x21\xbd\x6b\xf0\xda\xe6\x0f",
19463 .assoc = "",
19464 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019465 .ptext = "\xb5\x6e\xad\xdd\x30\x72\xfa\x53"
19466 "\x82\x8e\x16\xb4\xed\x6d\x47",
19467 .plen = 15,
19468 .ctext = "\xc3\x80\x83\x04\x5f\xaa\x61\xc7"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019469 "\xca\xdd\x6f\xac\x85\x08\xb5\x35"
19470 "\x2b\xc2\x3e\x0b\x1b\x39\x37\x2b"
19471 "\x7a\x21\x16\xb3\xe6\x67\x66",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019472 .clen = 31,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019473 }, {
19474 .key = "\xc4\x37\x3b\x45\x74\x11\xa4\xda"
19475 "\xa2\xc5\x42\xd8\xec\x36\x78\x94",
19476 .klen = 16,
19477 .iv = "\xd3\x00\xc9\xad\xb8\xb0\x4e\x61"
19478 "\xc3\xfb\x6f\xfd\xea\xff\xa9\x15",
19479 .assoc = "",
19480 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019481 .ptext = "\xf2\x92\xe6\x7d\x40\xee\xa3\x6f"
19482 "\x03\x68\xc8\x45\xe7\x91\x0a\x18",
19483 .plen = 16,
19484 .ctext = "\x23\x25\x30\xe5\x6a\xb6\x36\x7d"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019485 "\x38\xfd\x3a\xd2\xc2\x58\xa9\x11"
19486 "\x1e\xa8\x30\x9c\x16\xa4\xdb\x65"
19487 "\x51\x10\x16\x27\x70\x9b\x64\x29",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019488 .clen = 32,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019489 }, {
19490 .key = "\x01\x5c\x75\xe5\x84\x8d\x4d\xf6"
19491 "\x23\x9f\xf4\x6a\xe6\x5a\x3b\x9a",
19492 .klen = 16,
19493 .iv = "\x10\x25\x03\x4c\xc8\x2c\xf7\x7d"
19494 "\x44\xd5\x21\x8e\xe4\x23\x6b\x1c",
19495 .assoc = "",
19496 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019497 .ptext = "\x2e\xb7\x20\x1c\x50\x6a\x4b\x8b"
19498 "\x84\x42\x7a\xd7\xe1\xb5\xcd\x1f"
19499 "\xd3",
19500 .plen = 17,
19501 .ctext = "\x2a\x8d\x56\x91\xc6\xf3\x56\xa5"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019502 "\x1f\xf0\x89\x2e\x13\xad\xe6\xf6"
19503 "\x46\x80\xb1\x0e\x18\x30\x40\x97"
19504 "\x03\xdf\x64\x3c\xbe\x93\x9e\xc9"
19505 "\x3b",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019506 .clen = 33,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019507 }, {
19508 .key = "\x3d\x80\xae\x84\x94\x09\xf6\x12"
19509 "\xa4\x79\xa6\xfb\xe0\x7f\xfd\xa0",
19510 .klen = 16,
19511 .iv = "\x4c\x49\x3d\xec\xd8\xa8\xa0\x98"
19512 "\xc5\xb0\xd3\x1f\xde\x48\x2e\x22",
19513 .assoc = "",
19514 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019515 .ptext = "\x6b\xdc\x5a\xbb\x60\xe5\xf4\xa6"
19516 "\x05\x1d\x2c\x68\xdb\xda\x8f\x25"
19517 "\xfe\x8d\x45\x19\x1e\xc0\x0b\x99"
19518 "\x88\x11\x39\x12\x1c\x3a\xbb",
19519 .plen = 31,
19520 .ctext = "\x4e\xf6\xfa\x13\xde\x43\x63\x4c"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019521 "\xe2\x04\x3e\xe4\x85\x14\xb6\x3f"
19522 "\xb1\x8f\x4c\xdb\x41\xa2\x14\x99"
19523 "\xf5\x53\x0f\x73\x86\x7e\x97\xa1"
19524 "\x4b\x56\x5b\x94\xce\xcd\x74\xcd"
19525 "\x75\xc4\x53\x01\x89\x45\x59",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019526 .clen = 47,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019527 }, {
19528 .key = "\x7a\xa5\xe8\x23\xa4\x84\x9e\x2d"
19529 "\x25\x53\x58\x8c\xda\xa3\xc0\xa6",
19530 .klen = 16,
19531 .iv = "\x89\x6e\x77\x8b\xe8\x23\x49\xb4"
19532 "\x45\x8a\x85\xb1\xd8\x6c\xf1\x28",
19533 .assoc = "",
19534 .alen = 0,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019535 .ptext = "\xa7\x00\x93\x5b\x70\x61\x9d\xc2"
19536 "\x86\xf7\xde\xfa\xd5\xfe\x52\x2b"
19537 "\x28\x50\x51\x9d\x24\x60\x8d\xb3"
19538 "\x49\x3e\x17\xea\xf6\x99\x5a\xdd",
19539 .plen = 32,
19540 .ctext = "\xa4\x9a\xb7\xfd\xa0\xd4\xd6\x47"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019541 "\x95\xf4\x58\x38\x14\x83\x27\x01"
19542 "\x4c\xed\x32\x2c\xf7\xd6\x31\xf7"
19543 "\x38\x1b\x2c\xc9\xb6\x31\xce\xaa"
19544 "\xa5\x3c\x1a\x18\x5c\xce\xb9\xdf"
19545 "\x51\x52\x77\xf2\x5e\x85\x80\x41",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019546 .clen = 48,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019547 }, {
19548 .key = "\xb6\xca\x22\xc3\xb4\x00\x47\x49"
19549 "\xa6\x2d\x0a\x1e\xd4\xc7\x83\xad",
19550 .klen = 16,
19551 .iv = "\xc5\x93\xb0\x2a\xf8\x9f\xf1\xd0"
19552 "\xc6\x64\x37\x42\xd2\x90\xb3\x2e",
19553 .assoc = "\xd5",
19554 .alen = 1,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019555 .ptext = "",
19556 .plen = 0,
19557 .ctext = "\xfb\xd4\x83\x71\x9e\x63\xad\x60"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019558 "\xb9\xf9\xeb\x34\x52\x49\xcf\xb7",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019559 .clen = 16,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019560 }, {
19561 .key = "\xf3\xee\x5c\x62\xc4\x7c\xf0\x65"
19562 "\x27\x08\xbd\xaf\xce\xec\x45\xb3",
19563 .klen = 16,
19564 .iv = "\x02\xb8\xea\xca\x09\x1b\x9a\xec"
19565 "\x47\x3e\xe9\xd4\xcc\xb5\x76\x34",
19566 .assoc = "\x11\x81\x78\x32\x4d\xb9\x44\x73"
19567 "\x68\x75\x16\xf8\xcb\x7e\xa7",
19568 .alen = 15,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019569 .ptext = "",
19570 .plen = 0,
19571 .ctext = "\x0c\xaf\x2e\x96\xf6\x97\x08\x71"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019572 "\x7d\x3a\x84\xc4\x44\x57\x77\x7e",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019573 .clen = 16,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019574 }, {
19575 .key = "\x2f\x13\x95\x01\xd5\xf7\x99\x81"
19576 "\xa8\xe2\x6f\x41\xc8\x10\x08\xb9",
19577 .klen = 16,
19578 .iv = "\x3f\xdc\x24\x69\x19\x96\x43\x08"
19579 "\xc8\x18\x9b\x65\xc6\xd9\x39\x3b",
19580 .assoc = "\x4e\xa5\xb2\xd1\x5d\x35\xed\x8f"
19581 "\xe8\x4f\xc8\x89\xc5\xa2\x69\xbc",
19582 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019583 .ptext = "",
19584 .plen = 0,
19585 .ctext = "\xc7\x87\x09\x3b\xc7\x19\x74\x22"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019586 "\x22\xa5\x67\x10\xb2\x36\xb3\x45",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019587 .clen = 16,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019588 }, {
19589 .key = "\x6c\x38\xcf\xa1\xe5\x73\x41\x9d"
19590 "\x29\xbc\x21\xd2\xc2\x35\xcb\xbf",
19591 .klen = 16,
19592 .iv = "\x7b\x01\x5d\x08\x29\x12\xec\x24"
19593 "\x49\xf3\x4d\xf7\xc0\xfe\xfb\x41",
19594 .assoc = "\x8a\xca\xec\x70\x6d\xb1\x96\xab"
19595 "\x69\x29\x7a\x1b\xbf\xc7\x2c\xc2"
19596 "\x07",
19597 .alen = 17,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019598 .ptext = "",
19599 .plen = 0,
19600 .ctext = "\x02\xc6\x3b\x46\x65\xb2\xef\x91"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019601 "\x31\xf0\x45\x48\x8a\x2a\xed\xe4",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019602 .clen = 16,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019603 }, {
19604 .key = "\xa8\x5c\x09\x40\xf5\xef\xea\xb8"
19605 "\xaa\x96\xd3\x64\xbc\x59\x8d\xc6",
19606 .klen = 16,
19607 .iv = "\xb8\x26\x97\xa8\x39\x8e\x94\x3f"
19608 "\xca\xcd\xff\x88\xba\x22\xbe\x47",
19609 .assoc = "\xc7\xef\x26\x10\x7d\x2c\x3f\xc6"
19610 "\xea\x03\x2c\xac\xb9\xeb\xef\xc9"
19611 "\x31\x6b\x08\x12\xfc\xd8\x37\x2d"
19612 "\xe0\x17\x3a\x2e\x83\x5c\x8f",
19613 .alen = 31,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019614 .ptext = "",
19615 .plen = 0,
19616 .ctext = "\x20\x85\xa8\xd0\x91\x48\x85\xf3"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019617 "\x5a\x16\xc0\x57\x68\x47\xdd\xcb",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019618 .clen = 16,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019619 }, {
19620 .key = "\xe5\x81\x42\xdf\x05\x6a\x93\xd4"
19621 "\x2b\x70\x85\xf5\xb6\x7d\x50\xcc",
19622 .klen = 16,
19623 .iv = "\xf4\x4a\xd1\x47\x49\x09\x3d\x5b"
19624 "\x4b\xa7\xb1\x19\xb4\x46\x81\x4d",
19625 .assoc = "\x03\x14\x5f\xaf\x8d\xa8\xe7\xe2"
19626 "\x6b\xde\xde\x3e\xb3\x10\xb1\xcf"
19627 "\x5c\x2d\x14\x96\x01\x78\xb9\x47"
19628 "\xa1\x44\x19\x06\x5d\xbb\x2e\x2f",
19629 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019630 .ptext = "",
19631 .plen = 0,
19632 .ctext = "\x6a\xf8\x8d\x9c\x42\x75\x35\x79"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019633 "\xc1\x96\xbd\x31\x6e\x69\x1b\x50",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019634 .clen = 16,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019635 }, {
19636 .key = "\x22\xa6\x7c\x7f\x15\xe6\x3c\xf0"
19637 "\xac\x4b\x37\x86\xb0\xa2\x13\xd2",
19638 .klen = 16,
19639 .iv = "\x31\x6f\x0b\xe6\x59\x85\xe6\x77"
19640 "\xcc\x81\x63\xab\xae\x6b\x43\x54",
19641 .assoc = "\x40",
19642 .alen = 1,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019643 .ptext = "\x4f",
19644 .plen = 1,
19645 .ctext = "\x01\x24\xb1\xba\xf6\xd3\xdf\x83"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019646 "\x70\x45\xe3\x2a\x9d\x5c\x63\x98"
19647 "\x39",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019648 .clen = 17,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019649 }, {
19650 .key = "\x5e\xcb\xb6\x1e\x25\x62\xe4\x0c"
19651 "\x2d\x25\xe9\x18\xaa\xc6\xd5\xd8",
19652 .klen = 16,
19653 .iv = "\x6d\x94\x44\x86\x69\x00\x8f\x93"
19654 "\x4d\x5b\x15\x3c\xa8\x8f\x06\x5a",
19655 .assoc = "\x7c\x5d\xd3\xee\xad\x9f\x39\x1a"
19656 "\x6d\x92\x42\x61\xa7\x58\x37",
19657 .alen = 15,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019658 .ptext = "\x8b\x26\x61\x55\xf1\x3e\xe3\xa1"
19659 "\x8d\xc8\x6e\x85\xa5\x21\x67",
19660 .plen = 15,
19661 .ctext = "\x18\x78\xc2\x6e\xe1\xf7\xe6\x8a"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019662 "\xca\x0e\x62\x00\xa8\x21\xb5\x21"
19663 "\x3d\x36\xdb\xf7\xcc\x31\x94\x9c"
19664 "\x98\xbd\x71\x7a\xef\xa4\xfa",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019665 .clen = 31,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019666 }, {
19667 .key = "\x9b\xef\xf0\xbd\x35\xdd\x8d\x28"
19668 "\xad\xff\x9b\xa9\xa4\xeb\x98\xdf",
19669 .klen = 16,
19670 .iv = "\xaa\xb8\x7e\x25\x79\x7c\x37\xaf"
19671 "\xce\x36\xc7\xce\xa2\xb4\xc9\x60",
19672 .assoc = "\xb9\x82\x0c\x8d\xbd\x1b\xe2\x36"
19673 "\xee\x6c\xf4\xf2\xa1\x7d\xf9\xe2",
19674 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019675 .ptext = "\xc8\x4b\x9b\xf5\x01\xba\x8c\xbd"
19676 "\x0e\xa3\x21\x16\x9f\x46\x2a\x63",
19677 .plen = 16,
19678 .ctext = "\xea\xd1\x81\x75\xb4\x13\x1d\x86"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019679 "\xd4\x17\x26\xe5\xd6\x89\x39\x04"
19680 "\xa9\x6c\xca\xac\x40\x73\xb2\x4c"
19681 "\x9c\xb9\x0e\x79\x4c\x40\x65\xc6",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019682 .clen = 32,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019683 }, {
19684 .key = "\xd7\x14\x29\x5d\x45\x59\x36\x44"
19685 "\x2e\xd9\x4d\x3b\x9e\x0f\x5b\xe5",
19686 .klen = 16,
19687 .iv = "\xe6\xdd\xb8\xc4\x89\xf8\xe0\xca"
19688 "\x4f\x10\x7a\x5f\x9c\xd8\x8b\x66",
19689 .assoc = "\xf5\xa6\x46\x2c\xce\x97\x8a\x51"
19690 "\x6f\x46\xa6\x83\x9b\xa1\xbc\xe8"
19691 "\x05",
19692 .alen = 17,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019693 .ptext = "\x05\x70\xd5\x94\x12\x36\x35\xd8"
19694 "\x8f\x7d\xd3\xa8\x99\x6a\xed\x69"
19695 "\xd0",
19696 .plen = 17,
19697 .ctext = "\xf4\xb2\x84\xd1\x81\xfa\x98\x1c"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019698 "\x38\x2d\x69\x90\x1c\x71\x38\x98"
19699 "\x9f\xe1\x19\x3b\x63\x91\xaf\x6e"
19700 "\x4b\x07\x2c\xac\x53\xc5\xd5\xfe"
19701 "\x93",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019702 .clen = 33,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019703 }, {
19704 .key = "\x14\x39\x63\xfc\x56\xd5\xdf\x5f"
19705 "\xaf\xb3\xff\xcc\x98\x33\x1d\xeb",
19706 .klen = 16,
19707 .iv = "\x23\x02\xf1\x64\x9a\x73\x89\xe6"
19708 "\xd0\xea\x2c\xf1\x96\xfc\x4e\x6d",
19709 .assoc = "\x32\xcb\x80\xcc\xde\x12\x33\x6d"
19710 "\xf0\x20\x58\x15\x95\xc6\x7f\xee"
19711 "\x2f\xf9\x4e\x2c\x1b\x98\x43\xc7"
19712 "\x68\x28\x73\x40\x9f\x96\x4a",
19713 .alen = 31,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019714 .ptext = "\x41\x94\x0e\x33\x22\xb1\xdd\xf4"
19715 "\x10\x57\x85\x39\x93\x8f\xaf\x70"
19716 "\xfa\xa9\xd0\x4d\x5c\x40\x23\xcd"
19717 "\x98\x34\xab\x37\x56\xae\x32",
19718 .plen = 31,
19719 .ctext = "\xa0\xe7\x0a\x60\xe7\xb8\x8a\xdb"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019720 "\x94\xd3\x93\xf2\x41\x86\x16\xdd"
19721 "\x4c\xe8\xe7\xe0\x62\x48\x89\x40"
19722 "\xc0\x49\x9b\x63\x32\xec\x8b\xdb"
19723 "\xdc\xa6\xea\x2c\xc2\x7f\xf5\x04"
19724 "\xcb\xe5\x47\xbb\xa7\xd1\x9d",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019725 .clen = 47,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019726 }, {
19727 .key = "\x50\x5d\x9d\x9b\x66\x50\x88\x7b"
19728 "\x30\x8e\xb1\x5e\x92\x58\xe0\xf1",
19729 .klen = 16,
19730 .iv = "\x5f\x27\x2b\x03\xaa\xef\x32\x02"
19731 "\x50\xc4\xde\x82\x90\x21\x11\x73",
19732 .assoc = "\x6e\xf0\xba\x6b\xee\x8e\xdc\x89"
19733 "\x71\xfb\x0a\xa6\x8f\xea\x41\xf4"
19734 "\x5a\xbb\x59\xb0\x20\x38\xc5\xe0"
19735 "\x29\x56\x52\x19\x79\xf5\xe9\x37",
19736 .alen = 32,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019737 .ptext = "\x7e\xb9\x48\xd3\x32\x2d\x86\x10"
19738 "\x91\x31\x37\xcb\x8d\xb3\x72\x76"
19739 "\x24\x6b\xdc\xd1\x61\xe0\xa5\xe7"
19740 "\x5a\x61\x8a\x0f\x30\x0d\xd1\xec",
19741 .plen = 32,
19742 .ctext = "\x62\xdc\x2d\x68\x2d\x71\xbb\x33"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019743 "\x13\xdf\xc0\x46\xf6\x61\x94\xa7"
19744 "\x60\xd3\xd4\xca\xd9\xbe\x82\xf3"
19745 "\xf1\x5b\xa0\xfa\x15\xba\xda\xea"
19746 "\x87\x68\x47\x08\x5d\xdd\x83\xb0"
19747 "\x60\xf4\x93\x20\xdf\x34\x8f\xea",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019748 .clen = 48,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019749 }, {
19750 .key = "\x8d\x82\xd6\x3b\x76\xcc\x30\x97"
19751 "\xb1\x68\x63\xef\x8c\x7c\xa3\xf7",
19752 .klen = 16,
19753 .iv = "\x9c\x4b\x65\xa2\xba\x6b\xdb\x1e"
19754 "\xd1\x9e\x90\x13\x8a\x45\xd3\x79",
19755 .assoc = "\xab\x14\xf3\x0a\xfe\x0a\x85\xa5"
19756 "\xf2\xd5\xbc\x38\x89\x0e\x04\xfb"
19757 "\x84\x7d\x65\x34\x25\xd8\x47\xfa"
19758 "\xeb\x83\x31\xf1\x54\x54\x89\x0d"
19759 "\x9d",
19760 .alen = 33,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019761 .ptext = "\xba\xde\x82\x72\x42\xa9\x2f\x2c"
19762 "\x12\x0b\xe9\x5c\x87\xd7\x35\x7c"
19763 "\x4f\x2e\xe8\x55\x66\x80\x27\x00"
19764 "\x1b\x8f\x68\xe7\x0a\x6c\x71\xc3"
19765 "\x21\x78\x55\x9d\x9c\x65\x7b\xcd"
19766 "\x0a\x34\x97\xff\x47\x37\xb0\x2a"
19767 "\x80\x0d\x19\x98\x33\xa9\x7a\xe3"
19768 "\x2e\x4c\xc6\xf3\x8c\x88\x42\x01"
19769 "\xbd",
19770 .plen = 65,
19771 .ctext = "\x84\xc5\x21\xab\xe1\xeb\xbb\x6d"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019772 "\xaa\x2a\xaf\xeb\x3b\x3b\x69\xe7"
19773 "\x2c\x47\xef\x9d\xb7\x53\x36\xb7"
19774 "\xb6\xf5\xe5\xa8\xc9\x9e\x02\xd7"
19775 "\x83\x88\xc2\xbd\x2f\xf9\x10\xc0"
19776 "\xf5\xa1\x6e\xd3\x97\x64\x82\xa3"
19777 "\xfb\xda\x2c\xb1\x94\xa1\x58\x32"
19778 "\xe8\xd4\x39\xfc\x9e\x26\xf9\xf1"
19779 "\x61\xe6\xae\x07\xf2\xe0\xa7\x44"
19780 "\x96\x28\x3b\xee\x6b\xc6\x16\x31"
19781 "\x3f",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019782 .clen = 81,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019783 }, {
19784 .key = "\xc9\xa7\x10\xda\x86\x48\xd9\xb3"
19785 "\x32\x42\x15\x80\x85\xa1\x65\xfe",
19786 .klen = 16,
19787 .iv = "\xd8\x70\x9f\x42\xca\xe6\x83\x3a"
19788 "\x52\x79\x42\xa5\x84\x6a\x96\x7f",
19789 .assoc = "\xe8\x39\x2d\xaa\x0e\x85\x2d\xc1"
19790 "\x72\xaf\x6e\xc9\x82\x33\xc7\x01"
19791 "\xaf\x40\x70\xb8\x2a\x78\xc9\x14"
19792 "\xac\xb1\x10\xca\x2e\xb3\x28\xe4"
19793 "\xac\xfa\x58\x7f\xe5\x73\x09\x8c"
19794 "\x1d\x40\x87\x8c\xd9\x75\xc0\x55"
19795 "\xa2\xda\x07\xd1\xc2\xa9\xd1\xbb"
19796 "\x09\x4f\x77\x62\x88\x2d\xf2\x68"
19797 "\x54",
19798 .alen = 65,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019799 .ptext = "\xf7\x02\xbb\x11\x52\x24\xd8\x48"
19800 "\x93\xe6\x9b\xee\x81\xfc\xf7\x82"
19801 "\x79\xf0\xf3\xd9\x6c\x20\xa9\x1a"
19802 "\xdc\xbc\x47\xc0\xe4\xcb\x10\x99"
19803 "\x2f",
19804 .plen = 33,
19805 .ctext = "\x8f\x23\x47\xfb\xf2\xac\x23\x83"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019806 "\x77\x09\xac\x74\xef\xd2\x56\xae"
19807 "\x20\x7b\x7b\xca\x45\x8e\xc8\xc2"
19808 "\x50\xbd\xc7\x44\x1c\x54\x98\xd8"
19809 "\x1f\xd0\x9a\x79\xaa\xf9\xe1\xb3"
19810 "\xb4\x98\x5a\x9b\xe4\x4d\xbf\x4e"
19811 "\x39",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019812 .clen = 49,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019813 }, {
19814 .key = "\x06\xcc\x4a\x79\x96\xc3\x82\xcf"
19815 "\xb3\x1c\xc7\x12\x7f\xc5\x28\x04",
19816 .klen = 16,
19817 .iv = "\x15\x95\xd8\xe1\xda\x62\x2c\x56"
19818 "\xd3\x53\xf4\x36\x7e\x8e\x59\x85",
19819 .assoc = "\x24\x5e\x67\x49\x1e\x01\xd6\xdd"
19820 "\xf3\x89\x20\x5b\x7c\x57\x89\x07",
19821 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019822 .ptext = "\x33\x27\xf5\xb1\x62\xa0\x80\x63"
19823 "\x14\xc0\x4d\x7f\x7b\x20\xba\x89",
19824 .plen = 16,
19825 .ctext = "\x42\xc3\x58\xfb\x29\xe2\x4a\x56"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019826 "\xf1\xf5\xe1\x51\x55\x4b\x0a\x45"
19827 "\x46\xb5\x8d\xac\xb6\x34\xd8\x8b"
19828 "\xde\x20\x59\x77\xc1\x74\x90",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019829 .clen = 31,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019830 }, {
19831 .key = "\x42\xf0\x84\x19\xa6\x3f\x2b\xea"
19832 "\x34\xf6\x79\xa3\x79\xe9\xeb\x0a",
19833 .klen = 16,
19834 .iv = "\x51\xb9\x12\x80\xea\xde\xd5\x71"
19835 "\x54\x2d\xa6\xc8\x78\xb2\x1b\x8c",
19836 .assoc = "\x61\x83\xa0\xe8\x2e\x7d\x7f\xf8"
19837 "\x74\x63\xd2\xec\x76\x7c\x4c\x0d",
19838 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019839 .ptext = "\x70\x4c\x2f\x50\x72\x1c\x29\x7f"
19840 "\x95\x9a\xff\x10\x75\x45\x7d\x8f",
19841 .plen = 16,
19842 .ctext = "\xb2\xfb\xf6\x97\x69\x7a\xe9\xec"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019843 "\xe2\x94\xa1\x8b\xa0\x2b\x60\x72"
19844 "\x1d\x04\xdd\x6a\xef\x46\x8f\x68"
19845 "\xe9\xe0\x17\x45\x70\x12",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019846 .clen = 30,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019847 }, {
19848 .key = "\x7f\x15\xbd\xb8\xb6\xba\xd3\x06"
19849 "\xb5\xd1\x2b\x35\x73\x0e\xad\x10",
19850 .klen = 16,
19851 .iv = "\x8e\xde\x4c\x20\xfa\x59\x7e\x8d"
19852 "\xd5\x07\x58\x59\x72\xd7\xde\x92",
19853 .assoc = "\x9d\xa7\xda\x88\x3e\xf8\x28\x14"
19854 "\xf5\x3e\x85\x7d\x70\xa0\x0f\x13",
19855 .alen = 16,
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019856 .ptext = "\xac\x70\x69\xef\x82\x97\xd2\x9b"
19857 "\x15\x74\xb1\xa2\x6f\x69\x3f\x95",
19858 .plen = 16,
19859 .ctext = "\x47\xda\x54\x42\x51\x72\xc4\x8b"
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019860 "\xf5\x57\x0f\x2f\x49\x0e\x11\x3b"
19861 "\x78\x93\xec\xfc\xf4\xff\xe1\x2d",
Eric Biggersa0d608ee2019-01-13 15:32:28 -080019862 .clen = 24,
Ondrej Mosnacekb87dc202018-05-11 14:12:50 +020019863 },
19864};
19865
19866/*
Stephan Mueller35351982015-09-21 20:59:56 +020019867 * All key wrapping test vectors taken from
19868 * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip
19869 *
19870 * Note: as documented in keywrap.c, the ivout for encryption is the first
19871 * semiblock of the ciphertext from the test vector. For decryption, iv is
19872 * the first semiblock of the ciphertext.
19873 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070019874static const struct cipher_testvec aes_kw_tv_template[] = {
Stephan Mueller35351982015-09-21 20:59:56 +020019875 {
19876 .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2"
19877 "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6",
19878 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070019879 .ptext = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea"
Stephan Mueller35351982015-09-21 20:59:56 +020019880 "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070019881 .ctext = "\xf6\x85\x94\x81\x6f\x64\xca\xa3"
Stephan Mueller35351982015-09-21 20:59:56 +020019882 "\xf5\x6f\xab\xea\x25\x48\xf5\xfb",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070019883 .len = 16,
Eric Biggers8efd9722019-02-14 00:03:51 -080019884 .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070019885 .generates_iv = true,
Eric Biggers4074a772018-05-20 22:50:28 -070019886 }, {
19887 .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b"
19888 "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71"
19889 "\x03\x86\xf9\x32\x78\x6e\xf7\x96"
19890 "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f",
19891 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070019892 .ptext = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa"
Eric Biggers4074a772018-05-20 22:50:28 -070019893 "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070019894 .ctext = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15"
Eric Biggers4074a772018-05-20 22:50:28 -070019895 "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070019896 .len = 16,
Eric Biggers8efd9722019-02-14 00:03:51 -080019897 .iv_out = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070019898 .generates_iv = true,
Stephan Mueller35351982015-09-21 20:59:56 +020019899 },
19900};
19901
19902/*
Jarod Wilsone08ca2d2009-05-04 19:46:29 +080019903 * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode)
19904 * test vectors, taken from Appendix B.2.9 and B.2.10:
19905 * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf
19906 * Only AES-128 is supported at this time.
19907 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080019908static const struct cprng_testvec ansi_cprng_aes_tv_template[] = {
Jarod Wilsone08ca2d2009-05-04 19:46:29 +080019909 {
19910 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
19911 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
19912 .klen = 16,
19913 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
19914 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9",
19915 .dtlen = 16,
19916 .v = "\x80\x00\x00\x00\x00\x00\x00\x00"
19917 "\x00\x00\x00\x00\x00\x00\x00\x00",
19918 .vlen = 16,
19919 .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55"
19920 "\x84\x79\x66\x85\xc1\x2f\x76\x41",
19921 .rlen = 16,
19922 .loops = 1,
19923 }, {
19924 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
19925 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
19926 .klen = 16,
19927 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
19928 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa",
19929 .dtlen = 16,
19930 .v = "\xc0\x00\x00\x00\x00\x00\x00\x00"
19931 "\x00\x00\x00\x00\x00\x00\x00\x00",
19932 .vlen = 16,
19933 .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c"
19934 "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d",
19935 .rlen = 16,
19936 .loops = 1,
19937 }, {
19938 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
19939 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
19940 .klen = 16,
19941 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
19942 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb",
19943 .dtlen = 16,
19944 .v = "\xe0\x00\x00\x00\x00\x00\x00\x00"
19945 "\x00\x00\x00\x00\x00\x00\x00\x00",
19946 .vlen = 16,
19947 .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5"
19948 "\x29\x14\x28\x81\xa9\x4d\x4e\xc7",
19949 .rlen = 16,
19950 .loops = 1,
19951 }, {
19952 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
19953 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
19954 .klen = 16,
19955 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
19956 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc",
19957 .dtlen = 16,
19958 .v = "\xf0\x00\x00\x00\x00\x00\x00\x00"
19959 "\x00\x00\x00\x00\x00\x00\x00\x00",
19960 .vlen = 16,
19961 .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5"
19962 "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a",
19963 .rlen = 16,
19964 .loops = 1,
19965 }, {
19966 .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42"
19967 "\xed\x06\x1c\xab\xb8\xd4\x62\x02",
19968 .klen = 16,
19969 .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62"
19970 "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd",
19971 .dtlen = 16,
19972 .v = "\xf8\x00\x00\x00\x00\x00\x00\x00"
19973 "\x00\x00\x00\x00\x00\x00\x00\x00",
19974 .vlen = 16,
19975 .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb"
19976 "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8",
19977 .rlen = 16,
19978 .loops = 1,
19979 }, { /* Monte Carlo Test */
19980 .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5"
19981 "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48",
19982 .klen = 16,
19983 .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b"
19984 "\x67\xc9\x25\xfa\x70\x1f\x11\xac",
19985 .dtlen = 16,
19986 .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97"
19987 "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1",
19988 .vlen = 16,
19989 .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb"
19990 "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73",
19991 .rlen = 16,
19992 .loops = 10000,
19993 },
19994};
19995
Stephan Mueller3332ee22014-05-31 17:24:38 +020019996/*
19997 * SP800-90A DRBG Test vectors from
19998 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
19999 *
20000 * Test vectors for DRBG with prediction resistance. All types of DRBGs
20001 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
20002 * w/o personalization string, w/ and w/o additional input string).
20003 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080020004static const struct drbg_testvec drbg_pr_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020020005 {
20006 .entropy = (unsigned char *)
20007 "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86"
20008 "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf"
20009 "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6"
20010 "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e",
20011 .entropylen = 48,
20012 .entpra = (unsigned char *)
20013 "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62"
20014 "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f"
20015 "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62",
20016 .entprb = (unsigned char *)
20017 "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf"
20018 "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0"
20019 "\x8c\xee\xeb\x9c\xf5\x31\x98\x31",
20020 .entprlen = 32,
20021 .expected = (unsigned char *)
20022 "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7"
20023 "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49"
20024 "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d"
20025 "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe"
20026 "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1"
20027 "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5"
20028 "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf"
20029 "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6"
20030 "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5"
20031 "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce"
20032 "\x30\x81\xa6\x8f\x27\x14\xf8\x1c",
20033 .expectedlen = 128,
20034 .addtla = NULL,
20035 .addtlb = NULL,
20036 .addtllen = 0,
20037 .pers = NULL,
20038 .perslen = 0,
20039 }, {
20040 .entropy = (unsigned char *)
20041 "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d"
20042 "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0"
20043 "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1"
20044 "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6",
20045 .entropylen = 48,
20046 .entpra = (unsigned char *)
20047 "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb"
20048 "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13"
20049 "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15",
20050 .entprb = (unsigned char *)
20051 "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09"
20052 "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde"
20053 "\x76\xaa\x55\x04\x8b\x0a\x72\x95",
20054 .entprlen = 32,
20055 .expected = (unsigned char *)
20056 "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32"
20057 "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c"
20058 "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18"
20059 "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb"
20060 "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81"
20061 "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4"
20062 "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6"
20063 "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13"
20064 "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9"
20065 "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60"
20066 "\x50\x47\xa3\x63\x81\x16\xaf\x19",
20067 .expectedlen = 128,
20068 .addtla = (unsigned char *)
20069 "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d"
20070 "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad"
20071 "\xa9\xd0\x1d\x59\x02\xc4\xff\x70",
20072 .addtlb = (unsigned char *)
20073 "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31"
20074 "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41"
20075 "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd",
20076 .addtllen = 32,
20077 .pers = NULL,
20078 .perslen = 0,
20079 }, {
20080 .entropy = (unsigned char *)
20081 "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85"
20082 "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72"
20083 "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8"
20084 "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1",
20085 .entropylen = 48,
20086 .entpra = (unsigned char *)
20087 "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9"
20088 "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60"
20089 "\xba\x0a\xde\x57\x5b\x4b\x9f\x29",
20090 .entprb = (unsigned char *)
20091 "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd"
20092 "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4"
20093 "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26",
20094 .entprlen = 32,
20095 .expected = (unsigned char *)
20096 "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25"
20097 "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde"
20098 "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5"
20099 "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9"
20100 "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c"
20101 "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e"
20102 "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c"
20103 "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae"
20104 "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c"
20105 "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe"
20106 "\x90\x35\x0d\x4c\x4d\x85\xe7\x13",
20107 .expectedlen = 128,
20108 .addtla = NULL,
20109 .addtlb = NULL,
20110 .addtllen = 0,
20111 .pers = (unsigned char *)
20112 "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7"
20113 "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90"
20114 "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47",
20115 .perslen = 32,
20116 }, {
20117 .entropy = (unsigned char *)
20118 "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6"
20119 "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4"
20120 "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87"
20121 "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e",
20122 .entropylen = 48,
20123 .entpra = (unsigned char *)
20124 "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c"
20125 "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12"
20126 "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc",
20127 .entprb = (unsigned char *)
20128 "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73"
20129 "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6"
20130 "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb",
20131 .entprlen = 32,
20132 .expected = (unsigned char *)
20133 "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31"
20134 "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65"
20135 "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18"
20136 "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42"
20137 "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50"
20138 "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b"
20139 "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f"
20140 "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0"
20141 "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda"
20142 "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44"
20143 "\x63\x4a\x68\x72\xe9\xf5\x55\xfe",
20144 .expectedlen = 128,
20145 .addtla = (unsigned char *)
20146 "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c"
20147 "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff"
20148 "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0",
20149 .addtlb = (unsigned char *)
20150 "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2"
20151 "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89"
20152 "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e",
20153 .addtllen = 32,
20154 .pers = (unsigned char *)
20155 "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1"
20156 "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52"
20157 "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c",
20158 .perslen = 32,
20159 },
20160};
20161
Eric Biggersb13b1e02017-02-24 15:46:59 -080020162static const struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020020163 {
20164 .entropy = (unsigned char *)
20165 "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a"
20166 "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96"
20167 "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46"
20168 "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab",
20169 .entropylen = 48,
20170 .entpra = (unsigned char *)
20171 "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92"
20172 "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46"
20173 "\xe2\x9a\x29\x51\x81\x56\x9f\x54",
20174 .entprb = (unsigned char *)
20175 "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc"
20176 "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65"
20177 "\x8a\x2a\x77\xa8\x69\x90\x89\xf4",
20178 .entprlen = 32,
20179 .expected = (unsigned char *)
20180 "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2"
20181 "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1"
20182 "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4"
20183 "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf"
20184 "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc"
20185 "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8"
20186 "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b"
20187 "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e"
20188 "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22"
20189 "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc"
20190 "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f",
20191 .expectedlen = 128,
20192 .addtla = NULL,
20193 .addtlb = NULL,
20194 .addtllen = 0,
20195 .pers = NULL,
20196 .perslen = 0,
20197 }, {
20198 .entropy = (unsigned char *)
20199 "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f"
20200 "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f"
20201 "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05"
20202 "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda",
20203 .entropylen = 48,
20204 .entpra = (unsigned char *)
20205 "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4"
20206 "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26"
20207 "\x46\xd9\x26\xa2\x19\xd4\x94\x43",
20208 .entprb = (unsigned char *)
20209 "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79"
20210 "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98"
20211 "\x51\x78\x72\xb2\x79\xfd\x2c\xff",
20212 .entprlen = 32,
20213 .expected = (unsigned char *)
20214 "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7"
20215 "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda"
20216 "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa"
20217 "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40"
20218 "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda"
20219 "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37"
20220 "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70"
20221 "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b"
20222 "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5"
20223 "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd"
20224 "\xcd\x66\xb5\x01\x69\x66\xa0\x3c",
20225 .expectedlen = 128,
20226 .addtla = (unsigned char *)
20227 "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3"
20228 "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56"
20229 "\x6d\x99\x3b\xc6\x58\xda\x03\xf6",
20230 .addtlb = (unsigned char *)
20231 "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c"
20232 "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44"
20233 "\xc6\x03\xa2\xfb\x13\x20\x19\xb7",
20234 .addtllen = 32,
20235 .pers = NULL,
20236 .perslen = 0,
20237 }, {
20238 .entropy = (unsigned char *)
20239 "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89"
20240 "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf"
20241 "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20"
20242 "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67",
20243 .entropylen = 48,
20244 .entpra = (unsigned char *)
20245 "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79"
20246 "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57"
20247 "\x20\x28\xad\xf2\x60\xd7\xcd\x45",
20248 .entprb = (unsigned char *)
20249 "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71"
20250 "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66"
20251 "\x1f\xfa\x74\xd3\xac\xa6\x74\x60",
20252 .entprlen = 32,
20253 .expected = (unsigned char *)
20254 "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99"
20255 "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3"
20256 "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75"
20257 "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61"
20258 "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88"
20259 "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e"
20260 "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c"
20261 "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce"
20262 "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc"
20263 "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc"
20264 "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3",
20265 .expectedlen = 128,
20266 .addtla = NULL,
20267 .addtlb = NULL,
20268 .addtllen = 0,
20269 .pers = (unsigned char *)
20270 "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f"
20271 "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce"
20272 "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa",
20273 .perslen = 32,
20274 }, {
20275 .entropy = (unsigned char *)
20276 "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd"
20277 "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01"
20278 "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15"
20279 "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb",
20280 .entropylen = 48,
20281 .entpra = (unsigned char *)
20282 "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a"
20283 "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96"
20284 "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6",
20285 .entprb = (unsigned char *)
20286 "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2"
20287 "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e"
20288 "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1",
20289 .entprlen = 32,
20290 .expected = (unsigned char *)
20291 "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14"
20292 "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6"
20293 "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7"
20294 "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77"
20295 "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5"
20296 "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6"
20297 "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1"
20298 "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40"
20299 "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8"
20300 "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72"
20301 "\xda\x3f\xad\x2b\xba\x00\x6b\xd1",
20302 .expectedlen = 128,
20303 .addtla = (unsigned char *)
20304 "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03"
20305 "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6"
20306 "\x86\x88\x55\x28\xc1\x69\xdd\x76",
20307 .addtlb = (unsigned char *)
20308 "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7"
20309 "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa"
20310 "\x00\x99\x2a\xdd\x0a\x00\x50\x82",
20311 .addtllen = 32,
20312 .pers = (unsigned char *)
20313 "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8"
20314 "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda"
20315 "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f",
20316 .perslen = 32,
20317 },
20318};
20319
Eric Biggersb13b1e02017-02-24 15:46:59 -080020320static const struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020020321 {
20322 .entropy = (unsigned char *)
20323 "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42"
20324 "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2",
20325 .entropylen = 24,
20326 .entpra = (unsigned char *)
20327 "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15"
20328 "\xb4\xec\x80\xb1",
20329 .entprb = (unsigned char *)
20330 "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9"
20331 "\x28\x07\xeb\xc2",
20332 .entprlen = 16,
20333 .expected = (unsigned char *)
20334 "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe"
20335 "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc"
20336 "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18"
20337 "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce"
20338 "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b"
20339 "\x8a\xf1\x23\xa8",
20340 .expectedlen = 64,
20341 .addtla = NULL,
20342 .addtlb = NULL,
20343 .addtllen = 0,
20344 .pers = NULL,
20345 .perslen = 0,
20346 }, {
20347 .entropy = (unsigned char *)
20348 "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77"
20349 "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94",
20350 .entropylen = 24,
20351 .entpra = (unsigned char *)
20352 "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73"
20353 "\x67\xd1\x08\xf8",
20354 .entprb = (unsigned char *)
20355 "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc"
20356 "\xd4\xba\x04\x58",
20357 .entprlen = 16,
20358 .expected = (unsigned char *)
20359 "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d"
20360 "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc"
20361 "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7"
20362 "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc"
20363 "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c"
20364 "\xc1\x02\x41\x82",
20365 .expectedlen = 64,
20366 .addtla = (unsigned char *)
20367 "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8"
20368 "\xeb\xb3\x01\x76",
20369 .addtlb = (unsigned char *)
20370 "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25"
20371 "\xd0\x7f\xcc\x43",
20372 .addtllen = 16,
20373 .pers = NULL,
20374 .perslen = 0,
20375 }, {
20376 .entropy = (unsigned char *)
20377 "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b"
20378 "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8",
20379 .entropylen = 24,
20380 .entpra = (unsigned char *)
20381 "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66"
20382 "\xc3\x0f\xe3\xb0",
20383 .entprb = (unsigned char *)
20384 "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8"
20385 "\xd6\x9c\x9d\xe8",
20386 .entprlen = 16,
20387 .expected = (unsigned char *)
20388 "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b"
20389 "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10"
20390 "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69"
20391 "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc"
20392 "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f"
20393 "\x72\x82\x0c\xcf",
20394 .expectedlen = 64,
20395 .addtla = NULL,
20396 .addtlb = NULL,
20397 .addtllen = 0,
20398 .pers = (unsigned char *)
20399 "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed"
20400 "\x21\x52\xb3\xad",
20401 .perslen = 16,
20402 }, {
20403 .entropy = (unsigned char *)
20404 "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06"
20405 "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97",
20406 .entropylen = 24,
20407 .entpra = (unsigned char *)
20408 "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7"
20409 "\xc4\x2c\xe8\x10",
20410 .entprb = (unsigned char *)
20411 "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22"
20412 "\x08\xf7\xa5\x01",
20413 .entprlen = 16,
20414 .expected = (unsigned char *)
20415 "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71"
20416 "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28"
20417 "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45"
20418 "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08"
20419 "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4"
20420 "\x23\xc5\x1f\x68",
20421 .expectedlen = 64,
20422 .addtla = (unsigned char *)
20423 "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59"
20424 "\x23\x6d\xad\x1d",
20425 .addtlb = (unsigned char *)
20426 "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12"
20427 "\xbc\x59\x31\x8c",
20428 .addtllen = 16,
20429 .pers = (unsigned char *)
20430 "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4"
20431 "\x37\x3c\x5c\x0b",
20432 .perslen = 16,
20433 },
20434};
20435
20436/*
20437 * SP800-90A DRBG Test vectors from
20438 * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip
20439 *
20440 * Test vectors for DRBG without prediction resistance. All types of DRBGs
20441 * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and
20442 * w/o personalization string, w/ and w/o additional input string).
20443 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080020444static const struct drbg_testvec drbg_nopr_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020020445 {
20446 .entropy = (unsigned char *)
20447 "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3"
20448 "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19"
20449 "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31"
20450 "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e",
20451 .entropylen = 48,
20452 .expected = (unsigned char *)
20453 "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64"
20454 "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5"
20455 "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3"
20456 "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11"
20457 "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81"
20458 "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63"
20459 "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7"
20460 "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c"
20461 "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91"
20462 "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d"
20463 "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf",
20464 .expectedlen = 128,
20465 .addtla = NULL,
20466 .addtlb = NULL,
20467 .addtllen = 0,
20468 .pers = NULL,
20469 .perslen = 0,
20470 }, {
20471 .entropy = (unsigned char *)
20472 "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c"
20473 "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d"
20474 "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff"
20475 "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56",
20476 .entropylen = 48,
20477 .expected = (unsigned char *)
20478 "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7"
20479 "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b"
20480 "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0"
20481 "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8"
20482 "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f"
20483 "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d"
20484 "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59"
20485 "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b"
20486 "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0"
20487 "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c"
20488 "\x70\xa8\x07\x59\x97\xeb\xf6\xbe",
20489 .expectedlen = 128,
20490 .addtla = (unsigned char *)
20491 "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73"
20492 "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10"
20493 "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd",
20494 .addtlb = (unsigned char *)
20495 "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0"
20496 "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d"
20497 "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40",
20498 .addtllen = 32,
20499 .pers = NULL,
20500 .perslen = 0,
20501 }, {
20502 .entropy = (unsigned char *)
20503 "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb"
20504 "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4"
20505 "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1"
20506 "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa",
20507 .entropylen = 48,
20508 .expected = (unsigned char *)
20509 "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28"
20510 "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b"
20511 "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46"
20512 "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6"
20513 "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72"
20514 "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1"
20515 "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77"
20516 "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9"
20517 "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e"
20518 "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16"
20519 "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6",
20520 .expectedlen = 128,
20521 .addtla = NULL,
20522 .addtlb = NULL,
20523 .addtllen = 0,
20524 .pers = (unsigned char *)
20525 "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1"
20526 "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda"
20527 "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc",
20528 .perslen = 32,
20529 }, {
20530 .entropy = (unsigned char *)
20531 "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a"
20532 "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74"
20533 "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc"
20534 "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a",
20535 .entropylen = 48,
20536 .expected = (unsigned char *)
20537 "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb"
20538 "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13"
20539 "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6"
20540 "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36"
20541 "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64"
20542 "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea"
20543 "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95"
20544 "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e"
20545 "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd"
20546 "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06"
20547 "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1",
20548 .expectedlen = 128,
20549 .addtla = (unsigned char *)
20550 "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2"
20551 "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e"
20552 "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78",
20553 .addtlb = (unsigned char *)
20554 "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a"
20555 "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b"
20556 "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21",
20557 .addtllen = 32,
20558 .pers = (unsigned char *)
20559 "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20"
20560 "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73"
20561 "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c",
20562 .perslen = 32,
20563 },
20564};
20565
Eric Biggersb13b1e02017-02-24 15:46:59 -080020566static const struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020020567 {
20568 .entropy = (unsigned char *)
20569 "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c"
20570 "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e"
20571 "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c"
20572 "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8",
20573 .entropylen = 48,
20574 .expected = (unsigned char *)
20575 "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75"
20576 "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6"
20577 "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97"
20578 "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60"
20579 "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf"
20580 "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99"
20581 "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19"
20582 "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68"
20583 "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0"
20584 "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd"
20585 "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8",
20586 .expectedlen = 128,
20587 .addtla = NULL,
20588 .addtlb = NULL,
20589 .addtllen = 0,
20590 .pers = NULL,
20591 .perslen = 0,
20592 }, {
20593 .entropy = (unsigned char *)
20594 "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94"
20595 "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15"
20596 "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4"
20597 "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed",
20598 .entropylen = 48,
20599 .expected = (unsigned char *)
20600 "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5"
20601 "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf"
20602 "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d"
20603 "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6"
20604 "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16"
20605 "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62"
20606 "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d"
20607 "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4"
20608 "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec"
20609 "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f"
20610 "\x50\x9a\x8c\x85\x90\x87\x03\x9c",
20611 .expectedlen = 128,
20612 .addtla = (unsigned char *)
20613 "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d"
20614 "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf"
20615 "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b",
20616 .addtlb = (unsigned char *)
20617 "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9"
20618 "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14"
20619 "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0",
20620 .addtllen = 32,
20621 .pers = NULL,
20622 .perslen = 0,
20623 }, {
20624 .entropy = (unsigned char *)
20625 "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf"
20626 "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54"
20627 "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf"
20628 "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e",
20629 .entropylen = 48,
20630 .expected = (unsigned char *)
20631 "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81"
20632 "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37"
20633 "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10"
20634 "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61"
20635 "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28"
20636 "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f"
20637 "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07"
20638 "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66"
20639 "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2"
20640 "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29"
20641 "\x10\x37\x41\x03\x0c\xcc\x3a\x56",
20642 .expectedlen = 128,
20643 .addtla = NULL,
20644 .addtlb = NULL,
20645 .addtllen = 0,
20646 .pers = (unsigned char *)
20647 "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37"
20648 "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58"
20649 "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9",
20650 .perslen = 32,
20651 }, {
20652 .entropy = (unsigned char *)
20653 "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78"
20654 "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11"
20655 "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb"
20656 "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec",
20657 .entropylen = 48,
20658 .expected = (unsigned char *)
20659 "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0"
20660 "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37"
20661 "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae"
20662 "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0"
20663 "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad"
20664 "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82"
20665 "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7"
20666 "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4"
20667 "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49"
20668 "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30"
20669 "\x35\x24\xcc\x9c\xc5\xea\x54\xa1",
20670 .expectedlen = 128,
20671 .addtla = (unsigned char *)
20672 "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96"
20673 "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62"
20674 "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b",
20675 .addtlb = (unsigned char *)
20676 "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2"
20677 "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25"
20678 "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1",
20679 .addtllen = 32,
20680 .pers = (unsigned char *)
20681 "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8"
20682 "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15"
20683 "\x36\x60\x3b\xca\x37\xc9\xee\x29",
20684 .perslen = 32,
20685 },
20686};
20687
Eric Biggersb13b1e02017-02-24 15:46:59 -080020688static const struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020020689 {
20690 .entropy = (unsigned char *)
20691 "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9"
20692 "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40"
20693 "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9"
20694 "\xac\x9b\xbb\x00",
20695 .entropylen = 40,
20696 .expected = (unsigned char *)
20697 "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17"
20698 "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33"
20699 "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48"
20700 "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79"
20701 "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf"
20702 "\x9a\x9d\xf1\x0d",
20703 .expectedlen = 64,
20704 .addtla = NULL,
20705 .addtlb = NULL,
20706 .addtllen = 0,
20707 .pers = NULL,
20708 .perslen = 0,
20709 },
20710};
20711
Eric Biggersb13b1e02017-02-24 15:46:59 -080020712static const struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020020713 {
20714 .entropy = (unsigned char *)
20715 "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f"
20716 "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec"
20717 "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0"
20718 "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb",
20719 .entropylen = 48,
20720 .expected = (unsigned char *)
20721 "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6"
20722 "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3"
20723 "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf"
20724 "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16"
20725 "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f"
20726 "\xb4\xf0\x7e\x1d",
20727 .expectedlen = 64,
20728 .addtla = NULL,
20729 .addtlb = NULL,
20730 .addtllen = 0,
20731 .pers = NULL,
20732 .perslen = 0,
20733 },
20734};
20735
Eric Biggersb13b1e02017-02-24 15:46:59 -080020736static const struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = {
Stephan Mueller3332ee22014-05-31 17:24:38 +020020737 {
20738 .entropy = (unsigned char *)
20739 "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8"
20740 "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f",
20741 .entropylen = 24,
20742 .expected = (unsigned char *)
20743 "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1"
20744 "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a"
20745 "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3"
20746 "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e"
20747 "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8"
20748 "\xcb\x2d\xd6\xb0",
20749 .expectedlen = 64,
20750 .addtla = NULL,
20751 .addtlb = NULL,
20752 .addtllen = 0,
20753 .pers = NULL,
20754 .perslen = 0,
20755 }, {
20756 .entropy = (unsigned char *)
20757 "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74"
20758 "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd",
20759 .entropylen = 24,
20760 .expected = (unsigned char *)
20761 "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34"
20762 "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21"
20763 "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e"
20764 "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1"
20765 "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc"
20766 "\xc3\xdf\xb3\x81",
20767 .expectedlen = 64,
20768 .addtla = (unsigned char *)
20769 "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6"
20770 "\x91\x4d\x81\x56",
20771 .addtlb = (unsigned char *)
20772 "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb"
20773 "\x4a\x55\xd1\xc6",
20774 .addtllen = 16,
20775 .pers = NULL,
20776 .perslen = 0,
20777 }, {
20778 .entropy = (unsigned char *)
20779 "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9"
20780 "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9",
20781 .entropylen = 24,
20782 .expected = (unsigned char *)
20783 "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e"
20784 "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75"
20785 "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee"
20786 "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb"
20787 "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45"
20788 "\x34\x30\x0c\x3d",
20789 .expectedlen = 64,
20790 .addtla = NULL,
20791 .addtlb = NULL,
20792 .addtllen = 0,
20793 .pers = (unsigned char *)
20794 "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a"
20795 "\x0b\xc6\x97\x54",
20796 .perslen = 16,
20797 }, {
20798 .entropy = (unsigned char *)
20799 "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98"
20800 "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6",
20801 .entropylen = 24,
20802 .expected = (unsigned char *)
20803 "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a"
20804 "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95"
20805 "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f"
20806 "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a"
20807 "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a"
20808 "\x2b\x49\x1e\x5c",
20809 .expectedlen = 64,
20810 .addtla = (unsigned char *)
20811 "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2"
20812 "\x44\x85\xe7\xfe",
20813 .addtlb = (unsigned char *)
20814 "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4"
20815 "\x82\x16\x62\x7f",
20816 .addtllen = 16,
20817 .pers = (unsigned char *)
20818 "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f"
20819 "\x8e\xcf\xe0\x02",
20820 .perslen = 16,
20821 },
20822};
20823
Herbert Xuda7f0332008-07-31 17:08:25 +080020824/* Cast5 test vectors from RFC 2144 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070020825static const struct cipher_testvec cast5_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080020826 {
20827 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
20828 "\x23\x45\x67\x89\x34\x56\x78\x9a",
20829 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070020830 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
20831 .ctext = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2",
20832 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080020833 }, {
20834 .key = "\x01\x23\x45\x67\x12\x34\x56\x78"
20835 "\x23\x45",
20836 .klen = 10,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070020837 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
20838 .ctext = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b",
20839 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080020840 }, {
20841 .key = "\x01\x23\x45\x67\x12",
20842 .klen = 5,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070020843 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
20844 .ctext = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e",
20845 .len = 8,
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020020846 }, { /* Generated from TF test vectors */
20847 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
20848 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
20849 .klen = 16,
20850 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070020851 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020020852 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
20853 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
20854 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
20855 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
20856 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
20857 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
20858 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
20859 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
20860 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
20861 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
20862 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
20863 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
20864 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
20865 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
20866 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
20867 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
20868 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
20869 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
20870 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
20871 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
20872 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
20873 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
20874 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
20875 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
20876 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
20877 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
20878 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
20879 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
20880 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
20881 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
20882 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
20883 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
20884 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
20885 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
20886 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
20887 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
20888 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
20889 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
20890 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
20891 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
20892 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
20893 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
20894 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
20895 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
20896 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
20897 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
20898 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
20899 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
20900 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
20901 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
20902 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
20903 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
20904 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
20905 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
20906 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
20907 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
20908 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
20909 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
20910 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
20911 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
20912 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070020913 .ctext = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020020914 "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA"
20915 "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E"
20916 "\xD1\x39\x34\x92\x8F\xFA\x14\xF1"
20917 "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2"
20918 "\x20\xD9\x42\x06\xC9\x0B\x10\x04"
20919 "\xF8\x79\xCD\x32\x86\x75\x4C\xB6"
20920 "\x7B\x1C\x52\xB1\x91\x64\x22\x4B"
20921 "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F"
20922 "\x3F\xF4\x43\x96\x73\x0D\xA2\x05"
20923 "\xDB\xFD\x28\x90\x2C\x56\xB9\x37"
20924 "\x5B\x69\x0C\xAD\x84\x67\xFF\x15"
20925 "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A"
20926 "\xED\x34\x35\x78\x6B\x91\xC9\x32"
20927 "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39"
20928 "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2"
20929 "\x1C\xFD\x0E\x05\x07\xF4\x10\xED"
20930 "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22"
20931 "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9"
20932 "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77"
20933 "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC"
20934 "\xBA\x5C\x80\xD1\x91\x65\x51\x1B"
20935 "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6"
20936 "\x78\x75\x37\x55\xC1\xF5\x90\x40"
20937 "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E"
20938 "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E"
20939 "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD"
20940 "\xE0\x69\x77\x50\xC7\x0C\x99\xCA"
20941 "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C"
20942 "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9"
20943 "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48"
20944 "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9"
20945 "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6"
20946 "\x55\xF4\x06\xBB\x49\x53\x8B\x1B"
20947 "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC"
20948 "\x93\x85\x90\x0F\x0A\x68\x40\x2A"
20949 "\x95\xED\x2D\x88\xBF\x71\xD0\xBB"
20950 "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05"
20951 "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2"
20952 "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8"
20953 "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF"
20954 "\xDD\x70\x37\x63\xAA\xA5\x83\x20"
20955 "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6"
20956 "\x79\x03\xA0\xDA\xA3\x79\x21\xBD"
20957 "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE"
20958 "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06"
20959 "\xBB\xE3\xAB\x06\x21\x82\xB8\x32"
20960 "\x31\x34\x2A\xA7\x1F\x64\x99\xBF"
20961 "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48"
20962 "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59"
20963 "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF"
20964 "\xF0\x40\x5F\xCF\xE3\x58\x52\x67"
20965 "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F"
20966 "\x58\x56\xDD\x94\x1F\x71\x8D\xF4"
20967 "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF"
20968 "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57"
20969 "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84"
20970 "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37"
20971 "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33"
20972 "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE"
20973 "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57"
20974 "\xF5\xBC\x25\xD6\x02\x56\x57\x1C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070020975 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +080020976 },
20977};
20978
Eric Biggers92a4c9f2018-05-20 22:50:29 -070020979static const struct cipher_testvec cast5_cbc_tv_template[] = {
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020020980 { /* Generated from TF test vectors */
20981 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
20982 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
20983 .klen = 16,
20984 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggerscdc69462019-02-14 00:03:52 -080020985 .iv_out = "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070020986 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020020987 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
20988 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
20989 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
20990 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
20991 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
20992 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
20993 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
20994 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
20995 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
20996 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
20997 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
20998 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
20999 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21000 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21001 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21002 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21003 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21004 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21005 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21006 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21007 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21008 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21009 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21010 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21011 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21012 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21013 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21014 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21015 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21016 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21017 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21018 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21019 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21020 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21021 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21022 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21023 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21024 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21025 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21026 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21027 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21028 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21029 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21030 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21031 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21032 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21033 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21034 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21035 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21036 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21037 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21038 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21039 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21040 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21041 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21042 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21043 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21044 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21045 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21046 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21047 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021048 .ctext = "\x05\x28\xCE\x61\x90\x80\xE1\x78"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020021049 "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A"
21050 "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB"
21051 "\xDA\xF0\x6E\x77\x14\x47\x82\xBA"
21052 "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F"
21053 "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39"
21054 "\xA7\xFB\x0D\x05\x00\xF3\x58\x67"
21055 "\x60\xEC\x73\x77\x46\x85\x9B\x6A"
21056 "\x08\x3E\xBE\x59\xFB\xE4\x96\x34"
21057 "\xB4\x05\x49\x1A\x97\x43\xAD\xA0"
21058 "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8"
21059 "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA"
21060 "\xA7\xF1\x33\x67\x90\x23\x0D\xEE"
21061 "\x81\xD5\x78\x4F\xD3\x63\xEA\x46"
21062 "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10"
21063 "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D"
21064 "\x36\x7C\x56\x14\x54\x83\xFA\xA1"
21065 "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6"
21066 "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8"
21067 "\xA7\xD9\x67\x92\x5C\x13\xB4\x71"
21068 "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C"
21069 "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37"
21070 "\xC8\x52\x60\xD9\xE7\xCA\x60\x98"
21071 "\xED\xCD\xE8\x60\x83\xAD\x34\x4D"
21072 "\x96\x4A\x99\x2B\xB7\x14\x75\x66"
21073 "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56"
21074 "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3"
21075 "\x18\x38\x09\x9C\x0E\x8B\x86\x07"
21076 "\x90\x12\x37\x49\x27\x98\x69\x18"
21077 "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85"
21078 "\x4B\x22\x97\x07\xB6\x97\xE9\x95"
21079 "\x0F\x88\x36\xA9\x44\x00\xC6\xE9"
21080 "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE"
21081 "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49"
21082 "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97"
21083 "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE"
21084 "\x03\x55\x0E\x02\x41\x4A\x45\x06"
21085 "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20"
21086 "\x94\x02\x30\xD2\xFC\x29\xFA\x8E"
21087 "\x34\xA0\x31\xB8\x34\xBA\xAE\x54"
21088 "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F"
21089 "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A"
21090 "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3"
21091 "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A"
21092 "\xB6\x37\x21\x19\x55\xC2\xBD\x99"
21093 "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2"
21094 "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2"
21095 "\x11\xB4\x18\x17\x1A\x65\x92\x56"
21096 "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1"
21097 "\x1A\x01\x22\x45\x17\x62\x52\x6C"
21098 "\x91\x44\xCF\x98\xC7\xC0\x79\x26"
21099 "\x32\x66\x6F\x23\x7F\x94\x36\x88"
21100 "\x3C\xC9\xD0\xB7\x45\x30\x31\x86"
21101 "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B"
21102 "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86"
21103 "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA"
21104 "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9"
21105 "\x7C\xEF\x53\xB7\x60\x72\x41\xBF"
21106 "\x29\x00\x87\x02\xAF\x44\x4C\xB7"
21107 "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7"
21108 "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6"
21109 "\x1D\x18\x66\x44\x5B\x8F\x14\xEB",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021110 .len = 496,
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020021111 },
21112};
21113
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021114static const struct cipher_testvec cast5_ctr_tv_template[] = {
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020021115 { /* Generated from TF test vectors */
21116 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21117 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21118 .klen = 16,
21119 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggerse674dbc2019-02-14 00:03:53 -080021120 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x62",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021121 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020021122 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030021123 "\x3A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021124 .ctext = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030021125 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
21126 "\x0C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021127 .len = 17,
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030021128 }, { /* Generated from TF test vectors */
21129 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21130 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A",
21131 .klen = 16,
21132 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F",
Eric Biggerse674dbc2019-02-14 00:03:53 -080021133 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x9D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021134 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna9cac3a22012-09-19 09:42:54 +030021135 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020021136 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21137 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21138 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
21139 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21140 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21141 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21142 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21143 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21144 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21145 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21146 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21147 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21148 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21149 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21150 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21151 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21152 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21153 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21154 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21155 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21156 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21157 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21158 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21159 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21160 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21161 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21162 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21163 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21164 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21165 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21166 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21167 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21168 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21169 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21170 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21171 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21172 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21173 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21174 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21175 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21176 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21177 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21178 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21179 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21180 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21181 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21182 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21183 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21184 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21185 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21186 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21187 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21188 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21189 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21190 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21191 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21192 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21193 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21194 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
21195 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021196 .ctext = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39"
Johannes Goetzfrieda2c58262012-07-11 19:37:21 +020021197 "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8"
21198 "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F"
21199 "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF"
21200 "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44"
21201 "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C"
21202 "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF"
21203 "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B"
21204 "\x64\xB0\x7B\x86\x29\x1D\x9F\x17"
21205 "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3"
21206 "\x88\x18\x52\x56\x48\x58\xD1\x6B"
21207 "\xE8\x74\x6E\x48\xB0\x2E\x69\x63"
21208 "\x32\xAA\xAC\x26\x55\x45\x94\xDE"
21209 "\x30\x26\x26\xE6\x08\x82\x2F\x5F"
21210 "\xA7\x15\x94\x07\x75\x2D\xC6\x3A"
21211 "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56"
21212 "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B"
21213 "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7"
21214 "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5"
21215 "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F"
21216 "\x3B\x29\xF9\xB4\x32\x62\x69\xBF"
21217 "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3"
21218 "\x44\x67\x90\x20\xAC\x41\xDF\x43"
21219 "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB"
21220 "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60"
21221 "\xC7\xC9\x71\x34\x44\xCE\x05\xFD"
21222 "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C"
21223 "\xAE\x59\x0F\x07\x88\x79\x53\x26"
21224 "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62"
21225 "\xD0\x82\x65\x66\xE4\x2A\x29\x1C"
21226 "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9"
21227 "\xED\xC4\x13\x52\x75\xDC\xE4\xF9"
21228 "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA"
21229 "\x49\xA1\x86\x86\x37\x5C\x6B\x3D"
21230 "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8"
21231 "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0"
21232 "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2"
21233 "\x23\xD3\xC7\x27\x15\x04\x2C\x27"
21234 "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D"
21235 "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14"
21236 "\x4B\x78\xC4\xDE\x07\x6A\x12\x02"
21237 "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02"
21238 "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18"
21239 "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06"
21240 "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E"
21241 "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66"
21242 "\x16\xB5\xC8\x45\x21\x37\xBD\x24"
21243 "\xA9\xD5\x36\x12\x9F\x6E\x67\x80"
21244 "\x87\x54\xD5\xAF\x97\xE1\x15\xA7"
21245 "\x11\xF0\x63\x7B\xE1\x44\x14\x1C"
21246 "\x06\x32\x05\x8C\x6C\xDB\x9B\x36"
21247 "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C"
21248 "\x76\x36\x43\xE8\x16\x60\xB5\xF3"
21249 "\xDF\x5A\xC6\xA5\x69\x78\x59\x51"
21250 "\x54\x68\x65\x06\x84\xDE\x3D\xAE"
21251 "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6"
21252 "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE"
21253 "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B"
21254 "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1"
21255 "\x91\x01\xD7\x21\x23\x28\x1E\xCC"
21256 "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA"
21257 "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021258 .len = 496,
Herbert Xuda7f0332008-07-31 17:08:25 +080021259 },
21260};
21261
21262/*
21263 * ARC4 test vectors from OpenSSL
21264 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021265static const struct cipher_testvec arc4_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021266 {
21267 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21268 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021269 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21270 .ctext = "\x75\xb7\x87\x80\x99\xe0\xc5\x96",
21271 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021272 }, {
21273 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21274 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021275 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
21276 .ctext = "\x74\x94\xc2\xe7\x10\x4b\x08\x79",
21277 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021278 }, {
21279 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
21280 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021281 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
21282 .ctext = "\xde\x18\x89\x41\xa3\x37\x5d\x3a",
21283 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021284 }, {
21285 .key = "\xef\x01\x23\x45",
21286 .klen = 4,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021287 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080021288 "\x00\x00\x00\x00\x00\x00\x00\x00"
21289 "\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021290 .ctext = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
Herbert Xuda7f0332008-07-31 17:08:25 +080021291 "\xbd\x61\x5a\x11\x62\xe1\xc7\xba"
21292 "\x36\xb6\x78\x58",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021293 .len = 20,
Herbert Xuda7f0332008-07-31 17:08:25 +080021294 }, {
21295 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef",
21296 .klen = 8,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021297 .ptext = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
Herbert Xuda7f0332008-07-31 17:08:25 +080021298 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
21299 "\x12\x34\x56\x78\x9A\xBC\xDE\xF0"
21300 "\x12\x34\x56\x78",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021301 .ctext = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89"
Herbert Xuda7f0332008-07-31 17:08:25 +080021302 "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c"
21303 "\x89\x2e\xbe\x30\x14\x3c\xe2\x87"
21304 "\x40\x01\x1e\xcf",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021305 .len = 28,
Herbert Xuda7f0332008-07-31 17:08:25 +080021306 }, {
21307 .key = "\xef\x01\x23\x45",
21308 .klen = 4,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021309 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080021310 "\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021311 .ctext = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf"
Herbert Xuda7f0332008-07-31 17:08:25 +080021312 "\xbd\x61",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021313 .len = 10,
Herbert Xuda7f0332008-07-31 17:08:25 +080021314 }, {
21315 .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"
21316 "\x00\x00\x00\x00\x00\x00\x00\x00",
21317 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021318 .ptext = "\x01\x23\x45\x67\x89\xAB\xCD\xEF",
21319 .ctext = "\x69\x72\x36\x59\x1B\x52\x42\xB1",
21320 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021321 },
21322};
21323
21324/*
21325 * TEA test vectors
21326 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021327static const struct cipher_testvec tea_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021328 {
21329 .key = zeroed_string,
21330 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021331 .ptext = zeroed_string,
21332 .ctext = "\x0a\x3a\xea\x41\x40\xa9\xba\x94",
21333 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021334 }, {
21335 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
21336 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
21337 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021338 .ptext = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
21339 .ctext = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09",
21340 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021341 }, {
21342 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
21343 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
21344 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021345 .ptext = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
Herbert Xuda7f0332008-07-31 17:08:25 +080021346 "\x65\x73\x74\x5f\x76\x65\x63\x74",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021347 .ctext = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e"
Herbert Xuda7f0332008-07-31 17:08:25 +080021348 "\xdd\x89\xa1\x25\x04\x21\xdf\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021349 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021350 }, {
21351 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
21352 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
21353 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021354 .ptext = "\x54\x65\x61\x20\x69\x73\x20\x67"
Herbert Xuda7f0332008-07-31 17:08:25 +080021355 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
21356 "\x79\x6f\x75\x21\x21\x21\x20\x72"
21357 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021358 .ctext = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47"
Herbert Xuda7f0332008-07-31 17:08:25 +080021359 "\x94\x18\x95\x91\xa9\xfc\x49\xf8"
21360 "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a"
21361 "\x07\x89\x73\xc2\x45\x92\xc6\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021362 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080021363 }
21364};
21365
21366/*
21367 * XTEA test vectors
21368 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021369static const struct cipher_testvec xtea_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021370 {
21371 .key = zeroed_string,
21372 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021373 .ptext = zeroed_string,
21374 .ctext = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7",
21375 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021376 }, {
21377 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
21378 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
21379 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021380 .ptext = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
21381 .ctext = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8",
21382 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021383 }, {
21384 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
21385 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
21386 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021387 .ptext = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
Herbert Xuda7f0332008-07-31 17:08:25 +080021388 "\x65\x73\x74\x5f\x76\x65\x63\x74",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021389 .ctext = "\x3e\xce\xae\x22\x60\x56\xa8\x9d"
Herbert Xuda7f0332008-07-31 17:08:25 +080021390 "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021391 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021392 }, {
21393 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
21394 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
21395 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021396 .ptext = "\x54\x65\x61\x20\x69\x73\x20\x67"
Herbert Xuda7f0332008-07-31 17:08:25 +080021397 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
21398 "\x79\x6f\x75\x21\x21\x21\x20\x72"
21399 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021400 .ctext = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a"
Herbert Xuda7f0332008-07-31 17:08:25 +080021401 "\x86\xff\x6f\xd0\xe3\x87\x70\x07"
21402 "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4"
21403 "\x73\xa2\xfa\xc9\x16\x59\x5d\x81",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021404 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080021405 }
21406};
21407
21408/*
21409 * KHAZAD test vectors.
21410 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021411static const struct cipher_testvec khazad_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021412 {
21413 .key = "\x80\x00\x00\x00\x00\x00\x00\x00"
21414 "\x00\x00\x00\x00\x00\x00\x00\x00",
21415 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021416 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
21417 .ctext = "\x49\xa4\xce\x32\xac\x19\x0e\x3f",
21418 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021419 }, {
21420 .key = "\x38\x38\x38\x38\x38\x38\x38\x38"
21421 "\x38\x38\x38\x38\x38\x38\x38\x38",
21422 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021423 .ptext = "\x38\x38\x38\x38\x38\x38\x38\x38",
21424 .ctext = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9",
21425 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021426 }, {
21427 .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2"
21428 "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
21429 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021430 .ptext = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2",
21431 .ctext = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c",
21432 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021433 }, {
21434 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
21435 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
21436 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021437 .ptext = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
21438 .ctext = "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
21439 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021440 }, {
21441 .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
21442 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
21443 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021444 .ptext = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f"
Herbert Xuda7f0332008-07-31 17:08:25 +080021445 "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021446 .ctext = "\x04\x74\xf5\x70\x50\x16\xd3\xb8"
Herbert Xuda7f0332008-07-31 17:08:25 +080021447 "\x04\x74\xf5\x70\x50\x16\xd3\xb8",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021448 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021449 },
21450};
21451
21452/*
21453 * Anubis test vectors.
21454 */
21455
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021456static const struct cipher_testvec anubis_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021457 {
21458 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
21459 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
21460 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021461 .ptext = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
Herbert Xuda7f0332008-07-31 17:08:25 +080021462 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021463 .ctext = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
Herbert Xuda7f0332008-07-31 17:08:25 +080021464 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021465 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021466 }, {
21467
21468 .key = "\x03\x03\x03\x03\x03\x03\x03\x03"
21469 "\x03\x03\x03\x03\x03\x03\x03\x03"
21470 "\x03\x03\x03\x03",
21471 .klen = 20,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021472 .ptext = "\x03\x03\x03\x03\x03\x03\x03\x03"
Herbert Xuda7f0332008-07-31 17:08:25 +080021473 "\x03\x03\x03\x03\x03\x03\x03\x03",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021474 .ctext = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49"
Herbert Xuda7f0332008-07-31 17:08:25 +080021475 "\x87\x41\x6f\x82\x0a\x98\x64\xae",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021476 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021477 }, {
21478 .key = "\x24\x24\x24\x24\x24\x24\x24\x24"
21479 "\x24\x24\x24\x24\x24\x24\x24\x24"
21480 "\x24\x24\x24\x24\x24\x24\x24\x24"
21481 "\x24\x24\x24\x24",
21482 .klen = 28,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021483 .ptext = "\x24\x24\x24\x24\x24\x24\x24\x24"
Herbert Xuda7f0332008-07-31 17:08:25 +080021484 "\x24\x24\x24\x24\x24\x24\x24\x24",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021485 .ctext = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d"
Herbert Xuda7f0332008-07-31 17:08:25 +080021486 "\x06\xd3\x61\x27\xfd\x13\x9e\xde",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021487 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021488 }, {
21489 .key = "\x25\x25\x25\x25\x25\x25\x25\x25"
21490 "\x25\x25\x25\x25\x25\x25\x25\x25"
21491 "\x25\x25\x25\x25\x25\x25\x25\x25"
21492 "\x25\x25\x25\x25\x25\x25\x25\x25",
21493 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021494 .ptext = "\x25\x25\x25\x25\x25\x25\x25\x25"
Herbert Xuda7f0332008-07-31 17:08:25 +080021495 "\x25\x25\x25\x25\x25\x25\x25\x25",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021496 .ctext = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4"
Herbert Xuda7f0332008-07-31 17:08:25 +080021497 "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021498 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021499 }, {
21500 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
21501 "\x35\x35\x35\x35\x35\x35\x35\x35"
21502 "\x35\x35\x35\x35\x35\x35\x35\x35"
21503 "\x35\x35\x35\x35\x35\x35\x35\x35"
21504 "\x35\x35\x35\x35\x35\x35\x35\x35",
21505 .klen = 40,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021506 .ptext = "\x35\x35\x35\x35\x35\x35\x35\x35"
Herbert Xuda7f0332008-07-31 17:08:25 +080021507 "\x35\x35\x35\x35\x35\x35\x35\x35",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021508 .ctext = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
Herbert Xuda7f0332008-07-31 17:08:25 +080021509 "\x9e\xc6\x84\x0f\x17\x21\x07\xee",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021510 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021511 },
21512};
21513
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021514static const struct cipher_testvec anubis_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021515 {
21516 .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
21517 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
21518 .klen = 16,
Eric Biggerscdc69462019-02-14 00:03:52 -080021519 .iv_out = "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
21520 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021521 .ptext = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
Herbert Xuda7f0332008-07-31 17:08:25 +080021522 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
21523 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe"
21524 "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021525 .ctext = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f"
Herbert Xuda7f0332008-07-31 17:08:25 +080021526 "\x08\xb7\x52\x8e\x6e\x6e\x86\x90"
21527 "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66"
21528 "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021529 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080021530 }, {
21531 .key = "\x35\x35\x35\x35\x35\x35\x35\x35"
21532 "\x35\x35\x35\x35\x35\x35\x35\x35"
21533 "\x35\x35\x35\x35\x35\x35\x35\x35"
21534 "\x35\x35\x35\x35\x35\x35\x35\x35"
21535 "\x35\x35\x35\x35\x35\x35\x35\x35",
21536 .klen = 40,
Eric Biggerscdc69462019-02-14 00:03:52 -080021537 .iv_out = "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
21538 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021539 .ptext = "\x35\x35\x35\x35\x35\x35\x35\x35"
Herbert Xuda7f0332008-07-31 17:08:25 +080021540 "\x35\x35\x35\x35\x35\x35\x35\x35"
21541 "\x35\x35\x35\x35\x35\x35\x35\x35"
21542 "\x35\x35\x35\x35\x35\x35\x35\x35",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021543 .ctext = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97"
Herbert Xuda7f0332008-07-31 17:08:25 +080021544 "\x9e\xc6\x84\x0f\x17\x21\x07\xee"
21545 "\xa2\xbc\x06\x98\xc6\x4b\xda\x75"
21546 "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021547 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080021548 },
21549};
21550
21551/*
21552 * XETA test vectors
21553 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021554static const struct cipher_testvec xeta_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021555 {
21556 .key = zeroed_string,
21557 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021558 .ptext = zeroed_string,
21559 .ctext = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45",
21560 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021561 }, {
21562 .key = "\x2b\x02\x05\x68\x06\x14\x49\x76"
21563 "\x77\x5d\x0e\x26\x6c\x28\x78\x43",
21564 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021565 .ptext = "\x74\x65\x73\x74\x20\x6d\x65\x2e",
21566 .ctext = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3",
21567 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021568 }, {
21569 .key = "\x09\x65\x43\x11\x66\x44\x39\x25"
21570 "\x51\x3a\x16\x10\x0a\x08\x12\x6e",
21571 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021572 .ptext = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74"
Herbert Xuda7f0332008-07-31 17:08:25 +080021573 "\x65\x73\x74\x5f\x76\x65\x63\x74",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021574 .ctext = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea"
Herbert Xuda7f0332008-07-31 17:08:25 +080021575 "\x61\x35\xaa\xed\xb5\xcb\x71\x2c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021576 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021577 }, {
21578 .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c"
21579 "\x5d\x04\x16\x36\x15\x72\x63\x2f",
21580 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021581 .ptext = "\x54\x65\x61\x20\x69\x73\x20\x67"
Herbert Xuda7f0332008-07-31 17:08:25 +080021582 "\x6f\x6f\x64\x20\x66\x6f\x72\x20"
21583 "\x79\x6f\x75\x21\x21\x21\x20\x72"
21584 "\x65\x61\x6c\x6c\x79\x21\x21\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021585 .ctext = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1"
Herbert Xuda7f0332008-07-31 17:08:25 +080021586 "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4"
21587 "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f"
21588 "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021589 .len = 32,
Herbert Xuda7f0332008-07-31 17:08:25 +080021590 }
21591};
21592
21593/*
21594 * FCrypt test vectors
21595 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021596static const struct cipher_testvec fcrypt_pcbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021597 { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */
21598 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
21599 .klen = 8,
21600 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021601 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00",
21602 .ctext = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41",
21603 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021604 }, {
21605 .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66",
21606 .klen = 8,
21607 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021608 .ptext = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0",
21609 .ctext = "\xD8\xED\x78\x74\x77\xEC\x06\x80",
21610 .len = 8,
Herbert Xuda7f0332008-07-31 17:08:25 +080021611 }, { /* From Arla */
21612 .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
21613 .klen = 8,
21614 .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021615 .ptext = "The quick brown fox jumps over the lazy dogs.\0\0",
21616 .ctext = "\x00\xf0\x0e\x11\x75\xe6\x23\x82"
Herbert Xuda7f0332008-07-31 17:08:25 +080021617 "\xee\xac\x98\x62\x44\x51\xe4\x84"
21618 "\xc3\x59\xd8\xaa\x64\x60\xae\xf7"
21619 "\xd2\xd9\x13\x79\x72\xa3\x45\x03"
21620 "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1"
21621 "\xf8\x91\x3c\xac\x44\x22\x92\xef",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021622 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080021623 }, {
21624 .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10",
21625 .klen = 8,
21626 .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021627 .ptext = "The quick brown fox jumps over the lazy dogs.\0\0",
21628 .ctext = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c"
Herbert Xuda7f0332008-07-31 17:08:25 +080021629 "\x01\x88\x7f\x3e\x31\x6e\x62\x9d"
21630 "\xd8\xe0\x57\xa3\x06\x3a\x42\x58"
21631 "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0"
21632 "\x19\x89\x09\x1c\x2a\x8e\x8c\x94"
21633 "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021634 .len = 48,
Herbert Xuda7f0332008-07-31 17:08:25 +080021635 }
21636};
21637
21638/*
21639 * CAMELLIA test vectors.
21640 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021641static const struct cipher_testvec camellia_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021642 {
21643 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
21644 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
21645 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021646 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Herbert Xuda7f0332008-07-31 17:08:25 +080021647 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021648 .ctext = "\x67\x67\x31\x38\x54\x96\x69\x73"
Herbert Xuda7f0332008-07-31 17:08:25 +080021649 "\x08\x57\x06\x56\x48\xea\xbe\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021650 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021651 }, {
21652 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
21653 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
21654 "\x00\x11\x22\x33\x44\x55\x66\x77",
21655 .klen = 24,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021656 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Herbert Xuda7f0332008-07-31 17:08:25 +080021657 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021658 .ctext = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8"
Herbert Xuda7f0332008-07-31 17:08:25 +080021659 "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021660 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021661 }, {
21662 .key = "\x01\x23\x45\x67\x89\xab\xcd\xef"
21663 "\xfe\xdc\xba\x98\x76\x54\x32\x10"
21664 "\x00\x11\x22\x33\x44\x55\x66\x77"
21665 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff",
21666 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021667 .ptext = "\x01\x23\x45\x67\x89\xab\xcd\xef"
Herbert Xuda7f0332008-07-31 17:08:25 +080021668 "\xfe\xdc\xba\x98\x76\x54\x32\x10",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021669 .ctext = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c"
Herbert Xuda7f0332008-07-31 17:08:25 +080021670 "\x20\xef\x7c\x91\x9e\x3a\x75\x09",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021671 .len = 16,
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030021672 }, { /* Generated with Crypto++ */
Jussi Kivilinna08406052012-03-05 20:26:21 +020021673 .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C"
21674 "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D"
21675 "\x4A\x27\x04\xE1\x27\x04\xE1\xBE"
21676 "\x9B\x78\xBE\x9B\x78\x55\x32\x0F",
21677 .klen = 32,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021678 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020021679 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21680 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21681 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21682 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030021683 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21684 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21685 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21686 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21687 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21688 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21689 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21690 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21691 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21692 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21693 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21694 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21695 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21696 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21697 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21698 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21699 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21700 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21701 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21702 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21703 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
21704 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
21705 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
21706 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
21707 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
21708 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
21709 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
21710 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
21711 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
21712 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
21713 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
21714 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
21715 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
21716 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
21717 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
21718 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
21719 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
21720 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
21721 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
21722 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
21723 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
21724 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
21725 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
21726 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
21727 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
21728 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
21729 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
21730 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
21731 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
21732 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
21733 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
21734 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
21735 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
21736 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
21737 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
21738 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030021739 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
21740 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
21741 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
21742 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
21743 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
21744 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
21745 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
21746 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
21747 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
21748 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
21749 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
21750 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
21751 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
21752 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
21753 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
21754 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
21755 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
21756 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
21757 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
21758 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
21759 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
21760 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
21761 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
21762 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
21763 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
21764 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
21765 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
21766 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
21767 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
21768 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
21769 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
21770 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
21771 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
21772 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
21773 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
21774 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
21775 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
21776 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
21777 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
21778 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
21779 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
21780 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
21781 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
21782 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
21783 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
21784 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
21785 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
21786 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
21787 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
21788 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
21789 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
21790 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
21791 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
21792 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
21793 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
21794 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
21795 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
21796 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
21797 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
21798 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
21799 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
21800 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
21801 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
21802 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
21803 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021804 .ctext = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA"
Jussi Kivilinna08406052012-03-05 20:26:21 +020021805 "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7"
21806 "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04"
21807 "\xB3\xC2\xB9\x03\xAA\x91\x56\x29"
21808 "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030021809 "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A"
21810 "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8"
21811 "\x01\x9B\x17\x0A\x29\xE7\x61\x28"
21812 "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B"
21813 "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B"
21814 "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E"
21815 "\x83\x54\xAE\x7C\x82\x46\x10\xC9"
21816 "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC"
21817 "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4"
21818 "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C"
21819 "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB"
21820 "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98"
21821 "\x9F\x32\xBA\xA2\x18\xCF\x55\x43"
21822 "\xFE\x80\x8F\x60\xCF\x05\x30\x9B"
21823 "\x70\x50\x1E\x9C\x08\x87\xE6\x20"
21824 "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2"
21825 "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6"
21826 "\xB8\x30\x86\x3B\x0F\x94\x1E\x79"
21827 "\x13\x94\x35\xA2\xB1\x35\x5B\x05"
21828 "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE"
21829 "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A"
21830 "\xF5\x33\xC8\x19\x45\x14\x44\x5D"
21831 "\xFE\x94\x7B\xBB\x63\x13\x57\xC3"
21832 "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A"
21833 "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF"
21834 "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8"
21835 "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C"
21836 "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB"
21837 "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74"
21838 "\x60\x64\x0D\x1C\x80\xD1\x20\x9E"
21839 "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96"
21840 "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B"
21841 "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01"
21842 "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E"
21843 "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B"
21844 "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D"
21845 "\x5B\x55\x23\xB7\x40\x31\xDE\xEE"
21846 "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42"
21847 "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3"
21848 "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF"
21849 "\x63\xA9\xF0\x6A\x08\x46\xBD\x48"
21850 "\x83\x06\xAB\x82\x99\x01\x16\x1A"
21851 "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F"
21852 "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC"
21853 "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B"
21854 "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0"
21855 "\xCD\xB6\x45\xB2\x29\x2E\x34\x23"
21856 "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F"
21857 "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA"
21858 "\x74\x83\x29\x05\xE8\xC4\x4D\x01"
21859 "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99"
21860 "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30"
21861 "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C"
21862 "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3"
21863 "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44"
21864 "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030021865 "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB"
21866 "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD"
21867 "\xF7\x90\x68\xCF\xC9\x11\x52\x3E"
21868 "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A"
21869 "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E"
21870 "\xED\x28\x39\xE9\x63\xED\x41\x70"
21871 "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB"
21872 "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60"
21873 "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B"
21874 "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5"
21875 "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E"
21876 "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23"
21877 "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9"
21878 "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7"
21879 "\xCA\xA8\xA2\x9E\x13\x87\x57\x92"
21880 "\x64\x7C\x85\x0B\xB3\x29\x37\xD8"
21881 "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF"
21882 "\x2E\x45\x83\xB6\xD8\x54\x00\x89"
21883 "\xF6\xBC\x3A\x7A\x88\x58\x51\xED"
21884 "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42"
21885 "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC"
21886 "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1"
21887 "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91"
21888 "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E"
21889 "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15"
21890 "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86"
21891 "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4"
21892 "\x7F\x95\x10\xF7\xAB\x3F\x92\x23"
21893 "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43"
21894 "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2"
21895 "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56"
21896 "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4"
21897 "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F"
21898 "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4"
21899 "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2"
21900 "\x39\x25\x55\x20\x5A\xA6\x02\x9F"
21901 "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B"
21902 "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF"
21903 "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E"
21904 "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78"
21905 "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA"
21906 "\xED\x87\x98\xAC\xFE\x48\x97\x6D"
21907 "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14"
21908 "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C"
21909 "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55"
21910 "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55"
21911 "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C"
21912 "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC"
21913 "\xF0\x33\x52\x29\x70\xF9\x5C\xE9"
21914 "\xAC\x1F\xB5\x73\x56\x66\x54\xAF"
21915 "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3"
21916 "\xAE\x47\xB6\x69\x86\xE9\x01\x31"
21917 "\x83\x18\x3D\xF4\x74\x7B\xF9\x42"
21918 "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6"
21919 "\x2B\x20\x63\xDA\x49\x65\x5E\x8B"
21920 "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34"
21921 "\xD3\x52\xFC\x68\x00\x43\x1B\x37"
21922 "\x31\x93\x51\x1C\x63\x97\x70\xB0"
21923 "\x99\x78\x83\x13\xFD\xCF\x53\x81"
21924 "\x36\x46\xB5\x42\x52\x2F\x32\xEB"
21925 "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC"
21926 "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A"
21927 "\xAE\xEF\x3E\x82\x12\x0B\x74\x72"
21928 "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55"
21929 "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021930 .len = 1008,
Jussi Kivilinna08406052012-03-05 20:26:21 +020021931 },
Herbert Xuda7f0332008-07-31 17:08:25 +080021932};
21933
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021934static const struct cipher_testvec camellia_cbc_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080021935 {
21936 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
21937 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
21938 .klen = 16,
21939 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
21940 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
Eric Biggerscdc69462019-02-14 00:03:52 -080021941 .iv_out = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
21942 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021943 .ptext = "Single block msg",
21944 .ctext = "\xea\x32\x12\x76\x3b\x50\x10\xe7"
Herbert Xuda7f0332008-07-31 17:08:25 +080021945 "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021946 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080021947 }, {
21948 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
21949 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
21950 .klen = 16,
21951 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
21952 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
Eric Biggerscdc69462019-02-14 00:03:52 -080021953 .iv_out = "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
21954 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021955 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080021956 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
21957 "\x10\x11\x12\x13\x14\x15\x16\x17"
21958 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021959 .ctext = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01"
Herbert Xuda7f0332008-07-31 17:08:25 +080021960 "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd"
21961 "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0"
21962 "\x15\x78\xe0\x5e\xf2\xcb\x87\x16",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021963 .len = 32,
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030021964 }, { /* Generated with Crypto++ */
Jussi Kivilinna08406052012-03-05 20:26:21 +020021965 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
21966 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
21967 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
21968 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
21969 .klen = 32,
21970 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
21971 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerscdc69462019-02-14 00:03:52 -080021972 .iv_out = "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
21973 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070021974 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020021975 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
21976 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
21977 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
21978 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030021979 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
21980 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
21981 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
21982 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
21983 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
21984 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
21985 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
21986 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
21987 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
21988 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
21989 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
21990 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
21991 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
21992 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
21993 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
21994 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
21995 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
21996 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
21997 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
21998 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
21999 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22000 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22001 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22002 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22003 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22004 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22005 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22006 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22007 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22008 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22009 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22010 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22011 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22012 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22013 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22014 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22015 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22016 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22017 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22018 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22019 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22020 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22021 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22022 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22023 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22024 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22025 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22026 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22027 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22028 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22029 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22030 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22031 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22032 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22033 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22034 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030022035 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
22036 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
22037 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
22038 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
22039 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
22040 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
22041 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
22042 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
22043 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
22044 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
22045 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
22046 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
22047 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
22048 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
22049 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
22050 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
22051 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
22052 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
22053 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
22054 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
22055 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
22056 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
22057 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
22058 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
22059 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
22060 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
22061 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
22062 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
22063 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
22064 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
22065 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
22066 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
22067 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
22068 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
22069 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
22070 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
22071 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
22072 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
22073 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
22074 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
22075 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
22076 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
22077 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
22078 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
22079 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
22080 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
22081 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
22082 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
22083 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
22084 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
22085 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
22086 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
22087 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
22088 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
22089 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
22090 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
22091 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
22092 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
22093 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
22094 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
22095 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
22096 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
22097 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
22098 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
22099 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022100 .ctext = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022101 "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40"
22102 "\x88\x39\xE3\xFD\x94\x4B\x25\x58"
22103 "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B"
22104 "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030022105 "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01"
22106 "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83"
22107 "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E"
22108 "\x56\xC8\x18\x3D\x79\x86\x97\xEF"
22109 "\x57\x0E\x63\xA1\xC1\x41\x48\xB8"
22110 "\x98\xB7\x51\x6D\x18\xF6\x19\x82"
22111 "\x37\x49\x88\xA4\xEF\x91\x21\x47"
22112 "\x03\x28\xEA\x42\xF4\xFB\x7A\x58"
22113 "\x28\x90\x77\x46\xD8\xD2\x35\x16"
22114 "\x44\xA9\x9E\x49\x52\x2A\xE4\x16"
22115 "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6"
22116 "\xCF\x76\x91\x89\x8A\x94\x39\xFA"
22117 "\x6B\x5F\x63\x53\x74\x43\x91\xF5"
22118 "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F"
22119 "\x9D\x32\x84\xEB\x56\x28\xD6\x06"
22120 "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62"
22121 "\x32\xCC\x86\xC8\x36\x67\x5E\x7E"
22122 "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF"
22123 "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A"
22124 "\x9B\x78\x62\x3B\x02\x28\x60\xB3"
22125 "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47"
22126 "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28"
22127 "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70"
22128 "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94"
22129 "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C"
22130 "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0"
22131 "\x5D\x51\x54\x9A\x53\xA0\xF9\x32"
22132 "\xBD\x31\x54\x14\x7B\x33\xEE\x17"
22133 "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2"
22134 "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2"
22135 "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E"
22136 "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4"
22137 "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE"
22138 "\x40\x78\x91\x95\xC4\x2F\xA3\xE8"
22139 "\x18\xC7\x07\xA6\xC8\xC0\x66\x33"
22140 "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3"
22141 "\x40\xF5\x40\x54\xF1\x84\x8C\xEA"
22142 "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8"
22143 "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4"
22144 "\xF8\x17\x99\x8D\x58\x2D\x72\x44"
22145 "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82"
22146 "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7"
22147 "\x68\xA3\xB8\xA5\x93\x74\x2E\x85"
22148 "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF"
22149 "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B"
22150 "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18"
22151 "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B"
22152 "\x38\xB8\x48\x36\x66\x4E\x20\x43"
22153 "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52"
22154 "\xD7\xDC\xB2\x67\x63\x14\x25\xCD"
22155 "\xB1\x13\x4B\xDE\x8C\x59\x21\x84"
22156 "\x81\x8D\x97\x23\x45\x33\x7C\xF3"
22157 "\xC5\xBC\x79\x95\xAA\x84\x68\x31"
22158 "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA"
22159 "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97"
22160 "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030022161 "\x5F\x74\x8C\x86\x5B\x71\xD0\x20"
22162 "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5"
22163 "\x21\x41\x56\x72\x13\xE1\x86\x07"
22164 "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18"
22165 "\xFE\x94\x2D\x9F\xE0\x72\x18\x65"
22166 "\xB2\xA5\x63\x48\xB4\x13\x22\xF7"
22167 "\x25\xF1\x80\xA8\x7F\x54\x86\x7B"
22168 "\x39\xAE\x95\x0C\x09\x32\x22\x2D"
22169 "\x4D\x73\x39\x0C\x09\x2C\x7C\x10"
22170 "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F"
22171 "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14"
22172 "\x65\xEE\x93\x54\xD0\x66\x15\x3C"
22173 "\x4C\x68\xFD\x64\x0F\xF9\x10\x39"
22174 "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2"
22175 "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F"
22176 "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97"
22177 "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9"
22178 "\xBE\x31\x31\x96\x8B\x40\x18\x75"
22179 "\x11\x75\x14\x32\xA5\x2D\x1B\x6B"
22180 "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4"
22181 "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6"
22182 "\x71\xB0\x12\x57\x89\x0D\xC0\x2B"
22183 "\x9F\x12\x6A\x04\x67\xF1\x95\x31"
22184 "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC"
22185 "\x09\xB0\x43\x96\x4A\x64\x80\x40"
22186 "\xB9\x72\x19\xDD\x70\x42\xFA\xB1"
22187 "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C"
22188 "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB"
22189 "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6"
22190 "\x33\x0B\xF3\xD5\x01\x38\x74\xA4"
22191 "\x67\x1E\x75\x68\xC3\xAD\x76\xE9"
22192 "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A"
22193 "\x5F\xC9\x18\x94\x4B\x86\x66\xFC"
22194 "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9"
22195 "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8"
22196 "\x43\xBC\x76\x75\xBF\x6C\x05\xB3"
22197 "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61"
22198 "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0"
22199 "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12"
22200 "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E"
22201 "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3"
22202 "\x7B\xDC\xCE\x15\x97\x27\xB2\x65"
22203 "\xBC\x0E\x47\xAB\x55\x13\x53\xAB"
22204 "\x0E\x34\x55\x02\x5F\x27\xC5\x89"
22205 "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE"
22206 "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C"
22207 "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8"
22208 "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2"
22209 "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6"
22210 "\x8D\x4D\x83\x9A\xED\x29\x4E\x14"
22211 "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A"
22212 "\x72\x22\xD5\x92\x38\xF1\xA1\x86"
22213 "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3"
22214 "\x80\x56\xC3\xD7\x65\xE1\xB3\x86"
22215 "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06"
22216 "\x01\xED\xF8\x29\x91\x19\x5C\x9A"
22217 "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F"
22218 "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72"
22219 "\x80\xE7\x29\xDC\x23\x55\x98\x54"
22220 "\xB1\xFF\x3E\x95\x56\xA8\x78\x78"
22221 "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93"
22222 "\x30\x6E\x7E\x51\xBB\x42\x5F\x03"
22223 "\x43\x94\x23\x7E\xEE\xF0\xA5\x79"
22224 "\x55\x01\xD4\x58\xB2\xF2\x85\x49"
22225 "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022226 .len = 1008,
Jussi Kivilinna08406052012-03-05 20:26:21 +020022227 },
Herbert Xuda7f0332008-07-31 17:08:25 +080022228};
22229
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022230static const struct cipher_testvec camellia_ctr_tv_template[] = {
Jussi Kivilinna08406052012-03-05 20:26:21 +020022231 { /* Generated with Crypto++ */
22232 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
22233 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
22234 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
22235 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
22236 .klen = 32,
22237 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
22238 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerse674dbc2019-02-14 00:03:53 -080022239 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
22240 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x83",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022241 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022242 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22243 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
22244 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
22245 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030022246 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
22247 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
22248 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
22249 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
22250 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
22251 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
22252 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
22253 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
22254 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
22255 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
22256 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
22257 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22258 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22259 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22260 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
22261 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
22262 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
22263 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
22264 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
22265 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
22266 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22267 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22268 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22269 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22270 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22271 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22272 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22273 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22274 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22275 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22276 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22277 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22278 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22279 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22280 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22281 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22282 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22283 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22284 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22285 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22286 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22287 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22288 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22289 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22290 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22291 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22292 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22293 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22294 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22295 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22296 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22297 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22298 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22299 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22300 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22301 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
22302 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022303 .ctext = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022304 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
22305 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
22306 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
22307 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030022308 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
22309 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
22310 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
22311 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
22312 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
22313 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
22314 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
22315 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
22316 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
22317 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
22318 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
22319 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
22320 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
22321 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
22322 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
22323 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
22324 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
22325 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
22326 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
22327 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
22328 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
22329 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
22330 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
22331 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
22332 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
22333 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
22334 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
22335 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
22336 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
22337 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
22338 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
22339 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
22340 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
22341 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
22342 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
22343 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
22344 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
22345 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
22346 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
22347 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
22348 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
22349 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
22350 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
22351 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
22352 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
22353 "\x76\x44\x45\xF3\x24\x11\x57\x98"
22354 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
22355 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
22356 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
22357 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
22358 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
22359 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
22360 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
22361 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
22362 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
22363 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
22364 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022365 .len = 496,
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030022366 }, { /* Generated with Crypto++ */
Jussi Kivilinna08406052012-03-05 20:26:21 +020022367 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
22368 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
22369 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
22370 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
22371 .klen = 32,
22372 .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
22373 "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64",
Eric Biggerse674dbc2019-02-14 00:03:53 -080022374 .iv_out = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F"
22375 "\xC4\x29\x8E\xF3\x35\x9A\xFF\xA4",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022376 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022377 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22378 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
22379 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
22380 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
22381 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030022382 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
22383 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
22384 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
22385 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
22386 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
22387 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
22388 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
22389 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
22390 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
22391 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
22392 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22393 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22394 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22395 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
22396 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
22397 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
22398 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
22399 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
22400 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
22401 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22402 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22403 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22404 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22405 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22406 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22407 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22408 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22409 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22410 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22411 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22412 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22413 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22414 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22415 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22416 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22417 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22418 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22419 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22420 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22421 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22422 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22423 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22424 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22425 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22426 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22427 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22428 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22429 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22430 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22431 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22432 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22433 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22434 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22435 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22436 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
22437 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030022438 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
22439 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
22440 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
22441 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
22442 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
22443 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
22444 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
22445 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
22446 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
22447 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
22448 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
22449 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
22450 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
22451 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
22452 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
22453 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
22454 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
22455 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
22456 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
22457 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
22458 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
22459 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
22460 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
22461 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
22462 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
22463 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
22464 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
22465 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
22466 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
22467 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
22468 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
22469 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
22470 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
22471 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
22472 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
22473 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
22474 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
22475 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
22476 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
22477 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
22478 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
22479 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
22480 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
22481 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
22482 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
22483 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
22484 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
22485 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
22486 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
22487 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
22488 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
22489 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
22490 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
22491 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
22492 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
22493 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
22494 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
22495 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
22496 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
22497 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
22498 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
22499 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
22500 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
22501 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D"
22502 "\xE4\x7B\x12",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022503 .ctext = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022504 "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE"
22505 "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4"
22506 "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6"
22507 "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85"
22508 "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C"
Jussi Kivilinnabe6314b2012-10-20 14:52:46 +030022509 "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0"
22510 "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C"
22511 "\xE6\x7B\x08\xC3\x32\x66\x55\x4E"
22512 "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F"
22513 "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2"
22514 "\x82\x2F\x66\x83\x91\x51\xAE\xD7"
22515 "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9"
22516 "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9"
22517 "\x0F\xEA\x26\x32\xD1\x15\x19\x2D"
22518 "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60"
22519 "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B"
22520 "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1"
22521 "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3"
22522 "\x29\xE9\x59\x32\x1F\x30\x1C\x43"
22523 "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11"
22524 "\xAD\x38\x20\xC9\xB9\x8A\x64\x66"
22525 "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76"
22526 "\x36\x65\xB6\x81\x8F\x76\x09\xE5"
22527 "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD"
22528 "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A"
22529 "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80"
22530 "\xBF\x3C\x25\x06\x13\x84\xFA\x35"
22531 "\xF7\x40\xFA\xA1\x44\x13\x70\xD8"
22532 "\x01\xF9\x85\x15\x63\xEC\x7D\xB9"
22533 "\x02\xD8\xBA\x41\x6C\x92\x68\x66"
22534 "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD"
22535 "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47"
22536 "\x58\x8D\xFF\x19\x30\x75\x0D\x48"
22537 "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD"
22538 "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB"
22539 "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9"
22540 "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B"
22541 "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A"
22542 "\x79\xA2\x99\x28\x93\x1B\x00\x57"
22543 "\x35\x1E\x1A\x93\x90\xA4\x68\x95"
22544 "\x5E\x57\x40\xD5\xA9\xAA\x19\x48"
22545 "\xEC\xFF\x76\x77\xDC\x78\x89\x76"
22546 "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3"
22547 "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E"
22548 "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5"
22549 "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8"
22550 "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0"
22551 "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB"
22552 "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0"
22553 "\x76\x44\x45\xF3\x24\x11\x57\x98"
22554 "\x9A\x86\xB4\x12\x80\x28\x86\x20"
22555 "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1"
22556 "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D"
22557 "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79"
22558 "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01"
22559 "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38"
22560 "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F"
22561 "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF"
22562 "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48"
22563 "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0"
22564 "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030022565 "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90"
22566 "\xE5\x41\x4A\xE2\x3C\x45\x29\x35"
22567 "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32"
22568 "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7"
22569 "\x1D\x8C\x02\x72\x68\x09\xE9\xB6"
22570 "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4"
22571 "\x93\x74\xA4\xCE\x20\x23\xBF\x48"
22572 "\xA5\xDE\x1B\xFA\x40\x69\x31\x98"
22573 "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5"
22574 "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA"
22575 "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4"
22576 "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F"
22577 "\xBA\x83\x34\x3C\x42\xCC\x7D\x28"
22578 "\x29\x63\x4F\xD8\x02\x17\xC5\x07"
22579 "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09"
22580 "\x81\x45\x18\xED\xE4\xCB\x42\x3B"
22581 "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD"
22582 "\x92\xE5\x02\x97\x96\xCE\xAD\xEC"
22583 "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC"
22584 "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E"
22585 "\xCC\xF8\x5F\xDD\x65\x50\x99\x69"
22586 "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F"
22587 "\x05\x93\xB2\xE6\x59\xC8\x28\xFE"
22588 "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F"
22589 "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09"
22590 "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C"
22591 "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74"
22592 "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8"
22593 "\x81\xF5\xD5\x8A\x04\x23\x51\xAC"
22594 "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B"
22595 "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA"
22596 "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB"
22597 "\x41\x1A\x67\xA6\x40\x82\x70\x8C"
22598 "\x19\x79\x08\xA4\x51\x20\x7D\xC9"
22599 "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D"
22600 "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08"
22601 "\x00\x70\x12\x56\x56\x50\xAD\x14"
22602 "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48"
22603 "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E"
22604 "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D"
22605 "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85"
22606 "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64"
22607 "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F"
22608 "\x91\x76\xE8\x15\x66\x34\x9F\xF6"
22609 "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1"
22610 "\x38\x46\x47\xC7\x9B\xCA\xE9\x42"
22611 "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3"
22612 "\x16\xA0\xED\x42\xBE\xB5\x06\x19"
22613 "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E"
22614 "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31"
22615 "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC"
22616 "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8"
22617 "\x94\x5C\x5E\x37\x18\xAD\xED\x8B"
22618 "\x44\x86\xCA\x5E\x07\xB7\x70\x8D"
22619 "\x40\x48\x19\x73\x7C\x78\x64\x0B"
22620 "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1"
22621 "\x6B\x2C\x84\x10\x45\x42\x2E\xC3"
22622 "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46"
22623 "\x74\x28\x9D\x05\x30\x20\x62\x41"
22624 "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26"
22625 "\xDF\x58\x51\xED\xFA\xDC\x87\x79"
22626 "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA"
22627 "\x45\xE3\x35\x0D\x69\x91\x54\x1C"
22628 "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C"
22629 "\xF1\x6B\xD9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022630 .len = 1011,
Jussi Kivilinna549595a2012-09-19 09:42:59 +030022631 }, { /* Generated with Crypto++ */
22632 .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9"
22633 "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A"
22634 "\x27\x04\xE1\x27\x04\xE1\xBE\x9B"
22635 "\x78\xBE\x9B\x78\x55\x32\x0F\x55",
22636 .klen = 32,
22637 .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF"
22638 "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD",
Eric Biggerse674dbc2019-02-14 00:03:53 -080022639 .iv_out = "\x00\x00\x00\x00\x00\x00\x00\x00"
22640 "\x00\x00\x00\x00\x00\x00\x00\x3C",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022641 .ptext = "\x56\xED\x84\x1B\x8F\x26\xBD\x31"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030022642 "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3"
22643 "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15"
22644 "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87"
22645 "\x1E\x92\x29\xC0\x34\xCB\x62\xF9"
22646 "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48"
22647 "\xDF\x76\x0D\x81\x18\xAF\x23\xBA"
22648 "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C"
22649 "\xC3\x37\xCE\x65\xFC\x70\x07\x9E"
22650 "\x12\xA9\x40\xD7\x4B\xE2\x79\x10"
22651 "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F"
22652 "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1"
22653 "\x68\xFF\x73\x0A\xA1\x15\xAC\x43"
22654 "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5"
22655 "\x29\xC0\x57\xEE\x62\xF9\x90\x04"
22656 "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76"
22657 "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8"
22658 "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A"
22659 "\xF1\x65\xFC\x93\x07\x9E\x35\xCC"
22660 "\x40\xD7\x6E\x05\x79\x10\xA7\x1B"
22661 "\xB2\x49\xE0\x54\xEB\x82\x19\x8D"
22662 "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF"
22663 "\x96\x0A\xA1\x38\xCF\x43\xDA\x71"
22664 "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3"
22665 "\x57\xEE\x85\x1C\x90\x27\xBE\x32"
22666 "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4"
22667 "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16"
22668 "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88"
22669 "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA"
22670 "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49"
22671 "\xE0\x77\x0E\x82\x19\xB0\x24\xBB"
22672 "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D"
22673 "\xC4\x38\xCF\x66\xFD\x71\x08\x9F"
22674 "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11"
22675 "\x85\x1C\xB3\x27\xBE\x55\xEC\x60"
22676 "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2"
22677 "\x69\x00\x74\x0B\xA2\x16\xAD\x44"
22678 "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6"
22679 "\x2A\xC1\x58\xEF\x63\xFA\x91\x05"
22680 "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77"
22681 "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9"
22682 "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B"
22683 "\xF2\x66\xFD\x94\x08\x9F\x36\xCD"
22684 "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C"
22685 "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E"
22686 "\x25\xBC\x30\xC7\x5E\xF5\x69\x00"
22687 "\x97\x0B\xA2\x39\xD0\x44\xDB\x72"
22688 "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4"
22689 "\x58\xEF\x86\x1D\x91\x28\xBF\x33"
22690 "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5"
22691 "\x3C\xD3\x47\xDE\x75\x0C\x80\x17"
22692 "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89"
22693 "\x20\x94\x2B\xC2\x36\xCD\x64\xFB"
22694 "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A"
22695 "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC"
22696 "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E"
22697 "\xC5\x39\xD0\x67\xFE\x72\x09\xA0"
22698 "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12"
22699 "\x86\x1D\xB4\x28\xBF\x56\xED\x61"
22700 "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3"
22701 "\x6A\x01\x75\x0C\xA3\x17\xAE\x45"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030022702 "\xDC\x50\xE7\x7E\x15\x89\x20\xB7"
22703 "\x2B\xC2\x59\xF0\x64\xFB\x92\x06"
22704 "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78"
22705 "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA"
22706 "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C"
22707 "\xF3\x67\xFE\x95\x09\xA0\x37\xCE"
22708 "\x42\xD9\x70\x07\x7B\x12\xA9\x1D"
22709 "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F"
22710 "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01"
22711 "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73"
22712 "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5"
22713 "\x59\xF0\x87\x1E\x92\x29\xC0\x34"
22714 "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6"
22715 "\x3D\xD4\x48\xDF\x76\x0D\x81\x18"
22716 "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A"
22717 "\x21\x95\x2C\xC3\x37\xCE\x65\xFC"
22718 "\x70\x07\x9E\x12\xA9\x40\xD7\x4B"
22719 "\xE2\x79\x10\x84\x1B\xB2\x26\xBD"
22720 "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F"
22721 "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1"
22722 "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13"
22723 "\x87\x1E\xB5\x29\xC0\x57\xEE\x62"
22724 "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4"
22725 "\x6B\x02\x76\x0D\xA4\x18\xAF\x46"
22726 "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8"
22727 "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07"
22728 "\x9E\x35\xCC\x40\xD7\x6E\x05\x79"
22729 "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB"
22730 "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D"
22731 "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF"
22732 "\x43\xDA\x71\x08\x7C\x13\xAA\x1E"
22733 "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90"
22734 "\x27\xBE\x32\xC9\x60\xF7\x6B\x02"
22735 "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74"
22736 "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6"
22737 "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35"
22738 "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7"
22739 "\x3E\xD5\x49\xE0\x77\x0E\x82\x19"
22740 "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B"
22741 "\x22\x96\x2D\xC4\x38\xCF\x66\xFD"
22742 "\x71\x08\x9F\x13\xAA\x41\xD8\x4C"
22743 "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE"
22744 "\x55\xEC\x60\xF7\x8E\x02\x99\x30"
22745 "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2"
22746 "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14"
22747 "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63"
22748 "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5"
22749 "\x6C\x03\x77\x0E\xA5\x19\xB0\x47"
22750 "\xDE\x52\xE9\x80\x17\x8B\x22\xB9"
22751 "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08"
22752 "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A"
22753 "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC"
22754 "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E"
22755 "\xF5\x69\x00\x97\x0B\xA2\x39\xD0"
22756 "\x44\xDB\x72\x09\x7D\x14\xAB\x1F"
22757 "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91"
22758 "\x28\xBF\x33\xCA\x61\xF8\x6C\x03"
22759 "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75"
22760 "\x0C\x80\x17\xAE\x22\xB9\x50\xE7"
22761 "\x5B\xF2\x89\x20\x94\x2B\xC2\x36"
22762 "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8"
22763 "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A"
22764 "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C"
22765 "\x00\x97\x2E\xC5\x39\xD0\x67\xFE"
22766 "\x72\x09\xA0\x14\xAB\x42\xD9\x4D",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022767 .ctext = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9"
Jussi Kivilinna549595a2012-09-19 09:42:59 +030022768 "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E"
22769 "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB"
22770 "\xF7\xC4\x27\x04\x51\x87\xD7\x6F"
22771 "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4"
22772 "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48"
22773 "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A"
22774 "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B"
22775 "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07"
22776 "\x2C\x56\x07\x5E\x37\x30\x60\xA9"
22777 "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64"
22778 "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43"
22779 "\x23\x35\x95\x91\x80\x8A\xC7\xCF"
22780 "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B"
22781 "\x05\x19\x48\xE2\x62\xBA\x4F\xF2"
22782 "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10"
22783 "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD"
22784 "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96"
22785 "\xD9\x0F\x90\x5A\x78\x76\x4D\x77"
22786 "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD"
22787 "\xE4\xE8\x20\x2D\x15\x0A\x63\x49"
22788 "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78"
22789 "\x28\x07\x09\x1B\x03\x94\x1D\x4B"
22790 "\x82\x28\x1E\x1D\x95\xBA\xAC\x85"
22791 "\x71\x6E\x3C\x18\x4B\x77\x74\x79"
22792 "\xBF\x67\x0A\x53\x3C\x94\xD9\x60"
22793 "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D"
22794 "\x27\xD5\x47\xF9\xC3\x4B\x27\x29"
22795 "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC"
22796 "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B"
22797 "\x70\x1C\x84\x81\x72\x4D\xB4\x98"
22798 "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2"
22799 "\xFF\xF5\x71\x07\xCD\x90\x23\x13"
22800 "\x19\xD7\x79\x36\x6C\x9D\x55\x8B"
22801 "\x93\x78\x86\x05\x69\x46\xD0\xC5"
22802 "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE"
22803 "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C"
22804 "\x83\x4B\xD8\x75\x9C\x18\x04\x7B"
22805 "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B"
22806 "\xCC\x01\x45\x90\xA6\x43\x05\x0C"
22807 "\x6C\x4F\x62\x77\x57\x97\x9F\xEE"
22808 "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E"
22809 "\x2C\x43\x98\xFB\x13\x65\x73\xE4"
22810 "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99"
22811 "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32"
22812 "\x17\xC2\xCC\x20\xA1\x19\x26\xAA"
22813 "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF"
22814 "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56"
22815 "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24"
22816 "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54"
22817 "\x10\x7F\x50\xDE\x69\x77\xD5\x37"
22818 "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53"
22819 "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57"
22820 "\x3A\xE6\x75\xFE\x89\x00\x6E\x48"
22821 "\xFB\x99\x17\x2C\xF6\x64\x40\x95"
22822 "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD"
22823 "\x52\x05\x24\x34\xF9\x0E\xC8\x64"
22824 "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE"
22825 "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22"
22826 "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E"
22827 "\x12\xA8\x01\x64\x16\x0B\x26\x5A"
Jussi Kivilinna23a836e2013-04-13 13:46:35 +030022828 "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C"
22829 "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6"
22830 "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3"
22831 "\x3F\x23\x69\x63\x56\x96\x45\xD6"
22832 "\x74\x23\x1D\x5C\x63\xCC\xD8\x78"
22833 "\x16\xE2\x9C\xD2\x80\x02\xF2\x28"
22834 "\x69\x2F\xC4\xA8\x15\x15\x24\x3B"
22835 "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1"
22836 "\x03\x58\x1B\x33\x77\x74\x1F\xB4"
22837 "\x07\x86\xF2\x21\xB7\x41\xAE\xBF"
22838 "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4"
22839 "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D"
22840 "\xF8\x04\xBB\x6D\x62\x33\x87\x26"
22841 "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09"
22842 "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E"
22843 "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A"
22844 "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF"
22845 "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C"
22846 "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11"
22847 "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD"
22848 "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB"
22849 "\xC3\x14\x84\x72\xFD\x41\xDC\xBD"
22850 "\x75\xBE\xA8\xE5\x16\x48\x64\x39"
22851 "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D"
22852 "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D"
22853 "\x0B\x29\x10\x15\x0E\x13\x3B\xAC"
22854 "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02"
22855 "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21"
22856 "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0"
22857 "\xF8\x09\xAF\xE4\x31\x26\x92\x2F"
22858 "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34"
22859 "\xBE\x50\xB1\x02\x22\x96\xE3\x40"
22860 "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0"
22861 "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B"
22862 "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36"
22863 "\xD2\x0A\x32\x06\x97\x34\xB9\xF4"
22864 "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A"
22865 "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D"
22866 "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E"
22867 "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7"
22868 "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E"
22869 "\x2C\x07\xD2\x43\x5F\x57\x93\xCA"
22870 "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1"
22871 "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E"
22872 "\x68\xC6\x47\xB9\x76\xCC\x65\x5F"
22873 "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37"
22874 "\x5F\x41\xED\x64\x6C\xAD\x5F\xED"
22875 "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F"
22876 "\xC2\xC7\xED\x18\x43\xE1\x20\x86"
22877 "\x5D\xBC\x30\x70\x22\xA1\xDC\x53"
22878 "\x10\x3A\x8D\x47\x82\xCD\x7F\x59"
22879 "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07"
22880 "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5"
22881 "\xED\x47\x83\xBC\x5F\x62\x84\xDA"
22882 "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8"
22883 "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A"
22884 "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6"
22885 "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE"
22886 "\x37\x9E\x29\xF9\x2A\x18\x73\x0D"
22887 "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA"
22888 "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56"
22889 "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C"
22890 "\xC5\x9B\x03\x70\x29\x2A\x49\x09"
22891 "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71"
22892 "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022893 .len = 1008,
Jussi Kivilinna08406052012-03-05 20:26:21 +020022894 },
22895};
22896
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022897static const struct cipher_testvec camellia_lrw_tv_template[] = {
Jussi Kivilinna08406052012-03-05 20:26:21 +020022898 /* Generated from AES-LRW test vectors */
22899 {
22900 .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d"
22901 "\x4c\x26\x84\x14\xb5\x68\x01\x85"
22902 "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03"
22903 "\xee\x5a\x83\x0c\xcc\x09\x4c\x87",
22904 .klen = 32,
22905 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
22906 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022907 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022908 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022909 .ctext = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022910 "\x97\xcc\x72\xbe\x99\x17\xeb\x3e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022911 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020022912 }, {
22913 .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c"
22914 "\xd7\x79\xe8\x0f\x54\x88\x79\x44"
22915 "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea"
22916 "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf",
22917 .klen = 32,
22918 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
22919 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022920 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022921 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022922 .ctext = "\x73\x09\xb7\x50\xb6\x77\x30\x50"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022923 "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022924 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020022925 }, {
22926 .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50"
22927 "\x30\xfe\x69\xe2\x37\x7f\x98\x47"
22928 "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6"
22929 "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f",
22930 .klen = 32,
22931 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
22932 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022933 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022934 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022935 .ctext = "\x90\xae\x83\xe0\x22\xb9\x60\x91"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022936 "\xfa\xa9\xb7\x98\xe3\xed\x87\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022937 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020022938 }, {
22939 .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15"
22940 "\x25\x83\xf7\x3c\x1f\x01\x28\x74"
22941 "\xca\xc6\xbc\x35\x4d\x4a\x65\x54"
22942 "\x90\xae\x61\xcf\x7b\xae\xbd\xcc"
22943 "\xad\xe4\x94\xc5\x4a\x29\xae\x70",
22944 .klen = 40,
22945 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
22946 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022947 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022948 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022949 .ctext = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022950 "\xd8\x83\xef\xd9\x07\x16\x5f\x35",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022951 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020022952 }, {
22953 .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff"
22954 "\xf8\x86\xce\xac\x93\xc5\xad\xc6"
22955 "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd"
22956 "\x52\x13\xb2\xb7\xf0\xff\x11\xd8"
22957 "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f",
22958 .klen = 40,
22959 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
22960 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022961 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022962 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022963 .ctext = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022964 "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022965 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020022966 }, {
22967 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
22968 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
22969 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
22970 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
22971 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
22972 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
22973 .klen = 48,
22974 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
22975 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022976 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022977 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022978 .ctext = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022979 "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022980 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020022981 }, {
22982 .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d"
22983 "\xd4\x70\x98\x0b\xc7\x95\x84\xc8"
22984 "\xb2\xfb\x64\xce\x60\x97\x87\x8d"
22985 "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7"
22986 "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4"
22987 "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c",
22988 .klen = 48,
22989 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
22990 "\x00\x00\x00\x02\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022991 .ptext = "\x30\x31\x32\x33\x34\x35\x36\x37"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022992 "\x38\x39\x41\x42\x43\x44\x45\x46",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022993 .ctext = "\x04\xab\x28\x37\x31\x7a\x26\xab"
Jussi Kivilinna08406052012-03-05 20:26:21 +020022994 "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070022995 .len = 16,
Jussi Kivilinna08406052012-03-05 20:26:21 +020022996 }, {
22997 .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c"
22998 "\x23\x84\xcb\x1c\x77\xd6\x19\x5d"
22999 "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21"
23000 "\xa7\x9c\x21\xf8\xcb\x90\x02\x89"
23001 "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1"
23002 "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e",
23003 .klen = 48,
23004 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
23005 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023006 .ptext = "\x05\x11\xb7\x18\xab\xc6\x2d\xac"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023007 "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c"
23008 "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8"
23009 "\x50\x38\x1f\x71\x49\xb6\x57\xd6"
23010 "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90"
23011 "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6"
23012 "\xad\x1e\x9e\x20\x5f\x38\xbe\x04"
23013 "\xda\x10\x8e\xed\xa2\xa4\x87\xab"
23014 "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c"
23015 "\xc9\xac\x42\x31\x95\x7c\xc9\x04"
23016 "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6"
23017 "\x15\xd7\x3f\x4f\x2f\x66\x69\x03"
23018 "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65"
23019 "\x4c\x96\x12\xed\x7c\x92\x03\x01"
23020 "\x6f\xbc\x35\x93\xac\xf1\x27\xf1"
23021 "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50"
23022 "\x89\xa4\x8e\x66\x44\x85\xcc\xfd"
23023 "\x33\x14\x70\xe3\x96\xb2\xc3\xd3"
23024 "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5"
23025 "\x2d\x64\x75\xdd\xb4\x54\xe6\x74"
23026 "\x8c\xd3\x9d\x9e\x86\xab\x51\x53"
23027 "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40"
23028 "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5"
23029 "\x76\x12\x73\x44\x1a\x56\xd7\x72"
23030 "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda"
23031 "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd"
23032 "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60"
23033 "\x1a\xe2\x70\x85\x58\xc2\x1b\x09"
23034 "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9"
23035 "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8"
23036 "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8"
23037 "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10"
23038 "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1"
23039 "\x90\x3e\x76\x4a\x74\xa4\x21\x2c"
23040 "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e"
23041 "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f"
23042 "\x8d\x23\x31\x74\x84\xeb\x88\x6e"
23043 "\xcc\xb9\xbc\x22\x83\x19\x07\x22"
23044 "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78"
23045 "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5"
23046 "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41"
23047 "\x3c\xce\x8f\x42\x60\x71\xa7\x75"
23048 "\x08\x40\x65\x8a\x82\xbf\xf5\x43"
23049 "\x71\x96\xa9\x4d\x44\x8a\x20\xbe"
23050 "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65"
23051 "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9"
23052 "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4"
23053 "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a"
23054 "\x62\x73\x65\xfd\x46\x63\x25\x3d"
23055 "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf"
23056 "\x24\xf3\xb4\xac\x64\xba\xdf\x4b"
23057 "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7"
23058 "\xc5\x68\x77\x84\x32\x2b\xcc\x85"
23059 "\x74\x96\xf0\x12\x77\x61\xb9\xeb"
23060 "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8"
23061 "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24"
23062 "\xda\x39\x87\x45\xc0\x2b\xbb\x01"
23063 "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce"
23064 "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6"
23065 "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32"
23066 "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45"
23067 "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6"
23068 "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4"
23069 "\x21\xc4\xc2\x75\x67\x89\x37\x0a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023070 .ctext = "\x90\x69\x8e\xf2\x14\x86\x59\xf9"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023071 "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96"
23072 "\x67\x76\xac\x2c\xd2\x63\x18\x93"
23073 "\x13\xf8\xf1\xf6\x71\x77\xb3\xee"
23074 "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f"
23075 "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06"
23076 "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1"
23077 "\x62\xdd\x78\x81\xea\x1d\xef\x04"
23078 "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1"
23079 "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2"
23080 "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0"
23081 "\x40\x41\x69\xaa\x71\xc0\x37\xec"
23082 "\x39\xf3\xf2\xec\x82\xc3\x88\x79"
23083 "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80"
23084 "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c"
23085 "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1"
23086 "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12"
23087 "\x6f\x75\xc7\x80\x99\x50\x84\xcf"
23088 "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e"
23089 "\xb9\xb3\xde\x7a\x93\x14\x12\xa2"
23090 "\xf7\x43\xb3\x9d\x1a\x87\x65\x91"
23091 "\x42\x08\x40\x82\x06\x1c\x2d\x55"
23092 "\x6e\x48\xd5\x74\x07\x6e\x9d\x80"
23093 "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74"
23094 "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c"
23095 "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9"
23096 "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83"
23097 "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b"
23098 "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0"
23099 "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1"
23100 "\xed\x14\xa9\x57\x19\x63\x40\x04"
23101 "\x24\xeb\x6e\x19\xd1\x3d\x70\x78"
23102 "\xeb\xda\x55\x70\x2c\x4f\x41\x5b"
23103 "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3"
23104 "\x21\xec\xd7\xd2\x55\x32\x7c\x2e"
23105 "\x3c\x48\x8e\xb4\x85\x35\x47\xfe"
23106 "\xe2\x88\x79\x98\x6a\xc9\x8d\xff"
23107 "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd"
23108 "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99"
23109 "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75"
23110 "\x23\x52\x76\xc3\x50\x6e\x66\xf8"
23111 "\xa2\xe2\xce\xba\x40\x21\x3f\xc9"
23112 "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf"
23113 "\xd3\xdf\x57\x59\x83\xb8\xe1\x85"
23114 "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f"
23115 "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a"
23116 "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76"
23117 "\x2f\x1c\x1a\x30\xed\x95\x2a\x44"
23118 "\x35\xa5\x83\x04\x84\x01\x99\x56"
23119 "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd"
23120 "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c"
23121 "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d"
23122 "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77"
23123 "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b"
23124 "\x30\xed\x1a\x50\x19\xef\xc4\x2c"
23125 "\x02\xd9\xc5\xd3\x11\x33\x37\xe5"
23126 "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d"
23127 "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96"
23128 "\x91\xc3\x94\x24\xa5\x12\xa2\x37"
23129 "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe"
23130 "\x79\x92\x3e\xe6\x1b\x49\x57\x5d"
23131 "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1"
23132 "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9"
23133 "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023134 .len = 512,
Jussi Kivilinna08406052012-03-05 20:26:21 +020023135 },
23136};
23137
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023138static const struct cipher_testvec camellia_xts_tv_template[] = {
Jussi Kivilinna08406052012-03-05 20:26:21 +020023139 /* Generated from AES-XTS test vectors */
23140 {
23141 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
23142 "\x00\x00\x00\x00\x00\x00\x00\x00"
23143 "\x00\x00\x00\x00\x00\x00\x00\x00"
23144 "\x00\x00\x00\x00\x00\x00\x00\x00",
23145 .klen = 32,
23146 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
23147 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023148 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023149 "\x00\x00\x00\x00\x00\x00\x00\x00"
23150 "\x00\x00\x00\x00\x00\x00\x00\x00"
23151 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023152 .ctext = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023153 "\xdc\xca\xfa\x09\xba\x74\xb9\x05"
23154 "\x78\xba\xa4\xf8\x67\x4d\x7e\xad"
23155 "\x20\x18\xf5\x0c\x41\x16\x2a\x61",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023156 .len = 32,
Jussi Kivilinna08406052012-03-05 20:26:21 +020023157 }, {
23158 .key = "\x11\x11\x11\x11\x11\x11\x11\x11"
23159 "\x11\x11\x11\x11\x11\x11\x11\x11"
23160 "\x22\x22\x22\x22\x22\x22\x22\x22"
23161 "\x22\x22\x22\x22\x22\x22\x22\x22",
23162 .klen = 32,
23163 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
23164 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023165 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023166 "\x44\x44\x44\x44\x44\x44\x44\x44"
23167 "\x44\x44\x44\x44\x44\x44\x44\x44"
23168 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023169 .ctext = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023170 "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f"
23171 "\xb5\x37\x06\xff\xbd\xd4\x91\x70"
23172 "\x80\x1f\xb2\x39\x10\x89\x44\xf5",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023173 .len = 32,
Jussi Kivilinna08406052012-03-05 20:26:21 +020023174 }, {
23175 .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8"
23176 "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0"
23177 "\x22\x22\x22\x22\x22\x22\x22\x22"
23178 "\x22\x22\x22\x22\x22\x22\x22\x22",
23179 .klen = 32,
23180 .iv = "\x33\x33\x33\x33\x33\x00\x00\x00"
23181 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023182 .ptext = "\x44\x44\x44\x44\x44\x44\x44\x44"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023183 "\x44\x44\x44\x44\x44\x44\x44\x44"
23184 "\x44\x44\x44\x44\x44\x44\x44\x44"
23185 "\x44\x44\x44\x44\x44\x44\x44\x44",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023186 .ctext = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023187 "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7"
23188 "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a"
23189 "\x35\x3c\x6b\xb5\x61\x1c\x79\x38",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023190 .len = 32,
Jussi Kivilinna08406052012-03-05 20:26:21 +020023191 }, {
23192 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
23193 "\x23\x53\x60\x28\x74\x71\x35\x26"
23194 "\x31\x41\x59\x26\x53\x58\x97\x93"
23195 "\x23\x84\x62\x64\x33\x83\x27\x95",
23196 .klen = 32,
23197 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
23198 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023199 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023200 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23201 "\x10\x11\x12\x13\x14\x15\x16\x17"
23202 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23203 "\x20\x21\x22\x23\x24\x25\x26\x27"
23204 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23205 "\x30\x31\x32\x33\x34\x35\x36\x37"
23206 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23207 "\x40\x41\x42\x43\x44\x45\x46\x47"
23208 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23209 "\x50\x51\x52\x53\x54\x55\x56\x57"
23210 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23211 "\x60\x61\x62\x63\x64\x65\x66\x67"
23212 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23213 "\x70\x71\x72\x73\x74\x75\x76\x77"
23214 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23215 "\x80\x81\x82\x83\x84\x85\x86\x87"
23216 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23217 "\x90\x91\x92\x93\x94\x95\x96\x97"
23218 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23219 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23220 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23221 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23222 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23223 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23224 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23225 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23226 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23227 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23228 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23229 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23230 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
23231 "\x00\x01\x02\x03\x04\x05\x06\x07"
23232 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23233 "\x10\x11\x12\x13\x14\x15\x16\x17"
23234 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23235 "\x20\x21\x22\x23\x24\x25\x26\x27"
23236 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23237 "\x30\x31\x32\x33\x34\x35\x36\x37"
23238 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23239 "\x40\x41\x42\x43\x44\x45\x46\x47"
23240 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23241 "\x50\x51\x52\x53\x54\x55\x56\x57"
23242 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23243 "\x60\x61\x62\x63\x64\x65\x66\x67"
23244 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23245 "\x70\x71\x72\x73\x74\x75\x76\x77"
23246 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23247 "\x80\x81\x82\x83\x84\x85\x86\x87"
23248 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23249 "\x90\x91\x92\x93\x94\x95\x96\x97"
23250 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23251 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23252 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23253 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23254 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23255 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23256 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23257 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23258 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23259 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23260 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23261 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23262 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023263 .ctext = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023264 "\x60\xc3\xe9\x47\x90\xb7\x50\x57"
23265 "\xa3\xad\x81\x2f\xf5\x22\x96\x02"
23266 "\xaa\x7f\xea\xac\x29\x78\xca\x2a"
23267 "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73"
23268 "\x09\x66\xad\x72\x0e\x4d\x5d\x77"
23269 "\xbc\xb8\x76\x80\x37\x59\xa9\x01"
23270 "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d"
23271 "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01"
23272 "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8"
23273 "\x08\xda\x76\x00\x65\xcf\x7b\x31"
23274 "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e"
23275 "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5"
23276 "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04"
23277 "\xfb\x54\xdd\x29\x27\xc2\x65\x17"
23278 "\x36\x88\xb0\x85\x8d\x73\x7e\x4b"
23279 "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4"
23280 "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f"
23281 "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3"
23282 "\x6c\xee\xac\xdc\x45\x58\xca\x5b"
23283 "\x70\x0e\x6a\x12\x86\x82\x79\x9f"
23284 "\x16\xd4\x9d\x67\xcd\x70\x65\x26"
23285 "\x21\x72\x1e\xa1\x94\x8a\x83\x0c"
23286 "\x92\x42\x58\x5e\xa2\xc5\x31\xf3"
23287 "\x7b\xd1\x31\xd4\x15\x80\x31\x61"
23288 "\x5c\x53\x10\xdd\xea\xc8\x83\x5c"
23289 "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05"
23290 "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5"
23291 "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9"
23292 "\x16\x31\xb2\x47\x91\x67\xaa\x28"
23293 "\x2c\x29\x85\xa3\xf7\xf2\x24\x93"
23294 "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc"
23295 "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec"
23296 "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e"
23297 "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66"
23298 "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7"
23299 "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d"
23300 "\xf8\x89\xcd\x20\x27\x84\x5d\x5c"
23301 "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3"
23302 "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7"
23303 "\x3f\x43\xcc\x86\x71\x34\x6a\xd9"
23304 "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe"
23305 "\x18\x41\xdc\x9e\x2e\x75\x20\x3e"
23306 "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c"
23307 "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71"
23308 "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e"
23309 "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9"
23310 "\x34\xb8\x27\x74\x08\xda\xf2\x4a"
23311 "\x23\x5b\x9f\x55\x3a\x57\x82\x52"
23312 "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc"
23313 "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49"
23314 "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2"
23315 "\x96\x0b\x35\x84\x05\x0d\xd6\x2a"
23316 "\xea\x5a\xbf\x69\xde\xee\x4f\x8f"
23317 "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8"
23318 "\x96\xef\x0f\x0e\xec\xc7\xa6\x74"
23319 "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15"
23320 "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1"
23321 "\x5b\xb6\x71\xda\xb0\x0c\xba\x26"
23322 "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d"
23323 "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33"
23324 "\xcc\x06\xdb\xe7\x82\x29\x63\xd1"
23325 "\x52\x84\x4f\xee\x27\xe8\x02\xd4"
23326 "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023327 .len = 512,
Jussi Kivilinna08406052012-03-05 20:26:21 +020023328 }, {
23329 .key = "\x27\x18\x28\x18\x28\x45\x90\x45"
23330 "\x23\x53\x60\x28\x74\x71\x35\x26"
23331 "\x62\x49\x77\x57\x24\x70\x93\x69"
23332 "\x99\x59\x57\x49\x66\x96\x76\x27"
23333 "\x31\x41\x59\x26\x53\x58\x97\x93"
23334 "\x23\x84\x62\x64\x33\x83\x27\x95"
23335 "\x02\x88\x41\x97\x16\x93\x99\x37"
23336 "\x51\x05\x82\x09\x74\x94\x45\x92",
23337 .klen = 64,
23338 .iv = "\xff\x00\x00\x00\x00\x00\x00\x00"
23339 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023340 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023341 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23342 "\x10\x11\x12\x13\x14\x15\x16\x17"
23343 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23344 "\x20\x21\x22\x23\x24\x25\x26\x27"
23345 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23346 "\x30\x31\x32\x33\x34\x35\x36\x37"
23347 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23348 "\x40\x41\x42\x43\x44\x45\x46\x47"
23349 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23350 "\x50\x51\x52\x53\x54\x55\x56\x57"
23351 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23352 "\x60\x61\x62\x63\x64\x65\x66\x67"
23353 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23354 "\x70\x71\x72\x73\x74\x75\x76\x77"
23355 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23356 "\x80\x81\x82\x83\x84\x85\x86\x87"
23357 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23358 "\x90\x91\x92\x93\x94\x95\x96\x97"
23359 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23360 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23361 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23362 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23363 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23364 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23365 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23366 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23367 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23368 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23369 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23370 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23371 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
23372 "\x00\x01\x02\x03\x04\x05\x06\x07"
23373 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23374 "\x10\x11\x12\x13\x14\x15\x16\x17"
23375 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23376 "\x20\x21\x22\x23\x24\x25\x26\x27"
23377 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23378 "\x30\x31\x32\x33\x34\x35\x36\x37"
23379 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23380 "\x40\x41\x42\x43\x44\x45\x46\x47"
23381 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23382 "\x50\x51\x52\x53\x54\x55\x56\x57"
23383 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23384 "\x60\x61\x62\x63\x64\x65\x66\x67"
23385 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23386 "\x70\x71\x72\x73\x74\x75\x76\x77"
23387 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23388 "\x80\x81\x82\x83\x84\x85\x86\x87"
23389 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23390 "\x90\x91\x92\x93\x94\x95\x96\x97"
23391 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23392 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23393 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23394 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23395 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23396 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23397 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23398 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23399 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23400 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23401 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23402 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23403 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023404 .ctext = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28"
Jussi Kivilinna08406052012-03-05 20:26:21 +020023405 "\x9a\x7f\x6e\x57\x55\xb8\x07\x88"
23406 "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b"
23407 "\xf1\x74\xac\x96\x05\x7b\x32\xca"
23408 "\xd1\x4e\xf1\x58\x29\x16\x24\x6c"
23409 "\xf2\xb3\xe4\x88\x84\xac\x4d\xee"
23410 "\x97\x07\x82\xf0\x07\x12\x38\x0a"
23411 "\x67\x62\xaf\xfd\x85\x9f\x0a\x55"
23412 "\xa5\x20\xc5\x60\xe4\x68\x53\xa4"
23413 "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c"
23414 "\x1c\x01\x4f\x55\xa9\x13\xeb\x25"
23415 "\x21\x87\xbc\xd3\xe7\x67\x4f\x38"
23416 "\xa8\x14\x25\x71\xe9\x2e\x4c\x21"
23417 "\x41\x82\x0c\x45\x39\x35\xa8\x75"
23418 "\x03\x29\x01\x84\x8c\xab\x48\xbe"
23419 "\x11\x56\x22\x67\xb7\x67\x1a\x09"
23420 "\xa1\x72\x25\x41\x3c\x39\x65\x80"
23421 "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d"
23422 "\xdd\x16\x8b\x63\x70\x4e\xc5\x17"
23423 "\x21\xe0\x84\x51\x4b\x6f\x05\x52"
23424 "\xe3\x63\x34\xfa\xa4\xaf\x33\x20"
23425 "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76"
23426 "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b"
23427 "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0"
23428 "\xb8\x8a\x13\x88\x71\xf4\x11\xa5"
23429 "\xe9\xa9\x10\x33\xe0\xbe\x49\x89"
23430 "\x41\x22\xf5\x9d\x80\x3e\x3b\x76"
23431 "\x01\x16\x50\x6e\x7c\x6a\x81\xe9"
23432 "\x13\x2c\xde\xb2\x5f\x79\xba\xb2"
23433 "\xb1\x75\xae\xd2\x07\x98\x4b\x69"
23434 "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98"
23435 "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a"
23436 "\x0d\x23\xb1\x79\x25\x13\x4b\xe5"
23437 "\xaf\x93\x20\x5c\x7f\x06\x7a\x34"
23438 "\x0b\x78\xe3\x67\x26\xe0\xad\x95"
23439 "\xc5\x4e\x26\x22\xcf\x73\x77\x62"
23440 "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9"
23441 "\xef\x38\x52\x18\x0e\x29\x7e\xef"
23442 "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2"
23443 "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d"
23444 "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe"
23445 "\x96\xcd\x41\x10\x78\x4e\x0c\xc9"
23446 "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab"
23447 "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa"
23448 "\x9d\x70\xbe\x4c\xa8\x98\x89\x01"
23449 "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa"
23450 "\x89\xf5\x14\x79\x18\x8f\x3b\x0d"
23451 "\x21\x17\xf8\x59\x15\x24\x64\x22"
23452 "\x57\x48\x80\xd5\x3d\x92\x30\x07"
23453 "\xd9\xa1\x4a\x23\x16\x43\x48\x0e"
23454 "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa"
23455 "\x49\xbc\x7e\x68\x6e\xa8\x46\x95"
23456 "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d"
23457 "\x6b\x84\xf3\x00\xba\x52\x05\x02"
23458 "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3"
23459 "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d"
23460 "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0"
23461 "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66"
23462 "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89"
23463 "\xf5\x21\x0f\x02\x48\x83\x74\xbf"
23464 "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b"
23465 "\xb1\x02\x0a\x5c\x79\x19\x3b\x75"
23466 "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e"
23467 "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023468 .len = 512,
Jussi Kivilinna08406052012-03-05 20:26:21 +020023469 },
Herbert Xuda7f0332008-07-31 17:08:25 +080023470};
23471
23472/*
23473 * SEED test vectors
23474 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023475static const struct cipher_testvec seed_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080023476 {
23477 .key = zeroed_string,
23478 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023479 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
Herbert Xuda7f0332008-07-31 17:08:25 +080023480 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023481 .ctext = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68"
Herbert Xuda7f0332008-07-31 17:08:25 +080023482 "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023483 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080023484 }, {
23485 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
23486 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
23487 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023488 .ptext = zeroed_string,
23489 .ctext = "\xc1\x1f\x22\xf2\x01\x40\x50\x50"
Herbert Xuda7f0332008-07-31 17:08:25 +080023490 "\x84\x48\x35\x97\xe4\x37\x0f\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023491 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080023492 }, {
23493 .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8"
23494 "\x5d\x74\xbf\xb3\xfd\x95\x61\x85",
23495 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023496 .ptext = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080023497 "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023498 .ctext = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d"
Herbert Xuda7f0332008-07-31 17:08:25 +080023499 "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023500 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080023501 }, {
23502 .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d"
23503 "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7",
23504 .klen = 16,
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023505 .ptext = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14"
Herbert Xuda7f0332008-07-31 17:08:25 +080023506 "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023507 .ctext = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9"
Herbert Xuda7f0332008-07-31 17:08:25 +080023508 "\x5d\x0b\x36\x18\xf4\x0f\x51\x22",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023509 .len = 16,
Herbert Xuda7f0332008-07-31 17:08:25 +080023510 }
23511};
23512
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023513static const struct cipher_testvec salsa20_stream_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080023514 /*
23515 * Testvectors from verified.test-vectors submitted to ECRYPT.
23516 * They are truncated to size 39, 64, 111, 129 to test a variety
23517 * of input length.
23518 */
23519 { /* Set 3, vector 0 */
23520 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
23521 "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F",
23522 .klen = 16,
23523 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023524 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080023525 "\x00\x00\x00\x00\x00\x00\x00\x00"
23526 "\x00\x00\x00\x00\x00\x00\x00\x00"
23527 "\x00\x00\x00\x00\x00\x00\x00\x00"
23528 "\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023529 .ctext = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7"
Herbert Xuda7f0332008-07-31 17:08:25 +080023530 "\x68\x02\x41\x0C\x68\x86\x88\x89"
23531 "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1"
23532 "\x40\xFB\x9B\x90\xE2\x10\x49\xBF"
23533 "\x58\x3F\x52\x79\x70\xEB\xC1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023534 .len = 39,
Herbert Xuda7f0332008-07-31 17:08:25 +080023535 }, { /* Set 5, vector 0 */
23536 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
23537 "\x00\x00\x00\x00\x00\x00\x00\x00",
23538 .klen = 16,
23539 .iv = "\x80\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023540 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080023541 "\x00\x00\x00\x00\x00\x00\x00\x00"
23542 "\x00\x00\x00\x00\x00\x00\x00\x00"
23543 "\x00\x00\x00\x00\x00\x00\x00\x00"
23544 "\x00\x00\x00\x00\x00\x00\x00\x00"
23545 "\x00\x00\x00\x00\x00\x00\x00\x00"
23546 "\x00\x00\x00\x00\x00\x00\x00\x00"
23547 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023548 .ctext = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57"
Herbert Xuda7f0332008-07-31 17:08:25 +080023549 "\xE5\x78\xE2\x23\xB0\xB7\x68\x01"
23550 "\x7B\x23\xB2\x67\xBB\x02\x34\xAE"
23551 "\x46\x26\xBF\x44\x3F\x21\x97\x76"
23552 "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F"
23553 "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09"
23554 "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9"
23555 "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023556 .len = 64,
Herbert Xuda7f0332008-07-31 17:08:25 +080023557 }, { /* Set 3, vector 27 */
23558 .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22"
23559 "\x23\x24\x25\x26\x27\x28\x29\x2A"
23560 "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32"
23561 "\x33\x34\x35\x36\x37\x38\x39\x3A",
23562 .klen = 32,
23563 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023564 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080023565 "\x00\x00\x00\x00\x00\x00\x00\x00"
23566 "\x00\x00\x00\x00\x00\x00\x00\x00"
23567 "\x00\x00\x00\x00\x00\x00\x00\x00"
23568 "\x00\x00\x00\x00\x00\x00\x00\x00"
23569 "\x00\x00\x00\x00\x00\x00\x00\x00"
23570 "\x00\x00\x00\x00\x00\x00\x00\x00"
23571 "\x00\x00\x00\x00\x00\x00\x00\x00"
23572 "\x00\x00\x00\x00\x00\x00\x00\x00"
23573 "\x00\x00\x00\x00\x00\x00\x00\x00"
23574 "\x00\x00\x00\x00\x00\x00\x00\x00"
23575 "\x00\x00\x00\x00\x00\x00\x00\x00"
23576 "\x00\x00\x00\x00\x00\x00\x00\x00"
23577 "\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023578 .ctext = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7"
Herbert Xuda7f0332008-07-31 17:08:25 +080023579 "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F"
23580 "\x87\xD9\x47\xF8\x28\x91\x35\x98"
23581 "\xDB\x72\xCC\x23\x29\x48\x56\x5E"
23582 "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B"
23583 "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23"
23584 "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B"
23585 "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59"
23586 "\x15\x14\xB4\x0E\x40\xE6\x53\xD1"
23587 "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E"
23588 "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92"
23589 "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6"
23590 "\x95\x46\x45\x54\xE9\x75\x03\x08"
23591 "\x44\xAF\xE5\x8A\x81\x12\x09",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023592 .len = 111,
Herbert Xuda7f0332008-07-31 17:08:25 +080023593 }, { /* Set 5, vector 27 */
23594 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
23595 "\x00\x00\x00\x00\x00\x00\x00\x00"
23596 "\x00\x00\x00\x00\x00\x00\x00\x00"
23597 "\x00\x00\x00\x00\x00\x00\x00\x00",
23598 .klen = 32,
23599 .iv = "\x00\x00\x00\x10\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023600 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Herbert Xuda7f0332008-07-31 17:08:25 +080023601 "\x00\x00\x00\x00\x00\x00\x00\x00"
23602 "\x00\x00\x00\x00\x00\x00\x00\x00"
23603 "\x00\x00\x00\x00\x00\x00\x00\x00"
23604 "\x00\x00\x00\x00\x00\x00\x00\x00"
23605 "\x00\x00\x00\x00\x00\x00\x00\x00"
23606 "\x00\x00\x00\x00\x00\x00\x00\x00"
23607 "\x00\x00\x00\x00\x00\x00\x00\x00"
23608 "\x00\x00\x00\x00\x00\x00\x00\x00"
23609 "\x00\x00\x00\x00\x00\x00\x00\x00"
23610 "\x00\x00\x00\x00\x00\x00\x00\x00"
23611 "\x00\x00\x00\x00\x00\x00\x00\x00"
23612 "\x00\x00\x00\x00\x00\x00\x00\x00"
23613 "\x00\x00\x00\x00\x00\x00\x00\x00"
23614 "\x00\x00\x00\x00\x00\x00\x00\x00"
23615 "\x00\x00\x00\x00\x00\x00\x00\x00"
23616 "\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023617 .ctext = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB"
Herbert Xuda7f0332008-07-31 17:08:25 +080023618 "\xE8\x1A\x7A\x43\x40\xEF\x53\x43"
23619 "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D"
23620 "\x28\x3D\xCF\x85\x1D\x69\x6E\x60"
23621 "\xF2\xDE\x74\x56\x18\x1B\x84\x10"
23622 "\xD4\x62\xBA\x60\x50\xF0\x61\xF2"
23623 "\x1C\x78\x7F\xC1\x24\x34\xAF\x58"
23624 "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0"
23625 "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC"
23626 "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75"
23627 "\xA0\x95\x71\xA1\x29\x39\x94\xCA"
23628 "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F"
23629 "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7"
23630 "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD"
23631 "\x2E\x40\x48\x75\xE9\xE2\x21\x45"
23632 "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59"
23633 "\x5A",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023634 .len = 129,
Herbert Xuda7f0332008-07-31 17:08:25 +080023635 }, { /* large test vector generated using Crypto++ */
23636 .key = "\x00\x01\x02\x03\x04\x05\x06\x07"
23637 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23638 "\x10\x11\x12\x13\x14\x15\x16\x17"
23639 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
23640 .klen = 32,
23641 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
23642 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070023643 .ptext =
Herbert Xuda7f0332008-07-31 17:08:25 +080023644 "\x00\x01\x02\x03\x04\x05\x06\x07"
23645 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
23646 "\x10\x11\x12\x13\x14\x15\x16\x17"
23647 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
23648 "\x20\x21\x22\x23\x24\x25\x26\x27"
23649 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
23650 "\x30\x31\x32\x33\x34\x35\x36\x37"
23651 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
23652 "\x40\x41\x42\x43\x44\x45\x46\x47"
23653 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
23654 "\x50\x51\x52\x53\x54\x55\x56\x57"
23655 "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f"
23656 "\x60\x61\x62\x63\x64\x65\x66\x67"
23657 "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f"
23658 "\x70\x71\x72\x73\x74\x75\x76\x77"
23659 "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f"
23660 "\x80\x81\x82\x83\x84\x85\x86\x87"
23661 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
23662 "\x90\x91\x92\x93\x94\x95\x96\x97"
23663 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f"
23664 "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
23665 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
23666 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
23667 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
23668 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
23669 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
23670 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
23671 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf"
23672 "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7"
23673 "\xe8\xe9\xea\xeb\xec\xed\xee\xef"
23674 "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7"
23675 "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff"
23676 "\x00\x03\x06\x09\x0c\x0f\x12\x15"
23677 "\x18\x1b\x1e\x21\x24\x27\x2a\x2d"
23678 "\x30\x33\x36\x39\x3c\x3f\x42\x45"
23679 "\x48\x4b\x4e\x51\x54\x57\x5a\x5d"
23680 "\x60\x63\x66\x69\x6c\x6f\x72\x75"
23681 "\x78\x7b\x7e\x81\x84\x87\x8a\x8d"
23682 "\x90\x93\x96\x99\x9c\x9f\xa2\xa5"
23683 "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd"
23684 "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5"
23685 "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed"
23686 "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05"
23687 "\x08\x0b\x0e\x11\x14\x17\x1a\x1d"
23688 "\x20\x23\x26\x29\x2c\x2f\x32\x35"
23689 "\x38\x3b\x3e\x41\x44\x47\x4a\x4d"
23690 "\x50\x53\x56\x59\x5c\x5f\x62\x65"
23691 "\x68\x6b\x6e\x71\x74\x77\x7a\x7d"
23692 "\x80\x83\x86\x89\x8c\x8f\x92\x95"
23693 "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad"
23694 "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5"
23695 "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd"
23696 "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5"
23697 "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d"
23698 "\x10\x13\x16\x19\x1c\x1f\x22\x25"
23699 "\x28\x2b\x2e\x31\x34\x37\x3a\x3d"
23700 "\x40\x43\x46\x49\x4c\x4f\x52\x55"
23701 "\x58\x5b\x5e\x61\x64\x67\x6a\x6d"
23702 "\x70\x73\x76\x79\x7c\x7f\x82\x85"
23703 "\x88\x8b\x8e\x91\x94\x97\x9a\x9d"
23704 "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5"
23705 "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd"
23706 "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5"
23707 "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd"
23708 "\x00\x05\x0a\x0f\x14\x19\x1e\x23"
23709 "\x28\x2d\x32\x37\x3c\x41\x46\x4b"
23710 "\x50\x55\x5a\x5f\x64\x69\x6e\x73"
23711 "\x78\x7d\x82\x87\x8c\x91\x96\x9b"
23712 "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3"
23713 "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb"
23714 "\xf0\xf5\xfa\xff\x04\x09\x0e\x13"
23715 "\x18\x1d\x22\x27\x2c\x31\x36\x3b"
23716 "\x40\x45\x4a\x4f\x54\x59\x5e\x63"
23717 "\x68\x6d\x72\x77\x7c\x81\x86\x8b"
23718 "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3"
23719 "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb"
23720 "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03"
23721 "\x08\x0d\x12\x17\x1c\x21\x26\x2b"
23722 "\x30\x35\x3a\x3f\x44\x49\x4e\x53"
23723 "\x58\x5d\x62\x67\x6c\x71\x76\x7b"
23724 "\x80\x85\x8a\x8f\x94\x99\x9e\xa3"
23725 "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb"
23726 "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3"
23727 "\xf8\xfd\x02\x07\x0c\x11\x16\x1b"
23728 "\x20\x25\x2a\x2f\x34\x39\x3e\x43"
23729 "\x48\x4d\x52\x57\x5c\x61\x66\x6b"
23730 "\x70\x75\x7a\x7f\x84\x89\x8e\x93"
23731 "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb"
23732 "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3"
23733 "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b"
23734 "\x10\x15\x1a\x1f\x24\x29\x2e\x33"
23735 "\x38\x3d\x42\x47\x4c\x51\x56\x5b"
23736 "\x60\x65\x6a\x6f\x74\x79\x7e\x83"
23737 "\x88\x8d\x92\x97\x9c\xa1\xa6\xab"
23738 "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3"
23739 "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb"
23740 "\x00\x07\x0e\x15\x1c\x23\x2a\x31"
23741 "\x38\x3f\x46\x4d\x54\x5b\x62\x69"
23742 "\x70\x77\x7e\x85\x8c\x93\x9a\xa1"
23743 "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9"
23744 "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11"
23745 "\x18\x1f\x26\x2d\x34\x3b\x42\x49"
23746 "\x50\x57\x5e\x65\x6c\x73\x7a\x81"
23747 "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9"
23748 "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1"
23749 "\xf8\xff\x06\x0d\x14\x1b\x22\x29"
23750 "\x30\x37\x3e\x45\x4c\x53\x5a\x61"
23751 "\x68\x6f\x76\x7d\x84\x8b\x92\x99"
23752 "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1"
23753 "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09"
23754 "\x10\x17\x1e\x25\x2c\x33\x3a\x41"
23755 "\x48\x4f\x56\x5d\x64\x6b\x72\x79"
23756 "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1"
23757 "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9"
23758 "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21"
23759 "\x28\x2f\x36\x3d\x44\x4b\x52\x59"
23760 "\x60\x67\x6e\x75\x7c\x83\x8a\x91"
23761 "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9"
23762 "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01"
23763 "\x08\x0f\x16\x1d\x24\x2b\x32\x39"
23764 "\x40\x47\x4e\x55\x5c\x63\x6a\x71"
23765 "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9"
23766 "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1"
23767 "\xe8\xef\xf6\xfd\x04\x0b\x12\x19"
23768 "\x20\x27\x2e\x35\x3c\x43\x4a\x51"
23769 "\x58\x5f\x66\x6d\x74\x7b\x82\x89"
23770 "\x90\x97\x9e\xa5\xac\xb3\xba\xc1"
23771 "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9"
23772 "\x00\x09\x12\x1b\x24\x2d\x36\x3f"
23773 "\x48\x51\x5a\x63\x6c\x75\x7e\x87"
23774 "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf"
23775 "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17"
23776 "\x20\x29\x32\x3b\x44\x4d\x56\x5f"
23777 "\x68\x71\x7a\x83\x8c\x95\x9e\xa7"
23778 "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef"
23779 "\xf8\x01\x0a\x13\x1c\x25\x2e\x37"
23780 "\x40\x49\x52\x5b\x64\x6d\x76\x7f"
23781 "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7"
23782 "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f"
23783 "\x18\x21\x2a\x33\x3c\x45\x4e\x57"
23784 "\x60\x69\x72\x7b\x84\x8d\x96\x9f"
23785 "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7"
23786 "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f"
23787 "\x38\x41\x4a\x53\x5c\x65\x6e\x77"
23788 "\x80\x89\x92\x9b\xa4\xad\xb6\xbf"
23789 "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07"
23790 "\x10\x19\x22\x2b\x34\x3d\x46\x4f"
23791 "\x58\x61\x6a\x73\x7c\x85\x8e\x97"
23792 "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf"
23793 "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27"
23794 "\x30\x39\x42\x4b\x54\x5d\x66\x6f"
23795 "\x78\x81\x8a\x93\x9c\xa5\xae\xb7"
23796 "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff"
23797 "\x08\x11\x1a\x23\x2c\x35\x3e\x47"
23798 "\x50\x59\x62\x6b\x74\x7d\x86\x8f"
23799 "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7"
23800 "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f"
23801 "\x28\x31\x3a\x43\x4c\x55\x5e\x67"
23802 "\x70\x79\x82\x8b\x94\x9d\xa6\xaf"
23803 "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7"
23804 "\x00\x0b\x16\x21\x2c\x37\x42\x4d"
23805 "\x58\x63\x6e\x79\x84\x8f\x9a\xa5"
23806 "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd"
23807 "\x08\x13\x1e\x29\x34\x3f\x4a\x55"
23808 "\x60\x6b\x76\x81\x8c\x97\xa2\xad"
23809 "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05"
23810 "\x10\x1b\x26\x31\x3c\x47\x52\x5d"
23811 "\x68\x73\x7e\x89\x94\x9f\xaa\xb5"
23812 "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d"
23813 "\x18\x23\x2e\x39\x44\x4f\x5a\x65"
23814 "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd"
23815 "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15"
23816 "\x20\x2b\x36\x41\x4c\x57\x62\x6d"
23817 "\x78\x83\x8e\x99\xa4\xaf\xba\xc5"
23818 "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d"
23819 "\x28\x33\x3e\x49\x54\x5f\x6a\x75"
23820 "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd"
23821 "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25"
23822 "\x30\x3b\x46\x51\x5c\x67\x72\x7d"
23823 "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5"
23824 "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d"
23825 "\x38\x43\x4e\x59\x64\x6f\x7a\x85"
23826 "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd"
23827 "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35"
23828 "\x40\x4b\x56\x61\x6c\x77\x82\x8d"
23829 "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5"
23830 "\xf0\xfb\x06\x11\x1c\x27\x32\x3d"
23831 "\x48\x53\x5e\x69\x74\x7f\x8a\x95"
23832 "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed"
23833 "\xf8\x03\x0e\x19\x24\x2f\x3a\x45"
23834 "\x50\x5b\x66\x71\x7c\x87\x92\x9d"
23835 "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5"
23836 "\x00\x0d\x1a\x27\x34\x41\x4e\x5b"
23837 "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3"
23838 "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b"
23839 "\x38\x45\x52\x5f\x6c\x79\x86\x93"
23840 "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb"
23841 "\x08\x15\x22\x2f\x3c\x49\x56\x63"
23842 "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb"
23843 "\xd8\xe5\xf2\xff\x0c\x19\x26\x33"
23844 "\x40\x4d\x5a\x67\x74\x81\x8e\x9b"
23845 "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03"
23846 "\x10\x1d\x2a\x37\x44\x51\x5e\x6b"
23847 "\x78\x85\x92\x9f\xac\xb9\xc6\xd3"
23848 "\xe0\xed\xfa\x07\x14\x21\x2e\x3b"
23849 "\x48\x55\x62\x6f\x7c\x89\x96\xa3"
23850 "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b"
23851 "\x18\x25\x32\x3f\x4c\x59\x66\x73"
23852 "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb"
23853 "\xe8\xf5\x02\x0f\x1c\x29\x36\x43"
23854 "\x50\x5d\x6a\x77\x84\x91\x9e\xab"
23855 "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13"
23856 "\x20\x2d\x3a\x47\x54\x61\x6e\x7b"
23857 "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3"
23858 "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b"
23859 "\x58\x65\x72\x7f\x8c\x99\xa6\xb3"
23860 "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b"
23861 "\x28\x35\x42\x4f\x5c\x69\x76\x83"
23862 "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb"
23863 "\xf8\x05\x12\x1f\x2c\x39\x46\x53"
23864 "\x60\x6d\x7a\x87\x94\xa1\xae\xbb"
23865 "\xc8\xd5\xe2\xef\xfc\x09\x16\x23"
23866 "\x30\x3d\x4a\x57\x64\x71\x7e\x8b"
23867 "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3"
23868 "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69"
23869 "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1"
23870 "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59"
23871 "\x68\x77\x86\x95\xa4\xb3\xc2\xd1"
23872 "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49"
23873 "\x58\x67\x76\x85\x94\xa3\xb2\xc1"
23874 "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39"
23875 "\x48\x57\x66\x75\x84\x93\xa2\xb1"
23876 "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29"
23877 "\x38\x47\x56\x65\x74\x83\x92\xa1"
23878 "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19"
23879 "\x28\x37\x46\x55\x64\x73\x82\x91"
23880 "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09"
23881 "\x18\x27\x36\x45\x54\x63\x72\x81"
23882 "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9"
23883 "\x08\x17\x26\x35\x44\x53\x62\x71"
23884 "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9"
23885 "\xf8\x07\x16\x25\x34\x43\x52\x61"
23886 "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9"
23887 "\xe8\xf7\x06\x15\x24\x33\x42\x51"
23888 "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9"
23889 "\xd8\xe7\xf6\x05\x14\x23\x32\x41"
23890 "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9"
23891 "\xc8\xd7\xe6\xf5\x04\x13\x22\x31"
23892 "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9"
23893 "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21"
23894 "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99"
23895 "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11"
23896 "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89"
23897 "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01"
23898 "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79"
23899 "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1"
23900 "\x00\x11\x22\x33\x44\x55\x66\x77"
23901 "\x88\x99\xaa\xbb\xcc\xdd\xee\xff"
23902 "\x10\x21\x32\x43\x54\x65\x76\x87"
23903 "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f"
23904 "\x20\x31\x42\x53\x64\x75\x86\x97"
23905 "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f"
23906 "\x30\x41\x52\x63\x74\x85\x96\xa7"
23907 "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f"
23908 "\x40\x51\x62\x73\x84\x95\xa6\xb7"
23909 "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f"
23910 "\x50\x61\x72\x83\x94\xa5\xb6\xc7"
23911 "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f"
23912 "\x60\x71\x82\x93\xa4\xb5\xc6\xd7"
23913 "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f"
23914 "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7"
23915 "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f"
23916 "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7"
23917 "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f"
23918 "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07"
23919 "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f"
23920 "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17"
23921 "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f"
23922 "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27"
23923 "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf"
23924 "\xc0\xd1\xe2\xf3\x04\x15\x26\x37"
23925 "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf"
23926 "\xd0\xe1\xf2\x03\x14\x25\x36\x47"
23927 "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf"
23928 "\xe0\xf1\x02\x13\x24\x35\x46\x57"
23929 "\x68\x79\x8a\x9b\xac\xbd\xce\xdf"
23930 "\xf0\x01\x12\x23\x34\x45\x56\x67"
23931 "\x78\x89\x9a\xab\xbc\xcd\xde\xef"
23932 "\x00\x13\x26\x39\x4c\x5f\x72\x85"
23933 "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d"
23934 "\x30\x43\x56\x69\x7c\x8f\xa2\xb5"
23935 "\xc8\xdb\xee\x01\x14\x27\x3a\x4d"
23936 "\x60\x73\x86\x99\xac\xbf\xd2\xe5"
23937 "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d"
23938 "\x90\xa3\xb6\xc9\xdc\xef\x02\x15"
23939 "\x28\x3b\x4e\x61\x74\x87\x9a\xad"
23940 "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45"
23941 "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd"
23942 "\xf0\x03\x16\x29\x3c\x4f\x62\x75"
23943 "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d"
23944 "\x20\x33\x46\x59\x6c\x7f\x92\xa5"
23945 "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d"
23946 "\x50\x63\x76\x89\x9c\xaf\xc2\xd5"
23947 "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d"
23948 "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05"
23949 "\x18\x2b\x3e\x51\x64\x77\x8a\x9d"
23950 "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35"
23951 "\x48\x5b\x6e\x81\x94\xa7\xba\xcd"
23952 "\xe0\xf3\x06\x19\x2c\x3f\x52\x65"
23953 "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd"
23954 "\x10\x23\x36\x49\x5c\x6f\x82\x95"
23955 "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d"
23956 "\x40\x53\x66\x79\x8c\x9f\xb2\xc5"
23957 "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d"
23958 "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5"
23959 "\x08\x1b\x2e\x41\x54\x67\x7a\x8d"
23960 "\xa0\xb3\xc6\xd9\xec\xff\x12\x25"
23961 "\x38\x4b\x5e\x71\x84\x97\xaa\xbd"
23962 "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55"
23963 "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed"
23964 "\x00\x15\x2a\x3f\x54\x69\x7e\x93"
23965 "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b"
23966 "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3"
23967 "\xf8\x0d\x22\x37\x4c\x61\x76\x8b"
23968 "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33"
23969 "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb"
23970 "\xf0\x05\x1a\x2f\x44\x59\x6e\x83"
23971 "\x98\xad\xc2\xd7\xec\x01\x16\x2b"
23972 "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3"
23973 "\xe8\xfd\x12\x27\x3c\x51\x66\x7b"
23974 "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23"
23975 "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb"
23976 "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73"
23977 "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b"
23978 "\x30\x45\x5a\x6f\x84\x99\xae\xc3"
23979 "\xd8\xed\x02\x17\x2c\x41\x56\x6b"
23980 "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13"
23981 "\x28\x3d\x52\x67\x7c\x91\xa6\xbb"
23982 "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63"
23983 "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b"
23984 "\x20\x35\x4a\x5f\x74\x89\x9e\xb3"
23985 "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b"
23986 "\x70\x85\x9a\xaf\xc4\xd9\xee\x03"
23987 "\x18\x2d\x42\x57\x6c\x81\x96\xab"
23988 "\xc0\xd5\xea\xff\x14\x29\x3e\x53"
23989 "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb"
23990 "\x10\x25\x3a\x4f\x64\x79\x8e\xa3"
23991 "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b"
23992 "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3"
23993 "\x08\x1d\x32\x47\x5c\x71\x86\x9b"
23994 "\xb0\xc5\xda\xef\x04\x19\x2e\x43"
23995 "\x58\x6d\x82\x97\xac\xc1\xd6\xeb"
23996 "\x00\x17\x2e\x45\x5c\x73\x8a\xa1"
23997 "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59"
23998 "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11"
23999 "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9"
24000 "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81"
24001 "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39"
24002 "\x50\x67\x7e\x95\xac\xc3\xda\xf1"
24003 "\x08\x1f\x36\x4d\x64\x7b\x92\xa9"
24004 "\xc0\xd7\xee\x05\x1c\x33\x4a\x61"
24005 "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19"
24006 "\x30\x47\x5e\x75\x8c\xa3\xba\xd1"
24007 "\xe8\xff\x16\x2d\x44\x5b\x72\x89"
24008 "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41"
24009 "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9"
24010 "\x10\x27\x3e\x55\x6c\x83\x9a\xb1"
24011 "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69"
24012 "\x80\x97\xae\xc5\xdc\xf3\x0a\x21"
24013 "\x38\x4f\x66\x7d\x94\xab\xc2\xd9"
24014 "\xf0\x07\x1e\x35\x4c\x63\x7a\x91"
24015 "\xa8\xbf\xd6\xed\x04\x1b\x32\x49"
24016 "\x60\x77\x8e\xa5\xbc\xd3\xea\x01"
24017 "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9"
24018 "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71"
24019 "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29"
24020 "\x40\x57\x6e\x85\x9c\xb3\xca\xe1"
24021 "\xf8\x0f\x26\x3d\x54\x6b\x82\x99"
24022 "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51"
24023 "\x68\x7f\x96\xad\xc4\xdb\xf2\x09"
24024 "\x20\x37\x4e\x65\x7c\x93\xaa\xc1"
24025 "\xd8\xef\x06\x1d\x34\x4b\x62\x79"
24026 "\x90\xa7\xbe\xd5\xec\x03\x1a\x31"
24027 "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9"
24028 "\x00\x19\x32\x4b\x64\x7d\x96\xaf"
24029 "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77"
24030 "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f"
24031 "\x58\x71\x8a\xa3\xbc\xd5\xee\x07"
24032 "\x20\x39\x52\x6b\x84\x9d\xb6\xcf"
24033 "\xe8\x01\x1a\x33\x4c\x65\x7e\x97"
24034 "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f"
24035 "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27"
24036 "\x40\x59\x72\x8b\xa4\xbd\xd6\xef"
24037 "\x08\x21\x3a\x53\x6c\x85\x9e\xb7"
24038 "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f"
24039 "\x98\xb1\xca\xe3\xfc\x15\x2e\x47"
24040 "\x60\x79\x92\xab\xc4\xdd\xf6\x0f"
24041 "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7"
24042 "\xf0\x09\x22\x3b\x54\x6d\x86\x9f"
24043 "\xb8\xd1\xea\x03\x1c\x35\x4e\x67"
24044 "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f"
24045 "\x48\x61\x7a\x93\xac\xc5\xde\xf7"
24046 "\x10\x29\x42\x5b\x74\x8d\xa6\xbf"
24047 "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87"
24048 "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f"
24049 "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17"
24050 "\x30\x49\x62\x7b\x94\xad\xc6\xdf"
24051 "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7"
24052 "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f"
24053 "\x88\xa1\xba\xd3\xec\x05\x1e\x37"
24054 "\x50\x69\x82\x9b\xb4\xcd\xe6\xff"
24055 "\x18\x31\x4a\x63\x7c\x95\xae\xc7"
24056 "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f"
24057 "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57"
24058 "\x70\x89\xa2\xbb\xd4\xed\x06\x1f"
24059 "\x38\x51\x6a\x83\x9c\xb5\xce\xe7"
24060 "\x00\x1b\x36\x51\x6c\x87\xa2\xbd"
24061 "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95"
24062 "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d"
24063 "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45"
24064 "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d"
24065 "\x38\x53\x6e\x89\xa4\xbf\xda\xf5"
24066 "\x10\x2b\x46\x61\x7c\x97\xb2\xcd"
24067 "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5"
24068 "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d"
24069 "\x98\xb3\xce\xe9\x04\x1f\x3a\x55"
24070 "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d"
24071 "\x48\x63\x7e\x99\xb4\xcf\xea\x05"
24072 "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd"
24073 "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5"
24074 "\xd0\xeb\x06\x21\x3c\x57\x72\x8d"
24075 "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65"
24076 "\x80\x9b\xb6\xd1\xec\x07\x22\x3d"
24077 "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15"
24078 "\x30\x4b\x66\x81\x9c\xb7\xd2\xed"
24079 "\x08\x23\x3e\x59\x74\x8f\xaa\xc5"
24080 "\xe0\xfb\x16\x31\x4c\x67\x82\x9d"
24081 "\xb8\xd3\xee\x09\x24\x3f\x5a\x75"
24082 "\x90\xab\xc6\xe1\xfc\x17\x32\x4d"
24083 "\x68\x83\x9e\xb9\xd4\xef\x0a\x25"
24084 "\x40\x5b\x76\x91\xac\xc7\xe2\xfd"
24085 "\x18\x33\x4e\x69\x84\x9f\xba\xd5"
24086 "\xf0\x0b\x26\x41\x5c\x77\x92\xad"
24087 "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85"
24088 "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d"
24089 "\x78\x93\xae\xc9\xe4\xff\x1a\x35"
24090 "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d"
24091 "\x28\x43\x5e\x79\x94\xaf\xca\xe5"
24092 "\x00\x1d\x3a\x57\x74\x91\xae\xcb"
24093 "\xe8\x05\x22\x3f\x5c\x79\x96\xb3"
24094 "\xd0\xed\x0a\x27\x44\x61\x7e\x9b"
24095 "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83"
24096 "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b"
24097 "\x88\xa5\xc2\xdf\xfc\x19\x36\x53"
24098 "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b"
24099 "\x58\x75\x92\xaf\xcc\xe9\x06\x23"
24100 "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b"
24101 "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3"
24102 "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb"
24103 "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3"
24104 "\xe0\xfd\x1a\x37\x54\x71\x8e\xab"
24105 "\xc8\xe5\x02\x1f\x3c\x59\x76\x93"
24106 "\xb0\xcd\xea\x07\x24\x41\x5e\x7b"
24107 "\x98\xb5\xd2\xef\x0c\x29\x46\x63"
24108 "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b"
24109 "\x68\x85\xa2\xbf\xdc\xf9\x16\x33"
24110 "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b"
24111 "\x38\x55\x72\x8f\xac\xc9\xe6\x03"
24112 "\x20\x3d\x5a\x77\x94\xb1\xce\xeb"
24113 "\x08\x25\x42\x5f\x7c\x99\xb6\xd3"
24114 "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb"
24115 "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3"
24116 "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b"
24117 "\xa8\xc5\xe2\xff\x1c\x39\x56\x73"
24118 "\x90\xad\xca\xe7\x04\x21\x3e\x5b"
24119 "\x78\x95\xb2\xcf\xec\x09\x26\x43"
24120 "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b"
24121 "\x48\x65\x82\x9f\xbc\xd9\xf6\x13"
24122 "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb"
24123 "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3"
24124 "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9"
24125 "\xf8\x17\x36\x55\x74\x93\xb2\xd1"
24126 "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9"
24127 "\xe8\x07\x26\x45\x64\x83\xa2\xc1"
24128 "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9"
24129 "\xd8\xf7\x16\x35\x54\x73\x92\xb1"
24130 "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9"
24131 "\xc8\xe7\x06\x25\x44\x63\x82\xa1"
24132 "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99"
24133 "\xb8\xd7\xf6\x15\x34\x53\x72\x91"
24134 "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89"
24135 "\xa8\xc7\xe6\x05\x24\x43\x62\x81"
24136 "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79"
24137 "\x98\xb7\xd6\xf5\x14\x33\x52\x71"
24138 "\x90\xaf\xce\xed\x0c\x2b\x4a\x69"
24139 "\x88\xa7\xc6\xe5\x04\x23\x42\x61"
24140 "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59"
24141 "\x78\x97\xb6\xd5\xf4\x13\x32\x51"
24142 "\x70\x8f\xae\xcd\xec\x0b\x2a\x49"
24143 "\x68\x87\xa6\xc5\xe4\x03\x22\x41"
24144 "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39"
24145 "\x58\x77\x96\xb5\xd4\xf3\x12\x31"
24146 "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29"
24147 "\x48\x67\x86\xa5\xc4\xe3\x02\x21"
24148 "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19"
24149 "\x38\x57\x76\x95\xb4\xd3\xf2\x11"
24150 "\x30\x4f\x6e\x8d\xac\xcb\xea\x09"
24151 "\x28\x47\x66\x85\xa4\xc3\xe2\x01"
24152 "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9"
24153 "\x18\x37\x56\x75\x94\xb3\xd2\xf1"
24154 "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9"
24155 "\x08\x27\x46\x65\x84\xa3\xc2\xe1"
24156 "\x00\x21\x42\x63",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024157 .ctext =
Herbert Xuda7f0332008-07-31 17:08:25 +080024158 "\xb5\x81\xf5\x64\x18\x73\xe3\xf0"
24159 "\x4c\x13\xf2\x77\x18\x60\x65\x5e"
24160 "\x29\x01\xce\x98\x55\x53\xf9\x0c"
24161 "\x2a\x08\xd5\x09\xb3\x57\x55\x56"
24162 "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0"
24163 "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4"
24164 "\x43\xd1\xfe\x94\x7b\x88\x06\x5a"
24165 "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90"
24166 "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2"
24167 "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01"
24168 "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91"
24169 "\xbb\xde\x56\x86\xab\x65\x21\x30"
24170 "\x00\x84\x65\x24\xa5\x7d\x85\xb4"
24171 "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b"
24172 "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c"
24173 "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7"
24174 "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75"
24175 "\x77\x89\x30\x8b\x59\xdb\xa2\xb2"
24176 "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f"
24177 "\x4f\xd9\xd3\x56\x28\x97\x44\xdc"
24178 "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5"
24179 "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d"
24180 "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1"
24181 "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4"
24182 "\x5b\x9a\x96\xc5\x53\xbc\xae\x20"
24183 "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1"
24184 "\x5e\x76\x9e\x46\x99\xf6\x2a\x15"
24185 "\xc6\x97\x02\xa0\x66\x43\xd1\xa6"
24186 "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5"
24187 "\xcd\x76\x95\xb8\x7a\x82\x7f\x21"
24188 "\x45\xff\x3f\xce\x55\xf6\x95\x10"
24189 "\x08\x77\x10\x43\xc6\xf3\x09\xe5"
24190 "\x68\xe7\x3c\xad\x00\x52\x45\x0d"
24191 "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d"
24192 "\xe6\x25\xae\x98\x12\x8e\x19\x9c"
24193 "\x81\x68\xb1\x11\xf6\x69\xda\xe3"
24194 "\x62\x08\x18\x7a\x25\x49\x28\xac"
24195 "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7"
24196 "\x5d\x8e\xec\x49\x40\x21\xbf\x5a"
24197 "\x98\xf3\x02\x68\x55\x03\x7f\x8a"
24198 "\xe5\x94\x0c\x32\x5c\x07\x82\x63"
24199 "\xaf\x6f\x91\x40\x84\x8e\x52\x25"
24200 "\xd0\xb0\x29\x53\x05\xe2\x50\x7a"
24201 "\x34\xeb\xc9\x46\x20\xa8\x3d\xde"
24202 "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1"
24203 "\x15\x47\xc7\x50\x40\x6d\x91\xc5"
24204 "\xe7\x93\x95\x1a\xd3\x57\xbc\x52"
24205 "\x33\xee\x14\x19\x22\x52\x89\xa7"
24206 "\x4a\x25\x56\x77\x4b\xca\xcf\x0a"
24207 "\xe1\xf5\x35\x85\x30\x7e\x59\x4a"
24208 "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac"
24209 "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99"
24210 "\xca\x88\x63\x3d\x02\x58\x6b\xa9"
24211 "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74"
24212 "\x1c\xbf\x46\xab\x97\xcc\xf8\x54"
24213 "\x04\x07\x08\x52\xe6\xc0\xda\x93"
24214 "\x74\x7d\x93\x99\x5d\x78\x68\xa6"
24215 "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b"
24216 "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04"
24217 "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1"
24218 "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4"
24219 "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4"
24220 "\x54\x26\x72\x9e\x61\xfa\x86\xcf"
24221 "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae"
24222 "\x5a\x90\xae\x75\x0a\x74\x18\x89"
24223 "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6"
24224 "\x62\x07\x25\x01\xc7\xc2\x4f\xf9"
24225 "\xe8\xfe\x63\x95\x80\x07\xb4\x26"
24226 "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb"
24227 "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a"
24228 "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f"
24229 "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec"
24230 "\x33\xe6\x69\xf4\x45\x25\x86\x3a"
24231 "\x22\x94\x4f\x00\x23\x6a\x44\xc2"
24232 "\x49\x97\x33\xab\x36\x14\x0a\x70"
24233 "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9"
24234 "\xb8\xe7\x76\x29\x22\x83\xd7\xf2"
24235 "\x94\xf4\x41\x49\xba\x5f\x7b\x07"
24236 "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c"
24237 "\xc2\x2e\x37\x40\x49\xc3\x38\x16"
24238 "\xe2\x4f\x77\x82\xb0\x68\x4c\x71"
24239 "\x1d\x57\x61\x9c\xd9\x4e\x54\x99"
24240 "\x47\x13\x28\x73\x3c\xbb\x00\x90"
24241 "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71"
24242 "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd"
24243 "\xad\x6c\x50\x69\x6c\x3e\x6d\x80"
24244 "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d"
24245 "\xad\x04\x07\xae\x22\x90\x4a\x93"
24246 "\x32\x0e\x36\x9b\x1b\x46\xba\x3b"
24247 "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b"
24248 "\x2a\x3d\x45\xfe\x03\x61\x10\x85"
24249 "\x17\x69\xa6\x78\xcc\x6c\x87\x49"
24250 "\x53\xf9\x80\x10\xde\x80\xa2\x41"
24251 "\x6a\xc3\x32\x02\xad\x6d\x3c\x56"
24252 "\x00\x71\x51\x06\xa7\xbd\xfb\xef"
24253 "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c"
24254 "\x66\xb0\x49\x23\xc4\x47\x10\x0e"
24255 "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa"
24256 "\xde\xff\x07\x44\xdd\x56\x1b\xad"
24257 "\x09\x77\xfb\x5b\x12\xb8\x0d\x38"
24258 "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4"
24259 "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22"
24260 "\xa7\x31\xa1\x20\x86\xc7\x1b\x99"
24261 "\xdb\xd1\x89\xf4\x94\xa3\x53\x69"
24262 "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6"
24263 "\x07\x37\x91\x9f\xfd\x67\x50\x3a"
24264 "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1"
24265 "\xf9\xe5\x39\xa3\x31\xac\x07\x36"
24266 "\x23\xf8\x66\x18\x14\x28\x34\x0f"
24267 "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55"
24268 "\x01\x41\xb2\x75\x8d\xcb\x96\x85"
24269 "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20"
24270 "\x44\x1f\xc0\x14\x22\x75\x61\xe8"
24271 "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7"
24272 "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a"
24273 "\x57\x50\xdb\x17\x41\x65\x4d\xa3"
24274 "\x02\xc9\x9c\x9c\x53\xfb\x39\x39"
24275 "\x9b\x1d\x72\x24\xda\xb7\x39\xbe"
24276 "\x13\x3b\xfa\x29\xda\x9e\x54\x64"
24277 "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa"
24278 "\xcb\x47\x85\xe9\x61\x38\xbc\xbe"
24279 "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9"
24280 "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f"
24281 "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d"
24282 "\xca\x8e\x61\x87\xde\xad\x80\xd2"
24283 "\xf5\xf9\x80\xef\x15\x75\xaf\xf5"
24284 "\x80\xfb\xff\x6d\x1e\x25\xb7\x40"
24285 "\x61\x6a\x39\x5a\x6a\xb5\x31\xab"
24286 "\x97\x8a\x19\x89\x44\x40\xc0\xa6"
24287 "\xb4\x4e\x30\x32\x7b\x13\xe7\x67"
24288 "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4"
24289 "\x28\x99\xad\x2c\x76\xa3\x78\xc2"
24290 "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0"
24291 "\x62\x4b\x10\x8e\x7c\x17\x43\xb3"
24292 "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a"
24293 "\x71\xf5\x97\xdc\xd1\x45\xdd\x28"
24294 "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc"
24295 "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d"
24296 "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2"
24297 "\x13\x36\x79\x80\x53\xe8\xd3\xa6"
24298 "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e"
24299 "\x45\xce\xf8\xb0\x9e\x5c\x33\x82"
24300 "\xb0\x44\x56\xfc\x05\x09\xe9\x2a"
24301 "\xac\x26\x80\x14\x1d\xc8\x3a\x35"
24302 "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a"
24303 "\x35\x58\x79\x8e\x0f\x66\xea\xaf"
24304 "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a"
24305 "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a"
24306 "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a"
24307 "\x54\xda\x24\x6a\xc4\x41\x65\x46"
24308 "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0"
24309 "\x2c\x91\xa7\xee\xc4\x81\x07\x86"
24310 "\x75\x5e\x33\x69\x97\xe4\x2c\xa8"
24311 "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda"
24312 "\x6d\x94\x41\xda\x2c\x1e\x89\xc4"
24313 "\xc2\xaf\x1e\x00\x05\x0b\x83\x60"
24314 "\xbd\x43\xea\x15\x23\x7f\xb9\xac"
24315 "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0"
24316 "\xf3\x19\x31\xbb\x4a\x74\x84\x17"
24317 "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb"
24318 "\x80\x38\x15\x52\xcb\x6f\xea\xe5"
24319 "\x73\x9c\xd9\x24\x69\xc6\x95\x32"
24320 "\x21\xc8\x11\xe4\xdc\x36\xd7\x93"
24321 "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf"
24322 "\x31\xdd\x93\x75\x78\x8a\x2c\x94"
24323 "\x87\x1a\x58\xec\x9e\x7d\x4d\xba"
24324 "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14"
24325 "\xef\xcc\xa7\xec\xab\x43\x09\x18"
24326 "\xd3\xab\x68\xd1\x07\x99\x44\x47"
24327 "\xd6\x83\x85\x3b\x30\xea\xa9\x6b"
24328 "\x63\xea\xc4\x07\xfb\x43\x2f\xa4"
24329 "\xaa\xb0\xab\x03\x89\xce\x3f\x8c"
24330 "\x02\x7c\x86\x54\xbc\x88\xaf\x75"
24331 "\xd2\xdc\x63\x17\xd3\x26\xf6\x96"
24332 "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc"
24333 "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2"
24334 "\xe5\x35\x90\x1f\x85\x4c\x76\x5b"
24335 "\x66\xce\x44\xa4\x32\x9f\xe6\x7b"
24336 "\x71\x6e\x9f\x58\x15\x67\x72\x87"
24337 "\x64\x8e\x3a\x44\x45\xd4\x76\xfa"
24338 "\xc2\xf6\xef\x85\x05\x18\x7a\x9b"
24339 "\xba\x41\x54\xac\xf0\xfc\x59\x12"
24340 "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a"
24341 "\x62\x8d\x83\x2c\x03\xbe\x05\x76"
24342 "\x2e\x53\x49\x97\x94\x33\xae\x40"
24343 "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b"
24344 "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb"
24345 "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3"
24346 "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d"
24347 "\xce\x87\xad\xcc\x72\x05\x00\x29"
24348 "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2"
24349 "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef"
24350 "\x5c\x50\x79\x2a\x56\x56\x71\x8c"
24351 "\xac\xc0\x79\x50\x69\xca\x59\x32"
24352 "\x65\xf2\x54\xe4\x52\x38\x76\xd1"
24353 "\x5e\xde\x26\x9e\xfb\x75\x2e\x11"
24354 "\xb5\x10\xf4\x17\x73\xf5\x89\xc7"
24355 "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52"
24356 "\x24\x40\x99\xfe\x9b\x85\x0b\x6c"
24357 "\x22\x3e\x8b\xae\x86\xa1\xd2\x79"
24358 "\x05\x68\x6b\xab\xe3\x41\x49\xed"
24359 "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a"
24360 "\x59\xc9\x26\x8b\xef\x30\x4c\x88"
24361 "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b"
24362 "\xf3\xc4\x53\x0b\x89\x5d\x28\x92"
24363 "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc"
24364 "\xc0\x12\x23\x5f\x5a\x78\x86\x43"
24365 "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19"
24366 "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89"
24367 "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f"
24368 "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba"
24369 "\xec\x8b\x62\x8e\xcb\x4a\x70\x43"
24370 "\xc7\xc2\xc4\xca\x82\x03\x73\xe9"
24371 "\x11\xdf\xcf\x54\xea\xc9\xb0\x95"
24372 "\x51\xc0\x13\x3d\x92\x05\xfa\xf4"
24373 "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc"
24374 "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2"
24375 "\xaf\xf1\x85\x75\x7d\x03\x61\x68"
24376 "\x4e\x78\xc6\x92\x7d\x86\x7d\x77"
24377 "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb"
24378 "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a"
24379 "\xe2\xba\x6c\x64\x9a\x13\x28\xdf"
24380 "\x85\x75\xe6\x43\xf6\x87\x08\x68"
24381 "\x6e\xba\x6e\x79\x9f\x04\xbc\x23"
24382 "\x50\xf6\x33\x5c\x1f\x24\x25\xbe"
24383 "\x33\x47\x80\x45\x56\xa3\xa7\xd7"
24384 "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad"
24385 "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93"
24386 "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3"
24387 "\xd6\x2e\xff\x24\xd8\x71\x6c\xed"
24388 "\xaf\x55\xeb\x22\xac\x93\x68\x32"
24389 "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7"
24390 "\x10\xe1\x3c\x92\x1a\xf3\x23\x78"
24391 "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20"
24392 "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e"
24393 "\x78\xf1\x2d\x50\x12\x77\xa8\x60"
24394 "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a"
24395 "\xc0\x96\x80\x4e\x0a\xb4\x93\x35"
24396 "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90"
24397 "\x11\x16\x8f\xa2\xec\x47\xbe\xac"
24398 "\x56\x01\x26\x56\xb1\x8c\xb2\x10"
24399 "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20"
24400 "\x63\xf1\x69\x20\x4f\x13\x12\x1f"
24401 "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe"
24402 "\xf7\x26\x4d\x2b\x84\x7b\x42\xad"
24403 "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1"
24404 "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46"
24405 "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a"
24406 "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3"
24407 "\xab\xd4\x45\x43\x8c\xb6\x02\xb0"
24408 "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e"
24409 "\x44\x21\x2a\x8d\x88\x9d\x57\xf4"
24410 "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75"
24411 "\x5c\x82\x65\x3e\x03\x5c\x29\x8f"
24412 "\x38\x55\xab\x33\x26\xef\x9f\x43"
24413 "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a"
24414 "\x58\x09\x09\x1b\xc3\x65\x46\x46"
24415 "\x1d\xa7\x94\x18\x23\x50\x2c\xca"
24416 "\x2c\x55\x19\x97\x01\x9d\x93\x3b"
24417 "\x63\x86\xf2\x03\x67\x45\xd2\x72"
24418 "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11"
24419 "\x13\xf1\xeb\x21\xc7\xd9\x56\x82"
24420 "\x2b\x82\x39\xbd\x69\x54\xed\x62"
24421 "\xc3\xe2\xde\x73\xd4\x6a\x12\xae"
24422 "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8"
24423 "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1"
24424 "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac"
24425 "\x98\x65\x85\xd1\x93\x53\xd3\x7b"
24426 "\x09\xdd\x4b\x10\x6d\x84\xb0\x13"
24427 "\x65\xbd\xcf\x52\x09\xc4\x85\xe2"
24428 "\x84\x74\x15\x65\xb7\xf7\x51\xaf"
24429 "\x55\xad\xa4\xd1\x22\x54\x70\x94"
24430 "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a"
24431 "\x31\xef\xaa\x25\xd0\x7f\x4f\xea"
24432 "\x1d\x55\x42\xe5\x49\xb0\xd0\x46"
24433 "\x62\x36\x43\xb2\x82\x15\x75\x50"
24434 "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4"
24435 "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1"
24436 "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7"
24437 "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15"
24438 "\x83\xcb\x72\xd0\x33\x79\x00\x2d"
24439 "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45"
24440 "\xc0\x75\x3a\x39\xea\x68\xf7\x5d"
24441 "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47"
24442 "\xae\x35\x0a\x31\x7a\x14\x4d\x4a"
24443 "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b"
24444 "\x26\x47\xf9\xc3\xf9\xde\x70\xf5"
24445 "\x61\xab\xa9\x27\x9f\x82\xe4\x9c"
24446 "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49"
24447 "\xe9\xfd\x59\x14\x36\x49\x40\x6d"
24448 "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c"
24449 "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2"
24450 "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35"
24451 "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf"
24452 "\x9c\xcb\x94\xf3\x21\xa0\x77\x50"
24453 "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b"
24454 "\x92\x90\xd8\xe1\xd1\xed\x4b\x42"
24455 "\xd7\x37\xaf\x65\x3d\x11\x39\xb6"
24456 "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e"
24457 "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e"
24458 "\x29\x06\x9d\xa4\x51\x3a\x10\x63"
24459 "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28"
24460 "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c"
24461 "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e"
24462 "\x94\x29\x1a\xa7\x80\xfa\x0e\x33"
24463 "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18"
24464 "\x37\xa9\x64\x08\x4d\x94\x5a\x88"
24465 "\xca\x35\xce\x81\x02\xe3\x1f\x1b"
24466 "\x89\x1a\x77\x85\xe3\x41\x6d\x32"
24467 "\x42\x19\x23\x7d\xc8\x73\xee\x25"
24468 "\x85\x0d\xf8\x31\x25\x79\x1b\x6f"
24469 "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7"
24470 "\x82\x36\x6a\x0c\x46\x22\x15\xe9"
24471 "\xff\x72\x41\x91\x91\x7d\x3a\xb7"
24472 "\xdd\x65\x99\x70\xf6\x8d\x84\xf8"
24473 "\x67\x15\x20\x11\xd6\xb2\x55\x7b"
24474 "\xdb\x87\xee\xef\x55\x89\x2a\x59"
24475 "\x2b\x07\x8f\x43\x8a\x59\x3c\x01"
24476 "\x8b\x65\x54\xa1\x66\xd5\x38\xbd"
24477 "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b"
24478 "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff"
24479 "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25"
24480 "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d"
24481 "\x5c\xfd\x4b\x27\x18\xf9\x61\x76"
24482 "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5"
24483 "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a"
24484 "\xae\xab\x86\x09\x89\xc9\xc2\x40"
24485 "\x39\x2c\x81\xb3\xb8\x17\x67\xc2"
24486 "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a"
24487 "\x34\x52\xc5\xdb\x0a\xf5\x63\x39"
24488 "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35"
24489 "\xe3\xb1\x18\x45\x67\xf9\x22\x38"
24490 "\x95\xd9\x34\x34\x86\xc6\x41\x94"
24491 "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8"
24492 "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10"
24493 "\xff\xe6\xae\x69\x76\xbc\x0d\xb4"
24494 "\x09\x90\x0c\xa2\x65\x0c\xad\x74"
24495 "\xf5\xd7\xff\xda\xc1\xce\x85\xbe"
24496 "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c"
24497 "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b"
24498 "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96"
24499 "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9"
24500 "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d"
24501 "\xc9\x92\xae\xf2\xa5\x7b\x05\x49"
24502 "\xa7\x33\x34\x86\xca\xe4\x96\x23"
24503 "\x76\x5b\xf2\xc6\xf1\x51\x28\x42"
24504 "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31"
24505 "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4"
24506 "\x3f\x50\x59\xe1\x5c\x05\xb7\x27"
24507 "\x48\xbf\x07\xec\x1b\x13\xbe\x2b"
24508 "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c"
24509 "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3"
24510 "\xde\x59\xec\x71\xeb\x89\xbb\xd0"
24511 "\x09\x50\xe1\x16\x3f\xfd\x1c\x34"
24512 "\xc3\x1c\xa1\x10\x77\x53\x98\xef"
24513 "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26"
24514 "\xc7\x42\xd9\x49\xda\x58\x2b\x6e"
24515 "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e"
24516 "\x68\xc8\x7f\x51\x22\x42\xef\x49"
24517 "\xa4\x55\xb6\x36\xac\x09\xc7\x31"
24518 "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7"
24519 "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45"
24520 "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e"
24521 "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3"
24522 "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c"
24523 "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87"
24524 "\x73\x2e\x71\x79\x16\x06\x63\x28"
24525 "\x09\x15\xd8\x89\x38\x38\x3d\xb5"
24526 "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d"
24527 "\xc8\xca\xef\xf9\x27\xd8\x07\x86"
24528 "\xf7\x43\x0b\x55\x15\x3f\x9f\x83"
24529 "\xef\xdc\x49\x9d\x2a\xc1\x54\x62"
24530 "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3"
24531 "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75"
24532 "\x87\x26\xec\x61\x2c\xb4\x0f\x89"
24533 "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d"
24534 "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25"
24535 "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc"
24536 "\x2b\xa8\x67\x96\x12\x1f\x5b\x96"
24537 "\xc6\x14\x53\xaf\x44\xea\xd6\xe2"
24538 "\x94\x98\xe4\x12\x93\x4c\x92\xe0"
24539 "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47"
24540 "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf"
24541 "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03"
24542 "\x19\x07\xaf\x90\x62\x5c\x68\x98"
24543 "\x48\x16\x11\x02\x9d\xee\xb4\x9b"
24544 "\xe5\x42\x7f\x08\xfd\x16\x32\x0b"
24545 "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29"
24546 "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2"
24547 "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74"
24548 "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd"
24549 "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67"
24550 "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f"
24551 "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e"
24552 "\x14\x32\xbb\x1b\x38\x77\xd6\x7f"
24553 "\x54\x4c\xdf\x75\xf3\x07\x2d\x33"
24554 "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3"
24555 "\xef\x2f\xce\x72\xe5\x24\x60\xc1"
24556 "\x30\xe2\xab\xa1\x8e\x11\x09\xa8"
24557 "\x21\x33\x44\xfe\x7f\x35\x32\x93"
24558 "\x39\xa7\xad\x8b\x79\x06\xb2\xcb"
24559 "\x4e\xa9\x5f\xc7\xba\x74\x29\xec"
24560 "\x93\xa0\x4e\x54\x93\xc0\xbc\x55"
24561 "\x64\xf0\x48\xe5\x57\x99\xee\x75"
24562 "\xd6\x79\x0f\x66\xb7\xc6\x57\x76"
24563 "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f"
24564 "\x83\x76\xd6\x0e\xaa\xe6\x90\x39"
24565 "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8"
24566 "\x58\xa0\x58\x7d\x33\xe0\x22\x39"
24567 "\x44\x64\x87\x86\x5a\x2f\xa7\x7e"
24568 "\x0f\x38\xea\xb0\x30\xcc\x61\xa5"
24569 "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9"
24570 "\x0c\x32\x4b\xb5\x49\x28\xab\x85"
24571 "\x2f\x8e\x01\x36\x38\x52\xd0\xba"
24572 "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b"
24573 "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1"
24574 "\x5c\x94\x04\xe1\xf5\x18\x6d\x51"
24575 "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42"
24576 "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03"
24577 "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f"
24578 "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11"
24579 "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54"
24580 "\xea\xa4\x98\x66\xd4\x22\x3b\xd3"
24581 "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b"
24582 "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a"
24583 "\x81\xe1\x86\x89\x3e\x56\x10\x3c"
24584 "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2"
24585 "\x53\xec\xa7\x89\xee\xc8\x56\xb5"
24586 "\x36\x2c\xb2\x03\xba\x99\xdd\x7c"
24587 "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8"
24588 "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2"
24589 "\x56\xf5\x4e\x01\x35\x27\x45\x77"
24590 "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97"
24591 "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad"
24592 "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5"
24593 "\x99\x20\x43\x85\x9d\xa5\xe2\x8b"
24594 "\xb8\xae\xeb\xd0\x32\x0d\x52\x78"
24595 "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc"
24596 "\x37\xfb\x6f\x04\xfc\xfa\x92\x10"
24597 "\xac\xf8\x3e\x21\xdc\x8c\x21\x16"
24598 "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98"
24599 "\x23\xab\x23\x3c\xb2\x10\xa0\x53"
24600 "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4"
24601 "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e"
24602 "\x0f\xd2\x98\x88\x81\x8b\x45\x67"
24603 "\xea\x33\xf1\xeb\xe9\x97\x55\x2e"
24604 "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68"
24605 "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62"
24606 "\x87\x8f\x03\x21\x28\x95\x0c\x89"
24607 "\x25\x22\x4a\xb0\x93\xa9\x50\xa2"
24608 "\x2f\x57\x6e\x18\x42\x19\x54\x0c"
24609 "\x55\x67\xc6\x11\x49\xf4\x5c\xd2"
24610 "\xe9\x3d\xdd\x8b\x48\x71\x21\x00"
24611 "\xc3\x9a\x6c\x85\x74\x28\x83\x4a"
24612 "\x1b\x31\x05\xe1\x06\x92\xe7\xda"
24613 "\x85\x73\x78\x45\x20\x7f\xae\x13"
24614 "\x7c\x33\x06\x22\xf4\x83\xf9\x35"
24615 "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b"
24616 "\xce\x8a\xba\xda\xbe\x28\x08\xf7"
24617 "\xe2\x14\x8c\x71\xea\x72\xf9\x33"
24618 "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29"
24619 "\x19\xdc\x84\xce\x1f\x12\x4f\xc8"
24620 "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9"
24621 "\x14\x1f\x6c\x68\x98\x39\x89\x7a"
24622 "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25"
24623 "\xe2\xfb\x33\xf4\x59\x78\xe1\x68"
24624 "\x85\xcf\xfe\x59\x20\xd4\x05\x1d"
24625 "\x80\x99\xae\xbc\xca\xae\x0f\x2f"
24626 "\x65\x43\x34\x8e\x7e\xac\xd3\x93"
24627 "\x2f\xac\x6d\x14\x3d\x02\x07\x70"
24628 "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01"
24629 "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd"
24630 "\x3f\xdf\xee\xf5\xd9\xba\x56\xef"
24631 "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d"
24632 "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b"
24633 "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70"
24634 "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d"
24635 "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3"
24636 "\x14\x89\x5e\x70\x5a\x99\x92\xcd"
24637 "\x01\x84\xc8\xd2\xab\xe5\x4f\x58"
24638 "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd"
24639 "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8"
24640 "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f"
24641 "\xe1\x9e\x49\x20\x23\x24\x4d\x7e"
24642 "\x29\x65\xff\xf4\xb6\xfd\x1a\x85"
24643 "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c"
24644 "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd"
24645 "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c"
24646 "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30"
24647 "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff"
24648 "\x30\xbc\x22\x81\x7d\x93\x12\xe4"
24649 "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e"
24650 "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb"
24651 "\x37\x09\x4b\x91\x6f\x92\x4f\xaf"
24652 "\x52\xee\xdf\xef\x09\x6f\xf7\x5c"
24653 "\x6e\x12\x17\x72\x63\x57\xc7\xba"
24654 "\x3b\x6b\x38\x32\x73\x1b\x9c\x80"
24655 "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b"
24656 "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f"
24657 "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2"
24658 "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd"
24659 "\x13\x3d\x64\xfd\x06\xce\xe6\xdc"
24660 "\x0c\x24\x43\x31\x40\x57\xf1\x72"
24661 "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d"
24662 "\x97\x40\x59\xdd\xf7\x3c\x02\xf7"
24663 "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1"
24664 "\x8e\xc0\x30\xa9\x53\x24\xc9\x89"
24665 "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d"
24666 "\x91\xb0\x89\xe2\xbf\x83\x44\xaa"
24667 "\x28\x72\x23\xa0\xc2\xad\xad\x1c"
24668 "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b"
24669 "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8"
24670 "\xaf\xdf\x11\x95",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024671 .len = 4100,
Herbert Xuda7f0332008-07-31 17:08:25 +080024672 },
24673};
24674
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024675static const struct cipher_testvec chacha20_tv_template[] = {
Martin Willi3590ebf2015-06-01 13:43:57 +020024676 { /* RFC7539 A.2. Test Vector #1 */
24677 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
24678 "\x00\x00\x00\x00\x00\x00\x00\x00"
24679 "\x00\x00\x00\x00\x00\x00\x00\x00"
24680 "\x00\x00\x00\x00\x00\x00\x00\x00",
24681 .klen = 32,
24682 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
24683 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024684 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
Martin Willi3590ebf2015-06-01 13:43:57 +020024685 "\x00\x00\x00\x00\x00\x00\x00\x00"
24686 "\x00\x00\x00\x00\x00\x00\x00\x00"
24687 "\x00\x00\x00\x00\x00\x00\x00\x00"
24688 "\x00\x00\x00\x00\x00\x00\x00\x00"
24689 "\x00\x00\x00\x00\x00\x00\x00\x00"
24690 "\x00\x00\x00\x00\x00\x00\x00\x00"
24691 "\x00\x00\x00\x00\x00\x00\x00\x00",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024692 .ctext = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90"
Martin Willi3590ebf2015-06-01 13:43:57 +020024693 "\x40\x5d\x6a\xe5\x53\x86\xbd\x28"
24694 "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a"
24695 "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7"
24696 "\xda\x41\x59\x7c\x51\x57\x48\x8d"
24697 "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37"
24698 "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c"
24699 "\xc3\x87\xb6\x69\xb2\xee\x65\x86",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024700 .len = 64,
Martin Willi3590ebf2015-06-01 13:43:57 +020024701 }, { /* RFC7539 A.2. Test Vector #2 */
24702 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
24703 "\x00\x00\x00\x00\x00\x00\x00\x00"
24704 "\x00\x00\x00\x00\x00\x00\x00\x00"
24705 "\x00\x00\x00\x00\x00\x00\x00\x01",
24706 .klen = 32,
24707 .iv = "\x01\x00\x00\x00\x00\x00\x00\x00"
24708 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024709 .ptext = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
Martin Willi3590ebf2015-06-01 13:43:57 +020024710 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
24711 "\x6f\x20\x74\x68\x65\x20\x49\x45"
24712 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
24713 "\x64\x65\x64\x20\x62\x79\x20\x74"
24714 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
24715 "\x69\x62\x75\x74\x6f\x72\x20\x66"
24716 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
24717 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
24718 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
24719 "\x20\x70\x61\x72\x74\x20\x6f\x66"
24720 "\x20\x61\x6e\x20\x49\x45\x54\x46"
24721 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
24722 "\x74\x2d\x44\x72\x61\x66\x74\x20"
24723 "\x6f\x72\x20\x52\x46\x43\x20\x61"
24724 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
24725 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
24726 "\x20\x6d\x61\x64\x65\x20\x77\x69"
24727 "\x74\x68\x69\x6e\x20\x74\x68\x65"
24728 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
24729 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
24730 "\x45\x54\x46\x20\x61\x63\x74\x69"
24731 "\x76\x69\x74\x79\x20\x69\x73\x20"
24732 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
24733 "\x65\x64\x20\x61\x6e\x20\x22\x49"
24734 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
24735 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
24736 "\x22\x2e\x20\x53\x75\x63\x68\x20"
24737 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
24738 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
24739 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
24740 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
24741 "\x74\x73\x20\x69\x6e\x20\x49\x45"
24742 "\x54\x46\x20\x73\x65\x73\x73\x69"
24743 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
24744 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
24745 "\x77\x72\x69\x74\x74\x65\x6e\x20"
24746 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
24747 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
24748 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
24749 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
24750 "\x64\x65\x20\x61\x74\x20\x61\x6e"
24751 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
24752 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
24753 "\x20\x77\x68\x69\x63\x68\x20\x61"
24754 "\x72\x65\x20\x61\x64\x64\x72\x65"
24755 "\x73\x73\x65\x64\x20\x74\x6f",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024756 .ctext = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde"
Martin Willi3590ebf2015-06-01 13:43:57 +020024757 "\x4f\x37\x6c\xa2\x3e\x82\x73\x70"
24758 "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd"
24759 "\x8c\xff\x2c\x1d\x4b\x79\x55\xec"
24760 "\x2a\x97\x94\x8b\xd3\x72\x29\x15"
24761 "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05"
24762 "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f"
24763 "\x56\xe0\x31\xca\x5e\xb6\x25\x0d"
24764 "\x40\x42\xe0\x27\x85\xec\xec\xfa"
24765 "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e"
24766 "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7"
24767 "\xc6\x13\x2f\x42\x0e\x52\x79\x50"
24768 "\x42\xbd\xfa\x77\x73\xd8\xa9\x05"
24769 "\x14\x47\xb3\x29\x1c\xe1\x41\x1c"
24770 "\x68\x04\x65\x55\x2a\xa6\xc4\x05"
24771 "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a"
24772 "\xd0\x0f\x84\x49\xed\x8f\x72\xd0"
24773 "\xd6\x62\xab\x05\x26\x91\xca\x66"
24774 "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4"
24775 "\x1f\x43\xab\xf9\x37\xd3\x25\x9d"
24776 "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91"
24777 "\x39\xdd\xd7\xf7\x69\x66\xe9\x28"
24778 "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87"
24779 "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b"
24780 "\x08\x71\xcd\xac\x63\x89\x39\xe2"
24781 "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f"
24782 "\xa8\xca\x32\x8b\x35\x1c\x3c\x76"
24783 "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c"
24784 "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b"
24785 "\x37\x20\xfc\x88\xdc\x95\xed\x84"
24786 "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd"
24787 "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b"
24788 "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe"
24789 "\x55\x69\x75\x3f\x88\x12\x8c\xc0"
24790 "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80"
24791 "\xef\x25\x54\xd7\x18\x9c\x41\x1f"
24792 "\x58\x69\xca\x52\xc5\xb8\x3f\xa3"
24793 "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62"
24794 "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91"
24795 "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6"
24796 "\x98\xce\xd7\x59\xc3\xff\x9b\x64"
24797 "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85"
24798 "\x14\xea\x99\x82\xcc\xaf\xb3\x41"
24799 "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab"
24800 "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba"
24801 "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd"
24802 "\xc4\xfd\x80\x6c\x22\xf2\x21",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024803 .len = 375,
Ard Biesheuvel549f6412017-08-14 14:28:15 +010024804
Martin Willi3590ebf2015-06-01 13:43:57 +020024805 }, { /* RFC7539 A.2. Test Vector #3 */
24806 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24807 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24808 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24809 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24810 .klen = 32,
24811 .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00"
24812 "\x00\x00\x00\x00\x00\x00\x00\x02",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024813 .ptext = "\x27\x54\x77\x61\x73\x20\x62\x72"
Martin Willi3590ebf2015-06-01 13:43:57 +020024814 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
24815 "\x6e\x64\x20\x74\x68\x65\x20\x73"
24816 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
24817 "\x76\x65\x73\x0a\x44\x69\x64\x20"
24818 "\x67\x79\x72\x65\x20\x61\x6e\x64"
24819 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
24820 "\x69\x6e\x20\x74\x68\x65\x20\x77"
24821 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
24822 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
24823 "\x65\x72\x65\x20\x74\x68\x65\x20"
24824 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
24825 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
24826 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
24827 "\x72\x61\x74\x68\x73\x20\x6f\x75"
24828 "\x74\x67\x72\x61\x62\x65\x2e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024829 .ctext = "\x62\xe6\x34\x7f\x95\xed\x87\xa4"
Martin Willi3590ebf2015-06-01 13:43:57 +020024830 "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf"
24831 "\x5f\xb6\x91\x10\x04\x4c\x0d\x73"
24832 "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf"
24833 "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9"
24834 "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71"
24835 "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83"
24836 "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb"
24837 "\xf3\x9c\x64\x02\xc4\x22\x34\xe3"
24838 "\x2a\x35\x6b\x3e\x76\x43\x12\xa6"
24839 "\x1a\x55\x32\x05\x57\x16\xea\xd6"
24840 "\x96\x25\x68\xf8\x7d\x3f\x3f\x77"
24841 "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d"
24842 "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1"
24843 "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36"
24844 "\x75\x7a\x79\x7a\xc1\x88\xd1",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024845 .len = 127,
Martin Willi6692cbc2015-07-16 19:14:04 +020024846 }, { /* Self-made test vector for long data */
24847 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
24848 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
24849 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
24850 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
24851 .klen = 32,
24852 .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00"
24853 "\x00\x00\x00\x00\x00\x00\x00\x01",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070024854 .ptext = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
Martin Willi6692cbc2015-07-16 19:14:04 +020024855 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
24856 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
24857 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
24858 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
24859 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
24860 "\x01\xc6\x67\xda\x03\x91\x18\x90"
24861 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
24862 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
24863 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
24864 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
24865 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
24866 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
24867 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
24868 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
24869 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
24870 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
24871 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
24872 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
24873 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
24874 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
24875 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
24876 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
24877 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
24878 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
24879 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
24880 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
24881 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
24882 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
24883 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
24884 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
24885 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
24886 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
24887 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
24888 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
24889 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
24890 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
24891 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
24892 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
24893 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
24894 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
24895 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
24896 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
24897 "\x49\x46\x00\x88\x22\x8d\xce\xea"
24898 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
24899 "\x72\x11\xf5\x50\x73\x04\x40\x47"
24900 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
24901 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
24902 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
24903 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
24904 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
24905 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
24906 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
24907 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
24908 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
24909 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
24910 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
24911 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
24912 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
24913 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
24914 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
24915 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
24916 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
24917 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
24918 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
24919 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
24920 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
24921 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
24922 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
24923 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
24924 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
24925 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
24926 "\x65\x69\x8a\x45\x29\xef\x74\x85"
24927 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
24928 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
24929 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
24930 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
24931 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
24932 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
24933 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
24934 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
24935 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
24936 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
24937 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
24938 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
24939 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
24940 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
24941 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
24942 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
24943 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
24944 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
24945 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
24946 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
24947 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
24948 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
24949 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
24950 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
24951 "\x25\x94\x10\x5f\x40\x00\x64\x99"
24952 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
24953 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
24954 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
24955 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
24956 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
24957 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
24958 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
24959 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
24960 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
24961 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
24962 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
24963 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
24964 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
24965 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
24966 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
24967 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
24968 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
24969 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
24970 "\xb9\x83\x90\xef\x20\x59\x46\xff"
24971 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
24972 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
24973 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
24974 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
24975 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
24976 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
24977 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
24978 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
24979 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
24980 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
24981 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
24982 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
24983 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
24984 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
24985 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
24986 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
24987 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
24988 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
24989 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
24990 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
24991 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
24992 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
24993 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
24994 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
24995 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
24996 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
24997 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
24998 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
24999 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
25000 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
25001 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
25002 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
25003 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
25004 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
25005 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
25006 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
25007 "\xca\x34\x83\x27\x10\x5b\x68\x45"
25008 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
25009 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
25010 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
25011 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
25012 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
25013 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
25014 "\x72",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025015 .ctext = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87"
Martin Willi6692cbc2015-07-16 19:14:04 +020025016 "\xe8\x1d\x37\x96\x8a\xe3\x40\x35"
25017 "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69"
25018 "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec"
25019 "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9"
25020 "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d"
25021 "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce"
25022 "\x92\x2c\xf7\xbb\x93\x57\xcc\xee"
25023 "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf"
25024 "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd"
25025 "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11"
25026 "\x92\xfd\x39\x5c\x51\xd0\x2f\x66"
25027 "\x33\x4a\x71\x15\xfe\xee\x12\x54"
25028 "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6"
25029 "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25"
25030 "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5"
25031 "\x57\x0e\x94\x17\x26\x39\xbb\x54"
25032 "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f"
25033 "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3"
25034 "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a"
25035 "\x70\x5a\xa7\xf1\x31\x64\x19\xca"
25036 "\x45\x79\xd8\x58\x23\x61\xaf\xc2"
25037 "\x52\x05\xc3\x0b\xc1\x64\x7c\x81"
25038 "\xd9\x11\xcf\xff\x02\x3d\x51\x84"
25039 "\x01\xac\xc6\x2e\x34\x2b\x09\x3a"
25040 "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f"
25041 "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d"
25042 "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9"
25043 "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd"
25044 "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c"
25045 "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b"
25046 "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b"
25047 "\xe2\x03\x06\xc5\x71\xb6\x48\xa5"
25048 "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f"
25049 "\x01\xa7\x59\x80\x5f\x11\x6c\x40"
25050 "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c"
25051 "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e"
25052 "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9"
25053 "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03"
25054 "\xae\xe7\x61\x32\xef\x41\x6c\x75"
25055 "\x84\x9b\x8c\xce\x1d\x6b\x93\x21"
25056 "\x41\xec\xc6\xad\x8e\x0c\x48\xa8"
25057 "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a"
25058 "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85"
25059 "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2"
25060 "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6"
25061 "\x37\xbd\xbe\x24\x36\x77\x9f\x1b"
25062 "\xc1\x22\xf3\x79\xae\x95\x78\x66"
25063 "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38"
25064 "\x09\xc2\xee\xb7\xd3\x46\x7b\x59"
25065 "\x77\x23\xe8\xb4\x92\x3d\x78\xbe"
25066 "\xe2\x25\x63\xa5\x2a\x06\x70\x92"
25067 "\x32\x63\xf9\x19\x21\x68\xe1\x0b"
25068 "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde"
25069 "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9"
25070 "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75"
25071 "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f"
25072 "\x71\x2a\x3a\x60\xed\x06\x0d\x17"
25073 "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb"
25074 "\x94\x04\xd8\x58\xfc\xc4\x04\x4e"
25075 "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d"
25076 "\x02\x3e\x02\x67\xe5\xd8\xbb\x79"
25077 "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46"
25078 "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6"
25079 "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb"
25080 "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6"
25081 "\x0d\x96\x09\xbb\x19\xba\xe0\x3c"
25082 "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62"
25083 "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1"
25084 "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa"
25085 "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42"
25086 "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69"
25087 "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb"
25088 "\xfd\xb5\x08\x47\x42\x84\x9a\xfa"
25089 "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32"
25090 "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5"
25091 "\x94\x16\xad\xf0\x10\x2e\x2d\xb4"
25092 "\x8b\xab\xe5\x89\xc7\x39\x12\xf3"
25093 "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c"
25094 "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc"
25095 "\x54\x1c\x34\x72\xde\x0c\x68\x39"
25096 "\x9d\x32\xa5\x75\x92\x13\x32\xea"
25097 "\x90\x27\xbd\x5b\x1d\xb9\x21\x02"
25098 "\x1c\xcc\xba\x97\x5e\x49\x58\xe8"
25099 "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9"
25100 "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd"
25101 "\x55\x25\x89\x9e\x90\xf3\x6b\x8f"
25102 "\xb7\xd6\x47\x98\x26\x2f\x31\x2f"
25103 "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7"
25104 "\xac\xc3\x08\xc2\xa6\x32\xf1\x24"
25105 "\x76\x7c\x4f\x78\x53\x55\xfb\x00"
25106 "\x8a\xd6\x52\x53\x25\x45\xfb\x0a"
25107 "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a"
25108 "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb"
25109 "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64"
25110 "\x28\x3d\x0f\xee\x80\xba\x0c\xf8"
25111 "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e"
25112 "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee"
25113 "\x40\x0d\xde\x07\xa7\x14\xb4\x90"
25114 "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7"
25115 "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5"
25116 "\x79\x61\x23\xe0\xa2\x99\x73\x55"
25117 "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f"
25118 "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64"
25119 "\xa3\x60\x18\x9f\x80\xaf\x52\x74"
25120 "\x1a\xfe\x22\xc2\x92\x67\x40\x02"
25121 "\x08\xee\x67\x5b\x67\xe0\x3d\xde"
25122 "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4"
25123 "\x48\x56\xaa\x85\x22\xd8\x36\xed"
25124 "\x3b\x3d\x68\x69\x30\xbc\x71\x23"
25125 "\xb1\x6e\x61\x03\x89\x44\x03\xf4"
25126 "\x32\xaa\x4c\x40\x9f\x69\xfb\x70"
25127 "\x91\xcc\x1f\x11\xbd\x76\x67\xe6"
25128 "\x10\x8b\x29\x39\x68\xea\x4e\x6d"
25129 "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d"
25130 "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e"
25131 "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d"
25132 "\x13\xbe\x21\xea\x16\xe7\x5c\xee"
25133 "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b"
25134 "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a"
25135 "\xec\x83\x92\x99\x87\x47\xe0\x7c"
25136 "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03"
25137 "\x98\xb0\x87\xb6\x86\x13\x64\x33"
25138 "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa"
25139 "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83"
25140 "\xd4\xba\x7a\x84\x9d\x91\x71\xcd"
25141 "\x60\x2d\x56\xfd\x26\x35\xcb\xeb"
25142 "\xac\xe9\xee\xa4\xfc\x18\x5b\x91"
25143 "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11"
25144 "\xe9\x00\xb6\x54\xdf\xe1\x94\xde"
25145 "\x2b\x70\x9f\x94\x7f\x15\x0e\x83"
25146 "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1"
25147 "\xa5\xfc\x17\x19\x68\x9a\xbc\x17"
25148 "\x30\x43\x0a\x1a\x33\x92\xd4\x2a"
25149 "\x2e\x68\x99\xbc\x49\xf0\x68\xe3"
25150 "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56"
25151 "\x46\x84\x8b\x69\x83\x64\xc5\xe0"
25152 "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf"
25153 "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76"
25154 "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c"
25155 "\x5f\xae\x25\x84\x22\x90\x5f\x26"
25156 "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05"
25157 "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24"
25158 "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3"
25159 "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f"
25160 "\xc7\x2b\xde\x3a\xfd\xad\x93\x04"
25161 "\x74\x06\x89\x0e\x90\xeb\x85\xff"
25162 "\xe6\x3c\x12\x42\xf4\xfa\x80\x75"
25163 "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41"
25164 "\x02\x85\x68\xd0\x03\x12\xde\x92"
25165 "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb"
25166 "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37"
25167 "\x25\xee\xa7\x6e\xd9\x89\x86\x50"
25168 "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e"
25169 "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f"
25170 "\x71\xbe\x8f\x9d\x26\xef\xd9\x89"
25171 "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa"
25172 "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08"
25173 "\x23\x45\x89\x42\xa0\x30\xeb\xbf"
25174 "\xa1\xed\xad\xd5\x76\xfa\x24\x8f"
25175 "\x98",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070025176 .len = 1281,
Martin Willi3590ebf2015-06-01 13:43:57 +020025177 },
25178};
25179
Eric Biggersde61d7a2018-11-16 17:26:20 -080025180static const struct cipher_testvec xchacha20_tv_template[] = {
25181 { /* from libsodium test/default/xchacha20.c */
25182 .key = "\x79\xc9\x97\x98\xac\x67\x30\x0b"
25183 "\xbb\x27\x04\xc9\x5c\x34\x1e\x32"
25184 "\x45\xf3\xdc\xb2\x17\x61\xb9\x8e"
25185 "\x52\xff\x45\xb2\x4f\x30\x4f\xc4",
25186 .klen = 32,
25187 .iv = "\xb3\x3f\xfd\x30\x96\x47\x9b\xcf"
25188 "\xbc\x9a\xee\x49\x41\x76\x88\xa0"
25189 "\xa2\x55\x4f\x8d\x95\x38\x94\x19"
25190 "\x00\x00\x00\x00\x00\x00\x00\x00",
25191 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
25192 "\x00\x00\x00\x00\x00\x00\x00\x00"
25193 "\x00\x00\x00\x00\x00\x00\x00\x00"
25194 "\x00\x00\x00\x00\x00",
25195 .ctext = "\xc6\xe9\x75\x81\x60\x08\x3a\xc6"
25196 "\x04\xef\x90\xe7\x12\xce\x6e\x75"
25197 "\xd7\x79\x75\x90\x74\x4e\x0c\xf0"
25198 "\x60\xf0\x13\x73\x9c",
25199 .len = 29,
25200 }, { /* from libsodium test/default/xchacha20.c */
25201 .key = "\x9d\x23\xbd\x41\x49\xcb\x97\x9c"
25202 "\xcf\x3c\x5c\x94\xdd\x21\x7e\x98"
25203 "\x08\xcb\x0e\x50\xcd\x0f\x67\x81"
25204 "\x22\x35\xea\xaf\x60\x1d\x62\x32",
25205 .klen = 32,
25206 .iv = "\xc0\x47\x54\x82\x66\xb7\xc3\x70"
25207 "\xd3\x35\x66\xa2\x42\x5c\xbf\x30"
25208 "\xd8\x2d\x1e\xaf\x52\x94\x10\x9e"
25209 "\x00\x00\x00\x00\x00\x00\x00\x00",
25210 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
25211 "\x00\x00\x00\x00\x00\x00\x00\x00"
25212 "\x00\x00\x00\x00\x00\x00\x00\x00"
25213 "\x00\x00\x00\x00\x00\x00\x00\x00"
25214 "\x00\x00\x00\x00\x00\x00\x00\x00"
25215 "\x00\x00\x00\x00\x00\x00\x00\x00"
25216 "\x00\x00\x00\x00\x00\x00\x00\x00"
25217 "\x00\x00\x00\x00\x00\x00\x00\x00"
25218 "\x00\x00\x00\x00\x00\x00\x00\x00"
25219 "\x00\x00\x00\x00\x00\x00\x00\x00"
25220 "\x00\x00\x00\x00\x00\x00\x00\x00"
25221 "\x00\x00\x00",
25222 .ctext = "\xa2\x12\x09\x09\x65\x94\xde\x8c"
25223 "\x56\x67\xb1\xd1\x3a\xd9\x3f\x74"
25224 "\x41\x06\xd0\x54\xdf\x21\x0e\x47"
25225 "\x82\xcd\x39\x6f\xec\x69\x2d\x35"
25226 "\x15\xa2\x0b\xf3\x51\xee\xc0\x11"
25227 "\xa9\x2c\x36\x78\x88\xbc\x46\x4c"
25228 "\x32\xf0\x80\x7a\xcd\x6c\x20\x3a"
25229 "\x24\x7e\x0d\xb8\x54\x14\x84\x68"
25230 "\xe9\xf9\x6b\xee\x4c\xf7\x18\xd6"
25231 "\x8d\x5f\x63\x7c\xbd\x5a\x37\x64"
25232 "\x57\x78\x8e\x6f\xae\x90\xfc\x31"
25233 "\x09\x7c\xfc",
25234 .len = 91,
Eric Biggers282c1482018-12-06 13:00:08 -080025235 }, { /* Taken from the ChaCha20 test vectors, appended 12 random bytes
25236 to the nonce, zero-padded the stream position from 4 to 8 bytes,
25237 and recomputed the ciphertext using libsodium's XChaCha20 */
Eric Biggersde61d7a2018-11-16 17:26:20 -080025238 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
25239 "\x00\x00\x00\x00\x00\x00\x00\x00"
25240 "\x00\x00\x00\x00\x00\x00\x00\x00"
25241 "\x00\x00\x00\x00\x00\x00\x00\x00",
25242 .klen = 32,
25243 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25244 "\x00\x00\x00\x00\x67\xc6\x69\x73"
25245 "\x51\xff\x4a\xec\x29\xcd\xba\xab"
25246 "\x00\x00\x00\x00\x00\x00\x00\x00",
25247 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
25248 "\x00\x00\x00\x00\x00\x00\x00\x00"
25249 "\x00\x00\x00\x00\x00\x00\x00\x00"
25250 "\x00\x00\x00\x00\x00\x00\x00\x00"
25251 "\x00\x00\x00\x00\x00\x00\x00\x00"
25252 "\x00\x00\x00\x00\x00\x00\x00\x00"
25253 "\x00\x00\x00\x00\x00\x00\x00\x00"
25254 "\x00\x00\x00\x00\x00\x00\x00\x00",
25255 .ctext = "\x9c\x49\x2a\xe7\x8a\x2f\x93\xc7"
25256 "\xb3\x33\x6f\x82\x17\xd8\xc4\x1e"
25257 "\xad\x80\x11\x11\x1d\x4c\x16\x18"
25258 "\x07\x73\x9b\x4f\xdb\x7c\xcb\x47"
25259 "\xfd\xef\x59\x74\xfa\x3f\xe5\x4c"
25260 "\x9b\xd0\xea\xbc\xba\x56\xad\x32"
25261 "\x03\xdc\xf8\x2b\xc1\xe1\x75\x67"
25262 "\x23\x7b\xe6\xfc\xd4\x03\x86\x54",
25263 .len = 64,
Eric Biggers282c1482018-12-06 13:00:08 -080025264 }, { /* Derived from a ChaCha20 test vector, via the process above */
Eric Biggersde61d7a2018-11-16 17:26:20 -080025265 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
25266 "\x00\x00\x00\x00\x00\x00\x00\x00"
25267 "\x00\x00\x00\x00\x00\x00\x00\x00"
25268 "\x00\x00\x00\x00\x00\x00\x00\x01",
25269 .klen = 32,
25270 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25271 "\x00\x00\x00\x02\xf2\xfb\xe3\x46"
25272 "\x7c\xc2\x54\xf8\x1b\xe8\xe7\x8d"
25273 "\x01\x00\x00\x00\x00\x00\x00\x00",
25274 .ptext = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
25275 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
25276 "\x6f\x20\x74\x68\x65\x20\x49\x45"
25277 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
25278 "\x64\x65\x64\x20\x62\x79\x20\x74"
25279 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
25280 "\x69\x62\x75\x74\x6f\x72\x20\x66"
25281 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
25282 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
25283 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
25284 "\x20\x70\x61\x72\x74\x20\x6f\x66"
25285 "\x20\x61\x6e\x20\x49\x45\x54\x46"
25286 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
25287 "\x74\x2d\x44\x72\x61\x66\x74\x20"
25288 "\x6f\x72\x20\x52\x46\x43\x20\x61"
25289 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
25290 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
25291 "\x20\x6d\x61\x64\x65\x20\x77\x69"
25292 "\x74\x68\x69\x6e\x20\x74\x68\x65"
25293 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
25294 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
25295 "\x45\x54\x46\x20\x61\x63\x74\x69"
25296 "\x76\x69\x74\x79\x20\x69\x73\x20"
25297 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
25298 "\x65\x64\x20\x61\x6e\x20\x22\x49"
25299 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
25300 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
25301 "\x22\x2e\x20\x53\x75\x63\x68\x20"
25302 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
25303 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
25304 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
25305 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
25306 "\x74\x73\x20\x69\x6e\x20\x49\x45"
25307 "\x54\x46\x20\x73\x65\x73\x73\x69"
25308 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
25309 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
25310 "\x77\x72\x69\x74\x74\x65\x6e\x20"
25311 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
25312 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
25313 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
25314 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
25315 "\x64\x65\x20\x61\x74\x20\x61\x6e"
25316 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
25317 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
25318 "\x20\x77\x68\x69\x63\x68\x20\x61"
25319 "\x72\x65\x20\x61\x64\x64\x72\x65"
25320 "\x73\x73\x65\x64\x20\x74\x6f",
25321 .ctext = "\xf9\xab\x7a\x4a\x60\xb8\x5f\xa0"
25322 "\x50\xbb\x57\xce\xef\x8c\xc1\xd9"
25323 "\x24\x15\xb3\x67\x5e\x7f\x01\xf6"
25324 "\x1c\x22\xf6\xe5\x71\xb1\x43\x64"
25325 "\x63\x05\xd5\xfc\x5c\x3d\xc0\x0e"
25326 "\x23\xef\xd3\x3b\xd9\xdc\x7f\xa8"
25327 "\x58\x26\xb3\xd0\xc2\xd5\x04\x3f"
25328 "\x0a\x0e\x8f\x17\xe4\xcd\xf7\x2a"
25329 "\xb4\x2c\x09\xe4\x47\xec\x8b\xfb"
25330 "\x59\x37\x7a\xa1\xd0\x04\x7e\xaa"
25331 "\xf1\x98\x5f\x24\x3d\x72\x9a\x43"
25332 "\xa4\x36\x51\x92\x22\x87\xff\x26"
25333 "\xce\x9d\xeb\x59\x78\x84\x5e\x74"
25334 "\x97\x2e\x63\xc0\xef\x29\xf7\x8a"
25335 "\xb9\xee\x35\x08\x77\x6a\x35\x9a"
25336 "\x3e\xe6\x4f\x06\x03\x74\x1b\xc1"
25337 "\x5b\xb3\x0b\x89\x11\x07\xd3\xb7"
25338 "\x53\xd6\x25\x04\xd9\x35\xb4\x5d"
25339 "\x4c\x33\x5a\xc2\x42\x4c\xe6\xa4"
25340 "\x97\x6e\x0e\xd2\xb2\x8b\x2f\x7f"
25341 "\x28\xe5\x9f\xac\x4b\x2e\x02\xab"
25342 "\x85\xfa\xa9\x0d\x7c\x2d\x10\xe6"
25343 "\x91\xab\x55\x63\xf0\xde\x3a\x94"
25344 "\x25\x08\x10\x03\xc2\x68\xd1\xf4"
25345 "\xaf\x7d\x9c\x99\xf7\x86\x96\x30"
25346 "\x60\xfc\x0b\xe6\xa8\x80\x15\xb0"
25347 "\x81\xb1\x0c\xbe\xb9\x12\x18\x25"
25348 "\xe9\x0e\xb1\xe7\x23\xb2\xef\x4a"
25349 "\x22\x8f\xc5\x61\x89\xd4\xe7\x0c"
25350 "\x64\x36\x35\x61\xb6\x34\x60\xf7"
25351 "\x7b\x61\x37\x37\x12\x10\xa2\xf6"
25352 "\x7e\xdb\x7f\x39\x3f\xb6\x8e\x89"
25353 "\x9e\xf3\xfe\x13\x98\xbb\x66\x5a"
25354 "\xec\xea\xab\x3f\x9c\x87\xc4\x8c"
25355 "\x8a\x04\x18\x49\xfc\x77\x11\x50"
25356 "\x16\xe6\x71\x2b\xee\xc0\x9c\xb6"
25357 "\x87\xfd\x80\xff\x0b\x1d\x73\x38"
25358 "\xa4\x1d\x6f\xae\xe4\x12\xd7\x93"
25359 "\x9d\xcd\x38\x26\x09\x40\x52\xcd"
25360 "\x67\x01\x67\x26\xe0\x3e\x98\xa8"
25361 "\xe8\x1a\x13\x41\xbb\x90\x4d\x87"
25362 "\xbb\x42\x82\x39\xce\x3a\xd0\x18"
25363 "\x6d\x7b\x71\x8f\xbb\x2c\x6a\xd1"
25364 "\xbd\xf5\xc7\x8a\x7e\xe1\x1e\x0f"
25365 "\x0d\x0d\x13\x7c\xd9\xd8\x3c\x91"
25366 "\xab\xff\x1f\x12\xc3\xee\xe5\x65"
25367 "\x12\x8d\x7b\x61\xe5\x1f\x98",
25368 .len = 375,
Eric Biggersde61d7a2018-11-16 17:26:20 -080025369
Eric Biggers282c1482018-12-06 13:00:08 -080025370 }, { /* Derived from a ChaCha20 test vector, via the process above */
Eric Biggersde61d7a2018-11-16 17:26:20 -080025371 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
25372 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
25373 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
25374 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
25375 .klen = 32,
25376 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25377 "\x00\x00\x00\x02\x76\x5a\x2e\x63"
25378 "\x33\x9f\xc9\x9a\x66\x32\x0d\xb7"
25379 "\x2a\x00\x00\x00\x00\x00\x00\x00",
25380 .ptext = "\x27\x54\x77\x61\x73\x20\x62\x72"
25381 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
25382 "\x6e\x64\x20\x74\x68\x65\x20\x73"
25383 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
25384 "\x76\x65\x73\x0a\x44\x69\x64\x20"
25385 "\x67\x79\x72\x65\x20\x61\x6e\x64"
25386 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
25387 "\x69\x6e\x20\x74\x68\x65\x20\x77"
25388 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
25389 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
25390 "\x65\x72\x65\x20\x74\x68\x65\x20"
25391 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
25392 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
25393 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
25394 "\x72\x61\x74\x68\x73\x20\x6f\x75"
25395 "\x74\x67\x72\x61\x62\x65\x2e",
25396 .ctext = "\x95\xb9\x51\xe7\x8f\xb4\xa4\x03"
25397 "\xca\x37\xcc\xde\x60\x1d\x8c\xe2"
25398 "\xf1\xbb\x8a\x13\x7f\x61\x85\xcc"
25399 "\xad\xf4\xf0\xdc\x86\xa6\x1e\x10"
25400 "\xbc\x8e\xcb\x38\x2b\xa5\xc8\x8f"
25401 "\xaa\x03\x3d\x53\x4a\x42\xb1\x33"
25402 "\xfc\xd3\xef\xf0\x8e\x7e\x10\x9c"
25403 "\x6f\x12\x5e\xd4\x96\xfe\x5b\x08"
25404 "\xb6\x48\xf0\x14\x74\x51\x18\x7c"
25405 "\x07\x92\xfc\xac\x9d\xf1\x94\xc0"
25406 "\xc1\x9d\xc5\x19\x43\x1f\x1d\xbb"
25407 "\x07\xf0\x1b\x14\x25\x45\xbb\xcb"
25408 "\x5c\xe2\x8b\x28\xf3\xcf\x47\x29"
25409 "\x27\x79\x67\x24\xa6\x87\xc2\x11"
25410 "\x65\x03\xfa\x45\xf7\x9e\x53\x7a"
25411 "\x99\xf1\x82\x25\x4f\x8d\x07",
25412 .len = 127,
Eric Biggers282c1482018-12-06 13:00:08 -080025413 }, { /* Derived from a ChaCha20 test vector, via the process above */
Eric Biggersde61d7a2018-11-16 17:26:20 -080025414 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
25415 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
25416 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
25417 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
25418 .klen = 32,
25419 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25420 "\x00\x00\x00\x01\x31\x58\xa3\x5a"
25421 "\x25\x5d\x05\x17\x58\xe9\x5e\xd4"
25422 "\x1c\x00\x00\x00\x00\x00\x00\x00",
25423 .ptext = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
25424 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
25425 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
25426 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
25427 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
25428 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
25429 "\x01\xc6\x67\xda\x03\x91\x18\x90"
25430 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
25431 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
25432 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
25433 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
25434 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
25435 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
25436 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
25437 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
25438 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
25439 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
25440 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
25441 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
25442 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
25443 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
25444 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
25445 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
25446 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
25447 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
25448 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
25449 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
25450 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
25451 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
25452 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
25453 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
25454 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
25455 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
25456 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
25457 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
25458 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
25459 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
25460 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
25461 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
25462 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
25463 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
25464 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
25465 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
25466 "\x49\x46\x00\x88\x22\x8d\xce\xea"
25467 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
25468 "\x72\x11\xf5\x50\x73\x04\x40\x47"
25469 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
25470 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
25471 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
25472 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
25473 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
25474 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
25475 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
25476 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
25477 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
25478 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
25479 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
25480 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
25481 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
25482 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
25483 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
25484 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
25485 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
25486 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
25487 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
25488 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
25489 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
25490 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
25491 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
25492 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
25493 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
25494 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
25495 "\x65\x69\x8a\x45\x29\xef\x74\x85"
25496 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
25497 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
25498 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
25499 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
25500 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
25501 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
25502 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
25503 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
25504 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
25505 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
25506 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
25507 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
25508 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
25509 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
25510 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
25511 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
25512 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
25513 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
25514 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
25515 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
25516 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
25517 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
25518 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
25519 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
25520 "\x25\x94\x10\x5f\x40\x00\x64\x99"
25521 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
25522 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
25523 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
25524 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
25525 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
25526 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
25527 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
25528 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
25529 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
25530 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
25531 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
25532 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
25533 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
25534 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
25535 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
25536 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
25537 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
25538 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
25539 "\xb9\x83\x90\xef\x20\x59\x46\xff"
25540 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
25541 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
25542 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
25543 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
25544 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
25545 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
25546 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
25547 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
25548 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
25549 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
25550 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
25551 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
25552 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
25553 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
25554 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
25555 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
25556 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
25557 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
25558 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
25559 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
25560 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
25561 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
25562 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
25563 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
25564 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
25565 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
25566 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
25567 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
25568 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
25569 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
25570 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
25571 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
25572 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
25573 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
25574 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
25575 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
25576 "\xca\x34\x83\x27\x10\x5b\x68\x45"
25577 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
25578 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
25579 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
25580 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
25581 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
25582 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
25583 "\x72",
25584 .ctext = "\x3a\x92\xee\x53\x31\xaf\x2b\x60"
25585 "\x5f\x55\x8d\x00\x5d\xfc\x74\x97"
25586 "\x28\x54\xf4\xa5\x75\xf1\x9b\x25"
25587 "\x62\x1c\xc0\xe0\x13\xc8\x87\x53"
25588 "\xd0\xf3\xa7\x97\x1f\x3b\x1e\xea"
25589 "\xe0\xe5\x2a\xd1\xdd\xa4\x3b\x50"
25590 "\x45\xa3\x0d\x7e\x1b\xc9\xa0\xad"
25591 "\xb9\x2c\x54\xa6\xc7\x55\x16\xd0"
25592 "\xc5\x2e\x02\x44\x35\xd0\x7e\x67"
25593 "\xf2\xc4\x9b\xcd\x95\x10\xcc\x29"
25594 "\x4b\xfa\x86\x87\xbe\x40\x36\xbe"
25595 "\xe1\xa3\x52\x89\x55\x20\x9b\xc2"
25596 "\xab\xf2\x31\x34\x16\xad\xc8\x17"
25597 "\x65\x24\xc0\xff\x12\x37\xfe\x5a"
25598 "\x62\x3b\x59\x47\x6c\x5f\x3a\x8e"
25599 "\x3b\xd9\x30\xc8\x7f\x2f\x88\xda"
25600 "\x80\xfd\x02\xda\x7f\x9a\x7a\x73"
25601 "\x59\xc5\x34\x09\x9a\x11\xcb\xa7"
25602 "\xfc\xf6\xa1\xa0\x60\xfb\x43\xbb"
25603 "\xf1\xe9\xd7\xc6\x79\x27\x4e\xff"
25604 "\x22\xb4\x24\xbf\x76\xee\x47\xb9"
25605 "\x6d\x3f\x8b\xb0\x9c\x3c\x43\xdd"
25606 "\xff\x25\x2e\x6d\xa4\x2b\xfb\x5d"
25607 "\x1b\x97\x6c\x55\x0a\x82\x7a\x7b"
25608 "\x94\x34\xc2\xdb\x2f\x1f\xc1\xea"
25609 "\xd4\x4d\x17\x46\x3b\x51\x69\x09"
25610 "\xe4\x99\x32\x25\xfd\x94\xaf\xfb"
25611 "\x10\xf7\x4f\xdd\x0b\x3c\x8b\x41"
25612 "\xb3\x6a\xb7\xd1\x33\xa8\x0c\x2f"
25613 "\x62\x4c\x72\x11\xd7\x74\xe1\x3b"
25614 "\x38\x43\x66\x7b\x6c\x36\x48\xe7"
25615 "\xe3\xe7\x9d\xb9\x42\x73\x7a\x2a"
25616 "\x89\x20\x1a\x41\x80\x03\xf7\x8f"
25617 "\x61\x78\x13\xbf\xfe\x50\xf5\x04"
25618 "\x52\xf9\xac\x47\xf8\x62\x4b\xb2"
25619 "\x24\xa9\xbf\x64\xb0\x18\x69\xd2"
25620 "\xf5\xe4\xce\xc8\xb1\x87\x75\xd6"
25621 "\x2c\x24\x79\x00\x7d\x26\xfb\x44"
25622 "\xe7\x45\x7a\xee\x58\xa5\x83\xc1"
25623 "\xb4\x24\xab\x23\x2f\x4d\xd7\x4f"
25624 "\x1c\xc7\xaa\xa9\x50\xf4\xa3\x07"
25625 "\x12\x13\x89\x74\xdc\x31\x6a\xb2"
25626 "\xf5\x0f\x13\x8b\xb9\xdb\x85\x1f"
25627 "\xf5\xbc\x88\xd9\x95\xea\x31\x6c"
25628 "\x36\x60\xb6\x49\xdc\xc4\xf7\x55"
25629 "\x3f\x21\xc1\xb5\x92\x18\x5e\xbc"
25630 "\x9f\x87\x7f\xe7\x79\x25\x40\x33"
25631 "\xd6\xb9\x33\xd5\x50\xb3\xc7\x89"
25632 "\x1b\x12\xa0\x46\xdd\xa7\xd8\x3e"
25633 "\x71\xeb\x6f\x66\xa1\x26\x0c\x67"
25634 "\xab\xb2\x38\x58\x17\xd8\x44\x3b"
25635 "\x16\xf0\x8e\x62\x8d\x16\x10\x00"
25636 "\x32\x8b\xef\xb9\x28\xd3\xc5\xad"
25637 "\x0a\x19\xa2\xe4\x03\x27\x7d\x94"
25638 "\x06\x18\xcd\xd6\x27\x00\xf9\x1f"
25639 "\xb6\xb3\xfe\x96\x35\x5f\xc4\x1c"
25640 "\x07\x62\x10\x79\x68\x50\xf1\x7e"
25641 "\x29\xe7\xc4\xc4\xe7\xee\x54\xd6"
25642 "\x58\x76\x84\x6d\x8d\xe4\x59\x31"
25643 "\xe9\xf4\xdc\xa1\x1f\xe5\x1a\xd6"
25644 "\xe6\x64\x46\xf5\x77\x9c\x60\x7a"
25645 "\x5e\x62\xe3\x0a\xd4\x9f\x7a\x2d"
25646 "\x7a\xa5\x0a\x7b\x29\x86\x7a\x74"
25647 "\x74\x71\x6b\xca\x7d\x1d\xaa\xba"
25648 "\x39\x84\x43\x76\x35\xfe\x4f\x9b"
25649 "\xbb\xbb\xb5\x6a\x32\xb5\x5d\x41"
25650 "\x51\xf0\x5b\x68\x03\x47\x4b\x8a"
25651 "\xca\x88\xf6\x37\xbd\x73\x51\x70"
25652 "\x66\xfe\x9e\x5f\x21\x9c\xf3\xdd"
25653 "\xc3\xea\x27\xf9\x64\x94\xe1\x19"
25654 "\xa0\xa9\xab\x60\xe0\x0e\xf7\x78"
25655 "\x70\x86\xeb\xe0\xd1\x5c\x05\xd3"
25656 "\xd7\xca\xe0\xc0\x47\x47\x34\xee"
25657 "\x11\xa3\xa3\x54\x98\xb7\x49\x8e"
25658 "\x84\x28\x70\x2c\x9e\xfb\x55\x54"
25659 "\x4d\xf8\x86\xf7\x85\x7c\xbd\xf3"
25660 "\x17\xd8\x47\xcb\xac\xf4\x20\x85"
25661 "\x34\x66\xad\x37\x2d\x5e\x52\xda"
25662 "\x8a\xfe\x98\x55\x30\xe7\x2d\x2b"
25663 "\x19\x10\x8e\x7b\x66\x5e\xdc\xe0"
25664 "\x45\x1f\x7b\xb4\x08\xfb\x8f\xf6"
25665 "\x8c\x89\x21\x34\x55\x27\xb2\x76"
25666 "\xb2\x07\xd9\xd6\x68\x9b\xea\x6b"
25667 "\x2d\xb4\xc4\x35\xdd\xd2\x79\xae"
25668 "\xc7\xd6\x26\x7f\x12\x01\x8c\xa7"
25669 "\xe3\xdb\xa8\xf4\xf7\x2b\xec\x99"
25670 "\x11\x00\xf1\x35\x8c\xcf\xd5\xc9"
25671 "\xbd\x91\x36\x39\x70\xcf\x7d\x70"
25672 "\x47\x1a\xfc\x6b\x56\xe0\x3f\x9c"
25673 "\x60\x49\x01\x72\xa9\xaf\x2c\x9c"
25674 "\xe8\xab\xda\x8c\x14\x19\xf3\x75"
25675 "\x07\x17\x9d\x44\x67\x7a\x2e\xef"
25676 "\xb7\x83\x35\x4a\xd1\x3d\x1c\x84"
25677 "\x32\xdd\xaa\xea\xca\x1d\xdc\x72"
25678 "\x2c\xcc\x43\xcd\x5d\xe3\x21\xa4"
25679 "\xd0\x8a\x4b\x20\x12\xa3\xd5\x86"
25680 "\x76\x96\xff\x5f\x04\x57\x0f\xe6"
25681 "\xba\xe8\x76\x50\x0c\x64\x1d\x83"
25682 "\x9c\x9b\x9a\x9a\x58\x97\x9c\x5c"
25683 "\xb4\xa4\xa6\x3e\x19\xeb\x8f\x5a"
25684 "\x61\xb2\x03\x7b\x35\x19\xbe\xa7"
25685 "\x63\x0c\xfd\xdd\xf9\x90\x6c\x08"
25686 "\x19\x11\xd3\x65\x4a\xf5\x96\x92"
25687 "\x59\xaa\x9c\x61\x0c\x29\xa7\xf8"
25688 "\x14\x39\x37\xbf\x3c\xf2\x16\x72"
25689 "\x02\xfa\xa2\xf3\x18\x67\x5d\xcb"
25690 "\xdc\x4d\xbb\x96\xff\x70\x08\x2d"
25691 "\xc2\xa8\x52\xe1\x34\x5f\x72\xfe"
25692 "\x64\xbf\xca\xa7\x74\x38\xfb\x74"
25693 "\x55\x9c\xfa\x8a\xed\xfb\x98\xeb"
25694 "\x58\x2e\x6c\xe1\x52\x76\x86\xd7"
25695 "\xcf\xa1\xa4\xfc\xb2\x47\x41\x28"
25696 "\xa3\xc1\xe5\xfd\x53\x19\x28\x2b"
25697 "\x37\x04\x65\x96\x99\x7a\x28\x0f"
25698 "\x07\x68\x4b\xc7\x52\x0a\x55\x35"
25699 "\x40\x19\x95\x61\xe8\x59\x40\x1f"
25700 "\x9d\xbf\x78\x7d\x8f\x84\xff\x6f"
25701 "\xd0\xd5\x63\xd2\x22\xbd\xc8\x4e"
25702 "\xfb\xe7\x9f\x06\xe6\xe7\x39\x6d"
25703 "\x6a\x96\x9f\xf0\x74\x7e\xc9\x35"
25704 "\xb7\x26\xb8\x1c\x0a\xa6\x27\x2c"
25705 "\xa2\x2b\xfe\xbe\x0f\x07\x73\xae"
25706 "\x7f\x7f\x54\xf5\x7c\x6a\x0a\x56"
25707 "\x49\xd4\x81\xe5\x85\x53\x99\x1f"
25708 "\x95\x05\x13\x58\x8d\x0e\x1b\x90"
25709 "\xc3\x75\x48\x64\x58\x98\x67\x84"
25710 "\xae\xe2\x21\xa2\x8a\x04\x0a\x0b"
25711 "\x61\xaa\xb0\xd4\x28\x60\x7a\xf8"
25712 "\xbc\x52\xfb\x24\x7f\xed\x0d\x2a"
25713 "\x0a\xb2\xf9\xc6\x95\xb5\x11\xc9"
25714 "\xf4\x0f\x26\x11\xcf\x2a\x57\x87"
25715 "\x7a\xf3\xe7\x94\x65\xc2\xb5\xb3"
25716 "\xab\x98\xe3\xc1\x2b\x59\x19\x7c"
25717 "\xd6\xf3\xf9\xbf\xff\x6d\xc6\x82"
25718 "\x13\x2f\x4a\x2e\xcd\x26\xfe\x2d"
25719 "\x01\x70\xf4\xc2\x7f\x1f\x4c\xcb"
25720 "\x47\x77\x0c\xa0\xa3\x03\xec\xda"
25721 "\xa9\xbf\x0d\x2d\xae\xe4\xb8\x7b"
25722 "\xa9\xbc\x08\xb4\x68\x2e\xc5\x60"
25723 "\x8d\x87\x41\x2b\x0f\x69\xf0\xaf"
25724 "\x5f\xba\x72\x20\x0f\x33\xcd\x6d"
25725 "\x36\x7d\x7b\xd5\x05\xf1\x4b\x05"
25726 "\xc4\xfc\x7f\x80\xb9\x4d\xbd\xf7"
25727 "\x7c\x84\x07\x01\xc2\x40\x66\x5b"
25728 "\x98\xc7\x2c\xe3\x97\xfa\xdf\x87"
25729 "\xa0\x1f\xe9\x21\x42\x0f\x3b\xeb"
25730 "\x89\x1c\x3b\xca\x83\x61\x77\x68"
25731 "\x84\xbb\x60\x87\x38\x2e\x25\xd5"
25732 "\x9e\x04\x41\x70\xac\xda\xc0\x9c"
25733 "\x9c\x69\xea\x8d\x4e\x55\x2a\x29"
25734 "\xed\x05\x4b\x7b\x73\x71\x90\x59"
25735 "\x4d\xc8\xd8\x44\xf0\x4c\xe1\x5e"
25736 "\x84\x47\x55\xcc\x32\x3f\xe7\x97"
25737 "\x42\xc6\x32\xac\x40\xe5\xa5\xc7"
25738 "\x8b\xed\xdb\xf7\x83\xd6\xb1\xc2"
25739 "\x52\x5e\x34\xb7\xeb\x6e\xd9\xfc"
25740 "\xe5\x93\x9a\x97\x3e\xb0\xdc\xd9"
25741 "\xd7\x06\x10\xb6\x1d\x80\x59\xdd"
25742 "\x0d\xfe\x64\x35\xcd\x5d\xec\xf0"
25743 "\xba\xd0\x34\xc9\x2d\x91\xc5\x17"
25744 "\x11",
25745 .len = 1281,
Eric Biggers5569e8c2018-12-06 12:31:54 -080025746 }, { /* test vector from https://tools.ietf.org/html/draft-arciszewski-xchacha-02#appendix-A.3.2 */
25747 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
25748 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
25749 "\x90\x91\x92\x93\x94\x95\x96\x97"
25750 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
25751 .klen = 32,
25752 .iv = "\x40\x41\x42\x43\x44\x45\x46\x47"
25753 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
25754 "\x50\x51\x52\x53\x54\x55\x56\x58"
25755 "\x00\x00\x00\x00\x00\x00\x00\x00",
25756 .ptext = "\x54\x68\x65\x20\x64\x68\x6f\x6c"
25757 "\x65\x20\x28\x70\x72\x6f\x6e\x6f"
25758 "\x75\x6e\x63\x65\x64\x20\x22\x64"
25759 "\x6f\x6c\x65\x22\x29\x20\x69\x73"
25760 "\x20\x61\x6c\x73\x6f\x20\x6b\x6e"
25761 "\x6f\x77\x6e\x20\x61\x73\x20\x74"
25762 "\x68\x65\x20\x41\x73\x69\x61\x74"
25763 "\x69\x63\x20\x77\x69\x6c\x64\x20"
25764 "\x64\x6f\x67\x2c\x20\x72\x65\x64"
25765 "\x20\x64\x6f\x67\x2c\x20\x61\x6e"
25766 "\x64\x20\x77\x68\x69\x73\x74\x6c"
25767 "\x69\x6e\x67\x20\x64\x6f\x67\x2e"
25768 "\x20\x49\x74\x20\x69\x73\x20\x61"
25769 "\x62\x6f\x75\x74\x20\x74\x68\x65"
25770 "\x20\x73\x69\x7a\x65\x20\x6f\x66"
25771 "\x20\x61\x20\x47\x65\x72\x6d\x61"
25772 "\x6e\x20\x73\x68\x65\x70\x68\x65"
25773 "\x72\x64\x20\x62\x75\x74\x20\x6c"
25774 "\x6f\x6f\x6b\x73\x20\x6d\x6f\x72"
25775 "\x65\x20\x6c\x69\x6b\x65\x20\x61"
25776 "\x20\x6c\x6f\x6e\x67\x2d\x6c\x65"
25777 "\x67\x67\x65\x64\x20\x66\x6f\x78"
25778 "\x2e\x20\x54\x68\x69\x73\x20\x68"
25779 "\x69\x67\x68\x6c\x79\x20\x65\x6c"
25780 "\x75\x73\x69\x76\x65\x20\x61\x6e"
25781 "\x64\x20\x73\x6b\x69\x6c\x6c\x65"
25782 "\x64\x20\x6a\x75\x6d\x70\x65\x72"
25783 "\x20\x69\x73\x20\x63\x6c\x61\x73"
25784 "\x73\x69\x66\x69\x65\x64\x20\x77"
25785 "\x69\x74\x68\x20\x77\x6f\x6c\x76"
25786 "\x65\x73\x2c\x20\x63\x6f\x79\x6f"
25787 "\x74\x65\x73\x2c\x20\x6a\x61\x63"
25788 "\x6b\x61\x6c\x73\x2c\x20\x61\x6e"
25789 "\x64\x20\x66\x6f\x78\x65\x73\x20"
25790 "\x69\x6e\x20\x74\x68\x65\x20\x74"
25791 "\x61\x78\x6f\x6e\x6f\x6d\x69\x63"
25792 "\x20\x66\x61\x6d\x69\x6c\x79\x20"
25793 "\x43\x61\x6e\x69\x64\x61\x65\x2e",
25794 .ctext = "\x45\x59\xab\xba\x4e\x48\xc1\x61"
25795 "\x02\xe8\xbb\x2c\x05\xe6\x94\x7f"
25796 "\x50\xa7\x86\xde\x16\x2f\x9b\x0b"
25797 "\x7e\x59\x2a\x9b\x53\xd0\xd4\xe9"
25798 "\x8d\x8d\x64\x10\xd5\x40\xa1\xa6"
25799 "\x37\x5b\x26\xd8\x0d\xac\xe4\xfa"
25800 "\xb5\x23\x84\xc7\x31\xac\xbf\x16"
25801 "\xa5\x92\x3c\x0c\x48\xd3\x57\x5d"
25802 "\x4d\x0d\x2c\x67\x3b\x66\x6f\xaa"
25803 "\x73\x10\x61\x27\x77\x01\x09\x3a"
25804 "\x6b\xf7\xa1\x58\xa8\x86\x42\x92"
25805 "\xa4\x1c\x48\xe3\xa9\xb4\xc0\xda"
25806 "\xec\xe0\xf8\xd9\x8d\x0d\x7e\x05"
25807 "\xb3\x7a\x30\x7b\xbb\x66\x33\x31"
25808 "\x64\xec\x9e\x1b\x24\xea\x0d\x6c"
25809 "\x3f\xfd\xdc\xec\x4f\x68\xe7\x44"
25810 "\x30\x56\x19\x3a\x03\xc8\x10\xe1"
25811 "\x13\x44\xca\x06\xd8\xed\x8a\x2b"
25812 "\xfb\x1e\x8d\x48\xcf\xa6\xbc\x0e"
25813 "\xb4\xe2\x46\x4b\x74\x81\x42\x40"
25814 "\x7c\x9f\x43\x1a\xee\x76\x99\x60"
25815 "\xe1\x5b\xa8\xb9\x68\x90\x46\x6e"
25816 "\xf2\x45\x75\x99\x85\x23\x85\xc6"
25817 "\x61\xf7\x52\xce\x20\xf9\xda\x0c"
25818 "\x09\xab\x6b\x19\xdf\x74\xe7\x6a"
25819 "\x95\x96\x74\x46\xf8\xd0\xfd\x41"
25820 "\x5e\x7b\xee\x2a\x12\xa1\x14\xc2"
25821 "\x0e\xb5\x29\x2a\xe7\xa3\x49\xae"
25822 "\x57\x78\x20\xd5\x52\x0a\x1f\x3f"
25823 "\xb6\x2a\x17\xce\x6a\x7e\x68\xfa"
25824 "\x7c\x79\x11\x1d\x88\x60\x92\x0b"
25825 "\xc0\x48\xef\x43\xfe\x84\x48\x6c"
25826 "\xcb\x87\xc2\x5f\x0a\xe0\x45\xf0"
25827 "\xcc\xe1\xe7\x98\x9a\x9a\xa2\x20"
25828 "\xa2\x8b\xdd\x48\x27\xe7\x51\xa2"
25829 "\x4a\x6d\x5c\x62\xd7\x90\xa6\x63"
25830 "\x93\xb9\x31\x11\xc1\xa5\x5d\xd7"
25831 "\x42\x1a\x10\x18\x49\x74\xc7\xc5",
25832 .len = 304,
25833 }
Eric Biggersde61d7a2018-11-16 17:26:20 -080025834};
25835
Herbert Xuda7f0332008-07-31 17:08:25 +080025836/*
Eric Biggersaa762402018-11-16 17:26:22 -080025837 * Same as XChaCha20 test vectors above, but recomputed the ciphertext with
25838 * XChaCha12, using a modified libsodium.
25839 */
25840static const struct cipher_testvec xchacha12_tv_template[] = {
25841 {
25842 .key = "\x79\xc9\x97\x98\xac\x67\x30\x0b"
25843 "\xbb\x27\x04\xc9\x5c\x34\x1e\x32"
25844 "\x45\xf3\xdc\xb2\x17\x61\xb9\x8e"
25845 "\x52\xff\x45\xb2\x4f\x30\x4f\xc4",
25846 .klen = 32,
25847 .iv = "\xb3\x3f\xfd\x30\x96\x47\x9b\xcf"
25848 "\xbc\x9a\xee\x49\x41\x76\x88\xa0"
25849 "\xa2\x55\x4f\x8d\x95\x38\x94\x19"
25850 "\x00\x00\x00\x00\x00\x00\x00\x00",
25851 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
25852 "\x00\x00\x00\x00\x00\x00\x00\x00"
25853 "\x00\x00\x00\x00\x00\x00\x00\x00"
25854 "\x00\x00\x00\x00\x00",
25855 .ctext = "\x1b\x78\x7f\xd7\xa1\x41\x68\xab"
25856 "\x3d\x3f\xd1\x7b\x69\x56\xb2\xd5"
25857 "\x43\xce\xeb\xaf\x36\xf0\x29\x9d"
25858 "\x3a\xfb\x18\xae\x1b",
25859 .len = 29,
25860 }, {
25861 .key = "\x9d\x23\xbd\x41\x49\xcb\x97\x9c"
25862 "\xcf\x3c\x5c\x94\xdd\x21\x7e\x98"
25863 "\x08\xcb\x0e\x50\xcd\x0f\x67\x81"
25864 "\x22\x35\xea\xaf\x60\x1d\x62\x32",
25865 .klen = 32,
25866 .iv = "\xc0\x47\x54\x82\x66\xb7\xc3\x70"
25867 "\xd3\x35\x66\xa2\x42\x5c\xbf\x30"
25868 "\xd8\x2d\x1e\xaf\x52\x94\x10\x9e"
25869 "\x00\x00\x00\x00\x00\x00\x00\x00",
25870 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
25871 "\x00\x00\x00\x00\x00\x00\x00\x00"
25872 "\x00\x00\x00\x00\x00\x00\x00\x00"
25873 "\x00\x00\x00\x00\x00\x00\x00\x00"
25874 "\x00\x00\x00\x00\x00\x00\x00\x00"
25875 "\x00\x00\x00\x00\x00\x00\x00\x00"
25876 "\x00\x00\x00\x00\x00\x00\x00\x00"
25877 "\x00\x00\x00\x00\x00\x00\x00\x00"
25878 "\x00\x00\x00\x00\x00\x00\x00\x00"
25879 "\x00\x00\x00\x00\x00\x00\x00\x00"
25880 "\x00\x00\x00\x00\x00\x00\x00\x00"
25881 "\x00\x00\x00",
25882 .ctext = "\xfb\x32\x09\x1d\x83\x05\xae\x4c"
25883 "\x13\x1f\x12\x71\xf2\xca\xb2\xeb"
25884 "\x5b\x83\x14\x7d\x83\xf6\x57\x77"
25885 "\x2e\x40\x1f\x92\x2c\xf9\xec\x35"
25886 "\x34\x1f\x93\xdf\xfb\x30\xd7\x35"
25887 "\x03\x05\x78\xc1\x20\x3b\x7a\xe3"
25888 "\x62\xa3\x89\xdc\x11\x11\x45\xa8"
25889 "\x82\x89\xa0\xf1\x4e\xc7\x0f\x11"
25890 "\x69\xdd\x0c\x84\x2b\x89\x5c\xdc"
25891 "\xf0\xde\x01\xef\xc5\x65\x79\x23"
25892 "\x87\x67\xd6\x50\xd9\x8d\xd9\x92"
25893 "\x54\x5b\x0e",
25894 .len = 91,
25895 }, {
25896 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
25897 "\x00\x00\x00\x00\x00\x00\x00\x00"
25898 "\x00\x00\x00\x00\x00\x00\x00\x00"
25899 "\x00\x00\x00\x00\x00\x00\x00\x00",
25900 .klen = 32,
25901 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25902 "\x00\x00\x00\x00\x67\xc6\x69\x73"
25903 "\x51\xff\x4a\xec\x29\xcd\xba\xab"
25904 "\x00\x00\x00\x00\x00\x00\x00\x00",
25905 .ptext = "\x00\x00\x00\x00\x00\x00\x00\x00"
25906 "\x00\x00\x00\x00\x00\x00\x00\x00"
25907 "\x00\x00\x00\x00\x00\x00\x00\x00"
25908 "\x00\x00\x00\x00\x00\x00\x00\x00"
25909 "\x00\x00\x00\x00\x00\x00\x00\x00"
25910 "\x00\x00\x00\x00\x00\x00\x00\x00"
25911 "\x00\x00\x00\x00\x00\x00\x00\x00"
25912 "\x00\x00\x00\x00\x00\x00\x00\x00",
25913 .ctext = "\xdf\x2d\xc6\x21\x2a\x9d\xa1\xbb"
25914 "\xc2\x77\x66\x0c\x5c\x46\xef\xa7"
25915 "\x79\x1b\xb9\xdf\x55\xe2\xf9\x61"
25916 "\x4c\x7b\xa4\x52\x24\xaf\xa2\xda"
25917 "\xd1\x8f\x8f\xa2\x9e\x53\x4d\xc4"
25918 "\xb8\x55\x98\x08\x7c\x08\xd4\x18"
25919 "\x67\x8f\xef\x50\xb1\x5f\xa5\x77"
25920 "\x4c\x25\xe7\x86\x26\x42\xca\x44",
25921 .len = 64,
25922 }, {
25923 .key = "\x00\x00\x00\x00\x00\x00\x00\x00"
25924 "\x00\x00\x00\x00\x00\x00\x00\x00"
25925 "\x00\x00\x00\x00\x00\x00\x00\x00"
25926 "\x00\x00\x00\x00\x00\x00\x00\x01",
25927 .klen = 32,
25928 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
25929 "\x00\x00\x00\x02\xf2\xfb\xe3\x46"
25930 "\x7c\xc2\x54\xf8\x1b\xe8\xe7\x8d"
25931 "\x01\x00\x00\x00\x00\x00\x00\x00",
25932 .ptext = "\x41\x6e\x79\x20\x73\x75\x62\x6d"
25933 "\x69\x73\x73\x69\x6f\x6e\x20\x74"
25934 "\x6f\x20\x74\x68\x65\x20\x49\x45"
25935 "\x54\x46\x20\x69\x6e\x74\x65\x6e"
25936 "\x64\x65\x64\x20\x62\x79\x20\x74"
25937 "\x68\x65\x20\x43\x6f\x6e\x74\x72"
25938 "\x69\x62\x75\x74\x6f\x72\x20\x66"
25939 "\x6f\x72\x20\x70\x75\x62\x6c\x69"
25940 "\x63\x61\x74\x69\x6f\x6e\x20\x61"
25941 "\x73\x20\x61\x6c\x6c\x20\x6f\x72"
25942 "\x20\x70\x61\x72\x74\x20\x6f\x66"
25943 "\x20\x61\x6e\x20\x49\x45\x54\x46"
25944 "\x20\x49\x6e\x74\x65\x72\x6e\x65"
25945 "\x74\x2d\x44\x72\x61\x66\x74\x20"
25946 "\x6f\x72\x20\x52\x46\x43\x20\x61"
25947 "\x6e\x64\x20\x61\x6e\x79\x20\x73"
25948 "\x74\x61\x74\x65\x6d\x65\x6e\x74"
25949 "\x20\x6d\x61\x64\x65\x20\x77\x69"
25950 "\x74\x68\x69\x6e\x20\x74\x68\x65"
25951 "\x20\x63\x6f\x6e\x74\x65\x78\x74"
25952 "\x20\x6f\x66\x20\x61\x6e\x20\x49"
25953 "\x45\x54\x46\x20\x61\x63\x74\x69"
25954 "\x76\x69\x74\x79\x20\x69\x73\x20"
25955 "\x63\x6f\x6e\x73\x69\x64\x65\x72"
25956 "\x65\x64\x20\x61\x6e\x20\x22\x49"
25957 "\x45\x54\x46\x20\x43\x6f\x6e\x74"
25958 "\x72\x69\x62\x75\x74\x69\x6f\x6e"
25959 "\x22\x2e\x20\x53\x75\x63\x68\x20"
25960 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
25961 "\x74\x73\x20\x69\x6e\x63\x6c\x75"
25962 "\x64\x65\x20\x6f\x72\x61\x6c\x20"
25963 "\x73\x74\x61\x74\x65\x6d\x65\x6e"
25964 "\x74\x73\x20\x69\x6e\x20\x49\x45"
25965 "\x54\x46\x20\x73\x65\x73\x73\x69"
25966 "\x6f\x6e\x73\x2c\x20\x61\x73\x20"
25967 "\x77\x65\x6c\x6c\x20\x61\x73\x20"
25968 "\x77\x72\x69\x74\x74\x65\x6e\x20"
25969 "\x61\x6e\x64\x20\x65\x6c\x65\x63"
25970 "\x74\x72\x6f\x6e\x69\x63\x20\x63"
25971 "\x6f\x6d\x6d\x75\x6e\x69\x63\x61"
25972 "\x74\x69\x6f\x6e\x73\x20\x6d\x61"
25973 "\x64\x65\x20\x61\x74\x20\x61\x6e"
25974 "\x79\x20\x74\x69\x6d\x65\x20\x6f"
25975 "\x72\x20\x70\x6c\x61\x63\x65\x2c"
25976 "\x20\x77\x68\x69\x63\x68\x20\x61"
25977 "\x72\x65\x20\x61\x64\x64\x72\x65"
25978 "\x73\x73\x65\x64\x20\x74\x6f",
25979 .ctext = "\xe4\xa6\xc8\x30\xc4\x23\x13\xd6"
25980 "\x08\x4d\xc9\xb7\xa5\x64\x7c\xb9"
25981 "\x71\xe2\xab\x3e\xa8\x30\x8a\x1c"
25982 "\x4a\x94\x6d\x9b\xe0\xb3\x6f\xf1"
25983 "\xdc\xe3\x1b\xb3\xa9\x6d\x0d\xd6"
25984 "\xd0\xca\x12\xef\xe7\x5f\xd8\x61"
25985 "\x3c\x82\xd3\x99\x86\x3c\x6f\x66"
25986 "\x02\x06\xdc\x55\xf9\xed\xdf\x38"
25987 "\xb4\xa6\x17\x00\x7f\xef\xbf\x4f"
25988 "\xf8\x36\xf1\x60\x7e\x47\xaf\xdb"
25989 "\x55\x9b\x12\xcb\x56\x44\xa7\x1f"
25990 "\xd3\x1a\x07\x3b\x00\xec\xe6\x4c"
25991 "\xa2\x43\x27\xdf\x86\x19\x4f\x16"
25992 "\xed\xf9\x4a\xf3\x63\x6f\xfa\x7f"
25993 "\x78\x11\xf6\x7d\x97\x6f\xec\x6f"
25994 "\x85\x0f\x5c\x36\x13\x8d\x87\xe0"
25995 "\x80\xb1\x69\x0b\x98\x89\x9c\x4e"
25996 "\xf8\xdd\xee\x5c\x0a\x85\xce\xd4"
25997 "\xea\x1b\x48\xbe\x08\xf8\xe2\xa8"
25998 "\xa5\xb0\x3c\x79\xb1\x15\xb4\xb9"
25999 "\x75\x10\x95\x35\x81\x7e\x26\xe6"
26000 "\x78\xa4\x88\xcf\xdb\x91\x34\x18"
26001 "\xad\xd7\x8e\x07\x7d\xab\x39\xf9"
26002 "\xa3\x9e\xa5\x1d\xbb\xed\x61\xfd"
26003 "\xdc\xb7\x5a\x27\xfc\xb5\xc9\x10"
26004 "\xa8\xcc\x52\x7f\x14\x76\x90\xe7"
26005 "\x1b\x29\x60\x74\xc0\x98\x77\xbb"
26006 "\xe0\x54\xbb\x27\x49\x59\x1e\x62"
26007 "\x3d\xaf\x74\x06\xa4\x42\x6f\xc6"
26008 "\x52\x97\xc4\x1d\xc4\x9f\xe2\xe5"
26009 "\x38\x57\x91\xd1\xa2\x28\xcc\x40"
26010 "\xcc\x70\x59\x37\xfc\x9f\x4b\xda"
26011 "\xa0\xeb\x97\x9a\x7d\xed\x14\x5c"
26012 "\x9c\xb7\x93\x26\x41\xa8\x66\xdd"
26013 "\x87\x6a\xc0\xd3\xc2\xa9\x3e\xae"
26014 "\xe9\x72\xfe\xd1\xb3\xac\x38\xea"
26015 "\x4d\x15\xa9\xd5\x36\x61\xe9\x96"
26016 "\x6c\x23\xf8\x43\xe4\x92\x29\xd9"
26017 "\x8b\x78\xf7\x0a\x52\xe0\x19\x5b"
26018 "\x59\x69\x5b\x5d\xa1\x53\xc4\x68"
26019 "\xe1\xbb\xac\x89\x14\xe2\xe2\x85"
26020 "\x41\x18\xf5\xb3\xd1\xfa\x68\x19"
26021 "\x44\x78\xdc\xcf\xe7\x88\x2d\x52"
26022 "\x5f\x40\xb5\x7e\xf8\x88\xa2\xae"
26023 "\x4a\xb2\x07\x35\x9d\x9b\x07\x88"
26024 "\xb7\x00\xd0\x0c\xb6\xa0\x47\x59"
26025 "\xda\x4e\xc9\xab\x9b\x8a\x7b",
26026
26027 .len = 375,
Eric Biggersaa762402018-11-16 17:26:22 -080026028
26029 }, {
26030 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
26031 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
26032 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
26033 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
26034 .klen = 32,
26035 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26036 "\x00\x00\x00\x02\x76\x5a\x2e\x63"
26037 "\x33\x9f\xc9\x9a\x66\x32\x0d\xb7"
26038 "\x2a\x00\x00\x00\x00\x00\x00\x00",
26039 .ptext = "\x27\x54\x77\x61\x73\x20\x62\x72"
26040 "\x69\x6c\x6c\x69\x67\x2c\x20\x61"
26041 "\x6e\x64\x20\x74\x68\x65\x20\x73"
26042 "\x6c\x69\x74\x68\x79\x20\x74\x6f"
26043 "\x76\x65\x73\x0a\x44\x69\x64\x20"
26044 "\x67\x79\x72\x65\x20\x61\x6e\x64"
26045 "\x20\x67\x69\x6d\x62\x6c\x65\x20"
26046 "\x69\x6e\x20\x74\x68\x65\x20\x77"
26047 "\x61\x62\x65\x3a\x0a\x41\x6c\x6c"
26048 "\x20\x6d\x69\x6d\x73\x79\x20\x77"
26049 "\x65\x72\x65\x20\x74\x68\x65\x20"
26050 "\x62\x6f\x72\x6f\x67\x6f\x76\x65"
26051 "\x73\x2c\x0a\x41\x6e\x64\x20\x74"
26052 "\x68\x65\x20\x6d\x6f\x6d\x65\x20"
26053 "\x72\x61\x74\x68\x73\x20\x6f\x75"
26054 "\x74\x67\x72\x61\x62\x65\x2e",
26055 .ctext = "\xb9\x68\xbc\x6a\x24\xbc\xcc\xd8"
26056 "\x9b\x2a\x8d\x5b\x96\xaf\x56\xe3"
26057 "\x11\x61\xe7\xa7\x9b\xce\x4e\x7d"
26058 "\x60\x02\x48\xac\xeb\xd5\x3a\x26"
26059 "\x9d\x77\x3b\xb5\x32\x13\x86\x8e"
26060 "\x20\x82\x26\x72\xae\x64\x1b\x7e"
26061 "\x2e\x01\x68\xb4\x87\x45\xa1\x24"
26062 "\xe4\x48\x40\xf0\xaa\xac\xee\xa9"
26063 "\xfc\x31\xad\x9d\x89\xa3\xbb\xd2"
26064 "\xe4\x25\x13\xad\x0f\x5e\xdf\x3c"
26065 "\x27\xab\xb8\x62\x46\x22\x30\x48"
26066 "\x55\x2c\x4e\x84\x78\x1d\x0d\x34"
26067 "\x8d\x3c\x91\x0a\x7f\x5b\x19\x9f"
26068 "\x97\x05\x4c\xa7\x62\x47\x8b\xc5"
26069 "\x44\x2e\x20\x33\xdd\xa0\x82\xa9"
26070 "\x25\x76\x37\xe6\x3c\x67\x5b",
26071 .len = 127,
26072 }, {
26073 .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a"
26074 "\xf3\x33\x88\x86\x04\xf6\xb5\xf0"
26075 "\x47\x39\x17\xc1\x40\x2b\x80\x09"
26076 "\x9d\xca\x5c\xbc\x20\x70\x75\xc0",
26077 .klen = 32,
26078 .iv = "\x00\x00\x00\x00\x00\x00\x00\x00"
26079 "\x00\x00\x00\x01\x31\x58\xa3\x5a"
26080 "\x25\x5d\x05\x17\x58\xe9\x5e\xd4"
26081 "\x1c\x00\x00\x00\x00\x00\x00\x00",
26082 .ptext = "\x49\xee\xe0\xdc\x24\x90\x40\xcd"
26083 "\xc5\x40\x8f\x47\x05\xbc\xdd\x81"
26084 "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb"
26085 "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8"
26086 "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4"
26087 "\x19\x4b\x01\x0f\x4e\xa4\x43\xce"
26088 "\x01\xc6\x67\xda\x03\x91\x18\x90"
26089 "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac"
26090 "\x74\x92\xd3\x53\x47\xc8\xdd\x25"
26091 "\x53\x6c\x02\x03\x87\x0d\x11\x0c"
26092 "\x58\xe3\x12\x18\xfd\x2a\x5b\x40"
26093 "\x0c\x30\xf0\xb8\x3f\x43\xce\xae"
26094 "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc"
26095 "\x33\x97\xc3\x77\xba\xc5\x70\xde"
26096 "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f"
26097 "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c"
26098 "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c"
26099 "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe"
26100 "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6"
26101 "\x79\x49\x41\xf4\x58\x18\xcb\x86"
26102 "\x7f\x30\x0e\xf8\x7d\x44\x36\xea"
26103 "\x75\xeb\x88\x84\x40\x3c\xad\x4f"
26104 "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5"
26105 "\x21\x66\xe9\xa7\xe3\xb2\x15\x88"
26106 "\x78\xf6\x79\xa1\x59\x47\x12\x4e"
26107 "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08"
26108 "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b"
26109 "\xdd\x60\x71\xf7\x47\x8c\x61\xc3"
26110 "\xda\x8a\x78\x1e\x16\xfa\x1e\x86"
26111 "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7"
26112 "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4"
26113 "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6"
26114 "\xf4\xe6\x33\x43\x84\x93\xa5\x67"
26115 "\x9b\x16\x58\x58\x80\x0f\x2b\x5c"
26116 "\x24\x74\x75\x7f\x95\x81\xb7\x30"
26117 "\x7a\x33\xa7\xf7\x94\x87\x32\x27"
26118 "\x10\x5d\x14\x4c\x43\x29\xdd\x26"
26119 "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10"
26120 "\xea\x6b\x64\xfd\x73\xc6\xed\xec"
26121 "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07"
26122 "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5"
26123 "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1"
26124 "\xec\xca\x60\x09\x4c\x6a\xd5\x09"
26125 "\x49\x46\x00\x88\x22\x8d\xce\xea"
26126 "\xb1\x17\x11\xde\x42\xd2\x23\xc1"
26127 "\x72\x11\xf5\x50\x73\x04\x40\x47"
26128 "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0"
26129 "\x3f\x58\xc1\x52\xab\x12\x67\x9d"
26130 "\x3f\x43\x4b\x68\xd4\x9c\x68\x38"
26131 "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b"
26132 "\xf9\xe5\x31\x69\x22\xf9\xa6\x69"
26133 "\xc6\x9c\x96\x9a\x12\x35\x95\x1d"
26134 "\x95\xd5\xdd\xbe\xbf\x93\x53\x24"
26135 "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00"
26136 "\x6f\x88\xc4\x37\x18\x69\x7c\xd7"
26137 "\x41\x92\x55\x4c\x03\xa1\x9a\x4b"
26138 "\x15\xe5\xdf\x7f\x37\x33\x72\xc1"
26139 "\x8b\x10\x67\xa3\x01\x57\x94\x25"
26140 "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73"
26141 "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda"
26142 "\x58\xb1\x47\x90\xfe\x42\x21\x72"
26143 "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd"
26144 "\xc6\x84\x6e\xca\xae\xe3\x68\xb4"
26145 "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b"
26146 "\x03\xa1\x31\xd9\xde\x8d\xf5\x22"
26147 "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76"
26148 "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe"
26149 "\x54\xf7\x27\x1b\xf4\xde\x02\xf5"
26150 "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e"
26151 "\x4b\x6e\xed\x46\x23\xdc\x65\xb2"
26152 "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7"
26153 "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8"
26154 "\x65\x69\x8a\x45\x29\xef\x74\x85"
26155 "\xde\x79\xc7\x08\xae\x30\xb0\xf4"
26156 "\xa3\x1d\x51\x41\xab\xce\xcb\xf6"
26157 "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3"
26158 "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7"
26159 "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9"
26160 "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a"
26161 "\x9f\xd7\xb9\x6c\x65\x14\x22\x45"
26162 "\x6e\x45\x32\x3e\x7e\x60\x1a\x12"
26163 "\x97\x82\x14\xfb\xaa\x04\x22\xfa"
26164 "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d"
26165 "\x78\x33\x5a\x7c\xad\xdb\x29\xce"
26166 "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac"
26167 "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21"
26168 "\x83\x35\x7e\xad\x73\xc2\xb5\x6c"
26169 "\x10\x26\x38\x07\xe5\xc7\x36\x80"
26170 "\xe2\x23\x12\x61\xf5\x48\x4b\x2b"
26171 "\xc5\xdf\x15\xd9\x87\x01\xaa\xac"
26172 "\x1e\x7c\xad\x73\x78\x18\x63\xe0"
26173 "\x8b\x9f\x81\xd8\x12\x6a\x28\x10"
26174 "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c"
26175 "\x83\x66\x80\x47\x80\xe8\xfd\x35"
26176 "\x1c\x97\x6f\xae\x49\x10\x66\xcc"
26177 "\xc6\xd8\xcc\x3a\x84\x91\x20\x77"
26178 "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9"
26179 "\x25\x94\x10\x5f\x40\x00\x64\x99"
26180 "\xdc\xae\xd7\x21\x09\x78\x50\x15"
26181 "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39"
26182 "\x87\x6e\x6d\xab\xde\x08\x51\x16"
26183 "\xc7\x13\xe9\xea\xed\x06\x8e\x2c"
26184 "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43"
26185 "\xb6\x98\x37\xb2\x43\xed\xde\xdf"
26186 "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b"
26187 "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9"
26188 "\x80\x55\xc9\x34\x91\xd1\x59\xe8"
26189 "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06"
26190 "\x20\xa8\x5d\xfa\xd1\xde\x70\x56"
26191 "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8"
26192 "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5"
26193 "\x44\x4b\x9f\xc2\x93\x03\xea\x2b"
26194 "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23"
26195 "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee"
26196 "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab"
26197 "\x82\x6b\x37\x04\xeb\x74\xbe\x79"
26198 "\xb9\x83\x90\xef\x20\x59\x46\xff"
26199 "\xe9\x97\x3e\x2f\xee\xb6\x64\x18"
26200 "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a"
26201 "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4"
26202 "\xce\xd3\x91\x49\x88\xc7\xb8\x4d"
26203 "\xb1\xb9\x07\x6d\x16\x72\xae\x46"
26204 "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8"
26205 "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62"
26206 "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9"
26207 "\x94\x97\xea\xdd\x58\x9e\xae\x76"
26208 "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde"
26209 "\xf7\x32\x87\xcd\x93\xbf\x11\x56"
26210 "\x11\xbe\x08\x74\xe1\x69\xad\xe2"
26211 "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe"
26212 "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76"
26213 "\x35\xea\x5d\x85\x81\xaf\x85\xeb"
26214 "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc"
26215 "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a"
26216 "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9"
26217 "\x37\x1c\xeb\x46\x54\x3f\xa5\x91"
26218 "\xc2\xb5\x8c\xfe\x53\x08\x97\x32"
26219 "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc"
26220 "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1"
26221 "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c"
26222 "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd"
26223 "\x20\x4e\x7c\x51\xb0\x60\x73\xb8"
26224 "\x9c\xac\x91\x90\x7e\x01\xb0\xe1"
26225 "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a"
26226 "\x06\x52\x95\x52\xb2\xe9\x25\x2e"
26227 "\x4c\xe2\x5a\x00\xb2\x13\x81\x03"
26228 "\x77\x66\x0d\xa5\x99\xda\x4e\x8c"
26229 "\xac\xf3\x13\x53\x27\x45\xaf\x64"
26230 "\x46\xdc\xea\x23\xda\x97\xd1\xab"
26231 "\x7d\x6c\x30\x96\x1f\xbc\x06\x34"
26232 "\x18\x0b\x5e\x21\x35\x11\x8d\x4c"
26233 "\xe0\x2d\xe9\x50\x16\x74\x81\xa8"
26234 "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc"
26235 "\xca\x34\x83\x27\x10\x5b\x68\x45"
26236 "\x8f\x52\x22\x0c\x55\x3d\x29\x7c"
26237 "\xe3\xc0\x66\x05\x42\x91\x5f\x58"
26238 "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19"
26239 "\x04\xa9\x08\x4b\x57\xfc\x67\x53"
26240 "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f"
26241 "\x92\xd6\x41\x7c\x5b\x2a\x00\x79"
26242 "\x72",
26243 .ctext = "\xe1\xb6\x8b\x5c\x80\xb8\xcc\x08"
26244 "\x1b\x84\xb2\xd1\xad\xa4\x70\xac"
26245 "\x67\xa9\x39\x27\xac\xb4\x5b\xb7"
26246 "\x4c\x26\x77\x23\x1d\xce\x0a\xbe"
26247 "\x18\x9e\x42\x8b\xbd\x7f\xd6\xf1"
26248 "\xf1\x6b\xe2\x6d\x7f\x92\x0e\xcb"
26249 "\xb8\x79\xba\xb4\xac\x7e\x2d\xc0"
26250 "\x9e\x83\x81\x91\xd5\xea\xc3\x12"
26251 "\x8d\xa4\x26\x70\xa4\xf9\x71\x0b"
26252 "\xbd\x2e\xe1\xb3\x80\x42\x25\xb3"
26253 "\x0b\x31\x99\xe1\x0d\xde\xa6\x90"
26254 "\xf2\xa3\x10\xf7\xe5\xf3\x83\x1e"
26255 "\x2c\xfb\x4d\xf0\x45\x3d\x28\x3c"
26256 "\xb8\xf1\xcb\xbf\x67\xd8\x43\x5a"
26257 "\x9d\x7b\x73\x29\x88\x0f\x13\x06"
26258 "\x37\x50\x0d\x7c\xe6\x9b\x07\xdd"
26259 "\x7e\x01\x1f\x81\x90\x10\x69\xdb"
26260 "\xa4\xad\x8a\x5e\xac\x30\x72\xf2"
26261 "\x36\xcd\xe3\x23\x49\x02\x93\xfa"
26262 "\x3d\xbb\xe2\x98\x83\xeb\xe9\x8d"
26263 "\xb3\x8f\x11\xaa\x53\xdb\xaf\x2e"
26264 "\x95\x13\x99\x3d\x71\xbd\x32\x92"
26265 "\xdd\xfc\x9d\x5e\x6f\x63\x2c\xee"
26266 "\x91\x1f\x4c\x64\x3d\x87\x55\x0f"
26267 "\xcc\x3d\x89\x61\x53\x02\x57\x8f"
26268 "\xe4\x77\x29\x32\xaf\xa6\x2f\x0a"
26269 "\xae\x3c\x3f\x3f\xf4\xfb\x65\x52"
26270 "\xc5\xc1\x78\x78\x53\x28\xad\xed"
26271 "\xd1\x67\x37\xc7\x59\x70\xcd\x0a"
26272 "\xb8\x0f\x80\x51\x9f\xc0\x12\x5e"
26273 "\x06\x0a\x7e\xec\x24\x5f\x73\x00"
26274 "\xb1\x0b\x31\x47\x4f\x73\x8d\xb4"
26275 "\xce\xf3\x55\x45\x6c\x84\x27\xba"
26276 "\xb9\x6f\x03\x4a\xeb\x98\x88\x6e"
26277 "\x53\xed\x25\x19\x0d\x8f\xfe\xca"
26278 "\x60\xe5\x00\x93\x6e\x3c\xff\x19"
26279 "\xae\x08\x3b\x8a\xa6\x84\x05\xfe"
26280 "\x9b\x59\xa0\x8c\xc8\x05\x45\xf5"
26281 "\x05\x37\xdc\x45\x6f\x8b\x95\x8c"
26282 "\x4e\x11\x45\x7a\xce\x21\xa5\xf7"
26283 "\x71\x67\xb9\xce\xd7\xf9\xe9\x5e"
26284 "\x60\xf5\x53\x7a\xa8\x85\x14\x03"
26285 "\xa0\x92\xec\xf3\x51\x80\x84\xc4"
26286 "\xdc\x11\x9e\x57\xce\x4b\x45\xcf"
26287 "\x90\x95\x85\x0b\x96\xe9\xee\x35"
26288 "\x10\xb8\x9b\xf2\x59\x4a\xc6\x7e"
26289 "\x85\xe5\x6f\x38\x51\x93\x40\x0c"
26290 "\x99\xd7\x7f\x32\xa8\x06\x27\xd1"
26291 "\x2b\xd5\xb5\x3a\x1a\xe1\x5e\xda"
26292 "\xcd\x5a\x50\x30\x3c\xc7\xe7\x65"
26293 "\xa6\x07\x0b\x98\x91\xc6\x20\x27"
26294 "\x2a\x03\x63\x1b\x1e\x3d\xaf\xc8"
26295 "\x71\x48\x46\x6a\x64\x28\xf9\x3d"
26296 "\xd1\x1d\xab\xc8\x40\x76\xc2\x39"
26297 "\x4e\x00\x75\xd2\x0e\x82\x58\x8c"
26298 "\xd3\x73\x5a\xea\x46\x89\xbe\xfd"
26299 "\x4e\x2c\x0d\x94\xaa\x9b\x68\xac"
26300 "\x86\x87\x30\x7e\xa9\x16\xcd\x59"
26301 "\xd2\xa6\xbe\x0a\xd8\xf5\xfd\x2d"
26302 "\x49\x69\xd2\x1a\x90\xd2\x1b\xed"
26303 "\xff\x71\x04\x87\x87\x21\xc4\xb8"
26304 "\x1f\x5b\x51\x33\xd0\xd6\x59\x9a"
26305 "\x03\x0e\xd3\x8b\xfb\x57\x73\xfd"
26306 "\x5a\x52\x63\x82\xc8\x85\x2f\xcb"
26307 "\x74\x6d\x4e\xd9\x68\x37\x85\x6a"
26308 "\xd4\xfb\x94\xed\x8d\xd1\x1a\xaf"
26309 "\x76\xa7\xb7\x88\xd0\x2b\x4e\xda"
26310 "\xec\x99\x94\x27\x6f\x87\x8c\xdf"
26311 "\x4b\x5e\xa6\x66\xdd\xcb\x33\x7b"
26312 "\x64\x94\x31\xa8\x37\xa6\x1d\xdb"
26313 "\x0d\x5c\x93\xa4\x40\xf9\x30\x53"
26314 "\x4b\x74\x8d\xdd\xf6\xde\x3c\xac"
26315 "\x5c\x80\x01\x3a\xef\xb1\x9a\x02"
26316 "\x0c\x22\x8e\xe7\x44\x09\x74\x4c"
26317 "\xf2\x9a\x27\x69\x7f\x12\x32\x36"
26318 "\xde\x92\xdf\xde\x8f\x5b\x31\xab"
26319 "\x4a\x01\x26\xe0\xb1\xda\xe8\x37"
26320 "\x21\x64\xe8\xff\x69\xfc\x9e\x41"
26321 "\xd2\x96\x2d\x18\x64\x98\x33\x78"
26322 "\x24\x61\x73\x9b\x47\x29\xf1\xa7"
26323 "\xcb\x27\x0f\xf0\x85\x6d\x8c\x9d"
26324 "\x2c\x95\x9e\xe5\xb2\x8e\x30\x29"
26325 "\x78\x8a\x9d\x65\xb4\x8e\xde\x7b"
26326 "\xd9\x00\x50\xf5\x7f\x81\xc3\x1b"
26327 "\x25\x85\xeb\xc2\x8c\x33\x22\x1e"
26328 "\x68\x38\x22\x30\xd8\x2e\x00\x98"
26329 "\x85\x16\x06\x56\xb4\x81\x74\x20"
26330 "\x95\xdb\x1c\x05\x19\xe8\x23\x4d"
26331 "\x65\x5d\xcc\xd8\x7f\xc4\x2d\x0f"
26332 "\x57\x26\x71\x07\xad\xaa\x71\x9f"
26333 "\x19\x76\x2f\x25\x51\x88\xe4\xc0"
26334 "\x82\x6e\x08\x05\x37\x04\xee\x25"
26335 "\x23\x90\xe9\x4e\xce\x9b\x16\xc1"
26336 "\x31\xe7\x6e\x2c\x1b\xe1\x85\x9a"
26337 "\x0c\x8c\xbb\x12\x1e\x68\x7b\x93"
26338 "\xa9\x3c\x39\x56\x23\x3e\x6e\xc7"
26339 "\x77\x84\xd3\xe0\x86\x59\xaa\xb9"
26340 "\xd5\x53\x58\xc9\x0a\x83\x5f\x85"
26341 "\xd8\x47\x14\x67\x8a\x3c\x17\xe0"
26342 "\xab\x02\x51\xea\xf1\xf0\x4f\x30"
26343 "\x7d\xe0\x92\xc2\x5f\xfb\x19\x5a"
26344 "\x3f\xbd\xf4\x39\xa4\x31\x0c\x39"
26345 "\xd1\xae\x4e\xf7\x65\x7f\x1f\xce"
26346 "\xc2\x39\xd1\x84\xd4\xe5\x02\xe0"
26347 "\x58\xaa\xf1\x5e\x81\xaf\x7f\x72"
26348 "\x0f\x08\x99\x43\xb9\xd8\xac\x41"
26349 "\x35\x55\xf2\xb2\xd4\x98\xb8\x3b"
26350 "\x2b\x3c\x3e\x16\x06\x31\xfc\x79"
26351 "\x47\x38\x63\x51\xc5\xd0\x26\xd7"
26352 "\x43\xb4\x2b\xd9\xc5\x05\xf2\x9d"
26353 "\x18\xc9\x26\x82\x56\xd2\x11\x05"
26354 "\xb6\x89\xb4\x43\x9c\xb5\x9d\x11"
26355 "\x6c\x83\x37\x71\x27\x1c\xae\xbf"
26356 "\xcd\x57\xd2\xee\x0d\x5a\x15\x26"
26357 "\x67\x88\x80\x80\x1b\xdc\xc1\x62"
26358 "\xdd\x4c\xff\x92\x5c\x6c\xe1\xa0"
26359 "\xe3\x79\xa9\x65\x8c\x8c\x14\x42"
26360 "\xe5\x11\xd2\x1a\xad\xa9\x56\x6f"
26361 "\x98\xfc\x8a\x7b\x56\x1f\xc6\xc1"
26362 "\x52\x12\x92\x9b\x41\x0f\x4b\xae"
26363 "\x1b\x4a\xbc\xfe\x23\xb6\x94\x70"
26364 "\x04\x30\x9e\x69\x47\xbe\xb8\x8f"
26365 "\xca\x45\xd7\x8a\xf4\x78\x3e\xaa"
26366 "\x71\x17\xd8\x1e\xb8\x11\x8f\xbc"
26367 "\xc8\x1a\x65\x7b\x41\x89\x72\xc7"
26368 "\x5f\xbe\xc5\x2a\xdb\x5c\x54\xf9"
26369 "\x25\xa3\x7a\x80\x56\x9c\x8c\xab"
26370 "\x26\x19\x10\x36\xa6\xf3\x14\x79"
26371 "\x40\x98\x70\x68\xb7\x35\xd9\xb9"
26372 "\x27\xd4\xe7\x74\x5b\x3d\x97\xb4"
26373 "\xd9\xaa\xd9\xf2\xb5\x14\x84\x1f"
26374 "\xa9\xde\x12\x44\x5b\x00\xc0\xbc"
26375 "\xc8\x11\x25\x1b\x67\x7a\x15\x72"
26376 "\xa6\x31\x6f\xf4\x68\x7a\x86\x9d"
26377 "\x43\x1c\x5f\x16\xd3\xad\x2e\x52"
26378 "\xf3\xb4\xc3\xfa\x27\x2e\x68\x6c"
26379 "\x06\xe7\x4c\x4f\xa2\xe0\xe4\x21"
26380 "\x5d\x9e\x33\x58\x8d\xbf\xd5\x70"
26381 "\xf8\x80\xa5\xdd\xe7\x18\x79\xfa"
26382 "\x7b\xfd\x09\x69\x2c\x37\x32\xa8"
26383 "\x65\xfa\x8d\x8b\x5c\xcc\xe8\xf3"
26384 "\x37\xf6\xa6\xc6\x5c\xa2\x66\x79"
26385 "\xfa\x8a\xa7\xd1\x0b\x2e\x1b\x5e"
26386 "\x95\x35\x00\x76\xae\x42\xf7\x50"
26387 "\x51\x78\xfb\xb4\x28\x24\xde\x1a"
26388 "\x70\x8b\xed\xca\x3c\x5e\xe4\xbd"
26389 "\x28\xb5\xf3\x76\x4f\x67\x5d\x81"
26390 "\xb2\x60\x87\xd9\x7b\x19\x1a\xa7"
26391 "\x79\xa2\xfa\x3f\x9e\xa9\xd7\x25"
26392 "\x61\xe1\x74\x31\xa2\x77\xa0\x1b"
26393 "\xf6\xf7\xcb\xc5\xaa\x9e\xce\xf9"
26394 "\x9b\x96\xef\x51\xc3\x1a\x44\x96"
26395 "\xae\x17\x50\xab\x29\x08\xda\xcc"
26396 "\x1a\xb3\x12\xd0\x24\xe4\xe2\xe0"
26397 "\xc6\xe3\xcc\x82\xd0\xba\x47\x4c"
26398 "\x3f\x49\xd7\xe8\xb6\x61\xaa\x65"
26399 "\x25\x18\x40\x2d\x62\x25\x02\x71"
26400 "\x61\xa2\xc1\xb2\x13\xd2\x71\x3f"
26401 "\x43\x1a\xc9\x09\x92\xff\xd5\x57"
26402 "\xf0\xfc\x5e\x1c\xf1\xf5\xf9\xf3"
26403 "\x5b",
26404 .len = 1281,
Eric Biggers5569e8c2018-12-06 12:31:54 -080026405 }, {
26406 .key = "\x80\x81\x82\x83\x84\x85\x86\x87"
26407 "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f"
26408 "\x90\x91\x92\x93\x94\x95\x96\x97"
26409 "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f",
26410 .klen = 32,
26411 .iv = "\x40\x41\x42\x43\x44\x45\x46\x47"
26412 "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f"
26413 "\x50\x51\x52\x53\x54\x55\x56\x58"
26414 "\x00\x00\x00\x00\x00\x00\x00\x00",
26415 .ptext = "\x54\x68\x65\x20\x64\x68\x6f\x6c"
26416 "\x65\x20\x28\x70\x72\x6f\x6e\x6f"
26417 "\x75\x6e\x63\x65\x64\x20\x22\x64"
26418 "\x6f\x6c\x65\x22\x29\x20\x69\x73"
26419 "\x20\x61\x6c\x73\x6f\x20\x6b\x6e"
26420 "\x6f\x77\x6e\x20\x61\x73\x20\x74"
26421 "\x68\x65\x20\x41\x73\x69\x61\x74"
26422 "\x69\x63\x20\x77\x69\x6c\x64\x20"
26423 "\x64\x6f\x67\x2c\x20\x72\x65\x64"
26424 "\x20\x64\x6f\x67\x2c\x20\x61\x6e"
26425 "\x64\x20\x77\x68\x69\x73\x74\x6c"
26426 "\x69\x6e\x67\x20\x64\x6f\x67\x2e"
26427 "\x20\x49\x74\x20\x69\x73\x20\x61"
26428 "\x62\x6f\x75\x74\x20\x74\x68\x65"
26429 "\x20\x73\x69\x7a\x65\x20\x6f\x66"
26430 "\x20\x61\x20\x47\x65\x72\x6d\x61"
26431 "\x6e\x20\x73\x68\x65\x70\x68\x65"
26432 "\x72\x64\x20\x62\x75\x74\x20\x6c"
26433 "\x6f\x6f\x6b\x73\x20\x6d\x6f\x72"
26434 "\x65\x20\x6c\x69\x6b\x65\x20\x61"
26435 "\x20\x6c\x6f\x6e\x67\x2d\x6c\x65"
26436 "\x67\x67\x65\x64\x20\x66\x6f\x78"
26437 "\x2e\x20\x54\x68\x69\x73\x20\x68"
26438 "\x69\x67\x68\x6c\x79\x20\x65\x6c"
26439 "\x75\x73\x69\x76\x65\x20\x61\x6e"
26440 "\x64\x20\x73\x6b\x69\x6c\x6c\x65"
26441 "\x64\x20\x6a\x75\x6d\x70\x65\x72"
26442 "\x20\x69\x73\x20\x63\x6c\x61\x73"
26443 "\x73\x69\x66\x69\x65\x64\x20\x77"
26444 "\x69\x74\x68\x20\x77\x6f\x6c\x76"
26445 "\x65\x73\x2c\x20\x63\x6f\x79\x6f"
26446 "\x74\x65\x73\x2c\x20\x6a\x61\x63"
26447 "\x6b\x61\x6c\x73\x2c\x20\x61\x6e"
26448 "\x64\x20\x66\x6f\x78\x65\x73\x20"
26449 "\x69\x6e\x20\x74\x68\x65\x20\x74"
26450 "\x61\x78\x6f\x6e\x6f\x6d\x69\x63"
26451 "\x20\x66\x61\x6d\x69\x6c\x79\x20"
26452 "\x43\x61\x6e\x69\x64\x61\x65\x2e",
26453 .ctext = "\x9f\x1a\xab\x8a\x95\xf4\x7e\xcd"
26454 "\xee\x34\xc0\x39\xd6\x23\x43\x94"
26455 "\xf6\x01\xc1\x7f\x60\x91\xa5\x23"
26456 "\x4a\x8a\xe6\xb1\x14\x8b\xd7\x58"
26457 "\xee\x02\xad\xab\xce\x1e\x7d\xdf"
26458 "\xf9\x49\x27\x69\xd0\x8d\x0c\x20"
26459 "\x6e\x17\xc4\xae\x87\x7a\xc6\x61"
26460 "\x91\xe2\x8e\x0a\x1d\x61\xcc\x38"
26461 "\x02\x64\x43\x49\xc6\xb2\x59\x59"
26462 "\x42\xe7\x9d\x83\x00\x60\x90\xd2"
26463 "\xb9\xcd\x97\x6e\xc7\x95\x71\xbc"
26464 "\x23\x31\x58\x07\xb3\xb4\xac\x0b"
26465 "\x87\x64\x56\xe5\xe3\xec\x63\xa1"
26466 "\x71\x8c\x08\x48\x33\x20\x29\x81"
26467 "\xea\x01\x25\x20\xc3\xda\xe6\xee"
26468 "\x6a\x03\xf6\x68\x4d\x26\xa0\x91"
26469 "\x9e\x44\xb8\xc1\xc0\x8f\x5a\x6a"
26470 "\xc0\xcd\xbf\x24\x5e\x40\x66\xd2"
26471 "\x42\x24\xb5\xbf\xc1\xeb\x12\x60"
26472 "\x56\xbe\xb1\xa6\xc4\x0f\xfc\x49"
26473 "\x69\x9f\xcc\x06\x5c\xe3\x26\xd7"
26474 "\x52\xc0\x42\xe8\xb4\x76\xc3\xee"
26475 "\xb2\x97\xe3\x37\x61\x29\x5a\xb5"
26476 "\x8e\xe8\x8c\xc5\x38\xcc\xcb\xec"
26477 "\x64\x1a\xa9\x12\x5f\xf7\x79\xdf"
26478 "\x64\xca\x77\x4e\xbd\xf9\x83\xa0"
26479 "\x13\x27\x3f\x31\x03\x63\x30\x26"
26480 "\x27\x0b\x3e\xb3\x23\x13\x61\x0b"
26481 "\x70\x1d\xd4\xad\x85\x1e\xbf\xdf"
26482 "\xc6\x8e\x4d\x08\xcc\x7e\x77\xbd"
26483 "\x1e\x18\x77\x38\x3a\xfe\xc0\x5d"
26484 "\x16\xfc\xf0\xa9\x2f\xe9\x17\xc7"
26485 "\xd3\x23\x17\x18\xa3\xe6\x54\x77"
26486 "\x6f\x1b\xbe\x8a\x6e\x7e\xca\x97"
26487 "\x08\x05\x36\x76\xaf\x12\x7a\x42"
26488 "\xf7\x7a\xc2\x35\xc3\xb4\x93\x40"
26489 "\x54\x14\x90\xa0\x4d\x65\x1c\x37"
26490 "\x50\x70\x44\x29\x6d\x6e\x62\x68",
26491 .len = 304,
26492 }
Eric Biggersaa762402018-11-16 17:26:22 -080026493};
26494
Eric Biggers059c2a42018-11-16 17:26:31 -080026495/* Adiantum test vectors from https://github.com/google/adiantum */
26496static const struct cipher_testvec adiantum_xchacha12_aes_tv_template[] = {
26497 {
26498 .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4"
26499 "\x6a\x99\xc2\xc4\xdf\xb1\xf4\xdd"
26500 "\x75\x20\x57\xea\x2c\x4f\xcd\xb2"
26501 "\xa5\x3d\x7b\x49\x1e\xab\xfd\x0f",
26502 .klen = 32,
26503 .iv = "\xdf\x63\xd4\xab\xd2\x49\xf3\xd8"
26504 "\x33\x81\x37\x60\x7d\xfa\x73\x08"
26505 "\xd8\x49\x6d\x80\xe8\x2f\x62\x54"
26506 "\xeb\x0e\xa9\x39\x5b\x45\x7f\x8a",
26507 .ptext = "\x67\xc9\xf2\x30\x84\x41\x8e\x43"
26508 "\xfb\xf3\xb3\x3e\x79\x36\x7f\xe8",
26509 .ctext = "\x6d\x32\x86\x18\x67\x86\x0f\x3f"
26510 "\x96\x7c\x9d\x28\x0d\x53\xec\x9f",
26511 .len = 16,
Eric Biggers059c2a42018-11-16 17:26:31 -080026512 }, {
26513 .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99"
26514 "\x5f\x1a\x5a\x44\x1d\x92\x0f\x27"
26515 "\xcc\x16\xd7\x2b\x85\x63\x99\xd3"
26516 "\xba\x96\xa1\xdb\xd2\x60\x68\xda",
26517 .klen = 32,
26518 .iv = "\xef\x58\x69\xb1\x2c\x5e\x9a\x47"
26519 "\x24\xc1\xb1\x69\xe1\x12\x93\x8f"
26520 "\x43\x3d\x6d\x00\xdb\x5e\xd8\xd9"
26521 "\x12\x9a\xfe\xd9\xff\x2d\xaa\xc4",
26522 .ptext = "\x5e\xa8\x68\x19\x85\x98\x12\x23"
26523 "\x26\x0a\xcc\xdb\x0a\x04\xb9\xdf"
26524 "\x4d\xb3\x48\x7b\xb0\xe3\xc8\x19"
26525 "\x43\x5a\x46\x06\x94\x2d\xf2",
26526 .ctext = "\xc7\xc6\xf1\x73\x8f\xc4\xff\x4a"
26527 "\x39\xbe\x78\xbe\x8d\x28\xc8\x89"
26528 "\x46\x63\xe7\x0c\x7d\x87\xe8\x4e"
26529 "\xc9\x18\x7b\xbe\x18\x60\x50",
26530 .len = 31,
26531 }, {
26532 .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7"
26533 "\x05\x91\x8f\xee\x85\x1f\x35\x7f"
26534 "\x80\x3d\xfc\x9b\x94\xf6\xfc\x9e"
26535 "\x19\x09\x00\xa9\x04\x31\x4f\x11",
26536 .klen = 32,
26537 .iv = "\xa1\xba\x49\x95\xff\x34\x6d\xb8"
26538 "\xcd\x87\x5d\x5e\xfd\xea\x85\xdb"
26539 "\x8a\x7b\x5e\xb2\x5d\x57\xdd\x62"
26540 "\xac\xa9\x8c\x41\x42\x94\x75\xb7",
26541 .ptext = "\x69\xb4\xe8\x8c\x37\xe8\x67\x82"
26542 "\xf1\xec\x5d\x04\xe5\x14\x91\x13"
26543 "\xdf\xf2\x87\x1b\x69\x81\x1d\x71"
26544 "\x70\x9e\x9c\x3b\xde\x49\x70\x11"
26545 "\xa0\xa3\xdb\x0d\x54\x4f\x66\x69"
26546 "\xd7\xdb\x80\xa7\x70\x92\x68\xce"
26547 "\x81\x04\x2c\xc6\xab\xae\xe5\x60"
26548 "\x15\xe9\x6f\xef\xaa\x8f\xa7\xa7"
26549 "\x63\x8f\xf2\xf0\x77\xf1\xa8\xea"
26550 "\xe1\xb7\x1f\x9e\xab\x9e\x4b\x3f"
26551 "\x07\x87\x5b\x6f\xcd\xa8\xaf\xb9"
26552 "\xfa\x70\x0b\x52\xb8\xa8\xa7\x9e"
26553 "\x07\x5f\xa6\x0e\xb3\x9b\x79\x13"
26554 "\x79\xc3\x3e\x8d\x1c\x2c\x68\xc8"
26555 "\x51\x1d\x3c\x7b\x7d\x79\x77\x2a"
26556 "\x56\x65\xc5\x54\x23\x28\xb0\x03",
26557 .ctext = "\x9e\x16\xab\xed\x4b\xa7\x42\x5a"
26558 "\xc6\xfb\x4e\x76\xff\xbe\x03\xa0"
26559 "\x0f\xe3\xad\xba\xe4\x98\x2b\x0e"
26560 "\x21\x48\xa0\xb8\x65\x48\x27\x48"
26561 "\x84\x54\x54\xb2\x9a\x94\x7b\xe6"
26562 "\x4b\x29\xe9\xcf\x05\x91\x80\x1a"
26563 "\x3a\xf3\x41\x96\x85\x1d\x9f\x74"
26564 "\x51\x56\x63\xfa\x7c\x28\x85\x49"
26565 "\xf7\x2f\xf9\xf2\x18\x46\xf5\x33"
26566 "\x80\xa3\x3c\xce\xb2\x57\x93\xf5"
26567 "\xae\xbd\xa9\xf5\x7b\x30\xc4\x93"
26568 "\x66\xe0\x30\x77\x16\xe4\xa0\x31"
26569 "\xba\x70\xbc\x68\x13\xf5\xb0\x9a"
26570 "\xc1\xfc\x7e\xfe\x55\x80\x5c\x48"
26571 "\x74\xa6\xaa\xa3\xac\xdc\xc2\xf5"
26572 "\x8d\xde\x34\x86\x78\x60\x75\x8d",
26573 .len = 128,
Eric Biggers059c2a42018-11-16 17:26:31 -080026574 }, {
26575 .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a"
26576 "\x25\x74\x29\x0d\x51\x8a\x0e\x13"
26577 "\xc1\x53\x5d\x30\x8d\xee\x75\x0d"
26578 "\x14\xd6\x69\xc9\x15\xa9\x0c\x60",
26579 .klen = 32,
26580 .iv = "\x65\x9b\xd4\xa8\x7d\x29\x1d\xf4"
26581 "\xc4\xd6\x9b\x6a\x28\xab\x64\xe2"
26582 "\x62\x81\x97\xc5\x81\xaa\xf9\x44"
26583 "\xc1\x72\x59\x82\xaf\x16\xc8\x2c",
26584 .ptext = "\xc7\x6b\x52\x6a\x10\xf0\xcc\x09"
26585 "\xc1\x12\x1d\x6d\x21\xa6\x78\xf5"
26586 "\x05\xa3\x69\x60\x91\x36\x98\x57"
26587 "\xba\x0c\x14\xcc\xf3\x2d\x73\x03"
26588 "\xc6\xb2\x5f\xc8\x16\x27\x37\x5d"
26589 "\xd0\x0b\x87\xb2\x50\x94\x7b\x58"
26590 "\x04\xf4\xe0\x7f\x6e\x57\x8e\xc9"
26591 "\x41\x84\xc1\xb1\x7e\x4b\x91\x12"
26592 "\x3a\x8b\x5d\x50\x82\x7b\xcb\xd9"
26593 "\x9a\xd9\x4e\x18\x06\x23\x9e\xd4"
26594 "\xa5\x20\x98\xef\xb5\xda\xe5\xc0"
26595 "\x8a\x6a\x83\x77\x15\x84\x1e\xae"
26596 "\x78\x94\x9d\xdf\xb7\xd1\xea\x67"
26597 "\xaa\xb0\x14\x15\xfa\x67\x21\x84"
26598 "\xd3\x41\x2a\xce\xba\x4b\x4a\xe8"
26599 "\x95\x62\xa9\x55\xf0\x80\xad\xbd"
26600 "\xab\xaf\xdd\x4f\xa5\x7c\x13\x36"
26601 "\xed\x5e\x4f\x72\xad\x4b\xf1\xd0"
26602 "\x88\x4e\xec\x2c\x88\x10\x5e\xea"
26603 "\x12\xc0\x16\x01\x29\xa3\xa0\x55"
26604 "\xaa\x68\xf3\xe9\x9d\x3b\x0d\x3b"
26605 "\x6d\xec\xf8\xa0\x2d\xf0\x90\x8d"
26606 "\x1c\xe2\x88\xd4\x24\x71\xf9\xb3"
26607 "\xc1\x9f\xc5\xd6\x76\x70\xc5\x2e"
26608 "\x9c\xac\xdb\x90\xbd\x83\x72\xba"
26609 "\x6e\xb5\xa5\x53\x83\xa9\xa5\xbf"
26610 "\x7d\x06\x0e\x3c\x2a\xd2\x04\xb5"
26611 "\x1e\x19\x38\x09\x16\xd2\x82\x1f"
26612 "\x75\x18\x56\xb8\x96\x0b\xa6\xf9"
26613 "\xcf\x62\xd9\x32\x5d\xa9\xd7\x1d"
26614 "\xec\xe4\xdf\x1b\xbe\xf1\x36\xee"
26615 "\xe3\x7b\xb5\x2f\xee\xf8\x53\x3d"
26616 "\x6a\xb7\x70\xa9\xfc\x9c\x57\x25"
26617 "\xf2\x89\x10\xd3\xb8\xa8\x8c\x30"
26618 "\xae\x23\x4f\x0e\x13\x66\x4f\xe1"
26619 "\xb6\xc0\xe4\xf8\xef\x93\xbd\x6e"
26620 "\x15\x85\x6b\xe3\x60\x81\x1d\x68"
26621 "\xd7\x31\x87\x89\x09\xab\xd5\x96"
26622 "\x1d\xf3\x6d\x67\x80\xca\x07\x31"
26623 "\x5d\xa7\xe4\xfb\x3e\xf2\x9b\x33"
26624 "\x52\x18\xc8\x30\xfe\x2d\xca\x1e"
26625 "\x79\x92\x7a\x60\x5c\xb6\x58\x87"
26626 "\xa4\x36\xa2\x67\x92\x8b\xa4\xb7"
26627 "\xf1\x86\xdf\xdc\xc0\x7e\x8f\x63"
26628 "\xd2\xa2\xdc\x78\xeb\x4f\xd8\x96"
26629 "\x47\xca\xb8\x91\xf9\xf7\x94\x21"
26630 "\x5f\x9a\x9f\x5b\xb8\x40\x41\x4b"
26631 "\x66\x69\x6a\x72\xd0\xcb\x70\xb7"
26632 "\x93\xb5\x37\x96\x05\x37\x4f\xe5"
26633 "\x8c\xa7\x5a\x4e\x8b\xb7\x84\xea"
26634 "\xc7\xfc\x19\x6e\x1f\x5a\xa1\xac"
26635 "\x18\x7d\x52\x3b\xb3\x34\x62\x99"
26636 "\xe4\x9e\x31\x04\x3f\xc0\x8d\x84"
26637 "\x17\x7c\x25\x48\x52\x67\x11\x27"
26638 "\x67\xbb\x5a\x85\xca\x56\xb2\x5c"
26639 "\xe6\xec\xd5\x96\x3d\x15\xfc\xfb"
26640 "\x22\x25\xf4\x13\xe5\x93\x4b\x9a"
26641 "\x77\xf1\x52\x18\xfa\x16\x5e\x49"
26642 "\x03\x45\xa8\x08\xfa\xb3\x41\x92"
26643 "\x79\x50\x33\xca\xd0\xd7\x42\x55"
26644 "\xc3\x9a\x0c\x4e\xd9\xa4\x3c\x86"
26645 "\x80\x9f\x53\xd1\xa4\x2e\xd1\xbc"
26646 "\xf1\x54\x6e\x93\xa4\x65\x99\x8e"
26647 "\xdf\x29\xc0\x64\x63\x07\xbb\xea",
26648 .ctext = "\x15\x97\xd0\x86\x18\x03\x9c\x51"
26649 "\xc5\x11\x36\x62\x13\x92\xe6\x73"
26650 "\x29\x79\xde\xa1\x00\x3e\x08\x64"
26651 "\x17\x1a\xbc\xd5\xfe\x33\x0e\x0c"
26652 "\x7c\x94\xa7\xc6\x3c\xbe\xac\xa2"
26653 "\x89\xe6\xbc\xdf\x0c\x33\x27\x42"
26654 "\x46\x73\x2f\xba\x4e\xa6\x46\x8f"
26655 "\xe4\xee\x39\x63\x42\x65\xa3\x88"
26656 "\x7a\xad\x33\x23\xa9\xa7\x20\x7f"
26657 "\x0b\xe6\x6a\xc3\x60\xda\x9e\xb4"
26658 "\xd6\x07\x8a\x77\x26\xd1\xab\x44"
26659 "\x99\x55\x03\x5e\xed\x8d\x7b\xbd"
26660 "\xc8\x21\xb7\x21\x30\x3f\xc0\xb5"
26661 "\xc8\xec\x6c\x23\xa6\xa3\x6d\xf1"
26662 "\x30\x0a\xd0\xa6\xa9\x28\x69\xae"
26663 "\x2a\xe6\x54\xac\x82\x9d\x6a\x95"
26664 "\x6f\x06\x44\xc5\x5a\x77\x6e\xec"
26665 "\xf8\xf8\x63\xb2\xe6\xaa\xbd\x8e"
26666 "\x0e\x8a\x62\x00\x03\xc8\x84\xdd"
26667 "\x47\x4a\xc3\x55\xba\xb7\xe7\xdf"
26668 "\x08\xbf\x62\xf5\xe8\xbc\xb6\x11"
26669 "\xe4\xcb\xd0\x66\x74\x32\xcf\xd4"
26670 "\xf8\x51\x80\x39\x14\x05\x12\xdb"
26671 "\x87\x93\xe2\x26\x30\x9c\x3a\x21"
26672 "\xe5\xd0\x38\x57\x80\x15\xe4\x08"
26673 "\x58\x05\x49\x7d\xe6\x92\x77\x70"
26674 "\xfb\x1e\x2d\x6a\x84\x00\xc8\x68"
26675 "\xf7\x1a\xdd\xf0\x7b\x38\x1e\xd8"
26676 "\x2c\x78\x78\x61\xcf\xe3\xde\x69"
26677 "\x1f\xd5\x03\xd5\x1a\xb4\xcf\x03"
26678 "\xc8\x7a\x70\x68\x35\xb4\xf6\xbe"
26679 "\x90\x62\xb2\x28\x99\x86\xf5\x44"
26680 "\x99\xeb\x31\xcf\xca\xdf\xd0\x21"
26681 "\xd6\x60\xf7\x0f\x40\xb4\x80\xb7"
26682 "\xab\xe1\x9b\x45\xba\x66\xda\xee"
26683 "\xdd\x04\x12\x40\x98\xe1\x69\xe5"
26684 "\x2b\x9c\x59\x80\xe7\x7b\xcc\x63"
26685 "\xa6\xc0\x3a\xa9\xfe\x8a\xf9\x62"
26686 "\x11\x34\x61\x94\x35\xfe\xf2\x99"
26687 "\xfd\xee\x19\xea\x95\xb6\x12\xbf"
26688 "\x1b\xdf\x02\x1a\xcc\x3e\x7e\x65"
26689 "\x78\x74\x10\x50\x29\x63\x28\xea"
26690 "\x6b\xab\xd4\x06\x4d\x15\x24\x31"
26691 "\xc7\x0a\xc9\x16\xb6\x48\xf0\xbf"
26692 "\x49\xdb\x68\x71\x31\x8f\x87\xe2"
26693 "\x13\x05\x64\xd6\x22\x0c\xf8\x36"
26694 "\x84\x24\x3e\x69\x5e\xb8\x9e\x16"
26695 "\x73\x6c\x83\x1e\xe0\x9f\x9e\xba"
26696 "\xe5\x59\x21\x33\x1b\xa9\x26\xc2"
26697 "\xc7\xd9\x30\x73\xb6\xa6\x73\x82"
26698 "\x19\xfa\x44\x4d\x40\x8b\x69\x04"
26699 "\x94\x74\xea\x6e\xb3\x09\x47\x01"
26700 "\x2a\xb9\x78\x34\x43\x11\xed\xd6"
26701 "\x8c\x95\x65\x1b\x85\x67\xa5\x40"
26702 "\xac\x9c\x05\x4b\x57\x4a\xa9\x96"
26703 "\x0f\xdd\x4f\xa1\xe0\xcf\x6e\xc7"
26704 "\x1b\xed\xa2\xb4\x56\x8c\x09\x6e"
26705 "\xa6\x65\xd7\x55\x81\xb7\xed\x11"
26706 "\x9b\x40\x75\xa8\x6b\x56\xaf\x16"
26707 "\x8b\x3d\xf4\xcb\xfe\xd5\x1d\x3d"
26708 "\x85\xc2\xc0\xde\x43\x39\x4a\x96"
26709 "\xba\x88\x97\xc0\xd6\x00\x0e\x27"
26710 "\x21\xb0\x21\x52\xba\xa7\x37\xaa"
26711 "\xcc\xbf\x95\xa8\xf4\xd0\x91\xf6",
26712 .len = 512,
Eric Biggers333e66472019-02-14 10:29:39 -080026713 }, {
26714 .key = "\xeb\xe5\x11\x3a\x72\xeb\x10\xbe"
26715 "\x70\xcf\xe3\xea\xc2\x74\xa4\x48"
26716 "\x29\x0f\x8f\x3f\xcf\x4c\x28\x2a"
26717 "\x4e\x1e\x3c\xc3\x27\x9f\x16\x13",
26718 .klen = 32,
26719 .iv = "\x84\x3e\xa2\x7c\x06\x72\xb2\xad"
26720 "\x88\x76\x65\xb4\x1a\x29\x27\x12"
26721 "\x45\xb6\x8d\x0e\x4b\x87\x04\xfc"
26722 "\xb5\xcd\x1c\x4d\xe8\x06\xf1\xcb",
26723 .ptext = "\x8e\xb6\x07\x9b\x7c\xe4\xa4\xa2"
26724 "\x41\x6c\x24\x1d\xc0\x77\x4e\xd9"
26725 "\x4a\xa4\x2c\xb6\xe4\x55\x02\x7f"
26726 "\xc4\xec\xab\xc2\x5c\x63\x40\x92"
26727 "\x38\x24\x62\xdb\x65\x82\x10\x7f"
26728 "\x21\xa5\x39\x3a\x3f\x38\x7e\xad"
26729 "\x6c\x7b\xc9\x3f\x89\x8f\xa8\x08"
26730 "\xbd\x31\x57\x3c\x7a\x45\x67\x30"
26731 "\xa9\x27\x58\x34\xbe\xe3\xa4\xc3"
26732 "\xff\xc2\x9f\x43\xf0\x04\xba\x1e"
26733 "\xb6\xf3\xc4\xce\x09\x7a\x2e\x42"
26734 "\x7d\xad\x97\xc9\x77\x9a\x3a\x78"
26735 "\x6c\xaf\x7c\x2a\x46\xb4\x41\x86"
26736 "\x1a\x20\xf2\x5b\x1a\x60\xc9\xc4"
26737 "\x47\x5d\x10\xa4\xd2\x15\x6a\x19"
26738 "\x4f\xd5\x51\x37\xd5\x06\x70\x1a"
26739 "\x3e\x78\xf0\x2e\xaa\xb5\x2a\xbd"
26740 "\x83\x09\x7c\xcb\x29\xac\xd7\x9c"
26741 "\xbf\x80\xfd\x9d\xd4\xcf\x64\xca"
26742 "\xf8\xc9\xf1\x77\x2e\xbb\x39\x26"
26743 "\xac\xd9\xbe\xce\x24\x7f\xbb\xa2"
26744 "\x82\xba\xeb\x5f\x65\xc5\xf1\x56"
26745 "\x8a\x52\x02\x4d\x45\x23\x6d\xeb"
26746 "\xb0\x60\x7b\xd8\x6e\xb2\x98\xd2"
26747 "\xaf\x76\xf2\x33\x9b\xf3\xbb\x95"
26748 "\xc0\x50\xaa\xc7\x47\xf6\xb3\xf3"
26749 "\x77\x16\xcb\x14\x95\xbf\x1d\x32"
26750 "\x45\x0c\x75\x52\x2c\xe8\xd7\x31"
26751 "\xc0\x87\xb0\x97\x30\x30\xc5\x5e"
26752 "\x50\x70\x6e\xb0\x4b\x4e\x38\x19"
26753 "\x46\xca\x38\x6a\xca\x7d\xfe\x05"
26754 "\xc8\x80\x7c\x14\x6c\x24\xb5\x42"
26755 "\x28\x04\x4c\xff\x98\x20\x08\x10"
26756 "\x90\x31\x03\x78\xd8\xa1\xe6\xf9"
26757 "\x52\xc2\xfc\x3e\xa7\x68\xce\xeb"
26758 "\x59\x5d\xeb\xd8\x64\x4e\xf8\x8b"
26759 "\x24\x62\xcf\x17\x36\x84\xc0\x72"
26760 "\x60\x4f\x3e\x47\xda\x72\x3b\x0e"
26761 "\xce\x0b\xa9\x9c\x51\xdc\xa5\xb9"
26762 "\x71\x73\x08\x4e\x22\x31\xfd\x88"
26763 "\x29\xfc\x8d\x17\x3a\x7a\xe5\xb9"
26764 "\x0b\x9c\x6d\xdb\xce\xdb\xde\x81"
26765 "\x73\x5a\x16\x9d\x3c\x72\x88\x51"
26766 "\x10\x16\xf3\x11\x6e\x32\x5f\x4c"
26767 "\x87\xce\x88\x2c\xd2\xaf\xf5\xb7"
26768 "\xd8\x22\xed\xc9\xae\x68\x7f\xc5"
26769 "\x30\x62\xbe\xc9\xe0\x27\xa1\xb5"
26770 "\x57\x74\x36\x60\xb8\x6b\x8c\xec"
26771 "\x14\xad\xed\x69\xc9\xd8\xa5\x5b"
26772 "\x38\x07\x5b\xf3\x3e\x74\x48\x90"
26773 "\x61\x17\x23\xdd\x44\xbc\x9d\x12"
26774 "\x0a\x3a\x63\xb2\xab\x86\xb8\x67"
26775 "\x85\xd6\xb2\x5d\xde\x4a\xc1\x73"
26776 "\x2a\x7c\x53\x8e\xd6\x7d\x0e\xe4"
26777 "\x3b\xab\xc5\x3d\x32\x79\x18\xb7"
26778 "\xd6\x50\x4d\xf0\x8a\x37\xbb\xd3"
26779 "\x8d\xd8\x08\xd7\x7d\xaa\x24\x52"
26780 "\xf7\x90\xe3\xaa\xd6\x49\x7a\x47"
26781 "\xec\x37\xad\x74\x8b\xc1\xb7\xfe"
26782 "\x4f\x70\x14\x62\x22\x8c\x63\xc2"
26783 "\x1c\x4e\x38\xc3\x63\xb7\xbf\x53"
26784 "\xbd\x1f\xac\xa6\x94\xc5\x81\xfa"
26785 "\xe0\xeb\x81\xe9\xd9\x1d\x32\x3c"
26786 "\x85\x12\xca\x61\x65\xd1\x66\xd8"
26787 "\xe2\x0e\xc3\xa3\xff\x0d\xd3\xee"
26788 "\xdf\xcc\x3e\x01\xf5\x9b\x45\x5c"
26789 "\x33\xb5\xb0\x8d\x36\x1a\xdf\xf8"
26790 "\xa3\x81\xbe\xdb\x3d\x4b\xf6\xc6"
26791 "\xdf\x7f\xb0\x89\xbd\x39\x32\x50"
26792 "\xbb\xb2\xe3\x5c\xbb\x4b\x18\x98"
26793 "\x08\x66\x51\xe7\x4d\xfb\xfc\x4e"
26794 "\x22\x42\x6f\x61\xdb\x7f\x27\x88"
26795 "\x29\x3f\x02\xa9\xc6\x83\x30\xcc"
26796 "\x8b\xd5\x64\x7b\x7c\x76\x16\xbe"
26797 "\xb6\x8b\x26\xb8\x83\x16\xf2\x6b"
26798 "\xd1\xdc\x20\x6b\x42\x5a\xef\x7a"
26799 "\xa9\x60\xb8\x1a\xd3\x0d\x4e\xcb"
26800 "\x75\x6b\xc5\x80\x43\x38\x7f\xad"
26801 "\x9c\x56\xd9\xc4\xf1\x01\x74\xf0"
26802 "\x16\x53\x8d\x69\xbe\xf2\x5d\x92"
26803 "\x34\x38\xc8\x84\xf9\x1a\xfc\x26"
26804 "\x16\xcb\xae\x7d\x38\x21\x67\x74"
26805 "\x4c\x40\xaa\x6b\x97\xe0\xb0\x2f"
26806 "\xf5\x3e\xf6\xe2\x24\xc8\x22\xa4"
26807 "\xa8\x88\x27\x86\x44\x75\x5b\x29"
26808 "\x34\x08\x4b\xa1\xfe\x0c\x26\xe5"
26809 "\xac\x26\xf6\x21\x0c\xfb\xde\x14"
26810 "\xfe\xd7\xbe\xee\x48\x93\xd6\x99"
26811 "\x56\x9c\xcf\x22\xad\xa2\x53\x41"
26812 "\xfd\x58\xa1\x68\xdc\xc4\xef\x20"
26813 "\xa1\xee\xcf\x2b\x43\xb6\x57\xd8"
26814 "\xfe\x01\x80\x25\xdf\xd2\x35\x44"
26815 "\x0d\x15\x15\xc3\xfc\x49\xbf\xd0"
26816 "\xbf\x2f\x95\x81\x09\xa6\xb6\xd7"
26817 "\x21\x03\xfe\x52\xb7\xa8\x32\x4d"
26818 "\x75\x1e\x46\x44\xbc\x2b\x61\x04"
26819 "\x1b\x1c\xeb\x39\x86\x8f\xe9\x49"
26820 "\xce\x78\xa5\x5e\x67\xc5\xe9\xef"
26821 "\x43\xf8\xf1\x35\x22\x43\x61\xc1"
26822 "\x27\xb5\x09\xb2\xb8\xe1\x5e\x26"
26823 "\xcc\xf3\x6f\xb2\xb7\x55\x30\x98"
26824 "\x87\xfc\xe7\xa8\xc8\x94\x86\xa1"
26825 "\xd9\xa0\x3c\x74\x16\xb3\x25\x98"
26826 "\xba\xc6\x84\x4a\x27\xa6\x58\xfe"
26827 "\xe1\x68\x04\x30\xc8\xdb\x44\x52"
26828 "\x4e\xb2\xa4\x6f\xf7\x63\xf2\xd6"
26829 "\x63\x36\x17\x04\xf8\x06\xdb\xeb"
26830 "\x99\x17\xa5\x1b\x61\x90\xa3\x9f"
26831 "\x05\xae\x3e\xe4\xdb\xc8\x1c\x8e"
26832 "\x77\x27\x88\xdf\xd3\x22\x5a\xc5"
26833 "\x9c\xd6\x22\xf8\xc4\xd8\x92\x9d"
26834 "\x16\xcc\x54\x25\x3b\x6f\xdb\xc0"
26835 "\x78\xd8\xe3\xb3\x03\x69\xd7\x5d"
26836 "\xf8\x08\x04\x63\x61\x9d\x76\xf9"
26837 "\xad\x1d\xc4\x30\x9f\x75\x89\x6b"
26838 "\xfb\x62\xba\xae\xcb\x1b\x6c\xe5"
26839 "\x7e\xea\x58\x6b\xae\xce\x9b\x48"
26840 "\x4b\x80\xd4\x5e\x71\x53\xa7\x24"
26841 "\x73\xca\xf5\x3e\xbb\x5e\xd3\x1c"
26842 "\x33\xe3\xec\x5b\xa0\x32\x9d\x25"
26843 "\x0e\x0c\x28\x29\x39\x51\xc5\x70"
26844 "\xec\x60\x8f\x77\xfc\x06\x7a\x33"
26845 "\x19\xd5\x7a\x6e\x94\xea\xa3\xeb"
26846 "\x13\xa4\x2e\x09\xd8\x81\x65\x83"
26847 "\x03\x63\x8b\xb5\xc9\x89\x98\x73"
26848 "\x69\x53\x8e\xab\xf1\xd2\x2f\x67"
26849 "\xbd\xa6\x16\x6e\xd0\x8b\xc1\x25"
26850 "\x93\xd2\x50\x7c\x1f\xe1\x11\xd0"
26851 "\x58\x0d\x2f\x72\xe7\x5e\xdb\xa2"
26852 "\x55\x9a\xe0\x09\x21\xac\x61\x85"
26853 "\x4b\x20\x95\x73\x63\x26\xe3\x83"
26854 "\x4b\x5b\x40\x03\x14\xb0\x44\x16"
26855 "\xbd\xe0\x0e\xb7\x66\x56\xd7\x30"
26856 "\xb3\xfd\x8a\xd3\xda\x6a\xa7\x3d"
26857 "\x98\x09\x11\xb7\x00\x06\x24\x5a"
26858 "\xf7\x42\x94\xa6\x0e\xb1\x6d\x48"
26859 "\x74\xb1\xa7\xe6\x92\x0a\x15\x9a"
26860 "\xf5\xfa\x55\x1a\x6c\xdd\x71\x08"
26861 "\xd0\xf7\x8d\x0e\x7c\x67\x4d\xc6"
26862 "\xe6\xde\x78\x88\x88\x3c\x5e\x23"
26863 "\x46\xd2\x25\xa4\xfb\xa3\x26\x3f"
26864 "\x2b\xfd\x9c\x20\xda\x72\xe1\x81"
26865 "\x8f\xe6\xae\x08\x1d\x67\x15\xde"
26866 "\x86\x69\x1d\xc6\x1e\x6d\xb7\x5c"
26867 "\xdd\x43\x72\x5a\x7d\xa7\xd8\xd7"
26868 "\x1e\x66\xc5\x90\xf6\x51\x76\x91"
26869 "\xb3\xe3\x39\x81\x75\x08\xfa\xc5"
26870 "\x06\x70\x69\x1b\x2c\x20\x74\xe0"
26871 "\x53\xb0\x0c\x9d\xda\xa9\x5b\xdd"
26872 "\x1c\x38\x6c\x9e\x3b\xc4\x7a\x82"
26873 "\x93\x9e\xbb\x75\xfb\x19\x4a\x55"
26874 "\x65\x7a\x3c\xda\xcb\x66\x5c\x13"
26875 "\x17\x97\xe8\xbd\xae\x24\xd9\x76"
26876 "\xfb\x8c\x73\xde\xbd\xb4\x1b\xe0"
26877 "\xb9\x2c\xe8\xe0\x1d\x3f\xa8\x2c"
26878 "\x1e\x81\x5b\x77\xe7\xdf\x6d\x06"
26879 "\x7c\x9a\xf0\x2b\x5d\xfc\x86\xd5"
26880 "\xb1\xad\xbc\xa8\x73\x48\x61\x67"
26881 "\xd6\xba\xc8\xe8\xe2\xb8\xee\x40"
26882 "\x36\x22\x3e\x61\xf6\xc8\x16\xe4"
26883 "\x0e\x88\xad\x71\x53\x58\xe1\x6c"
26884 "\x8f\x4f\x89\x4b\x3e\x9c\x7f\xe9"
26885 "\xad\xc2\x28\xc2\x3a\x29\xf3\xec"
26886 "\xa9\x28\x39\xba\xc2\x86\xe1\x06"
26887 "\xf3\x8b\xe3\x95\x0c\x87\xb8\x1b"
26888 "\x72\x35\x8e\x8f\x6d\x18\xc8\x1c"
26889 "\xa5\x5d\x57\x9d\x73\x8a\xbb\x9e"
26890 "\x21\x05\x12\xd7\xe0\x21\x1c\x16"
26891 "\x3a\x95\x85\xbc\xb0\x71\x0b\x36"
26892 "\x6c\x44\x8d\xef\x3b\xec\x3f\x8e"
26893 "\x24\xa9\xe3\xa7\x63\x23\xca\x09"
26894 "\x62\x96\x79\x0c\x81\x05\x41\xf2"
26895 "\x07\x20\x26\xe5\x8e\x10\x54\x03"
26896 "\x05\x7b\xfe\x0c\xcc\x8c\x50\xe5"
26897 "\xca\x33\x4d\x48\x7a\x03\xd5\x64"
26898 "\x49\x09\xf2\x5c\x5d\xfe\x2b\x30"
26899 "\xbf\x29\x14\x29\x8b\x9b\x7c\x96"
26900 "\x47\x07\x86\x4d\x4e\x4d\xf1\x47"
26901 "\xd1\x10\x2a\xa8\xd3\x15\x8c\xf2"
26902 "\x2f\xf4\x3a\xdf\xd0\xa7\xcb\x5a"
26903 "\xad\x99\x39\x4a\xdf\x60\xbe\xf9"
26904 "\x91\x4e\xf5\x94\xef\xc5\x56\x32"
26905 "\x33\x86\x78\xa3\xd6\x4c\x29\x7c"
26906 "\xe8\xac\x06\xb5\xf5\x01\x5c\x9f"
26907 "\x02\xc8\xe8\xbf\x5c\x1a\x7f\x4d"
26908 "\x28\xa5\xb9\xda\xa9\x5e\xe7\x4b"
26909 "\xf4\x3d\xe9\x1d\x28\xaa\x1a\x8a"
26910 "\x76\xc8\x6c\x19\x61\x3c\x9e\x29"
26911 "\xcd\xbe\xff\xe0\x1c\xb8\x67\xb5"
26912 "\xa4\x46\xf8\xb9\x8a\xa2\xf6\x7c"
26913 "\xef\x23\x73\x0c\xe9\x72\x0a\x0d"
26914 "\x9b\x40\xd8\xfb\x0c\x9c\xab\xa8",
26915 .ctext = "\xcb\x78\x87\x9c\xc7\x13\xc1\x30"
26916 "\xdd\x2c\x7d\xb2\x97\xab\x06\x69"
26917 "\x47\x87\x8a\x12\x2b\x5d\x86\xd7"
26918 "\x2e\xe6\x7a\x0d\x58\x5d\xe7\x01"
26919 "\x78\x0e\xff\xc7\xc5\xd2\x94\xd6"
26920 "\xdd\x6b\x38\x1f\xa4\xe3\x3d\xe7"
26921 "\xc5\x8a\xb5\xbe\x65\x11\x2b\xe1"
26922 "\x2b\x8e\x84\xe8\xe0\x00\x7f\xdd"
26923 "\x15\x15\xab\xbd\x22\x94\xf7\xce"
26924 "\x99\x6f\xfd\x0e\x9b\x16\xeb\xeb"
26925 "\x24\xc7\xbb\xc6\xe1\x6c\x57\xba"
26926 "\x84\xab\x16\xf2\x57\xd6\x42\x9d"
26927 "\x56\x92\x5b\x44\x18\xd4\xa2\x1b"
26928 "\x1e\xa9\xdc\x7a\x16\x88\xc4\x4f"
26929 "\x6d\x77\x9a\x2e\x82\xa9\xc3\xee"
26930 "\xa4\xca\x05\x1b\x0e\xdc\x48\x96"
26931 "\xd0\x50\x21\x1f\x46\xc7\xc7\x70"
26932 "\x53\xcd\x1e\x4e\x5f\x2d\x4b\xb2"
26933 "\x86\xe5\x3a\xe6\x1d\xec\x7b\x9d"
26934 "\x8f\xd6\x41\xc6\xbb\x00\x4f\xe6"
26935 "\x02\x47\x07\x73\x50\x6b\xcf\xb2"
26936 "\x9e\x1c\x01\xc9\x09\xcc\xc3\x52"
26937 "\x27\xe6\x63\xe0\x5b\x55\x60\x4d"
26938 "\x72\xd0\xda\x4b\xec\xcb\x72\x5d"
26939 "\x37\x4a\xf5\xb8\xd9\xe2\x08\x10"
26940 "\xf3\xb9\xdc\x07\xc0\x02\x10\x14"
26941 "\x9f\xe6\x8f\xc4\xc4\xe1\x39\x7b"
26942 "\x47\xea\xae\x7c\xdd\x27\xa8\x4c"
26943 "\x6b\x0f\x4c\xf8\xff\x16\x4e\xcb"
26944 "\xec\x88\x33\x0d\x15\x10\x82\x66"
26945 "\xa7\x3d\x2c\xb6\xbc\x2e\xe4\xce"
26946 "\x4c\x2f\x4b\x46\x0f\x67\x78\xa5"
26947 "\xff\x6a\x7d\x0d\x5e\x6d\xab\xfb"
26948 "\x59\x99\xd8\x1f\x30\xd4\x33\xe8"
26949 "\x7d\x11\xae\xe3\xba\xd0\x3f\xa7"
26950 "\xa5\x5e\x43\xda\xf3\x0f\x3a\x5f"
26951 "\xba\xb0\x47\xb2\x08\x60\xf4\xed"
26952 "\x35\x23\x0c\xe9\x4f\x81\xc4\xc5"
26953 "\xa8\x35\xdc\x99\x52\x33\x19\xd4"
26954 "\x00\x01\x8d\x5a\x10\x82\x39\x78"
26955 "\xfc\x72\x24\x63\x4a\x38\xc5\x6f"
26956 "\xfe\xec\x2f\x26\x0c\x3c\x1c\xf6"
26957 "\x4d\x99\x7a\x77\x59\xfe\x10\xa5"
26958 "\xa1\x35\xbf\x2f\x15\xfa\x4e\x52"
26959 "\xe6\xd5\x1c\x88\x90\x75\xd5\xcc"
26960 "\xdb\x2a\xb1\xf0\x70\x54\x89\xc7"
26961 "\xeb\x1d\x6e\x61\x45\xa3\x50\x48"
26962 "\xcd\xdb\x32\xba\x7f\x6b\xaf\xef"
26963 "\x50\xcb\x0d\x36\xf7\x29\x3a\x10"
26964 "\x02\x73\xca\x8f\x3f\x5d\x82\x17"
26965 "\x91\x9a\xd8\x15\x15\xe3\xe1\x41"
26966 "\x43\xef\x85\xa6\xb0\xc7\x3b\x0f"
26967 "\xf0\xa5\xaa\x66\x77\x70\x5e\x70"
26968 "\xce\x17\x84\x68\x45\x39\x2c\x25"
26969 "\xc6\xc1\x5f\x7e\xe8\xfa\xe4\x3a"
26970 "\x47\x51\x7b\x9d\x54\x84\x98\x04"
26971 "\x5f\xf7\x5f\x3c\x34\xe7\xa3\x1d"
26972 "\xea\xb7\x6d\x05\xab\x28\xe4\x2c"
26973 "\xb1\x7f\x08\xa8\x5d\x07\xbf\xfe"
26974 "\x39\x72\x44\x87\x51\xc5\x73\xe4"
26975 "\x9a\x5f\xdd\x46\xbc\x4e\xb1\x39"
26976 "\xe4\x78\xb8\xbf\xdc\x5b\x88\x9b"
26977 "\xc1\x3f\xd9\xd0\xb3\x5a\xdf\xaa"
26978 "\x53\x6a\x91\x6d\x2a\x09\xf0\x0b"
26979 "\x5e\xe8\xb2\xa0\xb4\x73\x07\x1d"
26980 "\xc8\x33\x84\xe6\xda\xe6\xad\xd6"
26981 "\xad\x91\x01\x4e\x14\x42\x34\x2c"
26982 "\xe5\xf9\x99\x21\x56\x1f\x6c\x2b"
26983 "\x4c\xe3\xd5\x9e\x04\xdc\x9a\x16"
26984 "\xd1\x54\xe9\xc2\xf7\xc0\xd5\x06"
26985 "\x2f\xa1\x38\x2a\x55\x88\x23\xf8"
26986 "\xb0\xdb\x87\x32\xc9\x4e\xb0\x0c"
26987 "\xc5\x05\x78\x58\xa1\x2e\x75\x75"
26988 "\x68\xdc\xea\xdd\x0c\x33\x16\x5e"
26989 "\xe7\xdc\xfd\x42\x74\xbe\xae\x60"
26990 "\x3c\x37\x4b\x27\xf5\x2c\x5f\x55"
26991 "\x4a\x0b\x64\xfd\xa2\x01\x65\x9c"
26992 "\x27\x9f\x5e\x87\xd5\x95\x88\x66"
26993 "\x09\x84\x42\xab\x00\xe2\x58\xc3"
26994 "\x97\x45\xf1\x93\xe2\x34\x37\x3d"
26995 "\xfe\x93\x8c\x17\xb9\x79\x65\x06"
26996 "\xf7\x58\xe5\x1b\x3b\x4e\xda\x36"
26997 "\x17\xe3\x56\xec\x26\x0f\x2e\xfa"
26998 "\xd1\xb9\x2b\x3e\x7f\x1d\xe3\x4b"
26999 "\x67\xdf\x43\x53\x10\xba\xa3\xfb"
27000 "\x5d\x5a\xd8\xc4\xab\x19\x7e\x12"
27001 "\xaa\x83\xf1\xc0\xa1\xe0\xbf\x72"
27002 "\x5f\xe8\x68\x39\xef\x1a\xbe\xee"
27003 "\x6f\x47\x79\x19\xed\xf2\xa1\x4a"
27004 "\xe5\xfc\xb5\x58\xae\x63\x82\xcb"
27005 "\x16\x0b\x94\xbb\x3e\x02\x49\xc4"
27006 "\x3c\x33\xf1\xec\x1b\x11\x71\x9b"
27007 "\x5b\x80\xf1\x6f\x88\x1c\x05\x36"
27008 "\xa8\xd8\xee\x44\xb5\x18\xc3\x14"
27009 "\x62\xba\x98\xb9\xc0\x2a\x70\x93"
27010 "\xb3\xd8\x11\x69\x95\x1d\x43\x7b"
27011 "\x39\xc1\x91\x05\xc4\xe3\x1e\xc2"
27012 "\x1e\x5d\xe7\xde\xbe\xfd\xae\x99"
27013 "\x4b\x8f\x83\x1e\xf4\x9b\xb0\x2b"
27014 "\x66\x6e\x62\x24\x8d\xe0\x1b\x22"
27015 "\x59\xeb\xbd\x2a\x6b\x2e\x37\x17"
27016 "\x9e\x1f\x66\xcb\x66\xb4\xfb\x2c"
27017 "\x36\x22\x5d\x73\x56\xc1\xb0\x27"
27018 "\xe0\xf0\x1b\xe4\x47\x8b\xc6\xdc"
27019 "\x7c\x0c\x3d\x29\xcb\x33\x10\xfe"
27020 "\xc3\xc3\x1e\xff\x4c\x9b\x27\x86"
27021 "\xe2\xb0\xaf\xb7\x89\xce\x61\x69"
27022 "\xe7\x00\x3e\x92\xea\x5f\x9e\xc1"
27023 "\xfa\x6b\x20\xe2\x41\x23\x82\xeb"
27024 "\x07\x76\x4c\x4c\x2a\x96\x33\xbe"
27025 "\x89\xa9\xa8\xb9\x9a\x7d\x27\x18"
27026 "\x48\x23\x70\x46\xf3\x87\xa7\x91"
27027 "\x58\xb8\x74\xba\xed\xc6\xb2\xa1"
27028 "\x4d\xb6\x43\x9a\xe1\xa2\x41\xa5"
27029 "\x35\xd3\x90\x8a\xc7\x4d\xb7\x88"
27030 "\x0b\xe3\x74\x9f\x84\xfc\xd9\x73"
27031 "\xf2\x86\x0c\xad\xeb\x5d\x70\xac"
27032 "\x65\x07\x14\x8e\x57\xf6\xdc\xb4"
27033 "\xc2\x02\x7c\xd6\x89\xe2\x8a\x3e"
27034 "\x8e\x08\x3c\x12\x37\xaf\xe1\xa8"
27035 "\x04\x11\x5c\xae\x5a\x2b\x60\xa0"
27036 "\x03\x3c\x7a\xa2\x38\x92\xbe\xce"
27037 "\x09\xa2\x5e\x0f\xc2\xb2\xb5\x06"
27038 "\xc2\x97\x97\x9b\x09\x2f\x04\xfe"
27039 "\x2c\xe7\xa3\xc4\x42\xe9\xa3\x40"
27040 "\xa5\x52\x07\x2c\x3b\x89\x1a\xa5"
27041 "\x28\xb1\x93\x05\x98\x0c\x2f\x3d"
27042 "\xc6\xf5\x83\xac\x24\x1d\x28\x9f"
27043 "\x32\x66\x4d\x70\xb7\xe0\xab\xb8"
27044 "\x75\xc5\xf3\xd2\x7b\x26\x3e\xec"
27045 "\x64\xe6\xf7\x70\xe7\xf8\x10\x8e"
27046 "\x67\xd2\xb3\x87\x69\x40\x06\x9a"
27047 "\x2f\x6a\x1a\xfd\x62\x0c\xee\x31"
27048 "\x2e\xbe\x58\x97\x77\xd1\x09\x08"
27049 "\x1f\x8d\x42\x29\x34\xd5\xd8\xb5"
27050 "\x1f\xd7\x21\x18\xe3\xe7\x2e\x4a"
27051 "\x42\xfc\xdb\x19\xe9\xee\xb9\x22"
27052 "\xad\x5c\x07\xe9\xc8\x07\xe5\xe9"
27053 "\x95\xa2\x0d\x30\x46\xe2\x65\x51"
27054 "\x01\xa5\x74\x85\xe2\x52\x6e\x07"
27055 "\xc9\xf5\x33\x09\xde\x78\x62\xa9"
27056 "\x30\x2a\xd3\x86\xe5\x46\x2e\x60"
27057 "\xff\x74\xb0\x5f\xec\x76\xb7\xd1"
27058 "\x5e\x4d\x61\x97\x3c\x9c\x99\xc3"
27059 "\x41\x65\x21\x47\xf9\xb1\x06\xec"
27060 "\x18\xf8\x3f\xc7\x38\xfa\x7b\x14"
27061 "\x62\x79\x6a\x0b\x0c\xf5\x2c\xb7"
27062 "\xab\xcf\x63\x49\x6d\x1f\x46\xa8"
27063 "\xbc\x7d\x42\x53\x75\x6b\xca\x38"
27064 "\xac\x8b\xe7\xa1\xa1\x92\x19\x6b"
27065 "\x0d\x75\x80\x5b\x7d\x35\x86\x70"
27066 "\x12\x6b\xe5\x3e\xe5\x85\xa0\xa4"
27067 "\xd6\x77\x5e\x4d\x24\x57\x84\xa9"
27068 "\xe5\xa4\xbf\x25\xfb\x36\x65\x3b"
27069 "\x81\x39\x61\xec\x5e\x4a\x7e\x10"
27070 "\x58\x19\x13\x5c\x0f\x79\xec\xcf"
27071 "\xbb\x5f\x69\x21\xc3\xa7\x5a\xff"
27072 "\x3b\xc7\x85\x9b\x47\xbc\x3e\xad"
27073 "\xbf\x54\x60\xb6\x5b\x3f\xfc\x50"
27074 "\x68\x83\x76\x24\xb0\xc3\x3f\x93"
27075 "\x0d\xce\x36\x0a\x58\x9d\xcc\xe9"
27076 "\x52\xbb\xd0\x0b\x65\xe5\x0f\x62"
27077 "\x82\x16\xaa\xd2\xba\x5a\x4c\xd0"
27078 "\x67\xb5\x4e\x84\x1c\x02\x6e\xa3"
27079 "\xaa\x22\x54\x96\xc8\xd9\x9c\x58"
27080 "\x15\x63\xf4\x98\x1a\xa1\xd9\x11"
27081 "\x64\x25\x56\xb5\x03\x8e\x29\x85"
27082 "\x75\x88\xd1\xd2\xe4\xe6\x27\x48"
27083 "\x13\x9c\x2b\xaa\xfb\xd3\x6e\x2c"
27084 "\xe6\xd4\xe4\x8b\xd9\xf7\x01\x16"
27085 "\x46\xf9\x5c\x88\x7a\x93\x9e\x2d"
27086 "\xa6\xeb\x01\x2a\x72\xe4\x7f\xb4"
27087 "\x78\x0c\x50\x18\xd3\x8e\x65\xa7"
27088 "\x1b\xf9\x28\x5d\x89\x70\x96\x2f"
27089 "\xa1\xc2\x9b\x34\xfc\x7c\x27\x63"
27090 "\x93\xe6\xe3\xa4\x9d\x17\x97\x7e"
27091 "\x13\x79\x9c\x4b\x2c\x23\x91\x2c"
27092 "\x4f\xb1\x1d\x4b\xb4\x61\x6e\xe8"
27093 "\x32\x35\xc3\x41\x7a\x50\x60\xc8"
27094 "\x3e\xd8\x3f\x38\xfc\xc2\xa2\xe0"
27095 "\x3a\x21\x25\x8f\xc2\x22\xed\x04"
27096 "\x31\xb8\x72\x69\xaf\x6c\x6d\xab"
27097 "\x25\x16\x95\x87\x92\xc7\x46\x3f"
27098 "\x47\x05\x6c\xad\xa0\xa6\x1d\xf0"
27099 "\x66\x2e\x01\x1a\xc3\xbe\xe4\xf6"
27100 "\x51\xec\xa3\x95\x81\xe1\xcc\xab"
27101 "\xc1\x71\x65\x0a\xe6\x53\xfb\xb8"
27102 "\x53\x69\xad\x8b\xab\x8b\xa7\xcd"
27103 "\x8f\x15\x01\x25\xb1\x1f\x9c\x3b"
27104 "\x9b\x47\xad\x38\x38\x89\x6b\x1c"
27105 "\x8a\x33\xdd\x8a\x06\x23\x06\x0b"
27106 "\x7f\x70\xbe\x7e\xa1\x80\xbc\x7a",
27107 .len = 1536,
27108 }, {
27109 .key = "\x60\xd5\x36\xb0\x8e\x5d\x0e\x5f"
27110 "\x70\x47\x8c\xea\x87\x30\x1d\x58"
27111 "\x2a\xb2\xe8\xc6\xcb\x60\xe7\x6f"
27112 "\x56\x95\x83\x98\x38\x80\x84\x8a",
27113 .klen = 32,
27114 .iv = "\x43\xfe\x63\x3c\xdc\x9e\x0c\xa6"
27115 "\xee\x9c\x0b\x97\x65\xc2\x56\x1d"
27116 "\x5d\xd0\xbf\xa3\x9f\x1e\xfb\x78"
27117 "\xbf\x51\x1b\x18\x73\x27\x27\x8c",
27118 .ptext = "\x0b\x77\xd8\xa3\x8c\xa6\xb2\x2d"
27119 "\x3e\xdd\xcc\x7c\x4a\x3e\x61\xc4"
27120 "\x9a\x7f\x73\xb0\xb3\x29\x32\x61"
27121 "\x13\x25\x62\xcc\x59\x4c\xf4\xdb"
27122 "\xd7\xf5\xf4\xac\x75\x51\xb2\x83"
27123 "\x64\x9d\x1c\x8b\xd1\x8b\x0c\x06"
27124 "\xf1\x9f\xba\x9d\xae\x62\xd4\xd8"
27125 "\x96\xbe\x3c\x4c\x32\xe4\x82\x44"
27126 "\x47\x5a\xec\xb8\x8a\x5b\xd5\x35"
27127 "\x57\x1e\x5c\x80\x6f\x77\xa9\xb9"
27128 "\xf2\x4f\x71\x1e\x48\x51\x86\x43"
27129 "\x0d\xd5\x5b\x52\x30\x40\xcd\xbb"
27130 "\x2c\x25\xc1\x47\x8b\xb7\x13\xc2"
27131 "\x3a\x11\x40\xfc\xed\x45\xa4\xf0"
27132 "\xd6\xfd\x32\x99\x13\x71\x47\x2e"
27133 "\x4c\xb0\x81\xac\x95\x31\xd6\x23"
27134 "\xa4\x2f\xa9\xe8\x5a\x62\xdc\x96"
27135 "\xcf\x49\xa7\x17\x77\x76\x8a\x8c"
27136 "\x04\x22\xaf\xaf\x6d\xd9\x16\xba"
27137 "\x35\x21\x66\x78\x3d\xb6\x65\x83"
27138 "\xc6\xc1\x67\x8c\x32\xd6\xc0\xc7"
27139 "\xf5\x8a\xfc\x47\xd5\x87\x09\x2f"
27140 "\x51\x9d\x57\x6c\x29\x0b\x1c\x32"
27141 "\x47\x6e\x47\xb5\xf3\x81\xc8\x82"
27142 "\xca\x5d\xe3\x61\x38\xa0\xdc\xcc"
27143 "\x35\x73\xfd\xb3\x92\x5c\x72\xd2"
27144 "\x2d\xad\xf6\xcd\x20\x36\xff\x49"
27145 "\x48\x80\x21\xd3\x2f\x5f\xe9\xd8"
27146 "\x91\x20\x6b\xb1\x38\x52\x1e\xbc"
27147 "\x88\x48\xa1\xde\xc0\xa5\x46\xce"
27148 "\x9f\x32\x29\xbc\x2b\x51\x0b\xae"
27149 "\x7a\x44\x4e\xed\xeb\x95\x63\x99"
27150 "\x96\x87\xc9\x34\x02\x26\xde\x20"
27151 "\xe4\xcb\x59\x0c\xb5\x55\xbd\x55"
27152 "\x3f\xa9\x15\x25\xa7\x5f\xab\x10"
27153 "\xbe\x9a\x59\x6c\xd5\x27\xf3\xf0"
27154 "\x73\x4a\xb3\xe4\x08\x11\x00\xeb"
27155 "\xf1\xae\xc8\x0d\xef\xcd\xb5\xfc"
27156 "\x0d\x7e\x03\x67\xad\x0d\xec\xf1"
27157 "\x9a\xfd\x31\x60\x3e\xa2\xfa\x1c"
27158 "\x93\x79\x31\x31\xd6\x66\x7a\xbd"
27159 "\x85\xfd\x22\x08\x00\xae\x72\x10"
27160 "\xd6\xb0\xf4\xb8\x4a\x72\x5b\x9c"
27161 "\xbf\x84\xdd\xeb\x13\x05\x28\xb7"
27162 "\x61\x60\xfd\x7f\xf0\xbe\x4d\x18"
27163 "\x7d\xc9\xba\xb0\x01\x59\x74\x18"
27164 "\xe4\xf6\xa6\x74\x5d\x3f\xdc\xa0"
27165 "\x9e\x57\x93\xbf\x16\x6c\xf6\xbd"
27166 "\x93\x45\x38\x95\xb9\x69\xe9\x62"
27167 "\x21\x73\xbd\x81\x73\xac\x15\x74"
27168 "\x9e\x68\x28\x91\x38\xb7\xd4\x47"
27169 "\xc7\xab\xc9\x14\xad\x52\xe0\x4c"
27170 "\x17\x1c\x42\xc1\xb4\x9f\xac\xcc"
27171 "\xc8\x12\xea\xa9\x9e\x30\x21\x14"
27172 "\xa8\x74\xb4\x74\xec\x8d\x40\x06"
27173 "\x82\xb7\x92\xd7\x42\x5b\xf2\xf9"
27174 "\x6a\x1e\x75\x6e\x44\x55\xc2\x8d"
27175 "\x73\x5b\xb8\x8c\x3c\xef\x97\xde"
27176 "\x24\x43\xb3\x0e\xba\xad\x63\x63"
27177 "\x16\x0a\x77\x03\x48\xcf\x02\x8d"
27178 "\x76\x83\xa3\xba\x73\xbe\x80\x3f"
27179 "\x8f\x6e\x76\x24\xc1\xff\x2d\xb4"
27180 "\x20\x06\x9b\x67\xea\x29\xb5\xe0"
27181 "\x57\xda\x30\x9d\x38\xa2\x7d\x1e"
27182 "\x8f\xb9\xa8\x17\x64\xea\xbe\x04"
27183 "\x84\xd1\xce\x2b\xfd\x84\xf9\x26"
27184 "\x1f\x26\x06\x5c\x77\x6d\xc5\x9d"
27185 "\xe6\x37\x76\x60\x7d\x3e\xf9\x02"
27186 "\xba\xa6\xf3\x7f\xd3\x95\xb4\x0e"
27187 "\x52\x1c\x6a\x00\x8f\x3a\x0b\xce"
27188 "\x30\x98\xb2\x63\x2f\xff\x2d\x3b"
27189 "\x3a\x06\x65\xaf\xf4\x2c\xef\xbb"
27190 "\x88\xff\x2d\x4c\xa9\xf4\xff\x69"
27191 "\x9d\x46\xae\x67\x00\x3b\x40\x94"
27192 "\xe9\x7a\xf7\x0b\xb7\x3c\xa2\x2f"
27193 "\xc3\xde\x5e\x29\x01\xde\xca\xfa"
27194 "\xc6\xda\xd7\x19\xc7\xde\x4a\x16"
27195 "\x93\x6a\xb3\x9b\x47\xe9\xd2\xfc"
27196 "\xa1\xc3\x95\x9c\x0b\xa0\x2b\xd4"
27197 "\xd3\x1e\xd7\x21\x96\xf9\x1e\xf4"
27198 "\x59\xf4\xdf\x00\xf3\x37\x72\x7e"
27199 "\xd8\xfd\x49\xd4\xcd\x61\x7b\x22"
27200 "\x99\x56\x94\xff\x96\xcd\x9b\xb2"
27201 "\x76\xca\x9f\x56\xae\x04\x2e\x75"
27202 "\x89\x4e\x1b\x60\x52\xeb\x84\xf4"
27203 "\xd1\x33\xd2\x6c\x09\xb1\x1c\x43"
27204 "\x08\x67\x02\x01\xe3\x64\x82\xee"
27205 "\x36\xcd\xd0\x70\xf1\x93\xd5\x63"
27206 "\xef\x48\xc5\x56\xdb\x0a\x35\xfe"
27207 "\x85\x48\xb6\x97\x97\x02\x43\x1f"
27208 "\x7d\xc9\xa8\x2e\x71\x90\x04\x83"
27209 "\xe7\x46\xbd\x94\x52\xe3\xc5\xd1"
27210 "\xce\x6a\x2d\x6b\x86\x9a\xf5\x31"
27211 "\xcd\x07\x9c\xa2\xcd\x49\xf5\xec"
27212 "\x01\x3e\xdf\xd5\xdc\x15\x12\x9b"
27213 "\x0c\x99\x19\x7b\x2e\x83\xfb\xd8"
27214 "\x89\x3a\x1c\x1e\xb4\xdb\xeb\x23"
27215 "\xd9\x42\xae\x47\xfc\xda\x37\xe0"
27216 "\xd2\xb7\x47\xd9\xe8\xb5\xf6\x20"
27217 "\x42\x8a\x9d\xaf\xb9\x46\x80\xfd"
27218 "\xd4\x74\x6f\x38\x64\xf3\x8b\xed"
27219 "\x81\x94\x56\xe7\xf1\x1a\x64\x17"
27220 "\xd4\x27\x59\x09\xdf\x9b\x74\x05"
27221 "\x79\x6e\x13\x29\x2b\x9e\x1b\x86"
27222 "\x73\x9f\x40\xbe\x6e\xff\x92\x4e"
27223 "\xbf\xaa\xf4\xd0\x88\x8b\x6f\x73"
27224 "\x9d\x8b\xbf\xe5\x8a\x85\x45\x67"
27225 "\xd3\x13\x72\xc6\x2a\x63\x3d\xb1"
27226 "\x35\x7c\xb4\x38\xbb\x31\xe3\x77"
27227 "\x37\xad\x75\xa9\x6f\x84\x4e\x4f"
27228 "\xeb\x5b\x5d\x39\x6d\xed\x0a\xad"
27229 "\x6c\x1b\x8e\x1f\x57\xfa\xc7\x7c"
27230 "\xbf\xcf\xf2\xd1\x72\x3b\x70\x78"
27231 "\xee\x8e\xf3\x4f\xfd\x61\x30\x9f"
27232 "\x56\x05\x1d\x7d\x94\x9b\x5f\x8c"
27233 "\xa1\x0f\xeb\xc3\xa9\x9e\xb8\xa0"
27234 "\xc6\x4e\x1e\xb1\xbc\x0a\x87\xa8"
27235 "\x52\xa9\x1e\x3d\x58\x8e\xc6\x95"
27236 "\x85\x58\xa3\xc3\x3a\x43\x32\x50"
27237 "\x6c\xb3\x61\xe1\x0c\x7d\x02\x63"
27238 "\x5f\x8b\xdf\xef\x13\xf8\x66\xea"
27239 "\x89\x00\x1f\xbd\x5b\x4c\xd5\x67"
27240 "\x8f\x89\x84\x33\x2d\xd3\x70\x94"
27241 "\xde\x7b\xd4\xb0\xeb\x07\x96\x98"
27242 "\xc5\xc0\xbf\xc8\xcf\xdc\xc6\x5c"
27243 "\xd3\x7d\x78\x30\x0e\x14\xa0\x86"
27244 "\xd7\x8a\xb7\x53\xa3\xec\x71\xbf"
27245 "\x85\xf2\xea\xbd\x77\xa6\xd1\xfd"
27246 "\x5a\x53\x0c\xc3\xff\xf5\x1d\x46"
27247 "\x37\xb7\x2d\x88\x5c\xeb\x7a\x0c"
27248 "\x0d\x39\xc6\x40\x08\x90\x1f\x58"
27249 "\x36\x12\x35\x28\x64\x12\xe7\xbb"
27250 "\x50\xac\x45\x15\x7b\x16\x23\x5e"
27251 "\xd4\x11\x2a\x8e\x17\x47\xe1\xd0"
27252 "\x69\xc6\xd2\x5c\x2c\x76\xe6\xbb"
27253 "\xf7\xe7\x34\x61\x8e\x07\x36\xc8"
27254 "\xce\xcf\x3b\xeb\x0a\x55\xbd\x4e"
27255 "\x59\x95\xc9\x32\x5b\x79\x7a\x86"
27256 "\x03\x74\x4b\x10\x87\xb3\x60\xf6"
27257 "\x21\xa4\xa6\xa8\x9a\xc9\x3a\x6f"
27258 "\xd8\x13\xc9\x18\xd4\x38\x2b\xc2"
27259 "\xa5\x7e\x6a\x09\x0f\x06\xdf\x53"
27260 "\x9a\x44\xd9\x69\x2d\x39\x61\xb7"
27261 "\x1c\x36\x7f\x9e\xc6\x44\x9f\x42"
27262 "\x18\x0b\x99\xe6\x27\xa3\x1e\xa6"
27263 "\xd0\xb9\x9a\x2b\x6f\x60\x75\xbd"
27264 "\x52\x4a\x91\xd4\x7b\x8f\x95\x9f"
27265 "\xdd\x74\xed\x8b\x20\x00\xdd\x08"
27266 "\x6e\x5b\x61\x7b\x06\x6a\x19\x84"
27267 "\x1c\xf9\x86\x65\xcd\x1c\x73\x3f"
27268 "\x28\x5c\x8a\x93\x1a\xf3\xa3\x6c"
27269 "\x6c\xa9\x7c\xea\x3c\xd4\x15\x45"
27270 "\x7f\xbc\xe3\xbb\x42\xf0\x2e\x10"
27271 "\xcd\x0c\x8b\x44\x1a\x82\x83\x0c"
27272 "\x58\xb1\x24\x28\xa0\x11\x2f\x63"
27273 "\xa5\x82\xc5\x9f\x86\x42\xf4\x4d"
27274 "\x89\xdb\x76\x4a\xc3\x7f\xc4\xb8"
27275 "\xdd\x0d\x14\xde\xd2\x62\x02\xcb"
27276 "\x70\xb7\xee\xf4\x6a\x09\x12\x5e"
27277 "\xd1\x26\x1a\x2c\x20\x71\x31\xef"
27278 "\x7d\x65\x57\x65\x98\xff\x8b\x02"
27279 "\x9a\xb5\xa4\xa1\xaf\x03\xc4\x50"
27280 "\x33\xcf\x1b\x25\xfa\x7a\x79\xcc"
27281 "\x55\xe3\x21\x63\x0c\x6d\xeb\x5b"
27282 "\x1c\xad\x61\x0b\xbd\xb0\x48\xdb"
27283 "\xb3\xc8\xa0\x87\x7f\x8b\xac\xfd"
27284 "\xd2\x68\x9e\xb4\x11\x3c\x6f\xb1"
27285 "\xfe\x25\x7d\x84\x5a\xae\xc9\x31"
27286 "\xc3\xe5\x6a\x6f\xbc\xab\x41\xd9"
27287 "\xde\xce\xf9\xfa\xd5\x7c\x47\xd2"
27288 "\x66\x30\xc9\x97\xf2\x67\xdf\x59"
27289 "\xef\x4e\x11\xbc\x4e\x70\xe3\x46"
27290 "\x53\xbe\x16\x6d\x33\xfb\x57\x98"
27291 "\x4e\x34\x79\x3b\xc7\x3b\xaf\x94"
27292 "\xc1\x87\x4e\x47\x11\x1b\x22\x41"
27293 "\x99\x12\x61\xe0\xe0\x8c\xa9\xbd"
27294 "\x79\xb6\x06\x4d\x90\x3b\x0d\x30"
27295 "\x1a\x00\xaa\x0e\xed\x7c\x16\x2f"
27296 "\x0d\x1a\xfb\xf8\xad\x51\x4c\xab"
27297 "\x98\x4c\x80\xb6\x92\x03\xcb\xa9"
27298 "\x99\x9d\x16\xab\x43\x8c\x3f\x52"
27299 "\x96\x53\x63\x7e\xbb\xd2\x76\xb7"
27300 "\x6b\x77\xab\x52\x80\x33\xe3\xdf"
27301 "\x4b\x3c\x23\x1a\x33\xe1\x43\x40"
27302 "\x39\x1a\xe8\xbd\x3c\x6a\x77\x42"
27303 "\x88\x9f\xc6\xaa\x65\x28\xf2\x1e"
27304 "\xb0\x7c\x8e\x10\x41\x31\xe9\xd5"
27305 "\x9d\xfd\x28\x7f\xfb\x61\xd3\x39"
27306 "\x5f\x7e\xb4\xfb\x9c\x7d\x98\xb7"
27307 "\x37\x2f\x18\xd9\x3b\x83\xaf\x4e"
27308 "\xbb\xd5\x49\x69\x46\x93\x3a\x21"
27309 "\x46\x1d\xad\x84\xb5\xe7\x8c\xff"
27310 "\xbf\x81\x7e\x22\xf6\x88\x8c\x82"
27311 "\xf5\xde\xfe\x18\xc9\xfb\x58\x07"
27312 "\xe4\x68\xff\x9c\xf4\xe0\x24\x20"
27313 "\x90\x92\x01\x49\xc2\x38\xe1\x7c"
27314 "\xac\x61\x0b\x96\x36\xa4\x77\xe9"
27315 "\x29\xd4\x97\xae\x15\x13\x7c\x6c"
27316 "\x2d\xf1\xc5\x83\x97\x02\xa8\x2e"
27317 "\x0b\x0f\xaf\xb5\x42\x18\x8a\x8c"
27318 "\xb8\x28\x85\x28\x1b\x2a\x12\xa5"
27319 "\x4b\x0a\xaf\xd2\x72\x37\x66\x23"
27320 "\x28\xe6\x71\xa0\x77\x85\x7c\xff"
27321 "\xf3\x8d\x2f\x0c\x33\x30\xcd\x7f"
27322 "\x61\x64\x23\xb2\xe9\x79\x05\xb8"
27323 "\x61\x47\xb1\x2b\xda\xf7\x9a\x24"
27324 "\x94\xf6\xcf\x07\x78\xa2\x80\xaa"
27325 "\x6e\xe9\x58\x97\x19\x0c\x58\x73"
27326 "\xaf\xee\x2d\x6e\x26\x67\x18\x8a"
27327 "\xc6\x6d\xf6\xbc\x65\xa9\xcb\xe7"
27328 "\x53\xf1\x61\x97\x63\x52\x38\x86"
27329 "\x0e\xdd\x33\xa5\x30\xe9\x9f\x32"
27330 "\x43\x64\xbc\x2d\xdc\x28\x43\xd8"
27331 "\x6c\xcd\x00\x2c\x87\x9a\x33\x79"
27332 "\xbd\x63\x6d\x4d\xf9\x8a\x91\x83"
27333 "\x9a\xdb\xf7\x9a\x11\xe1\xd1\x93"
27334 "\x4a\x54\x0d\x51\x38\x30\x84\x0b"
27335 "\xc5\x29\x8d\x92\x18\x6c\x28\xfe"
27336 "\x1b\x07\x57\xec\x94\x74\x0b\x2c"
27337 "\x21\x01\xf6\x23\xf9\xb0\xa0\xaf"
27338 "\xb1\x3e\x2e\xa8\x0d\xbc\x2a\x68"
27339 "\x59\xde\x0b\x2d\xde\x74\x42\xa1"
27340 "\xb4\xce\xaf\xd8\x42\xeb\x59\xbd"
27341 "\x61\xcc\x27\x28\xc6\xf2\xde\x3e"
27342 "\x68\x64\x13\xd3\xc3\xc0\x31\xe0"
27343 "\x5d\xf9\xb4\xa1\x09\x20\x46\x8b"
27344 "\x48\xb9\x27\x62\x00\x12\xc5\x03"
27345 "\x28\xfd\x55\x27\x1c\x31\xfc\xdb"
27346 "\xc1\xcb\x7e\x67\x91\x2e\x50\x0c"
27347 "\x61\xf8\x9f\x31\x26\x5a\x3d\x2e"
27348 "\xa0\xc7\xef\x2a\xb6\x24\x48\xc9"
27349 "\xbb\x63\x99\xf4\x7c\x4e\xc5\x94"
27350 "\x99\xd5\xff\x34\x93\x8f\x31\x45"
27351 "\xae\x5e\x7b\xfd\xf4\x81\x84\x65"
27352 "\x5b\x41\x70\x0b\xe5\xaa\xec\x95"
27353 "\x6b\x3d\xe3\xdc\x12\x78\xf8\x28"
27354 "\x26\xec\x3a\x64\xc4\xab\x74\x97"
27355 "\x3d\xcf\x21\x7d\xcf\x59\xd3\x15"
27356 "\x47\x94\xe4\xd9\x48\x4c\x02\x49"
27357 "\x68\x50\x22\x16\x96\x2f\xc4\x23"
27358 "\x80\x47\x27\xd1\xee\x10\x3b\xa7"
27359 "\x19\xae\xe1\x40\x5f\x3a\xde\x5d"
27360 "\x97\x1c\x59\xce\xe1\xe7\x32\xa7"
27361 "\x20\x89\xef\x44\x22\x38\x3c\x14"
27362 "\x99\x3f\x1b\xd6\x37\xfe\x93\xbf"
27363 "\x34\x13\x86\xd7\x9b\xe5\x2a\x37"
27364 "\x72\x16\xa4\xdf\x7f\xe4\xa4\x66"
27365 "\x9d\xf2\x0b\x29\xa1\xe2\x9d\x36"
27366 "\xe1\x9d\x56\x95\x73\xe1\x91\x58"
27367 "\x0f\x64\xf8\x90\xbb\x0c\x48\x0f"
27368 "\xf5\x52\xae\xd9\xeb\x95\xb7\xdd"
27369 "\xae\x0b\x20\x55\x87\x3d\xf0\x69"
27370 "\x3c\x0a\x54\x61\xea\x00\xbd\xba"
27371 "\x5f\x7e\x25\x8c\x3e\x61\xee\xb2"
27372 "\x1a\xc8\x0e\x0b\xa5\x18\x49\xf2"
27373 "\x6e\x1d\x3f\x83\xc3\xf1\x1a\xcb"
27374 "\x9f\xc9\x82\x4e\x7b\x26\xfd\x68"
27375 "\x28\x25\x8d\x22\x17\xab\xf8\x4e"
27376 "\x1a\xa9\x81\x48\xb0\x9f\x52\x75"
27377 "\xe4\xef\xdd\xbd\x5b\xbe\xab\x3c"
27378 "\x43\x76\x23\x62\xce\xb8\xc2\x5b"
27379 "\xc6\x31\xe6\x81\xb4\x42\xb2\xfd"
27380 "\xf3\x74\xdd\x02\x3c\xa0\xd7\x97"
27381 "\xb0\xe7\xe9\xe0\xce\xef\xe9\x1c"
27382 "\x09\xa2\x6d\xd3\xc4\x60\xd6\xd6"
27383 "\x9e\x54\x31\x45\x76\xc9\x14\xd4"
27384 "\x95\x17\xe9\xbe\x69\x92\x71\xcb"
27385 "\xde\x7c\xf1\xbd\x2b\xef\x8d\xaf"
27386 "\x51\xe8\x28\xec\x48\x7f\xf8\xfa"
27387 "\x9f\x9f\x5e\x52\x61\xc3\xfc\x9a"
27388 "\x7e\xeb\xe3\x30\xb6\xfe\xc4\x4a"
27389 "\x87\x1a\xff\x54\x64\xc7\xaa\xa2"
27390 "\xfa\xb7\xb2\xe7\x25\xce\x95\xb4"
27391 "\x15\x93\xbd\x24\xb6\xbc\xe4\x62"
27392 "\x93\x7f\x44\x40\x72\xcb\xfb\xb2"
27393 "\xbf\xe8\x03\xa5\x87\x12\x27\xfd"
27394 "\xc6\x21\x8a\x8f\xc2\x48\x48\xb9"
27395 "\x6b\xb6\xf0\xf0\x0e\x0a\x0e\xa4"
27396 "\x40\xa9\xd8\x23\x24\xd0\x7f\xe2"
27397 "\xf9\xed\x76\xf0\x91\xa5\x83\x3c"
27398 "\x55\xe1\x92\xb8\xb6\x32\x9e\x63"
27399 "\x60\x81\x75\x29\x9e\xce\x2a\x70"
27400 "\x28\x0c\x87\xe5\x46\x73\x76\x66"
27401 "\xbc\x4b\x6c\x37\xc7\xd0\x1a\xa0"
27402 "\x9d\xcf\x04\xd3\x8c\x42\xae\x9d"
27403 "\x35\x5a\xf1\x40\x4c\x4e\x81\xaa"
27404 "\xfe\xd5\x83\x4f\x29\x19\xf3\x6c"
27405 "\x9e\xd0\x53\xe5\x05\x8f\x14\xfb"
27406 "\x68\xec\x0a\x3a\x85\xcd\x3e\xb4"
27407 "\x4a\xc2\x5b\x92\x2e\x0b\x58\x64"
27408 "\xde\xca\x64\x86\x53\xdb\x7f\x4e"
27409 "\x54\xc6\x5e\xaa\xe5\x82\x3b\x98"
27410 "\x5b\x01\xa7\x1f\x7b\x3d\xcc\x19"
27411 "\xf1\x11\x02\x64\x09\x25\x7c\x26"
27412 "\xee\xad\x50\x68\x31\x26\x16\x0f"
27413 "\xb6\x7b\x6f\xa2\x17\x1a\xba\xbe"
27414 "\xc3\x60\xdc\xd2\x44\xe0\xb4\xc4"
27415 "\xfe\xff\x69\xdb\x60\xa6\xaf\x39"
27416 "\x0a\xbd\x6e\x41\xd1\x9f\x87\x71"
27417 "\xcc\x43\xa8\x47\x10\xbc\x2b\x7d"
27418 "\x40\x12\x43\x31\xb8\x12\xe0\x95"
27419 "\x6f\x9d\xf8\x75\x51\x3d\x61\xbe"
27420 "\xa0\xd1\x0b\x8d\x50\xc7\xb8\xe7"
27421 "\xab\x03\xda\x41\xab\xc5\x4e\x33"
27422 "\x5a\x63\x94\x90\x22\x72\x54\x26"
27423 "\x93\x65\x99\x45\x55\xd3\x55\x56"
27424 "\xc5\x39\xe4\xb4\xb1\xea\xd8\xf9"
27425 "\xb5\x31\xf7\xeb\x80\x1a\x9e\x8d"
27426 "\xd2\x40\x01\xea\x33\xb9\xf2\x7a"
27427 "\x43\x41\x72\x0c\xbf\x20\xab\xf7"
27428 "\xfa\x65\xec\x3e\x35\x57\x1e\xef"
27429 "\x2a\x81\xfa\x10\xb2\xdb\x8e\xfa"
27430 "\x7f\xe7\xaf\x73\xfc\xbb\x57\xa2"
27431 "\xaf\x6f\x41\x11\x30\xd8\xaf\x94"
27432 "\x53\x8d\x4c\x23\xa5\x20\x63\xcf"
27433 "\x0d\x00\xe0\x94\x5e\x92\xaa\xb5"
27434 "\xe0\x4e\x96\x3c\xf4\x26\x2f\xf0"
27435 "\x3f\xd7\xed\x75\x2c\x63\xdf\xc8"
27436 "\xfb\x20\xb5\xae\x44\x83\xc0\xab"
27437 "\x05\xf9\xbb\xa7\x62\x7d\x21\x5b"
27438 "\x04\x80\x93\x84\x5f\x1d\x9e\xcd"
27439 "\xa2\x07\x7e\x22\x2f\x55\x94\x23"
27440 "\x74\x35\xa3\x0f\x03\xbe\x07\x62"
27441 "\xe9\x16\x69\x7e\xae\x38\x0e\x9b"
27442 "\xad\x6e\x83\x90\x21\x10\xb8\x07"
27443 "\xdc\xc1\x44\x20\xa5\x88\x00\xdc"
27444 "\xe1\x82\x16\xf1\x0c\xdc\xed\x8c"
27445 "\x32\xb5\x49\xab\x11\x41\xd5\xd2"
27446 "\x35\x2c\x70\x73\xce\xeb\xe3\xd6"
27447 "\xe4\x7d\x2c\xe8\x8c\xec\x8a\x92"
27448 "\x50\x87\x51\xbd\x2d\x9d\xf2\xf0"
27449 "\x3c\x7d\xb1\x87\xf5\x01\xb0\xed"
27450 "\x02\x5a\x20\x4d\x43\x08\x71\x49"
27451 "\x77\x72\x9b\xe6\xef\x30\xc9\xa2"
27452 "\x66\x66\xb8\x68\x9d\xdf\xc6\x16"
27453 "\xa5\x78\xee\x3c\x47\xa6\x7a\x31"
27454 "\x07\x6d\xce\x7b\x86\xf8\xb2\x31"
27455 "\xa8\xa4\x77\x3c\x63\x36\xe8\xd3"
27456 "\x7d\x40\x56\xd8\x48\x56\x9e\x3e"
27457 "\x56\xf6\x3d\xd2\x12\x6e\x35\x29"
27458 "\xd4\x7a\xdb\xff\x97\x4c\xeb\x3c"
27459 "\x28\x2a\xeb\xe9\x43\x40\x61\x06"
27460 "\xb8\xa8\x6d\x18\xc8\xbc\xc7\x23"
27461 "\x53\x2b\x8b\xcc\xce\x88\xdf\xf8"
27462 "\xff\xf8\x94\xe4\x5c\xee\xcf\x39"
27463 "\xe0\xf6\x1a\xae\xf2\xd5\x41\x6a"
27464 "\x09\x5a\x50\x66\xc4\xf4\x66\xdc"
27465 "\x6a\x69\xee\xc8\x47\xe6\x87\x52"
27466 "\x9e\x28\xe4\x39\x02\x0d\xc4\x7e"
27467 "\x18\xe6\xc6\x09\x07\x03\x30\xb9"
27468 "\xd1\xb0\x48\xe6\x80\xe8\x8c\xe6"
27469 "\xc7\x2c\x33\xca\x64\xe5\xc0\x6e"
27470 "\xac\x14\x4b\xe1\xf6\xeb\xce\xe4"
27471 "\xc1\x8c\xea\x5b\x8d\x3c\x86\x91"
27472 "\xd1\xd7\x16\x9c\x09\x9c\x6a\x51"
27473 "\xe5\xcd\xe3\xb0\x33\x1f\x03\xcd"
27474 "\xe5\xd8\x40\x9b\xdc\x29\xbe\xfa"
27475 "\x24\xcc\xf1\x55\x68\x3a\x89\x0d"
27476 "\x08\x48\xfd\x9b\x47\x41\x10\xae"
27477 "\x53\x3a\x83\x87\xd4\x89\xe7\x38"
27478 "\x47\xee\xd7\xbe\xe2\x58\x37\xd2"
27479 "\xfc\x21\x1d\x20\xa5\x2d\x69\x0c"
27480 "\x36\x5b\x2f\xcd\xa1\xa6\xe4\xa1"
27481 "\x00\x4d\xf7\xc8\x2d\xc7\x16\x6c"
27482 "\x6d\xad\x32\x8c\x8f\x74\xf9\xfa"
27483 "\x78\x1c\x9a\x0f\x6e\x93\x9c\x20"
27484 "\x43\xb9\xe4\xda\xc4\xc7\x90\x47"
27485 "\x86\x68\xb7\x6f\x82\x59\x4a\x30"
27486 "\xf1\xfd\x31\x0f\xa1\xea\x9b\x6b"
27487 "\x18\x5c\x39\xb0\xc7\x80\x64\xff"
27488 "\x6d\x5b\xb4\x8b\xba\x90\xea\x4e"
27489 "\x9a\x04\xd2\x68\x18\x50\xb5\x91"
27490 "\x45\x4f\x58\x5a\xe5\xc6\x7c\xab"
27491 "\x61\x3e\x3d\xec\x18\x87\xfc\xea"
27492 "\x26\x35\x4c\x99\x8a\x3f\x00\x7b"
27493 "\xf5\x89\x62\xda\xdd\xf1\x43\xef"
27494 "\x2c\x1d\x92\xfa\x9a\xd0\x37\x03"
27495 "\x69\x9c\xd8\x1f\x41\x44\xb7\x73"
27496 "\x54\x14\x91\x12\x41\x41\x54\xa2"
27497 "\x91\x55\xb6\xf7\x23\x41\xc9\xc2"
27498 "\x5b\x53\xf2\x61\x63\x0d\xa9\x87"
27499 "\x1a\xbb\x11\x1f\x3c\xbb\xa8\x1f"
27500 "\xe2\x66\x56\x88\x06\x3c\xd2\x0f"
27501 "\x3b\xc4\xd6\x8c\xbe\x54\x9f\xa8"
27502 "\x9c\x89\xfb\x88\x05\xef\xcd\xe7"
27503 "\xc1\xc4\x21\x36\x22\x8d\x9a\x5d"
27504 "\x1b\x1e\x4a\xc0\x89\xdd\x76\x16"
27505 "\x5a\xce\xcd\x1e\x6a\x1f\xa0\x2b"
27506 "\x83\xf6\x5e\x28\x8e\x65\xb5\x86"
27507 "\x72\x8f\xc5\xf2\x54\x81\x10\x8d"
27508 "\x63\x7b\x42\x7d\x06\x08\x16\xb3"
27509 "\xb0\x60\x65\x41\x49\xdb\x0d\xc1"
27510 "\xe2\xef\x72\x72\x06\xe7\x60\x5c"
27511 "\x95\x1c\x7d\x52\xec\x82\xee\xd3"
27512 "\x5b\xab\x61\xa4\x1f\x61\x64\x0c"
27513 "\x28\x32\x21\x7a\x81\xe7\x81\xf3"
27514 "\xdb\xc0\x18\xd9\xae\x0b\x3c\x9a"
27515 "\x58\xec\x70\x4f\x40\x25\x2b\xba"
27516 "\x96\x59\xac\x34\x45\x29\xc6\x57"
27517 "\xc1\xc3\x93\x60\x77\x92\xbb\x83"
27518 "\x8a\xa7\x72\x45\x2a\xc9\x35\xe7"
27519 "\x66\xd6\xa9\xe9\x43\x87\x20\x11"
27520 "\x6a\x2f\x87\xac\xe0\x93\x82\xe5"
27521 "\x6c\x57\xa9\x4c\x9e\x56\x57\x33"
27522 "\x1c\xd8\x7e\x25\x27\x41\x89\x97"
27523 "\xea\xa5\x56\x02\x5b\x93\x13\x46"
27524 "\xdc\x53\x3d\x95\xef\xaf\x9f\xf0"
27525 "\x0a\x8a\xfe\x0c\xbf\xf0\x25\x5f"
27526 "\xb4\x9f\x1b\x72\x9c\x37\xba\x46"
27527 "\x4e\xcc\xcc\x02\x5c\xec\x3f\x98"
27528 "\xff\x56\x1a\xc2\x7a\x65\x8f\xf6"
27529 "\xd2\x81\x37\x7a\x0a\xfc\x79\xb9"
27530 "\xcb\x8c\xc8\x1a\xd0\xba\x5d\x55"
27531 "\xbc\x6d\x2e\xb2\x2f\x75\x29\x3f"
27532 "\x1a\x4b\xa8\xd7\xe8\xf6\xf4\x2a"
27533 "\xa5\xa1\x68\xec\xf3\xd5\xdd\x0f"
27534 "\xad\x57\xae\x98\x83\xd5\x92\x4e"
27535 "\x76\x86\x8e\x5e\x4b\x87\x7b\xf7"
27536 "\x2d\x79\x3f\x12\x6a\x24\x58\xc8"
27537 "\xab\x9a\x65\x75\x82\x6f\xa5\x39"
27538 "\x72\xb0\xdf\x93\xb5\xa2\xf3\xdd"
27539 "\x1f\x32\xfa\xdb\xfe\x1b\xbf\x0a"
27540 "\xd9\x95\xdd\x02\xf1\x23\x54\xb1"
27541 "\xa5\xbb\x24\x04\x5c\x2a\x97\x92"
27542 "\xe6\xe0\x10\x61\xe3\x46\xc7\x0c"
27543 "\xcb\xbc\x51\x9a\x35\x16\xd9\x42"
27544 "\x62\xb3\x5e\xa4\x3c\x84\xa0\x7f"
27545 "\xb8\x7f\x70\xd1\x8b\x03\xdf\x27"
27546 "\x32\x06\x3f\x12\x23\x19\x22\x82"
27547 "\x2d\x37\xa5\x00\x31\x9b\xa9\x21"
27548 "\x8e\x34\x8c\x8e\x4f\xe8\xd4\x63"
27549 "\x6c\xb2\xa9\x6e\xf6\x7c\x96\xf1"
27550 "\x0e\x64\xab\x14\x3d\x8f\x74\xb3"
27551 "\x35\x79\x84\x78\x06\x68\x97\x30"
27552 "\xe0\x22\x55\xd6\xc5\x5b\x38\xb2"
27553 "\x75\x24\x0c\x52\xb6\x57\xcc\x0a"
27554 "\xbd\x3c\xd0\x73\x47\xd1\x25\xd6"
27555 "\x1c\xfd\x27\x05\x3f\x70\xe1\xa7"
27556 "\x69\x3b\xee\xc9\x9f\xfd\x2a\x7e"
27557 "\xab\x58\xe6\x0b\x35\x5e\x52\xf9"
27558 "\xff\xac\x5b\x82\x88\xa7\x65\xbc"
27559 "\x61\x29\xdc\xa1\x94\x42\xd1\xd3"
27560 "\xa0\xd8\xba\x3b\x49\xc8\xa7\xce"
27561 "\x01\x6c\xb7\x3f\xe3\x98\x4d\xd1"
27562 "\x9f\x46\x0d\xb3\xf2\x43\x33\x49"
27563 "\xb7\x27\xbd\xba\xcc\x3f\x09\x56"
27564 "\xfa\x64\x18\xb8\x17\x28\xde\x0d"
27565 "\x29\xfa\x1f\xad\x60\x3b\x90\xa7"
27566 "\x05\x9f\x4c\xc4\xdc\x05\x3b\x17"
27567 "\x58\xea\x99\xfd\x6b\x8a\x93\x77"
27568 "\xa5\x44\xbd\x8d\x29\x44\x29\x89"
27569 "\x52\x1d\x89\x8b\x44\x8f\xb9\x68"
27570 "\xeb\x93\xfd\x92\xd9\x14\x35\x9c"
27571 "\x28\x3a\x9f\x1d\xd8\xe0\x2a\x76"
27572 "\x51\xc1\xf0\xa9\x1d\xb4\xf8\xb9"
27573 "\xfc\x14\x78\x5a\xa2\xb1\xdb\x94"
27574 "\xcb\x18\xb9\x34\xbd\x0c\x65\x1d"
27575 "\x64\xde\xd0\x3a\xe4\x68\x0e\xbc"
27576 "\x13\xa7\x47\x89\x62\xa3\x03\x19"
27577 "\x64\xa1\x02\x27\x3a\x8d\x43\xfa"
27578 "\x68\xff\xda\x8b\x40\xe9\x19\x8b"
27579 "\x56\xbe\x1c\x9b\xe6\xf6\x3f\x60"
27580 "\xdb\x7a\xd5\xab\x82\xd8\xd9\x99"
27581 "\xe3\x5b\x0c\x0c\x69\x18\x5c\xed"
27582 "\x03\xf9\xc1\x61\xc4\x7b\xd4\x90"
27583 "\x43\xc3\x39\xec\xac\xcb\x1f\x4b"
27584 "\x23\xf8\xa9\x98\x2f\xf6\x48\x90"
27585 "\x6c\x2b\x94\xad\x14\xdd\xcc\xa2"
27586 "\x3d\xc7\x86\x0f\x7f\x1c\x0b\x93"
27587 "\x4b\x74\x1f\x80\x75\xb4\x91\xdf"
27588 "\xa8\x26\xf9\x06\x2b\x3a\x2c\xfd"
27589 "\x3c\x31\x40\x1e\x5b\xa6\x86\x01"
27590 "\xc4\xa2\x80\x4f\xf5\xa2\xf4\xff"
27591 "\xf6\x07\x8c\x92\xf7\x74\xbd\x42"
27592 "\xb0\x3f\x6b\x05\xca\x40\xeb\x04"
27593 "\x20\xa9\x37\x78\x32\x03\x60\xcc"
27594 "\xf3\xec\xb2\x2d\xb5\x80\x7c\xe4"
27595 "\x37\x53\x25\xd1\xe8\x91\x6a\xe5"
27596 "\xdf\xdd\xb0\xab\x69\xc7\xa1\xb2"
27597 "\xfc\xb3\xd1\x9e\xda\xa8\x0d\x68"
27598 "\xfe\x7d\xdc\x56\x33\x65\x99\xd2"
27599 "\xec\xa5\xa0\xa1\x26\xc9\xec\xbd"
27600 "\x22\x20\x5e\x0d\xcb\x93\x64\x7a"
27601 "\x56\x75\xed\xe5\x45\xa2\xbd\x16"
27602 "\x59\xf7\x43\xd9\x5b\x2c\xdd\xb6"
27603 "\x1d\xa8\x05\x89\x2f\x65\x2e\x66"
27604 "\xfe\xad\x93\xeb\x85\x8f\xe8\x4c"
27605 "\x00\x44\x71\x03\x0e\x26\xaf\xfd"
27606 "\xfa\x56\x0f\xdc\x9c\xf3\x2e\xab"
27607 "\x88\x26\x61\xc6\x13\xfe\xba\xc1"
27608 "\xd8\x8a\x38\xc3\xb6\x4e\x6d\x80"
27609 "\x4c\x65\x93\x2f\xf5\x54\xff\x63"
27610 "\xbe\xdf\x9a\xe3\x4f\xca\xc9\x71"
27611 "\x12\xab\x95\x66\xec\x09\x64\xea"
27612 "\xdc\x9f\x01\x61\x24\x88\xd1\xa7"
27613 "\xd0\x69\x26\xf0\x80\xb0\xec\x86"
27614 "\xc2\x58\x2f\x6a\xc5\xfd\xfc\x2a"
27615 "\xf6\x3e\x23\x77\x3b\x7e\xc5\xc5"
27616 "\xe7\xf9\x4d\xcc\x68\x53\x11\xc8"
27617 "\x5b\x44\xbd\x48\x0f\xb3\x35\x1a"
27618 "\x93\x4a\x80\x16\xa3\x0d\x50\x85"
27619 "\xa6\xc4\xd4\x74\x4d\x87\x59\x51"
27620 "\xd7\xf7\x7d\xee\xd0\x9b\xd1\x83"
27621 "\x25\x2b\xc6\x39\x27\x6a\xb3\x41"
27622 "\x5f\xd2\x24\xd4\xd6\xfa\x8c\x3e"
27623 "\xb2\xf9\x11\x71\x7a\x9e\x5e\x7b"
27624 "\x5b\x9a\x47\x80\xca\x1c\xbe\x04"
27625 "\x5d\x34\xc4\xa2\x2d\x41\xfe\x73"
27626 "\x53\x15\x9f\xdb\xe7\x7d\x82\x19"
27627 "\x21\x1b\x67\x2a\x74\x7a\x21\x4a"
27628 "\xc4\x96\x6f\x00\x92\x69\xf1\x99"
27629 "\x50\xf1\x4a\x16\x11\xf1\x16\x51",
27630 .ctext = "\x57\xd1\xcf\x26\xe5\x07\x7a\x3f"
27631 "\xa5\x5e\xd4\xa8\x12\xe9\x4e\x36"
27632 "\x9c\x28\x65\xe0\xbd\xef\xf1\x49"
27633 "\x04\xd4\xd4\x01\x4d\xf5\xfc\x2a"
27634 "\x32\xd8\x19\x21\xcd\x58\x2a\x1a"
27635 "\x43\x78\xa4\x57\x69\xa0\x52\xeb"
27636 "\xcd\xa5\x9c\x4d\x03\x28\xef\x8b"
27637 "\x54\xc6\x6c\x31\xab\x3e\xaf\x6d"
27638 "\x0a\x87\x83\x3d\xb7\xea\x6b\x3d"
27639 "\x11\x58\x7d\x5f\xaf\xc9\xfc\x50"
27640 "\x58\x9a\x84\xa1\xcf\x76\xdc\x77"
27641 "\x83\x9a\x28\x74\x69\xc9\x0c\xc2"
27642 "\x7b\x1e\x4e\xe4\x25\x41\x23\x0d"
27643 "\x4e\x0e\x2d\x7a\x87\xaa\x0f\x7c"
27644 "\x98\xad\xf0\x6f\xbf\xcb\xd5\x1a"
27645 "\x3e\xcf\x0e\xc5\xde\xbd\x8d\xf1"
27646 "\xaa\x19\x16\xb8\xc5\x25\x02\x33"
27647 "\xbd\x5a\x85\xe2\xc0\x77\x71\xda"
27648 "\x12\x4c\xdf\x7f\xce\xc0\x32\x95"
27649 "\x1a\xde\xcb\x0a\x70\xd0\x9e\x89"
27650 "\xc5\x97\x18\x04\xab\x8c\x38\x56"
27651 "\x69\xe5\xf6\xa5\x76\x2c\x52\x7a"
27652 "\x49\xd2\x9a\x95\xa6\xa8\x82\x42"
27653 "\x20\x1f\x58\x57\x4e\x22\xdb\x92"
27654 "\xec\xbd\x4a\x21\x66\x9b\x7a\xcb"
27655 "\x73\xcd\x6d\x15\x07\xc9\x97\xb8"
27656 "\x11\x35\xee\x29\xa4\x90\xfc\x46"
27657 "\x0f\x39\x56\xc6\x4a\x3a\xcf\xcc"
27658 "\xb1\xbf\x62\x1c\x16\xc5\x12\x6c"
27659 "\x0e\x69\x89\xce\xcf\x11\x4e\xe5"
27660 "\x7e\x4e\x7c\x8f\xb4\xc9\xe6\x54"
27661 "\x42\x89\x28\x27\xe6\xec\x50\xb7"
27662 "\x69\x91\x44\x3e\x46\xd4\x64\xf6"
27663 "\x25\x4c\x4d\x2f\x60\xd9\x9a\xd3"
27664 "\x1c\x70\xf4\xd8\x24\x1e\xdb\xcf"
27665 "\xa8\xc0\x22\xe6\x82\x57\xf6\xf0"
27666 "\xe1\x1e\x38\x66\xec\xdc\x20\xdb"
27667 "\x6a\x57\x68\xb1\x43\x61\xe1\x12"
27668 "\x18\x5f\x31\x57\x39\xcb\xea\x3c"
27669 "\x6e\x5d\x9a\xe0\xa6\x70\x4d\xd8"
27670 "\xf9\x47\x4e\xef\x31\xa5\x66\x9b"
27671 "\xb7\xf1\xd9\x59\x85\xfc\xdb\x7e"
27672 "\xa2\x7a\x70\x25\x0c\xfd\x18\x0d"
27673 "\x00\x42\xc9\x48\x8a\xbd\x74\xc5"
27674 "\x3e\xe1\x20\x5a\x5d\x2e\xe5\x32"
27675 "\x1d\x1c\x08\x65\x80\x69\xae\x24"
27676 "\x80\xde\xb6\xdf\x97\xaa\x42\x8d"
27677 "\xce\x39\x07\xe6\x69\x94\x5a\x75"
27678 "\x39\xda\x5e\x1a\xed\x4a\x4c\x23"
27679 "\x66\x1f\xf3\xb1\x6e\x8f\x21\x94"
27680 "\x45\xc4\x63\xbd\x06\x93\x5e\x30"
27681 "\xe7\x8f\xcb\xe0\xbb\x2a\x27\xcf"
27682 "\x57\xa9\xa6\x28\xaf\xae\xcb\xa5"
27683 "\x7b\x36\x61\x77\x3a\x4f\xec\x51"
27684 "\x71\xfd\x52\x9e\x32\x7b\x98\x09"
27685 "\xae\x27\xbc\x93\x96\xab\xb6\x02"
27686 "\xf7\x21\xd3\x42\x00\x7e\x7a\x92"
27687 "\x17\xfe\x1b\x3d\xcf\xb6\xfe\x1e"
27688 "\x40\xc3\x10\x25\xac\x22\x9e\xcc"
27689 "\xc2\x02\x61\xf5\x0a\x4b\xc3\xec"
27690 "\xb1\x44\x06\x05\xb8\xd6\xcb\xd5"
27691 "\xf1\xf5\xb5\x65\xbc\x1a\x19\xa2"
27692 "\x7d\x60\x87\x11\x06\x83\x25\xe3"
27693 "\x5e\xf0\xeb\x15\x93\xb6\x8e\xab"
27694 "\x49\x52\xe8\xdb\xde\xd1\x8e\xa2"
27695 "\x3a\x64\x13\x30\xaa\x20\xaf\x81"
27696 "\x8d\x3c\x24\x2a\x76\x6d\xca\x32"
27697 "\x63\x51\x6b\x8e\x4b\xa7\xf6\xad"
27698 "\xa5\x94\x16\x82\xa6\x97\x3b\xe5"
27699 "\x41\xcd\x87\x33\xdc\xc1\x48\xca"
27700 "\x4e\xa2\x82\xad\x8e\x1b\xae\xcb"
27701 "\x12\x93\x27\xa3\x2b\xfa\xe6\x26"
27702 "\x43\xbd\xb0\x00\x01\x22\x1d\xd3"
27703 "\x28\x9d\x69\xe0\xd4\xf8\x5b\x01"
27704 "\x40\x7d\x54\xe5\xe2\xbd\x78\x5a"
27705 "\x0e\xab\x51\xfc\xd4\xde\xba\xbc"
27706 "\xa4\x7a\x74\x6d\xf8\x36\xc2\x70"
27707 "\x03\x27\x36\xa2\xc0\xde\xf2\xc7"
27708 "\x55\xd4\x66\xee\x9a\x9e\xaa\x99"
27709 "\x2b\xeb\xa2\x6f\x17\x80\x60\x64"
27710 "\xed\x73\xdb\xc1\x70\xda\xde\x67"
27711 "\xcd\x6e\xc9\xfa\x3f\xef\x49\xd9"
27712 "\x18\x42\xf1\x87\x6e\x2c\xac\xe1"
27713 "\x12\x26\x52\xbe\x3e\xf1\xcc\x85"
27714 "\x9a\xd1\x9e\xc1\x02\xd3\xca\x2b"
27715 "\x99\xe7\xe8\x95\x7f\x91\x4b\xc0"
27716 "\xab\xd4\x5a\xf7\x88\x1c\x7e\xea"
27717 "\xd3\x15\x38\x26\xb5\xa3\xf2\xfc"
27718 "\xc4\x12\x70\x5a\x37\x83\x49\xac"
27719 "\xf4\x5e\x4c\xc8\x64\x03\x98\xad"
27720 "\xd2\xbb\x8d\x90\x01\x80\xa1\x2a"
27721 "\x23\xd1\x8d\x26\x43\x7d\x2b\xd0"
27722 "\x87\xe1\x8e\x6a\xb3\x73\x9d\xc2"
27723 "\x66\x75\xee\x2b\x41\x1a\xa0\x3b"
27724 "\x1b\xdd\xb9\x21\x69\x5c\xef\x52"
27725 "\x21\x57\xd6\x53\x31\x67\x7e\xd1"
27726 "\xd0\x67\x8b\xc0\x97\x2c\x0a\x09"
27727 "\x1d\xd4\x35\xc5\xd4\x11\x68\xf8"
27728 "\x5e\x75\xaf\x0c\xc3\x9d\xa7\x09"
27729 "\x38\xf5\x77\xb9\x80\xa9\x6b\xbd"
27730 "\x0c\x98\xb4\x8d\xf0\x35\x5a\x19"
27731 "\x1d\xf8\xb3\x5b\x45\xad\x4e\x4e"
27732 "\xd5\x59\xf5\xd7\x53\x63\x3e\x97"
27733 "\x7f\x91\x50\x65\x61\x21\xa9\xb7"
27734 "\x65\x12\xdc\x01\x56\x40\xe0\xb1"
27735 "\xe1\x23\xba\x9d\xb9\xc4\x8b\x1f"
27736 "\xa6\xfe\x24\x19\xe9\x42\x9f\x9b"
27737 "\x02\x48\xaa\x60\x0b\xf5\x7f\x8f"
27738 "\x35\x70\xed\x85\xb8\xc4\xdc\xb7"
27739 "\x16\xb7\x03\xe0\x2e\xa0\x25\xab"
27740 "\x02\x1f\x97\x8e\x5a\x48\xb6\xdb"
27741 "\x25\x7a\x16\xf6\x4c\xec\xec\xa6"
27742 "\xc1\x4e\xe3\x4e\xe3\x27\x78\xc8"
27743 "\xb6\xd7\x01\x61\x98\x1b\x38\xaa"
27744 "\x36\x93\xac\x6d\x05\x61\x4d\x5a"
27745 "\xc9\xe5\x27\xa9\x22\xf2\x38\x5e"
27746 "\x9e\xe5\xf7\x4a\x64\xd2\x14\x15"
27747 "\x71\x7c\x65\x6e\x90\x31\xc7\x49"
27748 "\x25\xec\x9f\xf1\xb2\xd6\xbc\x20"
27749 "\x6a\x13\xd5\x70\x65\xfc\x8b\x66"
27750 "\x2c\xf1\x57\xc2\xe7\xb8\x89\xf7"
27751 "\x17\xb2\x45\x64\xe0\xb3\x8c\x0d"
27752 "\x69\x57\xf9\x5c\xff\xc2\x3c\x18"
27753 "\x1e\xfd\x4b\x5e\x0d\x20\x01\x1a"
27754 "\xa3\xa3\xb3\x76\x98\x9c\x92\x41"
27755 "\xb4\xcd\x9f\x8f\x88\xcb\xb1\xb5"
27756 "\x25\x87\x45\x4c\x07\xa7\x15\x99"
27757 "\x24\x85\x15\x9e\xfc\x28\x98\x2b"
27758 "\xd0\x22\x0a\xcc\x62\x12\x86\x0a"
27759 "\xa8\x0e\x7d\x15\x32\x98\xae\x2d"
27760 "\x95\x25\x55\x33\x41\x5b\x8d\x75"
27761 "\x46\x61\x01\xa4\xfb\xf8\x6e\xe5"
27762 "\xec\x24\xfe\xd2\xd2\x46\xe2\x3a"
27763 "\x77\xf3\xa1\x39\xd3\x39\x32\xd8"
27764 "\x2a\x6b\x44\xd7\x70\x36\x23\x89"
27765 "\x4f\x75\x85\x42\x70\xd4\x2d\x4f"
27766 "\xea\xfc\xc9\xfe\xb4\x86\xd8\x73"
27767 "\x1d\xeb\xf7\x54\x0a\x47\x7e\x2c"
27768 "\x04\x7b\x47\xea\x52\x8f\x13\x1a"
27769 "\xf0\x19\x65\xe2\x0a\x1c\xae\x89"
27770 "\xe1\xc5\x87\x6e\x5d\x7f\xf8\x79"
27771 "\x08\xbf\xd2\x7f\x2c\x95\x22\xba"
27772 "\x32\x78\xa9\xf6\x03\x98\x18\xed"
27773 "\x15\xbf\x49\xb0\x6c\xa1\x4b\xb0"
27774 "\xf3\x17\xd5\x35\x5d\x19\x57\x5b"
27775 "\xf1\x07\x1e\xaa\x4d\xef\xd0\xd6"
27776 "\x72\x12\x6b\xd9\xbc\x10\x49\xc5"
27777 "\x28\xd4\xec\xe9\x8a\xb1\x6d\x50"
27778 "\x4b\xf3\x44\xb8\x49\x04\x62\xe9"
27779 "\xa4\xd8\x5a\xe7\x90\x02\xb7\x1e"
27780 "\x66\x89\xbc\x5a\x71\x4e\xbd\xf8"
27781 "\x18\xfb\x34\x2f\x67\xa2\x65\x71"
27782 "\x00\x63\x22\xef\x3a\xa5\x18\x0e"
27783 "\x54\x76\xaa\x58\xae\x87\x23\x93"
27784 "\xb0\x3c\xa2\xa4\x07\x77\x3e\xd7"
27785 "\x1a\x9c\xfe\x32\xc3\x54\x04\x4e"
27786 "\xd6\x98\x44\xda\x98\xf8\xd3\xc8"
27787 "\x1c\x07\x4b\xcd\x97\x5d\x96\x95"
27788 "\x9a\x1d\x4a\xfc\x19\xcb\x0b\xd0"
27789 "\x6d\x43\x3a\x9a\x39\x1c\xa8\x90"
27790 "\x9f\x53\x8b\xc4\x41\x75\xb5\xb9"
27791 "\x91\x5f\x02\x0a\x57\x6c\x8f\xc3"
27792 "\x1b\x0b\x3a\x8b\x58\x3b\xbe\x2e"
27793 "\xdc\x4c\x23\x71\x2e\x14\x06\x21"
27794 "\x0b\x3b\x58\xb8\x97\xd1\x00\x62"
27795 "\x2e\x74\x3e\x6e\x21\x8a\xcf\x60"
27796 "\xda\x0c\xf8\x7c\xfd\x07\x55\x7f"
27797 "\xb9\x1d\xda\x34\xc7\x27\xbf\x2a"
27798 "\xd9\xba\x41\x9b\x37\xa1\xc4\x5d"
27799 "\x03\x01\xce\xbb\x58\xff\xee\x74"
27800 "\x08\xbd\x0b\x80\xb1\xd5\xf8\xb5"
27801 "\x92\xf9\xbb\xbe\x03\xb5\xec\xbe"
27802 "\x17\xee\xd7\x4e\x87\x2b\x61\x1b"
27803 "\x27\xc3\x51\x50\xa0\x02\x73\x00"
27804 "\x1a\xea\x2a\x2b\xf8\xf6\xe6\x96"
27805 "\x75\x00\x56\xcc\xcb\x7a\x24\x29"
27806 "\xe8\xdb\x95\xbf\x4e\x8f\x0a\x78"
27807 "\xb8\xeb\x5a\x90\x37\xd0\x21\x94"
27808 "\x6a\x89\x6b\x41\x3a\x1b\xa7\x20"
27809 "\x43\x37\xda\xad\x81\xdd\xb4\xfc"
27810 "\xe9\x60\x82\x77\x44\x3f\x89\x23"
27811 "\x35\x04\x8f\xa1\xe8\xc0\xb6\x9f"
27812 "\x56\xa7\x86\x3d\x65\x9c\x57\xbb"
27813 "\x27\xdb\xe1\xb2\x13\x07\x9c\xb1"
27814 "\x60\x8b\x38\x6b\x7f\x24\x28\x14"
27815 "\xfe\xbf\xc0\xda\x61\x6e\xc2\xc7"
27816 "\x63\x36\xa8\x02\x54\x93\xb0\xba"
27817 "\xbd\x4d\x29\x14\x5a\x8b\xbc\x78"
27818 "\xb3\xa6\xc5\x15\x5d\x36\x4d\x38"
27819 "\x20\x9c\x1e\x98\x2e\x16\x89\x33"
27820 "\x66\xa2\x54\x57\xcc\xde\x12\xa6"
27821 "\x3b\x44\xf1\xac\x36\x3b\x97\xc1"
27822 "\x96\x94\xf2\x67\x57\x23\x9c\x29"
27823 "\xcd\xb7\x24\x2a\x8c\x86\xee\xaa"
27824 "\x0f\xee\xaf\xa0\xec\x40\x8c\x08"
27825 "\x18\xa1\xb4\x2c\x09\x46\x11\x7e"
27826 "\x97\x84\xb1\x03\xa5\x3e\x59\x05"
27827 "\x07\xc5\xf0\xcc\xb6\x71\x72\x2a"
27828 "\xa2\x02\x78\x60\x0b\xc4\x47\x93"
27829 "\xab\xcd\x67\x2b\xf5\xc5\x67\xa0"
27830 "\xc0\x3c\x6a\xd4\x7e\xc9\x93\x0c"
27831 "\x02\xdc\x15\x87\x48\x16\x26\x18"
27832 "\x4e\x0b\x16\x0e\xb3\x02\x3e\x4b"
27833 "\xc2\xe4\x49\x08\x9f\xb9\x8b\x1a"
27834 "\xca\x10\xe8\x6c\x58\xa9\x7e\xb8"
27835 "\xbe\xff\x58\x0e\x8a\xfb\x35\x93"
27836 "\xcc\x76\x7d\xd9\x44\x7c\x31\x96"
27837 "\xc0\x29\x73\xd3\x91\x0a\xc0\x65"
27838 "\x5c\xbe\xe7\x4e\xda\x31\x85\xf2"
27839 "\x72\xee\x34\xbe\x41\x90\xd4\x07"
27840 "\x50\x64\x56\x81\xe3\x27\xfb\xcc"
27841 "\xb7\x5c\x36\xb4\x6e\xbd\x23\xf8"
27842 "\xe8\x71\xce\xa8\x73\x77\x82\x74"
27843 "\xab\x8d\x0e\xe5\x93\x68\xb1\xd2"
27844 "\x51\xc2\x18\x58\xd5\x3f\x29\x6b"
27845 "\x2e\xd0\x88\x7f\x4a\x9d\xa2\xb8"
27846 "\xae\x96\x09\xbf\x47\xae\x7d\x12"
27847 "\x70\x67\xf1\xdd\xda\xdf\x47\x57"
27848 "\xc9\x2c\x0f\xcb\xf3\x57\xd4\xda"
27849 "\x00\x2e\x13\x48\x8f\xc0\xaa\x46"
27850 "\xe1\xc1\x57\x75\x1e\xce\x74\xc2"
27851 "\x82\xef\x31\x85\x8e\x38\x56\xff"
27852 "\xcb\xab\xe0\x78\x40\x51\xd3\xc5"
27853 "\xc3\xb1\xee\x9b\xd7\x72\x7f\x13"
27854 "\x83\x7f\x45\x49\x45\xa1\x05\x8e"
27855 "\xdc\x83\x81\x3c\x24\x28\x87\x08"
27856 "\xa0\x70\x73\x80\x42\xcf\x5c\x26"
27857 "\x39\xa5\xc5\x90\x5c\x56\xda\x58"
27858 "\x93\x45\x5d\x45\x64\x59\x16\x3f"
27859 "\xf1\x20\xf7\xa8\x2a\xd4\x3d\xbd"
27860 "\x17\xfb\x90\x01\xcf\x1e\x71\xab"
27861 "\x22\xa2\x24\xb5\x80\xac\xa2\x9a"
27862 "\x9c\x2d\x85\x69\xa7\x87\x33\x55"
27863 "\x65\x72\xc0\x91\x2a\x3d\x05\x33"
27864 "\x25\x0d\x29\x25\x9f\x45\x4e\xfa"
27865 "\x5d\x90\x3f\x34\x08\x54\xdb\x7d"
27866 "\x94\x20\xa2\x3b\x10\x01\xa4\x89"
27867 "\x1e\x90\x4f\x36\x3f\xc2\x40\x07"
27868 "\x3f\xab\x2e\x89\xce\x80\xe1\xf5"
27869 "\xac\xaf\x17\x10\x18\x0f\x4d\xe3"
27870 "\xfc\x82\x2b\xbe\xe2\x91\xfa\x5b"
27871 "\x9a\x9b\x2a\xd7\x99\x8d\x8f\xdc"
27872 "\x54\x99\xc4\xa3\x97\xfd\xd3\xdb"
27873 "\xd1\x51\x7c\xce\x13\x5c\x3b\x74"
27874 "\xda\x9a\xe3\xdc\xdc\x87\x84\x98"
27875 "\x16\x6d\xb0\x3d\x65\x57\x0b\xb2"
27876 "\xb8\x04\xd4\xea\x49\x72\xc3\x66"
27877 "\xbc\xdc\x91\x05\x2b\xa6\x5e\xeb"
27878 "\x55\x72\x3e\x34\xd4\x28\x4b\x9c"
27879 "\x07\x51\xf7\x30\xf3\xca\x04\xc1"
27880 "\xd3\x69\x50\x2c\x27\x27\xc4\xb9"
27881 "\x56\xc7\xa2\xd2\x66\x29\xea\xe0"
27882 "\x25\xb8\x49\xd1\x60\xc9\x5e\xb5"
27883 "\xed\x87\xb8\x74\x98\x0d\x16\x86"
27884 "\x2a\x02\x24\xde\xb9\xa9\x5e\xf0"
27885 "\xdd\xf7\x55\xb0\x26\x7a\x93\xd4"
27886 "\xe6\x7d\xd2\x43\xb2\x8f\x7e\x9a"
27887 "\x5d\x81\xe6\x28\xe5\x96\x7d\xc8"
27888 "\x33\xe0\x56\x57\xe2\xa0\xf2\x1d"
27889 "\x61\x78\x60\xd5\x81\x70\xa4\x11"
27890 "\x43\x36\xe9\xd1\x68\x27\x21\x3c"
27891 "\xb2\xa2\xad\x5f\x04\xd4\x55\x00"
27892 "\x25\x71\x91\xed\x3a\xc9\x7b\x57"
27893 "\x7b\xd1\x8a\xfb\x0e\xf5\x7b\x08"
27894 "\xa9\x26\x4f\x24\x5f\xdd\x79\xed"
27895 "\x19\xc4\xe1\xd5\xa8\x66\x60\xfc"
27896 "\x5d\x48\x11\xb0\xa3\xc3\xe6\xc0"
27897 "\xc6\x16\x7d\x20\x3f\x7c\x25\x52"
27898 "\xdf\x05\xdd\xb5\x0b\x92\xee\xc5"
27899 "\xe6\xd2\x7c\x3e\x2e\xd5\xac\xda"
27900 "\xdb\x48\x31\xac\x87\x13\x8c\xfa"
27901 "\xac\x18\xbc\xd1\x7f\x2d\xc6\x19"
27902 "\x8a\xfa\xa0\x97\x89\x26\x50\x46"
27903 "\x9c\xca\xe1\x73\x97\x26\x0a\x50"
27904 "\x95\xec\x79\x19\xf6\xbd\x9a\xa1"
27905 "\xcf\xc9\xab\xf7\x85\x84\xb2\xf5"
27906 "\x2c\x7c\x73\xaa\xe2\xc2\xfb\xcd"
27907 "\x5f\x08\x46\x2f\x8e\xd9\xff\xfd"
27908 "\x19\xf6\xf4\x5d\x2b\x4b\x54\xe2"
27909 "\x27\xaa\xfd\x2c\x5f\x75\x7c\xf6"
27910 "\x2c\x95\x77\xcc\x90\xa2\xda\x1e"
27911 "\x85\x37\x18\x34\x1d\xcf\x1b\xf2"
27912 "\x86\xda\x71\xfb\x72\xab\x87\x0f"
27913 "\x1e\x10\xb3\xba\x51\xea\x29\xd3"
27914 "\x8c\x87\xce\x4b\x66\xbf\x60\x6d"
27915 "\x81\x7c\xb8\x9c\xcc\x2e\x35\x02"
27916 "\x02\x32\x4a\x7a\x24\xc4\x9f\xce"
27917 "\xf0\x8a\x85\x90\xf3\x24\x95\x02"
27918 "\xec\x13\xc1\xa4\xdd\x44\x01\xef"
27919 "\xf6\xaa\x30\x70\xbf\x4e\x1a\xb9"
27920 "\xc0\xff\x3b\x57\x5d\x12\xfe\xc3"
27921 "\x1d\x5c\x3f\x74\xf9\xd9\x64\x61"
27922 "\x20\xb2\x76\x79\x38\xd2\x21\xfb"
27923 "\xc9\x32\xe8\xcc\x8e\x5f\xd7\x01"
27924 "\x9e\x25\x76\x4d\xa7\xc1\x33\x21"
27925 "\xfa\xcf\x98\x40\xd2\x1d\x48\xbd"
27926 "\xd0\xc0\x38\x90\x27\x9b\x89\x4a"
27927 "\x10\x1e\xaf\xa0\x78\x7d\x87\x2b"
27928 "\x72\x10\x02\xf0\x5d\x22\x8b\x22"
27929 "\xd7\x56\x7c\xd7\x6d\xcd\x9b\xc6"
27930 "\xbc\xb2\xa6\x36\xde\xac\x87\x14"
27931 "\x92\x93\x47\xca\x7d\xf4\x0b\x88"
27932 "\xea\xbf\x3f\x2f\xa9\x94\x24\x13"
27933 "\xa1\x52\x29\xfd\x5d\xa9\x76\x85"
27934 "\x21\x62\x39\xa3\xf0\xf7\xb5\xa3"
27935 "\xe0\x6c\x1b\xcb\xdb\x41\x91\xc6"
27936 "\x4f\xaa\x26\x8b\x15\xd5\x84\x3a"
27937 "\xda\xd6\x05\xc8\x8c\x0f\xe9\x19"
27938 "\x00\x81\x38\xfb\x8f\xdf\xb0\x63"
27939 "\x75\xe0\xe8\x8f\xef\x4a\xe0\x83"
27940 "\x34\xe9\x4e\x06\xd7\xbb\xcd\xed"
27941 "\x70\x0c\x72\x80\x64\x94\x67\xad"
27942 "\x4a\xda\x82\xcf\x60\xfc\x92\x43"
27943 "\xe3\x2f\xd1\x1e\x81\x1d\xdc\x62"
27944 "\xec\xb1\xb0\xad\x4f\x43\x1d\x38"
27945 "\x4e\x0d\x90\x40\x29\x1b\x98\xf1"
27946 "\xbc\x70\x4e\x5a\x08\xbe\x88\x3a"
27947 "\x55\xfb\x8c\x33\x1f\x0a\x7d\x2d"
27948 "\xdc\x75\x03\xd2\x3b\xe8\xb8\x32"
27949 "\x13\xab\x04\xbc\xe2\x33\x44\xa6"
27950 "\xff\x6e\xba\xbd\xdc\xe2\xbf\x54"
27951 "\x99\x71\x76\x59\x3b\x7a\xbc\xde"
27952 "\xa1\x6e\x73\x62\x96\x73\x56\x66"
27953 "\xfb\x1a\x56\x91\x2a\x8b\x12\xb0"
27954 "\x82\x9f\x9b\x0c\x42\xc7\x22\x2c"
27955 "\xbc\x49\xc5\x3c\x3b\xbf\x52\x64"
27956 "\xd6\xd4\x03\x52\xf3\xfd\x13\x98"
27957 "\xcc\xd8\xaa\x3e\x1d\x1f\x04\x8a"
27958 "\x03\x41\x19\x5b\x31\xf3\x48\x83"
27959 "\x49\xa3\xdd\xc9\x7c\x01\x34\x64"
27960 "\xe5\xf3\xdf\xc9\x7f\x17\xa2\xf5"
27961 "\x9c\x21\x79\x93\x91\x93\xbf\x9b"
27962 "\xa5\xa5\xda\x1d\x55\x32\x72\x78"
27963 "\xa6\x45\x2d\x21\x97\x6b\xfe\xbc"
27964 "\xd0\xe7\x8e\x97\x66\x85\x9e\x41"
27965 "\xfa\x2c\x8a\xee\x0d\x5a\x18\xf2"
27966 "\x15\x89\x8f\xfb\xbc\xd8\xa6\x0c"
27967 "\x83\xcc\x20\x08\xce\x70\xe5\xe6"
27968 "\xbb\x7d\x9f\x11\x5f\x1e\x16\x68"
27969 "\x18\xad\xa9\x4b\x04\x97\x8c\x18"
27970 "\xed\x2a\x70\x79\x39\xcf\x36\x72"
27971 "\x1e\x3e\x6d\x3c\x19\xce\x13\x19"
27972 "\xb5\x13\xe7\x02\xd8\x5c\xec\x0c"
27973 "\x81\xc5\xe5\x86\x10\x83\x9e\x67"
27974 "\x3b\x74\x29\x63\xda\x23\xbc\x43"
27975 "\xe9\x73\xa6\x2d\x25\x77\x66\xd0"
27976 "\x2e\x05\x38\xae\x2e\x0e\x7f\xaf"
27977 "\x82\xed\xef\x28\x39\x4c\x4b\x6f"
27978 "\xdb\xa1\xb5\x79\xd0\x5b\x50\x77"
27979 "\x6d\x75\x9f\x3c\xcf\xde\x41\xb8"
27980 "\xa9\x13\x11\x60\x19\x23\xc7\x35"
27981 "\x48\xbc\x14\x08\xf9\x57\xfe\x15"
27982 "\xfd\xb2\xbb\x8c\x44\x3b\xf1\x62"
27983 "\xbc\x0e\x01\x45\x39\xc0\xbb\xce"
27984 "\xf5\xb7\xe1\x16\x7b\xcc\x8d\x7f"
27985 "\xd3\x15\x36\xef\x8e\x4b\xaa\xee"
27986 "\x49\x0c\x6e\x9b\x8c\x0e\x9f\xe0"
27987 "\xd5\x7b\xdd\xbc\xb3\x67\x53\x6d"
27988 "\x8b\xbe\xa3\xcd\x1e\x37\x9d\xc3"
27989 "\x61\x36\xf4\x77\xec\x2b\xc7\x8b"
27990 "\xd7\xad\x8d\x23\xdd\xf7\x9d\xf1"
27991 "\x61\x1c\xbf\x09\xa5\x5e\xb9\x14"
27992 "\xa6\x3f\x1a\xd9\x12\xb4\xef\x56"
27993 "\x20\xa0\x77\x3e\xab\xf1\xb9\x91"
27994 "\x5a\x92\x85\x5c\x92\x15\xb2\x1f"
27995 "\xaf\xb0\x92\x23\x2d\x27\x8b\x7e"
27996 "\x12\xcc\x56\xaa\x62\x85\x15\xd7"
27997 "\x41\x89\x62\xd6\xd9\xd0\x6d\xbd"
27998 "\x21\xa8\x49\xb6\x35\x40\x2f\x8d"
27999 "\x2e\xfa\x24\x1e\x30\x12\x9c\x05"
28000 "\x59\xfa\xe1\xad\xc0\x53\x09\xda"
28001 "\xc0\x2e\x9d\x24\x0e\x4b\x6e\xd7"
28002 "\x68\x32\x6a\xa0\x3c\x23\xb6\x5a"
28003 "\x90\xb1\x1f\x62\xc8\x37\x36\x88"
28004 "\xa4\x4d\x91\x12\x8d\x51\x8d\x81"
28005 "\x44\x21\xfe\xd3\x61\x8d\xea\x5b"
28006 "\x87\x24\xa9\xe9\x87\xde\x75\x77"
28007 "\xc6\xa0\xd3\xf6\x99\x8b\x32\x56"
28008 "\x47\xc6\x60\x65\xb6\x4f\xd1\x59"
28009 "\x08\xb2\xe0\x15\x3e\xcb\x2c\xd6"
28010 "\x8d\xc6\xbf\xda\x63\xe2\x04\x88"
28011 "\x30\x9f\x37\x38\x98\x1c\x3e\x7a"
28012 "\xa8\x8f\x3e\x2c\xcf\x90\x15\x6e"
28013 "\x5d\xe9\x76\xd5\xdf\xc6\x2f\xf6"
28014 "\xf5\x4a\x86\xbd\x36\x2a\xda\xdf"
28015 "\x2f\xd8\x6e\x15\x18\x6b\xe9\xdb"
28016 "\x26\x54\x6e\x60\x3b\xb8\xf9\x91"
28017 "\xc1\x1d\xc0\x4f\x26\x8b\xdf\x55"
28018 "\x47\x2f\xce\xdd\x4e\x93\x58\x3f"
28019 "\x70\xdc\xf9\x4e\x9b\x37\x5e\x4f"
28020 "\x39\xb9\x30\xe6\xce\xdb\xaf\x46"
28021 "\xca\xfa\x52\xc9\x75\x3e\xd6\x96"
28022 "\xe8\x97\xf1\xb1\x64\x31\x71\x1e"
28023 "\x9f\xb6\xff\x69\xd6\xcd\x85\x4e"
28024 "\x20\xf5\xfc\x84\x3c\xaf\xcc\x8d"
28025 "\x5b\x52\xb8\xa2\x1c\x38\x47\x82"
28026 "\x96\xff\x06\x4c\xaf\x8a\xf4\x8f"
28027 "\xf8\x15\x97\xf6\xc3\xbc\x8c\x9e"
28028 "\xc2\x06\xd9\x64\xb8\x1b\x0d\xd1"
28029 "\x53\x55\x83\x7d\xcb\x8b\x7d\x20"
28030 "\xa7\x70\xcb\xaa\x25\xae\x5a\x4f"
28031 "\xdc\x66\xad\xe4\x54\xff\x09\xef"
28032 "\x25\xcb\xac\x59\x89\x1d\x06\xcf"
28033 "\xc7\x74\xe0\x5d\xa6\xd0\x04\xb4"
28034 "\x41\x75\x34\x80\x6c\x4c\xc9\xd0"
28035 "\x51\x0c\x0f\x84\x26\x75\x69\x23"
28036 "\x81\x67\xde\xbf\x6c\x57\x8a\xc4"
28037 "\xba\x91\xba\x8c\x2c\x75\xeb\x55"
28038 "\xe5\x1b\x13\xbc\xaa\xec\x31\xdb"
28039 "\xcc\x00\x3b\xe6\x50\xd8\xc3\xcc"
28040 "\x9c\xb8\x6e\xb4\x9b\x16\xee\x74"
28041 "\x26\x51\xda\x39\xe6\x31\xa1\xb2"
28042 "\xd7\x6f\xcb\xae\x7d\x9f\x38\x7d"
28043 "\x86\x49\x2a\x16\x5c\xc0\x08\xea"
28044 "\x6b\x55\x85\x47\xbb\x90\xba\x69"
28045 "\x56\xa5\x44\x62\x5b\xe6\x3b\xcc"
28046 "\xe7\x6d\x1e\xca\x4b\xf3\x86\xe0"
28047 "\x09\x76\x51\x83\x0a\x46\x19\x61"
28048 "\xf0\xce\xe1\x06\x7d\x06\xb4\xfe"
28049 "\xd9\xd3\x64\x8e\x0f\xd9\x64\x9e"
28050 "\x74\x44\x97\x5d\x92\x7b\xe3\xcf"
28051 "\x51\x44\xe7\xf2\xe7\xc0\x0c\xc2"
28052 "\xf1\xf7\xa6\x36\x52\x2f\x7c\x09"
28053 "\xfe\x8c\x59\x77\x52\x6a\x7e\xb3"
28054 "\x2b\xb9\x17\x78\xe4\xf2\x82\x62"
28055 "\x7f\x68\x8e\x04\xb4\x8f\x60\xd2"
28056 "\xc6\x22\x1e\x0f\x3a\x8e\x3c\xb2"
28057 "\x60\xbc\xa9\xb3\xda\xbd\x50\xe4"
28058 "\x33\x98\xdd\x6f\xe9\x3b\x77\x57"
28059 "\xeb\x7c\x8f\xbc\xfc\x34\x34\xb9"
28060 "\x40\x31\x67\xcf\xfe\x22\x20\xa5"
28061 "\x97\xe8\x4c\xa2\xc3\x94\xc6\x28"
28062 "\xa6\x24\xe5\xa6\xb5\xd8\x24\xef"
28063 "\x16\xa1\xc9\xe5\x92\xe6\x8c\x45"
28064 "\x24\x24\x51\x22\x1e\xad\xef\x2f"
28065 "\xb6\xbe\xfc\x92\x20\xac\x45\xe6"
28066 "\xc0\xb0\xc8\xfb\x21\x34\xd4\x05"
28067 "\x54\xb3\x99\xa4\xfe\xa9\xd5\xb5"
28068 "\x3b\x72\x83\xf6\xe2\xf9\x88\x0e"
28069 "\x20\x80\x3e\x4e\x8f\xa1\x75\x69"
28070 "\x43\x5a\x7c\x38\x62\x51\xb5\xb7"
28071 "\x84\x95\x3f\x6d\x24\xcc\xfd\x4b"
28072 "\x4a\xaa\x97\x83\x6d\x16\xa8\xc5"
28073 "\x18\xd9\xb9\xfe\xe2\x3f\xe8\xbd"
28074 "\x37\x44\xdf\x79\x3b\x34\x19\x1a"
28075 "\x65\x5e\xc7\x61\x1f\x17\x5e\x84"
28076 "\x20\x72\x32\x98\x8c\x9e\xac\x1f"
28077 "\x6e\x32\xae\x86\x46\x4f\x0f\x64"
28078 "\x3f\xce\x96\xe6\x02\x41\x53\x1f"
28079 "\x35\x30\x57\x7f\xfe\xb7\x47\xb9"
28080 "\x0c\x2f\x14\x34\x9b\x1c\x88\x17"
28081 "\xb5\xe5\x94\x17\x3e\xdc\x4d\x49"
28082 "\xe1\x5d\x75\x3e\xa6\x16\x42\xd4"
28083 "\x59\xb5\x24\x7c\x4c\x54\x1c\xf9"
28084 "\xd6\xed\x69\x22\x5f\x74\xc9\xa9"
28085 "\x7c\xb8\x09\xa7\xf9\x2b\x0d\x5f"
28086 "\x42\xff\x4e\x57\xde\x0c\x67\x45"
28087 "\xa4\x6e\xa0\x7e\x28\x34\xc5\xfe"
28088 "\x58\x7e\xda\xec\x9f\x0b\x31\x2a"
28089 "\x1f\x1b\x98\xad\x14\xcf\x9f\x96"
28090 "\xf8\x87\x0e\x14\x19\x81\x23\x53"
28091 "\x5f\x38\x08\xd9\xc1\xcb\xb2\xc5"
28092 "\x19\x72\x75\x01\xd4\xcf\xd9\x91"
28093 "\xfc\x48\xcc\xa3\x3c\xe6\x4c\xc6"
28094 "\x73\xde\x5e\x90\xce\x6c\x85\x43"
28095 "\x0d\xdf\xe3\x8c\x02\x62\xef\xac"
28096 "\xb8\x05\x80\x81\xf6\x22\x30\xad"
28097 "\x30\xa8\xcb\x55\x1e\xe6\x05\x7f"
28098 "\xc5\x58\x1a\x78\xb7\x2f\x8e\x3c"
28099 "\x80\x09\xca\xa2\x9a\x72\xeb\x10"
28100 "\x84\x54\xaa\x98\x35\x5e\xb1\xc2"
28101 "\xb7\x73\x14\x69\xef\xf8\x28\x43"
28102 "\x36\xd3\x10\x0a\xd6\x69\xf8\xc8"
28103 "\xbb\xe9\xe9\xf9\x29\x52\xf8\x6f"
28104 "\x12\x78\xf9\xc6\xb2\x12\xfd\x39"
28105 "\xa9\xeb\xe2\x47\xb9\x22\xc5\x8f"
28106 "\x4d\xb1\x17\x40\x02\x84\xed\x53"
28107 "\xc5\xfa\xc1\xcd\x59\x56\x93\xaa"
28108 "\x3f\x23\x3f\x02\xb7\xe9\x6e\xa0"
28109 "\xbc\x96\xb8\xb2\xf8\x04\x19\x87"
28110 "\xe9\x4f\x29\xbf\x3a\xcb\x6d\x48"
28111 "\xc9\xe7\x1f\xb7\xa8\xf8\xd4\xb4"
28112 "\x6d\x0f\xb4\xf6\x44\x11\x0f\xf7"
28113 "\x3d\xd2\x36\x05\x67\xa1\x46\x81"
28114 "\x90\xe9\x60\x64\xfa\x52\x87\x37"
28115 "\x44\x01\xbd\x58\xe1\xda\xda\x1e"
28116 "\xa7\x09\xf7\x43\x31\x2b\x4b\x55"
28117 "\xbd\x0d\x53\x7f\x12\x6c\xf5\x07"
28118 "\xfc\x61\xda\xd6\x0a\xbd\x89\x5f"
28119 "\x2c\xf5\xa8\x1f\x0d\x60\xe4\x3c"
28120 "\x5d\x94\x8a\x1f\x64\xce\xd5\x16"
28121 "\x73\xbc\xbe\xb1\x85\x28\xcb\x0b"
28122 "\x47\x5c\x1f\x66\x25\x89\x61\x6a"
28123 "\xa7\xcd\xf8\x1b\x31\x88\x42\x71"
28124 "\x58\x65\x53\xd5\xc0\xa3\x56\x2e"
28125 "\xb6\x86\x9e\x13\x78\x34\x36\x85"
28126 "\xbb\xce\x6e\x54\x33\xb9\x97\xc5"
28127 "\x72\xb8\xe0\x13\x34\x04\xbf\x83"
28128 "\xbf\x78\x1d\x7c\x23\x34\x90\xe0"
28129 "\x57\xd4\x3f\xc6\x61\xe3\xca\x96"
28130 "\x13\xdd\x9e\x20\x51\x18\x73\x37"
28131 "\x69\x37\xfb\xe5\x60\x1f\xf2\xa1"
28132 "\xef\xa2\x6e\x16\x32\x8e\xc3\xb6"
28133 "\x21\x5e\xc2\x1c\xb6\xc6\x96\x72"
28134 "\x4f\xa6\x85\x69\xa9\x5d\xb2\x2e"
28135 "\xac\xfe\x6e\xc3\xe7\xb3\x51\x08"
28136 "\x66\x2a\xac\x59\xb3\x73\x86\xae"
28137 "\x6d\x85\x97\x37\x68\xef\xa7\x85"
28138 "\xb7\xdd\xdd\xd9\x85\xc9\x57\x01"
28139 "\x10\x2b\x9a\x1e\x44\x12\x87\xa5"
28140 "\x60\x1f\x88\xae\xbf\x14\x2d\x05"
28141 "\x4c\x60\x85\x8a\x45\xac\x0f\xc2",
28142 .len = 4096,
Eric Biggers059c2a42018-11-16 17:26:31 -080028143 }
28144};
28145
28146/* Adiantum with XChaCha20 instead of XChaCha12 */
28147/* Test vectors from https://github.com/google/adiantum */
28148static const struct cipher_testvec adiantum_xchacha20_aes_tv_template[] = {
28149 {
28150 .key = "\x9e\xeb\xb2\x49\x3c\x1c\xf5\xf4"
28151 "\x6a\x99\xc2\xc4\xdf\xb1\xf4\xdd"
28152 "\x75\x20\x57\xea\x2c\x4f\xcd\xb2"
28153 "\xa5\x3d\x7b\x49\x1e\xab\xfd\x0f",
28154 .klen = 32,
28155 .iv = "\xdf\x63\xd4\xab\xd2\x49\xf3\xd8"
28156 "\x33\x81\x37\x60\x7d\xfa\x73\x08"
28157 "\xd8\x49\x6d\x80\xe8\x2f\x62\x54"
28158 "\xeb\x0e\xa9\x39\x5b\x45\x7f\x8a",
28159 .ptext = "\x67\xc9\xf2\x30\x84\x41\x8e\x43"
28160 "\xfb\xf3\xb3\x3e\x79\x36\x7f\xe8",
28161 .ctext = "\xf6\x78\x97\xd6\xaa\x94\x01\x27"
28162 "\x2e\x4d\x83\xe0\x6e\x64\x9a\xdf",
28163 .len = 16,
Eric Biggers059c2a42018-11-16 17:26:31 -080028164 }, {
28165 .key = "\x36\x2b\x57\x97\xf8\x5d\xcd\x99"
28166 "\x5f\x1a\x5a\x44\x1d\x92\x0f\x27"
28167 "\xcc\x16\xd7\x2b\x85\x63\x99\xd3"
28168 "\xba\x96\xa1\xdb\xd2\x60\x68\xda",
28169 .klen = 32,
28170 .iv = "\xef\x58\x69\xb1\x2c\x5e\x9a\x47"
28171 "\x24\xc1\xb1\x69\xe1\x12\x93\x8f"
28172 "\x43\x3d\x6d\x00\xdb\x5e\xd8\xd9"
28173 "\x12\x9a\xfe\xd9\xff\x2d\xaa\xc4",
28174 .ptext = "\x5e\xa8\x68\x19\x85\x98\x12\x23"
28175 "\x26\x0a\xcc\xdb\x0a\x04\xb9\xdf"
28176 "\x4d\xb3\x48\x7b\xb0\xe3\xc8\x19"
28177 "\x43\x5a\x46\x06\x94\x2d\xf2",
28178 .ctext = "\x4b\xb8\x90\x10\xdf\x7f\x64\x08"
28179 "\x0e\x14\x42\x5f\x00\x74\x09\x36"
28180 "\x57\x72\xb5\xfd\xb5\x5d\xb8\x28"
28181 "\x0c\x04\x91\x14\x91\xe9\x37",
28182 .len = 31,
Eric Biggers059c2a42018-11-16 17:26:31 -080028183 }, {
28184 .key = "\xa5\x28\x24\x34\x1a\x3c\xd8\xf7"
28185 "\x05\x91\x8f\xee\x85\x1f\x35\x7f"
28186 "\x80\x3d\xfc\x9b\x94\xf6\xfc\x9e"
28187 "\x19\x09\x00\xa9\x04\x31\x4f\x11",
28188 .klen = 32,
28189 .iv = "\xa1\xba\x49\x95\xff\x34\x6d\xb8"
28190 "\xcd\x87\x5d\x5e\xfd\xea\x85\xdb"
28191 "\x8a\x7b\x5e\xb2\x5d\x57\xdd\x62"
28192 "\xac\xa9\x8c\x41\x42\x94\x75\xb7",
28193 .ptext = "\x69\xb4\xe8\x8c\x37\xe8\x67\x82"
28194 "\xf1\xec\x5d\x04\xe5\x14\x91\x13"
28195 "\xdf\xf2\x87\x1b\x69\x81\x1d\x71"
28196 "\x70\x9e\x9c\x3b\xde\x49\x70\x11"
28197 "\xa0\xa3\xdb\x0d\x54\x4f\x66\x69"
28198 "\xd7\xdb\x80\xa7\x70\x92\x68\xce"
28199 "\x81\x04\x2c\xc6\xab\xae\xe5\x60"
28200 "\x15\xe9\x6f\xef\xaa\x8f\xa7\xa7"
28201 "\x63\x8f\xf2\xf0\x77\xf1\xa8\xea"
28202 "\xe1\xb7\x1f\x9e\xab\x9e\x4b\x3f"
28203 "\x07\x87\x5b\x6f\xcd\xa8\xaf\xb9"
28204 "\xfa\x70\x0b\x52\xb8\xa8\xa7\x9e"
28205 "\x07\x5f\xa6\x0e\xb3\x9b\x79\x13"
28206 "\x79\xc3\x3e\x8d\x1c\x2c\x68\xc8"
28207 "\x51\x1d\x3c\x7b\x7d\x79\x77\x2a"
28208 "\x56\x65\xc5\x54\x23\x28\xb0\x03",
28209 .ctext = "\xb1\x8b\xa0\x05\x77\xa8\x4d\x59"
28210 "\x1b\x8e\x21\xfc\x3a\x49\xfa\xd4"
28211 "\xeb\x36\xf3\xc4\xdf\xdc\xae\x67"
28212 "\x07\x3f\x70\x0e\xe9\x66\xf5\x0c"
28213 "\x30\x4d\x66\xc9\xa4\x2f\x73\x9c"
28214 "\x13\xc8\x49\x44\xcc\x0a\x90\x9d"
28215 "\x7c\xdd\x19\x3f\xea\x72\x8d\x58"
28216 "\xab\xe7\x09\x2c\xec\xb5\x44\xd2"
28217 "\xca\xa6\x2d\x7a\x5c\x9c\x2b\x15"
28218 "\xec\x2a\xa6\x69\x91\xf9\xf3\x13"
28219 "\xf7\x72\xc1\xc1\x40\xd5\xe1\x94"
28220 "\xf4\x29\xa1\x3e\x25\x02\xa8\x3e"
28221 "\x94\xc1\x91\x14\xa1\x14\xcb\xbe"
28222 "\x67\x4c\xb9\x38\xfe\xa7\xaa\x32"
28223 "\x29\x62\x0d\xb2\xf6\x3c\x58\x57"
28224 "\xc1\xd5\x5a\xbb\xd6\xa6\x2a\xe5",
28225 .len = 128,
Eric Biggers059c2a42018-11-16 17:26:31 -080028226 }, {
28227 .key = "\xd3\x81\x72\x18\x23\xff\x6f\x4a"
28228 "\x25\x74\x29\x0d\x51\x8a\x0e\x13"
28229 "\xc1\x53\x5d\x30\x8d\xee\x75\x0d"
28230 "\x14\xd6\x69\xc9\x15\xa9\x0c\x60",
28231 .klen = 32,
28232 .iv = "\x65\x9b\xd4\xa8\x7d\x29\x1d\xf4"
28233 "\xc4\xd6\x9b\x6a\x28\xab\x64\xe2"
28234 "\x62\x81\x97\xc5\x81\xaa\xf9\x44"
28235 "\xc1\x72\x59\x82\xaf\x16\xc8\x2c",
28236 .ptext = "\xc7\x6b\x52\x6a\x10\xf0\xcc\x09"
28237 "\xc1\x12\x1d\x6d\x21\xa6\x78\xf5"
28238 "\x05\xa3\x69\x60\x91\x36\x98\x57"
28239 "\xba\x0c\x14\xcc\xf3\x2d\x73\x03"
28240 "\xc6\xb2\x5f\xc8\x16\x27\x37\x5d"
28241 "\xd0\x0b\x87\xb2\x50\x94\x7b\x58"
28242 "\x04\xf4\xe0\x7f\x6e\x57\x8e\xc9"
28243 "\x41\x84\xc1\xb1\x7e\x4b\x91\x12"
28244 "\x3a\x8b\x5d\x50\x82\x7b\xcb\xd9"
28245 "\x9a\xd9\x4e\x18\x06\x23\x9e\xd4"
28246 "\xa5\x20\x98\xef\xb5\xda\xe5\xc0"
28247 "\x8a\x6a\x83\x77\x15\x84\x1e\xae"
28248 "\x78\x94\x9d\xdf\xb7\xd1\xea\x67"
28249 "\xaa\xb0\x14\x15\xfa\x67\x21\x84"
28250 "\xd3\x41\x2a\xce\xba\x4b\x4a\xe8"
28251 "\x95\x62\xa9\x55\xf0\x80\xad\xbd"
28252 "\xab\xaf\xdd\x4f\xa5\x7c\x13\x36"
28253 "\xed\x5e\x4f\x72\xad\x4b\xf1\xd0"
28254 "\x88\x4e\xec\x2c\x88\x10\x5e\xea"
28255 "\x12\xc0\x16\x01\x29\xa3\xa0\x55"
28256 "\xaa\x68\xf3\xe9\x9d\x3b\x0d\x3b"
28257 "\x6d\xec\xf8\xa0\x2d\xf0\x90\x8d"
28258 "\x1c\xe2\x88\xd4\x24\x71\xf9\xb3"
28259 "\xc1\x9f\xc5\xd6\x76\x70\xc5\x2e"
28260 "\x9c\xac\xdb\x90\xbd\x83\x72\xba"
28261 "\x6e\xb5\xa5\x53\x83\xa9\xa5\xbf"
28262 "\x7d\x06\x0e\x3c\x2a\xd2\x04\xb5"
28263 "\x1e\x19\x38\x09\x16\xd2\x82\x1f"
28264 "\x75\x18\x56\xb8\x96\x0b\xa6\xf9"
28265 "\xcf\x62\xd9\x32\x5d\xa9\xd7\x1d"
28266 "\xec\xe4\xdf\x1b\xbe\xf1\x36\xee"
28267 "\xe3\x7b\xb5\x2f\xee\xf8\x53\x3d"
28268 "\x6a\xb7\x70\xa9\xfc\x9c\x57\x25"
28269 "\xf2\x89\x10\xd3\xb8\xa8\x8c\x30"
28270 "\xae\x23\x4f\x0e\x13\x66\x4f\xe1"
28271 "\xb6\xc0\xe4\xf8\xef\x93\xbd\x6e"
28272 "\x15\x85\x6b\xe3\x60\x81\x1d\x68"
28273 "\xd7\x31\x87\x89\x09\xab\xd5\x96"
28274 "\x1d\xf3\x6d\x67\x80\xca\x07\x31"
28275 "\x5d\xa7\xe4\xfb\x3e\xf2\x9b\x33"
28276 "\x52\x18\xc8\x30\xfe\x2d\xca\x1e"
28277 "\x79\x92\x7a\x60\x5c\xb6\x58\x87"
28278 "\xa4\x36\xa2\x67\x92\x8b\xa4\xb7"
28279 "\xf1\x86\xdf\xdc\xc0\x7e\x8f\x63"
28280 "\xd2\xa2\xdc\x78\xeb\x4f\xd8\x96"
28281 "\x47\xca\xb8\x91\xf9\xf7\x94\x21"
28282 "\x5f\x9a\x9f\x5b\xb8\x40\x41\x4b"
28283 "\x66\x69\x6a\x72\xd0\xcb\x70\xb7"
28284 "\x93\xb5\x37\x96\x05\x37\x4f\xe5"
28285 "\x8c\xa7\x5a\x4e\x8b\xb7\x84\xea"
28286 "\xc7\xfc\x19\x6e\x1f\x5a\xa1\xac"
28287 "\x18\x7d\x52\x3b\xb3\x34\x62\x99"
28288 "\xe4\x9e\x31\x04\x3f\xc0\x8d\x84"
28289 "\x17\x7c\x25\x48\x52\x67\x11\x27"
28290 "\x67\xbb\x5a\x85\xca\x56\xb2\x5c"
28291 "\xe6\xec\xd5\x96\x3d\x15\xfc\xfb"
28292 "\x22\x25\xf4\x13\xe5\x93\x4b\x9a"
28293 "\x77\xf1\x52\x18\xfa\x16\x5e\x49"
28294 "\x03\x45\xa8\x08\xfa\xb3\x41\x92"
28295 "\x79\x50\x33\xca\xd0\xd7\x42\x55"
28296 "\xc3\x9a\x0c\x4e\xd9\xa4\x3c\x86"
28297 "\x80\x9f\x53\xd1\xa4\x2e\xd1\xbc"
28298 "\xf1\x54\x6e\x93\xa4\x65\x99\x8e"
28299 "\xdf\x29\xc0\x64\x63\x07\xbb\xea",
28300 .ctext = "\xe0\x33\xf6\xe0\xb4\xa5\xdd\x2b"
28301 "\xdd\xce\xfc\x12\x1e\xfc\x2d\xf2"
28302 "\x8b\xc7\xeb\xc1\xc4\x2a\xe8\x44"
28303 "\x0f\x3d\x97\x19\x2e\x6d\xa2\x38"
28304 "\x9d\xa6\xaa\xe1\x96\xb9\x08\xe8"
28305 "\x0b\x70\x48\x5c\xed\xb5\x9b\xcb"
28306 "\x8b\x40\x88\x7e\x69\x73\xf7\x16"
28307 "\x71\xbb\x5b\xfc\xa3\x47\x5d\xa6"
28308 "\xae\x3a\x64\xc4\xe7\xb8\xa8\xe7"
28309 "\xb1\x32\x19\xdb\xe3\x01\xb8\xf0"
28310 "\xa4\x86\xb4\x4c\xc2\xde\x5c\xd2"
28311 "\x6c\x77\xd2\xe8\x18\xb7\x0a\xc9"
28312 "\x3d\x53\xb5\xc4\x5c\xf0\x8c\x06"
28313 "\xdc\x90\xe0\x74\x47\x1b\x0b\xf6"
28314 "\xd2\x71\x6b\xc4\xf1\x97\x00\x2d"
28315 "\x63\x57\x44\x1f\x8c\xf4\xe6\x9b"
28316 "\xe0\x7a\xdd\xec\x32\x73\x42\x32"
28317 "\x7f\x35\x67\x60\x0d\xcf\x10\x52"
28318 "\x61\x22\x53\x8d\x8e\xbb\x33\x76"
28319 "\x59\xd9\x10\xce\xdf\xef\xc0\x41"
28320 "\xd5\x33\x29\x6a\xda\x46\xa4\x51"
28321 "\xf0\x99\x3d\x96\x31\xdd\xb5\xcb"
28322 "\x3e\x2a\x1f\xc7\x5c\x79\xd3\xc5"
28323 "\x20\xa1\xb1\x39\x1b\xc6\x0a\x70"
28324 "\x26\x39\x95\x07\xad\x7a\xc9\x69"
28325 "\xfe\x81\xc7\x88\x08\x38\xaf\xad"
28326 "\x9e\x8d\xfb\xe8\x24\x0d\x22\xb8"
28327 "\x0e\xed\xbe\x37\x53\x7c\xa6\xc6"
28328 "\x78\x62\xec\xa3\x59\xd9\xc6\x9d"
28329 "\xb8\x0e\x69\x77\x84\x2d\x6a\x4c"
28330 "\xc5\xd9\xb2\xa0\x2b\xa8\x80\xcc"
28331 "\xe9\x1e\x9c\x5a\xc4\xa1\xb2\x37"
28332 "\x06\x9b\x30\x32\x67\xf7\xe7\xd2"
28333 "\x42\xc7\xdf\x4e\xd4\xcb\xa0\x12"
28334 "\x94\xa1\x34\x85\x93\x50\x4b\x0a"
28335 "\x3c\x7d\x49\x25\x01\x41\x6b\x96"
28336 "\xa9\x12\xbb\x0b\xc0\xd7\xd0\x93"
28337 "\x1f\x70\x38\xb8\x21\xee\xf6\xa7"
28338 "\xee\xeb\xe7\x81\xa4\x13\xb4\x87"
28339 "\xfa\xc1\xb0\xb5\x37\x8b\x74\xa2"
28340 "\x4e\xc7\xc2\xad\x3d\x62\x3f\xf8"
28341 "\x34\x42\xe5\xae\x45\x13\x63\xfe"
28342 "\xfc\x2a\x17\x46\x61\xa9\xd3\x1c"
28343 "\x4c\xaf\xf0\x09\x62\x26\x66\x1e"
28344 "\x74\xcf\xd6\x68\x3d\x7d\xd8\xb7"
28345 "\xe7\xe6\xf8\xf0\x08\x20\xf7\x47"
28346 "\x1c\x52\xaa\x0f\x3e\x21\xa3\xf2"
28347 "\xbf\x2f\x95\x16\xa8\xc8\xc8\x8c"
28348 "\x99\x0f\x5d\xfb\xfa\x2b\x58\x8a"
28349 "\x7e\xd6\x74\x02\x60\xf0\xd0\x5b"
28350 "\x65\xa8\xac\xea\x8d\x68\x46\x34"
28351 "\x26\x9d\x4f\xb1\x9a\x8e\xc0\x1a"
28352 "\xf1\xed\xc6\x7a\x83\xfd\x8a\x57"
28353 "\xf2\xe6\xe4\xba\xfc\xc6\x3c\xad"
28354 "\x5b\x19\x50\x2f\x3a\xcc\x06\x46"
28355 "\x04\x51\x3f\x91\x97\xf0\xd2\x07"
28356 "\xe7\x93\x89\x7e\xb5\x32\x0f\x03"
28357 "\xe5\x58\x9e\x74\x72\xeb\xc2\x38"
28358 "\x00\x0c\x91\x72\x69\xed\x7d\x6d"
28359 "\xc8\x71\xf0\xec\xff\x80\xd9\x1c"
28360 "\x9e\xd2\xfa\x15\xfc\x6c\x4e\xbc"
28361 "\xb1\xa6\xbd\xbd\x70\x40\xca\x20"
28362 "\xb8\x78\xd2\xa3\xc6\xf3\x79\x9c"
28363 "\xc7\x27\xe1\x6a\x29\xad\xa4\x03",
28364 .len = 512,
Eric Biggers333e66472019-02-14 10:29:39 -080028365 }, {
28366 .key = "\xeb\xe5\x11\x3a\x72\xeb\x10\xbe"
28367 "\x70\xcf\xe3\xea\xc2\x74\xa4\x48"
28368 "\x29\x0f\x8f\x3f\xcf\x4c\x28\x2a"
28369 "\x4e\x1e\x3c\xc3\x27\x9f\x16\x13",
28370 .klen = 32,
28371 .iv = "\x84\x3e\xa2\x7c\x06\x72\xb2\xad"
28372 "\x88\x76\x65\xb4\x1a\x29\x27\x12"
28373 "\x45\xb6\x8d\x0e\x4b\x87\x04\xfc"
28374 "\xb5\xcd\x1c\x4d\xe8\x06\xf1\xcb",
28375 .ptext = "\x8e\xb6\x07\x9b\x7c\xe4\xa4\xa2"
28376 "\x41\x6c\x24\x1d\xc0\x77\x4e\xd9"
28377 "\x4a\xa4\x2c\xb6\xe4\x55\x02\x7f"
28378 "\xc4\xec\xab\xc2\x5c\x63\x40\x92"
28379 "\x38\x24\x62\xdb\x65\x82\x10\x7f"
28380 "\x21\xa5\x39\x3a\x3f\x38\x7e\xad"
28381 "\x6c\x7b\xc9\x3f\x89\x8f\xa8\x08"
28382 "\xbd\x31\x57\x3c\x7a\x45\x67\x30"
28383 "\xa9\x27\x58\x34\xbe\xe3\xa4\xc3"
28384 "\xff\xc2\x9f\x43\xf0\x04\xba\x1e"
28385 "\xb6\xf3\xc4\xce\x09\x7a\x2e\x42"
28386 "\x7d\xad\x97\xc9\x77\x9a\x3a\x78"
28387 "\x6c\xaf\x7c\x2a\x46\xb4\x41\x86"
28388 "\x1a\x20\xf2\x5b\x1a\x60\xc9\xc4"
28389 "\x47\x5d\x10\xa4\xd2\x15\x6a\x19"
28390 "\x4f\xd5\x51\x37\xd5\x06\x70\x1a"
28391 "\x3e\x78\xf0\x2e\xaa\xb5\x2a\xbd"
28392 "\x83\x09\x7c\xcb\x29\xac\xd7\x9c"
28393 "\xbf\x80\xfd\x9d\xd4\xcf\x64\xca"
28394 "\xf8\xc9\xf1\x77\x2e\xbb\x39\x26"
28395 "\xac\xd9\xbe\xce\x24\x7f\xbb\xa2"
28396 "\x82\xba\xeb\x5f\x65\xc5\xf1\x56"
28397 "\x8a\x52\x02\x4d\x45\x23\x6d\xeb"
28398 "\xb0\x60\x7b\xd8\x6e\xb2\x98\xd2"
28399 "\xaf\x76\xf2\x33\x9b\xf3\xbb\x95"
28400 "\xc0\x50\xaa\xc7\x47\xf6\xb3\xf3"
28401 "\x77\x16\xcb\x14\x95\xbf\x1d\x32"
28402 "\x45\x0c\x75\x52\x2c\xe8\xd7\x31"
28403 "\xc0\x87\xb0\x97\x30\x30\xc5\x5e"
28404 "\x50\x70\x6e\xb0\x4b\x4e\x38\x19"
28405 "\x46\xca\x38\x6a\xca\x7d\xfe\x05"
28406 "\xc8\x80\x7c\x14\x6c\x24\xb5\x42"
28407 "\x28\x04\x4c\xff\x98\x20\x08\x10"
28408 "\x90\x31\x03\x78\xd8\xa1\xe6\xf9"
28409 "\x52\xc2\xfc\x3e\xa7\x68\xce\xeb"
28410 "\x59\x5d\xeb\xd8\x64\x4e\xf8\x8b"
28411 "\x24\x62\xcf\x17\x36\x84\xc0\x72"
28412 "\x60\x4f\x3e\x47\xda\x72\x3b\x0e"
28413 "\xce\x0b\xa9\x9c\x51\xdc\xa5\xb9"
28414 "\x71\x73\x08\x4e\x22\x31\xfd\x88"
28415 "\x29\xfc\x8d\x17\x3a\x7a\xe5\xb9"
28416 "\x0b\x9c\x6d\xdb\xce\xdb\xde\x81"
28417 "\x73\x5a\x16\x9d\x3c\x72\x88\x51"
28418 "\x10\x16\xf3\x11\x6e\x32\x5f\x4c"
28419 "\x87\xce\x88\x2c\xd2\xaf\xf5\xb7"
28420 "\xd8\x22\xed\xc9\xae\x68\x7f\xc5"
28421 "\x30\x62\xbe\xc9\xe0\x27\xa1\xb5"
28422 "\x57\x74\x36\x60\xb8\x6b\x8c\xec"
28423 "\x14\xad\xed\x69\xc9\xd8\xa5\x5b"
28424 "\x38\x07\x5b\xf3\x3e\x74\x48\x90"
28425 "\x61\x17\x23\xdd\x44\xbc\x9d\x12"
28426 "\x0a\x3a\x63\xb2\xab\x86\xb8\x67"
28427 "\x85\xd6\xb2\x5d\xde\x4a\xc1\x73"
28428 "\x2a\x7c\x53\x8e\xd6\x7d\x0e\xe4"
28429 "\x3b\xab\xc5\x3d\x32\x79\x18\xb7"
28430 "\xd6\x50\x4d\xf0\x8a\x37\xbb\xd3"
28431 "\x8d\xd8\x08\xd7\x7d\xaa\x24\x52"
28432 "\xf7\x90\xe3\xaa\xd6\x49\x7a\x47"
28433 "\xec\x37\xad\x74\x8b\xc1\xb7\xfe"
28434 "\x4f\x70\x14\x62\x22\x8c\x63\xc2"
28435 "\x1c\x4e\x38\xc3\x63\xb7\xbf\x53"
28436 "\xbd\x1f\xac\xa6\x94\xc5\x81\xfa"
28437 "\xe0\xeb\x81\xe9\xd9\x1d\x32\x3c"
28438 "\x85\x12\xca\x61\x65\xd1\x66\xd8"
28439 "\xe2\x0e\xc3\xa3\xff\x0d\xd3\xee"
28440 "\xdf\xcc\x3e\x01\xf5\x9b\x45\x5c"
28441 "\x33\xb5\xb0\x8d\x36\x1a\xdf\xf8"
28442 "\xa3\x81\xbe\xdb\x3d\x4b\xf6\xc6"
28443 "\xdf\x7f\xb0\x89\xbd\x39\x32\x50"
28444 "\xbb\xb2\xe3\x5c\xbb\x4b\x18\x98"
28445 "\x08\x66\x51\xe7\x4d\xfb\xfc\x4e"
28446 "\x22\x42\x6f\x61\xdb\x7f\x27\x88"
28447 "\x29\x3f\x02\xa9\xc6\x83\x30\xcc"
28448 "\x8b\xd5\x64\x7b\x7c\x76\x16\xbe"
28449 "\xb6\x8b\x26\xb8\x83\x16\xf2\x6b"
28450 "\xd1\xdc\x20\x6b\x42\x5a\xef\x7a"
28451 "\xa9\x60\xb8\x1a\xd3\x0d\x4e\xcb"
28452 "\x75\x6b\xc5\x80\x43\x38\x7f\xad"
28453 "\x9c\x56\xd9\xc4\xf1\x01\x74\xf0"
28454 "\x16\x53\x8d\x69\xbe\xf2\x5d\x92"
28455 "\x34\x38\xc8\x84\xf9\x1a\xfc\x26"
28456 "\x16\xcb\xae\x7d\x38\x21\x67\x74"
28457 "\x4c\x40\xaa\x6b\x97\xe0\xb0\x2f"
28458 "\xf5\x3e\xf6\xe2\x24\xc8\x22\xa4"
28459 "\xa8\x88\x27\x86\x44\x75\x5b\x29"
28460 "\x34\x08\x4b\xa1\xfe\x0c\x26\xe5"
28461 "\xac\x26\xf6\x21\x0c\xfb\xde\x14"
28462 "\xfe\xd7\xbe\xee\x48\x93\xd6\x99"
28463 "\x56\x9c\xcf\x22\xad\xa2\x53\x41"
28464 "\xfd\x58\xa1\x68\xdc\xc4\xef\x20"
28465 "\xa1\xee\xcf\x2b\x43\xb6\x57\xd8"
28466 "\xfe\x01\x80\x25\xdf\xd2\x35\x44"
28467 "\x0d\x15\x15\xc3\xfc\x49\xbf\xd0"
28468 "\xbf\x2f\x95\x81\x09\xa6\xb6\xd7"
28469 "\x21\x03\xfe\x52\xb7\xa8\x32\x4d"
28470 "\x75\x1e\x46\x44\xbc\x2b\x61\x04"
28471 "\x1b\x1c\xeb\x39\x86\x8f\xe9\x49"
28472 "\xce\x78\xa5\x5e\x67\xc5\xe9\xef"
28473 "\x43\xf8\xf1\x35\x22\x43\x61\xc1"
28474 "\x27\xb5\x09\xb2\xb8\xe1\x5e\x26"
28475 "\xcc\xf3\x6f\xb2\xb7\x55\x30\x98"
28476 "\x87\xfc\xe7\xa8\xc8\x94\x86\xa1"
28477 "\xd9\xa0\x3c\x74\x16\xb3\x25\x98"
28478 "\xba\xc6\x84\x4a\x27\xa6\x58\xfe"
28479 "\xe1\x68\x04\x30\xc8\xdb\x44\x52"
28480 "\x4e\xb2\xa4\x6f\xf7\x63\xf2\xd6"
28481 "\x63\x36\x17\x04\xf8\x06\xdb\xeb"
28482 "\x99\x17\xa5\x1b\x61\x90\xa3\x9f"
28483 "\x05\xae\x3e\xe4\xdb\xc8\x1c\x8e"
28484 "\x77\x27\x88\xdf\xd3\x22\x5a\xc5"
28485 "\x9c\xd6\x22\xf8\xc4\xd8\x92\x9d"
28486 "\x16\xcc\x54\x25\x3b\x6f\xdb\xc0"
28487 "\x78\xd8\xe3\xb3\x03\x69\xd7\x5d"
28488 "\xf8\x08\x04\x63\x61\x9d\x76\xf9"
28489 "\xad\x1d\xc4\x30\x9f\x75\x89\x6b"
28490 "\xfb\x62\xba\xae\xcb\x1b\x6c\xe5"
28491 "\x7e\xea\x58\x6b\xae\xce\x9b\x48"
28492 "\x4b\x80\xd4\x5e\x71\x53\xa7\x24"
28493 "\x73\xca\xf5\x3e\xbb\x5e\xd3\x1c"
28494 "\x33\xe3\xec\x5b\xa0\x32\x9d\x25"
28495 "\x0e\x0c\x28\x29\x39\x51\xc5\x70"
28496 "\xec\x60\x8f\x77\xfc\x06\x7a\x33"
28497 "\x19\xd5\x7a\x6e\x94\xea\xa3\xeb"
28498 "\x13\xa4\x2e\x09\xd8\x81\x65\x83"
28499 "\x03\x63\x8b\xb5\xc9\x89\x98\x73"
28500 "\x69\x53\x8e\xab\xf1\xd2\x2f\x67"
28501 "\xbd\xa6\x16\x6e\xd0\x8b\xc1\x25"
28502 "\x93\xd2\x50\x7c\x1f\xe1\x11\xd0"
28503 "\x58\x0d\x2f\x72\xe7\x5e\xdb\xa2"
28504 "\x55\x9a\xe0\x09\x21\xac\x61\x85"
28505 "\x4b\x20\x95\x73\x63\x26\xe3\x83"
28506 "\x4b\x5b\x40\x03\x14\xb0\x44\x16"
28507 "\xbd\xe0\x0e\xb7\x66\x56\xd7\x30"
28508 "\xb3\xfd\x8a\xd3\xda\x6a\xa7\x3d"
28509 "\x98\x09\x11\xb7\x00\x06\x24\x5a"
28510 "\xf7\x42\x94\xa6\x0e\xb1\x6d\x48"
28511 "\x74\xb1\xa7\xe6\x92\x0a\x15\x9a"
28512 "\xf5\xfa\x55\x1a\x6c\xdd\x71\x08"
28513 "\xd0\xf7\x8d\x0e\x7c\x67\x4d\xc6"
28514 "\xe6\xde\x78\x88\x88\x3c\x5e\x23"
28515 "\x46\xd2\x25\xa4\xfb\xa3\x26\x3f"
28516 "\x2b\xfd\x9c\x20\xda\x72\xe1\x81"
28517 "\x8f\xe6\xae\x08\x1d\x67\x15\xde"
28518 "\x86\x69\x1d\xc6\x1e\x6d\xb7\x5c"
28519 "\xdd\x43\x72\x5a\x7d\xa7\xd8\xd7"
28520 "\x1e\x66\xc5\x90\xf6\x51\x76\x91"
28521 "\xb3\xe3\x39\x81\x75\x08\xfa\xc5"
28522 "\x06\x70\x69\x1b\x2c\x20\x74\xe0"
28523 "\x53\xb0\x0c\x9d\xda\xa9\x5b\xdd"
28524 "\x1c\x38\x6c\x9e\x3b\xc4\x7a\x82"
28525 "\x93\x9e\xbb\x75\xfb\x19\x4a\x55"
28526 "\x65\x7a\x3c\xda\xcb\x66\x5c\x13"
28527 "\x17\x97\xe8\xbd\xae\x24\xd9\x76"
28528 "\xfb\x8c\x73\xde\xbd\xb4\x1b\xe0"
28529 "\xb9\x2c\xe8\xe0\x1d\x3f\xa8\x2c"
28530 "\x1e\x81\x5b\x77\xe7\xdf\x6d\x06"
28531 "\x7c\x9a\xf0\x2b\x5d\xfc\x86\xd5"
28532 "\xb1\xad\xbc\xa8\x73\x48\x61\x67"
28533 "\xd6\xba\xc8\xe8\xe2\xb8\xee\x40"
28534 "\x36\x22\x3e\x61\xf6\xc8\x16\xe4"
28535 "\x0e\x88\xad\x71\x53\x58\xe1\x6c"
28536 "\x8f\x4f\x89\x4b\x3e\x9c\x7f\xe9"
28537 "\xad\xc2\x28\xc2\x3a\x29\xf3\xec"
28538 "\xa9\x28\x39\xba\xc2\x86\xe1\x06"
28539 "\xf3\x8b\xe3\x95\x0c\x87\xb8\x1b"
28540 "\x72\x35\x8e\x8f\x6d\x18\xc8\x1c"
28541 "\xa5\x5d\x57\x9d\x73\x8a\xbb\x9e"
28542 "\x21\x05\x12\xd7\xe0\x21\x1c\x16"
28543 "\x3a\x95\x85\xbc\xb0\x71\x0b\x36"
28544 "\x6c\x44\x8d\xef\x3b\xec\x3f\x8e"
28545 "\x24\xa9\xe3\xa7\x63\x23\xca\x09"
28546 "\x62\x96\x79\x0c\x81\x05\x41\xf2"
28547 "\x07\x20\x26\xe5\x8e\x10\x54\x03"
28548 "\x05\x7b\xfe\x0c\xcc\x8c\x50\xe5"
28549 "\xca\x33\x4d\x48\x7a\x03\xd5\x64"
28550 "\x49\x09\xf2\x5c\x5d\xfe\x2b\x30"
28551 "\xbf\x29\x14\x29\x8b\x9b\x7c\x96"
28552 "\x47\x07\x86\x4d\x4e\x4d\xf1\x47"
28553 "\xd1\x10\x2a\xa8\xd3\x15\x8c\xf2"
28554 "\x2f\xf4\x3a\xdf\xd0\xa7\xcb\x5a"
28555 "\xad\x99\x39\x4a\xdf\x60\xbe\xf9"
28556 "\x91\x4e\xf5\x94\xef\xc5\x56\x32"
28557 "\x33\x86\x78\xa3\xd6\x4c\x29\x7c"
28558 "\xe8\xac\x06\xb5\xf5\x01\x5c\x9f"
28559 "\x02\xc8\xe8\xbf\x5c\x1a\x7f\x4d"
28560 "\x28\xa5\xb9\xda\xa9\x5e\xe7\x4b"
28561 "\xf4\x3d\xe9\x1d\x28\xaa\x1a\x8a"
28562 "\x76\xc8\x6c\x19\x61\x3c\x9e\x29"
28563 "\xcd\xbe\xff\xe0\x1c\xb8\x67\xb5"
28564 "\xa4\x46\xf8\xb9\x8a\xa2\xf6\x7c"
28565 "\xef\x23\x73\x0c\xe9\x72\x0a\x0d"
28566 "\x9b\x40\xd8\xfb\x0c\x9c\xab\xa8",
28567 .ctext = "\xfc\x02\x83\x13\x73\x06\x70\x3f"
28568 "\x71\x28\x98\x61\xe5\x2c\x45\x49"
28569 "\x18\xa2\x0e\x17\xc9\xdb\x4d\xf6"
28570 "\xbe\x05\x02\x35\xc1\x18\x61\x28"
28571 "\xff\x28\x0a\xd9\x00\xb8\xed\xec"
28572 "\x14\x80\x88\x56\xcf\x98\x32\xcc"
28573 "\xb0\xee\xb4\x5e\x2d\x61\x59\xcb"
28574 "\x48\xc9\x25\xaa\x7e\x5f\xe5\x4f"
28575 "\x95\x8f\x5d\x47\xe8\xc3\x09\xb4"
28576 "\xce\xe7\x74\xcd\xc6\x09\x5c\xfc"
28577 "\xc7\x79\xc9\x39\xe4\xe3\x9b\x59"
28578 "\x67\x61\x10\xc9\xb7\x7a\xa8\x11"
28579 "\x59\xf6\x7a\x67\x1c\x3a\x70\x76"
28580 "\x2e\x0e\xbd\x10\x93\x01\x06\xea"
28581 "\x51\xc6\x5c\xa7\xda\xd1\x7d\x06"
28582 "\x8b\x1d\x5b\xb6\x87\xf0\x32\xbe"
28583 "\xff\x55\xaa\x58\x5a\x28\xd1\x64"
28584 "\x45\x3b\x0b\x5c\xee\xc4\x12\x2d"
28585 "\x1f\xb7\xa5\x73\xf5\x20\xf5\xa8"
28586 "\x10\x9d\xd8\x16\xd2\x05\x4d\x49"
28587 "\x99\x4a\x71\x56\xec\xa3\xc7\x27"
28588 "\xb0\x98\xcd\x59\x3c\x8a\xd1\x9e"
28589 "\x33\xa5\x92\xf2\xb7\x87\x23\x5d"
28590 "\x53\x9a\x8e\x7c\x63\x57\x5e\x9a"
28591 "\x21\x54\x7a\x3c\x5a\xd5\x68\x69"
28592 "\x35\x17\x51\x06\x19\x82\x9d\x44"
28593 "\x9e\x8a\x75\xc5\x16\x55\xa4\x78"
28594 "\x95\x63\xc3\xf0\x91\x73\x77\x44"
28595 "\x0c\xff\xb9\xb3\xa7\x5f\xcf\x2a"
28596 "\xa2\x54\x9c\xe3\x8b\x7e\x9d\x65"
28597 "\xe5\x64\x8b\xbe\x06\x3a\x90\x31"
28598 "\xdb\x42\x78\xe9\xe6\x8a\xae\xba"
28599 "\x8f\xfb\xc9\x3d\xd9\xc2\x3e\x57"
28600 "\xd5\x58\xfe\x70\x44\xe5\x2a\xd5"
28601 "\x87\xcf\x9f\x6a\x02\xde\x48\xe9"
28602 "\x13\xed\x8d\x2b\xf2\xa1\x56\x07"
28603 "\x36\x2d\xcf\xc3\x5c\xd4\x4b\x20"
28604 "\xb0\xdf\x1a\x70\xed\x0a\xe4\x2e"
28605 "\x9a\xfc\x88\xa1\xc4\x2d\xd6\xb8"
28606 "\xf1\x6e\x2c\x5c\xdc\x0e\xb0\x21"
28607 "\x2d\x76\xb8\xc3\x05\x4c\xf5\xc5"
28608 "\x9a\x14\xab\x08\xc2\x67\x59\x30"
28609 "\x7a\xef\xd8\x4a\x89\x49\xd4\xf0"
28610 "\x22\x39\xf2\x61\xaa\x70\x36\xcf"
28611 "\x65\xee\x43\x83\x2e\x32\xe4\xc9"
28612 "\xc2\xf1\xc7\x08\x28\x59\x10\x6f"
28613 "\x7a\xeb\x8f\x78\x9e\xdf\x07\x0f"
28614 "\xca\xc7\x02\x6a\x2e\x2a\xf0\x64"
28615 "\xfa\x4c\x8c\x4c\xfc\x13\x23\x63"
28616 "\x54\xeb\x1d\x41\xdf\x88\xd6\x66"
28617 "\xae\x5e\x31\x74\x5d\x84\x65\xb8"
28618 "\x61\x1c\x88\x1b\x8f\xb6\x14\x4e"
28619 "\x73\x23\x27\x71\x85\x04\x07\x59"
28620 "\x18\xa3\x2b\x69\x2a\x42\x81\xbf"
28621 "\x40\xf4\x40\xdf\x04\xb8\x6c\x2e"
28622 "\x21\x5b\x22\x25\x61\x01\x96\xce"
28623 "\xfb\xbc\x75\x25\x2c\x03\x55\xea"
28624 "\xb6\x56\x31\x03\xc8\x98\x77\xd6"
28625 "\x30\x19\x9e\x45\x05\xfd\xca\xdf"
28626 "\xae\x89\x30\xa3\xc1\x65\x41\x67"
28627 "\x12\x8e\xa4\x61\xd0\x87\x04\x0a"
28628 "\xe6\xf3\x43\x3a\x38\xce\x22\x36"
28629 "\x41\xdc\xe1\x7d\xd2\xa6\xe2\x66"
28630 "\x21\x8d\xc9\x59\x73\x52\x34\xd8"
28631 "\x1f\xf1\x87\x00\x9b\x12\x74\xeb"
28632 "\xbb\xa9\x34\x0c\x8e\x79\x74\x64"
28633 "\xbf\x94\x97\xe4\x94\xda\xf0\x39"
28634 "\x66\xa8\xd9\x82\xe3\x11\x3d\xe7"
28635 "\xb3\x9a\x40\x7a\x6f\x71\xc7\x0f"
28636 "\x7b\x6d\x59\x79\x18\x2f\x11\x60"
28637 "\x1e\xe0\xae\x1b\x1b\xb4\xad\x4d"
28638 "\x63\xd9\x3e\xa0\x8f\xe3\x66\x8c"
28639 "\xfe\x5a\x73\x07\x95\x27\x1a\x07"
28640 "\x6e\xd6\x14\x3f\xbe\xc5\x99\x94"
28641 "\xcf\x40\xf4\x39\x1c\xf2\x99\x5b"
28642 "\xb7\xfb\xb4\x4e\x5f\x21\x10\x04"
28643 "\x24\x08\xd4\x0d\x10\x7a\x2f\x52"
28644 "\x7d\x91\xc3\x38\xd3\x16\xf0\xfd"
28645 "\x53\xba\xda\x88\xa5\xf6\xc7\xfd"
28646 "\x63\x4a\x9f\x48\xb5\x31\xc2\xe1"
28647 "\x7b\x3e\xac\x8d\xc9\x95\x02\x92"
28648 "\xcc\xbd\x0e\x15\x2d\x97\x08\x82"
28649 "\xa6\x99\xbc\x2c\x96\x91\xde\xa4"
28650 "\x9c\xf5\x2c\xef\x12\x29\xb0\x72"
28651 "\x5f\x60\x5d\x3d\xf3\x85\x59\x79"
28652 "\xac\x06\x63\x74\xcc\x1a\x8d\x0e"
28653 "\xa7\x5f\xd9\x3e\x84\xf7\xbb\xde"
28654 "\x06\xd9\x4b\xab\xee\xb2\x03\xbe"
28655 "\x68\x49\x72\x84\x8e\xf8\x45\x2b"
28656 "\x59\x99\x17\xd3\xe9\x32\x79\xc3"
28657 "\x83\x4c\x7a\x6c\x71\x53\x8c\x09"
28658 "\x76\xfb\x3e\x80\x99\xbc\x2c\x7d"
28659 "\x42\xe5\x70\x08\x80\xc7\xaf\x15"
28660 "\x90\xda\x98\x98\x81\x04\x1c\x4d"
28661 "\x78\xf1\xf3\xcc\x1b\x3a\x7b\xef"
28662 "\xea\xe1\xee\x0e\xd2\x32\xb6\x63"
28663 "\xbf\xb2\xb5\x86\x8d\x16\xd3\x23"
28664 "\x04\x59\x51\xbb\x17\x03\xc0\x07"
28665 "\x93\xbf\x72\x58\x30\xf2\x0a\xa2"
28666 "\xbc\x60\x86\x3b\x68\x91\x67\x14"
28667 "\x10\x76\xda\xa3\x98\x2d\xfc\x8a"
28668 "\xb8\x95\xf7\xd2\x8b\x97\x8b\xfc"
28669 "\xf2\x9e\x86\x20\xb6\xdf\x93\x41"
28670 "\x06\x5e\x37\x3e\xe2\xb8\xd5\x06"
28671 "\x59\xd2\x8d\x43\x91\x5a\xed\x94"
28672 "\x54\xc2\x77\xbc\x0b\xb4\x29\x80"
28673 "\x22\x19\xe7\x35\x1f\x29\x4f\xd8"
28674 "\x02\x98\xee\x83\xca\x4c\x94\xa3"
28675 "\xec\xde\x4b\xf5\xca\x57\x93\xa3"
28676 "\x72\x69\xfe\x27\x7d\x39\x24\x9a"
28677 "\x60\x19\x72\xbe\x24\xb2\x2d\x99"
28678 "\x8c\xb7\x32\xf8\x74\x77\xfc\x8d"
28679 "\xb2\xc1\x7a\x88\x28\x26\xea\xb7"
28680 "\xad\xf0\x38\x49\x88\x78\x73\xcd"
28681 "\x01\xef\xb9\x30\x1a\x33\xa3\x24"
28682 "\x9b\x0b\xc5\x89\x64\x3f\xbe\x76"
28683 "\xd5\xa5\x28\x74\xa2\xc6\xa0\xa0"
28684 "\xdd\x13\x81\x64\x2f\xd1\xab\x15"
28685 "\xab\x13\xb5\x68\x59\xa4\x9f\x0e"
28686 "\x1e\x0a\xaf\xf7\x0b\x6e\x6b\x0b"
28687 "\xf7\x95\x4c\xbc\x1d\x40\x6d\x9c"
28688 "\x08\x42\xef\x07\x03\xb7\xa3\xea"
28689 "\x2a\x5f\xec\x41\x3c\x72\x31\x9d"
28690 "\xdc\x6b\x3a\x5e\x35\x3d\x12\x09"
28691 "\x27\xe8\x63\xbe\xcf\xb3\xbc\x01"
28692 "\x2d\x0c\x86\xb2\xab\x4a\x69\xe5"
28693 "\xf8\x45\x97\x76\x0e\x31\xe5\xc6"
28694 "\x4c\x4f\x94\xa5\x26\x19\x9f\x1b"
28695 "\xe1\xf4\x79\x04\xb4\x93\x92\xdc"
28696 "\xa5\x2a\x66\x25\x0d\xb2\x9e\xea"
28697 "\xa8\xf6\x02\x77\x2d\xd1\x3f\x59"
28698 "\x5c\x04\xe2\x36\x52\x5f\xa1\x27"
28699 "\x0a\x07\x56\xb6\x2d\xd5\x90\x32"
28700 "\x64\xee\x3f\x42\x8f\x61\xf8\xa0"
28701 "\xc1\x8b\x1e\x0b\xa2\x73\xa9\xf3"
28702 "\xc9\x0e\xb1\x96\x3a\x67\x5f\x1e"
28703 "\xd1\x98\x57\xa2\xba\xb3\x23\x9d"
28704 "\xa3\xc6\x3c\x7d\x5e\x3e\xb3\xe8"
28705 "\x80\xae\x2d\xda\x85\x90\x69\x3c"
28706 "\xf0\xe7\xdd\x9e\x20\x10\x52\xdb"
28707 "\xc3\xa0\x15\x73\xee\xb1\xf1\x0f"
28708 "\xf1\xf8\x3f\x40\xe5\x17\x80\x4e"
28709 "\x91\x95\xc7\xec\xd1\x9c\xd9\x1a"
28710 "\x8b\xac\xec\xc9\x0c\x07\xf4\xdc"
28711 "\x77\x2d\xa2\xc4\xf8\x27\xb5\x41"
28712 "\x2f\x85\xa6\x48\xad\x2a\x58\xc5"
28713 "\xea\xfa\x1c\xdb\xfd\xb7\x70\x45"
28714 "\xfc\xad\x11\xaf\x05\xed\xbf\xb6"
28715 "\x3c\xe1\x57\xb8\x72\x4a\xa0\x6b"
28716 "\x40\xd3\xda\xa9\xbc\xa5\x02\x95"
28717 "\x8c\xf0\x4e\x67\xb2\x58\x66\xea"
28718 "\x58\x0e\xc4\x88\xbc\x1d\x3b\x15"
28719 "\x17\xc8\xf5\xd0\x69\x08\x0a\x01"
28720 "\x80\x2e\x9e\x69\x4c\x37\x0b\xba"
28721 "\xfb\x1a\xa9\xc3\x5f\xec\x93\x7c"
28722 "\x4f\x72\x68\x1a\x05\xa1\x32\xe1"
28723 "\x16\x57\x9e\xa6\xe0\x42\xfa\x76"
28724 "\xc2\xf6\xd3\x9b\x37\x0d\xa3\x58"
28725 "\x30\x27\xe7\xea\xb1\xc3\x43\xfb"
28726 "\x67\x04\x70\x86\x0a\x71\x69\x34"
28727 "\xca\xb1\xe3\x4a\x56\xc9\x29\xd1"
28728 "\x12\x6a\xee\x89\xfd\x27\x83\xdf"
28729 "\x32\x1a\xc2\xe9\x94\xcc\x44\x2e"
28730 "\x0f\x3e\xc8\xc1\x70\x5b\xb0\xe8"
28731 "\x6d\x47\xe3\x39\x75\xd5\x45\x8a"
28732 "\x48\x4c\x64\x76\x6f\xae\x24\x6f"
28733 "\xae\x77\x33\x5b\xf5\xca\x9c\x30"
28734 "\x2c\x27\x15\x5e\x9c\x65\xad\x2a"
28735 "\x88\xb1\x36\xf6\xcd\x5e\x73\x72"
28736 "\x99\x5c\xe2\xe4\xb8\x3e\x12\xfb"
28737 "\x55\x86\xfa\xab\x53\x12\xdc\x6a"
28738 "\xe3\xfe\x6a\xeb\x9b\x5d\xeb\x72"
28739 "\x9d\xf1\xbb\x80\x80\x76\x2d\x57"
28740 "\x11\xde\xcf\xae\x46\xad\xdb\xcd"
28741 "\x62\x66\x3d\x7b\x7f\xcb\xc4\x43"
28742 "\x81\x0c\x7e\xb9\xb7\x47\x1a\x40"
28743 "\xfd\x08\x51\xbe\x01\x1a\xd8\x31"
28744 "\x43\x5e\x24\x91\xa2\x53\xa1\xc5"
28745 "\x8a\xe4\xbc\x00\x8e\xf7\x0c\x30"
28746 "\xdf\x03\x34\x2f\xce\xe4\x2e\xda"
28747 "\x2b\x87\xfc\xf8\x9b\x50\xd5\xb0"
28748 "\x5b\x08\xc6\x17\xa0\xae\x6b\x24"
28749 "\xe2\x1d\xd0\x47\xbe\xc4\x8f\x62"
28750 "\x1d\x12\x26\xc7\x78\xd4\xf2\xa3"
28751 "\xea\x39\x8c\xcb\x54\x3e\x2b\xb9"
28752 "\x9a\x8f\x97\xcf\x68\x53\x40\x02"
28753 "\x56\xac\x52\xbb\x62\x3c\xc6\x3f"
28754 "\x3a\x53\x3c\xe8\x21\x9a\x60\x65"
28755 "\x10\x6e\x59\xc3\x4f\xc3\x07\xc8"
28756 "\x61\x1c\xea\x62\x6e\xa2\x5a\x12"
28757 "\xd6\x10\x91\xbe\x5e\x58\x73\xbe"
28758 "\x77\xb8\xb7\x98\xc7\x7e\x78\x9a",
28759 .len = 1536,
28760 }, {
28761 .key = "\x60\xd5\x36\xb0\x8e\x5d\x0e\x5f"
28762 "\x70\x47\x8c\xea\x87\x30\x1d\x58"
28763 "\x2a\xb2\xe8\xc6\xcb\x60\xe7\x6f"
28764 "\x56\x95\x83\x98\x38\x80\x84\x8a",
28765 .klen = 32,
28766 .iv = "\x43\xfe\x63\x3c\xdc\x9e\x0c\xa6"
28767 "\xee\x9c\x0b\x97\x65\xc2\x56\x1d"
28768 "\x5d\xd0\xbf\xa3\x9f\x1e\xfb\x78"
28769 "\xbf\x51\x1b\x18\x73\x27\x27\x8c",
28770 .ptext = "\x0b\x77\xd8\xa3\x8c\xa6\xb2\x2d"
28771 "\x3e\xdd\xcc\x7c\x4a\x3e\x61\xc4"
28772 "\x9a\x7f\x73\xb0\xb3\x29\x32\x61"
28773 "\x13\x25\x62\xcc\x59\x4c\xf4\xdb"
28774 "\xd7\xf5\xf4\xac\x75\x51\xb2\x83"
28775 "\x64\x9d\x1c\x8b\xd1\x8b\x0c\x06"
28776 "\xf1\x9f\xba\x9d\xae\x62\xd4\xd8"
28777 "\x96\xbe\x3c\x4c\x32\xe4\x82\x44"
28778 "\x47\x5a\xec\xb8\x8a\x5b\xd5\x35"
28779 "\x57\x1e\x5c\x80\x6f\x77\xa9\xb9"
28780 "\xf2\x4f\x71\x1e\x48\x51\x86\x43"
28781 "\x0d\xd5\x5b\x52\x30\x40\xcd\xbb"
28782 "\x2c\x25\xc1\x47\x8b\xb7\x13\xc2"
28783 "\x3a\x11\x40\xfc\xed\x45\xa4\xf0"
28784 "\xd6\xfd\x32\x99\x13\x71\x47\x2e"
28785 "\x4c\xb0\x81\xac\x95\x31\xd6\x23"
28786 "\xa4\x2f\xa9\xe8\x5a\x62\xdc\x96"
28787 "\xcf\x49\xa7\x17\x77\x76\x8a\x8c"
28788 "\x04\x22\xaf\xaf\x6d\xd9\x16\xba"
28789 "\x35\x21\x66\x78\x3d\xb6\x65\x83"
28790 "\xc6\xc1\x67\x8c\x32\xd6\xc0\xc7"
28791 "\xf5\x8a\xfc\x47\xd5\x87\x09\x2f"
28792 "\x51\x9d\x57\x6c\x29\x0b\x1c\x32"
28793 "\x47\x6e\x47\xb5\xf3\x81\xc8\x82"
28794 "\xca\x5d\xe3\x61\x38\xa0\xdc\xcc"
28795 "\x35\x73\xfd\xb3\x92\x5c\x72\xd2"
28796 "\x2d\xad\xf6\xcd\x20\x36\xff\x49"
28797 "\x48\x80\x21\xd3\x2f\x5f\xe9\xd8"
28798 "\x91\x20\x6b\xb1\x38\x52\x1e\xbc"
28799 "\x88\x48\xa1\xde\xc0\xa5\x46\xce"
28800 "\x9f\x32\x29\xbc\x2b\x51\x0b\xae"
28801 "\x7a\x44\x4e\xed\xeb\x95\x63\x99"
28802 "\x96\x87\xc9\x34\x02\x26\xde\x20"
28803 "\xe4\xcb\x59\x0c\xb5\x55\xbd\x55"
28804 "\x3f\xa9\x15\x25\xa7\x5f\xab\x10"
28805 "\xbe\x9a\x59\x6c\xd5\x27\xf3\xf0"
28806 "\x73\x4a\xb3\xe4\x08\x11\x00\xeb"
28807 "\xf1\xae\xc8\x0d\xef\xcd\xb5\xfc"
28808 "\x0d\x7e\x03\x67\xad\x0d\xec\xf1"
28809 "\x9a\xfd\x31\x60\x3e\xa2\xfa\x1c"
28810 "\x93\x79\x31\x31\xd6\x66\x7a\xbd"
28811 "\x85\xfd\x22\x08\x00\xae\x72\x10"
28812 "\xd6\xb0\xf4\xb8\x4a\x72\x5b\x9c"
28813 "\xbf\x84\xdd\xeb\x13\x05\x28\xb7"
28814 "\x61\x60\xfd\x7f\xf0\xbe\x4d\x18"
28815 "\x7d\xc9\xba\xb0\x01\x59\x74\x18"
28816 "\xe4\xf6\xa6\x74\x5d\x3f\xdc\xa0"
28817 "\x9e\x57\x93\xbf\x16\x6c\xf6\xbd"
28818 "\x93\x45\x38\x95\xb9\x69\xe9\x62"
28819 "\x21\x73\xbd\x81\x73\xac\x15\x74"
28820 "\x9e\x68\x28\x91\x38\xb7\xd4\x47"
28821 "\xc7\xab\xc9\x14\xad\x52\xe0\x4c"
28822 "\x17\x1c\x42\xc1\xb4\x9f\xac\xcc"
28823 "\xc8\x12\xea\xa9\x9e\x30\x21\x14"
28824 "\xa8\x74\xb4\x74\xec\x8d\x40\x06"
28825 "\x82\xb7\x92\xd7\x42\x5b\xf2\xf9"
28826 "\x6a\x1e\x75\x6e\x44\x55\xc2\x8d"
28827 "\x73\x5b\xb8\x8c\x3c\xef\x97\xde"
28828 "\x24\x43\xb3\x0e\xba\xad\x63\x63"
28829 "\x16\x0a\x77\x03\x48\xcf\x02\x8d"
28830 "\x76\x83\xa3\xba\x73\xbe\x80\x3f"
28831 "\x8f\x6e\x76\x24\xc1\xff\x2d\xb4"
28832 "\x20\x06\x9b\x67\xea\x29\xb5\xe0"
28833 "\x57\xda\x30\x9d\x38\xa2\x7d\x1e"
28834 "\x8f\xb9\xa8\x17\x64\xea\xbe\x04"
28835 "\x84\xd1\xce\x2b\xfd\x84\xf9\x26"
28836 "\x1f\x26\x06\x5c\x77\x6d\xc5\x9d"
28837 "\xe6\x37\x76\x60\x7d\x3e\xf9\x02"
28838 "\xba\xa6\xf3\x7f\xd3\x95\xb4\x0e"
28839 "\x52\x1c\x6a\x00\x8f\x3a\x0b\xce"
28840 "\x30\x98\xb2\x63\x2f\xff\x2d\x3b"
28841 "\x3a\x06\x65\xaf\xf4\x2c\xef\xbb"
28842 "\x88\xff\x2d\x4c\xa9\xf4\xff\x69"
28843 "\x9d\x46\xae\x67\x00\x3b\x40\x94"
28844 "\xe9\x7a\xf7\x0b\xb7\x3c\xa2\x2f"
28845 "\xc3\xde\x5e\x29\x01\xde\xca\xfa"
28846 "\xc6\xda\xd7\x19\xc7\xde\x4a\x16"
28847 "\x93\x6a\xb3\x9b\x47\xe9\xd2\xfc"
28848 "\xa1\xc3\x95\x9c\x0b\xa0\x2b\xd4"
28849 "\xd3\x1e\xd7\x21\x96\xf9\x1e\xf4"
28850 "\x59\xf4\xdf\x00\xf3\x37\x72\x7e"
28851 "\xd8\xfd\x49\xd4\xcd\x61\x7b\x22"
28852 "\x99\x56\x94\xff\x96\xcd\x9b\xb2"
28853 "\x76\xca\x9f\x56\xae\x04\x2e\x75"
28854 "\x89\x4e\x1b\x60\x52\xeb\x84\xf4"
28855 "\xd1\x33\xd2\x6c\x09\xb1\x1c\x43"
28856 "\x08\x67\x02\x01\xe3\x64\x82\xee"
28857 "\x36\xcd\xd0\x70\xf1\x93\xd5\x63"
28858 "\xef\x48\xc5\x56\xdb\x0a\x35\xfe"
28859 "\x85\x48\xb6\x97\x97\x02\x43\x1f"
28860 "\x7d\xc9\xa8\x2e\x71\x90\x04\x83"
28861 "\xe7\x46\xbd\x94\x52\xe3\xc5\xd1"
28862 "\xce\x6a\x2d\x6b\x86\x9a\xf5\x31"
28863 "\xcd\x07\x9c\xa2\xcd\x49\xf5\xec"
28864 "\x01\x3e\xdf\xd5\xdc\x15\x12\x9b"
28865 "\x0c\x99\x19\x7b\x2e\x83\xfb\xd8"
28866 "\x89\x3a\x1c\x1e\xb4\xdb\xeb\x23"
28867 "\xd9\x42\xae\x47\xfc\xda\x37\xe0"
28868 "\xd2\xb7\x47\xd9\xe8\xb5\xf6\x20"
28869 "\x42\x8a\x9d\xaf\xb9\x46\x80\xfd"
28870 "\xd4\x74\x6f\x38\x64\xf3\x8b\xed"
28871 "\x81\x94\x56\xe7\xf1\x1a\x64\x17"
28872 "\xd4\x27\x59\x09\xdf\x9b\x74\x05"
28873 "\x79\x6e\x13\x29\x2b\x9e\x1b\x86"
28874 "\x73\x9f\x40\xbe\x6e\xff\x92\x4e"
28875 "\xbf\xaa\xf4\xd0\x88\x8b\x6f\x73"
28876 "\x9d\x8b\xbf\xe5\x8a\x85\x45\x67"
28877 "\xd3\x13\x72\xc6\x2a\x63\x3d\xb1"
28878 "\x35\x7c\xb4\x38\xbb\x31\xe3\x77"
28879 "\x37\xad\x75\xa9\x6f\x84\x4e\x4f"
28880 "\xeb\x5b\x5d\x39\x6d\xed\x0a\xad"
28881 "\x6c\x1b\x8e\x1f\x57\xfa\xc7\x7c"
28882 "\xbf\xcf\xf2\xd1\x72\x3b\x70\x78"
28883 "\xee\x8e\xf3\x4f\xfd\x61\x30\x9f"
28884 "\x56\x05\x1d\x7d\x94\x9b\x5f\x8c"
28885 "\xa1\x0f\xeb\xc3\xa9\x9e\xb8\xa0"
28886 "\xc6\x4e\x1e\xb1\xbc\x0a\x87\xa8"
28887 "\x52\xa9\x1e\x3d\x58\x8e\xc6\x95"
28888 "\x85\x58\xa3\xc3\x3a\x43\x32\x50"
28889 "\x6c\xb3\x61\xe1\x0c\x7d\x02\x63"
28890 "\x5f\x8b\xdf\xef\x13\xf8\x66\xea"
28891 "\x89\x00\x1f\xbd\x5b\x4c\xd5\x67"
28892 "\x8f\x89\x84\x33\x2d\xd3\x70\x94"
28893 "\xde\x7b\xd4\xb0\xeb\x07\x96\x98"
28894 "\xc5\xc0\xbf\xc8\xcf\xdc\xc6\x5c"
28895 "\xd3\x7d\x78\x30\x0e\x14\xa0\x86"
28896 "\xd7\x8a\xb7\x53\xa3\xec\x71\xbf"
28897 "\x85\xf2\xea\xbd\x77\xa6\xd1\xfd"
28898 "\x5a\x53\x0c\xc3\xff\xf5\x1d\x46"
28899 "\x37\xb7\x2d\x88\x5c\xeb\x7a\x0c"
28900 "\x0d\x39\xc6\x40\x08\x90\x1f\x58"
28901 "\x36\x12\x35\x28\x64\x12\xe7\xbb"
28902 "\x50\xac\x45\x15\x7b\x16\x23\x5e"
28903 "\xd4\x11\x2a\x8e\x17\x47\xe1\xd0"
28904 "\x69\xc6\xd2\x5c\x2c\x76\xe6\xbb"
28905 "\xf7\xe7\x34\x61\x8e\x07\x36\xc8"
28906 "\xce\xcf\x3b\xeb\x0a\x55\xbd\x4e"
28907 "\x59\x95\xc9\x32\x5b\x79\x7a\x86"
28908 "\x03\x74\x4b\x10\x87\xb3\x60\xf6"
28909 "\x21\xa4\xa6\xa8\x9a\xc9\x3a\x6f"
28910 "\xd8\x13\xc9\x18\xd4\x38\x2b\xc2"
28911 "\xa5\x7e\x6a\x09\x0f\x06\xdf\x53"
28912 "\x9a\x44\xd9\x69\x2d\x39\x61\xb7"
28913 "\x1c\x36\x7f\x9e\xc6\x44\x9f\x42"
28914 "\x18\x0b\x99\xe6\x27\xa3\x1e\xa6"
28915 "\xd0\xb9\x9a\x2b\x6f\x60\x75\xbd"
28916 "\x52\x4a\x91\xd4\x7b\x8f\x95\x9f"
28917 "\xdd\x74\xed\x8b\x20\x00\xdd\x08"
28918 "\x6e\x5b\x61\x7b\x06\x6a\x19\x84"
28919 "\x1c\xf9\x86\x65\xcd\x1c\x73\x3f"
28920 "\x28\x5c\x8a\x93\x1a\xf3\xa3\x6c"
28921 "\x6c\xa9\x7c\xea\x3c\xd4\x15\x45"
28922 "\x7f\xbc\xe3\xbb\x42\xf0\x2e\x10"
28923 "\xcd\x0c\x8b\x44\x1a\x82\x83\x0c"
28924 "\x58\xb1\x24\x28\xa0\x11\x2f\x63"
28925 "\xa5\x82\xc5\x9f\x86\x42\xf4\x4d"
28926 "\x89\xdb\x76\x4a\xc3\x7f\xc4\xb8"
28927 "\xdd\x0d\x14\xde\xd2\x62\x02\xcb"
28928 "\x70\xb7\xee\xf4\x6a\x09\x12\x5e"
28929 "\xd1\x26\x1a\x2c\x20\x71\x31\xef"
28930 "\x7d\x65\x57\x65\x98\xff\x8b\x02"
28931 "\x9a\xb5\xa4\xa1\xaf\x03\xc4\x50"
28932 "\x33\xcf\x1b\x25\xfa\x7a\x79\xcc"
28933 "\x55\xe3\x21\x63\x0c\x6d\xeb\x5b"
28934 "\x1c\xad\x61\x0b\xbd\xb0\x48\xdb"
28935 "\xb3\xc8\xa0\x87\x7f\x8b\xac\xfd"
28936 "\xd2\x68\x9e\xb4\x11\x3c\x6f\xb1"
28937 "\xfe\x25\x7d\x84\x5a\xae\xc9\x31"
28938 "\xc3\xe5\x6a\x6f\xbc\xab\x41\xd9"
28939 "\xde\xce\xf9\xfa\xd5\x7c\x47\xd2"
28940 "\x66\x30\xc9\x97\xf2\x67\xdf\x59"
28941 "\xef\x4e\x11\xbc\x4e\x70\xe3\x46"
28942 "\x53\xbe\x16\x6d\x33\xfb\x57\x98"
28943 "\x4e\x34\x79\x3b\xc7\x3b\xaf\x94"
28944 "\xc1\x87\x4e\x47\x11\x1b\x22\x41"
28945 "\x99\x12\x61\xe0\xe0\x8c\xa9\xbd"
28946 "\x79\xb6\x06\x4d\x90\x3b\x0d\x30"
28947 "\x1a\x00\xaa\x0e\xed\x7c\x16\x2f"
28948 "\x0d\x1a\xfb\xf8\xad\x51\x4c\xab"
28949 "\x98\x4c\x80\xb6\x92\x03\xcb\xa9"
28950 "\x99\x9d\x16\xab\x43\x8c\x3f\x52"
28951 "\x96\x53\x63\x7e\xbb\xd2\x76\xb7"
28952 "\x6b\x77\xab\x52\x80\x33\xe3\xdf"
28953 "\x4b\x3c\x23\x1a\x33\xe1\x43\x40"
28954 "\x39\x1a\xe8\xbd\x3c\x6a\x77\x42"
28955 "\x88\x9f\xc6\xaa\x65\x28\xf2\x1e"
28956 "\xb0\x7c\x8e\x10\x41\x31\xe9\xd5"
28957 "\x9d\xfd\x28\x7f\xfb\x61\xd3\x39"
28958 "\x5f\x7e\xb4\xfb\x9c\x7d\x98\xb7"
28959 "\x37\x2f\x18\xd9\x3b\x83\xaf\x4e"
28960 "\xbb\xd5\x49\x69\x46\x93\x3a\x21"
28961 "\x46\x1d\xad\x84\xb5\xe7\x8c\xff"
28962 "\xbf\x81\x7e\x22\xf6\x88\x8c\x82"
28963 "\xf5\xde\xfe\x18\xc9\xfb\x58\x07"
28964 "\xe4\x68\xff\x9c\xf4\xe0\x24\x20"
28965 "\x90\x92\x01\x49\xc2\x38\xe1\x7c"
28966 "\xac\x61\x0b\x96\x36\xa4\x77\xe9"
28967 "\x29\xd4\x97\xae\x15\x13\x7c\x6c"
28968 "\x2d\xf1\xc5\x83\x97\x02\xa8\x2e"
28969 "\x0b\x0f\xaf\xb5\x42\x18\x8a\x8c"
28970 "\xb8\x28\x85\x28\x1b\x2a\x12\xa5"
28971 "\x4b\x0a\xaf\xd2\x72\x37\x66\x23"
28972 "\x28\xe6\x71\xa0\x77\x85\x7c\xff"
28973 "\xf3\x8d\x2f\x0c\x33\x30\xcd\x7f"
28974 "\x61\x64\x23\xb2\xe9\x79\x05\xb8"
28975 "\x61\x47\xb1\x2b\xda\xf7\x9a\x24"
28976 "\x94\xf6\xcf\x07\x78\xa2\x80\xaa"
28977 "\x6e\xe9\x58\x97\x19\x0c\x58\x73"
28978 "\xaf\xee\x2d\x6e\x26\x67\x18\x8a"
28979 "\xc6\x6d\xf6\xbc\x65\xa9\xcb\xe7"
28980 "\x53\xf1\x61\x97\x63\x52\x38\x86"
28981 "\x0e\xdd\x33\xa5\x30\xe9\x9f\x32"
28982 "\x43\x64\xbc\x2d\xdc\x28\x43\xd8"
28983 "\x6c\xcd\x00\x2c\x87\x9a\x33\x79"
28984 "\xbd\x63\x6d\x4d\xf9\x8a\x91\x83"
28985 "\x9a\xdb\xf7\x9a\x11\xe1\xd1\x93"
28986 "\x4a\x54\x0d\x51\x38\x30\x84\x0b"
28987 "\xc5\x29\x8d\x92\x18\x6c\x28\xfe"
28988 "\x1b\x07\x57\xec\x94\x74\x0b\x2c"
28989 "\x21\x01\xf6\x23\xf9\xb0\xa0\xaf"
28990 "\xb1\x3e\x2e\xa8\x0d\xbc\x2a\x68"
28991 "\x59\xde\x0b\x2d\xde\x74\x42\xa1"
28992 "\xb4\xce\xaf\xd8\x42\xeb\x59\xbd"
28993 "\x61\xcc\x27\x28\xc6\xf2\xde\x3e"
28994 "\x68\x64\x13\xd3\xc3\xc0\x31\xe0"
28995 "\x5d\xf9\xb4\xa1\x09\x20\x46\x8b"
28996 "\x48\xb9\x27\x62\x00\x12\xc5\x03"
28997 "\x28\xfd\x55\x27\x1c\x31\xfc\xdb"
28998 "\xc1\xcb\x7e\x67\x91\x2e\x50\x0c"
28999 "\x61\xf8\x9f\x31\x26\x5a\x3d\x2e"
29000 "\xa0\xc7\xef\x2a\xb6\x24\x48\xc9"
29001 "\xbb\x63\x99\xf4\x7c\x4e\xc5\x94"
29002 "\x99\xd5\xff\x34\x93\x8f\x31\x45"
29003 "\xae\x5e\x7b\xfd\xf4\x81\x84\x65"
29004 "\x5b\x41\x70\x0b\xe5\xaa\xec\x95"
29005 "\x6b\x3d\xe3\xdc\x12\x78\xf8\x28"
29006 "\x26\xec\x3a\x64\xc4\xab\x74\x97"
29007 "\x3d\xcf\x21\x7d\xcf\x59\xd3\x15"
29008 "\x47\x94\xe4\xd9\x48\x4c\x02\x49"
29009 "\x68\x50\x22\x16\x96\x2f\xc4\x23"
29010 "\x80\x47\x27\xd1\xee\x10\x3b\xa7"
29011 "\x19\xae\xe1\x40\x5f\x3a\xde\x5d"
29012 "\x97\x1c\x59\xce\xe1\xe7\x32\xa7"
29013 "\x20\x89\xef\x44\x22\x38\x3c\x14"
29014 "\x99\x3f\x1b\xd6\x37\xfe\x93\xbf"
29015 "\x34\x13\x86\xd7\x9b\xe5\x2a\x37"
29016 "\x72\x16\xa4\xdf\x7f\xe4\xa4\x66"
29017 "\x9d\xf2\x0b\x29\xa1\xe2\x9d\x36"
29018 "\xe1\x9d\x56\x95\x73\xe1\x91\x58"
29019 "\x0f\x64\xf8\x90\xbb\x0c\x48\x0f"
29020 "\xf5\x52\xae\xd9\xeb\x95\xb7\xdd"
29021 "\xae\x0b\x20\x55\x87\x3d\xf0\x69"
29022 "\x3c\x0a\x54\x61\xea\x00\xbd\xba"
29023 "\x5f\x7e\x25\x8c\x3e\x61\xee\xb2"
29024 "\x1a\xc8\x0e\x0b\xa5\x18\x49\xf2"
29025 "\x6e\x1d\x3f\x83\xc3\xf1\x1a\xcb"
29026 "\x9f\xc9\x82\x4e\x7b\x26\xfd\x68"
29027 "\x28\x25\x8d\x22\x17\xab\xf8\x4e"
29028 "\x1a\xa9\x81\x48\xb0\x9f\x52\x75"
29029 "\xe4\xef\xdd\xbd\x5b\xbe\xab\x3c"
29030 "\x43\x76\x23\x62\xce\xb8\xc2\x5b"
29031 "\xc6\x31\xe6\x81\xb4\x42\xb2\xfd"
29032 "\xf3\x74\xdd\x02\x3c\xa0\xd7\x97"
29033 "\xb0\xe7\xe9\xe0\xce\xef\xe9\x1c"
29034 "\x09\xa2\x6d\xd3\xc4\x60\xd6\xd6"
29035 "\x9e\x54\x31\x45\x76\xc9\x14\xd4"
29036 "\x95\x17\xe9\xbe\x69\x92\x71\xcb"
29037 "\xde\x7c\xf1\xbd\x2b\xef\x8d\xaf"
29038 "\x51\xe8\x28\xec\x48\x7f\xf8\xfa"
29039 "\x9f\x9f\x5e\x52\x61\xc3\xfc\x9a"
29040 "\x7e\xeb\xe3\x30\xb6\xfe\xc4\x4a"
29041 "\x87\x1a\xff\x54\x64\xc7\xaa\xa2"
29042 "\xfa\xb7\xb2\xe7\x25\xce\x95\xb4"
29043 "\x15\x93\xbd\x24\xb6\xbc\xe4\x62"
29044 "\x93\x7f\x44\x40\x72\xcb\xfb\xb2"
29045 "\xbf\xe8\x03\xa5\x87\x12\x27\xfd"
29046 "\xc6\x21\x8a\x8f\xc2\x48\x48\xb9"
29047 "\x6b\xb6\xf0\xf0\x0e\x0a\x0e\xa4"
29048 "\x40\xa9\xd8\x23\x24\xd0\x7f\xe2"
29049 "\xf9\xed\x76\xf0\x91\xa5\x83\x3c"
29050 "\x55\xe1\x92\xb8\xb6\x32\x9e\x63"
29051 "\x60\x81\x75\x29\x9e\xce\x2a\x70"
29052 "\x28\x0c\x87\xe5\x46\x73\x76\x66"
29053 "\xbc\x4b\x6c\x37\xc7\xd0\x1a\xa0"
29054 "\x9d\xcf\x04\xd3\x8c\x42\xae\x9d"
29055 "\x35\x5a\xf1\x40\x4c\x4e\x81\xaa"
29056 "\xfe\xd5\x83\x4f\x29\x19\xf3\x6c"
29057 "\x9e\xd0\x53\xe5\x05\x8f\x14\xfb"
29058 "\x68\xec\x0a\x3a\x85\xcd\x3e\xb4"
29059 "\x4a\xc2\x5b\x92\x2e\x0b\x58\x64"
29060 "\xde\xca\x64\x86\x53\xdb\x7f\x4e"
29061 "\x54\xc6\x5e\xaa\xe5\x82\x3b\x98"
29062 "\x5b\x01\xa7\x1f\x7b\x3d\xcc\x19"
29063 "\xf1\x11\x02\x64\x09\x25\x7c\x26"
29064 "\xee\xad\x50\x68\x31\x26\x16\x0f"
29065 "\xb6\x7b\x6f\xa2\x17\x1a\xba\xbe"
29066 "\xc3\x60\xdc\xd2\x44\xe0\xb4\xc4"
29067 "\xfe\xff\x69\xdb\x60\xa6\xaf\x39"
29068 "\x0a\xbd\x6e\x41\xd1\x9f\x87\x71"
29069 "\xcc\x43\xa8\x47\x10\xbc\x2b\x7d"
29070 "\x40\x12\x43\x31\xb8\x12\xe0\x95"
29071 "\x6f\x9d\xf8\x75\x51\x3d\x61\xbe"
29072 "\xa0\xd1\x0b\x8d\x50\xc7\xb8\xe7"
29073 "\xab\x03\xda\x41\xab\xc5\x4e\x33"
29074 "\x5a\x63\x94\x90\x22\x72\x54\x26"
29075 "\x93\x65\x99\x45\x55\xd3\x55\x56"
29076 "\xc5\x39\xe4\xb4\xb1\xea\xd8\xf9"
29077 "\xb5\x31\xf7\xeb\x80\x1a\x9e\x8d"
29078 "\xd2\x40\x01\xea\x33\xb9\xf2\x7a"
29079 "\x43\x41\x72\x0c\xbf\x20\xab\xf7"
29080 "\xfa\x65\xec\x3e\x35\x57\x1e\xef"
29081 "\x2a\x81\xfa\x10\xb2\xdb\x8e\xfa"
29082 "\x7f\xe7\xaf\x73\xfc\xbb\x57\xa2"
29083 "\xaf\x6f\x41\x11\x30\xd8\xaf\x94"
29084 "\x53\x8d\x4c\x23\xa5\x20\x63\xcf"
29085 "\x0d\x00\xe0\x94\x5e\x92\xaa\xb5"
29086 "\xe0\x4e\x96\x3c\xf4\x26\x2f\xf0"
29087 "\x3f\xd7\xed\x75\x2c\x63\xdf\xc8"
29088 "\xfb\x20\xb5\xae\x44\x83\xc0\xab"
29089 "\x05\xf9\xbb\xa7\x62\x7d\x21\x5b"
29090 "\x04\x80\x93\x84\x5f\x1d\x9e\xcd"
29091 "\xa2\x07\x7e\x22\x2f\x55\x94\x23"
29092 "\x74\x35\xa3\x0f\x03\xbe\x07\x62"
29093 "\xe9\x16\x69\x7e\xae\x38\x0e\x9b"
29094 "\xad\x6e\x83\x90\x21\x10\xb8\x07"
29095 "\xdc\xc1\x44\x20\xa5\x88\x00\xdc"
29096 "\xe1\x82\x16\xf1\x0c\xdc\xed\x8c"
29097 "\x32\xb5\x49\xab\x11\x41\xd5\xd2"
29098 "\x35\x2c\x70\x73\xce\xeb\xe3\xd6"
29099 "\xe4\x7d\x2c\xe8\x8c\xec\x8a\x92"
29100 "\x50\x87\x51\xbd\x2d\x9d\xf2\xf0"
29101 "\x3c\x7d\xb1\x87\xf5\x01\xb0\xed"
29102 "\x02\x5a\x20\x4d\x43\x08\x71\x49"
29103 "\x77\x72\x9b\xe6\xef\x30\xc9\xa2"
29104 "\x66\x66\xb8\x68\x9d\xdf\xc6\x16"
29105 "\xa5\x78\xee\x3c\x47\xa6\x7a\x31"
29106 "\x07\x6d\xce\x7b\x86\xf8\xb2\x31"
29107 "\xa8\xa4\x77\x3c\x63\x36\xe8\xd3"
29108 "\x7d\x40\x56\xd8\x48\x56\x9e\x3e"
29109 "\x56\xf6\x3d\xd2\x12\x6e\x35\x29"
29110 "\xd4\x7a\xdb\xff\x97\x4c\xeb\x3c"
29111 "\x28\x2a\xeb\xe9\x43\x40\x61\x06"
29112 "\xb8\xa8\x6d\x18\xc8\xbc\xc7\x23"
29113 "\x53\x2b\x8b\xcc\xce\x88\xdf\xf8"
29114 "\xff\xf8\x94\xe4\x5c\xee\xcf\x39"
29115 "\xe0\xf6\x1a\xae\xf2\xd5\x41\x6a"
29116 "\x09\x5a\x50\x66\xc4\xf4\x66\xdc"
29117 "\x6a\x69\xee\xc8\x47\xe6\x87\x52"
29118 "\x9e\x28\xe4\x39\x02\x0d\xc4\x7e"
29119 "\x18\xe6\xc6\x09\x07\x03\x30\xb9"
29120 "\xd1\xb0\x48\xe6\x80\xe8\x8c\xe6"
29121 "\xc7\x2c\x33\xca\x64\xe5\xc0\x6e"
29122 "\xac\x14\x4b\xe1\xf6\xeb\xce\xe4"
29123 "\xc1\x8c\xea\x5b\x8d\x3c\x86\x91"
29124 "\xd1\xd7\x16\x9c\x09\x9c\x6a\x51"
29125 "\xe5\xcd\xe3\xb0\x33\x1f\x03\xcd"
29126 "\xe5\xd8\x40\x9b\xdc\x29\xbe\xfa"
29127 "\x24\xcc\xf1\x55\x68\x3a\x89\x0d"
29128 "\x08\x48\xfd\x9b\x47\x41\x10\xae"
29129 "\x53\x3a\x83\x87\xd4\x89\xe7\x38"
29130 "\x47\xee\xd7\xbe\xe2\x58\x37\xd2"
29131 "\xfc\x21\x1d\x20\xa5\x2d\x69\x0c"
29132 "\x36\x5b\x2f\xcd\xa1\xa6\xe4\xa1"
29133 "\x00\x4d\xf7\xc8\x2d\xc7\x16\x6c"
29134 "\x6d\xad\x32\x8c\x8f\x74\xf9\xfa"
29135 "\x78\x1c\x9a\x0f\x6e\x93\x9c\x20"
29136 "\x43\xb9\xe4\xda\xc4\xc7\x90\x47"
29137 "\x86\x68\xb7\x6f\x82\x59\x4a\x30"
29138 "\xf1\xfd\x31\x0f\xa1\xea\x9b\x6b"
29139 "\x18\x5c\x39\xb0\xc7\x80\x64\xff"
29140 "\x6d\x5b\xb4\x8b\xba\x90\xea\x4e"
29141 "\x9a\x04\xd2\x68\x18\x50\xb5\x91"
29142 "\x45\x4f\x58\x5a\xe5\xc6\x7c\xab"
29143 "\x61\x3e\x3d\xec\x18\x87\xfc\xea"
29144 "\x26\x35\x4c\x99\x8a\x3f\x00\x7b"
29145 "\xf5\x89\x62\xda\xdd\xf1\x43\xef"
29146 "\x2c\x1d\x92\xfa\x9a\xd0\x37\x03"
29147 "\x69\x9c\xd8\x1f\x41\x44\xb7\x73"
29148 "\x54\x14\x91\x12\x41\x41\x54\xa2"
29149 "\x91\x55\xb6\xf7\x23\x41\xc9\xc2"
29150 "\x5b\x53\xf2\x61\x63\x0d\xa9\x87"
29151 "\x1a\xbb\x11\x1f\x3c\xbb\xa8\x1f"
29152 "\xe2\x66\x56\x88\x06\x3c\xd2\x0f"
29153 "\x3b\xc4\xd6\x8c\xbe\x54\x9f\xa8"
29154 "\x9c\x89\xfb\x88\x05\xef\xcd\xe7"
29155 "\xc1\xc4\x21\x36\x22\x8d\x9a\x5d"
29156 "\x1b\x1e\x4a\xc0\x89\xdd\x76\x16"
29157 "\x5a\xce\xcd\x1e\x6a\x1f\xa0\x2b"
29158 "\x83\xf6\x5e\x28\x8e\x65\xb5\x86"
29159 "\x72\x8f\xc5\xf2\x54\x81\x10\x8d"
29160 "\x63\x7b\x42\x7d\x06\x08\x16\xb3"
29161 "\xb0\x60\x65\x41\x49\xdb\x0d\xc1"
29162 "\xe2\xef\x72\x72\x06\xe7\x60\x5c"
29163 "\x95\x1c\x7d\x52\xec\x82\xee\xd3"
29164 "\x5b\xab\x61\xa4\x1f\x61\x64\x0c"
29165 "\x28\x32\x21\x7a\x81\xe7\x81\xf3"
29166 "\xdb\xc0\x18\xd9\xae\x0b\x3c\x9a"
29167 "\x58\xec\x70\x4f\x40\x25\x2b\xba"
29168 "\x96\x59\xac\x34\x45\x29\xc6\x57"
29169 "\xc1\xc3\x93\x60\x77\x92\xbb\x83"
29170 "\x8a\xa7\x72\x45\x2a\xc9\x35\xe7"
29171 "\x66\xd6\xa9\xe9\x43\x87\x20\x11"
29172 "\x6a\x2f\x87\xac\xe0\x93\x82\xe5"
29173 "\x6c\x57\xa9\x4c\x9e\x56\x57\x33"
29174 "\x1c\xd8\x7e\x25\x27\x41\x89\x97"
29175 "\xea\xa5\x56\x02\x5b\x93\x13\x46"
29176 "\xdc\x53\x3d\x95\xef\xaf\x9f\xf0"
29177 "\x0a\x8a\xfe\x0c\xbf\xf0\x25\x5f"
29178 "\xb4\x9f\x1b\x72\x9c\x37\xba\x46"
29179 "\x4e\xcc\xcc\x02\x5c\xec\x3f\x98"
29180 "\xff\x56\x1a\xc2\x7a\x65\x8f\xf6"
29181 "\xd2\x81\x37\x7a\x0a\xfc\x79\xb9"
29182 "\xcb\x8c\xc8\x1a\xd0\xba\x5d\x55"
29183 "\xbc\x6d\x2e\xb2\x2f\x75\x29\x3f"
29184 "\x1a\x4b\xa8\xd7\xe8\xf6\xf4\x2a"
29185 "\xa5\xa1\x68\xec\xf3\xd5\xdd\x0f"
29186 "\xad\x57\xae\x98\x83\xd5\x92\x4e"
29187 "\x76\x86\x8e\x5e\x4b\x87\x7b\xf7"
29188 "\x2d\x79\x3f\x12\x6a\x24\x58\xc8"
29189 "\xab\x9a\x65\x75\x82\x6f\xa5\x39"
29190 "\x72\xb0\xdf\x93\xb5\xa2\xf3\xdd"
29191 "\x1f\x32\xfa\xdb\xfe\x1b\xbf\x0a"
29192 "\xd9\x95\xdd\x02\xf1\x23\x54\xb1"
29193 "\xa5\xbb\x24\x04\x5c\x2a\x97\x92"
29194 "\xe6\xe0\x10\x61\xe3\x46\xc7\x0c"
29195 "\xcb\xbc\x51\x9a\x35\x16\xd9\x42"
29196 "\x62\xb3\x5e\xa4\x3c\x84\xa0\x7f"
29197 "\xb8\x7f\x70\xd1\x8b\x03\xdf\x27"
29198 "\x32\x06\x3f\x12\x23\x19\x22\x82"
29199 "\x2d\x37\xa5\x00\x31\x9b\xa9\x21"
29200 "\x8e\x34\x8c\x8e\x4f\xe8\xd4\x63"
29201 "\x6c\xb2\xa9\x6e\xf6\x7c\x96\xf1"
29202 "\x0e\x64\xab\x14\x3d\x8f\x74\xb3"
29203 "\x35\x79\x84\x78\x06\x68\x97\x30"
29204 "\xe0\x22\x55\xd6\xc5\x5b\x38\xb2"
29205 "\x75\x24\x0c\x52\xb6\x57\xcc\x0a"
29206 "\xbd\x3c\xd0\x73\x47\xd1\x25\xd6"
29207 "\x1c\xfd\x27\x05\x3f\x70\xe1\xa7"
29208 "\x69\x3b\xee\xc9\x9f\xfd\x2a\x7e"
29209 "\xab\x58\xe6\x0b\x35\x5e\x52\xf9"
29210 "\xff\xac\x5b\x82\x88\xa7\x65\xbc"
29211 "\x61\x29\xdc\xa1\x94\x42\xd1\xd3"
29212 "\xa0\xd8\xba\x3b\x49\xc8\xa7\xce"
29213 "\x01\x6c\xb7\x3f\xe3\x98\x4d\xd1"
29214 "\x9f\x46\x0d\xb3\xf2\x43\x33\x49"
29215 "\xb7\x27\xbd\xba\xcc\x3f\x09\x56"
29216 "\xfa\x64\x18\xb8\x17\x28\xde\x0d"
29217 "\x29\xfa\x1f\xad\x60\x3b\x90\xa7"
29218 "\x05\x9f\x4c\xc4\xdc\x05\x3b\x17"
29219 "\x58\xea\x99\xfd\x6b\x8a\x93\x77"
29220 "\xa5\x44\xbd\x8d\x29\x44\x29\x89"
29221 "\x52\x1d\x89\x8b\x44\x8f\xb9\x68"
29222 "\xeb\x93\xfd\x92\xd9\x14\x35\x9c"
29223 "\x28\x3a\x9f\x1d\xd8\xe0\x2a\x76"
29224 "\x51\xc1\xf0\xa9\x1d\xb4\xf8\xb9"
29225 "\xfc\x14\x78\x5a\xa2\xb1\xdb\x94"
29226 "\xcb\x18\xb9\x34\xbd\x0c\x65\x1d"
29227 "\x64\xde\xd0\x3a\xe4\x68\x0e\xbc"
29228 "\x13\xa7\x47\x89\x62\xa3\x03\x19"
29229 "\x64\xa1\x02\x27\x3a\x8d\x43\xfa"
29230 "\x68\xff\xda\x8b\x40\xe9\x19\x8b"
29231 "\x56\xbe\x1c\x9b\xe6\xf6\x3f\x60"
29232 "\xdb\x7a\xd5\xab\x82\xd8\xd9\x99"
29233 "\xe3\x5b\x0c\x0c\x69\x18\x5c\xed"
29234 "\x03\xf9\xc1\x61\xc4\x7b\xd4\x90"
29235 "\x43\xc3\x39\xec\xac\xcb\x1f\x4b"
29236 "\x23\xf8\xa9\x98\x2f\xf6\x48\x90"
29237 "\x6c\x2b\x94\xad\x14\xdd\xcc\xa2"
29238 "\x3d\xc7\x86\x0f\x7f\x1c\x0b\x93"
29239 "\x4b\x74\x1f\x80\x75\xb4\x91\xdf"
29240 "\xa8\x26\xf9\x06\x2b\x3a\x2c\xfd"
29241 "\x3c\x31\x40\x1e\x5b\xa6\x86\x01"
29242 "\xc4\xa2\x80\x4f\xf5\xa2\xf4\xff"
29243 "\xf6\x07\x8c\x92\xf7\x74\xbd\x42"
29244 "\xb0\x3f\x6b\x05\xca\x40\xeb\x04"
29245 "\x20\xa9\x37\x78\x32\x03\x60\xcc"
29246 "\xf3\xec\xb2\x2d\xb5\x80\x7c\xe4"
29247 "\x37\x53\x25\xd1\xe8\x91\x6a\xe5"
29248 "\xdf\xdd\xb0\xab\x69\xc7\xa1\xb2"
29249 "\xfc\xb3\xd1\x9e\xda\xa8\x0d\x68"
29250 "\xfe\x7d\xdc\x56\x33\x65\x99\xd2"
29251 "\xec\xa5\xa0\xa1\x26\xc9\xec\xbd"
29252 "\x22\x20\x5e\x0d\xcb\x93\x64\x7a"
29253 "\x56\x75\xed\xe5\x45\xa2\xbd\x16"
29254 "\x59\xf7\x43\xd9\x5b\x2c\xdd\xb6"
29255 "\x1d\xa8\x05\x89\x2f\x65\x2e\x66"
29256 "\xfe\xad\x93\xeb\x85\x8f\xe8\x4c"
29257 "\x00\x44\x71\x03\x0e\x26\xaf\xfd"
29258 "\xfa\x56\x0f\xdc\x9c\xf3\x2e\xab"
29259 "\x88\x26\x61\xc6\x13\xfe\xba\xc1"
29260 "\xd8\x8a\x38\xc3\xb6\x4e\x6d\x80"
29261 "\x4c\x65\x93\x2f\xf5\x54\xff\x63"
29262 "\xbe\xdf\x9a\xe3\x4f\xca\xc9\x71"
29263 "\x12\xab\x95\x66\xec\x09\x64\xea"
29264 "\xdc\x9f\x01\x61\x24\x88\xd1\xa7"
29265 "\xd0\x69\x26\xf0\x80\xb0\xec\x86"
29266 "\xc2\x58\x2f\x6a\xc5\xfd\xfc\x2a"
29267 "\xf6\x3e\x23\x77\x3b\x7e\xc5\xc5"
29268 "\xe7\xf9\x4d\xcc\x68\x53\x11\xc8"
29269 "\x5b\x44\xbd\x48\x0f\xb3\x35\x1a"
29270 "\x93\x4a\x80\x16\xa3\x0d\x50\x85"
29271 "\xa6\xc4\xd4\x74\x4d\x87\x59\x51"
29272 "\xd7\xf7\x7d\xee\xd0\x9b\xd1\x83"
29273 "\x25\x2b\xc6\x39\x27\x6a\xb3\x41"
29274 "\x5f\xd2\x24\xd4\xd6\xfa\x8c\x3e"
29275 "\xb2\xf9\x11\x71\x7a\x9e\x5e\x7b"
29276 "\x5b\x9a\x47\x80\xca\x1c\xbe\x04"
29277 "\x5d\x34\xc4\xa2\x2d\x41\xfe\x73"
29278 "\x53\x15\x9f\xdb\xe7\x7d\x82\x19"
29279 "\x21\x1b\x67\x2a\x74\x7a\x21\x4a"
29280 "\xc4\x96\x6f\x00\x92\x69\xf1\x99"
29281 "\x50\xf1\x4a\x16\x11\xf1\x16\x51",
29282 .ctext = "\x2c\xf5\x4c\xc9\x99\x19\x83\x84"
29283 "\x09\xbc\xe6\xad\xbe\xb6\x6b\x1b"
29284 "\x75\x0b\x3d\x33\x10\xb4\x8b\xf7"
29285 "\xa7\xc7\xba\x9f\x6e\xd7\xc7\xfd"
29286 "\x58\xef\x24\xf4\xdc\x26\x3f\x35"
29287 "\x02\x98\xf2\x8c\x96\xca\xfc\xca"
29288 "\xca\xfa\x27\xe6\x23\x1f\xf0\xc7"
29289 "\xe3\x46\xbf\xca\x7b\x4e\x24\xcd"
29290 "\xd0\x13\x3f\x80\xd6\x5b\x0b\xdc"
29291 "\xad\xc6\x49\x77\xd7\x58\xf5\xfd"
29292 "\x58\xba\x72\x0d\x9e\x0b\x63\xc3"
29293 "\x86\xac\x06\x97\x70\x42\xec\x3a"
29294 "\x0d\x53\x27\x17\xbd\x3e\xcb\xe0"
29295 "\xaa\x19\xb4\xfe\x5d\x1b\xcb\xd7"
29296 "\x99\xc3\x19\x45\x6f\xdf\x64\x44"
29297 "\x9f\xf8\x55\x1b\x72\x8d\x78\x51"
29298 "\x3c\x83\x48\x8f\xaf\x05\x60\x7d"
29299 "\x22\xce\x07\x53\xfd\x91\xcf\xfa"
29300 "\x5f\x86\x66\x3e\x72\x67\x7f\xc1"
29301 "\x49\x82\xc7\x1c\x91\x1e\x48\xcd"
29302 "\x5e\xc6\x5f\xd9\xc9\x43\x88\x35"
29303 "\x80\xba\x91\xe1\x54\x4b\x14\xbe"
29304 "\xbd\x75\x48\xb8\xde\x22\x64\xb5"
29305 "\x8c\xcb\x5e\x92\x99\x8f\x4a\xab"
29306 "\x00\x6c\xb4\x2e\x03\x3b\x0e\xee"
29307 "\x4d\x39\x05\xbc\x94\x80\xbb\xb2"
29308 "\x36\x16\xa3\xd9\x8f\x61\xd7\x67"
29309 "\xb5\x90\x46\x85\xe1\x4e\x71\x84"
29310 "\xd0\x84\xc0\xc0\x8f\xad\xdb\xeb"
29311 "\x44\xf4\x66\x35\x3f\x92\xa2\x05"
29312 "\xa4\x9c\xb8\xdc\x77\x6c\x85\x34"
29313 "\xd2\x6a\xea\x32\xb8\x08\xf6\x13"
29314 "\x78\x1e\x29\xef\x12\x54\x16\x28"
29315 "\x25\xf8\x32\x0e\x4f\x94\xe6\xb3"
29316 "\x0b\x97\x79\x97\xb3\xb0\x37\x61"
29317 "\xa4\x10\x6f\x15\x9c\x7d\x22\x41"
29318 "\xe2\xd7\xa7\xa0\xfc\xc5\x62\x55"
29319 "\xed\x68\x39\x7b\x09\xd2\x17\xaa"
29320 "\xf2\xb8\xc9\x1d\xa2\x23\xfd\xaa"
29321 "\x9c\x57\x16\x0d\xe3\x63\x3c\x2b"
29322 "\x13\xdd\xa2\xf0\x8e\xd3\x02\x81"
29323 "\x09\xba\x80\x02\xdb\x97\xfe\x0f"
29324 "\x77\x8d\x18\xf1\xf4\x59\x27\x79"
29325 "\xa3\x46\x88\xda\x51\x67\xd0\xe9"
29326 "\x5d\x22\x98\xc1\xe4\xea\x08\xda"
29327 "\xf7\xb9\x16\x71\x36\xbd\x43\x8a"
29328 "\x4b\x6e\xf3\xaa\xb0\xba\x1a\xbc"
29329 "\xaa\xca\xde\x5c\xc0\xa5\x11\x6d"
29330 "\x8a\x8f\xcc\x04\xfc\x6c\x89\x75"
29331 "\x4b\x2c\x29\x6f\x41\xc7\x6e\xda"
29332 "\xea\xa6\xaf\xb0\xb1\x46\x9e\x30"
29333 "\x5e\x11\x46\x07\x3b\xd6\xaa\x36"
29334 "\xa4\x01\x84\x1d\xb9\x8e\x58\x9d"
29335 "\xa9\xb6\x1c\x56\x5c\x5a\xde\xfa"
29336 "\x66\x96\xe6\x29\x26\xd4\x68\xd0"
29337 "\x1a\xcb\x98\xbb\xce\x19\xbb\x87"
29338 "\x00\x6c\x59\x17\xe3\xd1\xe6\x5c"
29339 "\xd0\x98\xe1\x91\xc4\x28\xaf\xbf"
29340 "\xbb\xdf\x75\x4e\xd9\x9d\x99\x0f"
29341 "\xc6\x0c\x03\x24\x3e\xb6\xd7\x3f"
29342 "\xd5\x43\x4a\x47\x26\xab\xf6\x3f"
29343 "\x7f\xf1\x15\x0c\xde\x68\xa0\x5f"
29344 "\x63\xf9\xe2\x5e\x5d\x42\xf1\x36"
29345 "\x38\x90\x06\x18\x84\xf2\xfa\x81"
29346 "\x36\x33\x29\x18\xaa\x8c\x49\x0e"
29347 "\xda\x27\x38\x9c\x12\x8b\x83\xfa"
29348 "\x40\xd0\xb6\x0a\x72\x85\xf0\xc7"
29349 "\xaa\x5f\x30\x1a\x6f\x45\xe4\x35"
29350 "\x4c\xf3\x4c\xe4\x1c\xd7\x48\x77"
29351 "\xdd\x3e\xe4\x73\x44\xb1\xb8\x1c"
29352 "\x42\x40\x90\x61\xb1\x6d\x8b\x20"
29353 "\x2d\x30\x63\x01\x26\x71\xbc\x5a"
29354 "\x76\xce\xc1\xfb\x13\xf9\x4c\x6e"
29355 "\x7a\x16\x8a\x53\xcb\x07\xaa\xa1"
29356 "\xba\xd0\x68\x7a\x2d\x25\x48\x85"
29357 "\xb7\x6b\x0a\x05\xf2\xdf\x0e\x46"
29358 "\x4e\xc8\xcd\x59\x5b\x9a\x2e\x9e"
29359 "\xdb\x4a\xf6\xfd\x7b\xa4\x5c\x4d"
29360 "\x78\x8d\xe7\xb0\x84\x3f\xf0\xc1"
29361 "\x47\x39\xbf\x1e\x8c\xc2\x11\x0d"
29362 "\x90\xd1\x17\x42\xb3\x50\xeb\xaa"
29363 "\xcd\xc0\x98\x36\x84\xd0\xfe\x75"
29364 "\xf8\x8f\xdc\xa0\xa1\x53\xe5\x8c"
29365 "\xf2\x0f\x4a\x31\x48\xae\x3d\xaf"
29366 "\x19\x4b\x75\x2e\xc1\xe3\xcd\x4d"
29367 "\x2c\xa4\x54\x7b\x4d\x5e\x93\xa2"
29368 "\xe7\x1f\x34\x19\x9f\xb2\xbf\x22"
29369 "\x65\x1a\x03\x48\x12\x66\x50\x3e"
29370 "\x0e\x5d\x60\x29\x44\x69\x90\xee"
29371 "\x9d\x8b\x55\x78\xdf\x63\x31\xc3"
29372 "\x1b\x21\x7d\x06\x21\x86\x60\xb0"
29373 "\x9d\xdb\x3d\xcc\xe2\x20\xf4\x88"
29374 "\x20\x62\x2e\xe8\xa9\xea\x42\x41"
29375 "\xb0\xab\x73\x61\x40\x39\xac\x11"
29376 "\x55\x27\x51\x5f\x11\xef\xb1\x23"
29377 "\xff\x81\x99\x86\x0c\x6f\x16\xaf"
29378 "\xf6\x89\x86\xd8\xf6\x41\xc2\x80"
29379 "\x21\xf4\xd5\x6d\xef\xa3\x0c\x4d"
29380 "\x59\xfd\xdc\x93\x1a\x4f\xe6\x22"
29381 "\x83\x40\x0c\x98\x67\xba\x7c\x93"
29382 "\x0b\xa9\x89\xfc\x3e\xff\x84\x12"
29383 "\x3e\x27\xa3\x8a\x48\x17\xd6\x08"
29384 "\x85\x2f\xf1\xa8\x90\x90\x71\xbe"
29385 "\x44\xd6\x34\xbf\x74\x52\x0a\x17"
29386 "\x39\x64\x78\x1a\xbc\x81\xbe\xc8"
29387 "\xea\x7f\x0b\x5a\x2c\x77\xff\xac"
29388 "\xdd\x37\x35\x78\x09\x28\x29\x4a"
29389 "\xd1\xd6\x6c\xc3\xd5\x70\xdd\xfc"
29390 "\x21\xcd\xce\xeb\x51\x11\xf7\xbc"
29391 "\x12\x43\x1e\x6c\xa1\xa3\x79\xe6"
29392 "\x1d\x63\x52\xff\xf0\xbb\xcf\xec"
29393 "\x56\x58\x63\xe2\x21\x0b\x2d\x5c"
29394 "\x64\x09\xf3\xee\x05\x42\x34\x93"
29395 "\x38\xa8\x60\xea\x1d\x95\x90\x65"
29396 "\xad\x2f\xda\x1d\xdd\x21\x1a\xf1"
29397 "\x94\xe0\x6a\x81\xa1\xd3\x63\x31"
29398 "\x45\x73\xce\x54\x4e\xb1\x75\x26"
29399 "\x59\x18\xc2\x31\x73\xe6\xf5\x7d"
29400 "\x06\x5b\x65\x67\xe5\x69\x90\xdf"
29401 "\x27\x6a\xbf\x81\x7d\x92\xbe\xd1"
29402 "\x4e\x0b\xa8\x18\x94\x72\xe1\xd0"
29403 "\xb6\x2a\x16\x08\x7a\x34\xb8\xf2"
29404 "\xe1\xac\x08\x66\xe6\x78\x66\xfd"
29405 "\x36\xbd\xee\xc6\x71\xa4\x09\x4e"
29406 "\x3b\x09\xf2\x8e\x3a\x90\xba\xa0"
29407 "\xc2\x1d\x9f\xad\x52\x0e\xc9\x10"
29408 "\x99\x40\x90\xd5\x7d\x73\x56\xef"
29409 "\x48\x1e\x56\x5c\x7d\x3c\xcb\x84"
29410 "\x10\x0a\xcc\xda\xce\xad\xd8\xa8"
29411 "\x79\xc7\x29\x95\x31\x3b\xd9\x9b"
29412 "\xb6\x84\x3e\x03\x74\xc5\x76\xba"
29413 "\x4b\xd9\x4f\x7c\xc4\x5f\x7f\x70"
29414 "\xc5\xe3\x6e\xd0\x14\x32\xec\x60"
29415 "\xb0\x69\x78\xb7\xef\xda\x5a\xe7"
29416 "\x4e\x50\x97\xd4\x94\x58\x67\x57"
29417 "\x4e\x7c\x75\xe0\xcf\x8d\xe1\x78"
29418 "\x97\x52\xc8\x73\x81\xf9\xb6\x02"
29419 "\x54\x72\x6d\xc0\x70\xff\xe2\xeb"
29420 "\x6c\xe1\x30\x0a\x94\xd0\x55\xec"
29421 "\xed\x61\x9c\x6d\xd9\xa0\x92\x62"
29422 "\x4e\xfd\xd8\x79\x27\x02\x4e\x13"
29423 "\xb2\x04\xba\x00\x9a\x77\xed\xc3"
29424 "\x5b\xa4\x22\x02\xa9\xed\xaf\xac"
29425 "\x4f\xe1\x74\x73\x51\x36\x78\x8b"
29426 "\xdb\xf5\x32\xfd\x0d\xb9\xcb\x15"
29427 "\x4c\xae\x43\x72\xeb\xbe\xc0\xf8"
29428 "\x91\x67\xf1\x4f\x5a\xd4\xa4\x69"
29429 "\x8f\x3e\x16\xd2\x09\x31\x72\x5a"
29430 "\x5e\x0a\xc4\xbc\x44\xd4\xbb\x82"
29431 "\x7a\xdf\x52\x25\x8c\x45\xdc\xe4"
29432 "\xe0\x71\x84\xe4\xe0\x3d\x59\x30"
29433 "\x5b\x94\x12\x33\x78\x85\x90\x84"
29434 "\x52\x05\x33\xa7\xa7\x16\xe0\x4d"
29435 "\x6a\xf7\xfa\x03\x98\x6c\x4f\xb0"
29436 "\x06\x66\x06\xa1\xdd\x3c\xbe\xbb"
29437 "\xb2\x62\xab\x64\xd3\xbf\x2c\x30"
29438 "\x0e\xfc\xd9\x95\x32\x32\xf3\x3b"
29439 "\x39\x7e\xda\x62\x62\x0f\xc3\xfe"
29440 "\x55\x76\x09\xf5\x8a\x09\x91\x93"
29441 "\x32\xea\xbc\x2b\x0b\xcf\x1d\x65"
29442 "\x48\x33\xba\xeb\x0f\xd4\xf9\x3b"
29443 "\x1e\x90\x74\x6d\x93\x52\x61\x81"
29444 "\xa3\xf2\xb5\xea\x1d\x61\x86\x68"
29445 "\x00\x40\xcc\x58\xdd\xf2\x64\x01"
29446 "\xab\xfd\x94\xc0\xa3\x83\x83\x33"
29447 "\xa4\xb0\xb8\xd3\x9d\x08\x3c\x7f"
29448 "\x8e\xa8\xaf\x87\xa5\xe7\xcd\x36"
29449 "\x92\x96\xdc\xa1\xf2\xea\xe6\xd1"
29450 "\x1e\xe9\x65\xa4\xff\xda\x17\x96"
29451 "\xad\x91\x4a\xc5\x26\xb4\x1d\x1c"
29452 "\x2b\x50\x48\x26\xc8\x86\x3f\x05"
29453 "\xb8\x87\x1b\x3f\xee\x2e\x55\x61"
29454 "\x0d\xdc\xcf\x56\x0e\xe2\xcc\xda"
29455 "\x87\xee\xc5\xcd\x0e\xf4\xa4\xaf"
29456 "\x8a\x02\xee\x16\x0b\xc4\xdd\x6d"
29457 "\x80\x3e\xf3\xfe\x95\xb4\xfe\x97"
29458 "\x0d\xe2\xab\xbb\x27\x84\xee\x25"
29459 "\x39\x74\xb0\xfb\xdc\x5a\x0f\x65"
29460 "\x31\x2a\x89\x08\xa4\x8c\x9f\x25"
29461 "\x5f\x93\x83\x39\xda\xb4\x22\x17"
29462 "\xbd\xd2\x0d\xfc\xde\xf8\x00\x34"
29463 "\xc2\x48\x55\x06\x4c\x8b\x79\xe5"
29464 "\xba\x0c\x50\x4f\x98\xa3\x59\x3d"
29465 "\xc4\xec\xd1\x85\xf3\x60\x41\x16"
29466 "\x0a\xe2\xf4\x38\x33\x24\xc1\xe0"
29467 "\x0d\x86\x1f\x5a\xd2\xba\x7c\x5f"
29468 "\x97\x60\x54\xa3\x52\x31\x78\x57"
29469 "\x7a\xc0\xc7\x1e\xd4\x11\x8f\xef"
29470 "\x86\x0a\x60\x26\x4a\x8f\x06\xf7"
29471 "\x1f\x47\x45\x6e\x87\x13\x15\xf3"
29472 "\x91\x08\xbf\x2a\x6e\x71\x21\x8e"
29473 "\x92\x90\xde\x01\x97\x81\x46\x87"
29474 "\x8a\xfc\xab\x12\x0c\x60\x3e\x9d"
29475 "\xbd\x40\x0a\x45\x3f\x5b\x83\x04"
29476 "\xb5\x8f\x42\x78\x68\xfe\x3a\xd1"
29477 "\x59\xf7\x12\xaa\x86\x86\x1c\x77"
29478 "\xfc\xc6\x64\x47\x0f\x7e\xd3\xbc"
29479 "\x95\x90\x23\xb3\x60\xdc\x0d\xf4"
29480 "\x67\xe6\x32\xee\xad\xbf\x60\x07"
29481 "\xbd\xdb\x6e\x3f\x55\x88\xdb\x93"
29482 "\x62\x41\xd6\xeb\x34\xd6\xa3\x96"
29483 "\xd2\xbc\x29\xaa\x75\x65\x41\x9f"
29484 "\x70\x43\xbb\x6d\xd9\xa5\x95\x22"
29485 "\x3e\xf9\x07\xa0\x7d\x75\xba\xb8"
29486 "\xcd\x81\x3b\x94\x01\x19\xc3\x67"
29487 "\x9d\xa4\x7f\xa0\x99\xcc\x4a\xc4"
29488 "\xfa\x76\x3f\xab\x5c\xea\x26\xdf"
29489 "\xa2\x4c\x5b\x11\x55\xa3\x6a\x70"
29490 "\xcb\xbc\x93\x11\x48\x38\x73\x7a"
29491 "\x40\xbf\xbc\x04\x05\xb0\x2d\x9b"
29492 "\x9a\x23\x57\xa5\xf6\x63\xfa\xc7"
29493 "\xd8\x4d\xc2\xc0\xf8\xbd\xfb\x7d"
29494 "\xea\x20\xa2\xe0\x4d\xaa\x63\x1e"
29495 "\x9a\xa2\xed\x54\xe6\x49\xaf\x52"
29496 "\xaf\x7e\x94\x57\x19\x07\x06\x74"
29497 "\x57\x5b\x62\x61\x99\x20\xe7\x95"
29498 "\x14\x19\xcf\x42\x83\x6a\x94\xf5"
29499 "\xab\xa7\xf2\x48\xf6\x0b\x40\x3d"
29500 "\x93\x8d\x3d\x14\x5d\xf2\x45\x2c"
29501 "\xac\x1c\x0b\x12\xc9\x56\x3f\x7c"
29502 "\x17\xeb\x1d\xed\x7e\x5c\xaa\x37"
29503 "\xe3\xb4\x56\xf9\x0e\xb9\x8e\xc8"
29504 "\x16\x70\x3e\xff\x95\xb9\x89\x9c"
29505 "\x19\x0d\x0d\x48\xbd\xb9\xe3\x73"
29506 "\xdf\x4e\x67\x9d\x93\x6c\x0b\x75"
29507 "\x8a\x2d\x89\x5c\x32\x9d\x75\x05"
29508 "\xd9\x13\xbe\x14\x5f\xf0\xb7\xb4"
29509 "\xd9\x2c\x02\x22\x41\xf2\x9c\x1f"
29510 "\xc1\x8c\xf5\x6a\x8c\xd5\xa5\x6b"
29511 "\x54\x47\xec\x3a\x76\x08\xf6\xf7"
29512 "\xed\x7c\x7e\x3b\x55\xb8\xa9\x20"
29513 "\xa6\xec\x2d\x8c\x03\x38\x9d\x74"
29514 "\xe9\x36\xe7\x05\x40\xec\xf4\xa1"
29515 "\xa7\x70\xa7\x6f\x1f\x93\xc2\x1d"
29516 "\x2c\x4e\x5f\xe8\x04\x6d\x91\x67"
29517 "\x23\xd9\x47\xb4\xf6\xbc\x35\x25"
29518 "\x1b\xa8\xe1\x17\xa8\x21\x38\xd8"
29519 "\x7a\x55\xd9\xc6\x6f\x0a\x1b\xcb"
29520 "\xde\xf8\x1e\x20\x8c\xa1\x14\x49"
29521 "\x49\x00\x00\x31\x0f\xa8\x24\x67"
29522 "\x97\x7a\x1f\x04\xb9\x6b\x60\xd0"
29523 "\x32\xc3\xf4\xf9\x4f\xb2\xfd\x7b"
29524 "\xf9\xb3\x43\xd8\x23\xaa\x21\x37"
29525 "\x9e\x91\xc5\xa4\xce\xd8\xe4\xf5"
29526 "\x55\x3e\xc9\xe4\xc5\x51\xd3\x4d"
29527 "\xc6\x83\xe9\x23\x8e\x3e\x21\xe0"
29528 "\x40\x23\x4e\x2b\x2d\x89\xc4\x5d"
29529 "\x58\xdc\x43\x03\x8e\x9a\xfb\xef"
29530 "\x76\xac\x78\x57\xc3\xb8\xf7\x9f"
29531 "\xf5\xb1\xc2\xa4\x0c\xee\x58\x52"
29532 "\x45\xdf\x1a\xd9\x0e\xe0\x56\x1f"
29533 "\x23\x79\x99\x5f\x34\xad\x9f\x41"
29534 "\x67\x2a\xc7\x8b\xe7\x82\x6e\x67"
29535 "\x58\xb5\xae\x18\xd7\x2f\x8f\x57"
29536 "\x0e\xa4\x21\x3c\x84\x21\x05\x50"
29537 "\x57\xb0\xd1\xb1\xc8\x9d\xd4\x44"
29538 "\x25\x40\x6b\xd5\x6f\x18\x92\x89"
29539 "\x6d\x5b\xe9\x5a\x3c\x74\xc0\x33"
29540 "\x2c\x7a\xa7\x99\x71\x4e\x9d\x1b"
29541 "\xe1\x1d\xcb\x62\x8b\x3c\x07\x07"
29542 "\x67\xf6\xa6\x54\x10\x72\x3f\xea"
29543 "\xe5\xcd\xe6\xf1\xeb\x3d\x43\x0b"
29544 "\xfe\x4b\xc7\x1d\x3d\xd9\xa3\xe2"
29545 "\x9b\x79\x47\xc7\xab\x28\xcc\x4d"
29546 "\xa8\x77\x9c\xec\xef\x56\xf8\x92"
29547 "\x07\x48\x1b\x21\x04\xa8\x24\xb0"
29548 "\x82\x7d\xd1\x17\xa4\xaf\x5f\xfa"
29549 "\x92\xbf\x6a\xb7\x7e\xc7\xb7\x75"
29550 "\x40\x3c\x14\x09\x57\xae\xe0\x4e"
29551 "\xf8\xc9\xda\x1e\x5d\x27\xc4\x8c"
29552 "\x27\xe3\x4d\xe3\x55\x8c\xd2\xef"
29553 "\x0c\xab\x67\x53\x96\xd3\x48\xfb"
29554 "\x75\x4f\x74\x9e\xcb\x82\xa4\x96"
29555 "\x91\x41\x48\xaa\x65\xdb\x34\x72"
29556 "\xc9\xee\xa2\x77\x8b\x6e\x44\x12"
29557 "\x4e\x51\x51\xc3\xf5\xef\x6a\x50"
29558 "\x99\x26\x41\x1e\x66\xa4\x2b\xb9"
29559 "\x21\x15\x38\xc2\x0b\x7f\x37\xb6"
29560 "\x89\x8b\x27\x70\xae\xa1\x90\x28"
29561 "\x04\xe7\xd5\x17\xcb\x60\x99\xb4"
29562 "\xe2\xd7\x04\xd3\x11\x27\x86\xe4"
29563 "\xd0\x0d\x36\x04\x68\xe0\xb4\x71"
29564 "\xe8\x86\x4b\x9f\xa3\xd2\xda\x87"
29565 "\xc2\x2c\xad\x66\xfa\x53\x18\xf8"
29566 "\xec\x10\x74\xc5\xb6\x53\x09\x93"
29567 "\x21\x09\xbd\x77\x2d\x2a\x12\x4c"
29568 "\x86\xfe\x50\x8e\xd1\x16\xab\xb1"
29569 "\xfd\xd7\x87\xde\xc3\x6f\x7c\x16"
29570 "\xe2\x88\x3d\x41\xac\x36\x7e\xf8"
29571 "\xc2\x3b\x46\xd5\x44\x3d\x9d\xe8"
29572 "\xe9\x0c\xb7\xb3\xc6\xb9\xe5\xe7"
29573 "\x27\x17\x78\x03\xd4\xda\xe4\x73"
29574 "\x38\x34\xe7\x53\x29\xc4\xcb\x93"
29575 "\xc9\xa1\x10\x8a\xb2\xfc\x0b\x07"
29576 "\x47\xb8\xb1\x13\x49\x86\x24\x8b"
29577 "\x10\xb1\xd9\x5f\xbb\xd8\x90\x37"
29578 "\x06\x03\xe0\x76\xff\x19\x1a\x16"
29579 "\xd8\x2d\xa7\x4a\xea\x22\x64\xbe"
29580 "\xed\x1c\xc8\x33\xb4\xf4\xb1\x48"
29581 "\x95\xb5\x2f\xaa\x05\xc7\x03\xa0"
29582 "\xf1\xa4\xf3\x63\x4b\xbe\x79\xb9"
29583 "\x4b\x67\x7e\x4e\x3e\x81\x8f\xef"
29584 "\xe9\x55\x99\x30\xd0\x26\xec\x5d"
29585 "\x89\xb6\x3f\x28\x38\x81\x7a\x00"
29586 "\x89\x85\xb8\xff\x19\x0f\x8f\x5d"
29587 "\x5c\x6d\x6a\x3d\x6c\xb9\xfb\x7c"
29588 "\x0c\x4b\x7e\xbc\x0c\xc4\xad\xbb"
29589 "\x0a\x8b\xc8\x48\xb7\xfa\x4d\x53"
29590 "\x82\x10\xd6\x29\x58\x83\x50\x3c"
29591 "\xd4\x5a\xfd\x14\xa3\xb5\x88\xfb"
29592 "\x23\xee\xc9\xcc\xab\x92\x52\xb3"
29593 "\x0b\x07\xf3\x1e\x9a\x2a\x2e\x35"
29594 "\x32\x37\xa5\x86\xd0\xe5\x5f\xdd"
29595 "\x3d\x67\x70\xb4\x9a\xc9\x93\xdc"
29596 "\x31\x33\xe3\x3a\xc5\xcf\xd9\x44"
29597 "\x2f\x3f\x87\xb2\x0c\x36\x55\x17"
29598 "\xa9\xda\xb1\xca\x00\x09\x87\xe6"
29599 "\x66\x34\xb3\x9f\x52\x37\x98\x10"
29600 "\x2e\x5d\xa4\x14\x7f\x63\xa6\xcd"
29601 "\x6c\x2d\x7c\x74\x4c\xae\x9c\x65"
29602 "\xe0\x79\xc0\xd6\xc3\xfe\xa8\xf4"
29603 "\x1a\x4f\xf5\xbc\xea\x7a\x92\x40"
29604 "\x51\xa7\x05\x45\x40\xd8\x9c\x3c"
29605 "\xde\x5f\x0b\x6e\x10\x5c\x1c\xdc"
29606 "\xd2\x65\x60\xbb\x70\x68\x5c\xa9"
29607 "\x59\x25\x0e\x4e\x93\xb8\x49\x89"
29608 "\xf6\xae\xeb\x1f\x8b\x56\xc8\x56"
29609 "\xb0\xb5\xc9\xee\xa5\x15\x07\x4d"
29610 "\x8a\xcc\xad\x04\x4d\x99\x8c\x49"
29611 "\x8d\x7c\xe0\xa5\x7d\x7f\x33\x61"
29612 "\xf2\xfc\xe7\x88\x3f\x2b\x73\xab"
29613 "\x2e\x38\x17\x48\xa9\x86\xdd\x81"
29614 "\x21\x45\xbc\x98\x1d\xe5\xa5\xbc"
29615 "\x0d\x0b\x18\x8e\x86\x1e\x76\x0a"
29616 "\x30\x12\x21\xf0\x51\xed\xc1\xcd"
29617 "\x9a\xf1\x7e\x7e\x64\xb2\xa3\xd6"
29618 "\x37\xe7\xc6\xde\x97\xb9\x5d\x05"
29619 "\xf5\x50\xe2\x0a\xaa\x68\x16\xa6"
29620 "\x26\x9c\x7d\xff\x4c\x05\xce\x48"
29621 "\xa7\xff\x10\x19\x5e\xef\x46\x54"
29622 "\xec\xe4\x7b\xb6\x12\x23\xae\x93"
29623 "\x4f\x79\xf8\x3c\x1c\x07\x15\x66"
29624 "\x07\xc1\x52\xde\x7f\xda\x51\x7b"
29625 "\xfe\x13\x67\xab\x8d\x56\xdc\xc1"
29626 "\x70\x4b\x13\xd2\x30\x00\xc1\x97"
29627 "\x22\xa7\x83\xf8\x18\xd9\x6d\x40"
29628 "\x54\xe0\xc1\xdb\x3e\x83\x73\x12"
29629 "\xe1\x48\x49\xb9\xd4\x20\x0c\x06"
29630 "\x1c\x82\xb5\xbe\x5a\xae\x60\x5e"
29631 "\xe2\x09\xba\x05\xbb\x9a\x80\x63"
29632 "\xf2\xc4\x4b\x41\x39\x16\x76\x26"
29633 "\xb1\x03\x06\x23\x65\x37\x33\x92"
29634 "\xca\xf9\x72\xf5\xcd\x95\xc1\xc0"
29635 "\x91\x5a\xfd\x28\xb9\x62\x59\x84"
29636 "\x87\x9d\x82\xcb\xe0\x67\x7c\x26"
29637 "\xb8\x00\x16\xd9\x5d\xb4\x74\xd4"
29638 "\x75\x8c\x75\xf8\x87\x3b\xa8\x77"
29639 "\xcd\x82\x3d\x7b\xb9\x63\x44\x0f"
29640 "\x44\x83\x55\x5b\xc7\xdc\x18\x0b"
29641 "\x8c\x36\xb3\x59\xeb\x58\x13\x38"
29642 "\x4b\x8a\xb7\xa3\x9a\xa2\xf3\xeb"
29643 "\xc6\x30\x84\x86\x0a\xcf\x8b\xfa"
29644 "\x36\x66\x26\xbc\xd0\x96\xa3\xb4"
29645 "\x8d\x6b\xf7\x5b\x75\x59\xbb\xd3"
29646 "\x14\x78\x57\x2f\x27\xa8\x95\xcf"
29647 "\xa2\xa5\x76\x28\xbd\xab\x8b\x59"
29648 "\x04\x91\x8a\xc5\x3c\xc3\xa7\xcf"
29649 "\xe0\xfb\xdd\x7a\xbb\x10\xde\x36"
29650 "\x43\x1c\x59\xf7\x41\xb6\xa5\x80"
29651 "\x72\x7b\xe3\x7a\xa3\x01\xc3\x8c"
29652 "\x7e\xf3\xf2\x42\x1a\x0c\x7e\xf3"
29653 "\xfc\x5b\x6e\x1f\x20\xf1\x32\x76"
29654 "\x83\x71\x36\x3e\x7e\xa7\xf7\xdd"
29655 "\x25\x2e\xe6\x04\xe2\x5b\x44\xb5"
29656 "\x16\xfb\xdf\x9b\x46\x2a\xa8\x81"
29657 "\x89\x15\x3e\xb5\xb0\x09\x40\x33"
29658 "\x60\xc7\x37\x63\x14\x09\xc1\x6e"
29659 "\x56\x52\xbe\xe4\x88\xe0\x75\xbc"
29660 "\x49\x62\x8c\xf1\xdf\x62\xe6\xac"
29661 "\xd5\x87\xf7\xc9\x92\x52\x36\x59"
29662 "\x22\x6f\x31\x99\x76\xdb\x41\xb6"
29663 "\x26\x91\x79\x7e\xd2\x78\xaf\x07"
29664 "\x78\x4b\xed\x54\x30\xb2\xff\xbc"
29665 "\x2c\x0a\x1a\xbe\xbf\xd5\x5a\x4d"
29666 "\xd1\xbc\x30\xc2\xf4\xf1\xc1\x9e"
29667 "\x9a\x96\x89\x00\x50\xfc\xf6\xaf"
29668 "\xfa\x60\xbf\x1a\x32\x8f\x57\x36"
29669 "\x2f\x02\xb7\x28\x50\xc3\xd3\xfd"
29670 "\x6b\xc4\xe6\xbb\xc9\xec\xed\x86"
29671 "\xdf\x27\x45\x2c\x0c\x6d\x65\x3b"
29672 "\x6e\x63\x96\xc7\xd6\xb5\xb2\x05"
29673 "\x8b\xe0\x02\x2a\xfa\x20\x0c\x82"
29674 "\xa5\x45\x75\x12\x01\x40\xff\x3e"
29675 "\xfd\xfc\xfb\xbc\x30\x49\xe8\x99"
29676 "\x8d\x48\x8e\x49\x65\x2a\xe3\xa5"
29677 "\x06\xe3\x22\x68\x3b\xd9\xa4\xcf"
29678 "\x84\x6f\xfa\x2b\xb1\xd8\x8c\x30"
29679 "\xd5\x5d\x0c\x63\x32\x59\x28\x6e"
29680 "\x2a\x60\xa4\x57\x12\xf8\xc2\x95"
29681 "\x0a\xf6\xc6\x48\x23\xce\x72\x40"
29682 "\x0d\x75\xa0\xd4\x48\x03\xf5\xc4"
29683 "\xcd\x26\xe7\x83\xcc\x0d\xcf\x7f"
29684 "\x22\x5f\x91\xb3\x42\x02\x9a\x26"
29685 "\x12\x26\x68\x12\x25\x0b\x08\x61"
29686 "\xcb\x25\x86\x95\xfc\x57\x4d\xb6"
29687 "\x36\x6c\xb4\xdc\xa9\x2d\x76\x7f"
29688 "\x25\x06\xa2\x08\x69\x09\xd9\x09"
29689 "\x3c\x40\xe1\xfd\x30\x8f\xc2\x13"
29690 "\x92\xd4\xb5\x3b\x0c\xb2\x32\x4f"
29691 "\x10\xc9\x1a\x41\xa6\xb2\x11\xf6"
29692 "\x3b\x1b\x88\x56\xbf\x61\x3c\xb2"
29693 "\xe6\xdb\x24\x9a\x55\x7e\x35\xf8"
29694 "\x82\x5e\x52\xe3\xf2\xb3\x40\x1c"
29695 "\xdd\xe3\x29\x37\xe0\x85\x08\x8b"
29696 "\xb2\x8b\x09\x38\xac\xa9\x85\xe5"
29697 "\x9e\x36\xb8\x95\x0b\x84\x9d\x10"
29698 "\xcc\xae\xe2\x06\x56\x3c\x85\xce"
29699 "\xc0\xdc\x36\x59\x17\xf9\x48\xf4"
29700 "\x5b\x08\x8e\x86\x00\xa0\xf5\xdd"
29701 "\x0c\xb6\x63\xfd\x5a\xe5\x1e\xa6"
29702 "\x0a\xef\x76\xc2\xc7\x9b\x96\x2f"
29703 "\x66\x2b\x7d\x50\xa6\x0c\x42\xc6"
29704 "\xa5\x05\x05\x10\xeb\xd8\xda\x15"
29705 "\x03\xbe\x2f\x24\x34\x8f\x84\xd8"
29706 "\x58\xb8\xa3\xf2\x63\xc8\xc3\xf6"
29707 "\xc2\xde\x27\x58\x69\xf9\x07\xca"
29708 "\x12\x3e\xe2\xf4\xc8\x29\x60\x30"
29709 "\x2f\x87\xf4\x50\xc2\x25\xcc\xfd"
29710 "\xdc\x76\x4f\x56\x1c\xb2\xd9\x78"
29711 "\x11\x6b\x6e\xb4\x67\xbf\x25\xc4"
29712 "\xae\x7d\x50\x7f\xb2\x5c\x69\x26"
29713 "\xed\x6b\xd2\x3b\x42\x64\xe3\x0c"
29714 "\x15\xa6\xd1\xb6\x3e\x23\x76\x09"
29715 "\x48\xd2\x08\x41\x76\xc9\x7d\x5f"
29716 "\x50\x5d\x8e\xf9\x04\x96\xed\x3a"
29717 "\xf8\x7c\x3b\x7d\x84\xba\xea\xe6"
29718 "\x24\xd2\x0f\x7f\x5a\x0b\x6f\xd9"
29719 "\x33\x14\x67\xfb\x9f\xe7\x44\x4e"
29720 "\x3b\x4b\x06\xaa\xb4\x7a\x8b\x83"
29721 "\x82\x74\xa6\x5e\x10\xea\xd6\x4b"
29722 "\x56\x32\xd7\x79\x7c\x05\xf4\x64"
29723 "\x9c\x64\x25\x9c\xc2\xda\x21\x9a"
29724 "\xd8\xde\x37\x83\x3f\xd8\x83\xa2"
29725 "\x1e\x3c\x1e\x41\x7e\xf2\x97\x84"
29726 "\xe5\xa2\x02\x2b\x6e\xc5\xd7\x91"
29727 "\x24\x66\xc1\xf0\x05\x1c\x0f\x3d"
29728 "\xcf\x63\x94\x10\x2e\x0e\x89\xda"
29729 "\x0d\xe9\x58\x2a\x48\x0c\xc8\x36"
29730 "\xc4\x7b\xf0\xd3\xe2\x5b\xf1\xf6"
29731 "\xad\x3d\xe7\x25\x6b\x83\x08\x5c"
29732 "\xd9\x79\xde\x93\x37\x93\x92\x46"
29733 "\xe7\xf4\x1c\x9e\x94\x91\x30\xd9"
29734 "\xb6\x57\xf1\x04\xb5\x2f\xe3\xb9"
29735 "\x0a\x78\xfe\xcb\xb5\x31\xc1\xc6"
29736 "\x99\xb3\xaf\x73\xfb\x69\xcb\x49"
29737 "\xd2\xec\xea\xd3\x0f\x45\x13\x23"
29738 "\xc8\xae\x92\x29\xce\x71\xd0\xba"
29739 "\xcf\xfd\xb2\x14\x61\xfd\xf6\x7b"
29740 "\xdf\x05\xe5\xbb\x58\xf7\x41\x3b"
29741 "\x6e\xd2\x14\x28\x7c\x15\xb7\x70"
29742 "\xca\xc7\x7a\xd7\x4e\x4b\x35\x6e"
29743 "\x9e\x09\x24\x33\xaf\xca\x41\x1f"
29744 "\x0d\xe3\xf1\x7c\x35\xcb\xe2\x0a"
29745 "\xb2\xeb\x94\x7a\xbc\x53\xd7\xe1"
29746 "\x5e\xbc\xa1\x55\xef\x3c\x37\xef"
29747 "\x6d\xfe\x3a\xcd\xcf\x48\x36\x26"
29748 "\xdb\x3e\x44\xdd\xc8\x03\xa6\xa6"
29749 "\x85\xb5\xfe\xf3\xec\x44\xb3\x22"
29750 "\x9d\x21\x82\xc6\x0b\x1a\x7c\xc6"
29751 "\xf7\xa9\x8e\x7e\x13\x1a\x85\x1f"
29752 "\x93\x81\x38\x47\xc0\x83\x21\xa3"
29753 "\xde\xec\xc0\x8f\x4c\x3b\x57\x2f"
29754 "\x92\xbb\x66\xe3\x24\xeb\xae\x1e"
29755 "\xb3\x18\x57\xf2\xf3\x4a\x50\x52"
29756 "\xe9\x91\x08\x1f\x85\x44\xc1\x07"
29757 "\xa1\xd3\x62\xe9\xe0\x82\x38\xfd"
29758 "\x27\x3f\x7e\x10\x7d\xaf\xa1\x7a"
29759 "\xf0\xaa\x79\xee\x6e\xa2\xc0\xbb"
29760 "\x01\xda\xfb\xc4\x85\x26\x85\x31"
29761 "\x15\xf4\x3c\xe0\x96\x79\x0e\xd7"
29762 "\x50\x68\x37\x57\xb5\x31\xf7\x3c"
29763 "\xbd\xaa\xcc\x2c\x8f\x57\x59\xa5"
29764 "\xd4\x4b\xc6\x45\xc0\x32\x3d\x85"
29765 "\x6d\xee\xf4\x6b\x63\xf9\x3a\xfb"
29766 "\x2f\xdb\xb8\x42\x19\x8e\x88\x1f"
29767 "\xfd\x7d\x0b\x69\x14\x8f\x36\xb2"
29768 "\xd9\x27\x34\x53\x9c\x52\x00\x94"
29769 "\xcc\x8b\x37\x82\xaf\x8e\xb3\xc0"
29770 "\x8a\xcf\x44\xc6\x3a\x19\xbe\x1f"
29771 "\x23\x33\x68\xc4\xb6\xbb\x13\x20"
29772 "\xec\x6a\x87\x5b\xc2\x7c\xd3\x04"
29773 "\x34\x97\x32\xd5\x11\x02\x06\x45"
29774 "\x98\x0b\xaa\xab\xbe\xfb\xd0\x2c"
29775 "\x0e\xf1\x8b\x7f\x1c\x70\x85\x67"
29776 "\x60\x50\x66\x79\xbb\x45\x21\xc4"
29777 "\xb5\xd3\xb9\x4f\xe5\x41\x49\x86"
29778 "\x6b\x20\xef\xac\x16\x74\xe9\x23"
29779 "\xa5\x2d\x5c\x2b\x85\xb2\x33\xe8"
29780 "\x2a\xd1\x24\xd1\x5b\x9b\x7f\xfc"
29781 "\x2f\x3b\xf7\x6a\x8b\xde\x55\x7e"
29782 "\xda\x13\x1b\xd6\x90\x74\xb0\xbe"
29783 "\x46\x0d\xcf\xc7\x78\x33\x31\xdc"
29784 "\x6a\x6a\x50\x3e\x4c\xe2\xab\x48"
29785 "\xbc\x4e\x7d\x62\xb9\xfc\xdd\x85"
29786 "\x1c\x5d\x93\x15\x5e\x01\xd9\x2b"
29787 "\x48\x71\x82\xd6\x44\xd6\x0e\x92"
29788 "\x6e\x75\xc9\x3c\x1d\x31\x18\x6f"
29789 "\x8b\xd7\x18\xf3\x09\x08\x45\xb1"
29790 "\x3e\xa4\x25\xc6\x34\x48\xaf\x42"
29791 "\x77\x33\x03\x65\x3e\x2f\xff\x8f"
29792 "\xe9\xe1\xa0\xfe\xb2\xc3\x80\x77"
29793 "\x20\x05\xe4\x9b\x47\x3b\xb2\xbd",
29794 .len = 4096,
Eric Biggers059c2a42018-11-16 17:26:31 -080029795 }
29796};
29797
Eric Biggersaa762402018-11-16 17:26:22 -080029798/*
Herbert Xuda7f0332008-07-31 17:08:25 +080029799 * CTS (Cipher Text Stealing) mode tests
29800 */
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029801static const struct cipher_testvec cts_mode_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080029802 { /* from rfc3962 */
29803 .klen = 16,
29804 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
29805 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029806 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080029807 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
29808 "\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029809 .len = 17,
29810 .ctext = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4"
Herbert Xuda7f0332008-07-31 17:08:25 +080029811 "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f"
29812 "\x97",
29813 }, {
29814 .klen = 16,
29815 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
29816 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029817 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080029818 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
29819 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
29820 "\x20\x47\x61\x75\x27\x73\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029821 .len = 31,
29822 .ctext = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1"
Herbert Xuda7f0332008-07-31 17:08:25 +080029823 "\xd4\x45\xd4\xc8\xef\xf7\xed\x22"
29824 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
29825 "\xc0\x7b\x25\xe2\x5e\xcf\xe5",
29826 }, {
29827 .klen = 16,
29828 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
29829 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029830 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080029831 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
29832 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
29833 "\x20\x47\x61\x75\x27\x73\x20\x43",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029834 .len = 32,
29835 .ctext = "\x39\x31\x25\x23\xa7\x86\x62\xd5"
Herbert Xuda7f0332008-07-31 17:08:25 +080029836 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
29837 "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
29838 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84",
29839 }, {
29840 .klen = 16,
29841 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
29842 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029843 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080029844 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
29845 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
29846 "\x20\x47\x61\x75\x27\x73\x20\x43"
29847 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
29848 "\x70\x6c\x65\x61\x73\x65\x2c",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029849 .len = 47,
29850 .ctext = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
Herbert Xuda7f0332008-07-31 17:08:25 +080029851 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
29852 "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c"
29853 "\x1b\x55\x49\xd2\xf8\x38\x02\x9e"
29854 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
29855 "\xbe\x7f\xcb\xcc\x98\xeb\xf5",
29856 }, {
29857 .klen = 16,
29858 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
29859 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029860 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080029861 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
29862 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
29863 "\x20\x47\x61\x75\x27\x73\x20\x43"
29864 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
29865 "\x70\x6c\x65\x61\x73\x65\x2c\x20",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029866 .len = 48,
29867 .ctext = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
Herbert Xuda7f0332008-07-31 17:08:25 +080029868 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
29869 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
29870 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8"
29871 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
29872 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8",
29873 }, {
29874 .klen = 16,
29875 .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20"
29876 "\x74\x65\x72\x69\x79\x61\x6b\x69",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029877 .ptext = "\x49\x20\x77\x6f\x75\x6c\x64\x20"
Herbert Xuda7f0332008-07-31 17:08:25 +080029878 "\x6c\x69\x6b\x65\x20\x74\x68\x65"
29879 "\x20\x47\x65\x6e\x65\x72\x61\x6c"
29880 "\x20\x47\x61\x75\x27\x73\x20\x43"
29881 "\x68\x69\x63\x6b\x65\x6e\x2c\x20"
29882 "\x70\x6c\x65\x61\x73\x65\x2c\x20"
29883 "\x61\x6e\x64\x20\x77\x6f\x6e\x74"
29884 "\x6f\x6e\x20\x73\x6f\x75\x70\x2e",
Eric Biggers92a4c9f2018-05-20 22:50:29 -070029885 .len = 64,
29886 .ctext = "\x97\x68\x72\x68\xd6\xec\xcc\xc0"
Herbert Xuda7f0332008-07-31 17:08:25 +080029887 "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84"
29888 "\x39\x31\x25\x23\xa7\x86\x62\xd5"
29889 "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8"
29890 "\x48\x07\xef\xe8\x36\xee\x89\xa5"
29891 "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40"
29892 "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0"
29893 "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8",
29894 }
29895};
29896
29897/*
29898 * Compression stuff.
29899 */
29900#define COMP_BUF_SIZE 512
29901
29902struct comp_testvec {
29903 int inlen, outlen;
29904 char input[COMP_BUF_SIZE];
29905 char output[COMP_BUF_SIZE];
29906};
29907
29908/*
29909 * Deflate test vectors (null-terminated strings).
Geert Uytterhoevenbcf84a32008-12-18 17:17:46 +110029910 * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL.
Herbert Xuda7f0332008-07-31 17:08:25 +080029911 */
Geert Uytterhoeven0c01aed2009-03-04 15:42:15 +080029912
Eric Biggersb13b1e02017-02-24 15:46:59 -080029913static const struct comp_testvec deflate_comp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080029914 {
29915 .inlen = 70,
29916 .outlen = 38,
29917 .input = "Join us now and share the software "
29918 "Join us now and share the software ",
29919 .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
29920 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
29921 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
29922 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
29923 "\x71\xbc\x08\x2b\x01\x00",
29924 }, {
29925 .inlen = 191,
29926 .outlen = 122,
29927 .input = "This document describes a compression method based on the DEFLATE"
29928 "compression algorithm. This document defines the application of "
29929 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
29930 .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
29931 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
29932 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
29933 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
29934 "\x68\x12\x51\xae\x76\x67\xd6\x27"
29935 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
29936 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
29937 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
29938 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
29939 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
29940 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
29941 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
29942 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
29943 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
29944 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
29945 "\xfa\x02",
29946 },
29947};
29948
Eric Biggersb13b1e02017-02-24 15:46:59 -080029949static const struct comp_testvec deflate_decomp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080029950 {
29951 .inlen = 122,
29952 .outlen = 191,
29953 .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04"
29954 "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09"
29955 "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8"
29956 "\x24\xdb\x67\xd9\x47\xc1\xef\x49"
29957 "\x68\x12\x51\xae\x76\x67\xd6\x27"
29958 "\x19\x88\x1a\xde\x85\xab\x21\xf2"
29959 "\x08\x5d\x16\x1e\x20\x04\x2d\xad"
29960 "\xf3\x18\xa2\x15\x85\x2d\x69\xc4"
29961 "\x42\x83\x23\xb6\x6c\x89\x71\x9b"
29962 "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f"
29963 "\xed\x62\xa9\x4c\x80\xff\x13\xaf"
29964 "\x52\x37\xed\x0e\x52\x6b\x59\x02"
29965 "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98"
29966 "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a"
29967 "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79"
29968 "\xfa\x02",
29969 .output = "This document describes a compression method based on the DEFLATE"
29970 "compression algorithm. This document defines the application of "
29971 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
29972 }, {
29973 .inlen = 38,
29974 .outlen = 70,
29975 .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56"
29976 "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51"
29977 "\x28\xce\x48\x2c\x4a\x55\x28\xc9"
29978 "\x48\x55\x28\xce\x4f\x2b\x29\x07"
29979 "\x71\xbc\x08\x2b\x01\x00",
29980 .output = "Join us now and share the software "
29981 "Join us now and share the software ",
29982 },
29983};
29984
Giovanni Cabiddua368f432017-04-21 21:54:30 +010029985static const struct comp_testvec zlib_deflate_comp_tv_template[] = {
29986 {
29987 .inlen = 70,
29988 .outlen = 44,
29989 .input = "Join us now and share the software "
29990 "Join us now and share the software ",
29991 .output = "\x78\x5e\xf3\xca\xcf\xcc\x53\x28"
29992 "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
29993 "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
29994 "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
29995 "\x29\x07\x71\xbc\x08\x2b\x01\x00"
29996 "\x7c\x65\x19\x3d",
29997 }, {
29998 .inlen = 191,
29999 .outlen = 129,
30000 .input = "This document describes a compression method based on the DEFLATE"
30001 "compression algorithm. This document defines the application of "
30002 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
30003 .output = "\x78\x5e\x5d\xce\x41\x0a\xc3\x30"
30004 "\x0c\x04\xc0\xaf\xec\x0b\xf2\x87"
30005 "\xd2\xa6\x50\xe8\xc1\x07\x7f\x40"
30006 "\xb1\x95\x5a\x60\x5b\xc6\x56\x0f"
30007 "\xfd\x7d\x93\x1e\x42\xe8\x51\xec"
30008 "\xee\x20\x9f\x64\x20\x6a\x78\x17"
30009 "\xae\x86\xc8\x23\x74\x59\x78\x80"
30010 "\x10\xb4\xb4\xce\x63\x88\x56\x14"
30011 "\xb6\xa4\x11\x0b\x0d\x8e\xd8\x6e"
30012 "\x4b\x8c\xdb\x7c\x7f\x5e\xfc\x7c"
30013 "\xae\x51\x7e\x69\x17\x4b\x65\x02"
30014 "\xfc\x1f\xbc\x4a\xdd\xd8\x7d\x48"
30015 "\xad\x65\x09\x64\x3b\xac\xeb\xd9"
30016 "\xc2\x01\xc0\xf4\x17\x3c\x1c\x1c"
30017 "\x7d\xb2\x52\xc4\xf5\xf4\x8f\xeb"
30018 "\x6a\x1a\x34\x4f\x5f\x2e\x32\x45"
30019 "\x4e",
30020 },
30021};
30022
30023static const struct comp_testvec zlib_deflate_decomp_tv_template[] = {
30024 {
30025 .inlen = 128,
30026 .outlen = 191,
30027 .input = "\x78\x9c\x5d\x8d\x31\x0e\xc2\x30"
30028 "\x10\x04\xbf\xb2\x2f\xc8\x1f\x10"
30029 "\x04\x09\x89\xc2\x85\x3f\x70\xb1"
30030 "\x2f\xf8\x24\xdb\x67\xd9\x47\xc1"
30031 "\xef\x49\x68\x12\x51\xae\x76\x67"
30032 "\xd6\x27\x19\x88\x1a\xde\x85\xab"
30033 "\x21\xf2\x08\x5d\x16\x1e\x20\x04"
30034 "\x2d\xad\xf3\x18\xa2\x15\x85\x2d"
30035 "\x69\xc4\x42\x83\x23\xb6\x6c\x89"
30036 "\x71\x9b\xef\xcf\x8b\x9f\xcf\x33"
30037 "\xca\x2f\xed\x62\xa9\x4c\x80\xff"
30038 "\x13\xaf\x52\x37\xed\x0e\x52\x6b"
30039 "\x59\x02\xd9\x4e\xe8\x7a\x76\x1d"
30040 "\x02\x98\xfe\x8a\x87\x83\xa3\x4f"
30041 "\x56\x8a\xb8\x9e\x8e\x5c\x57\xd3"
30042 "\xa0\x79\xfa\x02\x2e\x32\x45\x4e",
30043 .output = "This document describes a compression method based on the DEFLATE"
30044 "compression algorithm. This document defines the application of "
30045 "the DEFLATE algorithm to the IP Payload Compression Protocol.",
30046 }, {
30047 .inlen = 44,
30048 .outlen = 70,
30049 .input = "\x78\x9c\xf3\xca\xcf\xcc\x53\x28"
30050 "\x2d\x56\xc8\xcb\x2f\x57\x48\xcc"
30051 "\x4b\x51\x28\xce\x48\x2c\x4a\x55"
30052 "\x28\xc9\x48\x55\x28\xce\x4f\x2b"
30053 "\x29\x07\x71\xbc\x08\x2b\x01\x00"
30054 "\x7c\x65\x19\x3d",
30055 .output = "Join us now and share the software "
30056 "Join us now and share the software ",
30057 },
30058};
30059
Herbert Xuda7f0332008-07-31 17:08:25 +080030060/*
30061 * LZO test vectors (null-terminated strings).
30062 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080030063static const struct comp_testvec lzo_comp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080030064 {
30065 .inlen = 70,
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020030066 .outlen = 57,
Herbert Xuda7f0332008-07-31 17:08:25 +080030067 .input = "Join us now and share the software "
30068 "Join us now and share the software ",
30069 .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020030070 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
30071 "\x64\x20\x73\x68\x61\x72\x65\x20"
30072 "\x74\x68\x65\x20\x73\x6f\x66\x74"
30073 "\x77\x70\x01\x32\x88\x00\x0c\x65"
30074 "\x20\x74\x68\x65\x20\x73\x6f\x66"
30075 "\x74\x77\x61\x72\x65\x20\x11\x00"
30076 "\x00",
Herbert Xuda7f0332008-07-31 17:08:25 +080030077 }, {
30078 .inlen = 159,
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020030079 .outlen = 131,
Herbert Xuda7f0332008-07-31 17:08:25 +080030080 .input = "This document describes a compression method based on the LZO "
30081 "compression algorithm. This document defines the application of "
30082 "the LZO algorithm used in UBIFS.",
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020030083 .output = "\x00\x2c\x54\x68\x69\x73\x20\x64"
Herbert Xuda7f0332008-07-31 17:08:25 +080030084 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
30085 "\x64\x65\x73\x63\x72\x69\x62\x65"
30086 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
30087 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
30088 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
30089 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
Markus F.X.J. Oberhumer0ec73822012-10-14 15:39:04 +020030090 "\x74\x68\x65\x20\x4c\x5a\x4f\x20"
30091 "\x2a\x8c\x00\x09\x61\x6c\x67\x6f"
30092 "\x72\x69\x74\x68\x6d\x2e\x20\x20"
30093 "\x2e\x54\x01\x03\x66\x69\x6e\x65"
30094 "\x73\x20\x74\x06\x05\x61\x70\x70"
30095 "\x6c\x69\x63\x61\x74\x76\x0a\x6f"
30096 "\x66\x88\x02\x60\x09\x27\xf0\x00"
30097 "\x0c\x20\x75\x73\x65\x64\x20\x69"
30098 "\x6e\x20\x55\x42\x49\x46\x53\x2e"
30099 "\x11\x00\x00",
Herbert Xuda7f0332008-07-31 17:08:25 +080030100 },
30101};
30102
Eric Biggersb13b1e02017-02-24 15:46:59 -080030103static const struct comp_testvec lzo_decomp_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080030104 {
30105 .inlen = 133,
30106 .outlen = 159,
30107 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
30108 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
30109 "\x64\x65\x73\x63\x72\x69\x62\x65"
30110 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
30111 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
30112 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
30113 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
30114 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
30115 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
30116 "\x69\x74\x68\x6d\x2e\x20\x20\x54"
30117 "\x68\x69\x73\x2a\x54\x01\x02\x66"
30118 "\x69\x6e\x65\x73\x94\x06\x05\x61"
30119 "\x70\x70\x6c\x69\x63\x61\x74\x76"
30120 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
30121 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
30122 "\x20\x69\x6e\x20\x55\x42\x49\x46"
30123 "\x53\x2e\x11\x00\x00",
30124 .output = "This document describes a compression method based on the LZO "
30125 "compression algorithm. This document defines the application of "
30126 "the LZO algorithm used in UBIFS.",
30127 }, {
30128 .inlen = 46,
30129 .outlen = 70,
30130 .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75"
30131 "\x73\x20\x6e\x6f\x77\x20\x61\x6e"
30132 "\x64\x20\x73\x68\x61\x72\x65\x20"
30133 "\x74\x68\x65\x20\x73\x6f\x66\x74"
30134 "\x77\x70\x01\x01\x4a\x6f\x69\x6e"
30135 "\x3d\x88\x00\x11\x00\x00",
30136 .output = "Join us now and share the software "
30137 "Join us now and share the software ",
30138 },
30139};
30140
Hannah Panf248caf2019-07-02 15:16:02 -070030141static const struct comp_testvec lzorle_comp_tv_template[] = {
30142 {
30143 .inlen = 70,
30144 .outlen = 59,
30145 .input = "Join us now and share the software "
30146 "Join us now and share the software ",
30147 .output = "\x11\x01\x00\x0d\x4a\x6f\x69\x6e"
30148 "\x20\x75\x73\x20\x6e\x6f\x77\x20"
30149 "\x61\x6e\x64\x20\x73\x68\x61\x72"
30150 "\x65\x20\x74\x68\x65\x20\x73\x6f"
30151 "\x66\x74\x77\x70\x01\x32\x88\x00"
30152 "\x0c\x65\x20\x74\x68\x65\x20\x73"
30153 "\x6f\x66\x74\x77\x61\x72\x65\x20"
30154 "\x11\x00\x00",
30155 }, {
30156 .inlen = 159,
30157 .outlen = 133,
30158 .input = "This document describes a compression method based on the LZO "
30159 "compression algorithm. This document defines the application of "
30160 "the LZO algorithm used in UBIFS.",
30161 .output = "\x11\x01\x00\x2c\x54\x68\x69\x73"
30162 "\x20\x64\x6f\x63\x75\x6d\x65\x6e"
30163 "\x74\x20\x64\x65\x73\x63\x72\x69"
30164 "\x62\x65\x73\x20\x61\x20\x63\x6f"
30165 "\x6d\x70\x72\x65\x73\x73\x69\x6f"
30166 "\x6e\x20\x6d\x65\x74\x68\x6f\x64"
30167 "\x20\x62\x61\x73\x65\x64\x20\x6f"
30168 "\x6e\x20\x74\x68\x65\x20\x4c\x5a"
30169 "\x4f\x20\x2a\x8c\x00\x09\x61\x6c"
30170 "\x67\x6f\x72\x69\x74\x68\x6d\x2e"
30171 "\x20\x20\x2e\x54\x01\x03\x66\x69"
30172 "\x6e\x65\x73\x20\x74\x06\x05\x61"
30173 "\x70\x70\x6c\x69\x63\x61\x74\x76"
30174 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
30175 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
30176 "\x20\x69\x6e\x20\x55\x42\x49\x46"
30177 "\x53\x2e\x11\x00\x00",
30178 },
30179};
30180
30181static const struct comp_testvec lzorle_decomp_tv_template[] = {
30182 {
30183 .inlen = 133,
30184 .outlen = 159,
30185 .input = "\x00\x2b\x54\x68\x69\x73\x20\x64"
30186 "\x6f\x63\x75\x6d\x65\x6e\x74\x20"
30187 "\x64\x65\x73\x63\x72\x69\x62\x65"
30188 "\x73\x20\x61\x20\x63\x6f\x6d\x70"
30189 "\x72\x65\x73\x73\x69\x6f\x6e\x20"
30190 "\x6d\x65\x74\x68\x6f\x64\x20\x62"
30191 "\x61\x73\x65\x64\x20\x6f\x6e\x20"
30192 "\x74\x68\x65\x20\x4c\x5a\x4f\x2b"
30193 "\x8c\x00\x0d\x61\x6c\x67\x6f\x72"
30194 "\x69\x74\x68\x6d\x2e\x20\x20\x54"
30195 "\x68\x69\x73\x2a\x54\x01\x02\x66"
30196 "\x69\x6e\x65\x73\x94\x06\x05\x61"
30197 "\x70\x70\x6c\x69\x63\x61\x74\x76"
30198 "\x0a\x6f\x66\x88\x02\x60\x09\x27"
30199 "\xf0\x00\x0c\x20\x75\x73\x65\x64"
30200 "\x20\x69\x6e\x20\x55\x42\x49\x46"
30201 "\x53\x2e\x11\x00\x00",
30202 .output = "This document describes a compression method based on the LZO "
30203 "compression algorithm. This document defines the application of "
30204 "the LZO algorithm used in UBIFS.",
30205 }, {
30206 .inlen = 59,
30207 .outlen = 70,
30208 .input = "\x11\x01\x00\x0d\x4a\x6f\x69\x6e"
30209 "\x20\x75\x73\x20\x6e\x6f\x77\x20"
30210 "\x61\x6e\x64\x20\x73\x68\x61\x72"
30211 "\x65\x20\x74\x68\x65\x20\x73\x6f"
30212 "\x66\x74\x77\x70\x01\x32\x88\x00"
30213 "\x0c\x65\x20\x74\x68\x65\x20\x73"
30214 "\x6f\x66\x74\x77\x61\x72\x65\x20"
30215 "\x11\x00\x00",
30216 .output = "Join us now and share the software "
30217 "Join us now and share the software ",
30218 },
30219};
30220
Herbert Xuda7f0332008-07-31 17:08:25 +080030221/*
30222 * Michael MIC test vectors from IEEE 802.11i
30223 */
30224#define MICHAEL_MIC_TEST_VECTORS 6
30225
Eric Biggersb13b1e02017-02-24 15:46:59 -080030226static const struct hash_testvec michael_mic_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080030227 {
30228 .key = "\x00\x00\x00\x00\x00\x00\x00\x00",
30229 .ksize = 8,
30230 .plaintext = zeroed_string,
30231 .psize = 0,
30232 .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
30233 },
30234 {
30235 .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8",
30236 .ksize = 8,
30237 .plaintext = "M",
30238 .psize = 1,
30239 .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
30240 },
30241 {
30242 .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f",
30243 .ksize = 8,
30244 .plaintext = "Mi",
30245 .psize = 2,
30246 .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
30247 },
30248 {
30249 .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29",
30250 .ksize = 8,
30251 .plaintext = "Mic",
30252 .psize = 3,
30253 .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
30254 },
30255 {
30256 .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb",
30257 .ksize = 8,
30258 .plaintext = "Mich",
30259 .psize = 4,
30260 .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
30261 },
30262 {
30263 .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86",
30264 .ksize = 8,
30265 .plaintext = "Michael",
30266 .psize = 7,
30267 .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46",
30268 }
30269};
30270
30271/*
Ard Biesheuvelebb34722015-05-04 11:00:17 +020030272 * CRC32 test vectors
30273 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080030274static const struct hash_testvec crc32_tv_template[] = {
Ard Biesheuvelebb34722015-05-04 11:00:17 +020030275 {
Eric Biggers9f50fd52018-05-19 22:07:42 -070030276 .psize = 0,
30277 .digest = "\x00\x00\x00\x00",
30278 },
30279 {
30280 .plaintext = "abcdefg",
30281 .psize = 7,
30282 .digest = "\xd8\xb5\x46\xac",
30283 },
30284 {
Ard Biesheuvelebb34722015-05-04 11:00:17 +020030285 .key = "\x87\xa9\xcb\xed",
30286 .ksize = 4,
30287 .psize = 0,
30288 .digest = "\x87\xa9\xcb\xed",
30289 },
30290 {
30291 .key = "\xff\xff\xff\xff",
30292 .ksize = 4,
30293 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
30294 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
30295 "\x11\x12\x13\x14\x15\x16\x17\x18"
30296 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
30297 "\x21\x22\x23\x24\x25\x26\x27\x28",
30298 .psize = 40,
30299 .digest = "\x3a\xdf\x4b\xb0",
30300 },
30301 {
30302 .key = "\xff\xff\xff\xff",
30303 .ksize = 4,
30304 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
30305 "\x31\x32\x33\x34\x35\x36\x37\x38"
30306 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
30307 "\x41\x42\x43\x44\x45\x46\x47\x48"
30308 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
30309 .psize = 40,
30310 .digest = "\xa9\x7a\x7f\x7b",
30311 },
30312 {
30313 .key = "\xff\xff\xff\xff",
30314 .ksize = 4,
30315 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
30316 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
30317 "\x61\x62\x63\x64\x65\x66\x67\x68"
30318 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
30319 "\x71\x72\x73\x74\x75\x76\x77\x78",
30320 .psize = 40,
30321 .digest = "\xba\xd3\xf8\x1c",
30322 },
30323 {
30324 .key = "\xff\xff\xff\xff",
30325 .ksize = 4,
30326 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
30327 "\x81\x82\x83\x84\x85\x86\x87\x88"
30328 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
30329 "\x91\x92\x93\x94\x95\x96\x97\x98"
30330 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
30331 .psize = 40,
30332 .digest = "\xa8\xa9\xc2\x02",
30333 },
30334 {
30335 .key = "\xff\xff\xff\xff",
30336 .ksize = 4,
30337 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
30338 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
30339 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
30340 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
30341 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
30342 .psize = 40,
30343 .digest = "\x27\xf0\x57\xe2",
30344 },
30345 {
30346 .key = "\xff\xff\xff\xff",
30347 .ksize = 4,
30348 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
30349 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
30350 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
30351 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
30352 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
30353 .psize = 40,
30354 .digest = "\x49\x78\x10\x08",
30355 },
30356 {
30357 .key = "\x80\xea\xd3\xf1",
30358 .ksize = 4,
30359 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
30360 "\x31\x32\x33\x34\x35\x36\x37\x38"
30361 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
30362 "\x41\x42\x43\x44\x45\x46\x47\x48"
30363 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
30364 .psize = 40,
30365 .digest = "\x9a\xb1\xdc\xf0",
30366 },
30367 {
30368 .key = "\xf3\x4a\x1d\x5d",
30369 .ksize = 4,
30370 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
30371 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
30372 "\x61\x62\x63\x64\x65\x66\x67\x68"
30373 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
30374 "\x71\x72\x73\x74\x75\x76\x77\x78",
30375 .psize = 40,
30376 .digest = "\xb4\x97\xcc\xd4",
30377 },
30378 {
30379 .key = "\x2e\x80\x04\x59",
30380 .ksize = 4,
30381 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
30382 "\x81\x82\x83\x84\x85\x86\x87\x88"
30383 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
30384 "\x91\x92\x93\x94\x95\x96\x97\x98"
30385 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
30386 .psize = 40,
30387 .digest = "\x67\x9b\xfa\x79",
30388 },
30389 {
30390 .key = "\xa6\xcc\x19\x85",
30391 .ksize = 4,
30392 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
30393 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
30394 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
30395 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
30396 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
30397 .psize = 40,
30398 .digest = "\x24\xb5\x16\xef",
30399 },
30400 {
30401 .key = "\x41\xfc\xfe\x2d",
30402 .ksize = 4,
30403 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
30404 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
30405 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
30406 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
30407 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
30408 .psize = 40,
30409 .digest = "\x15\x94\x80\x39",
30410 },
30411 {
30412 .key = "\xff\xff\xff\xff",
30413 .ksize = 4,
30414 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
30415 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
30416 "\x11\x12\x13\x14\x15\x16\x17\x18"
30417 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
30418 "\x21\x22\x23\x24\x25\x26\x27\x28"
30419 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
30420 "\x31\x32\x33\x34\x35\x36\x37\x38"
30421 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
30422 "\x41\x42\x43\x44\x45\x46\x47\x48"
30423 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
30424 "\x51\x52\x53\x54\x55\x56\x57\x58"
30425 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
30426 "\x61\x62\x63\x64\x65\x66\x67\x68"
30427 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
30428 "\x71\x72\x73\x74\x75\x76\x77\x78"
30429 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
30430 "\x81\x82\x83\x84\x85\x86\x87\x88"
30431 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
30432 "\x91\x92\x93\x94\x95\x96\x97\x98"
30433 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
30434 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
30435 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
30436 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
30437 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
30438 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
30439 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
30440 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
30441 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
30442 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
30443 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
30444 .psize = 240,
30445 .digest = "\x6c\xc6\x56\xde",
Ard Biesheuvelebb34722015-05-04 11:00:17 +020030446 }, {
30447 .key = "\xff\xff\xff\xff",
30448 .ksize = 4,
30449 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
30450 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
30451 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
30452 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
30453 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
30454 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
30455 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
30456 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
30457 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
30458 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
30459 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
30460 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
30461 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
30462 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
30463 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
30464 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
30465 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
30466 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
30467 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
30468 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
30469 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
30470 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
30471 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
30472 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
30473 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
30474 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
30475 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
30476 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
30477 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
30478 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
30479 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
30480 "\x47\xde\x75\x0c\x80\x17\xae\x22"
30481 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
30482 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
30483 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
30484 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
30485 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
30486 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
30487 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
30488 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
30489 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
30490 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
30491 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
30492 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
30493 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
30494 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
30495 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
30496 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
30497 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
30498 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
30499 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
30500 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
30501 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
30502 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
30503 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
30504 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
30505 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
30506 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
30507 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
30508 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
30509 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
30510 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
30511 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
30512 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
30513 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
30514 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
30515 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
30516 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
30517 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
30518 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
30519 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
30520 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
30521 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
30522 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
30523 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
30524 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
30525 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
30526 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
30527 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
30528 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
30529 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
30530 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
30531 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
30532 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
30533 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
30534 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
30535 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
30536 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
30537 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
30538 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
30539 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
30540 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
30541 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
30542 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
30543 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
30544 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
30545 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
30546 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
30547 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
30548 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
30549 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
30550 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
30551 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
30552 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
30553 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
30554 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
30555 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
30556 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
30557 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
30558 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
30559 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
30560 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
30561 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
30562 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
30563 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
30564 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
30565 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
30566 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
30567 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
30568 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
30569 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
30570 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
30571 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
30572 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
30573 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
30574 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
30575 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
30576 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
30577 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
30578 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
30579 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
30580 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
30581 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
30582 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
30583 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
30584 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
30585 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
30586 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
30587 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
30588 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
30589 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
30590 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
30591 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
30592 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
30593 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
30594 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
30595 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
30596 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
30597 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
30598 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
30599 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
30600 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
30601 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
30602 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
30603 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
30604 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
30605 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
30606 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
30607 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
30608 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
30609 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
30610 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
30611 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
30612 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
30613 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
30614 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
30615 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
30616 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
30617 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
30618 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
30619 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
30620 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
30621 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
30622 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
30623 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
30624 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
30625 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
30626 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
30627 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
30628 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
30629 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
30630 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
30631 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
30632 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
30633 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
30634 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
30635 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
30636 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
30637 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
30638 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
30639 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
30640 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
30641 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
30642 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
30643 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
30644 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
30645 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
30646 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
30647 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
30648 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
30649 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
30650 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
30651 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
30652 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
30653 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
30654 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
30655 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
30656 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
30657 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
30658 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
30659 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
30660 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
30661 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
30662 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
30663 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
30664 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
30665 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
30666 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
30667 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
30668 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
30669 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
30670 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
30671 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
30672 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
30673 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
30674 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
30675 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
30676 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
30677 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
30678 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
30679 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
30680 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
30681 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
30682 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
30683 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
30684 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
30685 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
30686 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
30687 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
30688 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
30689 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
30690 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
30691 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
30692 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
30693 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
30694 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
30695 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
30696 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
30697 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
30698 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
30699 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
30700 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
30701 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
30702 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
30703 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
30704 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
30705 .psize = 2048,
30706 .digest = "\xfb\x3a\x7a\xda",
30707 }
30708};
30709
30710/*
Herbert Xuda7f0332008-07-31 17:08:25 +080030711 * CRC32C test vectors
30712 */
Eric Biggersb13b1e02017-02-24 15:46:59 -080030713static const struct hash_testvec crc32c_tv_template[] = {
Herbert Xuda7f0332008-07-31 17:08:25 +080030714 {
30715 .psize = 0,
30716 .digest = "\x00\x00\x00\x00",
30717 },
30718 {
Eric Biggers9f50fd52018-05-19 22:07:42 -070030719 .plaintext = "abcdefg",
30720 .psize = 7,
30721 .digest = "\x41\xf4\x27\xe6",
30722 },
30723 {
Herbert Xuda7f0332008-07-31 17:08:25 +080030724 .key = "\x87\xa9\xcb\xed",
30725 .ksize = 4,
30726 .psize = 0,
30727 .digest = "\x78\x56\x34\x12",
30728 },
30729 {
30730 .key = "\xff\xff\xff\xff",
30731 .ksize = 4,
30732 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
30733 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
30734 "\x11\x12\x13\x14\x15\x16\x17\x18"
30735 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
30736 "\x21\x22\x23\x24\x25\x26\x27\x28",
30737 .psize = 40,
30738 .digest = "\x7f\x15\x2c\x0e",
30739 },
30740 {
30741 .key = "\xff\xff\xff\xff",
30742 .ksize = 4,
30743 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
30744 "\x31\x32\x33\x34\x35\x36\x37\x38"
30745 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
30746 "\x41\x42\x43\x44\x45\x46\x47\x48"
30747 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
30748 .psize = 40,
30749 .digest = "\xf6\xeb\x80\xe9",
30750 },
30751 {
30752 .key = "\xff\xff\xff\xff",
30753 .ksize = 4,
30754 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
30755 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
30756 "\x61\x62\x63\x64\x65\x66\x67\x68"
30757 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
30758 "\x71\x72\x73\x74\x75\x76\x77\x78",
30759 .psize = 40,
30760 .digest = "\xed\xbd\x74\xde",
30761 },
30762 {
30763 .key = "\xff\xff\xff\xff",
30764 .ksize = 4,
30765 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
30766 "\x81\x82\x83\x84\x85\x86\x87\x88"
30767 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
30768 "\x91\x92\x93\x94\x95\x96\x97\x98"
30769 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
30770 .psize = 40,
30771 .digest = "\x62\xc8\x79\xd5",
30772 },
30773 {
30774 .key = "\xff\xff\xff\xff",
30775 .ksize = 4,
30776 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
30777 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
30778 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
30779 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
30780 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
30781 .psize = 40,
30782 .digest = "\xd0\x9a\x97\xba",
30783 },
30784 {
30785 .key = "\xff\xff\xff\xff",
30786 .ksize = 4,
30787 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
30788 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
30789 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
30790 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
30791 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
30792 .psize = 40,
30793 .digest = "\x13\xd9\x29\x2b",
30794 },
30795 {
30796 .key = "\x80\xea\xd3\xf1",
30797 .ksize = 4,
30798 .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
30799 "\x31\x32\x33\x34\x35\x36\x37\x38"
30800 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
30801 "\x41\x42\x43\x44\x45\x46\x47\x48"
30802 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50",
30803 .psize = 40,
30804 .digest = "\x0c\xb5\xe2\xa2",
30805 },
30806 {
30807 .key = "\xf3\x4a\x1d\x5d",
30808 .ksize = 4,
30809 .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58"
30810 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
30811 "\x61\x62\x63\x64\x65\x66\x67\x68"
30812 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
30813 "\x71\x72\x73\x74\x75\x76\x77\x78",
30814 .psize = 40,
30815 .digest = "\xd1\x7f\xfb\xa6",
30816 },
30817 {
30818 .key = "\x2e\x80\x04\x59",
30819 .ksize = 4,
30820 .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
30821 "\x81\x82\x83\x84\x85\x86\x87\x88"
30822 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
30823 "\x91\x92\x93\x94\x95\x96\x97\x98"
30824 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0",
30825 .psize = 40,
30826 .digest = "\x59\x33\xe6\x7a",
30827 },
30828 {
30829 .key = "\xa6\xcc\x19\x85",
30830 .ksize = 4,
30831 .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
30832 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
30833 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
30834 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
30835 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8",
30836 .psize = 40,
30837 .digest = "\xbe\x03\x01\xd2",
30838 },
30839 {
30840 .key = "\x41\xfc\xfe\x2d",
30841 .ksize = 4,
30842 .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
30843 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
30844 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
30845 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
30846 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
30847 .psize = 40,
30848 .digest = "\x75\xd3\xc5\x24",
30849 },
30850 {
30851 .key = "\xff\xff\xff\xff",
30852 .ksize = 4,
30853 .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08"
30854 "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10"
30855 "\x11\x12\x13\x14\x15\x16\x17\x18"
30856 "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20"
30857 "\x21\x22\x23\x24\x25\x26\x27\x28"
30858 "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30"
30859 "\x31\x32\x33\x34\x35\x36\x37\x38"
30860 "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40"
30861 "\x41\x42\x43\x44\x45\x46\x47\x48"
30862 "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50"
30863 "\x51\x52\x53\x54\x55\x56\x57\x58"
30864 "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60"
30865 "\x61\x62\x63\x64\x65\x66\x67\x68"
30866 "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70"
30867 "\x71\x72\x73\x74\x75\x76\x77\x78"
30868 "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80"
30869 "\x81\x82\x83\x84\x85\x86\x87\x88"
30870 "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90"
30871 "\x91\x92\x93\x94\x95\x96\x97\x98"
30872 "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0"
30873 "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8"
30874 "\xa9\xaa\xab\xac\xad\xae\xaf\xb0"
30875 "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8"
30876 "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0"
30877 "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8"
30878 "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0"
30879 "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8"
30880 "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0"
30881 "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8"
30882 "\xe9\xea\xeb\xec\xed\xee\xef\xf0",
30883 .psize = 240,
30884 .digest = "\x75\xd3\xc5\x24",
Jussi Kivilinna6726ec42012-11-13 12:02:30 +020030885 }, {
30886 .key = "\xff\xff\xff\xff",
30887 .ksize = 4,
30888 .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49"
30889 "\xe0\x54\xeb\x82\x19\x8d\x24\xbb"
30890 "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a"
30891 "\xa1\x38\xcf\x43\xda\x71\x08\x7c"
30892 "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee"
30893 "\x85\x1c\x90\x27\xbe\x32\xc9\x60"
30894 "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2"
30895 "\x46\xdd\x74\x0b\x7f\x16\xad\x21"
30896 "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93"
30897 "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05"
30898 "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77"
30899 "\x0e\x82\x19\xb0\x24\xbb\x52\xe9"
30900 "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38"
30901 "\xcf\x66\xfd\x71\x08\x9f\x13\xaa"
30902 "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c"
30903 "\xb3\x27\xbe\x55\xec\x60\xf7\x8e"
30904 "\x02\x99\x30\xc7\x3b\xd2\x69\x00"
30905 "\x74\x0b\xa2\x16\xad\x44\xdb\x4f"
30906 "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1"
30907 "\x58\xef\x63\xfa\x91\x05\x9c\x33"
30908 "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5"
30909 "\x19\xb0\x47\xde\x52\xe9\x80\x17"
30910 "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66"
30911 "\xfd\x94\x08\x9f\x36\xcd\x41\xd8"
30912 "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a"
30913 "\xe1\x55\xec\x83\x1a\x8e\x25\xbc"
30914 "\x30\xc7\x5e\xf5\x69\x00\x97\x0b"
30915 "\xa2\x39\xd0\x44\xdb\x72\x09\x7d"
30916 "\x14\xab\x1f\xb6\x4d\xe4\x58\xef"
30917 "\x86\x1d\x91\x28\xbf\x33\xca\x61"
30918 "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3"
30919 "\x47\xde\x75\x0c\x80\x17\xae\x22"
30920 "\xb9\x50\xe7\x5b\xf2\x89\x20\x94"
30921 "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06"
30922 "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78"
30923 "\x0f\x83\x1a\xb1\x25\xbc\x53\xea"
30924 "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39"
30925 "\xd0\x67\xfe\x72\x09\xa0\x14\xab"
30926 "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d"
30927 "\xb4\x28\xbf\x56\xed\x61\xf8\x8f"
30928 "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01"
30929 "\x75\x0c\xa3\x17\xae\x45\xdc\x50"
30930 "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2"
30931 "\x59\xf0\x64\xfb\x92\x06\x9d\x34"
30932 "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6"
30933 "\x1a\xb1\x48\xdf\x53\xea\x81\x18"
30934 "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67"
30935 "\xfe\x95\x09\xa0\x37\xce\x42\xd9"
30936 "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b"
30937 "\xe2\x56\xed\x84\x1b\x8f\x26\xbd"
30938 "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c"
30939 "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e"
30940 "\x15\xac\x20\xb7\x4e\xe5\x59\xf0"
30941 "\x87\x1e\x92\x29\xc0\x34\xcb\x62"
30942 "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4"
30943 "\x48\xdf\x76\x0d\x81\x18\xaf\x23"
30944 "\xba\x51\xe8\x5c\xf3\x8a\x21\x95"
30945 "\x2c\xc3\x37\xce\x65\xfc\x70\x07"
30946 "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79"
30947 "\x10\x84\x1b\xb2\x26\xbd\x54\xeb"
30948 "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a"
30949 "\xd1\x68\xff\x73\x0a\xa1\x15\xac"
30950 "\x43\xda\x4e\xe5\x7c\x13\x87\x1e"
30951 "\xb5\x29\xc0\x57\xee\x62\xf9\x90"
30952 "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02"
30953 "\x76\x0d\xa4\x18\xaf\x46\xdd\x51"
30954 "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3"
30955 "\x5a\xf1\x65\xfc\x93\x07\x9e\x35"
30956 "\xcc\x40\xd7\x6e\x05\x79\x10\xa7"
30957 "\x1b\xb2\x49\xe0\x54\xeb\x82\x19"
30958 "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68"
30959 "\xff\x96\x0a\xa1\x38\xcf\x43\xda"
30960 "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c"
30961 "\xe3\x57\xee\x85\x1c\x90\x27\xbe"
30962 "\x32\xc9\x60\xf7\x6b\x02\x99\x0d"
30963 "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f"
30964 "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1"
30965 "\x88\x1f\x93\x2a\xc1\x35\xcc\x63"
30966 "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5"
30967 "\x49\xe0\x77\x0e\x82\x19\xb0\x24"
30968 "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96"
30969 "\x2d\xc4\x38\xcf\x66\xfd\x71\x08"
30970 "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a"
30971 "\x11\x85\x1c\xb3\x27\xbe\x55\xec"
30972 "\x60\xf7\x8e\x02\x99\x30\xc7\x3b"
30973 "\xd2\x69\x00\x74\x0b\xa2\x16\xad"
30974 "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f"
30975 "\xb6\x2a\xc1\x58\xef\x63\xfa\x91"
30976 "\x05\x9c\x33\xca\x3e\xd5\x6c\x03"
30977 "\x77\x0e\xa5\x19\xb0\x47\xde\x52"
30978 "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4"
30979 "\x5b\xf2\x66\xfd\x94\x08\x9f\x36"
30980 "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8"
30981 "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a"
30982 "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69"
30983 "\x00\x97\x0b\xa2\x39\xd0\x44\xdb"
30984 "\x72\x09\x7d\x14\xab\x1f\xb6\x4d"
30985 "\xe4\x58\xef\x86\x1d\x91\x28\xbf"
30986 "\x33\xca\x61\xf8\x6c\x03\x9a\x0e"
30987 "\xa5\x3c\xd3\x47\xde\x75\x0c\x80"
30988 "\x17\xae\x22\xb9\x50\xe7\x5b\xf2"
30989 "\x89\x20\x94\x2b\xc2\x36\xcd\x64"
30990 "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6"
30991 "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25"
30992 "\xbc\x53\xea\x5e\xf5\x8c\x00\x97"
30993 "\x2e\xc5\x39\xd0\x67\xfe\x72\x09"
30994 "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b"
30995 "\x12\x86\x1d\xb4\x28\xbf\x56\xed"
30996 "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c"
30997 "\xd3\x6a\x01\x75\x0c\xa3\x17\xae"
30998 "\x45\xdc\x50\xe7\x7e\x15\x89\x20"
30999 "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92"
31000 "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04"
31001 "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53"
31002 "\xea\x81\x18\x8c\x23\xba\x2e\xc5"
31003 "\x5c\xf3\x67\xfe\x95\x09\xa0\x37"
31004 "\xce\x42\xd9\x70\x07\x7b\x12\xa9"
31005 "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b"
31006 "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a"
31007 "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc"
31008 "\x73\x0a\x7e\x15\xac\x20\xb7\x4e"
31009 "\xe5\x59\xf0\x87\x1e\x92\x29\xc0"
31010 "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f"
31011 "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81"
31012 "\x18\xaf\x23\xba\x51\xe8\x5c\xf3"
31013 "\x8a\x21\x95\x2c\xc3\x37\xce\x65"
31014 "\xfc\x70\x07\x9e\x12\xa9\x40\xd7"
31015 "\x4b\xe2\x79\x10\x84\x1b\xb2\x26"
31016 "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98"
31017 "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a"
31018 "\xa1\x15\xac\x43\xda\x4e\xe5\x7c"
31019 "\x13\x87\x1e\xb5\x29\xc0\x57\xee"
31020 "\x62\xf9\x90\x04\x9b\x32\xc9\x3d"
31021 "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf"
31022 "\x46\xdd\x51\xe8\x7f\x16\x8a\x21"
31023 "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93"
31024 "\x07\x9e\x35\xcc\x40\xd7\x6e\x05"
31025 "\x79\x10\xa7\x1b\xb2\x49\xe0\x54"
31026 "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6"
31027 "\x5d\xf4\x68\xff\x96\x0a\xa1\x38"
31028 "\xcf\x43\xda\x71\x08\x7c\x13\xaa"
31029 "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c"
31030 "\x90\x27\xbe\x32\xc9\x60\xf7\x6b"
31031 "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd"
31032 "\x74\x0b\x7f\x16\xad\x21\xb8\x4f"
31033 "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1"
31034 "\x35\xcc\x63\xfa\x6e\x05\x9c\x10"
31035 "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82"
31036 "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4"
31037 "\x8b\x22\x96\x2d\xc4\x38\xcf\x66"
31038 "\xfd\x71\x08\x9f\x13\xaa\x41\xd8"
31039 "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27"
31040 "\xbe\x55\xec\x60\xf7\x8e\x02\x99"
31041 "\x30\xc7\x3b\xd2\x69\x00\x74\x0b"
31042 "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d"
31043 "\x14\x88\x1f\xb6\x2a\xc1\x58\xef"
31044 "\x63\xfa\x91\x05\x9c\x33\xca\x3e"
31045 "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0"
31046 "\x47\xde\x52\xe9\x80\x17\x8b\x22"
31047 "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94"
31048 "\x08\x9f\x36\xcd\x41\xd8\x6f\x06"
31049 "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55"
31050 "\xec\x83\x1a\x8e\x25\xbc\x30\xc7"
31051 "\x5e\xf5\x69\x00\x97\x0b\xa2\x39"
31052 "\xd0\x44\xdb\x72\x09\x7d\x14\xab"
31053 "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d"
31054 "\x91\x28\xbf\x33\xca\x61\xf8\x6c"
31055 "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde"
31056 "\x75\x0c\x80\x17\xae\x22\xb9\x50"
31057 "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2"
31058 "\x36\xcd\x64\xfb\x6f\x06\x9d\x11"
31059 "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83"
31060 "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5"
31061 "\x8c\x00\x97\x2e\xc5\x39\xd0\x67"
31062 "\xfe\x72\x09\xa0\x14\xab\x42\xd9"
31063 "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28"
31064 "\xbf\x56\xed\x61\xf8\x8f\x03\x9a"
31065 "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c"
31066 "\xa3\x17\xae\x45\xdc\x50\xe7\x7e"
31067 "\x15\x89\x20\xb7\x2b\xc2\x59\xf0"
31068 "\x64\xfb\x92\x06\x9d\x34\xcb\x3f"
31069 "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1"
31070 "\x48\xdf\x53\xea\x81\x18\x8c\x23"
31071 "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95"
31072 "\x09\xa0\x37\xce\x42\xd9\x70\x07"
31073 "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56"
31074 "\xed\x84\x1b\x8f\x26\xbd\x31\xc8"
31075 "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a"
31076 "\xd1\x45\xdc\x73\x0a\x7e\x15\xac"
31077 "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e"
31078 "\x92\x29\xc0\x34\xcb\x62\xf9\x6d"
31079 "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf"
31080 "\x76\x0d\x81\x18\xaf\x23\xba\x51"
31081 "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3"
31082 "\x37\xce\x65\xfc\x70\x07\x9e\x12"
31083 "\xa9\x40\xd7\x4b\xe2\x79\x10\x84"
31084 "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6"
31085 "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68"
31086 "\xff\x73\x0a\xa1\x15\xac\x43\xda"
31087 "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29"
31088 "\xc0\x57\xee\x62\xf9\x90\x04\x9b"
31089 "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d"
31090 "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f"
31091 "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1"
31092 "\x65\xfc\x93\x07\x9e\x35\xcc\x40"
31093 "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2"
31094 "\x49\xe0\x54\xeb\x82\x19\x8d\x24"
31095 "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96"
31096 "\x0a\xa1\x38\xcf\x43\xda\x71\x08"
31097 "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57"
31098 "\xee\x85\x1c\x90\x27\xbe\x32\xc9"
31099 "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b"
31100 "\xd2\x46\xdd\x74\x0b\x7f\x16\xad"
31101 "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f"
31102 "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e"
31103 "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0"
31104 "\x77\x0e\x82\x19\xb0\x24\xbb\x52"
31105 "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4"
31106 "\x38\xcf\x66\xfd\x71\x08\x9f\x13"
31107 "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85"
31108 "\x1c\xb3\x27\xbe\x55\xec\x60\xf7"
31109 "\x8e\x02\x99\x30\xc7\x3b\xd2\x69"
31110 "\x00\x74\x0b\xa2\x16\xad\x44\xdb"
31111 "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a"
31112 "\xc1\x58\xef\x63\xfa\x91\x05\x9c"
31113 "\x33\xca\x3e\xd5\x6c\x03\x77\x0e"
31114 "\xa5\x19\xb0\x47\xde\x52\xe9\x80"
31115 "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2"
31116 "\x66\xfd\x94\x08\x9f\x36\xcd\x41"
31117 "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3"
31118 "\x4a\xe1\x55\xec\x83\x1a\x8e\x25"
31119 "\xbc\x30\xc7\x5e\xf5\x69\x00\x97"
31120 "\x0b\xa2\x39\xd0\x44\xdb\x72\x09"
31121 "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58"
31122 "\xef\x86\x1d\x91\x28\xbf\x33\xca"
31123 "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c"
31124 "\xd3\x47\xde\x75\x0c\x80\x17\xae"
31125 "\x22\xb9\x50\xe7\x5b\xf2\x89\x20"
31126 "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f"
31127 "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1"
31128 "\x78\x0f\x83\x1a\xb1\x25\xbc\x53"
31129 "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5"
31130 "\x39\xd0\x67\xfe\x72\x09\xa0\x14"
31131 "\xab\x42\xd9\x4d\xe4\x7b\x12\x86"
31132 "\x1d\xb4\x28\xbf\x56\xed\x61\xf8"
31133 "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a"
31134 "\x01\x75\x0c\xa3\x17\xae\x45\xdc"
31135 "\x50\xe7\x7e\x15\x89\x20\xb7\x2b"
31136 "\xc2\x59\xf0\x64\xfb\x92\x06\x9d"
31137 "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f"
31138 "\xa6\x1a\xb1\x48\xdf\x53\xea\x81"
31139 "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3"
31140 "\x67\xfe\x95\x09\xa0\x37\xce\x42"
31141 "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4"
31142 "\x4b\xe2\x56\xed\x84\x1b\x8f\x26"
31143 "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98",
31144 .psize = 2048,
31145 .digest = "\xec\x26\x4d\x95",
31146 }
Herbert Xuda7f0332008-07-31 17:08:25 +080031147};
31148
Nikolay Borisov67882e72019-05-30 09:52:57 +030031149static const struct hash_testvec xxhash64_tv_template[] = {
31150 {
31151 .psize = 0,
31152 .digest = "\x99\xe9\xd8\x51\x37\xdb\x46\xef",
31153 },
31154 {
31155 .plaintext = "\x40",
31156 .psize = 1,
31157 .digest = "\x20\x5c\x91\xaa\x88\xeb\x59\xd0",
31158 },
31159 {
31160 .plaintext = "\x40\x8b\xb8\x41\xe4\x42\x15\x2d"
31161 "\x88\xc7\x9a\x09\x1a\x9b",
31162 .psize = 14,
31163 .digest = "\xa8\xe8\x2b\xa9\x92\xa1\x37\x4a",
31164 },
31165 {
31166 .plaintext = "\x40\x8b\xb8\x41\xe4\x42\x15\x2d"
31167 "\x88\xc7\x9a\x09\x1a\x9b\x42\xe0"
31168 "\xd4\x38\xa5\x2a\x26\xa5\x19\x4b"
31169 "\x57\x65\x7f\xad\xc3\x7d\xca\x40"
31170 "\x31\x65\x05\xbb\x31\xae\x51\x11"
31171 "\xa8\xc0\xb3\x28\x42\xeb\x3c\x46"
31172 "\xc8\xed\xed\x0f\x8d\x0b\xfa\x6e"
31173 "\xbc\xe3\x88\x53\xca\x8f\xc8\xd9"
31174 "\x41\x26\x7a\x3d\x21\xdb\x1a\x3c"
31175 "\x01\x1d\xc9\xe9\xb7\x3a\x78\x67"
31176 "\x57\x20\x94\xf1\x1e\xfd\xce\x39"
31177 "\x99\x57\x69\x39\xa5\xd0\x8d\xd9"
31178 "\x43\xfe\x1d\x66\x04\x3c\x27\x6a"
31179 "\xe1\x0d\xe7\xc9\xfa\xc9\x07\x56"
31180 "\xa5\xb3\xec\xd9\x1f\x42\x65\x66"
31181 "\xaa\xbf\x87\x9b\xc5\x41\x9c\x27"
31182 "\x3f\x2f\xa9\x55\x93\x01\x27\x33"
31183 "\x43\x99\x4d\x81\x85\xae\x82\x00"
31184 "\x6c\xd0\xd1\xa3\x57\x18\x06\xcc"
31185 "\xec\x72\xf7\x8e\x87\x2d\x1f\x5e"
31186 "\xd7\x5b\x1f\x36\x4c\xfa\xfd\x18"
31187 "\x89\x76\xd3\x5e\xb5\x5a\xc0\x01"
31188 "\xd2\xa1\x9a\x50\xe6\x08\xb4\x76"
31189 "\x56\x4f\x0e\xbc\x54\xfc\x67\xe6"
31190 "\xb9\xc0\x28\x4b\xb5\xc3\xff\x79"
31191 "\x52\xea\xa1\x90\xc3\xaf\x08\x70"
31192 "\x12\x02\x0c\xdb\x94\x00\x38\x95"
31193 "\xed\xfd\x08\xf7\xe8\x04",
31194 .psize = 222,
31195 .digest = "\x41\xfc\xd4\x29\xfe\xe7\x85\x17",
31196 },
31197 {
31198 .psize = 0,
31199 .key = "\xb1\x79\x37\x9e\x00\x00\x00\x00",
31200 .ksize = 8,
31201 .digest = "\xef\x17\x9b\x92\xa2\xfd\x75\xac",
31202 },
31203
31204 {
31205 .plaintext = "\x40",
31206 .psize = 1,
31207 .key = "\xb1\x79\x37\x9e\x00\x00\x00\x00",
31208 .ksize = 8,
31209 .digest = "\xd1\x70\x4f\x14\x02\xc4\x9e\x71",
31210 },
31211 {
31212 .plaintext = "\x40\x8b\xb8\x41\xe4\x42\x15\x2d"
31213 "\x88\xc7\x9a\x09\x1a\x9b",
31214 .psize = 14,
31215 .key = "\xb1\x79\x37\x9e\x00\x00\x00\x00",
31216 .ksize = 8,
31217 .digest = "\xa4\xcd\xfe\x8e\x37\xe2\x1c\x64"
31218 },
31219 {
31220 .plaintext = "\x40\x8b\xb8\x41\xe4\x42\x15\x2d"
31221 "\x88\xc7\x9a\x09\x1a\x9b\x42\xe0"
31222 "\xd4\x38\xa5\x2a\x26\xa5\x19\x4b"
31223 "\x57\x65\x7f\xad\xc3\x7d\xca\x40"
31224 "\x31\x65\x05\xbb\x31\xae\x51\x11"
31225 "\xa8\xc0\xb3\x28\x42\xeb\x3c\x46"
31226 "\xc8\xed\xed\x0f\x8d\x0b\xfa\x6e"
31227 "\xbc\xe3\x88\x53\xca\x8f\xc8\xd9"
31228 "\x41\x26\x7a\x3d\x21\xdb\x1a\x3c"
31229 "\x01\x1d\xc9\xe9\xb7\x3a\x78\x67"
31230 "\x57\x20\x94\xf1\x1e\xfd\xce\x39"
31231 "\x99\x57\x69\x39\xa5\xd0\x8d\xd9"
31232 "\x43\xfe\x1d\x66\x04\x3c\x27\x6a"
31233 "\xe1\x0d\xe7\xc9\xfa\xc9\x07\x56"
31234 "\xa5\xb3\xec\xd9\x1f\x42\x65\x66"
31235 "\xaa\xbf\x87\x9b\xc5\x41\x9c\x27"
31236 "\x3f\x2f\xa9\x55\x93\x01\x27\x33"
31237 "\x43\x99\x4d\x81\x85\xae\x82\x00"
31238 "\x6c\xd0\xd1\xa3\x57\x18\x06\xcc"
31239 "\xec\x72\xf7\x8e\x87\x2d\x1f\x5e"
31240 "\xd7\x5b\x1f\x36\x4c\xfa\xfd\x18"
31241 "\x89\x76\xd3\x5e\xb5\x5a\xc0\x01"
31242 "\xd2\xa1\x9a\x50\xe6\x08\xb4\x76"
31243 "\x56\x4f\x0e\xbc\x54\xfc\x67\xe6"
31244 "\xb9\xc0\x28\x4b\xb5\xc3\xff\x79"
31245 "\x52\xea\xa1\x90\xc3\xaf\x08\x70"
31246 "\x12\x02\x0c\xdb\x94\x00\x38\x95"
31247 "\xed\xfd\x08\xf7\xe8\x04",
31248 .psize = 222,
31249 .key = "\xb1\x79\x37\x9e\x00\x00\x00\x00",
31250 .ksize = 8,
31251 .digest = "\x58\xbc\x55\xf2\x42\x81\x5c\xf0"
31252 },
31253};
31254
Eric Biggersb13b1e02017-02-24 15:46:59 -080031255static const struct comp_testvec lz4_comp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020031256 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080031257 .inlen = 255,
31258 .outlen = 218,
31259 .input = "LZ4 is lossless compression algorithm, providing"
31260 " compression speed at 400 MB/s per core, scalable "
31261 "with multi-cores CPU. It features an extremely fast "
31262 "decoder, with speed in multiple GB/s per core, "
31263 "typically reaching RAM speed limits on multi-core "
31264 "systems.",
31265 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
31266 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
31267 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
31268 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
31269 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
31270 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
31271 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
31272 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
31273 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
31274 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
31275 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
31276 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
31277 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
31278 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
31279 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
31280 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
31281 "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
31282
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020031283 },
31284};
31285
Eric Biggersb13b1e02017-02-24 15:46:59 -080031286static const struct comp_testvec lz4_decomp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020031287 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080031288 .inlen = 218,
31289 .outlen = 255,
31290 .input = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
31291 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
31292 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
31293 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
31294 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
31295 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
31296 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
31297 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
31298 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
31299 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
31300 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
31301 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
31302 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
31303 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
31304 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x83"
31305 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x3f\x00\x01\x85\x00"
31306 "\x90\x20\x73\x79\x73\x74\x65\x6d\x73\x2e",
31307 .output = "LZ4 is lossless compression algorithm, providing"
31308 " compression speed at 400 MB/s per core, scalable "
31309 "with multi-cores CPU. It features an extremely fast "
31310 "decoder, with speed in multiple GB/s per core, "
31311 "typically reaching RAM speed limits on multi-core "
31312 "systems.",
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020031313 },
31314};
31315
Eric Biggersb13b1e02017-02-24 15:46:59 -080031316static const struct comp_testvec lz4hc_comp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020031317 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080031318 .inlen = 255,
31319 .outlen = 216,
31320 .input = "LZ4 is lossless compression algorithm, providing"
31321 " compression speed at 400 MB/s per core, scalable "
31322 "with multi-cores CPU. It features an extremely fast "
31323 "decoder, with speed in multiple GB/s per core, "
31324 "typically reaching RAM speed limits on multi-core "
31325 "systems.",
31326 .output = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
31327 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
31328 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
31329 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
31330 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
31331 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
31332 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
31333 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
31334 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
31335 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
31336 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
31337 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
31338 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
31339 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
31340 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
31341 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
31342 "\x73\x79\x73\x74\x65\x6d\x73\x2e",
31343
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020031344 },
31345};
31346
Eric Biggersb13b1e02017-02-24 15:46:59 -080031347static const struct comp_testvec lz4hc_decomp_tv_template[] = {
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020031348 {
Sven Schmidt73a15ac2017-02-24 15:01:19 -080031349 .inlen = 216,
31350 .outlen = 255,
31351 .input = "\xf9\x21\x4c\x5a\x34\x20\x69\x73\x20\x6c\x6f\x73\x73"
31352 "\x6c\x65\x73\x73\x20\x63\x6f\x6d\x70\x72\x65\x73\x73"
31353 "\x69\x6f\x6e\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d"
31354 "\x2c\x20\x70\x72\x6f\x76\x69\x64\x69\x6e\x67\x21\x00"
31355 "\xf0\x21\x73\x70\x65\x65\x64\x20\x61\x74\x20\x34\x30"
31356 "\x30\x20\x4d\x42\x2f\x73\x20\x70\x65\x72\x20\x63\x6f"
31357 "\x72\x65\x2c\x20\x73\x63\x61\x6c\x61\x62\x6c\x65\x20"
31358 "\x77\x69\x74\x68\x20\x6d\x75\x6c\x74\x69\x2d\x1a\x00"
31359 "\xf0\x00\x73\x20\x43\x50\x55\x2e\x20\x49\x74\x20\x66"
31360 "\x65\x61\x74\x75\x11\x00\xf2\x0b\x61\x6e\x20\x65\x78"
31361 "\x74\x72\x65\x6d\x65\x6c\x79\x20\x66\x61\x73\x74\x20"
31362 "\x64\x65\x63\x6f\x64\x65\x72\x2c\x3d\x00\x02\x67\x00"
31363 "\x22\x69\x6e\x46\x00\x5a\x70\x6c\x65\x20\x47\x6c\x00"
31364 "\xf0\x00\x74\x79\x70\x69\x63\x61\x6c\x6c\x79\x20\x72"
31365 "\x65\x61\x63\x68\xa7\x00\x33\x52\x41\x4d\x38\x00\x97"
31366 "\x6c\x69\x6d\x69\x74\x73\x20\x6f\x6e\x85\x00\x90\x20"
31367 "\x73\x79\x73\x74\x65\x6d\x73\x2e",
31368 .output = "LZ4 is lossless compression algorithm, providing"
31369 " compression speed at 400 MB/s per core, scalable "
31370 "with multi-cores CPU. It features an extremely fast "
31371 "decoder, with speed in multiple GB/s per core, "
31372 "typically reaching RAM speed limits on multi-core "
31373 "systems.",
KOVACS Krisztian1443cc92014-08-22 10:44:36 +020031374 },
31375};
31376
Nick Terrelld28fc3d2018-03-30 12:14:53 -070031377static const struct comp_testvec zstd_comp_tv_template[] = {
31378 {
31379 .inlen = 68,
31380 .outlen = 39,
31381 .input = "The algorithm is zstd. "
31382 "The algorithm is zstd. "
31383 "The algorithm is zstd.",
31384 .output = "\x28\xb5\x2f\xfd\x00\x50\xf5\x00\x00\xb8\x54\x68\x65"
31385 "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
31386 "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
31387 ,
31388 },
31389 {
31390 .inlen = 244,
31391 .outlen = 151,
31392 .input = "zstd, short for Zstandard, is a fast lossless "
31393 "compression algorithm, targeting real-time "
31394 "compression scenarios at zlib-level and better "
31395 "compression ratios. The zstd compression library "
31396 "provides in-memory compression and decompression "
31397 "functions.",
31398 .output = "\x28\xb5\x2f\xfd\x00\x50\x75\x04\x00\x42\x4b\x1e\x17"
31399 "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
31400 "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
31401 "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
31402 "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
31403 "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
31404 "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
31405 "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
31406 "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
31407 "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
31408 "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
31409 "\x20\xa9\x0e\x82\xb9\x43\x45\x01",
31410 },
31411};
31412
31413static const struct comp_testvec zstd_decomp_tv_template[] = {
31414 {
31415 .inlen = 43,
31416 .outlen = 68,
31417 .input = "\x28\xb5\x2f\xfd\x04\x50\xf5\x00\x00\xb8\x54\x68\x65"
31418 "\x20\x61\x6c\x67\x6f\x72\x69\x74\x68\x6d\x20\x69\x73"
31419 "\x20\x7a\x73\x74\x64\x2e\x20\x01\x00\x55\x73\x36\x01"
31420 "\x6b\xf4\x13\x35",
31421 .output = "The algorithm is zstd. "
31422 "The algorithm is zstd. "
31423 "The algorithm is zstd.",
31424 },
31425 {
31426 .inlen = 155,
31427 .outlen = 244,
31428 .input = "\x28\xb5\x2f\xfd\x04\x50\x75\x04\x00\x42\x4b\x1e\x17"
31429 "\x90\x81\x31\x00\xf2\x2f\xe4\x36\xc9\xef\x92\x88\x32"
31430 "\xc9\xf2\x24\x94\xd8\x68\x9a\x0f\x00\x0c\xc4\x31\x6f"
31431 "\x0d\x0c\x38\xac\x5c\x48\x03\xcd\x63\x67\xc0\xf3\xad"
31432 "\x4e\x90\xaa\x78\xa0\xa4\xc5\x99\xda\x2f\xb6\x24\x60"
31433 "\xe2\x79\x4b\xaa\xb6\x6b\x85\x0b\xc9\xc6\x04\x66\x86"
31434 "\xe2\xcc\xe2\x25\x3f\x4f\x09\xcd\xb8\x9d\xdb\xc1\x90"
31435 "\xa9\x11\xbc\x35\x44\x69\x2d\x9c\x64\x4f\x13\x31\x64"
31436 "\xcc\xfb\x4d\x95\x93\x86\x7f\x33\x7f\x1a\xef\xe9\x30"
31437 "\xf9\x67\xa1\x94\x0a\x69\x0f\x60\xcd\xc3\xab\x99\xdc"
31438 "\x42\xed\x97\x05\x00\x33\xc3\x15\x95\x3a\x06\xa0\x0e"
31439 "\x20\xa9\x0e\x82\xb9\x43\x45\x01\xaa\x6d\xda\x0d",
31440 .output = "zstd, short for Zstandard, is a fast lossless "
31441 "compression algorithm, targeting real-time "
31442 "compression scenarios at zlib-level and better "
31443 "compression ratios. The zstd compression library "
31444 "provides in-memory compression and decompression "
31445 "functions.",
31446 },
31447};
Ard Biesheuvelf975abb2019-08-19 17:17:34 +030031448
31449/* based on aes_cbc_tv_template */
31450static const struct cipher_testvec essiv_aes_cbc_tv_template[] = {
31451 {
31452 .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
31453 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
31454 .klen = 16,
31455 .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
31456 "\x00\x00\x00\x00\x00\x00\x00\x00",
31457 .ptext = "Single block msg",
31458 .ctext = "\xfa\x59\xe7\x5f\x41\x56\x65\xc3"
31459 "\x36\xca\x6b\x72\x10\x9f\x8c\xd4",
31460 .len = 16,
31461 }, {
31462 .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
31463 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
31464 .klen = 16,
31465 .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
31466 "\x00\x00\x00\x00\x00\x00\x00\x00",
31467 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
31468 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31469 "\x10\x11\x12\x13\x14\x15\x16\x17"
31470 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
31471 .ctext = "\xc8\x59\x9a\xfe\x79\xe6\x7b\x20"
31472 "\x06\x7d\x55\x0a\x5e\xc7\xb5\xa7"
31473 "\x0b\x9c\x80\xd2\x15\xa1\xb8\x6d"
31474 "\xc6\xab\x7b\x65\xd9\xfd\x88\xeb",
31475 .len = 32,
31476 }, {
31477 .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
31478 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
31479 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
31480 .klen = 24,
31481 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
31482 "\x00\x00\x00\x00\x00\x00\x00\x00",
31483 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
31484 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
31485 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
31486 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
31487 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
31488 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
31489 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
31490 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
31491 .ctext = "\x96\x6d\xa9\x7a\x42\xe6\x01\xc7"
31492 "\x17\xfc\xa7\x41\xd3\x38\x0b\xe5"
31493 "\x51\x48\xf7\x7e\x5e\x26\xa9\xfe"
31494 "\x45\x72\x1c\xd9\xde\xab\xf3\x4d"
31495 "\x39\x47\xc5\x4f\x97\x3a\x55\x63"
31496 "\x80\x29\x64\x4c\x33\xe8\x21\x8a"
31497 "\x6a\xef\x6b\x6a\x8f\x43\xc0\xcb"
31498 "\xf0\xf3\x6e\x74\x54\x44\x92\x44",
31499 .len = 64,
31500 }, {
31501 .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
31502 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
31503 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
31504 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
31505 .klen = 32,
31506 .iv = "\x00\x01\x02\x03\x04\x05\x06\x07"
31507 "\x00\x00\x00\x00\x00\x00\x00\x00",
31508 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
31509 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
31510 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
31511 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
31512 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
31513 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
31514 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
31515 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
31516 .ctext = "\x24\x52\xf1\x48\x74\xd0\xa7\x93"
31517 "\x75\x9b\x63\x46\xc0\x1c\x1e\x17"
31518 "\x4d\xdc\x5b\x3a\x27\x93\x2a\x63"
31519 "\xf7\xf1\xc7\xb3\x54\x56\x5b\x50"
31520 "\xa3\x31\xa5\x8b\xd6\xfd\xb6\x3c"
31521 "\x8b\xf6\xf2\x45\x05\x0c\xc8\xbb"
31522 "\x32\x0b\x26\x1c\xe9\x8b\x02\xc0"
31523 "\xb2\x6f\x37\xa7\x5b\xa8\xa9\x42",
31524 .len = 64,
31525 }, {
31526 .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55"
31527 "\x0F\x32\x55\x78\x9B\xBE\x78\x9B"
31528 "\xBE\xE1\x04\x27\xE1\x04\x27\x4A"
31529 "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9",
31530 .klen = 32,
31531 .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47"
31532 "\x00\x00\x00\x00\x00\x00\x00\x00",
31533 .ptext = "\x50\xB9\x22\xAE\x17\x80\x0C\x75"
31534 "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03"
31535 "\x6C\xF8\x61\xCA\x33\xBF\x28\x91"
31536 "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F"
31537 "\xAB\x14\x7D\x09\x72\xDB\x44\xD0"
31538 "\x39\xA2\x0B\x97\x00\x69\xF5\x5E"
31539 "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC"
31540 "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A"
31541 "\x06\x6F\xD8\x41\xCD\x36\x9F\x08"
31542 "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9"
31543 "\x22\x8B\x17\x80\xE9\x52\xDE\x47"
31544 "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5"
31545 "\x3E\xCA\x33\x9C\x05\x91\xFA\x63"
31546 "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14"
31547 "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2"
31548 "\x0B\x74\x00\x69\xD2\x3B\xC7\x30"
31549 "\x99\x02\x8E\xF7\x60\xEC\x55\xBE"
31550 "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C"
31551 "\xD8\x41\xAA\x13\x9F\x08\x71\xFD"
31552 "\x66\xCF\x38\xC4\x2D\x96\x22\x8B"
31553 "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19"
31554 "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7"
31555 "\x10\x9C\x05\x6E\xFA\x63\xCC\x35"
31556 "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6"
31557 "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74"
31558 "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02"
31559 "\x6B\xF7\x60\xC9\x32\xBE\x27\x90"
31560 "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E"
31561 "\xAA\x13\x7C\x08\x71\xDA\x43\xCF"
31562 "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D"
31563 "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB"
31564 "\x54\xE0\x49\xB2\x1B\xA7\x10\x79"
31565 "\x05\x6E\xD7\x40\xCC\x35\x9E\x07"
31566 "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8"
31567 "\x21\x8A\x16\x7F\xE8\x51\xDD\x46"
31568 "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4"
31569 "\x3D\xC9\x32\x9B\x04\x90\xF9\x62"
31570 "\xEE\x57\xC0\x29\xB5\x1E\x87\x13"
31571 "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1"
31572 "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F"
31573 "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD"
31574 "\x26\xB2\x1B\x84\x10\x79\xE2\x4B"
31575 "\xD7\x40\xA9\x12\x9E\x07\x70\xFC"
31576 "\x65\xCE\x37\xC3\x2C\x95\x21\x8A"
31577 "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18"
31578 "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6"
31579 "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34"
31580 "\xC0\x29\x92\x1E\x87\xF0\x59\xE5"
31581 "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73"
31582 "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01"
31583 "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F"
31584 "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D"
31585 "\xA9\x12\x7B\x07\x70\xD9\x42\xCE"
31586 "\x37\xA0\x09\x95\xFE\x67\xF3\x5C"
31587 "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA"
31588 "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78"
31589 "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06"
31590 "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7"
31591 "\x20\x89\x15\x7E\xE7\x50\xDC\x45"
31592 "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3"
31593 "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61"
31594 "\xED\x56\xBF\x28\xB4\x1D\x86\x12",
31595 .ctext = "\x97\x7f\x69\x0f\x0f\x34\xa6\x33"
31596 "\x66\x49\x7e\xd0\x4d\x1b\xc9\x64"
31597 "\xf9\x61\x95\x98\x11\x00\x88\xf8"
31598 "\x2e\x88\x01\x0f\x2b\xe1\xae\x3e"
31599 "\xfe\xd6\x47\x30\x11\x68\x7d\x99"
31600 "\xad\x69\x6a\xe8\x41\x5f\x1e\x16"
31601 "\x00\x3a\x47\xdf\x8e\x7d\x23\x1c"
31602 "\x19\x5b\x32\x76\x60\x03\x05\xc1"
31603 "\xa0\xff\xcf\xcc\x74\x39\x46\x63"
31604 "\xfe\x5f\xa6\x35\xa7\xb4\xc1\xf9"
31605 "\x4b\x5e\x38\xcc\x8c\xc1\xa2\xcf"
31606 "\x9a\xc3\xae\x55\x42\x46\x93\xd9"
31607 "\xbd\x22\xd3\x8a\x19\x96\xc3\xb3"
31608 "\x7d\x03\x18\xf9\x45\x09\x9c\xc8"
31609 "\x90\xf3\x22\xb3\x25\x83\x9a\x75"
31610 "\xbb\x04\x48\x97\x3a\x63\x08\x04"
31611 "\xa0\x69\xf6\x52\xd4\x89\x93\x69"
31612 "\xb4\x33\xa2\x16\x58\xec\x4b\x26"
31613 "\x76\x54\x10\x0b\x6e\x53\x1e\xbc"
31614 "\x16\x18\x42\xb1\xb1\xd3\x4b\xda"
31615 "\x06\x9f\x8b\x77\xf7\xab\xd6\xed"
31616 "\xa3\x1d\x90\xda\x49\x38\x20\xb8"
31617 "\x6c\xee\xae\x3e\xae\x6c\x03\xb8"
31618 "\x0b\xed\xc8\xaa\x0e\xc5\x1f\x90"
31619 "\x60\xe2\xec\x1b\x76\xd0\xcf\xda"
31620 "\x29\x1b\xb8\x5a\xbc\xf4\xba\x13"
31621 "\x91\xa6\xcb\x83\x3f\xeb\xe9\x7b"
31622 "\x03\xba\x40\x9e\xe6\x7a\xb2\x4a"
31623 "\x73\x49\xfc\xed\xfb\x55\xa4\x24"
31624 "\xc7\xa4\xd7\x4b\xf5\xf7\x16\x62"
31625 "\x80\xd3\x19\x31\x52\x25\xa8\x69"
31626 "\xda\x9a\x87\xf5\xf2\xee\x5d\x61"
31627 "\xc1\x12\x72\x3e\x52\x26\x45\x3a"
31628 "\xd8\x9d\x57\xfa\x14\xe2\x9b\x2f"
31629 "\xd4\xaa\x5e\x31\xf4\x84\x89\xa4"
31630 "\xe3\x0e\xb0\x58\x41\x75\x6a\xcb"
31631 "\x30\x01\x98\x90\x15\x80\xf5\x27"
31632 "\x92\x13\x81\xf0\x1c\x1e\xfc\xb1"
31633 "\x33\xf7\x63\xb0\x67\xec\x2e\x5c"
31634 "\x85\xe3\x5b\xd0\x43\x8a\xb8\x5f"
31635 "\x44\x9f\xec\x19\xc9\x8f\xde\xdf"
31636 "\x79\xef\xf8\xee\x14\x87\xb3\x34"
31637 "\x76\x00\x3a\x9b\xc7\xed\xb1\x3d"
31638 "\xef\x07\xb0\xe4\xfd\x68\x9e\xeb"
31639 "\xc2\xb4\x1a\x85\x9a\x7d\x11\x88"
31640 "\xf8\xab\x43\x55\x2b\x8a\x4f\x60"
31641 "\x85\x9a\xf4\xba\xae\x48\x81\xeb"
31642 "\x93\x07\x97\x9e\xde\x2a\xfc\x4e"
31643 "\x31\xde\xaa\x44\xf7\x2a\xc3\xee"
31644 "\x60\xa2\x98\x2c\x0a\x88\x50\xc5"
31645 "\x6d\x89\xd3\xe4\xb6\xa7\xf4\xb0"
31646 "\xcf\x0e\x89\xe3\x5e\x8f\x82\xf4"
31647 "\x9d\xd1\xa9\x51\x50\x8a\xd2\x18"
31648 "\x07\xb2\xaa\x3b\x7f\x58\x9b\xf4"
31649 "\xb7\x24\x39\xd3\x66\x2f\x1e\xc0"
31650 "\x11\xa3\x56\x56\x2a\x10\x73\xbc"
31651 "\xe1\x23\xbf\xa9\x37\x07\x9c\xc3"
31652 "\xb2\xc9\xa8\x1c\x5b\x5c\x58\xa4"
31653 "\x77\x02\x26\xad\xc3\x40\x11\x53"
31654 "\x93\x68\x72\xde\x05\x8b\x10\xbc"
31655 "\xa6\xd4\x1b\xd9\x27\xd8\x16\x12"
31656 "\x61\x2b\x31\x2a\x44\x87\x96\x58",
31657 .len = 496,
31658 },
31659};
31660
31661/* based on hmac_sha256_aes_cbc_tv_temp */
31662static const struct aead_testvec essiv_hmac_sha256_aes_cbc_tv_temp[] = {
31663 {
31664#ifdef __LITTLE_ENDIAN
31665 .key = "\x08\x00" /* rta length */
31666 "\x01\x00" /* rta type */
31667#else
31668 .key = "\x00\x08" /* rta length */
31669 "\x00\x01" /* rta type */
31670#endif
31671 "\x00\x00\x00\x10" /* enc key length */
31672 "\x00\x00\x00\x00\x00\x00\x00\x00"
31673 "\x00\x00\x00\x00\x00\x00\x00\x00"
31674 "\x00\x00\x00\x00\x00\x00\x00\x00"
31675 "\x00\x00\x00\x00\x00\x00\x00\x00"
31676 "\x06\xa9\x21\x40\x36\xb8\xa1\x5b"
31677 "\x51\x2e\x03\xd5\x34\x12\x00\x06",
31678 .klen = 8 + 32 + 16,
31679 .iv = "\xb3\x0c\x5a\x11\x41\xad\xc1\x04"
31680 "\xbc\x1e\x7e\x35\xb0\x5d\x78\x29",
31681 .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30"
31682 "\xb4\x22\xda\x80\x2c\x9f\xac\x41",
31683 .alen = 16,
31684 .ptext = "Single block msg",
31685 .plen = 16,
31686 .ctext = "\xe3\x53\x77\x9c\x10\x79\xae\xb8"
31687 "\x27\x08\x94\x2d\xbe\x77\x18\x1a"
31688 "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc"
31689 "\x38\x06\x38\x51\xb4\xb8\xf3\x5b"
31690 "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5"
31691 "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5",
31692 .clen = 16 + 32,
31693 }, {
31694#ifdef __LITTLE_ENDIAN
31695 .key = "\x08\x00" /* rta length */
31696 "\x01\x00" /* rta type */
31697#else
31698 .key = "\x00\x08" /* rta length */
31699 "\x00\x01" /* rta type */
31700#endif
31701 "\x00\x00\x00\x10" /* enc key length */
31702 "\x20\x21\x22\x23\x24\x25\x26\x27"
31703 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31704 "\x30\x31\x32\x33\x34\x35\x36\x37"
31705 "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f"
31706 "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0"
31707 "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a",
31708 .klen = 8 + 32 + 16,
31709 .iv = "\x56\xe8\x14\xa5\x74\x18\x75\x13"
31710 "\x2f\x79\xe7\xc8\x65\xe3\x48\x45",
31711 .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28"
31712 "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58",
31713 .alen = 16,
31714 .ptext = "\x00\x01\x02\x03\x04\x05\x06\x07"
31715 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31716 "\x10\x11\x12\x13\x14\x15\x16\x17"
31717 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f",
31718 .plen = 32,
31719 .ctext = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a"
31720 "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a"
31721 "\x75\x86\x60\x2d\x25\x3c\xff\xf9"
31722 "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1"
31723 "\xf5\x33\x53\xf3\x68\x85\x2a\x99"
31724 "\x0e\x06\x58\x8f\xba\xf6\x06\xda"
31725 "\x49\x69\x0d\x5b\xd4\x36\x06\x62"
31726 "\x35\x5e\x54\x58\x53\x4d\xdf\xbf",
31727 .clen = 32 + 32,
31728 }, {
31729#ifdef __LITTLE_ENDIAN
31730 .key = "\x08\x00" /* rta length */
31731 "\x01\x00" /* rta type */
31732#else
31733 .key = "\x00\x08" /* rta length */
31734 "\x00\x01" /* rta type */
31735#endif
31736 "\x00\x00\x00\x10" /* enc key length */
31737 "\x11\x22\x33\x44\x55\x66\x77\x88"
31738 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
31739 "\x22\x33\x44\x55\x66\x77\x88\x99"
31740 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
31741 "\x6c\x3e\xa0\x47\x76\x30\xce\x21"
31742 "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd",
31743 .klen = 8 + 32 + 16,
31744 .iv = "\x1f\x6b\xfb\xd6\x6b\x72\x2f\xc9"
31745 "\xb6\x9f\x8c\x10\xa8\x96\x15\x64",
31746 .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb"
31747 "\xd9\xcd\x27\xd8\x25\x68\x2c\x81",
31748 .alen = 16,
31749 .ptext = "This is a 48-byte message (exactly 3 AES blocks)",
31750 .plen = 48,
31751 .ctext = "\xd0\xa0\x2b\x38\x36\x45\x17\x53"
31752 "\xd4\x93\x66\x5d\x33\xf0\xe8\x86"
31753 "\x2d\xea\x54\xcd\xb2\x93\xab\xc7"
31754 "\x50\x69\x39\x27\x67\x72\xf8\xd5"
31755 "\x02\x1c\x19\x21\x6b\xad\x52\x5c"
31756 "\x85\x79\x69\x5d\x83\xba\x26\x84"
31757 "\x68\xb9\x3e\x90\x38\xa0\x88\x01"
31758 "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d"
31759 "\x24\x78\xfb\xbe\x02\xe0\x4f\x40"
31760 "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a",
31761 .clen = 48 + 32,
31762 }, {
31763#ifdef __LITTLE_ENDIAN
31764 .key = "\x08\x00" /* rta length */
31765 "\x01\x00" /* rta type */
31766#else
31767 .key = "\x00\x08" /* rta length */
31768 "\x00\x01" /* rta type */
31769#endif
31770 "\x00\x00\x00\x10" /* enc key length */
31771 "\x11\x22\x33\x44\x55\x66\x77\x88"
31772 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
31773 "\x22\x33\x44\x55\x66\x77\x88\x99"
31774 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
31775 "\x56\xe4\x7a\x38\xc5\x59\x89\x74"
31776 "\xbc\x46\x90\x3d\xba\x29\x03\x49",
31777 .klen = 8 + 32 + 16,
31778 .iv = "\x13\xe5\xf2\xef\x61\x97\x59\x35"
31779 "\x9b\x36\x84\x46\x4e\x63\xd1\x41",
31780 .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c"
31781 "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9",
31782 .alen = 16,
31783 .ptext = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7"
31784 "\xa8\xa9\xaa\xab\xac\xad\xae\xaf"
31785 "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7"
31786 "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf"
31787 "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7"
31788 "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf"
31789 "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7"
31790 "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf",
31791 .plen = 64,
31792 .ctext = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e"
31793 "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa"
31794 "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6"
31795 "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e"
31796 "\x35\x90\x7a\xa6\x32\xc3\xff\xdf"
31797 "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad"
31798 "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d"
31799 "\x49\xa5\x3e\x87\xf4\xc3\xda\x55"
31800 "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2"
31801 "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8"
31802 "\x3f\x54\xe2\x49\x39\xe3\x71\x25"
31803 "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64",
31804 .clen = 64 + 32,
31805 }, {
31806#ifdef __LITTLE_ENDIAN
31807 .key = "\x08\x00" /* rta length */
31808 "\x01\x00" /* rta type */
31809#else
31810 .key = "\x00\x08" /* rta length */
31811 "\x00\x01" /* rta type */
31812#endif
31813 "\x00\x00\x00\x10" /* enc key length */
31814 "\x11\x22\x33\x44\x55\x66\x77\x88"
31815 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
31816 "\x22\x33\x44\x55\x66\x77\x88\x99"
31817 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
31818 "\x90\xd3\x82\xb4\x10\xee\xba\x7a"
31819 "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf",
31820 .klen = 8 + 32 + 16,
31821 .iv = "\xe4\x13\xa1\x15\xe9\x6b\xb8\x23"
31822 "\x81\x7a\x94\x29\xab\xfd\xd2\x2c",
31823 .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01"
31824 "\xe9\x6e\x8c\x08\xab\x46\x57\x63"
31825 "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93",
31826 .alen = 24,
31827 .ptext = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00"
31828 "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00"
31829 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f"
31830 "\x10\x11\x12\x13\x14\x15\x16\x17"
31831 "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f"
31832 "\x20\x21\x22\x23\x24\x25\x26\x27"
31833 "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f"
31834 "\x30\x31\x32\x33\x34\x35\x36\x37"
31835 "\x01\x02\x03\x04\x05\x06\x07\x08"
31836 "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01",
31837 .plen = 80,
31838 .ctext = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6"
31839 "\xa9\x45\x3e\x19\x4e\x12\x08\x49"
31840 "\xa4\x87\x0b\x66\xcc\x6b\x99\x65"
31841 "\x33\x00\x13\xb4\x89\x8d\xc8\x56"
31842 "\xa4\x69\x9e\x52\x3a\x55\xdb\x08"
31843 "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52"
31844 "\x77\x5b\x07\xd1\xdb\x34\xed\x9c"
31845 "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a"
31846 "\xa2\x69\xad\xd0\x47\xad\x2d\x59"
31847 "\x13\xac\x19\xb7\xcf\xba\xd4\xa6"
31848 "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8"
31849 "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7"
31850 "\x73\xc3\x46\x20\x2c\xb1\xef\x68"
31851 "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf",
31852 .clen = 80 + 32,
31853 }, {
31854#ifdef __LITTLE_ENDIAN
31855 .key = "\x08\x00" /* rta length */
31856 "\x01\x00" /* rta type */
31857#else
31858 .key = "\x00\x08" /* rta length */
31859 "\x00\x01" /* rta type */
31860#endif
31861 "\x00\x00\x00\x18" /* enc key length */
31862 "\x11\x22\x33\x44\x55\x66\x77\x88"
31863 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
31864 "\x22\x33\x44\x55\x66\x77\x88\x99"
31865 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
31866 "\x8e\x73\xb0\xf7\xda\x0e\x64\x52"
31867 "\xc8\x10\xf3\x2b\x80\x90\x79\xe5"
31868 "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b",
31869 .klen = 8 + 32 + 24,
31870 .iv = "\x49\xca\x41\xc9\x6b\xbf\x6c\x98"
31871 "\x38\x2f\xa7\x3d\x4d\x80\x49\xb0",
31872 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
31873 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31874 .alen = 16,
31875 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
31876 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
31877 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
31878 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
31879 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
31880 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
31881 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
31882 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
31883 .plen = 64,
31884 .ctext = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d"
31885 "\x71\x78\x18\x3a\x9f\xa0\x71\xe8"
31886 "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4"
31887 "\xe5\xe7\x38\x76\x3f\x69\x14\x5a"
31888 "\x57\x1b\x24\x20\x12\xfb\x7a\xe0"
31889 "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0"
31890 "\x08\xb0\xe2\x79\x88\x59\x88\x81"
31891 "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd"
31892 "\x2f\xee\x5f\xdb\x66\xfe\x79\x09"
31893 "\x61\x81\x31\xea\x5b\x3d\x8e\xfb"
31894 "\xca\x71\x85\x93\xf7\x85\x55\x8b"
31895 "\x7a\xe4\x94\xca\x8b\xba\x19\x33",
31896 .clen = 64 + 32,
31897 }, {
31898#ifdef __LITTLE_ENDIAN
31899 .key = "\x08\x00" /* rta length */
31900 "\x01\x00" /* rta type */
31901#else
31902 .key = "\x00\x08" /* rta length */
31903 "\x00\x01" /* rta type */
31904#endif
31905 "\x00\x00\x00\x20" /* enc key length */
31906 "\x11\x22\x33\x44\x55\x66\x77\x88"
31907 "\x99\xaa\xbb\xcc\xdd\xee\xff\x11"
31908 "\x22\x33\x44\x55\x66\x77\x88\x99"
31909 "\xaa\xbb\xcc\xdd\xee\xff\x11\x22"
31910 "\x60\x3d\xeb\x10\x15\xca\x71\xbe"
31911 "\x2b\x73\xae\xf0\x85\x7d\x77\x81"
31912 "\x1f\x35\x2c\x07\x3b\x61\x08\xd7"
31913 "\x2d\x98\x10\xa3\x09\x14\xdf\xf4",
31914 .klen = 8 + 32 + 32,
31915 .iv = "\xdf\xab\xf2\x7c\xdc\xe0\x33\x4c"
31916 "\xf9\x75\xaf\xf9\x2f\x60\x3a\x9b",
31917 .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07"
31918 "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f",
31919 .alen = 16,
31920 .ptext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96"
31921 "\xe9\x3d\x7e\x11\x73\x93\x17\x2a"
31922 "\xae\x2d\x8a\x57\x1e\x03\xac\x9c"
31923 "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51"
31924 "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11"
31925 "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef"
31926 "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17"
31927 "\xad\x2b\x41\x7b\xe6\x6c\x37\x10",
31928 .plen = 64,
31929 .ctext = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba"
31930 "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6"
31931 "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d"
31932 "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d"
31933 "\x39\xf2\x33\x69\xa9\xd9\xba\xcf"
31934 "\xa5\x30\xe2\x63\x04\x23\x14\x61"
31935 "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc"
31936 "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b"
31937 "\x24\x29\xed\xc2\x31\x49\xdb\xb1"
31938 "\x8f\x74\xbd\x17\x92\x03\xbe\x8f"
31939 "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0"
31940 "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f",
31941 .clen = 64 + 32,
31942 },
31943};
31944
Herbert Xuda7f0332008-07-31 17:08:25 +080031945#endif /* _CRYPTO_TESTMGR_H */