Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1 | /* |
| 2 | * Algorithm testing framework and tests. |
| 3 | * |
| 4 | * Copyright (c) 2002 James Morris <jmorris@intercode.com.au> |
| 5 | * Copyright (c) 2002 Jean-Francois Dive <jef@linuxbe.org> |
| 6 | * Copyright (c) 2007 Nokia Siemens Networks |
| 7 | * Copyright (c) 2008 Herbert Xu <herbert@gondor.apana.org.au> |
| 8 | * |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 9 | * Updated RFC4106 AES-GCM testing. Some test vectors were taken from |
| 10 | * http://csrc.nist.gov/groups/ST/toolkit/BCM/documents/proposedmodes/ |
| 11 | * gcm/gcm-test-vectors.tar.gz |
| 12 | * Authors: Aidan O'Mahony (aidan.o.mahony@intel.com) |
| 13 | * Adrian Hoban <adrian.hoban@intel.com> |
| 14 | * Gabriele Paoloni <gabriele.paoloni@intel.com> |
| 15 | * Tadeusz Struk (tadeusz.struk@intel.com) |
| 16 | * Copyright (c) 2010, Intel Corporation. |
| 17 | * |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 18 | * This program is free software; you can redistribute it and/or modify it |
| 19 | * under the terms of the GNU General Public License as published by the Free |
| 20 | * Software Foundation; either version 2 of the License, or (at your option) |
| 21 | * any later version. |
| 22 | * |
| 23 | */ |
| 24 | #ifndef _CRYPTO_TESTMGR_H |
| 25 | #define _CRYPTO_TESTMGR_H |
| 26 | |
Geert Uytterhoeven | 0c01aed | 2009-03-04 15:42:15 +0800 | [diff] [blame] | 27 | #include <linux/netlink.h> |
Geert Uytterhoeven | 8064efb | 2009-03-04 15:08:03 +0800 | [diff] [blame] | 28 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 29 | #define MAX_DIGEST_SIZE 64 |
| 30 | #define MAX_TAP 8 |
| 31 | |
Horia Geanta | 29b77e5 | 2014-07-23 11:59:38 +0300 | [diff] [blame] | 32 | #define MAX_KEYLEN 160 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 33 | #define MAX_IVLEN 32 |
| 34 | |
| 35 | struct hash_testvec { |
| 36 | /* only used with keyed hash algorithms */ |
| 37 | char *key; |
| 38 | char *plaintext; |
| 39 | char *digest; |
| 40 | unsigned char tap[MAX_TAP]; |
Jussi Kivilinna | 6726ec4 | 2012-11-13 12:02:30 +0200 | [diff] [blame] | 41 | unsigned short psize; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 42 | unsigned char np; |
| 43 | unsigned char ksize; |
| 44 | }; |
| 45 | |
LABBE Corentin | a7eed15 | 2015-06-05 11:39:22 +0200 | [diff] [blame] | 46 | /* |
| 47 | * cipher_testvec: structure to describe a cipher test |
| 48 | * @key: A pointer to a key used by the test |
| 49 | * @klen: The length of @key |
| 50 | * @iv: A pointer to the IV used by the test |
| 51 | * @input: A pointer to data used as input |
| 52 | * @ilen The length of data in @input |
| 53 | * @result: A pointer to what the test need to produce |
| 54 | * @rlen: The length of data in @result |
| 55 | * @fail: If set to one, the test need to fail |
| 56 | * @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY |
| 57 | * ( e.g. test needs to fail due to a weak key ) |
| 58 | * @np: numbers of SG to distribute data in (from 1 to MAX_TAP) |
| 59 | * @tap: How to distribute data in @np SGs |
| 60 | * @also_non_np: if set to 1, the test will be also done without |
| 61 | * splitting data in @np SGs |
Stephan Mueller | 10faa8c | 2016-08-25 15:15:01 +0200 | [diff] [blame] | 62 | * @fips_skip: Skip the test vector in FIPS mode |
LABBE Corentin | a7eed15 | 2015-06-05 11:39:22 +0200 | [diff] [blame] | 63 | */ |
| 64 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 65 | struct cipher_testvec { |
| 66 | char *key; |
| 67 | char *iv; |
Boris BREZILLON | 8a826a3 | 2015-06-16 11:46:46 +0200 | [diff] [blame] | 68 | char *iv_out; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 69 | char *input; |
| 70 | char *result; |
| 71 | unsigned short tap[MAX_TAP]; |
| 72 | int np; |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 73 | unsigned char also_non_np; |
David Howells | 09e2178 | 2015-04-28 15:36:36 +0100 | [diff] [blame] | 74 | bool fail; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 75 | unsigned char wk; /* weak key flag */ |
| 76 | unsigned char klen; |
| 77 | unsigned short ilen; |
| 78 | unsigned short rlen; |
Stephan Mueller | 10faa8c | 2016-08-25 15:15:01 +0200 | [diff] [blame] | 79 | bool fips_skip; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 80 | }; |
| 81 | |
| 82 | struct aead_testvec { |
| 83 | char *key; |
| 84 | char *iv; |
| 85 | char *input; |
| 86 | char *assoc; |
| 87 | char *result; |
| 88 | unsigned char tap[MAX_TAP]; |
| 89 | unsigned char atap[MAX_TAP]; |
| 90 | int np; |
| 91 | int anp; |
David Howells | 09e2178 | 2015-04-28 15:36:36 +0100 | [diff] [blame] | 92 | bool fail; |
Jarod Wilson | e44a1b4 | 2009-05-04 19:22:11 +0800 | [diff] [blame] | 93 | unsigned char novrfy; /* ccm dec verification failure expected */ |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 94 | unsigned char wk; /* weak key flag */ |
| 95 | unsigned char klen; |
| 96 | unsigned short ilen; |
| 97 | unsigned short alen; |
| 98 | unsigned short rlen; |
| 99 | }; |
| 100 | |
Jarod Wilson | 7647d6c | 2009-05-04 19:44:50 +0800 | [diff] [blame] | 101 | struct cprng_testvec { |
| 102 | char *key; |
| 103 | char *dt; |
| 104 | char *v; |
| 105 | char *result; |
| 106 | unsigned char klen; |
| 107 | unsigned short dtlen; |
| 108 | unsigned short vlen; |
| 109 | unsigned short rlen; |
| 110 | unsigned short loops; |
| 111 | }; |
| 112 | |
Stephan Mueller | 3332ee2 | 2014-05-31 17:24:38 +0200 | [diff] [blame] | 113 | struct drbg_testvec { |
| 114 | unsigned char *entropy; |
| 115 | size_t entropylen; |
| 116 | unsigned char *entpra; |
| 117 | unsigned char *entprb; |
| 118 | size_t entprlen; |
| 119 | unsigned char *addtla; |
| 120 | unsigned char *addtlb; |
| 121 | size_t addtllen; |
| 122 | unsigned char *pers; |
| 123 | size_t perslen; |
| 124 | unsigned char *expected; |
| 125 | size_t expectedlen; |
| 126 | }; |
| 127 | |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 128 | struct akcipher_testvec { |
| 129 | unsigned char *key; |
| 130 | unsigned char *m; |
| 131 | unsigned char *c; |
| 132 | unsigned int key_len; |
| 133 | unsigned int m_size; |
| 134 | unsigned int c_size; |
| 135 | bool public_key_vec; |
| 136 | }; |
| 137 | |
Salvatore Benedetto | 802c7f1 | 2016-06-22 17:49:14 +0100 | [diff] [blame] | 138 | struct kpp_testvec { |
| 139 | unsigned char *secret; |
| 140 | unsigned char *b_public; |
| 141 | unsigned char *expected_a_public; |
| 142 | unsigned char *expected_ss; |
| 143 | unsigned short secret_size; |
| 144 | unsigned short b_public_size; |
| 145 | unsigned short expected_a_public_size; |
| 146 | unsigned short expected_ss_size; |
| 147 | }; |
| 148 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 149 | static char zeroed_string[48]; |
| 150 | |
| 151 | /* |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 152 | * RSA test vectors. Borrowed from openSSL. |
| 153 | */ |
| 154 | #ifdef CONFIG_CRYPTO_FIPS |
| 155 | #define RSA_TEST_VECTORS 2 |
| 156 | #else |
Salvatore Benedetto | c8afbc8 | 2016-07-04 17:21:39 +0100 | [diff] [blame] | 157 | #define RSA_TEST_VECTORS 5 |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 158 | #endif |
| 159 | static struct akcipher_testvec rsa_tv_template[] = { |
| 160 | { |
| 161 | #ifndef CONFIG_CRYPTO_FIPS |
| 162 | .key = |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 163 | "\x30\x81\x9A" /* sequence of 154 bytes */ |
| 164 | "\x02\x01\x01" /* version - integer of 1 byte */ |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 165 | "\x02\x41" /* modulus - integer of 65 bytes */ |
| 166 | "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F" |
| 167 | "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5" |
| 168 | "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93" |
| 169 | "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1" |
| 170 | "\xF5" |
| 171 | "\x02\x01\x11" /* public key - integer of 1 byte */ |
| 172 | "\x02\x40" /* private key - integer of 64 bytes */ |
| 173 | "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44" |
| 174 | "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64" |
| 175 | "\x79\x7C\x3F\xA7\xA2\xCD\xCB\x3C\xD1\xE0\xBD\xBA\x26\x54\xB4\xF9" |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 176 | "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51" |
| 177 | "\x02\x01\x00" /* prime1 - integer of 1 byte */ |
| 178 | "\x02\x01\x00" /* prime2 - integer of 1 byte */ |
| 179 | "\x02\x01\x00" /* exponent1 - integer of 1 byte */ |
| 180 | "\x02\x01\x00" /* exponent2 - integer of 1 byte */ |
| 181 | "\x02\x01\x00", /* coefficient - integer of 1 byte */ |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 182 | .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a", |
| 183 | .c = |
| 184 | "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63" |
| 185 | "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a" |
| 186 | "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53" |
| 187 | "\x9f\x6e\xbd\x4c\x55\x84\x0c\x9b\xcf\x1a\x4b\x51\x1e\x9e\x0c\x06", |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 188 | .key_len = 157, |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 189 | .m_size = 8, |
| 190 | .c_size = 64, |
| 191 | }, { |
| 192 | .key = |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 193 | "\x30\x82\x01\x1D" /* sequence of 285 bytes */ |
| 194 | "\x02\x01\x01" /* version - integer of 1 byte */ |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 195 | "\x02\x81\x81" /* modulus - integer of 129 bytes */ |
| 196 | "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71" |
| 197 | "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5" |
| 198 | "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD" |
| 199 | "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80" |
| 200 | "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25" |
| 201 | "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39" |
| 202 | "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68" |
| 203 | "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD" |
| 204 | "\xCB" |
| 205 | "\x02\x01\x11" /* public key - integer of 1 byte */ |
| 206 | "\x02\x81\x81" /* private key - integer of 129 bytes */ |
| 207 | "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD" |
| 208 | "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41" |
| 209 | "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69" |
| 210 | "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA" |
| 211 | "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94" |
| 212 | "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A" |
| 213 | "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94" |
| 214 | "\xAF\x94\x28\xC2\xB7\xB8\x88\x3F\xE4\x46\x3A\x4B\xC8\x5B\x1C\xB3" |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 215 | "\xC1" |
| 216 | "\x02\x01\x00" /* prime1 - integer of 1 byte */ |
| 217 | "\x02\x01\x00" /* prime2 - integer of 1 byte */ |
| 218 | "\x02\x01\x00" /* exponent1 - integer of 1 byte */ |
| 219 | "\x02\x01\x00" /* exponent2 - integer of 1 byte */ |
| 220 | "\x02\x01\x00", /* coefficient - integer of 1 byte */ |
| 221 | .key_len = 289, |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 222 | .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a", |
| 223 | .c = |
| 224 | "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95" |
| 225 | "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72" |
| 226 | "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f" |
| 227 | "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34" |
| 228 | "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7" |
| 229 | "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13" |
| 230 | "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75" |
| 231 | "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b", |
| 232 | .m_size = 8, |
| 233 | .c_size = 128, |
| 234 | }, { |
| 235 | #endif |
| 236 | .key = |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 237 | "\x30\x82\x02\x1F" /* sequence of 543 bytes */ |
| 238 | "\x02\x01\x01" /* version - integer of 1 byte */ |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 239 | "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */ |
| 240 | "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D" |
| 241 | "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA" |
| 242 | "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D" |
| 243 | "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77" |
| 244 | "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA" |
| 245 | "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1" |
| 246 | "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48" |
| 247 | "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F" |
| 248 | "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77" |
| 249 | "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA" |
| 250 | "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A" |
| 251 | "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC" |
| 252 | "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD" |
| 253 | "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB" |
| 254 | "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E" |
| 255 | "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB" |
| 256 | "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */ |
| 257 | "\x02\x82\x01\x00" /* private key - integer of 256 bytes */ |
| 258 | "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D" |
| 259 | "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92" |
| 260 | "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12" |
| 261 | "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A" |
| 262 | "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D" |
| 263 | "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33" |
| 264 | "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43" |
| 265 | "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B" |
| 266 | "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC" |
| 267 | "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33" |
| 268 | "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A" |
| 269 | "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D" |
| 270 | "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04" |
| 271 | "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82" |
| 272 | "\xD6\xBF\x7A\x0B\x64\x21\x6D\x88\x7E\x5B\x45\x12\x1E\x63\x8D\x49" |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 273 | "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71" |
| 274 | "\x02\x01\x00" /* prime1 - integer of 1 byte */ |
| 275 | "\x02\x01\x00" /* prime2 - integer of 1 byte */ |
| 276 | "\x02\x01\x00" /* exponent1 - integer of 1 byte */ |
| 277 | "\x02\x01\x00" /* exponent2 - integer of 1 byte */ |
| 278 | "\x02\x01\x00", /* coefficient - integer of 1 byte */ |
| 279 | .key_len = 547, |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 280 | .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a", |
| 281 | .c = |
| 282 | "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe" |
| 283 | "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36" |
| 284 | "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd" |
| 285 | "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3" |
| 286 | "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69" |
| 287 | "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41" |
| 288 | "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30" |
| 289 | "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5" |
| 290 | "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73" |
| 291 | "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d" |
| 292 | "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b" |
| 293 | "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0" |
| 294 | "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d" |
| 295 | "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6" |
| 296 | "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21" |
| 297 | "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98", |
| 298 | .m_size = 8, |
| 299 | .c_size = 256, |
| 300 | }, { |
| 301 | .key = |
| 302 | "\x30\x82\x01\x09" /* sequence of 265 bytes */ |
| 303 | "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */ |
| 304 | "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D" |
| 305 | "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA" |
| 306 | "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D" |
| 307 | "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77" |
| 308 | "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA" |
| 309 | "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1" |
| 310 | "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48" |
| 311 | "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F" |
| 312 | "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77" |
| 313 | "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA" |
| 314 | "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A" |
| 315 | "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC" |
| 316 | "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD" |
| 317 | "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB" |
| 318 | "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E" |
| 319 | "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB" |
| 320 | "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */ |
| 321 | .key_len = 269, |
| 322 | .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a", |
| 323 | .c = |
| 324 | "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe" |
| 325 | "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36" |
| 326 | "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd" |
| 327 | "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3" |
| 328 | "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69" |
| 329 | "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41" |
| 330 | "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30" |
| 331 | "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5" |
| 332 | "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73" |
| 333 | "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d" |
| 334 | "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b" |
| 335 | "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0" |
| 336 | "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d" |
| 337 | "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6" |
| 338 | "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21" |
| 339 | "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98", |
| 340 | .m_size = 8, |
| 341 | .c_size = 256, |
| 342 | .public_key_vec = true, |
Salvatore Benedetto | c8afbc8 | 2016-07-04 17:21:39 +0100 | [diff] [blame] | 343 | }, { |
| 344 | .key = |
| 345 | "\x30\x82\x09\x29" /* sequence of 2345 bytes */ |
| 346 | "\x02\x01\x00" /* version integer of 1 byte */ |
| 347 | "\x02\x82\x02\x01" /* modulus - integer of 513 bytes */ |
| 348 | "\x00\xC3\x8B\x55\x7B\x73\x4D\xFF\xE9\x9B\xC6\xDC\x67\x3C\xB4\x8E" |
| 349 | "\xA0\x86\xED\xF2\xB9\x50\x5C\x54\x5C\xBA\xE4\xA1\xB2\xA7\xAE\x2F" |
| 350 | "\x1B\x7D\xF1\xFB\xAC\x79\xC5\xDF\x1A\x00\xC9\xB2\xC1\x61\x25\x33" |
| 351 | "\xE6\x9C\xE9\xCF\xD6\x27\xC4\x4E\x44\x30\x44\x5E\x08\xA1\x87\x52" |
| 352 | "\xCC\x6B\x97\x70\x8C\xBC\xA5\x06\x31\x0C\xD4\x2F\xD5\x7D\x26\x24" |
| 353 | "\xA2\xE2\xAC\x78\xF4\x53\x14\xCE\xF7\x19\x2E\xD7\xF7\xE6\x0C\xB9" |
| 354 | "\x56\x7F\x0B\xF1\xB1\xE2\x43\x70\xBD\x86\x1D\xA1\xCC\x2B\x19\x08" |
| 355 | "\x76\xEF\x91\xAC\xBF\x20\x24\x0D\x38\xC0\x89\xB8\x9A\x70\xB3\x64" |
| 356 | "\xD9\x8F\x80\x41\x10\x5B\x9F\xB1\xCB\x76\x43\x00\x21\x25\x36\xD4" |
| 357 | "\x19\xFC\x55\x95\x10\xE4\x26\x74\x98\x2C\xD9\xBD\x0B\x2B\x04\xC2" |
| 358 | "\xAC\x82\x38\xB4\xDD\x4C\x04\x7E\x51\x36\x40\x1E\x0B\xC4\x7C\x25" |
| 359 | "\xDD\x4B\xB2\xE7\x20\x0A\x57\xF9\xB4\x94\xC3\x08\x33\x22\x6F\x8B" |
| 360 | "\x48\xDB\x03\x68\x5A\x5B\xBA\xAE\xF3\xAD\xCF\xC3\x6D\xBA\xF1\x28" |
| 361 | "\x67\x7E\x6C\x79\x07\xDE\xFC\xED\xE7\x96\xE3\x6C\xE0\x2C\x87\xF8" |
| 362 | "\x02\x01\x28\x38\x43\x21\x53\x84\x69\x75\x78\x15\x7E\xEE\xD2\x1B" |
| 363 | "\xB9\x23\x40\xA8\x86\x1E\x38\x83\xB2\x73\x1D\x53\xFB\x9E\x2A\x8A" |
| 364 | "\xB2\x75\x35\x01\xC3\xC3\xC4\x94\xE8\x84\x86\x64\x81\xF4\x42\xAA" |
| 365 | "\x3C\x0E\xD6\x4F\xBC\x0A\x09\x2D\xE7\x1B\xD4\x10\xA8\x54\xEA\x89" |
| 366 | "\x84\x8A\xCB\xF7\x5A\x3C\xCA\x76\x08\x29\x62\xB4\x6A\x22\xDF\x14" |
| 367 | "\x95\x71\xFD\xB6\x86\x39\xB8\x8B\xF8\x91\x7F\x38\xAA\x14\xCD\xE5" |
| 368 | "\xF5\x1D\xC2\x6D\x53\x69\x52\x84\x7F\xA3\x1A\x5E\x26\x04\x83\x06" |
| 369 | "\x73\x52\x56\xCF\x76\x26\xC9\xDD\x75\xD7\xFC\xF4\x69\xD8\x7B\x55" |
| 370 | "\xB7\x68\x13\x53\xB9\xE7\x89\xC3\xE8\xD6\x6E\xA7\x6D\xEA\x81\xFD" |
| 371 | "\xC4\xB7\x05\x5A\xB7\x41\x0A\x23\x8E\x03\x8A\x1C\xAE\xD3\x1E\xCE" |
| 372 | "\xE3\x5E\xFC\x19\x4A\xEE\x61\x9B\x8E\xE5\xE5\xDD\x85\xF9\x41\xEC" |
| 373 | "\x14\x53\x92\xF7\xDD\x06\x85\x02\x91\xE3\xEB\x6C\x43\x03\xB1\x36" |
| 374 | "\x7B\x89\x5A\xA8\xEB\xFC\xD5\xA8\x35\xDC\x81\xD9\x5C\xBD\xCA\xDC" |
| 375 | "\x9B\x98\x0B\x06\x5D\x0C\x5B\xEE\xF3\xD5\xCC\x57\xC9\x71\x2F\x90" |
| 376 | "\x3B\x3C\xF0\x8E\x4E\x35\x48\xAE\x63\x74\xA9\xFC\x72\x75\x8E\x34" |
| 377 | "\xA8\xF2\x1F\xEA\xDF\x3A\x37\x2D\xE5\x39\x39\xF8\x57\x58\x3C\x04" |
| 378 | "\xFE\x87\x06\x98\xBC\x7B\xD3\x21\x36\x60\x25\x54\xA7\x3D\xFA\x91" |
| 379 | "\xCC\xA8\x0B\x92\x8E\xB4\xF7\x06\xFF\x1E\x95\xCB\x07\x76\x97\x3B" |
| 380 | "\x9D" |
| 381 | "\x02\x03\x01\x00\x01" /* public key integer of 3 bytes */ |
| 382 | "\x02\x82\x02\x00" /* private key integer of 512 bytes */ |
| 383 | "\x74\xA9\xE0\x6A\x32\xB4\xCA\x85\xD9\x86\x9F\x60\x88\x7B\x40\xCC" |
| 384 | "\xCD\x33\x91\xA8\xB6\x25\x1F\xBF\xE3\x51\x1C\x97\xB6\x2A\xD9\xB8" |
| 385 | "\x11\x40\x19\xE3\x21\x13\xC8\xB3\x7E\xDC\xD7\x65\x40\x4C\x2D\xD6" |
| 386 | "\xDC\xAF\x32\x6C\x96\x75\x2C\x2C\xCA\x8F\x3F\x7A\xEE\xC4\x09\xC6" |
| 387 | "\x24\x3A\xC9\xCF\x6D\x8D\x17\x50\x94\x52\xD3\xE7\x0F\x2F\x7E\x94" |
| 388 | "\x1F\xA0\xBE\xD9\x25\xE8\x38\x42\x7C\x27\xD2\x79\xF8\x2A\x87\x38" |
| 389 | "\xEF\xBB\x74\x8B\xA8\x6E\x8C\x08\xC6\xC7\x4F\x0C\xBC\x79\xC6\xEF" |
| 390 | "\x0E\xA7\x5E\xE4\xF8\x8C\x09\xC7\x5E\x37\xCC\x87\x77\xCD\xCF\xD1" |
| 391 | "\x6D\x28\x1B\xA9\x62\xC0\xB8\x16\xA7\x8B\xF9\xBB\xCC\xB4\x15\x7F" |
| 392 | "\x1B\x69\x03\xF2\x7B\xEB\xE5\x8C\x14\xD6\x23\x4F\x52\x6F\x18\xA6" |
| 393 | "\x4B\x5B\x01\xAD\x35\xF9\x48\x53\xB3\x86\x35\x66\xD7\xE7\x29\xC0" |
| 394 | "\x09\xB5\xC6\xE6\xFA\xC4\xDA\x19\xBE\xD7\x4D\x41\x14\xBE\x6F\xDF" |
| 395 | "\x1B\xAB\xC0\xCA\x88\x07\xAC\xF1\x7D\x35\x83\x67\x28\x2D\x50\xE9" |
| 396 | "\xCE\x27\x71\x5E\x1C\xCF\xD2\x30\x65\x79\x72\x2F\x9C\xE1\xD2\x39" |
| 397 | "\x7F\xEF\x3B\x01\xF2\x14\x1D\xDF\xBD\x51\xD3\xA1\x53\x62\xCF\x5F" |
| 398 | "\x79\x84\xCE\x06\x96\x69\x29\x49\x82\x1C\x71\x4A\xA1\x66\xC8\x2F" |
| 399 | "\xFD\x7B\x96\x7B\xFC\xC4\x26\x58\xC4\xFC\x7C\xAF\xB5\xE8\x95\x83" |
| 400 | "\x87\xCB\x46\xDE\x97\xA7\xB3\xA2\x54\x5B\xD7\xAF\xAB\xEB\xC8\xF3" |
| 401 | "\x55\x9D\x48\x2B\x30\x9C\xDC\x26\x4B\xC2\x89\x45\x13\xB2\x01\x9A" |
| 402 | "\xA4\x65\xC3\xEC\x24\x2D\x26\x97\xEB\x80\x8A\x9D\x03\xBC\x59\x66" |
| 403 | "\x9E\xE2\xBB\xBB\x63\x19\x64\x93\x11\x7B\x25\x65\x30\xCD\x5B\x4B" |
| 404 | "\x2C\xFF\xDC\x2D\x30\x87\x1F\x3C\x88\x07\xD0\xFC\x48\xCC\x05\x8A" |
| 405 | "\xA2\xC8\x39\x3E\xD5\x51\xBC\x0A\xBE\x6D\xA8\xA0\xF6\x88\x06\x79" |
| 406 | "\x13\xFF\x1B\x45\xDA\x54\xC9\x24\x25\x8A\x75\x0A\x26\xD1\x69\x81" |
| 407 | "\x14\x14\xD1\x79\x7D\x8E\x76\xF2\xE0\xEB\xDD\x0F\xDE\xC2\xEC\x80" |
| 408 | "\xD7\xDC\x16\x99\x92\xBE\xCB\x40\x0C\xCE\x7C\x3B\x46\xA2\x5B\x5D" |
| 409 | "\x0C\x45\xEB\xE1\x00\xDE\x72\x50\xB1\xA6\x0B\x76\xC5\x8D\xFC\x82" |
| 410 | "\x38\x6D\x99\x14\x1D\x1A\x4A\xD3\x7C\x53\xB8\x12\x46\xA2\x30\x38" |
| 411 | "\x82\xF4\x96\x6E\x8C\xCE\x47\x0D\xAF\x0A\x3B\x45\xB7\x43\x95\x43" |
| 412 | "\x9E\x02\x2C\x44\x07\x6D\x1F\x3C\x66\x89\x09\xB6\x1F\x06\x30\xCC" |
| 413 | "\xAD\xCE\x7D\x9A\xDE\x3E\xFB\x6C\xE4\x58\x43\xD2\x4F\xA5\x9E\x5E" |
| 414 | "\xA7\x7B\xAE\x3A\xF6\x7E\xD9\xDB\xD3\xF5\xC5\x41\xAF\xE6\x9C\x91" |
| 415 | "\x02\x82\x01\x01" /* prime1 - integer of 257 bytes */ |
| 416 | "\x00\xE0\xA6\x6C\xF0\xA2\xF8\x81\x85\x36\x43\xD0\x13\x0B\x33\x8B" |
| 417 | "\x8F\x78\x3D\xAC\xC7\x5E\x46\x6A\x7F\x05\xAE\x3E\x26\x0A\xA6\xD0" |
| 418 | "\x51\xF3\xC8\x61\xF5\x77\x22\x48\x10\x87\x4C\xD5\xA4\xD5\xAE\x2D" |
| 419 | "\x4E\x7A\xFE\x1C\x31\xE7\x6B\xFF\xA4\x69\x20\xF9\x2A\x0B\x99\xBE" |
| 420 | "\x7C\x32\x68\xAD\xB0\xC6\x94\x81\x41\x75\xDC\x06\x78\x0A\xB4\xCF" |
| 421 | "\xCD\x1B\x2D\x31\xE4\x7B\xEA\xA8\x35\x99\x75\x57\xC6\x0E\xF6\x78" |
| 422 | "\x4F\xA0\x92\x4A\x00\x1B\xE7\x96\xF2\x5B\xFD\x2C\x0A\x0A\x13\x81" |
| 423 | "\xAF\xCB\x59\x87\x31\xD9\x83\x65\xF2\x22\x48\xD0\x03\x67\x39\xF6" |
| 424 | "\xFF\xA8\x36\x07\x3A\x68\xE3\x7B\xA9\x64\xFD\x9C\xF7\xB1\x3D\xBF" |
| 425 | "\x26\x5C\xCC\x7A\xFC\xA2\x8F\x51\xD1\xE1\xE2\x3C\xEC\x06\x75\x7C" |
| 426 | "\x34\xF9\xA9\x33\x70\x11\xAD\x5A\xDC\x5F\xCF\x50\xF6\x23\x2F\x39" |
| 427 | "\xAC\x92\x48\x53\x4D\x01\x96\x3C\xD8\xDC\x1F\x23\x23\x78\x80\x34" |
| 428 | "\x54\x14\x76\x8B\xB6\xBB\xFB\x88\x78\x31\x59\x28\xD2\xB1\x75\x17" |
| 429 | "\x88\x04\x4A\x78\x62\x18\x2E\xF5\xFB\x9B\xEF\x15\xD8\x16\x47\xC6" |
| 430 | "\x42\xB1\x02\xDA\x9E\xE3\x84\x90\xB4\x2D\xC3\xCE\x13\xC9\x12\x7D" |
| 431 | "\x3E\xCD\x39\x39\xC9\xAD\xA1\x1A\xE6\xD5\xAD\x5A\x09\x4D\x1B\x0C" |
| 432 | "\xAB" |
| 433 | "\x02\x82\x01\x01" /* prime 2 - integer of 257 bytes */ |
| 434 | "\x00\xDE\xD5\x1B\xF6\xCD\x83\xB1\xC6\x47\x7E\xB9\xC0\x6B\xA9\xB8" |
| 435 | "\x02\xF3\xAE\x40\x5D\xFC\xD3\xE5\x4E\xF1\xE3\x39\x04\x52\x84\x89" |
| 436 | "\x40\x37\xBB\xC2\xCD\x7F\x71\x77\x17\xDF\x6A\x4C\x31\x24\x7F\xB9" |
| 437 | "\x7E\x7F\xC8\x43\x4A\x3C\xEB\x8D\x1B\x7F\x21\x51\x67\x45\x8F\xA0" |
| 438 | "\x36\x29\x3A\x18\x45\xA5\x32\xEC\x74\x88\x3C\x98\x5D\x67\x3B\xD7" |
| 439 | "\x51\x1F\xE9\xAE\x09\x01\xDE\xDE\x7C\xFB\x60\xD1\xA5\x6C\xE9\x6A" |
| 440 | "\x93\x04\x02\x3A\xBB\x67\x02\xB9\xFD\x23\xF0\x02\x2B\x49\x85\xC9" |
| 441 | "\x5B\xE7\x4B\xDF\xA3\xF4\xEE\x59\x4C\x45\xEF\x8B\xC1\x6B\xDE\xDE" |
| 442 | "\xBC\x1A\xFC\xD2\x76\x3F\x33\x74\xA9\x8E\xA3\x7E\x0C\xC6\xCE\x70" |
| 443 | "\xA1\x5B\xA6\x77\xEA\x76\xEB\x18\xCE\xB9\xD7\x78\x8D\xAE\x06\xBB" |
| 444 | "\xD3\x1F\x16\x0D\x05\xAB\x4F\xC6\x52\xC8\x6B\x36\x51\x7D\x1D\x27" |
| 445 | "\xAF\x88\x9A\x6F\xCC\x25\x2E\x74\x06\x72\xCE\x9E\xDB\xE0\x9D\x30" |
| 446 | "\xEF\x55\xA5\x58\x21\xA7\x42\x12\x2C\x2C\x23\x87\xC1\x0F\xE8\x51" |
| 447 | "\xDA\x53\xDA\xFC\x05\x36\xDF\x08\x0E\x08\x36\xBE\x5C\x86\x9E\xCA" |
| 448 | "\x68\x90\x33\x12\x0B\x14\x82\xAB\x90\x1A\xD4\x49\x32\x9C\xBD\xAA" |
| 449 | "\xAB\x4E\x38\xF1\xEE\xED\x3D\x3F\xE8\xBD\x48\x56\xA6\x64\xEE\xC8" |
| 450 | "\xD7" |
| 451 | "\x02\x82\x01\x01" /* exponent 1 - integer of 257 bytes */ |
| 452 | "\x00\x96\x5E\x6F\x8F\x06\xD6\xE6\x03\x1F\x96\x76\x81\x38\xBF\x30" |
| 453 | "\xCC\x40\x84\xAF\xD0\xE7\x06\xA5\x24\x0E\xCE\x59\xA5\x26\xFE\x0F" |
| 454 | "\x74\xBB\x83\xC6\x26\x02\xAF\x3C\xA3\x6B\x9C\xFF\x68\x0C\xEB\x40" |
| 455 | "\x42\x46\xCB\x2E\x5E\x2C\xF4\x3A\x32\x77\x77\xED\xAF\xBA\x02\x17" |
| 456 | "\xE1\x93\xF0\x43\x4A\x8F\x31\x39\xEF\x72\x0F\x6B\x79\x10\x59\x84" |
| 457 | "\xBA\x5A\x55\x7F\x0E\xDB\xEE\xEE\xD6\xA9\xB8\x44\x9F\x3A\xC6\xB9" |
| 458 | "\x33\x3B\x5C\x90\x11\xD0\x9B\xCC\x8A\xBF\x0E\x10\x5B\x4B\xF1\x50" |
| 459 | "\x9E\x35\xB3\xE0\x6D\x7A\x95\x9C\x38\x5D\xC0\x75\x13\xC2\x15\xA7" |
| 460 | "\x81\xEA\xBA\xF7\x4D\x9E\x85\x9D\xF1\x7D\xBA\xD0\x45\x6F\x2A\xD0" |
| 461 | "\x76\xC2\x28\xD0\xAD\xA7\xB5\xDC\xE3\x6A\x99\xFF\x83\x50\xB3\x75" |
| 462 | "\x07\x14\x91\xAF\xEF\x74\xB5\x9F\x9A\xE0\xBA\xA9\x0B\x87\xF3\x85" |
| 463 | "\x5C\x40\xB2\x0E\xA7\xFD\xC6\xED\x45\x8E\xD9\x7C\xB0\xB2\x68\xC6" |
| 464 | "\x1D\xFD\x70\x78\x06\x41\x7F\x95\x12\x36\x9D\xE2\x58\x5D\x15\xEE" |
| 465 | "\x41\x49\xF5\xFA\xEC\x56\x19\xA0\xE6\xE0\xB2\x40\xE1\xD9\xD0\x03" |
| 466 | "\x22\x02\xCF\xD1\x3C\x07\x38\x65\x8F\x65\x0E\xAA\x32\xCE\x25\x05" |
| 467 | "\x16\x73\x51\xB9\x9F\x88\x0B\xCD\x30\xF3\x97\xCC\x2B\x6B\xA4\x0E" |
| 468 | "\x6F" |
| 469 | "\x02\x82\x01\x00" /* exponent 2 - integer of 256 bytes */ |
| 470 | "\x2A\x5F\x3F\xB8\x08\x90\x58\x47\xA9\xE4\xB1\x11\xA3\xE7\x5B\xF4" |
| 471 | "\x43\xBE\x08\xC3\x56\x86\x3C\x7E\x6C\x84\x96\x9C\xF9\xCB\xF6\x05" |
| 472 | "\x5E\x13\xB8\x11\x37\x80\xAD\xF2\xBE\x2B\x0A\x5D\xF5\xE0\xCB\xB7" |
| 473 | "\x00\x39\x66\x82\x41\x5F\x51\x2F\xBF\x56\xE8\x91\xC8\xAA\x6C\xFE" |
| 474 | "\x9F\x8C\x4A\x7D\x43\xD2\x91\x1F\xFF\x9F\xF6\x21\x1C\xB6\x46\x55" |
| 475 | "\x48\xCA\x38\xAB\xC1\xCD\x4D\x65\x5A\xAF\xA8\x6D\xDA\x6D\xF0\x34" |
| 476 | "\x10\x79\x14\x0D\xFA\xA2\x8C\x17\x54\xB4\x18\xD5\x7E\x5F\x90\x50" |
| 477 | "\x87\x84\xE7\xFB\xD7\x61\x53\x5D\xAB\x96\xC7\x6E\x7A\x42\xA0\xFC" |
| 478 | "\x07\xED\xB7\x5F\x80\xD9\x19\xFF\xFB\xFD\x9E\xC4\x73\x31\x62\x3D" |
| 479 | "\x6C\x9E\x15\x03\x62\xA5\x85\xCC\x19\x8E\x9D\x7F\xE3\x6D\xA8\x5D" |
| 480 | "\x96\xF5\xAC\x78\x3D\x81\x27\xE7\x29\xF1\x29\x1D\x09\xBB\x77\x86" |
| 481 | "\x6B\x65\x62\x88\xE1\x31\x1A\x22\xF7\xC5\xCE\x73\x65\x1C\xBE\xE7" |
| 482 | "\x63\xD3\xD3\x14\x63\x27\xAF\x28\xF3\x23\xB6\x76\xC1\xBD\x9D\x82" |
| 483 | "\xF4\x9B\x19\x7D\x2C\x57\xF0\xC2\x2A\x51\xAE\x95\x0D\x8C\x38\x54" |
| 484 | "\xF5\xC6\xA0\x51\xB7\x0E\xB9\xEC\xE7\x0D\x22\xF6\x1A\xD3\xFE\x16" |
| 485 | "\x21\x03\xB7\x0D\x85\xD3\x35\xC9\xDD\xE4\x59\x85\xBE\x7F\xA1\x75" |
| 486 | "\x02\x82\x01\x01" /* coefficient - integer of 257 bytes */ |
| 487 | "\x00\xB9\x48\xD2\x54\x2F\x19\x54\x64\xAE\x62\x80\x61\x89\x80\xB4" |
| 488 | "\x48\x0B\x8D\x7E\x1B\x0F\x50\x08\x82\x3F\xED\x75\x84\xB7\x13\xE4" |
| 489 | "\xF8\x8D\xA8\xBB\x54\x21\x4C\x5A\x54\x07\x16\x4B\xB4\xA4\x9E\x30" |
| 490 | "\xBF\x7A\x30\x1B\x39\x60\xA3\x21\x53\xFB\xB0\xDC\x0F\x7C\x2C\xFB" |
| 491 | "\xAA\x95\x7D\x51\x39\x28\x33\x1F\x25\x31\x53\xF5\xD2\x64\x2B\xF2" |
| 492 | "\x1E\xB3\xC0\x6A\x0B\xC9\xA4\x42\x64\x5C\xFB\x15\xA3\xE8\x4C\x3A" |
| 493 | "\x9C\x3C\xBE\xA3\x39\x83\x23\xE3\x6D\x18\xCC\xC2\xDC\x63\x8D\xBA" |
| 494 | "\x98\xE0\xE0\x31\x4A\x2B\x37\x9C\x4D\x6B\xF3\x9F\x51\xE4\x43\x5C" |
| 495 | "\x83\x5F\xBF\x5C\xFE\x92\x45\x01\xAF\xF5\xC2\xF4\xB7\x56\x93\xA5" |
| 496 | "\xF4\xAA\x67\x3C\x48\x37\xBD\x9A\x3C\xFE\xA5\x9A\xB0\xD1\x6B\x85" |
| 497 | "\xDD\x81\xD4\xFA\xAD\x31\x83\xA8\x22\x9B\xFD\xB4\x61\xDC\x7A\x51" |
| 498 | "\x59\x62\x10\x1B\x7E\x44\xA3\xFE\x90\x51\x5A\x3E\x02\x87\xAD\xFA" |
| 499 | "\xDD\x0B\x1F\x3D\x35\xAF\xEE\x13\x85\x51\xA7\x42\xC0\xEE\x9E\x20" |
| 500 | "\xE9\xD0\x29\xB2\xE4\x21\xE4\x6D\x62\xB9\xF4\x48\x4A\xD8\x46\x8E" |
| 501 | "\x61\xA6\x2C\x5D\xDF\x8F\x97\x2B\x3A\x75\x1D\x83\x17\x6F\xC6\xB0" |
| 502 | "\xDE\xFC\x14\x25\x06\x5A\x60\xBB\xB8\x21\x89\xD1\xEF\x57\xF1\x71" |
| 503 | "\x3D", |
| 504 | .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a", |
| 505 | .c = |
| 506 | "\x5c\xce\x9c\xd7\x9a\x9e\xa1\xfe\x7a\x82\x3c\x68\x27\x98\xe3\x5d" |
| 507 | "\xd5\xd7\x07\x29\xf5\xfb\xc3\x1a\x7f\x63\x1e\x62\x31\x3b\x19\x87" |
| 508 | "\x79\x4f\xec\x7b\xf3\xcb\xea\x9b\x95\x52\x3a\x40\xe5\x87\x7b\x72" |
| 509 | "\xd1\x72\xc9\xfb\x54\x63\xd8\xc9\xd7\x2c\xfc\x7b\xc3\x14\x1e\xbc" |
| 510 | "\x18\xb4\x34\xa1\xbf\x14\xb1\x37\x31\x6e\xf0\x1b\x35\x19\x54\x07" |
| 511 | "\xf7\x99\xec\x3e\x63\xe2\xcd\x61\x28\x65\xc3\xcd\xb1\x38\x36\xa5" |
| 512 | "\xb2\xd7\xb0\xdc\x1f\xf5\xef\x19\xc7\x53\x32\x2d\x1c\x26\xda\xe4" |
| 513 | "\x0d\xd6\x90\x7e\x28\xd8\xdc\xe4\x61\x05\xd2\x25\x90\x01\xd3\x96" |
| 514 | "\x6d\xa6\xcf\x58\x20\xbb\x03\xf4\x01\xbc\x79\xb9\x18\xd8\xb8\xba" |
| 515 | "\xbd\x93\xfc\xf2\x62\x5d\x8c\x66\x1e\x0e\x84\x59\x93\xdd\xe2\x93" |
| 516 | "\xa2\x62\x7d\x08\x82\x7a\xdd\xfc\xb8\xbc\xc5\x4f\x9c\x4e\xbf\xb4" |
| 517 | "\xfc\xf4\xc5\x01\xe8\x00\x70\x4d\x28\x26\xcc\x2e\xfe\x0e\x58\x41" |
| 518 | "\x8b\xec\xaf\x7c\x4b\x54\xd0\xa0\x64\xf9\x32\xf4\x2e\x47\x65\x0a" |
| 519 | "\x67\x88\x39\x3a\xdb\xb2\xdb\x7b\xb5\xf6\x17\xa8\xd9\xc6\x5e\x28" |
| 520 | "\x13\x82\x8a\x99\xdb\x60\x08\xa5\x23\x37\xfa\x88\x90\x31\xc8\x9d" |
| 521 | "\x8f\xec\xfb\x85\x9f\xb1\xce\xa6\x24\x50\x46\x44\x47\xcb\x65\xd1" |
| 522 | "\xdf\xc0\xb1\x6c\x90\x1f\x99\x8e\x4d\xd5\x9e\x31\x07\x66\x87\xdf" |
| 523 | "\x01\xaa\x56\x3c\x71\xe0\x2b\x6f\x67\x3b\x23\xed\xc2\xbd\x03\x30" |
| 524 | "\x79\x76\x02\x10\x10\x98\x85\x8a\xff\xfd\x0b\xda\xa5\xd9\x32\x48" |
| 525 | "\x02\xa0\x0b\xb9\x2a\x8a\x18\xca\xc6\x8f\x3f\xbb\x16\xb2\xaa\x98" |
| 526 | "\x27\xe3\x60\x43\xed\x15\x70\xd4\x57\x15\xfe\x19\xd4\x9b\x13\x78" |
| 527 | "\x8a\xf7\x21\xf1\xa2\xa2\x2d\xb3\x09\xcf\x44\x91\x6e\x08\x3a\x30" |
| 528 | "\x81\x3e\x90\x93\x8a\x67\x33\x00\x59\x54\x9a\x25\xd3\x49\x8e\x9f" |
| 529 | "\xc1\x4b\xe5\x86\xf3\x50\x4c\xbc\xc5\xd3\xf5\x3a\x54\xe1\x36\x3f" |
| 530 | "\xe2\x5a\xb4\x37\xc0\xeb\x70\x35\xec\xf6\xb7\xe8\x44\x3b\x7b\xf3" |
| 531 | "\xf1\xf2\x1e\xdb\x60\x7d\xd5\xbe\xf0\x71\x34\x90\x4c\xcb\xd4\x35" |
| 532 | "\x51\xc7\xdd\xd8\xc9\x81\xf5\x5d\x57\x46\x2c\xb1\x7b\x9b\xaa\xcb" |
| 533 | "\xd1\x22\x25\x49\x44\xa3\xd4\x6b\x29\x7b\xd8\xb2\x07\x93\xbf\x3d" |
| 534 | "\x52\x49\x84\x79\xef\xb8\xe5\xc4\xad\xca\xa8\xc6\xf6\xa6\x76\x70" |
| 535 | "\x5b\x0b\xe5\x83\xc6\x0e\xef\x55\xf2\xe7\xff\x04\xea\xe6\x13\xbe" |
| 536 | "\x40\xe1\x40\x45\x48\x66\x75\x31\xae\x35\x64\x91\x11\x6f\xda\xee" |
| 537 | "\x26\x86\x45\x6f\x0b\xd5\x9f\x03\xb1\x65\x5b\xdb\xa4\xe4\xf9\x45", |
| 538 | .key_len = 2349, |
| 539 | .m_size = 8, |
| 540 | .c_size = 512, |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 541 | } |
| 542 | }; |
| 543 | |
Salvatore Benedetto | 802c7f1 | 2016-06-22 17:49:14 +0100 | [diff] [blame] | 544 | #define DH_TEST_VECTORS 2 |
| 545 | |
| 546 | struct kpp_testvec dh_tv_template[] = { |
| 547 | { |
| 548 | .secret = |
| 549 | #ifdef __LITTLE_ENDIAN |
| 550 | "\x01\x00" /* type */ |
| 551 | "\x11\x02" /* len */ |
| 552 | "\x00\x01\x00\x00" /* key_size */ |
| 553 | "\x00\x01\x00\x00" /* p_size */ |
| 554 | "\x01\x00\x00\x00" /* g_size */ |
| 555 | #else |
| 556 | "\x00\x01" /* type */ |
| 557 | "\x02\x11" /* len */ |
| 558 | "\x00\x00\x01\x00" /* key_size */ |
| 559 | "\x00\x00\x01\x00" /* p_size */ |
| 560 | "\x00\x00\x00\x01" /* g_size */ |
| 561 | #endif |
| 562 | /* xa */ |
| 563 | "\x44\xc1\x48\x36\xa7\x2b\x6f\x4e\x43\x03\x68\xad\x31\x00\xda\xf3" |
| 564 | "\x2a\x01\xa8\x32\x63\x5f\x89\x32\x1f\xdf\x4c\xa1\x6a\xbc\x10\x15" |
| 565 | "\x90\x35\xc9\x26\x41\xdf\x7b\xaa\x56\x56\x3d\x85\x44\xb5\xc0\x8e" |
| 566 | "\x37\x83\x06\x50\xb3\x5f\x0e\x28\x2c\xd5\x46\x15\xe3\xda\x7d\x74" |
| 567 | "\x87\x13\x91\x4f\xd4\x2d\xf6\xc7\x5e\x14\x2c\x11\xc2\x26\xb4\x3a" |
| 568 | "\xe3\xb2\x36\x20\x11\x3b\x22\xf2\x06\x65\x66\xe2\x57\x58\xf8\x22" |
| 569 | "\x1a\x94\xbd\x2b\x0e\x8c\x55\xad\x61\x23\x45\x2b\x19\x1e\x63\x3a" |
| 570 | "\x13\x61\xe3\xa0\x79\x70\x3e\x6d\x98\x32\xbc\x7f\x82\xc3\x11\xd8" |
| 571 | "\xeb\x53\xb5\xfc\xb5\xd5\x3c\x4a\xea\x92\x3e\x01\xce\x15\x65\xd4" |
| 572 | "\xaa\x85\xc1\x11\x90\x83\x31\x6e\xfe\xe7\x7f\x7d\xed\xab\xf9\x29" |
| 573 | "\xf8\xc7\xf1\x68\xc6\xb7\xe4\x1f\x2f\x28\xa0\xc9\x1a\x50\x64\x29" |
| 574 | "\x4b\x01\x6d\x1a\xda\x46\x63\x21\x07\x40\x8c\x8e\x4c\x6f\xb5\xe5" |
| 575 | "\x12\xf3\xc2\x1b\x48\x27\x5e\x27\x01\xb1\xaa\xed\x68\x9b\x83\x18" |
| 576 | "\x8f\xb1\xeb\x1f\x04\xd1\x3c\x79\xed\x4b\xf7\x0a\x33\xdc\xe0\xc6" |
| 577 | "\xd8\x02\x51\x59\x00\x74\x30\x07\x4c\x2d\xac\xe4\x13\xf1\x80\xf0" |
| 578 | "\xce\xfa\xff\xa9\xce\x29\x46\xdd\x9d\xad\xd1\xc3\xc6\x58\x1a\x63" |
| 579 | /* p */ |
| 580 | "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81" |
| 581 | "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc" |
| 582 | "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89" |
| 583 | "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64" |
| 584 | "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3" |
| 585 | "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98" |
| 586 | "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26" |
| 587 | "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6" |
| 588 | "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06" |
| 589 | "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7" |
| 590 | "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2" |
| 591 | "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb" |
| 592 | "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f" |
| 593 | "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca" |
| 594 | "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67" |
| 595 | "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73" |
| 596 | /* g */ |
| 597 | "\x02", |
| 598 | .b_public = |
| 599 | "\x2a\x67\x5c\xfd\x63\x5d\xc0\x97\x0a\x8b\xa2\x1f\xf8\x8a\xcb\x54" |
| 600 | "\xca\x2f\xd3\x49\x3f\x01\x8e\x87\xfe\xcc\x94\xa0\x3e\xd4\x26\x79" |
| 601 | "\x9a\x94\x3c\x11\x81\x58\x5c\x60\x3d\xf5\x98\x90\x89\x64\x62\x1f" |
| 602 | "\xbd\x05\x6d\x2b\xcd\x84\x40\x9b\x4a\x1f\xe0\x19\xf1\xca\x20\xb3" |
| 603 | "\x4e\xa0\x4f\x15\xcc\xa5\xfe\xa5\xb4\xf5\x0b\x18\x7a\x5a\x37\xaa" |
| 604 | "\x58\x00\x19\x7f\xe2\xa3\xd9\x1c\x44\x57\xcc\xde\x2e\xc1\x38\xea" |
| 605 | "\xeb\xe3\x90\x40\xc4\x6c\xf7\xcd\xe9\x22\x50\x71\xf5\x7c\xdb\x37" |
| 606 | "\x0e\x80\xc3\xed\x7e\xb1\x2b\x2f\xbe\x71\xa6\x11\xa5\x9d\xf5\x39" |
| 607 | "\xf1\xa2\xe5\x85\xbc\x25\x91\x4e\x84\x8d\x26\x9f\x4f\xe6\x0f\xa6" |
| 608 | "\x2b\x6b\xf9\x0d\xaf\x6f\xbb\xfa\x2d\x79\x15\x31\x57\xae\x19\x60" |
| 609 | "\x22\x0a\xf5\xfd\x98\x0e\xbf\x5d\x49\x75\x58\x37\xbc\x7f\xf5\x21" |
| 610 | "\x56\x1e\xd5\xb3\x50\x0b\xca\x96\xf3\xd1\x3f\xb3\x70\xa8\x6d\x63" |
| 611 | "\x48\xfb\x3d\xd7\x29\x91\x45\xb5\x48\xcd\xb6\x78\x30\xf2\x3f\x1e" |
| 612 | "\xd6\x22\xd6\x35\x9b\xf9\x1f\x85\xae\xab\x4b\xd7\xe0\xc7\x86\x67" |
| 613 | "\x3f\x05\x7f\xa6\x0d\x2f\x0d\xbf\x53\x5f\x4d\x2c\x6d\x5e\x57\x40" |
| 614 | "\x30\x3a\x23\x98\xf9\xb4\x32\xf5\x32\x83\xdd\x0b\xae\x33\x97\x2f", |
| 615 | .expected_a_public = |
| 616 | "\x5c\x24\xdf\xeb\x5b\x4b\xf8\xc5\xef\x39\x48\x82\xe0\x1e\x62\xee" |
| 617 | "\x8a\xae\xdf\x93\x6c\x2b\x16\x95\x92\x16\x3f\x16\x7b\x75\x03\x85" |
| 618 | "\xd9\xf1\x69\xc2\x14\x87\x45\xfc\xa4\x19\xf6\xf0\xa4\xf3\xec\xd4" |
| 619 | "\x6c\x5c\x03\x3b\x94\xc2\x2f\x92\xe4\xce\xb3\xe4\x72\xe8\x17\xe6" |
| 620 | "\x23\x7e\x00\x01\x09\x59\x13\xbf\xc1\x2f\x99\xa9\x07\xaa\x02\x23" |
| 621 | "\x4a\xca\x39\x4f\xbc\xec\x0f\x27\x4f\x19\x93\x6c\xb9\x30\x52\xfd" |
| 622 | "\x2b\x9d\x86\xf1\x06\x1e\xb6\x56\x27\x4a\xc9\x8a\xa7\x8a\x48\x5e" |
| 623 | "\xb5\x60\xcb\xdf\xff\x03\x26\x10\xbf\x90\x8f\x46\x60\xeb\x9b\x9a" |
| 624 | "\xd6\x6f\x44\x91\x03\x92\x18\x2c\x96\x5e\x40\x19\xfb\xf4\x4f\x3a" |
| 625 | "\x02\x7b\xaf\xcc\x22\x20\x79\xb9\xf8\x9f\x8f\x85\x6b\xec\x44\xbb" |
| 626 | "\xe6\xa8\x8e\xb1\xe8\x2c\xee\x64\xee\xf8\xbd\x00\xf3\xe2\x2b\x93" |
| 627 | "\xcd\xe7\xc4\xdf\xc9\x19\x46\xfe\xb6\x07\x73\xc1\x8a\x64\x79\x26" |
| 628 | "\xe7\x30\xad\x2a\xdf\xe6\x8f\x59\xf5\x81\xbf\x4a\x29\x91\xe7\xb7" |
| 629 | "\xcf\x48\x13\x27\x75\x79\x40\xd9\xd6\x32\x52\x4e\x6a\x86\xae\x6f" |
| 630 | "\xc2\xbf\xec\x1f\xc2\x69\xb2\xb6\x59\xe5\xa5\x17\xa4\x77\xb7\x62" |
| 631 | "\x46\xde\xe8\xd2\x89\x78\x9a\xef\xa3\xb5\x8f\x26\xec\x80\xda\x39", |
| 632 | .expected_ss = |
| 633 | "\x8f\xf3\xac\xa2\xea\x22\x11\x5c\x45\x65\x1a\x77\x75\x2e\xcf\x46" |
| 634 | "\x23\x14\x1e\x67\x53\x4d\x35\xb0\x38\x1d\x4e\xb9\x41\x9a\x21\x24" |
| 635 | "\x6e\x9f\x40\xfe\x90\x51\xb1\x06\xa4\x7b\x87\x17\x2f\xe7\x5e\x22" |
| 636 | "\xf0\x7b\x54\x84\x0a\xac\x0a\x90\xd2\xd7\xe8\x7f\xe7\xe3\x30\x75" |
| 637 | "\x01\x1f\x24\x75\x56\xbe\xcc\x8d\x1e\x68\x0c\x41\x72\xd3\xfa\xbb" |
| 638 | "\xe5\x9c\x60\xc7\x28\x77\x0c\xbe\x89\xab\x08\xd6\x21\xe7\x2e\x1a" |
| 639 | "\x58\x7a\xca\x4f\x22\xf3\x2b\x30\xfd\xf4\x98\xc1\xa3\xf8\xf6\xcc" |
| 640 | "\xa9\xe4\xdb\x5b\xee\xd5\x5c\x6f\x62\x4c\xd1\x1a\x02\x2a\x23\xe4" |
| 641 | "\xb5\x57\xf3\xf9\xec\x04\x83\x54\xfe\x08\x5e\x35\xac\xfb\xa8\x09" |
| 642 | "\x82\x32\x60\x11\xb2\x16\x62\x6b\xdf\xda\xde\x9c\xcb\x63\x44\x6c" |
| 643 | "\x59\x26\x6a\x8f\xb0\x24\xcb\xa6\x72\x48\x1e\xeb\xe0\xe1\x09\x44" |
| 644 | "\xdd\xee\x66\x6d\x84\xcf\xa5\xc1\xb8\x36\x74\xd3\x15\x96\xc3\xe4" |
| 645 | "\xc6\x5a\x4d\x23\x97\x0c\x5c\xcb\xa9\xf5\x29\xc2\x0e\xff\x93\x82" |
| 646 | "\xd3\x34\x49\xad\x64\xa6\xb1\xc0\x59\x28\x75\x60\xa7\x8a\xb0\x11" |
| 647 | "\x56\x89\x42\x74\x11\xf5\xf6\x5e\x6f\x16\x54\x6a\xb1\x76\x4d\x50" |
| 648 | "\x8a\x68\xc1\x5b\x82\xb9\x0d\x00\x32\x50\xed\x88\x87\x48\x92\x17", |
| 649 | .secret_size = 529, |
| 650 | .b_public_size = 256, |
| 651 | .expected_a_public_size = 256, |
| 652 | .expected_ss_size = 256, |
| 653 | }, |
| 654 | { |
| 655 | .secret = |
| 656 | #ifdef __LITTLE_ENDIAN |
| 657 | "\x01\x00" /* type */ |
| 658 | "\x11\x02" /* len */ |
| 659 | "\x00\x01\x00\x00" /* key_size */ |
| 660 | "\x00\x01\x00\x00" /* p_size */ |
| 661 | "\x01\x00\x00\x00" /* g_size */ |
| 662 | #else |
| 663 | "\x00\x01" /* type */ |
| 664 | "\x02\x11" /* len */ |
| 665 | "\x00\x00\x01\x00" /* key_size */ |
| 666 | "\x00\x00\x01\x00" /* p_size */ |
| 667 | "\x00\x00\x00\x01" /* g_size */ |
| 668 | #endif |
| 669 | /* xa */ |
| 670 | "\x4d\x75\xa8\x6e\xba\x23\x3a\x0c\x63\x56\xc8\xc9\x5a\xa7\xd6\x0e" |
| 671 | "\xed\xae\x40\x78\x87\x47\x5f\xe0\xa7\x7b\xba\x84\x88\x67\x4e\xe5" |
| 672 | "\x3c\xcc\x5c\x6a\xe7\x4a\x20\xec\xbe\xcb\xf5\x52\x62\x9f\x37\x80" |
| 673 | "\x0c\x72\x7b\x83\x66\xa4\xf6\x7f\x95\x97\x1c\x6a\x5c\x7e\xf1\x67" |
| 674 | "\x37\xb3\x93\x39\x3d\x0b\x55\x35\xd9\xe5\x22\x04\x9f\xf8\xc1\x04" |
| 675 | "\xce\x13\xa5\xac\xe1\x75\x05\xd1\x2b\x53\xa2\x84\xef\xb1\x18\xf4" |
| 676 | "\x66\xdd\xea\xe6\x24\x69\x5a\x49\xe0\x7a\xd8\xdf\x1b\xb7\xf1\x6d" |
| 677 | "\x9b\x50\x2c\xc8\x1c\x1c\xa3\xb4\x37\xfb\x66\x3f\x67\x71\x73\xa9" |
| 678 | "\xff\x5f\xd9\xa2\x25\x6e\x25\x1b\x26\x54\xbf\x0c\xc6\xdb\xea\x0a" |
| 679 | "\x52\x6c\x16\x7c\x27\x68\x15\x71\x58\x73\x9d\xe6\xc2\x80\xaa\x97" |
| 680 | "\x31\x66\xfb\xa6\xfb\xfd\xd0\x9c\x1d\xbe\x81\x48\xf5\x9a\x32\xf1" |
| 681 | "\x69\x62\x18\x78\xae\x72\x36\xe6\x94\x27\xd1\xff\x18\x4f\x28\x6a" |
| 682 | "\x16\xbd\x6a\x60\xee\xe5\xf9\x6d\x16\xe4\xb8\xa6\x41\x9b\x23\x7e" |
| 683 | "\xf7\x9d\xd1\x1d\x03\x15\x66\x3a\xcf\xb6\x2c\x13\x96\x2c\x52\x21" |
| 684 | "\xe4\x2d\x48\x7a\x8a\x5d\xb2\x88\xed\x98\x61\x79\x8b\x6a\x1e\x5f" |
| 685 | "\xd0\x8a\x2d\x99\x5a\x2b\x0f\xbc\xef\x53\x8f\x32\xc1\xa2\x99\x26" |
| 686 | /* p */ |
| 687 | "\xb9\x36\x3a\xf1\x82\x1f\x60\xd3\x22\x47\xb8\xbc\x2d\x22\x6b\x81" |
| 688 | "\x7f\xe8\x20\x06\x09\x23\x73\x49\x9a\x59\x8b\x35\x25\xf8\x31\xbc" |
| 689 | "\x7d\xa8\x1c\x9d\x56\x0d\x1a\xf7\x4b\x4f\x96\xa4\x35\x77\x6a\x89" |
| 690 | "\xab\x42\x00\x49\x21\x71\xed\x28\x16\x1d\x87\x5a\x10\xa7\x9c\x64" |
| 691 | "\x94\xd4\x87\x3d\x28\xef\x44\xfe\x4b\xe2\xb4\x15\x8c\x82\xa6\xf3" |
| 692 | "\x50\x5f\xa8\xe8\xa2\x60\xe7\x00\x86\x78\x05\xd4\x78\x19\xa1\x98" |
| 693 | "\x62\x4e\x4a\x00\x78\x56\x96\xe6\xcf\xd7\x10\x1b\x74\x5d\xd0\x26" |
| 694 | "\x61\xdb\x6b\x32\x09\x51\xd8\xa5\xfd\x54\x16\x71\x01\xb3\x39\xe6" |
| 695 | "\x4e\x69\xb1\xd7\x06\x8f\xd6\x1e\xdc\x72\x25\x26\x74\xc8\x41\x06" |
| 696 | "\x5c\xd1\x26\x5c\xb0\x2f\xf9\x59\x13\xc1\x2a\x0f\x78\xea\x7b\xf7" |
| 697 | "\xbd\x59\xa0\x90\x1d\xfc\x33\x5b\x4c\xbf\x05\x9c\x3a\x3f\x69\xa2" |
| 698 | "\x45\x61\x4e\x10\x6a\xb3\x17\xc5\x68\x30\xfb\x07\x5f\x34\xc6\xfb" |
| 699 | "\x73\x07\x3c\x70\xf6\xae\xe7\x72\x84\xc3\x18\x81\x8f\xe8\x11\x1f" |
| 700 | "\x3d\x83\x83\x01\x2a\x14\x73\xbf\x32\x32\x2e\xc9\x4d\xdb\x2a\xca" |
| 701 | "\xee\x71\xf9\xda\xad\xe8\x82\x0b\x4d\x0c\x1f\xb6\x1d\xef\x00\x67" |
| 702 | "\x74\x3d\x95\xe0\xb7\xc4\x30\x8a\x24\x87\x12\x47\x27\x70\x0d\x73" |
| 703 | /* g */ |
| 704 | "\x02", |
| 705 | .b_public = |
| 706 | "\x99\x4d\xd9\x01\x84\x8e\x4a\x5b\xb8\xa5\x64\x8c\x6c\x00\x5c\x0e" |
| 707 | "\x1e\x1b\xee\x5d\x9f\x53\xe3\x16\x70\x01\xed\xbf\x4f\x14\x36\x6e" |
| 708 | "\xe4\x43\x45\x43\x49\xcc\xb1\xb0\x2a\xc0\x6f\x22\x55\x42\x17\x94" |
| 709 | "\x18\x83\xd7\x2a\x5c\x51\x54\xf8\x4e\x7c\x10\xda\x76\x68\x57\x77" |
| 710 | "\x1e\x62\x03\x30\x04\x7b\x4c\x39\x9c\x54\x01\x54\xec\xef\xb3\x55" |
| 711 | "\xa4\xc0\x24\x6d\x3d\xbd\xcc\x46\x5b\x00\x96\xc7\xea\x93\xd1\x3f" |
| 712 | "\xf2\x6a\x72\xe3\xf2\xc1\x92\x24\x5b\xda\x48\x70\x2c\xa9\x59\x97" |
| 713 | "\x19\xb1\xd6\x54\xb3\x9c\x2e\xb0\x63\x07\x9b\x5e\xac\xb5\xf2\xb1" |
| 714 | "\x5b\xf8\xf3\xd7\x2d\x37\x9b\x68\x6c\xf8\x90\x07\xbc\x37\x9a\xa5" |
| 715 | "\xe2\x91\x12\x25\x47\x77\xe3\x3d\xb2\x95\x69\x44\x0b\x91\x1e\xaf" |
| 716 | "\x7c\x8c\x7c\x34\x41\x6a\xab\x60\x6e\xc6\x52\xec\x7e\x94\x0a\x37" |
| 717 | "\xec\x98\x90\xdf\x3f\x02\xbd\x23\x52\xdd\xd9\xe5\x31\x80\x74\x25" |
| 718 | "\xb6\xd2\xd3\xcc\xd5\xcc\x6d\xf9\x7e\x4d\x78\xab\x77\x51\xfa\x77" |
| 719 | "\x19\x94\x49\x8c\x05\xd4\x75\xed\xd2\xb3\x64\x57\xe0\x52\x99\xc0" |
| 720 | "\x83\xe3\xbb\x5e\x2b\xf1\xd2\xc0\xb1\x37\x36\x0b\x7c\xb5\x63\x96" |
| 721 | "\x8e\xde\x04\x23\x11\x95\x62\x11\x9a\xce\x6f\x63\xc8\xd5\xd1\x8f", |
| 722 | .expected_a_public = |
| 723 | "\x90\x89\xe4\x82\xd6\x0a\xcf\x1a\xae\xce\x1b\x66\xa7\x19\x71\x18" |
| 724 | "\x8f\x95\x4b\x5b\x80\x45\x4a\x5a\x43\x99\x4d\x37\xcf\xa3\xa7\x28" |
| 725 | "\x9c\xc7\x73\xf1\xb2\x17\xf6\x99\xe3\x6b\x56\xcb\x3e\x35\x60\x7d" |
| 726 | "\x65\xc7\x84\x6b\x3e\x60\xee\xcd\xd2\x70\xe7\xc9\x32\x1c\xf0\xb4" |
| 727 | "\xf9\x52\xd9\x88\x75\xfd\x40\x2c\xa7\xbe\x19\x1c\x0a\xae\x93\xe1" |
| 728 | "\x71\xc7\xcd\x4f\x33\x5c\x10\x7d\x39\x56\xfc\x73\x84\xb2\x67\xc3" |
| 729 | "\x77\x26\x20\x97\x2b\xf8\x13\x43\x93\x9c\x9a\xa4\x08\xc7\x34\x83" |
| 730 | "\xe6\x98\x61\xe7\x16\x30\x2c\xb1\xdb\x2a\xb2\xcc\xc3\x02\xa5\x3c" |
| 731 | "\x71\x50\x14\x83\xc7\xbb\xa4\xbe\x98\x1b\xfe\xcb\x43\xe9\x97\x62" |
| 732 | "\xd6\xf0\x8c\xcb\x1c\xba\x1e\xa8\xa6\xa6\x50\xfc\x85\x7d\x47\xbf" |
| 733 | "\xf4\x3e\x23\xd3\x5f\xb2\x71\x3e\x40\x94\xaa\x87\x83\x2c\x6c\x8e" |
| 734 | "\x60\xfd\xdd\xf7\xf4\x76\x03\xd3\x1d\xec\x18\x51\xa3\xf2\x44\x1a" |
| 735 | "\x3f\xb4\x7c\x18\x0d\x68\x65\x92\x54\x0d\x2d\x81\x16\xf1\x84\x66" |
| 736 | "\x89\x92\xd0\x1a\x5e\x1f\x42\x46\x5b\xe5\x83\x86\x80\xd9\xcd\x3a" |
| 737 | "\x5a\x2f\xb9\x59\x9b\xe4\x43\x84\x64\xf3\x09\x1a\x0a\xa2\x64\x0f" |
| 738 | "\x77\x4e\x8d\x8b\xe6\x88\xd1\xfc\xaf\x8f\xdf\x1d\xbc\x31\xb3\xbd", |
| 739 | .expected_ss = |
| 740 | "\x34\xc3\x35\x14\x88\x46\x26\x23\x97\xbb\xdd\x28\x5c\x94\xf6\x47" |
| 741 | "\xca\xb3\x19\xaf\xca\x44\x9b\xc2\x7d\x89\xfd\x96\x14\xfd\x6d\x58" |
| 742 | "\xd8\xc4\x6b\x61\x2a\x0d\xf2\x36\x45\xc8\xe4\xa4\xed\x81\x53\x81" |
| 743 | "\x66\x1e\xe0\x5a\xb1\x78\x2d\x0b\x5c\xb4\xd1\xfc\x90\xc6\x9c\xdb" |
| 744 | "\x5a\x30\x0b\x14\x7d\xbe\xb3\x7d\xb1\xb2\x76\x3c\x6c\xef\x74\x6b" |
| 745 | "\xe7\x1f\x64\x0c\xab\x65\xe1\x76\x5c\x3d\x83\xb5\x8a\xfb\xaf\x0f" |
| 746 | "\xf2\x06\x14\x8f\xa0\xf6\xc1\x89\x78\xf2\xba\x72\x73\x3c\xf7\x76" |
| 747 | "\x21\x67\xbc\x24\x31\xb8\x09\x65\x0f\x0c\x02\x32\x4a\x98\x14\xfc" |
| 748 | "\x72\x2c\x25\x60\x68\x5f\x2f\x30\x1e\x5b\xf0\x3b\xd1\xa2\x87\xa0" |
| 749 | "\x54\xdf\xdb\xc0\xee\x0a\x0f\x47\xc9\x90\x20\x2c\xf9\xe3\x52\xad" |
| 750 | "\x27\x65\x8d\x54\x8d\xa8\xa1\xf3\xed\x15\xd4\x94\x28\x90\x31\x93" |
| 751 | "\x1b\xc0\x51\xbb\x43\x5d\x76\x3b\x1d\x2a\x71\x50\xea\x5d\x48\x94" |
| 752 | "\x7f\x6f\xf1\x48\xdb\x30\xe5\xae\x64\x79\xd9\x7a\xdb\xc6\xff\xd8" |
| 753 | "\x5e\x5a\x64\xbd\xf6\x85\x04\xe8\x28\x6a\xac\xef\xce\x19\x8e\x9a" |
| 754 | "\xfe\x75\xc0\x27\x69\xe3\xb3\x7b\x21\xa7\xb1\x16\xa4\x85\x23\xee" |
| 755 | "\xb0\x1b\x04\x6e\xbd\xab\x16\xde\xfd\x86\x6b\xa9\x95\xd7\x0b\xfd", |
| 756 | .secret_size = 529, |
| 757 | .b_public_size = 256, |
| 758 | .expected_a_public_size = 256, |
| 759 | .expected_ss_size = 256, |
| 760 | } |
| 761 | }; |
| 762 | |
Salvatore Benedetto | 3c4b239 | 2016-06-22 17:49:15 +0100 | [diff] [blame] | 763 | #ifdef CONFIG_CRYPTO_FIPS |
| 764 | #define ECDH_TEST_VECTORS 1 |
| 765 | #else |
| 766 | #define ECDH_TEST_VECTORS 2 |
| 767 | #endif |
| 768 | struct kpp_testvec ecdh_tv_template[] = { |
| 769 | { |
| 770 | #ifndef CONFIG_CRYPTO_FIPS |
| 771 | .secret = |
| 772 | #ifdef __LITTLE_ENDIAN |
| 773 | "\x02\x00" /* type */ |
| 774 | "\x20\x00" /* len */ |
| 775 | "\x01\x00" /* curve_id */ |
| 776 | "\x18\x00" /* key_size */ |
| 777 | #else |
| 778 | "\x00\x02" /* type */ |
| 779 | "\x00\x20" /* len */ |
| 780 | "\x00\x01" /* curve_id */ |
| 781 | "\x00\x18" /* key_size */ |
| 782 | #endif |
| 783 | "\xb5\x05\xb1\x71\x1e\xbf\x8c\xda" |
| 784 | "\x4e\x19\x1e\x62\x1f\x23\x23\x31" |
| 785 | "\x36\x1e\xd3\x84\x2f\xcc\x21\x72", |
| 786 | .b_public = |
| 787 | "\xc3\xba\x67\x4b\x71\xec\xd0\x76" |
| 788 | "\x7a\x99\x75\x64\x36\x13\x9a\x94" |
| 789 | "\x5d\x8b\xdc\x60\x90\x91\xfd\x3f" |
| 790 | "\xb0\x1f\x8a\x0a\x68\xc6\x88\x6e" |
| 791 | "\x83\x87\xdd\x67\x09\xf8\x8d\x96" |
| 792 | "\x07\xd6\xbd\x1c\xe6\x8d\x9d\x67", |
| 793 | .expected_a_public = |
| 794 | "\x1a\x04\xdb\xa5\xe1\xdd\x4e\x79" |
| 795 | "\xa3\xe6\xef\x0e\x5c\x80\x49\x85" |
| 796 | "\xfa\x78\xb4\xef\x49\xbd\x4c\x7c" |
| 797 | "\x22\x90\x21\x02\xf9\x1b\x81\x5d" |
| 798 | "\x0c\x8a\xa8\x98\xd6\x27\x69\x88" |
| 799 | "\x5e\xbc\x94\xd8\x15\x9e\x21\xce", |
| 800 | .expected_ss = |
| 801 | "\xf4\x57\xcc\x4f\x1f\x4e\x31\xcc" |
| 802 | "\xe3\x40\x60\xc8\x06\x93\xc6\x2e" |
| 803 | "\x99\x80\x81\x28\xaf\xc5\x51\x74", |
| 804 | .secret_size = 32, |
| 805 | .b_public_size = 48, |
| 806 | .expected_a_public_size = 48, |
| 807 | .expected_ss_size = 24 |
| 808 | }, { |
| 809 | #endif |
| 810 | .secret = |
| 811 | #ifdef __LITTLE_ENDIAN |
| 812 | "\x02\x00" /* type */ |
| 813 | "\x28\x00" /* len */ |
| 814 | "\x02\x00" /* curve_id */ |
| 815 | "\x20\x00" /* key_size */ |
| 816 | #else |
| 817 | "\x00\x02" /* type */ |
| 818 | "\x00\x28" /* len */ |
| 819 | "\x00\x02" /* curve_id */ |
| 820 | "\x00\x20" /* key_size */ |
| 821 | #endif |
| 822 | "\x24\xd1\x21\xeb\xe5\xcf\x2d\x83" |
| 823 | "\xf6\x62\x1b\x6e\x43\x84\x3a\xa3" |
| 824 | "\x8b\xe0\x86\xc3\x20\x19\xda\x92" |
| 825 | "\x50\x53\x03\xe1\xc0\xea\xb8\x82", |
| 826 | .expected_a_public = |
| 827 | "\x1a\x7f\xeb\x52\x00\xbd\x3c\x31" |
| 828 | "\x7d\xb6\x70\xc1\x86\xa6\xc7\xc4" |
| 829 | "\x3b\xc5\x5f\x6c\x6f\x58\x3c\xf5" |
| 830 | "\xb6\x63\x82\x77\x33\x24\xa1\x5f" |
| 831 | "\x6a\xca\x43\x6f\xf7\x7e\xff\x02" |
| 832 | "\x37\x08\xcc\x40\x5e\x7a\xfd\x6a" |
| 833 | "\x6a\x02\x6e\x41\x87\x68\x38\x77" |
| 834 | "\xfa\xa9\x44\x43\x2d\xef\x09\xdf", |
| 835 | .expected_ss = |
| 836 | "\xea\x17\x6f\x7e\x6e\x57\x26\x38" |
| 837 | "\x8b\xfb\x41\xeb\xba\xc8\x6d\xa5" |
| 838 | "\xa8\x72\xd1\xff\xc9\x47\x3d\xaa" |
| 839 | "\x58\x43\x9f\x34\x0f\x8c\xf3\xc9", |
| 840 | .b_public = |
| 841 | "\xcc\xb4\xda\x74\xb1\x47\x3f\xea" |
| 842 | "\x6c\x70\x9e\x38\x2d\xc7\xaa\xb7" |
| 843 | "\x29\xb2\x47\x03\x19\xab\xdd\x34" |
| 844 | "\xbd\xa8\x2c\x93\xe1\xa4\x74\xd9" |
| 845 | "\x64\x63\xf7\x70\x20\x2f\xa4\xe6" |
| 846 | "\x9f\x4a\x38\xcc\xc0\x2c\x49\x2f" |
| 847 | "\xb1\x32\xbb\xaf\x22\x61\xda\xcb" |
| 848 | "\x6f\xdb\xa9\xaa\xfc\x77\x81\xf3", |
| 849 | .secret_size = 40, |
| 850 | .b_public_size = 64, |
| 851 | .expected_a_public_size = 64, |
| 852 | .expected_ss_size = 32 |
| 853 | } |
| 854 | }; |
| 855 | |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 856 | /* |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 857 | * MD4 test vectors from RFC1320 |
| 858 | */ |
| 859 | #define MD4_TEST_VECTORS 7 |
| 860 | |
| 861 | static struct hash_testvec md4_tv_template [] = { |
| 862 | { |
| 863 | .plaintext = "", |
| 864 | .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31" |
| 865 | "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0", |
| 866 | }, { |
| 867 | .plaintext = "a", |
| 868 | .psize = 1, |
| 869 | .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46" |
| 870 | "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24", |
| 871 | }, { |
| 872 | .plaintext = "abc", |
| 873 | .psize = 3, |
| 874 | .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52" |
| 875 | "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d", |
| 876 | }, { |
| 877 | .plaintext = "message digest", |
| 878 | .psize = 14, |
| 879 | .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8" |
| 880 | "\x18\x87\x48\x06\xe1\xc7\x01\x4b", |
| 881 | }, { |
| 882 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 883 | .psize = 26, |
| 884 | .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd" |
| 885 | "\xee\xa8\xed\x63\xdf\x41\x2d\xa9", |
| 886 | .np = 2, |
| 887 | .tap = { 13, 13 }, |
| 888 | }, { |
| 889 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", |
| 890 | .psize = 62, |
| 891 | .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35" |
| 892 | "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4", |
| 893 | }, { |
| 894 | .plaintext = "123456789012345678901234567890123456789012345678901234567890123" |
| 895 | "45678901234567890", |
| 896 | .psize = 80, |
| 897 | .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19" |
| 898 | "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36", |
| 899 | }, |
| 900 | }; |
| 901 | |
raveendra padasalagi | 79cc6ab | 2016-06-17 10:30:36 +0530 | [diff] [blame] | 902 | #define SHA3_224_TEST_VECTORS 3 |
| 903 | static struct hash_testvec sha3_224_tv_template[] = { |
| 904 | { |
| 905 | .plaintext = "", |
| 906 | .digest = "\x6b\x4e\x03\x42\x36\x67\xdb\xb7" |
| 907 | "\x3b\x6e\x15\x45\x4f\x0e\xb1\xab" |
| 908 | "\xd4\x59\x7f\x9a\x1b\x07\x8e\x3f" |
| 909 | "\x5b\x5a\x6b\xc7", |
| 910 | }, { |
| 911 | .plaintext = "a", |
| 912 | .psize = 1, |
| 913 | .digest = "\x9e\x86\xff\x69\x55\x7c\xa9\x5f" |
| 914 | "\x40\x5f\x08\x12\x69\x68\x5b\x38" |
| 915 | "\xe3\xa8\x19\xb3\x09\xee\x94\x2f" |
| 916 | "\x48\x2b\x6a\x8b", |
| 917 | }, { |
| 918 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl" |
| 919 | "jklmklmnlmnomnopnopq", |
| 920 | .psize = 56, |
| 921 | .digest = "\x8a\x24\x10\x8b\x15\x4a\xda\x21" |
| 922 | "\xc9\xfd\x55\x74\x49\x44\x79\xba" |
| 923 | "\x5c\x7e\x7a\xb7\x6e\xf2\x64\xea" |
| 924 | "\xd0\xfc\xce\x33", |
| 925 | }, |
| 926 | }; |
| 927 | |
| 928 | #define SHA3_256_TEST_VECTORS 3 |
| 929 | static struct hash_testvec sha3_256_tv_template[] = { |
| 930 | { |
| 931 | .plaintext = "", |
| 932 | .digest = "\xa7\xff\xc6\xf8\xbf\x1e\xd7\x66" |
| 933 | "\x51\xc1\x47\x56\xa0\x61\xd6\x62" |
| 934 | "\xf5\x80\xff\x4d\xe4\x3b\x49\xfa" |
| 935 | "\x82\xd8\x0a\x4b\x80\xf8\x43\x4a", |
| 936 | }, { |
| 937 | .plaintext = "a", |
| 938 | .psize = 1, |
| 939 | .digest = "\x80\x08\x4b\xf2\xfb\xa0\x24\x75" |
| 940 | "\x72\x6f\xeb\x2c\xab\x2d\x82\x15" |
| 941 | "\xea\xb1\x4b\xc6\xbd\xd8\xbf\xb2" |
| 942 | "\xc8\x15\x12\x57\x03\x2e\xcd\x8b", |
| 943 | }, { |
| 944 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl" |
| 945 | "jklmklmnlmnomnopnopq", |
| 946 | .psize = 56, |
| 947 | .digest = "\x41\xc0\xdb\xa2\xa9\xd6\x24\x08" |
| 948 | "\x49\x10\x03\x76\xa8\x23\x5e\x2c" |
| 949 | "\x82\xe1\xb9\x99\x8a\x99\x9e\x21" |
| 950 | "\xdb\x32\xdd\x97\x49\x6d\x33\x76", |
| 951 | }, |
| 952 | }; |
| 953 | |
| 954 | |
| 955 | #define SHA3_384_TEST_VECTORS 3 |
| 956 | static struct hash_testvec sha3_384_tv_template[] = { |
| 957 | { |
| 958 | .plaintext = "", |
| 959 | .digest = "\x0c\x63\xa7\x5b\x84\x5e\x4f\x7d" |
| 960 | "\x01\x10\x7d\x85\x2e\x4c\x24\x85" |
| 961 | "\xc5\x1a\x50\xaa\xaa\x94\xfc\x61" |
| 962 | "\x99\x5e\x71\xbb\xee\x98\x3a\x2a" |
| 963 | "\xc3\x71\x38\x31\x26\x4a\xdb\x47" |
| 964 | "\xfb\x6b\xd1\xe0\x58\xd5\xf0\x04", |
| 965 | }, { |
| 966 | .plaintext = "a", |
| 967 | .psize = 1, |
| 968 | .digest = "\x18\x15\xf7\x74\xf3\x20\x49\x1b" |
| 969 | "\x48\x56\x9e\xfe\xc7\x94\xd2\x49" |
| 970 | "\xee\xb5\x9a\xae\x46\xd2\x2b\xf7" |
| 971 | "\x7d\xaf\xe2\x5c\x5e\xdc\x28\xd7" |
| 972 | "\xea\x44\xf9\x3e\xe1\x23\x4a\xa8" |
| 973 | "\x8f\x61\xc9\x19\x12\xa4\xcc\xd9", |
| 974 | }, { |
| 975 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl" |
| 976 | "jklmklmnlmnomnopnopq", |
| 977 | .psize = 56, |
| 978 | .digest = "\x99\x1c\x66\x57\x55\xeb\x3a\x4b" |
| 979 | "\x6b\xbd\xfb\x75\xc7\x8a\x49\x2e" |
| 980 | "\x8c\x56\xa2\x2c\x5c\x4d\x7e\x42" |
| 981 | "\x9b\xfd\xbc\x32\xb9\xd4\xad\x5a" |
| 982 | "\xa0\x4a\x1f\x07\x6e\x62\xfe\xa1" |
| 983 | "\x9e\xef\x51\xac\xd0\x65\x7c\x22", |
| 984 | }, |
| 985 | }; |
| 986 | |
| 987 | |
| 988 | #define SHA3_512_TEST_VECTORS 3 |
| 989 | static struct hash_testvec sha3_512_tv_template[] = { |
| 990 | { |
| 991 | .plaintext = "", |
| 992 | .digest = "\xa6\x9f\x73\xcc\xa2\x3a\x9a\xc5" |
| 993 | "\xc8\xb5\x67\xdc\x18\x5a\x75\x6e" |
| 994 | "\x97\xc9\x82\x16\x4f\xe2\x58\x59" |
| 995 | "\xe0\xd1\xdc\xc1\x47\x5c\x80\xa6" |
| 996 | "\x15\xb2\x12\x3a\xf1\xf5\xf9\x4c" |
| 997 | "\x11\xe3\xe9\x40\x2c\x3a\xc5\x58" |
| 998 | "\xf5\x00\x19\x9d\x95\xb6\xd3\xe3" |
| 999 | "\x01\x75\x85\x86\x28\x1d\xcd\x26", |
| 1000 | }, { |
| 1001 | .plaintext = "a", |
| 1002 | .psize = 1, |
| 1003 | .digest = "\x69\x7f\x2d\x85\x61\x72\xcb\x83" |
| 1004 | "\x09\xd6\xb8\xb9\x7d\xac\x4d\xe3" |
| 1005 | "\x44\xb5\x49\xd4\xde\xe6\x1e\xdf" |
| 1006 | "\xb4\x96\x2d\x86\x98\xb7\xfa\x80" |
| 1007 | "\x3f\x4f\x93\xff\x24\x39\x35\x86" |
| 1008 | "\xe2\x8b\x5b\x95\x7a\xc3\xd1\xd3" |
| 1009 | "\x69\x42\x0c\xe5\x33\x32\x71\x2f" |
| 1010 | "\x99\x7b\xd3\x36\xd0\x9a\xb0\x2a", |
| 1011 | }, { |
| 1012 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkl" |
| 1013 | "jklmklmnlmnomnopnopq", |
| 1014 | .psize = 56, |
| 1015 | .digest = "\x04\xa3\x71\xe8\x4e\xcf\xb5\xb8" |
| 1016 | "\xb7\x7c\xb4\x86\x10\xfc\xa8\x18" |
| 1017 | "\x2d\xd4\x57\xce\x6f\x32\x6a\x0f" |
| 1018 | "\xd3\xd7\xec\x2f\x1e\x91\x63\x6d" |
| 1019 | "\xee\x69\x1f\xbe\x0c\x98\x53\x02" |
| 1020 | "\xba\x1b\x0d\x8d\xc7\x8c\x08\x63" |
| 1021 | "\x46\xb5\x33\xb4\x9c\x03\x0d\x99" |
| 1022 | "\xa2\x7d\xaf\x11\x39\xd6\xe7\x5e", |
| 1023 | }, |
| 1024 | }; |
| 1025 | |
| 1026 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1027 | /* |
| 1028 | * MD5 test vectors from RFC1321 |
| 1029 | */ |
| 1030 | #define MD5_TEST_VECTORS 7 |
| 1031 | |
| 1032 | static struct hash_testvec md5_tv_template[] = { |
| 1033 | { |
| 1034 | .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04" |
| 1035 | "\xe9\x80\x09\x98\xec\xf8\x42\x7e", |
| 1036 | }, { |
| 1037 | .plaintext = "a", |
| 1038 | .psize = 1, |
| 1039 | .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8" |
| 1040 | "\x31\xc3\x99\xe2\x69\x77\x26\x61", |
| 1041 | }, { |
| 1042 | .plaintext = "abc", |
| 1043 | .psize = 3, |
| 1044 | .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0" |
| 1045 | "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72", |
| 1046 | }, { |
| 1047 | .plaintext = "message digest", |
| 1048 | .psize = 14, |
| 1049 | .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d" |
| 1050 | "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0", |
| 1051 | }, { |
| 1052 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1053 | .psize = 26, |
| 1054 | .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00" |
| 1055 | "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b", |
| 1056 | .np = 2, |
| 1057 | .tap = {13, 13} |
| 1058 | }, { |
| 1059 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", |
| 1060 | .psize = 62, |
| 1061 | .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5" |
| 1062 | "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f", |
| 1063 | }, { |
| 1064 | .plaintext = "12345678901234567890123456789012345678901234567890123456789012" |
| 1065 | "345678901234567890", |
| 1066 | .psize = 80, |
| 1067 | .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55" |
| 1068 | "\xac\x49\xda\x2e\x21\x07\xb6\x7a", |
| 1069 | } |
| 1070 | |
| 1071 | }; |
| 1072 | |
| 1073 | /* |
| 1074 | * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E) |
| 1075 | */ |
| 1076 | #define RMD128_TEST_VECTORS 10 |
| 1077 | |
| 1078 | static struct hash_testvec rmd128_tv_template[] = { |
| 1079 | { |
| 1080 | .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e" |
| 1081 | "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46", |
| 1082 | }, { |
| 1083 | .plaintext = "a", |
| 1084 | .psize = 1, |
| 1085 | .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7" |
| 1086 | "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33", |
| 1087 | }, { |
| 1088 | .plaintext = "abc", |
| 1089 | .psize = 3, |
| 1090 | .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba" |
| 1091 | "\x84\x63\x6b\x0f\x69\x14\x4c\x77", |
| 1092 | }, { |
| 1093 | .plaintext = "message digest", |
| 1094 | .psize = 14, |
| 1095 | .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62" |
| 1096 | "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8", |
| 1097 | }, { |
| 1098 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1099 | .psize = 26, |
| 1100 | .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5" |
| 1101 | "\x10\x71\x49\x22\xb3\x71\x83\x4e", |
| 1102 | }, { |
| 1103 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 1104 | "fghijklmnopqrstuvwxyz0123456789", |
| 1105 | .psize = 62, |
| 1106 | .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f" |
| 1107 | "\xae\xa4\x62\x4c\x60\xc5\xc7\x02", |
| 1108 | }, { |
| 1109 | .plaintext = "1234567890123456789012345678901234567890" |
| 1110 | "1234567890123456789012345678901234567890", |
| 1111 | .psize = 80, |
| 1112 | .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb" |
| 1113 | "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3", |
| 1114 | }, { |
| 1115 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 1116 | "hijkijkljklmklmnlmnomnopnopq", |
| 1117 | .psize = 56, |
| 1118 | .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d" |
| 1119 | "\xdc\x22\xe8\x8b\x49\x13\x3a\x06", |
| 1120 | .np = 2, |
| 1121 | .tap = { 28, 28 }, |
| 1122 | }, { |
| 1123 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi" |
| 1124 | "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr" |
| 1125 | "lmnopqrsmnopqrstnopqrstu", |
| 1126 | .psize = 112, |
| 1127 | .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b" |
| 1128 | "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46", |
| 1129 | }, { |
| 1130 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 1131 | .psize = 32, |
| 1132 | .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d" |
| 1133 | "\xe1\x93\xff\x46\xdb\xac\xcf\xd4", |
| 1134 | } |
| 1135 | }; |
| 1136 | |
| 1137 | /* |
| 1138 | * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E) |
| 1139 | */ |
| 1140 | #define RMD160_TEST_VECTORS 10 |
| 1141 | |
| 1142 | static struct hash_testvec rmd160_tv_template[] = { |
| 1143 | { |
| 1144 | .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28" |
| 1145 | "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31", |
| 1146 | }, { |
| 1147 | .plaintext = "a", |
| 1148 | .psize = 1, |
| 1149 | .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae" |
| 1150 | "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe", |
| 1151 | }, { |
| 1152 | .plaintext = "abc", |
| 1153 | .psize = 3, |
| 1154 | .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04" |
| 1155 | "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc", |
| 1156 | }, { |
| 1157 | .plaintext = "message digest", |
| 1158 | .psize = 14, |
| 1159 | .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8" |
| 1160 | "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36", |
| 1161 | }, { |
| 1162 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1163 | .psize = 26, |
| 1164 | .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb" |
| 1165 | "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc", |
| 1166 | }, { |
| 1167 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 1168 | "fghijklmnopqrstuvwxyz0123456789", |
| 1169 | .psize = 62, |
| 1170 | .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed" |
| 1171 | "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89", |
| 1172 | }, { |
| 1173 | .plaintext = "1234567890123456789012345678901234567890" |
| 1174 | "1234567890123456789012345678901234567890", |
| 1175 | .psize = 80, |
| 1176 | .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb" |
| 1177 | "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb", |
| 1178 | }, { |
| 1179 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 1180 | "hijkijkljklmklmnlmnomnopnopq", |
| 1181 | .psize = 56, |
| 1182 | .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05" |
| 1183 | "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b", |
| 1184 | .np = 2, |
| 1185 | .tap = { 28, 28 }, |
| 1186 | }, { |
| 1187 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi" |
| 1188 | "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr" |
| 1189 | "lmnopqrsmnopqrstnopqrstu", |
| 1190 | .psize = 112, |
| 1191 | .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91" |
| 1192 | "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45", |
| 1193 | }, { |
| 1194 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 1195 | .psize = 32, |
| 1196 | .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d" |
| 1197 | "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f", |
| 1198 | } |
| 1199 | }; |
| 1200 | |
| 1201 | /* |
| 1202 | * RIPEMD-256 test vectors |
| 1203 | */ |
| 1204 | #define RMD256_TEST_VECTORS 8 |
| 1205 | |
| 1206 | static struct hash_testvec rmd256_tv_template[] = { |
| 1207 | { |
| 1208 | .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18" |
| 1209 | "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a" |
| 1210 | "\x2d\x97\x74\xfb\x1e\x5d\x02\x63" |
| 1211 | "\x80\xae\x01\x68\xe3\xc5\x52\x2d", |
| 1212 | }, { |
| 1213 | .plaintext = "a", |
| 1214 | .psize = 1, |
| 1215 | .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9" |
| 1216 | "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c" |
| 1217 | "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf" |
| 1218 | "\xcd\x88\x3a\x91\x34\x69\x29\x25", |
| 1219 | }, { |
| 1220 | .plaintext = "abc", |
| 1221 | .psize = 3, |
| 1222 | .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb" |
| 1223 | "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1" |
| 1224 | "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e" |
| 1225 | "\x1e\x42\xd2\xe9\x75\x45\x9b\x65", |
| 1226 | }, { |
| 1227 | .plaintext = "message digest", |
| 1228 | .psize = 14, |
| 1229 | .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a" |
| 1230 | "\x51\x4d\x5c\x91\x4c\x39\x2c\x90" |
| 1231 | "\x18\xc7\xc4\x6b\xc1\x44\x65\x55" |
| 1232 | "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e", |
| 1233 | }, { |
| 1234 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1235 | .psize = 26, |
| 1236 | .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16" |
| 1237 | "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc" |
| 1238 | "\x78\x96\x11\x8a\x51\x97\x96\x87" |
| 1239 | "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33", |
| 1240 | }, { |
| 1241 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 1242 | "fghijklmnopqrstuvwxyz0123456789", |
| 1243 | .psize = 62, |
| 1244 | .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20" |
| 1245 | "\xb8\x44\x24\xae\x93\x1c\xbb\x1f" |
| 1246 | "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1" |
| 1247 | "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8", |
| 1248 | }, { |
| 1249 | .plaintext = "1234567890123456789012345678901234567890" |
| 1250 | "1234567890123456789012345678901234567890", |
| 1251 | .psize = 80, |
| 1252 | .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa" |
| 1253 | "\xf9\x13\x68\xc0\x6a\x62\x75\xb5" |
| 1254 | "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed" |
| 1255 | "\xfd\x67\x78\xdf\x89\xa8\x90\xdd", |
| 1256 | }, { |
| 1257 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 1258 | "hijkijkljklmklmnlmnomnopnopq", |
| 1259 | .psize = 56, |
| 1260 | .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8" |
| 1261 | "\xc8\xd9\x12\x85\x73\xe7\xa9\x80" |
| 1262 | "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e" |
| 1263 | "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f", |
| 1264 | .np = 2, |
| 1265 | .tap = { 28, 28 }, |
| 1266 | } |
| 1267 | }; |
| 1268 | |
| 1269 | /* |
| 1270 | * RIPEMD-320 test vectors |
| 1271 | */ |
| 1272 | #define RMD320_TEST_VECTORS 8 |
| 1273 | |
| 1274 | static struct hash_testvec rmd320_tv_template[] = { |
| 1275 | { |
| 1276 | .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1" |
| 1277 | "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25" |
| 1278 | "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e" |
| 1279 | "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8", |
| 1280 | }, { |
| 1281 | .plaintext = "a", |
| 1282 | .psize = 1, |
| 1283 | .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5" |
| 1284 | "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57" |
| 1285 | "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54" |
| 1286 | "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d", |
| 1287 | }, { |
| 1288 | .plaintext = "abc", |
| 1289 | .psize = 3, |
| 1290 | .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d" |
| 1291 | "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08" |
| 1292 | "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74" |
| 1293 | "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d", |
| 1294 | }, { |
| 1295 | .plaintext = "message digest", |
| 1296 | .psize = 14, |
| 1297 | .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68" |
| 1298 | "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa" |
| 1299 | "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d" |
| 1300 | "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97", |
| 1301 | }, { |
| 1302 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1303 | .psize = 26, |
| 1304 | .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93" |
| 1305 | "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4" |
| 1306 | "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed" |
| 1307 | "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09", |
| 1308 | }, { |
| 1309 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 1310 | "fghijklmnopqrstuvwxyz0123456789", |
| 1311 | .psize = 62, |
| 1312 | .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2" |
| 1313 | "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c" |
| 1314 | "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9" |
| 1315 | "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4", |
| 1316 | }, { |
| 1317 | .plaintext = "1234567890123456789012345678901234567890" |
| 1318 | "1234567890123456789012345678901234567890", |
| 1319 | .psize = 80, |
| 1320 | .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6" |
| 1321 | "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41" |
| 1322 | "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f" |
| 1323 | "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42", |
| 1324 | }, { |
| 1325 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 1326 | "hijkijkljklmklmnlmnomnopnopq", |
| 1327 | .psize = 56, |
| 1328 | .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4" |
| 1329 | "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59" |
| 1330 | "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b" |
| 1331 | "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac", |
| 1332 | .np = 2, |
| 1333 | .tap = { 28, 28 }, |
| 1334 | } |
| 1335 | }; |
| 1336 | |
Herbert Xu | 68411521 | 2013-09-07 12:56:26 +1000 | [diff] [blame] | 1337 | #define CRCT10DIF_TEST_VECTORS 3 |
| 1338 | static struct hash_testvec crct10dif_tv_template[] = { |
| 1339 | { |
| 1340 | .plaintext = "abc", |
| 1341 | .psize = 3, |
| 1342 | #ifdef __LITTLE_ENDIAN |
| 1343 | .digest = "\x3b\x44", |
| 1344 | #else |
| 1345 | .digest = "\x44\x3b", |
| 1346 | #endif |
| 1347 | }, { |
| 1348 | .plaintext = "1234567890123456789012345678901234567890" |
| 1349 | "123456789012345678901234567890123456789", |
| 1350 | .psize = 79, |
| 1351 | #ifdef __LITTLE_ENDIAN |
| 1352 | .digest = "\x70\x4b", |
| 1353 | #else |
| 1354 | .digest = "\x4b\x70", |
| 1355 | #endif |
| 1356 | }, { |
| 1357 | .plaintext = |
| 1358 | "abcddddddddddddddddddddddddddddddddddddddddddddddddddddd", |
| 1359 | .psize = 56, |
| 1360 | #ifdef __LITTLE_ENDIAN |
| 1361 | .digest = "\xe3\x9c", |
| 1362 | #else |
| 1363 | .digest = "\x9c\xe3", |
| 1364 | #endif |
| 1365 | .np = 2, |
| 1366 | .tap = { 28, 28 } |
| 1367 | } |
| 1368 | }; |
| 1369 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1370 | /* |
| 1371 | * SHA1 test vectors from from FIPS PUB 180-1 |
Herbert Xu | bd1f299 | 2011-02-17 14:24:45 +1100 | [diff] [blame] | 1372 | * Long vector from CAVS 5.0 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1373 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1374 | #define SHA1_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1375 | |
| 1376 | static struct hash_testvec sha1_tv_template[] = { |
| 1377 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1378 | .plaintext = "", |
| 1379 | .psize = 0, |
| 1380 | .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55" |
| 1381 | "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09", |
| 1382 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1383 | .plaintext = "abc", |
| 1384 | .psize = 3, |
| 1385 | .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e" |
| 1386 | "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d", |
| 1387 | }, { |
| 1388 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1389 | .psize = 56, |
| 1390 | .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae" |
| 1391 | "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1", |
| 1392 | .np = 2, |
| 1393 | .tap = { 28, 28 } |
Herbert Xu | bd1f299 | 2011-02-17 14:24:45 +1100 | [diff] [blame] | 1394 | }, { |
| 1395 | .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06" |
| 1396 | "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44" |
| 1397 | "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f" |
| 1398 | "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5" |
| 1399 | "\x73\x6a\x10\x6e\x92\xe1\x71\x39" |
| 1400 | "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3" |
| 1401 | "\xfb\x95\x46\xab\x42\x96\xfa\x9f" |
| 1402 | "\x72\x28\x26\xc0\x66\x86\x9e\xda" |
| 1403 | "\xcd\x73\xb2\x54\x80\x35\x18\x58" |
| 1404 | "\x13\xe2\x26\x34\xa9\xda\x44\x00" |
| 1405 | "\x0d\x95\xa2\x81\xff\x9f\x26\x4e" |
| 1406 | "\xcc\xe0\xa9\x31\x22\x21\x62\xd0" |
| 1407 | "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa" |
| 1408 | "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13" |
| 1409 | "\xae\x29\x81\x0f\xd7\x94\xca\xd5" |
| 1410 | "\xdf\xaf\x29\xec\x43\xcb\x38\xd1" |
| 1411 | "\x98\xfe\x4a\xe1\xda\x23\x59\x78" |
| 1412 | "\x02\x21\x40\x5b\xd6\x71\x2a\x53" |
| 1413 | "\x05\xda\x4b\x1b\x73\x7f\xce\x7c" |
| 1414 | "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23" |
| 1415 | "\x5a\x90\x11", |
| 1416 | .psize = 163, |
| 1417 | .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20" |
| 1418 | "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17", |
| 1419 | .np = 4, |
| 1420 | .tap = { 63, 64, 31, 5 } |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 1421 | }, { |
| 1422 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1423 | .psize = 64, |
| 1424 | .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82" |
| 1425 | "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91", |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1426 | }, { |
| 1427 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 1428 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 1429 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 1430 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 1431 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 1432 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 1433 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 1434 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 1435 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 1436 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 1437 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 1438 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 1439 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 1440 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 1441 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 1442 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 1443 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 1444 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 1445 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 1446 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 1447 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 1448 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 1449 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 1450 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 1451 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 1452 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 1453 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 1454 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 1455 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 1456 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 1457 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 1458 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 1459 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 1460 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 1461 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 1462 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 1463 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 1464 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 1465 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 1466 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 1467 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 1468 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 1469 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 1470 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 1471 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 1472 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 1473 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 1474 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 1475 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 1476 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 1477 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 1478 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 1479 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 1480 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 1481 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 1482 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 1483 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 1484 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 1485 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 1486 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 1487 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 1488 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 1489 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 1490 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 1491 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 1492 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 1493 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 1494 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 1495 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 1496 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 1497 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 1498 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 1499 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 1500 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 1501 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 1502 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 1503 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 1504 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 1505 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 1506 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 1507 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 1508 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 1509 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 1510 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 1511 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 1512 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 1513 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 1514 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 1515 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 1516 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 1517 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 1518 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 1519 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 1520 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 1521 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 1522 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 1523 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 1524 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 1525 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 1526 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 1527 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 1528 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 1529 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 1530 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 1531 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 1532 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 1533 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 1534 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 1535 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 1536 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1537 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1538 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1539 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1540 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1541 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1542 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1543 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1544 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1545 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1546 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1547 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1548 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1549 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1550 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1551 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1552 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1553 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1554 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1555 | .psize = 1023, |
| 1556 | .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4" |
| 1557 | "\x55\x73\x4a\x81\x99\xe4\x47\x2a" |
| 1558 | "\x30\xd6\xc9\x85", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1559 | } |
| 1560 | }; |
| 1561 | |
| 1562 | |
| 1563 | /* |
| 1564 | * SHA224 test vectors from from FIPS PUB 180-2 |
| 1565 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1566 | #define SHA224_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1567 | |
| 1568 | static struct hash_testvec sha224_tv_template[] = { |
| 1569 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1570 | .plaintext = "", |
| 1571 | .psize = 0, |
| 1572 | .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9" |
| 1573 | "\x47\x61\x02\xbb\x28\x82\x34\xc4" |
| 1574 | "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a" |
| 1575 | "\xc5\xb3\xe4\x2f", |
| 1576 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1577 | .plaintext = "abc", |
| 1578 | .psize = 3, |
| 1579 | .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22" |
| 1580 | "\x86\x42\xA4\x77\xBD\xA2\x55\xB3" |
| 1581 | "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7" |
| 1582 | "\xE3\x6C\x9D\xA7", |
| 1583 | }, { |
| 1584 | .plaintext = |
| 1585 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1586 | .psize = 56, |
| 1587 | .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC" |
| 1588 | "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50" |
| 1589 | "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19" |
| 1590 | "\x52\x52\x25\x25", |
| 1591 | .np = 2, |
| 1592 | .tap = { 28, 28 } |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 1593 | }, { |
| 1594 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1595 | .psize = 64, |
| 1596 | .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01" |
| 1597 | "\x42\xfd\x10\x92\xaa\x4e\x04\x08" |
| 1598 | "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c" |
| 1599 | "\xef\x3b\xcb\x0e", |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1600 | }, { |
| 1601 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 1602 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 1603 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 1604 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 1605 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 1606 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 1607 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 1608 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 1609 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 1610 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 1611 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 1612 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 1613 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 1614 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 1615 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 1616 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 1617 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 1618 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 1619 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 1620 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 1621 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 1622 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 1623 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 1624 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 1625 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 1626 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 1627 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 1628 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 1629 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 1630 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 1631 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 1632 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 1633 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 1634 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 1635 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 1636 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 1637 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 1638 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 1639 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 1640 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 1641 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 1642 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 1643 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 1644 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 1645 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 1646 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 1647 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 1648 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 1649 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 1650 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 1651 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 1652 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 1653 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 1654 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 1655 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 1656 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 1657 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 1658 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 1659 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 1660 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 1661 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 1662 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 1663 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 1664 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 1665 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 1666 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 1667 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 1668 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 1669 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 1670 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 1671 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 1672 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 1673 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 1674 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 1675 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 1676 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 1677 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 1678 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 1679 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 1680 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 1681 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 1682 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 1683 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 1684 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 1685 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 1686 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 1687 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 1688 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 1689 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 1690 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 1691 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 1692 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 1693 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 1694 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 1695 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 1696 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 1697 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 1698 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 1699 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 1700 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 1701 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 1702 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 1703 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 1704 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 1705 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 1706 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 1707 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 1708 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 1709 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 1710 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1711 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1712 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1713 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1714 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1715 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1716 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1717 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1718 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1719 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1720 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1721 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1722 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1723 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1724 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1725 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1726 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1727 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1728 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1729 | .psize = 1023, |
| 1730 | .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c" |
| 1731 | "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91" |
| 1732 | "\x20\x48\xa4\x28\xff\x55\xb1\xd3" |
| 1733 | "\xe6\xf9\x4f\xcc", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1734 | } |
| 1735 | }; |
| 1736 | |
| 1737 | /* |
| 1738 | * SHA256 test vectors from from NIST |
| 1739 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1740 | #define SHA256_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1741 | |
| 1742 | static struct hash_testvec sha256_tv_template[] = { |
| 1743 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1744 | .plaintext = "", |
| 1745 | .psize = 0, |
| 1746 | .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14" |
| 1747 | "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24" |
| 1748 | "\x27\xae\x41\xe4\x64\x9b\x93\x4c" |
| 1749 | "\xa4\x95\x99\x1b\x78\x52\xb8\x55", |
| 1750 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1751 | .plaintext = "abc", |
| 1752 | .psize = 3, |
| 1753 | .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea" |
| 1754 | "\x41\x41\x40\xde\x5d\xae\x22\x23" |
| 1755 | "\xb0\x03\x61\xa3\x96\x17\x7a\x9c" |
| 1756 | "\xb4\x10\xff\x61\xf2\x00\x15\xad", |
| 1757 | }, { |
| 1758 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1759 | .psize = 56, |
| 1760 | .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8" |
| 1761 | "\xe5\xc0\x26\x93\x0c\x3e\x60\x39" |
| 1762 | "\xa3\x3c\xe4\x59\x64\xff\x21\x67" |
| 1763 | "\xf6\xec\xed\xd4\x19\xdb\x06\xc1", |
| 1764 | .np = 2, |
| 1765 | .tap = { 28, 28 } |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 1766 | }, { |
| 1767 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1768 | .psize = 64, |
| 1769 | .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4" |
| 1770 | "\x2c\x32\x29\x32\x19\xbb\xfb\xfa" |
| 1771 | "\xd6\xff\x94\xa3\x72\x91\x85\x66" |
| 1772 | "\x3b\xa7\x87\x77\x58\xa3\x40\x3a", |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1773 | }, { |
| 1774 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 1775 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 1776 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 1777 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 1778 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 1779 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 1780 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 1781 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 1782 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 1783 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 1784 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 1785 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 1786 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 1787 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 1788 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 1789 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 1790 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 1791 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 1792 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 1793 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 1794 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 1795 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 1796 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 1797 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 1798 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 1799 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 1800 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 1801 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 1802 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 1803 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 1804 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 1805 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 1806 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 1807 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 1808 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 1809 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 1810 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 1811 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 1812 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 1813 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 1814 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 1815 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 1816 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 1817 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 1818 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 1819 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 1820 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 1821 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 1822 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 1823 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 1824 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 1825 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 1826 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 1827 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 1828 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 1829 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 1830 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 1831 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 1832 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 1833 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 1834 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 1835 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 1836 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 1837 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 1838 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 1839 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 1840 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 1841 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 1842 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 1843 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 1844 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 1845 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 1846 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 1847 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 1848 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 1849 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 1850 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 1851 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 1852 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 1853 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 1854 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 1855 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 1856 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 1857 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 1858 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 1859 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 1860 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 1861 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 1862 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 1863 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 1864 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 1865 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 1866 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 1867 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 1868 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 1869 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 1870 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 1871 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 1872 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 1873 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 1874 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 1875 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 1876 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 1877 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 1878 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 1879 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 1880 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 1881 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 1882 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 1883 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1884 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1885 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1886 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1887 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1888 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1889 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1890 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1891 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1892 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1893 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1894 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1895 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1896 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1897 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1898 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1899 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1900 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1901 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1902 | .psize = 1023, |
| 1903 | .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a" |
| 1904 | "\x32\x32\x17\xcc\xd4\x6a\x71\xa9" |
| 1905 | "\xf3\xed\x50\x10\x64\x8e\x06\xbe" |
| 1906 | "\x9b\x4a\xa6\xbb\x05\x89\x59\x51", |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 1907 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1908 | }; |
| 1909 | |
| 1910 | /* |
| 1911 | * SHA384 test vectors from from NIST and kerneli |
| 1912 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1913 | #define SHA384_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1914 | |
| 1915 | static struct hash_testvec sha384_tv_template[] = { |
| 1916 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1917 | .plaintext = "", |
| 1918 | .psize = 0, |
| 1919 | .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38" |
| 1920 | "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a" |
| 1921 | "\x21\xfd\xb7\x11\x14\xbe\x07\x43" |
| 1922 | "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda" |
| 1923 | "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb" |
| 1924 | "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b", |
| 1925 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1926 | .plaintext= "abc", |
| 1927 | .psize = 3, |
| 1928 | .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b" |
| 1929 | "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07" |
| 1930 | "\x27\x2c\x32\xab\x0e\xde\xd1\x63" |
| 1931 | "\x1a\x8b\x60\x5a\x43\xff\x5b\xed" |
| 1932 | "\x80\x86\x07\x2b\xa1\xe7\xcc\x23" |
| 1933 | "\x58\xba\xec\xa1\x34\xc8\x25\xa7", |
| 1934 | }, { |
| 1935 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1936 | .psize = 56, |
| 1937 | .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39" |
| 1938 | "\x37\x07\xa6\x5b\x1b\x47\x09\x39" |
| 1939 | "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab" |
| 1940 | "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6" |
| 1941 | "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f" |
| 1942 | "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b", |
| 1943 | }, { |
| 1944 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" |
| 1945 | "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", |
| 1946 | .psize = 112, |
| 1947 | .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8" |
| 1948 | "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47" |
| 1949 | "\x53\x11\x1b\x17\x3b\x3b\x05\xd2" |
| 1950 | "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12" |
| 1951 | "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9" |
| 1952 | "\x66\xc3\xe9\xfa\x91\x74\x60\x39", |
| 1953 | }, { |
| 1954 | .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd" |
| 1955 | "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", |
| 1956 | .psize = 104, |
| 1957 | .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb" |
| 1958 | "\xbd\x7e\x2c\x28\x62\xba\x29\x0a" |
| 1959 | "\xd3\x01\x0e\x49\x78\xc1\x98\xdc" |
| 1960 | "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a" |
| 1961 | "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a" |
| 1962 | "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4", |
| 1963 | .np = 4, |
| 1964 | .tap = { 26, 26, 26, 26 } |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1965 | }, { |
| 1966 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 1967 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 1968 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 1969 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 1970 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 1971 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 1972 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 1973 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 1974 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 1975 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 1976 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 1977 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 1978 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 1979 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 1980 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 1981 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 1982 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 1983 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 1984 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 1985 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 1986 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 1987 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 1988 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 1989 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 1990 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 1991 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 1992 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 1993 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 1994 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 1995 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 1996 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 1997 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 1998 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 1999 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 2000 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 2001 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 2002 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 2003 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 2004 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 2005 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 2006 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 2007 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 2008 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 2009 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 2010 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 2011 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 2012 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 2013 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 2014 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 2015 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 2016 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 2017 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 2018 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 2019 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 2020 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 2021 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 2022 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 2023 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 2024 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 2025 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 2026 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 2027 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 2028 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 2029 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 2030 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 2031 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 2032 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 2033 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 2034 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 2035 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 2036 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 2037 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 2038 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 2039 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 2040 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 2041 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 2042 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 2043 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 2044 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 2045 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 2046 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 2047 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 2048 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 2049 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 2050 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 2051 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 2052 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 2053 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 2054 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 2055 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 2056 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 2057 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 2058 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 2059 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 2060 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 2061 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 2062 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 2063 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 2064 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 2065 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 2066 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 2067 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 2068 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 2069 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 2070 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 2071 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 2072 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 2073 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 2074 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 2075 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 2076 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 2077 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 2078 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 2079 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 2080 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 2081 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 2082 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 2083 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 2084 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 2085 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 2086 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 2087 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 2088 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 2089 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 2090 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 2091 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 2092 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 2093 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 2094 | .psize = 1023, |
| 2095 | .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15" |
| 2096 | "\xb8\xff\x97\x9c\xf5\x13\x4f\x31" |
| 2097 | "\xde\x67\xf7\x24\x73\xcd\x70\x1c" |
| 2098 | "\x03\x4a\xba\x8a\x87\x49\xfe\xdc" |
| 2099 | "\x75\x29\x62\x83\xae\x3f\x17\xab" |
| 2100 | "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca", |
| 2101 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2102 | }; |
| 2103 | |
| 2104 | /* |
| 2105 | * SHA512 test vectors from from NIST and kerneli |
| 2106 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 2107 | #define SHA512_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2108 | |
| 2109 | static struct hash_testvec sha512_tv_template[] = { |
| 2110 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 2111 | .plaintext = "", |
| 2112 | .psize = 0, |
| 2113 | .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd" |
| 2114 | "\xf1\x54\x28\x50\xd6\x6d\x80\x07" |
| 2115 | "\xd6\x20\xe4\x05\x0b\x57\x15\xdc" |
| 2116 | "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce" |
| 2117 | "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0" |
| 2118 | "\xff\x83\x18\xd2\x87\x7e\xec\x2f" |
| 2119 | "\x63\xb9\x31\xbd\x47\x41\x7a\x81" |
| 2120 | "\xa5\x38\x32\x7a\xf9\x27\xda\x3e", |
| 2121 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2122 | .plaintext = "abc", |
| 2123 | .psize = 3, |
| 2124 | .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba" |
| 2125 | "\xcc\x41\x73\x49\xae\x20\x41\x31" |
| 2126 | "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2" |
| 2127 | "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a" |
| 2128 | "\x21\x92\x99\x2a\x27\x4f\xc1\xa8" |
| 2129 | "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd" |
| 2130 | "\x45\x4d\x44\x23\x64\x3c\xe8\x0e" |
| 2131 | "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f", |
| 2132 | }, { |
| 2133 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 2134 | .psize = 56, |
| 2135 | .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a" |
| 2136 | "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16" |
| 2137 | "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8" |
| 2138 | "\x27\x9b\xe3\x31\xa7\x03\xc3\x35" |
| 2139 | "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9" |
| 2140 | "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0" |
| 2141 | "\x31\xad\x85\xc7\xa7\x1d\xd7\x03" |
| 2142 | "\x54\xec\x63\x12\x38\xca\x34\x45", |
| 2143 | }, { |
| 2144 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" |
| 2145 | "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", |
| 2146 | .psize = 112, |
| 2147 | .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda" |
| 2148 | "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f" |
| 2149 | "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1" |
| 2150 | "\x72\x99\xae\xad\xb6\x88\x90\x18" |
| 2151 | "\x50\x1d\x28\x9e\x49\x00\xf7\xe4" |
| 2152 | "\x33\x1b\x99\xde\xc4\xb5\x43\x3a" |
| 2153 | "\xc7\xd3\x29\xee\xb6\xdd\x26\x54" |
| 2154 | "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09", |
| 2155 | }, { |
| 2156 | .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd" |
| 2157 | "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", |
| 2158 | .psize = 104, |
| 2159 | .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11" |
| 2160 | "\x33\xb6\x89\x81\x21\xf1\xcf\x3d" |
| 2161 | "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c" |
| 2162 | "\x52\x57\xcf\x06\x99\x11\xf7\x5d" |
| 2163 | "\x8f\x58\x31\xb5\x6e\xbf\xda\x67" |
| 2164 | "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe" |
| 2165 | "\x2b\x28\x70\xf7\x42\xa5\x80\xd8" |
| 2166 | "\xed\xb4\x19\x87\x23\x28\x50\xc9", |
| 2167 | .np = 4, |
| 2168 | .tap = { 26, 26, 26, 26 } |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 2169 | }, { |
| 2170 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 2171 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 2172 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 2173 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 2174 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 2175 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 2176 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 2177 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 2178 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 2179 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 2180 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 2181 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 2182 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 2183 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 2184 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 2185 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 2186 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 2187 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 2188 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 2189 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 2190 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 2191 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 2192 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 2193 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 2194 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 2195 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 2196 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 2197 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 2198 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 2199 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 2200 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 2201 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 2202 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 2203 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 2204 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 2205 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 2206 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 2207 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 2208 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 2209 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 2210 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 2211 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 2212 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 2213 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 2214 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 2215 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 2216 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 2217 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 2218 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 2219 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 2220 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 2221 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 2222 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 2223 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 2224 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 2225 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 2226 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 2227 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 2228 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 2229 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 2230 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 2231 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 2232 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 2233 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 2234 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 2235 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 2236 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 2237 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 2238 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 2239 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 2240 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 2241 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 2242 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 2243 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 2244 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 2245 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 2246 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 2247 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 2248 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 2249 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 2250 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 2251 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 2252 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 2253 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 2254 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 2255 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 2256 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 2257 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 2258 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 2259 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 2260 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 2261 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 2262 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 2263 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 2264 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 2265 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 2266 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 2267 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 2268 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 2269 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 2270 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 2271 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 2272 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 2273 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 2274 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 2275 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 2276 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 2277 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 2278 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 2279 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 2280 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 2281 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 2282 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 2283 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 2284 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 2285 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 2286 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 2287 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 2288 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 2289 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 2290 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 2291 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 2292 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 2293 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 2294 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 2295 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 2296 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 2297 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 2298 | .psize = 1023, |
| 2299 | .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa" |
| 2300 | "\x13\x39\xf3\x01\x7a\xfa\xe5\x41" |
| 2301 | "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0" |
| 2302 | "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb" |
| 2303 | "\x1c\x19\xde\xe2\x75\xdc\x34\x64" |
| 2304 | "\x5f\x35\x9c\x61\x2f\x10\xf9\xec" |
| 2305 | "\x59\xca\x9d\xcc\x25\x0c\x43\xba" |
| 2306 | "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee", |
| 2307 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2308 | }; |
| 2309 | |
| 2310 | |
| 2311 | /* |
| 2312 | * WHIRLPOOL test vectors from Whirlpool package |
| 2313 | * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE |
| 2314 | * submission |
| 2315 | */ |
| 2316 | #define WP512_TEST_VECTORS 8 |
| 2317 | |
| 2318 | static struct hash_testvec wp512_tv_template[] = { |
| 2319 | { |
| 2320 | .plaintext = "", |
| 2321 | .psize = 0, |
| 2322 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 2323 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 2324 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 2325 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7" |
| 2326 | "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB" |
| 2327 | "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57" |
| 2328 | "\xEA\x89\x64\xE5\x9B\x63\xD9\x37" |
| 2329 | "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3", |
| 2330 | |
| 2331 | |
| 2332 | }, { |
| 2333 | .plaintext = "a", |
| 2334 | .psize = 1, |
| 2335 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 2336 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 2337 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 2338 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42" |
| 2339 | "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6" |
| 2340 | "\x3A\x42\x39\x1A\x39\x14\x5A\x59" |
| 2341 | "\x1A\x92\x20\x0D\x56\x01\x95\xE5" |
| 2342 | "\x3B\x47\x85\x84\xFD\xAE\x23\x1A", |
| 2343 | }, { |
| 2344 | .plaintext = "abc", |
| 2345 | .psize = 3, |
| 2346 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 2347 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 2348 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 2349 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C" |
| 2350 | "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27" |
| 2351 | "\x7D\x0E\x34\x95\x71\x14\xCB\xD6" |
| 2352 | "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82" |
| 2353 | "\xD2\x25\x29\x20\x76\xD4\xEE\xF5", |
| 2354 | }, { |
| 2355 | .plaintext = "message digest", |
| 2356 | .psize = 14, |
| 2357 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 2358 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 2359 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 2360 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B" |
| 2361 | "\x84\x21\x55\x76\x59\xEF\x55\xC1" |
| 2362 | "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6" |
| 2363 | "\x92\xED\x92\x00\x52\x83\x8F\x33" |
| 2364 | "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E", |
| 2365 | }, { |
| 2366 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 2367 | .psize = 26, |
| 2368 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 2369 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 2370 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 2371 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B" |
| 2372 | "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A" |
| 2373 | "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6" |
| 2374 | "\xF6\x8F\x67\x3E\x72\x07\x86\x5D" |
| 2375 | "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B", |
| 2376 | }, { |
| 2377 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 2378 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 2379 | .psize = 62, |
| 2380 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 2381 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 2382 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 2383 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E" |
| 2384 | "\x08\xEB\xA2\x66\x29\x12\x9D\x8F" |
| 2385 | "\xB7\xCB\x57\x21\x1B\x92\x81\xA6" |
| 2386 | "\x55\x17\xCC\x87\x9D\x7B\x96\x21" |
| 2387 | "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67", |
| 2388 | }, { |
| 2389 | .plaintext = "1234567890123456789012345678901234567890" |
| 2390 | "1234567890123456789012345678901234567890", |
| 2391 | .psize = 80, |
| 2392 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 2393 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 2394 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 2395 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29" |
| 2396 | "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5" |
| 2397 | "\x38\xCD\x04\x7B\x26\x81\xA5\x1A" |
| 2398 | "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B" |
| 2399 | "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B", |
| 2400 | }, { |
| 2401 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 2402 | .psize = 32, |
| 2403 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 2404 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 2405 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 2406 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69" |
| 2407 | "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B" |
| 2408 | "\x7B\x94\x76\x39\xFE\x05\x0B\x56" |
| 2409 | "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6" |
| 2410 | "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD", |
| 2411 | }, |
| 2412 | }; |
| 2413 | |
| 2414 | #define WP384_TEST_VECTORS 8 |
| 2415 | |
| 2416 | static struct hash_testvec wp384_tv_template[] = { |
| 2417 | { |
| 2418 | .plaintext = "", |
| 2419 | .psize = 0, |
| 2420 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 2421 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 2422 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 2423 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7" |
| 2424 | "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB" |
| 2425 | "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57", |
| 2426 | |
| 2427 | |
| 2428 | }, { |
| 2429 | .plaintext = "a", |
| 2430 | .psize = 1, |
| 2431 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 2432 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 2433 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 2434 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42" |
| 2435 | "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6" |
| 2436 | "\x3A\x42\x39\x1A\x39\x14\x5A\x59", |
| 2437 | }, { |
| 2438 | .plaintext = "abc", |
| 2439 | .psize = 3, |
| 2440 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 2441 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 2442 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 2443 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C" |
| 2444 | "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27" |
| 2445 | "\x7D\x0E\x34\x95\x71\x14\xCB\xD6", |
| 2446 | }, { |
| 2447 | .plaintext = "message digest", |
| 2448 | .psize = 14, |
| 2449 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 2450 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 2451 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 2452 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B" |
| 2453 | "\x84\x21\x55\x76\x59\xEF\x55\xC1" |
| 2454 | "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6", |
| 2455 | }, { |
| 2456 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 2457 | .psize = 26, |
| 2458 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 2459 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 2460 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 2461 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B" |
| 2462 | "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A" |
| 2463 | "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6", |
| 2464 | }, { |
| 2465 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 2466 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 2467 | .psize = 62, |
| 2468 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 2469 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 2470 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 2471 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E" |
| 2472 | "\x08\xEB\xA2\x66\x29\x12\x9D\x8F" |
| 2473 | "\xB7\xCB\x57\x21\x1B\x92\x81\xA6", |
| 2474 | }, { |
| 2475 | .plaintext = "1234567890123456789012345678901234567890" |
| 2476 | "1234567890123456789012345678901234567890", |
| 2477 | .psize = 80, |
| 2478 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 2479 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 2480 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 2481 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29" |
| 2482 | "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5" |
| 2483 | "\x38\xCD\x04\x7B\x26\x81\xA5\x1A", |
| 2484 | }, { |
| 2485 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 2486 | .psize = 32, |
| 2487 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 2488 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 2489 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 2490 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69" |
| 2491 | "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B" |
| 2492 | "\x7B\x94\x76\x39\xFE\x05\x0B\x56", |
| 2493 | }, |
| 2494 | }; |
| 2495 | |
| 2496 | #define WP256_TEST_VECTORS 8 |
| 2497 | |
| 2498 | static struct hash_testvec wp256_tv_template[] = { |
| 2499 | { |
| 2500 | .plaintext = "", |
| 2501 | .psize = 0, |
| 2502 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 2503 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 2504 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 2505 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7", |
| 2506 | |
| 2507 | |
| 2508 | }, { |
| 2509 | .plaintext = "a", |
| 2510 | .psize = 1, |
| 2511 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 2512 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 2513 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 2514 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42", |
| 2515 | }, { |
| 2516 | .plaintext = "abc", |
| 2517 | .psize = 3, |
| 2518 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 2519 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 2520 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 2521 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C", |
| 2522 | }, { |
| 2523 | .plaintext = "message digest", |
| 2524 | .psize = 14, |
| 2525 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 2526 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 2527 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 2528 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B", |
| 2529 | }, { |
| 2530 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 2531 | .psize = 26, |
| 2532 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 2533 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 2534 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 2535 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B", |
| 2536 | }, { |
| 2537 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 2538 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 2539 | .psize = 62, |
| 2540 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 2541 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 2542 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 2543 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E", |
| 2544 | }, { |
| 2545 | .plaintext = "1234567890123456789012345678901234567890" |
| 2546 | "1234567890123456789012345678901234567890", |
| 2547 | .psize = 80, |
| 2548 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 2549 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 2550 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 2551 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29", |
| 2552 | }, { |
| 2553 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 2554 | .psize = 32, |
| 2555 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 2556 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 2557 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 2558 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69", |
| 2559 | }, |
| 2560 | }; |
| 2561 | |
| 2562 | /* |
| 2563 | * TIGER test vectors from Tiger website |
| 2564 | */ |
| 2565 | #define TGR192_TEST_VECTORS 6 |
| 2566 | |
| 2567 | static struct hash_testvec tgr192_tv_template[] = { |
| 2568 | { |
| 2569 | .plaintext = "", |
| 2570 | .psize = 0, |
| 2571 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 2572 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f" |
| 2573 | "\xf3\x73\xde\x2d\x49\x58\x4e\x7a", |
| 2574 | }, { |
| 2575 | .plaintext = "abc", |
| 2576 | .psize = 3, |
| 2577 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 2578 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf" |
| 2579 | "\x93\x5f\x7b\x95\x1c\x13\x29\x51", |
| 2580 | }, { |
| 2581 | .plaintext = "Tiger", |
| 2582 | .psize = 5, |
| 2583 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 2584 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec" |
| 2585 | "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf", |
| 2586 | }, { |
| 2587 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 2588 | .psize = 64, |
| 2589 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 2590 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e" |
| 2591 | "\xb5\x86\x44\x50\x34\xa5\xa3\x86", |
| 2592 | }, { |
| 2593 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 2594 | .psize = 64, |
| 2595 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 2596 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9" |
| 2597 | "\x57\x89\x65\x65\x97\x5f\x91\x97", |
| 2598 | }, { |
| 2599 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 2600 | "by Ross Anderson and Eli Biham, " |
| 2601 | "proceedings of Fast Software Encryption 3, " |
| 2602 | "Cambridge, 1996.", |
| 2603 | .psize = 125, |
| 2604 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 2605 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24" |
| 2606 | "\xdd\x68\x15\x1d\x50\x39\x74\xfc", |
| 2607 | }, |
| 2608 | }; |
| 2609 | |
| 2610 | #define TGR160_TEST_VECTORS 6 |
| 2611 | |
| 2612 | static struct hash_testvec tgr160_tv_template[] = { |
| 2613 | { |
| 2614 | .plaintext = "", |
| 2615 | .psize = 0, |
| 2616 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 2617 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f" |
| 2618 | "\xf3\x73\xde\x2d", |
| 2619 | }, { |
| 2620 | .plaintext = "abc", |
| 2621 | .psize = 3, |
| 2622 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 2623 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf" |
| 2624 | "\x93\x5f\x7b\x95", |
| 2625 | }, { |
| 2626 | .plaintext = "Tiger", |
| 2627 | .psize = 5, |
| 2628 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 2629 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec" |
| 2630 | "\x37\x79\x0c\x11", |
| 2631 | }, { |
| 2632 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 2633 | .psize = 64, |
| 2634 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 2635 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e" |
| 2636 | "\xb5\x86\x44\x50", |
| 2637 | }, { |
| 2638 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 2639 | .psize = 64, |
| 2640 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 2641 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9" |
| 2642 | "\x57\x89\x65\x65", |
| 2643 | }, { |
| 2644 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 2645 | "by Ross Anderson and Eli Biham, " |
| 2646 | "proceedings of Fast Software Encryption 3, " |
| 2647 | "Cambridge, 1996.", |
| 2648 | .psize = 125, |
| 2649 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 2650 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24" |
| 2651 | "\xdd\x68\x15\x1d", |
| 2652 | }, |
| 2653 | }; |
| 2654 | |
| 2655 | #define TGR128_TEST_VECTORS 6 |
| 2656 | |
| 2657 | static struct hash_testvec tgr128_tv_template[] = { |
| 2658 | { |
| 2659 | .plaintext = "", |
| 2660 | .psize = 0, |
| 2661 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 2662 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f", |
| 2663 | }, { |
| 2664 | .plaintext = "abc", |
| 2665 | .psize = 3, |
| 2666 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 2667 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf", |
| 2668 | }, { |
| 2669 | .plaintext = "Tiger", |
| 2670 | .psize = 5, |
| 2671 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 2672 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec", |
| 2673 | }, { |
| 2674 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 2675 | .psize = 64, |
| 2676 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 2677 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e", |
| 2678 | }, { |
| 2679 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 2680 | .psize = 64, |
| 2681 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 2682 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9", |
| 2683 | }, { |
| 2684 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 2685 | "by Ross Anderson and Eli Biham, " |
| 2686 | "proceedings of Fast Software Encryption 3, " |
| 2687 | "Cambridge, 1996.", |
| 2688 | .psize = 125, |
| 2689 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 2690 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24", |
| 2691 | }, |
| 2692 | }; |
| 2693 | |
Harald Freudenberger | 445a8e0 | 2015-05-21 17:34:31 +0200 | [diff] [blame] | 2694 | #define GHASH_TEST_VECTORS 6 |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 2695 | |
| 2696 | static struct hash_testvec ghash_tv_template[] = |
| 2697 | { |
| 2698 | { |
Ard Biesheuvel | 6c9e3dc | 2014-06-12 17:01:50 +0200 | [diff] [blame] | 2699 | .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03" |
| 2700 | "\xff\xca\xff\x95\xf8\x30\xf0\x61", |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 2701 | .ksize = 16, |
Ard Biesheuvel | 6c9e3dc | 2014-06-12 17:01:50 +0200 | [diff] [blame] | 2702 | .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0" |
| 2703 | "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6", |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 2704 | .psize = 16, |
| 2705 | .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6" |
| 2706 | "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60", |
Ard Biesheuvel | 6c9e3dc | 2014-06-12 17:01:50 +0200 | [diff] [blame] | 2707 | }, { |
| 2708 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2709 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2710 | .ksize = 16, |
| 2711 | .plaintext = "what do ya want for nothing?", |
| 2712 | .psize = 28, |
| 2713 | .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce" |
| 2714 | "\x0d\x61\x06\x27\x66\x51\xd5\xe2", |
| 2715 | .np = 2, |
| 2716 | .tap = {14, 14} |
| 2717 | }, { |
| 2718 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2719 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2720 | .ksize = 16, |
| 2721 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2722 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2723 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2724 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2725 | .psize = 50, |
| 2726 | .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96" |
| 2727 | "\xe1\x96\xe1\x96\xe1\x96\xe1\x96", |
| 2728 | }, { |
| 2729 | .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6" |
| 2730 | "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60", |
| 2731 | .ksize = 16, |
| 2732 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2733 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2734 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2735 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2736 | .psize = 50, |
| 2737 | .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2" |
| 2738 | "\x49\xed\x6e\x32\x7a\xa9\xbe\x08", |
| 2739 | }, { |
| 2740 | .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0" |
| 2741 | "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6", |
| 2742 | .ksize = 16, |
| 2743 | .plaintext = "Test With Truncation", |
| 2744 | .psize = 20, |
| 2745 | .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28" |
| 2746 | "\x23\xf7\x93\xf7\x19\xf5\x96\xd9", |
Harald Freudenberger | 445a8e0 | 2015-05-21 17:34:31 +0200 | [diff] [blame] | 2747 | }, { |
| 2748 | .key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71" |
| 2749 | "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9", |
| 2750 | .ksize = 16, |
| 2751 | .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74" |
| 2752 | "\x65\x72\x20\x4c\x61\x75\x73\x63" |
| 2753 | "\x68\x65\x6e\x20\x75\x6e\x64\x20" |
| 2754 | "\x53\x74\x61\x75\x6e\x65\x6e\x20" |
| 2755 | "\x73\x65\x69\x20\x73\x74\x69\x6c" |
| 2756 | "\x6c\x2c\x0a\x64\x75\x20\x6d\x65" |
| 2757 | "\x69\x6e\x20\x74\x69\x65\x66\x74" |
| 2758 | "\x69\x65\x66\x65\x73\x20\x4c\x65" |
| 2759 | "\x62\x65\x6e\x3b\x0a\x64\x61\x73" |
| 2760 | "\x73\x20\x64\x75\x20\x77\x65\x69" |
| 2761 | "\xc3\x9f\x74\x20\x77\x61\x73\x20" |
| 2762 | "\x64\x65\x72\x20\x57\x69\x6e\x64" |
| 2763 | "\x20\x64\x69\x72\x20\x77\x69\x6c" |
| 2764 | "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f" |
| 2765 | "\x63\x68\x20\x64\x69\x65\x20\x42" |
| 2766 | "\x69\x72\x6b\x65\x6e\x20\x62\x65" |
| 2767 | "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e" |
| 2768 | "\x64\x20\x77\x65\x6e\x6e\x20\x64" |
| 2769 | "\x69\x72\x20\x65\x69\x6e\x6d\x61" |
| 2770 | "\x6c\x20\x64\x61\x73\x20\x53\x63" |
| 2771 | "\x68\x77\x65\x69\x67\x65\x6e\x20" |
| 2772 | "\x73\x70\x72\x61\x63\x68\x2c\x0a" |
| 2773 | "\x6c\x61\x73\x73\x20\x64\x65\x69" |
| 2774 | "\x6e\x65\x20\x53\x69\x6e\x6e\x65" |
| 2775 | "\x20\x62\x65\x73\x69\x65\x67\x65" |
| 2776 | "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d" |
| 2777 | "\x20\x48\x61\x75\x63\x68\x65\x20" |
| 2778 | "\x67\x69\x62\x74\x20\x64\x69\x63" |
| 2779 | "\x68\x2c\x20\x67\x69\x62\x20\x6e" |
| 2780 | "\x61\x63\x68\x2c\x0a\x65\x72\x20" |
| 2781 | "\x77\x69\x72\x64\x20\x64\x69\x63" |
| 2782 | "\x68\x20\x6c\x69\x65\x62\x65\x6e" |
| 2783 | "\x20\x75\x6e\x64\x20\x77\x69\x65" |
| 2784 | "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e" |
| 2785 | "\x64\x20\x64\x61\x6e\x6e\x20\x6d" |
| 2786 | "\x65\x69\x6e\x65\x20\x53\x65\x65" |
| 2787 | "\x6c\x65\x20\x73\x65\x69\x74\x20" |
| 2788 | "\x77\x65\x69\x74\x2c\x20\x73\x65" |
| 2789 | "\x69\x20\x77\x65\x69\x74\x2c\x0a" |
| 2790 | "\x64\x61\x73\x73\x20\x64\x69\x72" |
| 2791 | "\x20\x64\x61\x73\x20\x4c\x65\x62" |
| 2792 | "\x65\x6e\x20\x67\x65\x6c\x69\x6e" |
| 2793 | "\x67\x65\x2c\x0a\x62\x72\x65\x69" |
| 2794 | "\x74\x65\x20\x64\x69\x63\x68\x20" |
| 2795 | "\x77\x69\x65\x20\x65\x69\x6e\x20" |
| 2796 | "\x46\x65\x69\x65\x72\x6b\x6c\x65" |
| 2797 | "\x69\x64\x0a\xc3\xbc\x62\x65\x72" |
| 2798 | "\x20\x64\x69\x65\x20\x73\x69\x6e" |
| 2799 | "\x6e\x65\x6e\x64\x65\x6e\x20\x44" |
| 2800 | "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a", |
| 2801 | .psize = 400, |
| 2802 | .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d" |
| 2803 | "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57", |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 2804 | }, |
| 2805 | }; |
| 2806 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2807 | /* |
| 2808 | * HMAC-MD5 test vectors from RFC2202 |
| 2809 | * (These need to be fixed to not use strlen). |
| 2810 | */ |
| 2811 | #define HMAC_MD5_TEST_VECTORS 7 |
| 2812 | |
| 2813 | static struct hash_testvec hmac_md5_tv_template[] = |
| 2814 | { |
| 2815 | { |
| 2816 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2817 | .ksize = 16, |
| 2818 | .plaintext = "Hi There", |
| 2819 | .psize = 8, |
| 2820 | .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c" |
| 2821 | "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d", |
| 2822 | }, { |
| 2823 | .key = "Jefe", |
| 2824 | .ksize = 4, |
| 2825 | .plaintext = "what do ya want for nothing?", |
| 2826 | .psize = 28, |
| 2827 | .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03" |
| 2828 | "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38", |
| 2829 | .np = 2, |
| 2830 | .tap = {14, 14} |
| 2831 | }, { |
| 2832 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2833 | .ksize = 16, |
| 2834 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2835 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2836 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2837 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2838 | .psize = 50, |
| 2839 | .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88" |
| 2840 | "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6", |
| 2841 | }, { |
| 2842 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2843 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2844 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 2845 | .ksize = 25, |
| 2846 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2847 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2848 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2849 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2850 | .psize = 50, |
| 2851 | .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea" |
| 2852 | "\x3a\x75\x16\x47\x46\xff\xaa\x79", |
| 2853 | }, { |
| 2854 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2855 | .ksize = 16, |
| 2856 | .plaintext = "Test With Truncation", |
| 2857 | .psize = 20, |
| 2858 | .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00" |
| 2859 | "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c", |
| 2860 | }, { |
| 2861 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2862 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2863 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2864 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2865 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2866 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2867 | "\xaa\xaa", |
| 2868 | .ksize = 80, |
| 2869 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2870 | .psize = 54, |
| 2871 | .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f" |
| 2872 | "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd", |
| 2873 | }, { |
| 2874 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2875 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2876 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2877 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2878 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2879 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2880 | "\xaa\xaa", |
| 2881 | .ksize = 80, |
| 2882 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 2883 | "Block-Size Data", |
| 2884 | .psize = 73, |
| 2885 | .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee" |
| 2886 | "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e", |
| 2887 | }, |
| 2888 | }; |
| 2889 | |
| 2890 | /* |
| 2891 | * HMAC-RIPEMD128 test vectors from RFC2286 |
| 2892 | */ |
| 2893 | #define HMAC_RMD128_TEST_VECTORS 7 |
| 2894 | |
| 2895 | static struct hash_testvec hmac_rmd128_tv_template[] = { |
| 2896 | { |
| 2897 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2898 | .ksize = 16, |
| 2899 | .plaintext = "Hi There", |
| 2900 | .psize = 8, |
| 2901 | .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf" |
| 2902 | "\x81\xc1\x72\xe8\x4e\x07\x34\xdb", |
| 2903 | }, { |
| 2904 | .key = "Jefe", |
| 2905 | .ksize = 4, |
| 2906 | .plaintext = "what do ya want for nothing?", |
| 2907 | .psize = 28, |
| 2908 | .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34" |
| 2909 | "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b", |
| 2910 | .np = 2, |
| 2911 | .tap = { 14, 14 }, |
| 2912 | }, { |
| 2913 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2914 | .ksize = 16, |
| 2915 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2916 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2917 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2918 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2919 | .psize = 50, |
| 2920 | .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d" |
| 2921 | "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d", |
| 2922 | }, { |
| 2923 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2924 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2925 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 2926 | .ksize = 25, |
| 2927 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2928 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2929 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2930 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2931 | .psize = 50, |
| 2932 | .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a" |
| 2933 | "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94", |
| 2934 | }, { |
| 2935 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2936 | .ksize = 16, |
| 2937 | .plaintext = "Test With Truncation", |
| 2938 | .psize = 20, |
| 2939 | .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03" |
| 2940 | "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a", |
| 2941 | }, { |
| 2942 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2943 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2944 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2945 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2946 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2947 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2948 | "\xaa\xaa", |
| 2949 | .ksize = 80, |
| 2950 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2951 | .psize = 54, |
| 2952 | .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a" |
| 2953 | "\x1f\x59\xd3\x73\xc1\x50\xac\xbb", |
| 2954 | }, { |
| 2955 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2956 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2957 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2958 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2959 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2960 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2961 | "\xaa\xaa", |
| 2962 | .ksize = 80, |
| 2963 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 2964 | "Block-Size Data", |
| 2965 | .psize = 73, |
| 2966 | .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4" |
| 2967 | "\x06\x90\xc2\x37\x63\x5f\x30\xc5", |
| 2968 | }, |
| 2969 | }; |
| 2970 | |
| 2971 | /* |
| 2972 | * HMAC-RIPEMD160 test vectors from RFC2286 |
| 2973 | */ |
| 2974 | #define HMAC_RMD160_TEST_VECTORS 7 |
| 2975 | |
| 2976 | static struct hash_testvec hmac_rmd160_tv_template[] = { |
| 2977 | { |
| 2978 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2979 | .ksize = 20, |
| 2980 | .plaintext = "Hi There", |
| 2981 | .psize = 8, |
| 2982 | .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e" |
| 2983 | "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68", |
| 2984 | }, { |
| 2985 | .key = "Jefe", |
| 2986 | .ksize = 4, |
| 2987 | .plaintext = "what do ya want for nothing?", |
| 2988 | .psize = 28, |
| 2989 | .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4" |
| 2990 | "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69", |
| 2991 | .np = 2, |
| 2992 | .tap = { 14, 14 }, |
| 2993 | }, { |
| 2994 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2995 | .ksize = 20, |
| 2996 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2997 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2998 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2999 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 3000 | .psize = 50, |
| 3001 | .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4" |
| 3002 | "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1", |
| 3003 | }, { |
| 3004 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 3005 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 3006 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 3007 | .ksize = 25, |
| 3008 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 3009 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 3010 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 3011 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 3012 | .psize = 50, |
| 3013 | .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1" |
| 3014 | "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4", |
| 3015 | }, { |
| 3016 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 3017 | .ksize = 20, |
| 3018 | .plaintext = "Test With Truncation", |
| 3019 | .psize = 20, |
| 3020 | .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a" |
| 3021 | "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39", |
| 3022 | }, { |
| 3023 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3024 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3025 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3026 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3027 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3028 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3029 | "\xaa\xaa", |
| 3030 | .ksize = 80, |
| 3031 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 3032 | .psize = 54, |
| 3033 | .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd" |
| 3034 | "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b", |
| 3035 | }, { |
| 3036 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3037 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3038 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3039 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3040 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3041 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3042 | "\xaa\xaa", |
| 3043 | .ksize = 80, |
| 3044 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 3045 | "Block-Size Data", |
| 3046 | .psize = 73, |
| 3047 | .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f" |
| 3048 | "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a", |
| 3049 | }, |
| 3050 | }; |
| 3051 | |
| 3052 | /* |
| 3053 | * HMAC-SHA1 test vectors from RFC2202 |
| 3054 | */ |
| 3055 | #define HMAC_SHA1_TEST_VECTORS 7 |
| 3056 | |
| 3057 | static struct hash_testvec hmac_sha1_tv_template[] = { |
| 3058 | { |
| 3059 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 3060 | .ksize = 20, |
| 3061 | .plaintext = "Hi There", |
| 3062 | .psize = 8, |
| 3063 | .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64" |
| 3064 | "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1" |
| 3065 | "\x46\xbe", |
| 3066 | }, { |
| 3067 | .key = "Jefe", |
| 3068 | .ksize = 4, |
| 3069 | .plaintext = "what do ya want for nothing?", |
| 3070 | .psize = 28, |
| 3071 | .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74" |
| 3072 | "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79", |
| 3073 | .np = 2, |
| 3074 | .tap = { 14, 14 } |
| 3075 | }, { |
| 3076 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 3077 | .ksize = 20, |
| 3078 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 3079 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 3080 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 3081 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 3082 | .psize = 50, |
| 3083 | .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3" |
| 3084 | "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3", |
| 3085 | }, { |
| 3086 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 3087 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 3088 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 3089 | .ksize = 25, |
| 3090 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 3091 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 3092 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 3093 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 3094 | .psize = 50, |
| 3095 | .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84" |
| 3096 | "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda", |
| 3097 | }, { |
| 3098 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 3099 | .ksize = 20, |
| 3100 | .plaintext = "Test With Truncation", |
| 3101 | .psize = 20, |
| 3102 | .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2" |
| 3103 | "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04", |
| 3104 | }, { |
| 3105 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3106 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3107 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3108 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3109 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3110 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3111 | "\xaa\xaa", |
| 3112 | .ksize = 80, |
| 3113 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 3114 | .psize = 54, |
| 3115 | .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70" |
| 3116 | "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12", |
| 3117 | }, { |
| 3118 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3119 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3120 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3121 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3122 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3123 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3124 | "\xaa\xaa", |
| 3125 | .ksize = 80, |
| 3126 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 3127 | "Block-Size Data", |
| 3128 | .psize = 73, |
| 3129 | .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b" |
| 3130 | "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91", |
| 3131 | }, |
| 3132 | }; |
| 3133 | |
| 3134 | |
| 3135 | /* |
| 3136 | * SHA224 HMAC test vectors from RFC4231 |
| 3137 | */ |
| 3138 | #define HMAC_SHA224_TEST_VECTORS 4 |
| 3139 | |
| 3140 | static struct hash_testvec hmac_sha224_tv_template[] = { |
| 3141 | { |
| 3142 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3143 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3144 | "\x0b\x0b\x0b\x0b", |
| 3145 | .ksize = 20, |
| 3146 | /* ("Hi There") */ |
| 3147 | .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65", |
| 3148 | .psize = 8, |
| 3149 | .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19" |
| 3150 | "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f" |
| 3151 | "\x47\xb4\xb1\x16\x99\x12\xba\x4f" |
| 3152 | "\x53\x68\x4b\x22", |
| 3153 | }, { |
| 3154 | .key = "Jefe", |
| 3155 | .ksize = 4, |
| 3156 | /* ("what do ya want for nothing?") */ |
| 3157 | .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20" |
| 3158 | "\x79\x61\x20\x77\x61\x6e\x74\x20" |
| 3159 | "\x66\x6f\x72\x20\x6e\x6f\x74\x68" |
| 3160 | "\x69\x6e\x67\x3f", |
| 3161 | .psize = 28, |
| 3162 | .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf" |
| 3163 | "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f" |
| 3164 | "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00" |
| 3165 | "\x8f\xd0\x5e\x44", |
| 3166 | .np = 4, |
| 3167 | .tap = { 7, 7, 7, 7 } |
| 3168 | }, { |
| 3169 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3170 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3171 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3172 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3173 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3174 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3175 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3176 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3177 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3178 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3179 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3180 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3181 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3182 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3183 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3184 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3185 | "\xaa\xaa\xaa", |
| 3186 | .ksize = 131, |
| 3187 | /* ("Test Using Larger Than Block-Size Key - Hash Key First") */ |
| 3188 | .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69" |
| 3189 | "\x6e\x67\x20\x4c\x61\x72\x67\x65" |
| 3190 | "\x72\x20\x54\x68\x61\x6e\x20\x42" |
| 3191 | "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a" |
| 3192 | "\x65\x20\x4b\x65\x79\x20\x2d\x20" |
| 3193 | "\x48\x61\x73\x68\x20\x4b\x65\x79" |
| 3194 | "\x20\x46\x69\x72\x73\x74", |
| 3195 | .psize = 54, |
| 3196 | .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad" |
| 3197 | "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2" |
| 3198 | "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27" |
| 3199 | "\x3f\xa6\x87\x0e", |
| 3200 | }, { |
| 3201 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3202 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3203 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3204 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3205 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3206 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3207 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3208 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3209 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3210 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3211 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3212 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3213 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3214 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3215 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3216 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3217 | "\xaa\xaa\xaa", |
| 3218 | .ksize = 131, |
| 3219 | /* ("This is a test using a larger than block-size key and a") |
| 3220 | (" larger than block-size data. The key needs to be") |
| 3221 | (" hashed before being used by the HMAC algorithm.") */ |
| 3222 | .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20" |
| 3223 | "\x61\x20\x74\x65\x73\x74\x20\x75" |
| 3224 | "\x73\x69\x6e\x67\x20\x61\x20\x6c" |
| 3225 | "\x61\x72\x67\x65\x72\x20\x74\x68" |
| 3226 | "\x61\x6e\x20\x62\x6c\x6f\x63\x6b" |
| 3227 | "\x2d\x73\x69\x7a\x65\x20\x6b\x65" |
| 3228 | "\x79\x20\x61\x6e\x64\x20\x61\x20" |
| 3229 | "\x6c\x61\x72\x67\x65\x72\x20\x74" |
| 3230 | "\x68\x61\x6e\x20\x62\x6c\x6f\x63" |
| 3231 | "\x6b\x2d\x73\x69\x7a\x65\x20\x64" |
| 3232 | "\x61\x74\x61\x2e\x20\x54\x68\x65" |
| 3233 | "\x20\x6b\x65\x79\x20\x6e\x65\x65" |
| 3234 | "\x64\x73\x20\x74\x6f\x20\x62\x65" |
| 3235 | "\x20\x68\x61\x73\x68\x65\x64\x20" |
| 3236 | "\x62\x65\x66\x6f\x72\x65\x20\x62" |
| 3237 | "\x65\x69\x6e\x67\x20\x75\x73\x65" |
| 3238 | "\x64\x20\x62\x79\x20\x74\x68\x65" |
| 3239 | "\x20\x48\x4d\x41\x43\x20\x61\x6c" |
| 3240 | "\x67\x6f\x72\x69\x74\x68\x6d\x2e", |
| 3241 | .psize = 152, |
| 3242 | .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02" |
| 3243 | "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd" |
| 3244 | "\x94\x67\x70\xdb\x9c\x2b\x95\xc9" |
| 3245 | "\xf6\xf5\x65\xd1", |
| 3246 | }, |
| 3247 | }; |
| 3248 | |
| 3249 | /* |
| 3250 | * HMAC-SHA256 test vectors from |
| 3251 | * draft-ietf-ipsec-ciph-sha-256-01.txt |
| 3252 | */ |
| 3253 | #define HMAC_SHA256_TEST_VECTORS 10 |
| 3254 | |
| 3255 | static struct hash_testvec hmac_sha256_tv_template[] = { |
| 3256 | { |
| 3257 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 3258 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 3259 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 3260 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 3261 | .ksize = 32, |
| 3262 | .plaintext = "abc", |
| 3263 | .psize = 3, |
| 3264 | .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a" |
| 3265 | "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a" |
| 3266 | "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66" |
| 3267 | "\x92\x75\x90\x21\xcf\xab\x81\x81", |
| 3268 | }, { |
| 3269 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 3270 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 3271 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 3272 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 3273 | .ksize = 32, |
| 3274 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 3275 | .psize = 56, |
| 3276 | .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08" |
| 3277 | "\x18\x4b\xa7\x31\x31\xc5\x3c\xae" |
| 3278 | "\xe6\x98\xe3\x61\x19\x42\x11\x49" |
| 3279 | "\xea\x8c\x71\x24\x56\x69\x7d\x30", |
| 3280 | }, { |
| 3281 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 3282 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 3283 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 3284 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 3285 | .ksize = 32, |
| 3286 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" |
| 3287 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 3288 | .psize = 112, |
| 3289 | .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34" |
| 3290 | "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab" |
| 3291 | "\x73\xac\xf0\xfd\x06\x04\x47\xa5" |
| 3292 | "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3", |
| 3293 | }, { |
| 3294 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3295 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3296 | "\x0b\x0b\x0b\x0b\x0b\x0b", |
| 3297 | .ksize = 32, |
| 3298 | .plaintext = "Hi There", |
| 3299 | .psize = 8, |
| 3300 | .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6" |
| 3301 | "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5" |
| 3302 | "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c" |
| 3303 | "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7", |
| 3304 | }, { |
| 3305 | .key = "Jefe", |
| 3306 | .ksize = 4, |
| 3307 | .plaintext = "what do ya want for nothing?", |
| 3308 | .psize = 28, |
| 3309 | .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e" |
| 3310 | "\x6a\x04\x24\x26\x08\x95\x75\xc7" |
| 3311 | "\x5a\x00\x3f\x08\x9d\x27\x39\x83" |
| 3312 | "\x9d\xec\x58\xb9\x64\xec\x38\x43", |
| 3313 | .np = 2, |
| 3314 | .tap = { 14, 14 } |
| 3315 | }, { |
| 3316 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3317 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3318 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 3319 | .ksize = 32, |
| 3320 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 3321 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 3322 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 3323 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 3324 | .psize = 50, |
| 3325 | .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea" |
| 3326 | "\x91\xe5\x3a\xba\x30\x92\xf9\x62" |
| 3327 | "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc" |
| 3328 | "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0", |
| 3329 | }, { |
| 3330 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 3331 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 3332 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 3333 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 3334 | "\x21\x22\x23\x24\x25", |
| 3335 | .ksize = 37, |
| 3336 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 3337 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 3338 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 3339 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 3340 | .psize = 50, |
| 3341 | .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74" |
| 3342 | "\x4c\x66\xde\xe0\xf8\xf0\x74\x55" |
| 3343 | "\x6e\xc4\xaf\x55\xef\x07\x99\x85" |
| 3344 | "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17", |
| 3345 | }, { |
| 3346 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c" |
| 3347 | "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c" |
| 3348 | "\x0c\x0c\x0c\x0c\x0c\x0c", |
| 3349 | .ksize = 32, |
| 3350 | .plaintext = "Test With Truncation", |
| 3351 | .psize = 20, |
| 3352 | .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b" |
| 3353 | "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17" |
| 3354 | "\xd4\xf5\x89\x66\x8a\x58\x7b\x27" |
| 3355 | "\x00\xa9\xc9\x7c\x11\x93\xcf\x42", |
| 3356 | }, { |
| 3357 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3358 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3359 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3360 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3361 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3362 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3363 | "\xaa\xaa", |
| 3364 | .ksize = 80, |
| 3365 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 3366 | .psize = 54, |
| 3367 | .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09" |
| 3368 | "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb" |
| 3369 | "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e" |
| 3370 | "\x7d\xdd\x39\x09\x1b\x32\x35\x2f", |
| 3371 | }, { |
| 3372 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3373 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3374 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3375 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3376 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3377 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3378 | "\xaa\xaa", |
| 3379 | .ksize = 80, |
| 3380 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than " |
| 3381 | "One Block-Size Data", |
| 3382 | .psize = 73, |
| 3383 | .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3" |
| 3384 | "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8" |
| 3385 | "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc" |
| 3386 | "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6", |
| 3387 | }, |
| 3388 | }; |
| 3389 | |
Jussi Kivilinna | 93b5e86 | 2013-04-08 10:48:44 +0300 | [diff] [blame] | 3390 | #define CMAC_AES_TEST_VECTORS 6 |
| 3391 | |
| 3392 | static struct hash_testvec aes_cmac128_tv_template[] = { |
| 3393 | { /* From NIST Special Publication 800-38B, AES-128 */ |
| 3394 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 3395 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 3396 | .plaintext = zeroed_string, |
| 3397 | .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28" |
| 3398 | "\x7f\xa3\x7d\x12\x9b\x75\x67\x46", |
| 3399 | .psize = 0, |
| 3400 | .ksize = 16, |
| 3401 | }, { |
| 3402 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 3403 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 3404 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 3405 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a", |
| 3406 | .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44" |
| 3407 | "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c", |
| 3408 | .psize = 16, |
| 3409 | .ksize = 16, |
| 3410 | }, { |
| 3411 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 3412 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 3413 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 3414 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 3415 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 3416 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 3417 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11", |
| 3418 | .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30" |
| 3419 | "\x30\xca\x32\x61\x14\x97\xc8\x27", |
| 3420 | .psize = 40, |
| 3421 | .ksize = 16, |
| 3422 | }, { |
| 3423 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 3424 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 3425 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 3426 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 3427 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 3428 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 3429 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 3430 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 3431 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 3432 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 3433 | .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92" |
| 3434 | "\xfc\x49\x74\x17\x79\x36\x3c\xfe", |
| 3435 | .psize = 64, |
| 3436 | .ksize = 16, |
| 3437 | }, { /* From NIST Special Publication 800-38B, AES-256 */ |
| 3438 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 3439 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 3440 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 3441 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 3442 | .plaintext = zeroed_string, |
| 3443 | .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e" |
| 3444 | "\xfc\x6b\x55\x1f\x46\x67\xd9\x83", |
| 3445 | .psize = 0, |
| 3446 | .ksize = 32, |
| 3447 | }, { |
| 3448 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 3449 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 3450 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 3451 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 3452 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 3453 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 3454 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 3455 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 3456 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 3457 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 3458 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 3459 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 3460 | .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5" |
| 3461 | "\x69\x6a\x2c\x05\x6c\x31\x54\x10", |
| 3462 | .psize = 64, |
| 3463 | .ksize = 32, |
| 3464 | } |
| 3465 | }; |
| 3466 | |
| 3467 | #define CMAC_DES3_EDE_TEST_VECTORS 4 |
| 3468 | |
| 3469 | static struct hash_testvec des3_ede_cmac64_tv_template[] = { |
| 3470 | /* |
| 3471 | * From NIST Special Publication 800-38B, Three Key TDEA |
| 3472 | * Corrected test vectors from: |
| 3473 | * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf |
| 3474 | */ |
| 3475 | { |
| 3476 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 3477 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 3478 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 3479 | .plaintext = zeroed_string, |
| 3480 | .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95", |
| 3481 | .psize = 0, |
| 3482 | .ksize = 24, |
| 3483 | }, { |
| 3484 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 3485 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 3486 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 3487 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96", |
| 3488 | .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97", |
| 3489 | .psize = 8, |
| 3490 | .ksize = 24, |
| 3491 | }, { |
| 3492 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 3493 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 3494 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 3495 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 3496 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 3497 | "\xae\x2d\x8a\x57", |
| 3498 | .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed", |
| 3499 | .psize = 20, |
| 3500 | .ksize = 24, |
| 3501 | }, { |
| 3502 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 3503 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 3504 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 3505 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 3506 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 3507 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 3508 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51", |
| 3509 | .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5", |
| 3510 | .psize = 32, |
| 3511 | .ksize = 24, |
| 3512 | } |
| 3513 | }; |
| 3514 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3515 | #define XCBC_AES_TEST_VECTORS 6 |
| 3516 | |
| 3517 | static struct hash_testvec aes_xcbc128_tv_template[] = { |
| 3518 | { |
| 3519 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3520 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3521 | .plaintext = zeroed_string, |
| 3522 | .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c" |
| 3523 | "\x45\x73\xdf\xd5\x84\xd7\x9f\x29", |
| 3524 | .psize = 0, |
| 3525 | .ksize = 16, |
| 3526 | }, { |
| 3527 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3528 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3529 | .plaintext = "\x00\x01\x02", |
| 3530 | .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf" |
| 3531 | "\xe7\x21\x9c\xee\xf1\x72\x75\x6f", |
| 3532 | .psize = 3, |
| 3533 | .ksize = 16, |
| 3534 | } , { |
| 3535 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3536 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3537 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3538 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3539 | .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7" |
| 3540 | "\x99\x98\xa4\x39\x4f\xf7\xa2\x63", |
| 3541 | .psize = 16, |
| 3542 | .ksize = 16, |
| 3543 | }, { |
| 3544 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3545 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3546 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3547 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 3548 | "\x10\x11\x12\x13", |
| 3549 | .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15" |
| 3550 | "\xb8\x98\x5c\x63\x05\x5e\xd3\x08", |
| 3551 | .tap = { 10, 10 }, |
| 3552 | .psize = 20, |
| 3553 | .np = 2, |
| 3554 | .ksize = 16, |
| 3555 | }, { |
| 3556 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3557 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3558 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3559 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 3560 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 3561 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 3562 | .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3" |
| 3563 | "\x68\x07\x73\x4b\xd5\x28\x3f\xd4", |
| 3564 | .psize = 32, |
| 3565 | .ksize = 16, |
| 3566 | }, { |
| 3567 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3568 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3569 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3570 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 3571 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 3572 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 3573 | "\x20\x21", |
| 3574 | .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3" |
| 3575 | "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8", |
| 3576 | .tap = { 17, 17 }, |
| 3577 | .psize = 34, |
| 3578 | .np = 2, |
| 3579 | .ksize = 16, |
| 3580 | } |
| 3581 | }; |
| 3582 | |
Salman Qazi | ba1ee07 | 2012-10-05 14:24:14 -0700 | [diff] [blame] | 3583 | #define VMAC_AES_TEST_VECTORS 11 |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 3584 | static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01', |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 3585 | '\x02', '\x03', '\x02', '\x02', |
| 3586 | '\x02', '\x04', '\x01', '\x07', |
| 3587 | '\x04', '\x01', '\x04', '\x03',}; |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 3588 | static char vmac_string2[128] = {'a', 'b', 'c',}; |
| 3589 | static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c', |
| 3590 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 3591 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 3592 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 3593 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 3594 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 3595 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 3596 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 3597 | }; |
| 3598 | |
Salman Qazi | ba1ee07 | 2012-10-05 14:24:14 -0700 | [diff] [blame] | 3599 | static char vmac_string4[17] = {'b', 'c', 'e', 'f', |
| 3600 | 'i', 'j', 'l', 'm', |
| 3601 | 'o', 'p', 'r', 's', |
| 3602 | 't', 'u', 'w', 'x', 'z'}; |
| 3603 | |
| 3604 | static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c', |
| 3605 | 'o', 'l', 'k', ']', '%', |
| 3606 | '9', '2', '7', '!', 'A'}; |
| 3607 | |
| 3608 | static char vmac_string6[129] = {'p', 't', '*', '7', 'l', |
| 3609 | 'i', '!', '#', 'w', '0', |
| 3610 | 'z', '/', '4', 'A', 'n'}; |
| 3611 | |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 3612 | static struct hash_testvec aes_vmac128_tv_template[] = { |
| 3613 | { |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 3614 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3615 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3616 | .plaintext = NULL, |
| 3617 | .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54", |
| 3618 | .psize = 0, |
| 3619 | .ksize = 16, |
| 3620 | }, { |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 3621 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3622 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 3623 | .plaintext = vmac_string1, |
| 3624 | .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1", |
| 3625 | .psize = 128, |
| 3626 | .ksize = 16, |
| 3627 | }, { |
| 3628 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3629 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3630 | .plaintext = vmac_string2, |
| 3631 | .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d", |
| 3632 | .psize = 128, |
| 3633 | .ksize = 16, |
| 3634 | }, { |
| 3635 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 3636 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 3637 | .plaintext = vmac_string3, |
| 3638 | .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19", |
| 3639 | .psize = 128, |
| 3640 | .ksize = 16, |
| 3641 | }, { |
| 3642 | .key = "abcdefghijklmnop", |
| 3643 | .plaintext = NULL, |
| 3644 | .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84", |
| 3645 | .psize = 0, |
| 3646 | .ksize = 16, |
| 3647 | }, { |
| 3648 | .key = "abcdefghijklmnop", |
| 3649 | .plaintext = vmac_string1, |
| 3650 | .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2", |
| 3651 | .psize = 128, |
| 3652 | .ksize = 16, |
| 3653 | }, { |
| 3654 | .key = "abcdefghijklmnop", |
| 3655 | .plaintext = vmac_string2, |
| 3656 | .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf", |
| 3657 | .psize = 128, |
| 3658 | .ksize = 16, |
| 3659 | }, { |
| 3660 | .key = "abcdefghijklmnop", |
| 3661 | .plaintext = vmac_string3, |
| 3662 | .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4", |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 3663 | .psize = 128, |
| 3664 | .ksize = 16, |
Salman Qazi | ba1ee07 | 2012-10-05 14:24:14 -0700 | [diff] [blame] | 3665 | }, { |
| 3666 | .key = "a09b5cd!f#07K\x00\x00\x00", |
| 3667 | .plaintext = vmac_string4, |
| 3668 | .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f", |
| 3669 | .psize = sizeof(vmac_string4), |
| 3670 | .ksize = 16, |
| 3671 | }, { |
| 3672 | .key = "a09b5cd!f#07K\x00\x00\x00", |
| 3673 | .plaintext = vmac_string5, |
| 3674 | .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60", |
| 3675 | .psize = sizeof(vmac_string5), |
| 3676 | .ksize = 16, |
| 3677 | }, { |
| 3678 | .key = "a09b5cd!f#07K\x00\x00\x00", |
| 3679 | .plaintext = vmac_string6, |
| 3680 | .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41", |
| 3681 | .psize = sizeof(vmac_string6), |
| 3682 | .ksize = 16, |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 3683 | }, |
| 3684 | }; |
| 3685 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3686 | /* |
| 3687 | * SHA384 HMAC test vectors from RFC4231 |
| 3688 | */ |
| 3689 | |
| 3690 | #define HMAC_SHA384_TEST_VECTORS 4 |
| 3691 | |
| 3692 | static struct hash_testvec hmac_sha384_tv_template[] = { |
| 3693 | { |
| 3694 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3695 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3696 | "\x0b\x0b\x0b\x0b", |
| 3697 | .ksize = 20, |
| 3698 | .plaintext = "Hi There", |
| 3699 | .psize = 8, |
| 3700 | .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62" |
| 3701 | "\x6b\x08\x25\xf4\xab\x46\x90\x7f" |
| 3702 | "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6" |
| 3703 | "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c" |
| 3704 | "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f" |
| 3705 | "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6", |
| 3706 | }, { |
| 3707 | .key = "Jefe", |
| 3708 | .ksize = 4, |
| 3709 | .plaintext = "what do ya want for nothing?", |
| 3710 | .psize = 28, |
| 3711 | .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31" |
| 3712 | "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b" |
| 3713 | "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47" |
| 3714 | "\xe4\x2e\xc3\x73\x63\x22\x44\x5e" |
| 3715 | "\x8e\x22\x40\xca\x5e\x69\xe2\xc7" |
| 3716 | "\x8b\x32\x39\xec\xfa\xb2\x16\x49", |
| 3717 | .np = 4, |
| 3718 | .tap = { 7, 7, 7, 7 } |
| 3719 | }, { |
| 3720 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3721 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3722 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3723 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3724 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3725 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3726 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3727 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3728 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3729 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3730 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3731 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3732 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3733 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3734 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3735 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3736 | "\xaa\xaa\xaa", |
| 3737 | .ksize = 131, |
| 3738 | .plaintext = "Test Using Larger Than Block-Siz" |
| 3739 | "e Key - Hash Key First", |
| 3740 | .psize = 54, |
| 3741 | .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90" |
| 3742 | "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4" |
| 3743 | "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f" |
| 3744 | "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6" |
| 3745 | "\x0c\x2e\xf6\xab\x40\x30\xfe\x82" |
| 3746 | "\x96\x24\x8d\xf1\x63\xf4\x49\x52", |
| 3747 | }, { |
| 3748 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3749 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3750 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3751 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3752 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3753 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3754 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3755 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3756 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3757 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3758 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3759 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3760 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3761 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3762 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3763 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3764 | "\xaa\xaa\xaa", |
| 3765 | .ksize = 131, |
| 3766 | .plaintext = "This is a test u" |
| 3767 | "sing a larger th" |
| 3768 | "an block-size ke" |
| 3769 | "y and a larger t" |
| 3770 | "han block-size d" |
| 3771 | "ata. The key nee" |
| 3772 | "ds to be hashed " |
| 3773 | "before being use" |
| 3774 | "d by the HMAC al" |
| 3775 | "gorithm.", |
| 3776 | .psize = 152, |
| 3777 | .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d" |
| 3778 | "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c" |
| 3779 | "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a" |
| 3780 | "\xdc\xce\xbb\x82\x46\x1e\x99\xc5" |
| 3781 | "\xa6\x78\xcc\x31\xe7\x99\x17\x6d" |
| 3782 | "\x38\x60\xe6\x11\x0c\x46\x52\x3e", |
| 3783 | }, |
| 3784 | }; |
| 3785 | |
| 3786 | /* |
| 3787 | * SHA512 HMAC test vectors from RFC4231 |
| 3788 | */ |
| 3789 | |
| 3790 | #define HMAC_SHA512_TEST_VECTORS 4 |
| 3791 | |
| 3792 | static struct hash_testvec hmac_sha512_tv_template[] = { |
| 3793 | { |
| 3794 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3795 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3796 | "\x0b\x0b\x0b\x0b", |
| 3797 | .ksize = 20, |
| 3798 | .plaintext = "Hi There", |
| 3799 | .psize = 8, |
| 3800 | .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d" |
| 3801 | "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0" |
| 3802 | "\x23\x79\xf4\xe2\xce\x4e\xc2\x78" |
| 3803 | "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde" |
| 3804 | "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02" |
| 3805 | "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4" |
| 3806 | "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70" |
| 3807 | "\x2e\x69\x6c\x20\x3a\x12\x68\x54", |
| 3808 | }, { |
| 3809 | .key = "Jefe", |
| 3810 | .ksize = 4, |
| 3811 | .plaintext = "what do ya want for nothing?", |
| 3812 | .psize = 28, |
| 3813 | .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2" |
| 3814 | "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3" |
| 3815 | "\x87\xbd\x64\x22\x2e\x83\x1f\xd6" |
| 3816 | "\x10\x27\x0c\xd7\xea\x25\x05\x54" |
| 3817 | "\x97\x58\xbf\x75\xc0\x5a\x99\x4a" |
| 3818 | "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd" |
| 3819 | "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b" |
| 3820 | "\x63\x6e\x07\x0a\x38\xbc\xe7\x37", |
| 3821 | .np = 4, |
| 3822 | .tap = { 7, 7, 7, 7 } |
| 3823 | }, { |
| 3824 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3825 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3826 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3827 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3828 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3829 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3830 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3831 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3832 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3833 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3834 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3835 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3836 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3837 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3838 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3839 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3840 | "\xaa\xaa\xaa", |
| 3841 | .ksize = 131, |
| 3842 | .plaintext = "Test Using Large" |
| 3843 | "r Than Block-Siz" |
| 3844 | "e Key - Hash Key" |
| 3845 | " First", |
| 3846 | .psize = 54, |
| 3847 | .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb" |
| 3848 | "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4" |
| 3849 | "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1" |
| 3850 | "\x12\x1b\x01\x37\x83\xf8\xf3\x52" |
| 3851 | "\x6b\x56\xd0\x37\xe0\x5f\x25\x98" |
| 3852 | "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52" |
| 3853 | "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec" |
| 3854 | "\x8b\x91\x5a\x98\x5d\x78\x65\x98", |
| 3855 | }, { |
| 3856 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3857 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3858 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3859 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3860 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3861 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3862 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3863 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3864 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3865 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3866 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3867 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3868 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3869 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3870 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3871 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3872 | "\xaa\xaa\xaa", |
| 3873 | .ksize = 131, |
| 3874 | .plaintext = |
| 3875 | "This is a test u" |
| 3876 | "sing a larger th" |
| 3877 | "an block-size ke" |
| 3878 | "y and a larger t" |
| 3879 | "han block-size d" |
| 3880 | "ata. The key nee" |
| 3881 | "ds to be hashed " |
| 3882 | "before being use" |
| 3883 | "d by the HMAC al" |
| 3884 | "gorithm.", |
| 3885 | .psize = 152, |
| 3886 | .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba" |
| 3887 | "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd" |
| 3888 | "\xde\xbd\x71\xf8\x86\x72\x89\x86" |
| 3889 | "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44" |
| 3890 | "\xb6\x02\x2c\xac\x3c\x49\x82\xb1" |
| 3891 | "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15" |
| 3892 | "\x13\x46\x76\xfb\x6d\xe0\x44\x60" |
| 3893 | "\x65\xc9\x74\x40\xfa\x8c\x6a\x58", |
| 3894 | }, |
| 3895 | }; |
| 3896 | |
raveendra padasalagi | 98eca72 | 2016-07-01 11:16:54 +0530 | [diff] [blame] | 3897 | #define HMAC_SHA3_224_TEST_VECTORS 4 |
| 3898 | |
| 3899 | static struct hash_testvec hmac_sha3_224_tv_template[] = { |
| 3900 | { |
| 3901 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3902 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3903 | "\x0b\x0b\x0b\x0b", |
| 3904 | .ksize = 20, |
| 3905 | .plaintext = "Hi There", |
| 3906 | .psize = 8, |
| 3907 | .digest = "\x3b\x16\x54\x6b\xbc\x7b\xe2\x70" |
| 3908 | "\x6a\x03\x1d\xca\xfd\x56\x37\x3d" |
| 3909 | "\x98\x84\x36\x76\x41\xd8\xc5\x9a" |
| 3910 | "\xf3\xc8\x60\xf7", |
| 3911 | }, { |
| 3912 | .key = "Jefe", |
| 3913 | .ksize = 4, |
| 3914 | .plaintext = "what do ya want for nothing?", |
| 3915 | .psize = 28, |
| 3916 | .digest = "\x7f\xdb\x8d\xd8\x8b\xd2\xf6\x0d" |
| 3917 | "\x1b\x79\x86\x34\xad\x38\x68\x11" |
| 3918 | "\xc2\xcf\xc8\x5b\xfa\xf5\xd5\x2b" |
| 3919 | "\xba\xce\x5e\x66", |
| 3920 | .np = 4, |
| 3921 | .tap = { 7, 7, 7, 7 } |
| 3922 | }, { |
| 3923 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3924 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3925 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3926 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3927 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3928 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3929 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3930 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3931 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3932 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3933 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3934 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3935 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3936 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3937 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3938 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3939 | "\xaa\xaa\xaa", |
| 3940 | .ksize = 131, |
| 3941 | .plaintext = "Test Using Large" |
| 3942 | "r Than Block-Siz" |
| 3943 | "e Key - Hash Key" |
| 3944 | " First", |
| 3945 | .psize = 54, |
| 3946 | .digest = "\xb4\xa1\xf0\x4c\x00\x28\x7a\x9b" |
| 3947 | "\x7f\x60\x75\xb3\x13\xd2\x79\xb8" |
| 3948 | "\x33\xbc\x8f\x75\x12\x43\x52\xd0" |
| 3949 | "\x5f\xb9\x99\x5f", |
| 3950 | }, { |
| 3951 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3952 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3953 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3954 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3955 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3956 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3957 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3958 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3959 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3960 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3961 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3962 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3963 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3964 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3965 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3966 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3967 | "\xaa\xaa\xaa", |
| 3968 | .ksize = 131, |
| 3969 | .plaintext = |
| 3970 | "This is a test u" |
| 3971 | "sing a larger th" |
| 3972 | "an block-size ke" |
| 3973 | "y and a larger t" |
| 3974 | "han block-size d" |
| 3975 | "ata. The key nee" |
| 3976 | "ds to be hashed " |
| 3977 | "before being use" |
| 3978 | "d by the HMAC al" |
| 3979 | "gorithm.", |
| 3980 | .psize = 152, |
| 3981 | .digest = "\x05\xd8\xcd\x6d\x00\xfa\xea\x8d" |
| 3982 | "\x1e\xb6\x8a\xde\x28\x73\x0b\xbd" |
| 3983 | "\x3c\xba\xb6\x92\x9f\x0a\x08\x6b" |
| 3984 | "\x29\xcd\x62\xa0", |
| 3985 | }, |
| 3986 | }; |
| 3987 | |
| 3988 | #define HMAC_SHA3_256_TEST_VECTORS 4 |
| 3989 | |
| 3990 | static struct hash_testvec hmac_sha3_256_tv_template[] = { |
| 3991 | { |
| 3992 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3993 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3994 | "\x0b\x0b\x0b\x0b", |
| 3995 | .ksize = 20, |
| 3996 | .plaintext = "Hi There", |
| 3997 | .psize = 8, |
| 3998 | .digest = "\xba\x85\x19\x23\x10\xdf\xfa\x96" |
| 3999 | "\xe2\xa3\xa4\x0e\x69\x77\x43\x51" |
| 4000 | "\x14\x0b\xb7\x18\x5e\x12\x02\xcd" |
| 4001 | "\xcc\x91\x75\x89\xf9\x5e\x16\xbb", |
| 4002 | }, { |
| 4003 | .key = "Jefe", |
| 4004 | .ksize = 4, |
| 4005 | .plaintext = "what do ya want for nothing?", |
| 4006 | .psize = 28, |
| 4007 | .digest = "\xc7\xd4\x07\x2e\x78\x88\x77\xae" |
| 4008 | "\x35\x96\xbb\xb0\xda\x73\xb8\x87" |
| 4009 | "\xc9\x17\x1f\x93\x09\x5b\x29\x4a" |
| 4010 | "\xe8\x57\xfb\xe2\x64\x5e\x1b\xa5", |
| 4011 | .np = 4, |
| 4012 | .tap = { 7, 7, 7, 7 } |
| 4013 | }, { |
| 4014 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4015 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4016 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4017 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4018 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4019 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4020 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4021 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4022 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4023 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4024 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4025 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4026 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4027 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4028 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4029 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4030 | "\xaa\xaa\xaa", |
| 4031 | .ksize = 131, |
| 4032 | .plaintext = "Test Using Large" |
| 4033 | "r Than Block-Siz" |
| 4034 | "e Key - Hash Key" |
| 4035 | " First", |
| 4036 | .psize = 54, |
| 4037 | .digest = "\xed\x73\xa3\x74\xb9\x6c\x00\x52" |
| 4038 | "\x35\xf9\x48\x03\x2f\x09\x67\x4a" |
| 4039 | "\x58\xc0\xce\x55\x5c\xfc\x1f\x22" |
| 4040 | "\x3b\x02\x35\x65\x60\x31\x2c\x3b", |
| 4041 | }, { |
| 4042 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4043 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4044 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4045 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4046 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4047 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4048 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4049 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4050 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4051 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4052 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4053 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4054 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4055 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4056 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4057 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4058 | "\xaa\xaa\xaa", |
| 4059 | .ksize = 131, |
| 4060 | .plaintext = |
| 4061 | "This is a test u" |
| 4062 | "sing a larger th" |
| 4063 | "an block-size ke" |
| 4064 | "y and a larger t" |
| 4065 | "han block-size d" |
| 4066 | "ata. The key nee" |
| 4067 | "ds to be hashed " |
| 4068 | "before being use" |
| 4069 | "d by the HMAC al" |
| 4070 | "gorithm.", |
| 4071 | .psize = 152, |
| 4072 | .digest = "\x65\xc5\xb0\x6d\x4c\x3d\xe3\x2a" |
| 4073 | "\x7a\xef\x87\x63\x26\x1e\x49\xad" |
| 4074 | "\xb6\xe2\x29\x3e\xc8\xe7\xc6\x1e" |
| 4075 | "\x8d\xe6\x17\x01\xfc\x63\xe1\x23", |
| 4076 | }, |
| 4077 | }; |
| 4078 | |
| 4079 | #define HMAC_SHA3_384_TEST_VECTORS 4 |
| 4080 | |
| 4081 | static struct hash_testvec hmac_sha3_384_tv_template[] = { |
| 4082 | { |
| 4083 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 4084 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 4085 | "\x0b\x0b\x0b\x0b", |
| 4086 | .ksize = 20, |
| 4087 | .plaintext = "Hi There", |
| 4088 | .psize = 8, |
| 4089 | .digest = "\x68\xd2\xdc\xf7\xfd\x4d\xdd\x0a" |
| 4090 | "\x22\x40\xc8\xa4\x37\x30\x5f\x61" |
| 4091 | "\xfb\x73\x34\xcf\xb5\xd0\x22\x6e" |
| 4092 | "\x1b\xc2\x7d\xc1\x0a\x2e\x72\x3a" |
| 4093 | "\x20\xd3\x70\xb4\x77\x43\x13\x0e" |
| 4094 | "\x26\xac\x7e\x3d\x53\x28\x86\xbd", |
| 4095 | }, { |
| 4096 | .key = "Jefe", |
| 4097 | .ksize = 4, |
| 4098 | .plaintext = "what do ya want for nothing?", |
| 4099 | .psize = 28, |
| 4100 | .digest = "\xf1\x10\x1f\x8c\xbf\x97\x66\xfd" |
| 4101 | "\x67\x64\xd2\xed\x61\x90\x3f\x21" |
| 4102 | "\xca\x9b\x18\xf5\x7c\xf3\xe1\xa2" |
| 4103 | "\x3c\xa1\x35\x08\xa9\x32\x43\xce" |
| 4104 | "\x48\xc0\x45\xdc\x00\x7f\x26\xa2" |
| 4105 | "\x1b\x3f\x5e\x0e\x9d\xf4\xc2\x0a", |
| 4106 | .np = 4, |
| 4107 | .tap = { 7, 7, 7, 7 } |
| 4108 | }, { |
| 4109 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4110 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4111 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4112 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4113 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4114 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4115 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4116 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4117 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4118 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4119 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4120 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4121 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4122 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4123 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4124 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4125 | "\xaa\xaa\xaa", |
| 4126 | .ksize = 131, |
| 4127 | .plaintext = "Test Using Large" |
| 4128 | "r Than Block-Siz" |
| 4129 | "e Key - Hash Key" |
| 4130 | " First", |
| 4131 | .psize = 54, |
| 4132 | .digest = "\x0f\xc1\x95\x13\xbf\x6b\xd8\x78" |
| 4133 | "\x03\x70\x16\x70\x6a\x0e\x57\xbc" |
| 4134 | "\x52\x81\x39\x83\x6b\x9a\x42\xc3" |
| 4135 | "\xd4\x19\xe4\x98\xe0\xe1\xfb\x96" |
| 4136 | "\x16\xfd\x66\x91\x38\xd3\x3a\x11" |
| 4137 | "\x05\xe0\x7c\x72\xb6\x95\x3b\xcc", |
| 4138 | }, { |
| 4139 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4140 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4141 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4142 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4143 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4144 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4145 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4146 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4147 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4148 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4149 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4150 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4151 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4152 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4153 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4154 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4155 | "\xaa\xaa\xaa", |
| 4156 | .ksize = 131, |
| 4157 | .plaintext = |
| 4158 | "This is a test u" |
| 4159 | "sing a larger th" |
| 4160 | "an block-size ke" |
| 4161 | "y and a larger t" |
| 4162 | "han block-size d" |
| 4163 | "ata. The key nee" |
| 4164 | "ds to be hashed " |
| 4165 | "before being use" |
| 4166 | "d by the HMAC al" |
| 4167 | "gorithm.", |
| 4168 | .psize = 152, |
| 4169 | .digest = "\x02\x6f\xdf\x6b\x50\x74\x1e\x37" |
| 4170 | "\x38\x99\xc9\xf7\xd5\x40\x6d\x4e" |
| 4171 | "\xb0\x9f\xc6\x66\x56\x36\xfc\x1a" |
| 4172 | "\x53\x00\x29\xdd\xf5\xcf\x3c\xa5" |
| 4173 | "\xa9\x00\xed\xce\x01\xf5\xf6\x1e" |
| 4174 | "\x2f\x40\x8c\xdf\x2f\xd3\xe7\xe8", |
| 4175 | }, |
| 4176 | }; |
| 4177 | |
| 4178 | #define HMAC_SHA3_512_TEST_VECTORS 4 |
| 4179 | |
| 4180 | static struct hash_testvec hmac_sha3_512_tv_template[] = { |
| 4181 | { |
| 4182 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 4183 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 4184 | "\x0b\x0b\x0b\x0b", |
| 4185 | .ksize = 20, |
| 4186 | .plaintext = "Hi There", |
| 4187 | .psize = 8, |
| 4188 | .digest = "\xeb\x3f\xbd\x4b\x2e\xaa\xb8\xf5" |
| 4189 | "\xc5\x04\xbd\x3a\x41\x46\x5a\xac" |
| 4190 | "\xec\x15\x77\x0a\x7c\xab\xac\x53" |
| 4191 | "\x1e\x48\x2f\x86\x0b\x5e\xc7\xba" |
| 4192 | "\x47\xcc\xb2\xc6\xf2\xaf\xce\x8f" |
| 4193 | "\x88\xd2\x2b\x6d\xc6\x13\x80\xf2" |
| 4194 | "\x3a\x66\x8f\xd3\x88\x8b\xb8\x05" |
| 4195 | "\x37\xc0\xa0\xb8\x64\x07\x68\x9e", |
| 4196 | }, { |
| 4197 | .key = "Jefe", |
| 4198 | .ksize = 4, |
| 4199 | .plaintext = "what do ya want for nothing?", |
| 4200 | .psize = 28, |
| 4201 | .digest = "\x5a\x4b\xfe\xab\x61\x66\x42\x7c" |
| 4202 | "\x7a\x36\x47\xb7\x47\x29\x2b\x83" |
| 4203 | "\x84\x53\x7c\xdb\x89\xaf\xb3\xbf" |
| 4204 | "\x56\x65\xe4\xc5\xe7\x09\x35\x0b" |
| 4205 | "\x28\x7b\xae\xc9\x21\xfd\x7c\xa0" |
| 4206 | "\xee\x7a\x0c\x31\xd0\x22\xa9\x5e" |
| 4207 | "\x1f\xc9\x2b\xa9\xd7\x7d\xf8\x83" |
| 4208 | "\x96\x02\x75\xbe\xb4\xe6\x20\x24", |
| 4209 | .np = 4, |
| 4210 | .tap = { 7, 7, 7, 7 } |
| 4211 | }, { |
| 4212 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4213 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4214 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4215 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4216 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4217 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4218 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4219 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4220 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4221 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4222 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4223 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4224 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4225 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4226 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4227 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4228 | "\xaa\xaa\xaa", |
| 4229 | .ksize = 131, |
| 4230 | .plaintext = "Test Using Large" |
| 4231 | "r Than Block-Siz" |
| 4232 | "e Key - Hash Key" |
| 4233 | " First", |
| 4234 | .psize = 54, |
| 4235 | .digest = "\x00\xf7\x51\xa9\xe5\x06\x95\xb0" |
| 4236 | "\x90\xed\x69\x11\xa4\xb6\x55\x24" |
| 4237 | "\x95\x1c\xdc\x15\xa7\x3a\x5d\x58" |
| 4238 | "\xbb\x55\x21\x5e\xa2\xcd\x83\x9a" |
| 4239 | "\xc7\x9d\x2b\x44\xa3\x9b\xaf\xab" |
| 4240 | "\x27\xe8\x3f\xde\x9e\x11\xf6\x34" |
| 4241 | "\x0b\x11\xd9\x91\xb1\xb9\x1b\xf2" |
| 4242 | "\xee\xe7\xfc\x87\x24\x26\xc3\xa4", |
| 4243 | }, { |
| 4244 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4245 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4246 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4247 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4248 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4249 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4250 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4251 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4252 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4253 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4254 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4255 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4256 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4257 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4258 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4259 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 4260 | "\xaa\xaa\xaa", |
| 4261 | .ksize = 131, |
| 4262 | .plaintext = |
| 4263 | "This is a test u" |
| 4264 | "sing a larger th" |
| 4265 | "an block-size ke" |
| 4266 | "y and a larger t" |
| 4267 | "han block-size d" |
| 4268 | "ata. The key nee" |
| 4269 | "ds to be hashed " |
| 4270 | "before being use" |
| 4271 | "d by the HMAC al" |
| 4272 | "gorithm.", |
| 4273 | .psize = 152, |
| 4274 | .digest = "\x38\xa4\x56\xa0\x04\xbd\x10\xd3" |
| 4275 | "\x2c\x9a\xb8\x33\x66\x84\x11\x28" |
| 4276 | "\x62\xc3\xdb\x61\xad\xcc\xa3\x18" |
| 4277 | "\x29\x35\x5e\xaf\x46\xfd\x5c\x73" |
| 4278 | "\xd0\x6a\x1f\x0d\x13\xfe\xc9\xa6" |
| 4279 | "\x52\xfb\x38\x11\xb5\x77\xb1\xb1" |
| 4280 | "\xd1\xb9\x78\x9f\x97\xae\x5b\x83" |
| 4281 | "\xc6\xf4\x4d\xfc\xf1\xd6\x7e\xba", |
| 4282 | }, |
| 4283 | }; |
| 4284 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4285 | /* |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4286 | * Poly1305 test vectors from RFC7539 A.3. |
| 4287 | */ |
| 4288 | |
| 4289 | #define POLY1305_TEST_VECTORS 11 |
| 4290 | |
| 4291 | static struct hash_testvec poly1305_tv_template[] = { |
| 4292 | { /* Test Vector #1 */ |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4293 | .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4294 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4295 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4296 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4297 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4298 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4299 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4300 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4301 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4302 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4303 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4304 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4305 | .psize = 96, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4306 | .digest = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4307 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4308 | }, { /* Test Vector #2 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4309 | .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4310 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4311 | "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4312 | "\xf0\xef\xca\x96\x22\x7a\x86\x3e" |
| 4313 | "\x41\x6e\x79\x20\x73\x75\x62\x6d" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4314 | "\x69\x73\x73\x69\x6f\x6e\x20\x74" |
| 4315 | "\x6f\x20\x74\x68\x65\x20\x49\x45" |
| 4316 | "\x54\x46\x20\x69\x6e\x74\x65\x6e" |
| 4317 | "\x64\x65\x64\x20\x62\x79\x20\x74" |
| 4318 | "\x68\x65\x20\x43\x6f\x6e\x74\x72" |
| 4319 | "\x69\x62\x75\x74\x6f\x72\x20\x66" |
| 4320 | "\x6f\x72\x20\x70\x75\x62\x6c\x69" |
| 4321 | "\x63\x61\x74\x69\x6f\x6e\x20\x61" |
| 4322 | "\x73\x20\x61\x6c\x6c\x20\x6f\x72" |
| 4323 | "\x20\x70\x61\x72\x74\x20\x6f\x66" |
| 4324 | "\x20\x61\x6e\x20\x49\x45\x54\x46" |
| 4325 | "\x20\x49\x6e\x74\x65\x72\x6e\x65" |
| 4326 | "\x74\x2d\x44\x72\x61\x66\x74\x20" |
| 4327 | "\x6f\x72\x20\x52\x46\x43\x20\x61" |
| 4328 | "\x6e\x64\x20\x61\x6e\x79\x20\x73" |
| 4329 | "\x74\x61\x74\x65\x6d\x65\x6e\x74" |
| 4330 | "\x20\x6d\x61\x64\x65\x20\x77\x69" |
| 4331 | "\x74\x68\x69\x6e\x20\x74\x68\x65" |
| 4332 | "\x20\x63\x6f\x6e\x74\x65\x78\x74" |
| 4333 | "\x20\x6f\x66\x20\x61\x6e\x20\x49" |
| 4334 | "\x45\x54\x46\x20\x61\x63\x74\x69" |
| 4335 | "\x76\x69\x74\x79\x20\x69\x73\x20" |
| 4336 | "\x63\x6f\x6e\x73\x69\x64\x65\x72" |
| 4337 | "\x65\x64\x20\x61\x6e\x20\x22\x49" |
| 4338 | "\x45\x54\x46\x20\x43\x6f\x6e\x74" |
| 4339 | "\x72\x69\x62\x75\x74\x69\x6f\x6e" |
| 4340 | "\x22\x2e\x20\x53\x75\x63\x68\x20" |
| 4341 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 4342 | "\x74\x73\x20\x69\x6e\x63\x6c\x75" |
| 4343 | "\x64\x65\x20\x6f\x72\x61\x6c\x20" |
| 4344 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 4345 | "\x74\x73\x20\x69\x6e\x20\x49\x45" |
| 4346 | "\x54\x46\x20\x73\x65\x73\x73\x69" |
| 4347 | "\x6f\x6e\x73\x2c\x20\x61\x73\x20" |
| 4348 | "\x77\x65\x6c\x6c\x20\x61\x73\x20" |
| 4349 | "\x77\x72\x69\x74\x74\x65\x6e\x20" |
| 4350 | "\x61\x6e\x64\x20\x65\x6c\x65\x63" |
| 4351 | "\x74\x72\x6f\x6e\x69\x63\x20\x63" |
| 4352 | "\x6f\x6d\x6d\x75\x6e\x69\x63\x61" |
| 4353 | "\x74\x69\x6f\x6e\x73\x20\x6d\x61" |
| 4354 | "\x64\x65\x20\x61\x74\x20\x61\x6e" |
| 4355 | "\x79\x20\x74\x69\x6d\x65\x20\x6f" |
| 4356 | "\x72\x20\x70\x6c\x61\x63\x65\x2c" |
| 4357 | "\x20\x77\x68\x69\x63\x68\x20\x61" |
| 4358 | "\x72\x65\x20\x61\x64\x64\x72\x65" |
| 4359 | "\x73\x73\x65\x64\x20\x74\x6f", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4360 | .psize = 407, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4361 | .digest = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70" |
| 4362 | "\xf0\xef\xca\x96\x22\x7a\x86\x3e", |
| 4363 | }, { /* Test Vector #3 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4364 | .plaintext = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4365 | "\xf0\xef\xca\x96\x22\x7a\x86\x3e" |
| 4366 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4367 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4368 | "\x41\x6e\x79\x20\x73\x75\x62\x6d" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4369 | "\x69\x73\x73\x69\x6f\x6e\x20\x74" |
| 4370 | "\x6f\x20\x74\x68\x65\x20\x49\x45" |
| 4371 | "\x54\x46\x20\x69\x6e\x74\x65\x6e" |
| 4372 | "\x64\x65\x64\x20\x62\x79\x20\x74" |
| 4373 | "\x68\x65\x20\x43\x6f\x6e\x74\x72" |
| 4374 | "\x69\x62\x75\x74\x6f\x72\x20\x66" |
| 4375 | "\x6f\x72\x20\x70\x75\x62\x6c\x69" |
| 4376 | "\x63\x61\x74\x69\x6f\x6e\x20\x61" |
| 4377 | "\x73\x20\x61\x6c\x6c\x20\x6f\x72" |
| 4378 | "\x20\x70\x61\x72\x74\x20\x6f\x66" |
| 4379 | "\x20\x61\x6e\x20\x49\x45\x54\x46" |
| 4380 | "\x20\x49\x6e\x74\x65\x72\x6e\x65" |
| 4381 | "\x74\x2d\x44\x72\x61\x66\x74\x20" |
| 4382 | "\x6f\x72\x20\x52\x46\x43\x20\x61" |
| 4383 | "\x6e\x64\x20\x61\x6e\x79\x20\x73" |
| 4384 | "\x74\x61\x74\x65\x6d\x65\x6e\x74" |
| 4385 | "\x20\x6d\x61\x64\x65\x20\x77\x69" |
| 4386 | "\x74\x68\x69\x6e\x20\x74\x68\x65" |
| 4387 | "\x20\x63\x6f\x6e\x74\x65\x78\x74" |
| 4388 | "\x20\x6f\x66\x20\x61\x6e\x20\x49" |
| 4389 | "\x45\x54\x46\x20\x61\x63\x74\x69" |
| 4390 | "\x76\x69\x74\x79\x20\x69\x73\x20" |
| 4391 | "\x63\x6f\x6e\x73\x69\x64\x65\x72" |
| 4392 | "\x65\x64\x20\x61\x6e\x20\x22\x49" |
| 4393 | "\x45\x54\x46\x20\x43\x6f\x6e\x74" |
| 4394 | "\x72\x69\x62\x75\x74\x69\x6f\x6e" |
| 4395 | "\x22\x2e\x20\x53\x75\x63\x68\x20" |
| 4396 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 4397 | "\x74\x73\x20\x69\x6e\x63\x6c\x75" |
| 4398 | "\x64\x65\x20\x6f\x72\x61\x6c\x20" |
| 4399 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 4400 | "\x74\x73\x20\x69\x6e\x20\x49\x45" |
| 4401 | "\x54\x46\x20\x73\x65\x73\x73\x69" |
| 4402 | "\x6f\x6e\x73\x2c\x20\x61\x73\x20" |
| 4403 | "\x77\x65\x6c\x6c\x20\x61\x73\x20" |
| 4404 | "\x77\x72\x69\x74\x74\x65\x6e\x20" |
| 4405 | "\x61\x6e\x64\x20\x65\x6c\x65\x63" |
| 4406 | "\x74\x72\x6f\x6e\x69\x63\x20\x63" |
| 4407 | "\x6f\x6d\x6d\x75\x6e\x69\x63\x61" |
| 4408 | "\x74\x69\x6f\x6e\x73\x20\x6d\x61" |
| 4409 | "\x64\x65\x20\x61\x74\x20\x61\x6e" |
| 4410 | "\x79\x20\x74\x69\x6d\x65\x20\x6f" |
| 4411 | "\x72\x20\x70\x6c\x61\x63\x65\x2c" |
| 4412 | "\x20\x77\x68\x69\x63\x68\x20\x61" |
| 4413 | "\x72\x65\x20\x61\x64\x64\x72\x65" |
| 4414 | "\x73\x73\x65\x64\x20\x74\x6f", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4415 | .psize = 407, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4416 | .digest = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf" |
| 4417 | "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0", |
| 4418 | }, { /* Test Vector #4 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4419 | .plaintext = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4420 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 4421 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4422 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0" |
| 4423 | "\x27\x54\x77\x61\x73\x20\x62\x72" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4424 | "\x69\x6c\x6c\x69\x67\x2c\x20\x61" |
| 4425 | "\x6e\x64\x20\x74\x68\x65\x20\x73" |
| 4426 | "\x6c\x69\x74\x68\x79\x20\x74\x6f" |
| 4427 | "\x76\x65\x73\x0a\x44\x69\x64\x20" |
| 4428 | "\x67\x79\x72\x65\x20\x61\x6e\x64" |
| 4429 | "\x20\x67\x69\x6d\x62\x6c\x65\x20" |
| 4430 | "\x69\x6e\x20\x74\x68\x65\x20\x77" |
| 4431 | "\x61\x62\x65\x3a\x0a\x41\x6c\x6c" |
| 4432 | "\x20\x6d\x69\x6d\x73\x79\x20\x77" |
| 4433 | "\x65\x72\x65\x20\x74\x68\x65\x20" |
| 4434 | "\x62\x6f\x72\x6f\x67\x6f\x76\x65" |
| 4435 | "\x73\x2c\x0a\x41\x6e\x64\x20\x74" |
| 4436 | "\x68\x65\x20\x6d\x6f\x6d\x65\x20" |
| 4437 | "\x72\x61\x74\x68\x73\x20\x6f\x75" |
| 4438 | "\x74\x67\x72\x61\x62\x65\x2e", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4439 | .psize = 159, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4440 | .digest = "\x45\x41\x66\x9a\x7e\xaa\xee\x61" |
| 4441 | "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62", |
| 4442 | }, { /* Test Vector #5 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4443 | .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4444 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4445 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4446 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4447 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 4448 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4449 | .psize = 48, |
| 4450 | .digest = "\x03\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4451 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4452 | }, { /* Test Vector #6 */ |
| 4453 | .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00" |
| 4454 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4455 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 4456 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 4457 | "\x02\x00\x00\x00\x00\x00\x00\x00" |
| 4458 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4459 | .psize = 48, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4460 | .digest = "\x03\x00\x00\x00\x00\x00\x00\x00" |
| 4461 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4462 | }, { /* Test Vector #7 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4463 | .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4464 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4465 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4466 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4467 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4468 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 4469 | "\xf0\xff\xff\xff\xff\xff\xff\xff" |
| 4470 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 4471 | "\x11\x00\x00\x00\x00\x00\x00\x00" |
| 4472 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4473 | .psize = 80, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4474 | .digest = "\x05\x00\x00\x00\x00\x00\x00\x00" |
| 4475 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4476 | }, { /* Test Vector #8 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4477 | .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4478 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4479 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4480 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4481 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4482 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 4483 | "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 4484 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 4485 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 4486 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4487 | .psize = 80, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4488 | .digest = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4489 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4490 | }, { /* Test Vector #9 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4491 | .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4492 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4493 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4494 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4495 | "\xfd\xff\xff\xff\xff\xff\xff\xff" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4496 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4497 | .psize = 48, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4498 | .digest = "\xfa\xff\xff\xff\xff\xff\xff\xff" |
| 4499 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 4500 | }, { /* Test Vector #10 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4501 | .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4502 | "\x04\x00\x00\x00\x00\x00\x00\x00" |
| 4503 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4504 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4505 | "\xe3\x35\x94\xd7\x50\x5e\x43\xb9" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4506 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4507 | "\x33\x94\xd7\x50\x5e\x43\x79\xcd" |
| 4508 | "\x01\x00\x00\x00\x00\x00\x00\x00" |
| 4509 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4510 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4511 | "\x01\x00\x00\x00\x00\x00\x00\x00" |
| 4512 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4513 | .psize = 96, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4514 | .digest = "\x14\x00\x00\x00\x00\x00\x00\x00" |
| 4515 | "\x55\x00\x00\x00\x00\x00\x00\x00", |
| 4516 | }, { /* Test Vector #11 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4517 | .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4518 | "\x04\x00\x00\x00\x00\x00\x00\x00" |
| 4519 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4520 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4521 | "\xe3\x35\x94\xd7\x50\x5e\x43\xb9" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4522 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4523 | "\x33\x94\xd7\x50\x5e\x43\x79\xcd" |
| 4524 | "\x01\x00\x00\x00\x00\x00\x00\x00" |
| 4525 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 4526 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 4527 | .psize = 80, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 4528 | .digest = "\x13\x00\x00\x00\x00\x00\x00\x00" |
| 4529 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4530 | }, |
| 4531 | }; |
| 4532 | |
| 4533 | /* |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4534 | * DES test vectors. |
| 4535 | */ |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 4536 | #define DES_ENC_TEST_VECTORS 11 |
| 4537 | #define DES_DEC_TEST_VECTORS 5 |
| 4538 | #define DES_CBC_ENC_TEST_VECTORS 6 |
| 4539 | #define DES_CBC_DEC_TEST_VECTORS 5 |
| 4540 | #define DES_CTR_ENC_TEST_VECTORS 2 |
| 4541 | #define DES_CTR_DEC_TEST_VECTORS 2 |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 4542 | #define DES3_EDE_ENC_TEST_VECTORS 4 |
| 4543 | #define DES3_EDE_DEC_TEST_VECTORS 4 |
| 4544 | #define DES3_EDE_CBC_ENC_TEST_VECTORS 2 |
| 4545 | #define DES3_EDE_CBC_DEC_TEST_VECTORS 2 |
| 4546 | #define DES3_EDE_CTR_ENC_TEST_VECTORS 2 |
| 4547 | #define DES3_EDE_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4548 | |
| 4549 | static struct cipher_testvec des_enc_tv_template[] = { |
| 4550 | { /* From Applied Cryptography */ |
| 4551 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4552 | .klen = 8, |
| 4553 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 4554 | .ilen = 8, |
| 4555 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 4556 | .rlen = 8, |
| 4557 | }, { /* Same key, different plaintext block */ |
| 4558 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4559 | .klen = 8, |
| 4560 | .input = "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 4561 | .ilen = 8, |
| 4562 | .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 4563 | .rlen = 8, |
| 4564 | }, { /* Sbox test from NBS */ |
| 4565 | .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57", |
| 4566 | .klen = 8, |
| 4567 | .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42", |
| 4568 | .ilen = 8, |
| 4569 | .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 4570 | .rlen = 8, |
| 4571 | }, { /* Three blocks */ |
| 4572 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4573 | .klen = 8, |
| 4574 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 4575 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 4576 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef", |
| 4577 | .ilen = 24, |
| 4578 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 4579 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 4580 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90", |
| 4581 | .rlen = 24, |
| 4582 | }, { /* Weak key */ |
David Howells | 09e2178 | 2015-04-28 15:36:36 +0100 | [diff] [blame] | 4583 | .fail = true, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4584 | .wk = 1, |
| 4585 | .key = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 4586 | .klen = 8, |
| 4587 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 4588 | .ilen = 8, |
| 4589 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 4590 | .rlen = 8, |
| 4591 | }, { /* Two blocks -- for testing encryption across pages */ |
| 4592 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4593 | .klen = 8, |
| 4594 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 4595 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 4596 | .ilen = 16, |
| 4597 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 4598 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 4599 | .rlen = 16, |
| 4600 | .np = 2, |
| 4601 | .tap = { 8, 8 } |
| 4602 | }, { /* Four blocks -- for testing encryption with chunking */ |
| 4603 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4604 | .klen = 8, |
| 4605 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 4606 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 4607 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef" |
| 4608 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 4609 | .ilen = 32, |
| 4610 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 4611 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 4612 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90" |
| 4613 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 4614 | .rlen = 32, |
| 4615 | .np = 3, |
| 4616 | .tap = { 14, 10, 8 } |
| 4617 | }, { |
| 4618 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4619 | .klen = 8, |
| 4620 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 4621 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 4622 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef", |
| 4623 | .ilen = 24, |
| 4624 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 4625 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 4626 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90", |
| 4627 | .rlen = 24, |
| 4628 | .np = 4, |
| 4629 | .tap = { 2, 1, 3, 18 } |
| 4630 | }, { |
| 4631 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4632 | .klen = 8, |
| 4633 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 4634 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 4635 | .ilen = 16, |
| 4636 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 4637 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 4638 | .rlen = 16, |
| 4639 | .np = 5, |
| 4640 | .tap = { 2, 2, 2, 2, 8 } |
| 4641 | }, { |
| 4642 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4643 | .klen = 8, |
| 4644 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 4645 | .ilen = 8, |
| 4646 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 4647 | .rlen = 8, |
| 4648 | .np = 8, |
| 4649 | .tap = { 1, 1, 1, 1, 1, 1, 1, 1 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 4650 | }, { /* Generated with Crypto++ */ |
| 4651 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 4652 | .klen = 8, |
| 4653 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 4654 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 4655 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 4656 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 4657 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 4658 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 4659 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 4660 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 4661 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 4662 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 4663 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 4664 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 4665 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 4666 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 4667 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 4668 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 4669 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 4670 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 4671 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 4672 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 4673 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 4674 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 4675 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 4676 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 4677 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 4678 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 4679 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 4680 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 4681 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 4682 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 4683 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 4684 | .ilen = 248, |
| 4685 | .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57" |
| 4686 | "\x92\xB9\x77\xFF\x2F\x47\x58\xDD" |
| 4687 | "\xD7\x8A\x91\x95\x26\x33\x78\xB2" |
| 4688 | "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF" |
| 4689 | "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3" |
| 4690 | "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55" |
| 4691 | "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD" |
| 4692 | "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8" |
| 4693 | "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9" |
| 4694 | "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94" |
| 4695 | "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4" |
| 4696 | "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC" |
| 4697 | "\x73\x58\x11\x1F\x81\xD7\x21\x1A" |
| 4698 | "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5" |
| 4699 | "\x2E\x51\x16\xCA\x09\x89\x54\x62" |
| 4700 | "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4" |
| 4701 | "\x62\xF0\x02\x58\x83\xAF\x30\x87" |
| 4702 | "\x85\x3F\x01\xCD\x8E\x58\x42\xC4" |
| 4703 | "\x41\x73\xE0\x15\x0A\xE6\x2E\x80" |
| 4704 | "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2" |
| 4705 | "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E" |
| 4706 | "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F" |
| 4707 | "\x14\xA0\x66\xAB\x79\x39\xD0\x8E" |
| 4708 | "\xE9\x95\x61\x74\x12\xED\x07\xD7" |
| 4709 | "\xDD\x95\xDC\x7B\x57\x25\x27\x9C" |
| 4710 | "\x51\x96\x16\xF7\x94\x61\xB8\x87" |
| 4711 | "\xF0\x21\x1B\x32\xFB\x07\x0F\x29" |
| 4712 | "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9" |
| 4713 | "\x46\x31\x4C\x5E\x2E\x95\x61\xEF" |
| 4714 | "\xE1\x58\x39\x09\xB4\x8B\x40\xAC" |
| 4715 | "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A", |
| 4716 | .rlen = 248, |
| 4717 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 4718 | .np = 3, |
| 4719 | .tap = { 248 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4720 | }, |
| 4721 | }; |
| 4722 | |
| 4723 | static struct cipher_testvec des_dec_tv_template[] = { |
| 4724 | { /* From Applied Cryptography */ |
| 4725 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4726 | .klen = 8, |
| 4727 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 4728 | .ilen = 8, |
| 4729 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 4730 | .rlen = 8, |
| 4731 | }, { /* Sbox test from NBS */ |
| 4732 | .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57", |
| 4733 | .klen = 8, |
| 4734 | .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 4735 | .ilen = 8, |
| 4736 | .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42", |
| 4737 | .rlen = 8, |
| 4738 | }, { /* Two blocks, for chunking test */ |
| 4739 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4740 | .klen = 8, |
| 4741 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 4742 | "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 4743 | .ilen = 16, |
| 4744 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 4745 | "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5", |
| 4746 | .rlen = 16, |
| 4747 | .np = 2, |
| 4748 | .tap = { 8, 8 } |
| 4749 | }, { |
| 4750 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4751 | .klen = 8, |
| 4752 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 4753 | "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 4754 | .ilen = 16, |
| 4755 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 4756 | "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5", |
| 4757 | .rlen = 16, |
| 4758 | .np = 3, |
| 4759 | .tap = { 3, 12, 1 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 4760 | }, { /* Generated with Crypto++ */ |
| 4761 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 4762 | .klen = 8, |
| 4763 | .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57" |
| 4764 | "\x92\xB9\x77\xFF\x2F\x47\x58\xDD" |
| 4765 | "\xD7\x8A\x91\x95\x26\x33\x78\xB2" |
| 4766 | "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF" |
| 4767 | "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3" |
| 4768 | "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55" |
| 4769 | "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD" |
| 4770 | "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8" |
| 4771 | "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9" |
| 4772 | "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94" |
| 4773 | "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4" |
| 4774 | "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC" |
| 4775 | "\x73\x58\x11\x1F\x81\xD7\x21\x1A" |
| 4776 | "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5" |
| 4777 | "\x2E\x51\x16\xCA\x09\x89\x54\x62" |
| 4778 | "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4" |
| 4779 | "\x62\xF0\x02\x58\x83\xAF\x30\x87" |
| 4780 | "\x85\x3F\x01\xCD\x8E\x58\x42\xC4" |
| 4781 | "\x41\x73\xE0\x15\x0A\xE6\x2E\x80" |
| 4782 | "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2" |
| 4783 | "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E" |
| 4784 | "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F" |
| 4785 | "\x14\xA0\x66\xAB\x79\x39\xD0\x8E" |
| 4786 | "\xE9\x95\x61\x74\x12\xED\x07\xD7" |
| 4787 | "\xDD\x95\xDC\x7B\x57\x25\x27\x9C" |
| 4788 | "\x51\x96\x16\xF7\x94\x61\xB8\x87" |
| 4789 | "\xF0\x21\x1B\x32\xFB\x07\x0F\x29" |
| 4790 | "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9" |
| 4791 | "\x46\x31\x4C\x5E\x2E\x95\x61\xEF" |
| 4792 | "\xE1\x58\x39\x09\xB4\x8B\x40\xAC" |
| 4793 | "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A", |
| 4794 | .ilen = 248, |
| 4795 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 4796 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 4797 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 4798 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 4799 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 4800 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 4801 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 4802 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 4803 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 4804 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 4805 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 4806 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 4807 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 4808 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 4809 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 4810 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 4811 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 4812 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 4813 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 4814 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 4815 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 4816 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 4817 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 4818 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 4819 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 4820 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 4821 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 4822 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 4823 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 4824 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 4825 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 4826 | .rlen = 248, |
| 4827 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 4828 | .np = 3, |
| 4829 | .tap = { 248 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4830 | }, |
| 4831 | }; |
| 4832 | |
| 4833 | static struct cipher_testvec des_cbc_enc_tv_template[] = { |
| 4834 | { /* From OpenSSL */ |
| 4835 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4836 | .klen = 8, |
| 4837 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 4838 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 4839 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 4840 | "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 4841 | .ilen = 24, |
| 4842 | .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4" |
| 4843 | "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb" |
| 4844 | "\x46\x8e\x91\x15\x78\x88\xba\x68", |
| 4845 | .rlen = 24, |
| 4846 | }, { /* FIPS Pub 81 */ |
| 4847 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4848 | .klen = 8, |
| 4849 | .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef", |
| 4850 | .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74", |
| 4851 | .ilen = 8, |
| 4852 | .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 4853 | .rlen = 8, |
| 4854 | }, { |
| 4855 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4856 | .klen = 8, |
| 4857 | .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 4858 | .input = "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 4859 | .ilen = 8, |
| 4860 | .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 4861 | .rlen = 8, |
| 4862 | }, { |
| 4863 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4864 | .klen = 8, |
| 4865 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 4866 | .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 4867 | .ilen = 8, |
| 4868 | .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 4869 | .rlen = 8, |
| 4870 | }, { /* Copy of openssl vector for chunk testing */ |
| 4871 | /* From OpenSSL */ |
| 4872 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4873 | .klen = 8, |
| 4874 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 4875 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 4876 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 4877 | "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 4878 | .ilen = 24, |
| 4879 | .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4" |
| 4880 | "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb" |
| 4881 | "\x46\x8e\x91\x15\x78\x88\xba\x68", |
| 4882 | .rlen = 24, |
| 4883 | .np = 2, |
| 4884 | .tap = { 13, 11 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 4885 | }, { /* Generated with Crypto++ */ |
| 4886 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 4887 | .klen = 8, |
| 4888 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 4889 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 4890 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 4891 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 4892 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 4893 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 4894 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 4895 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 4896 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 4897 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 4898 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 4899 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 4900 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 4901 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 4902 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 4903 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 4904 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 4905 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 4906 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 4907 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 4908 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 4909 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 4910 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 4911 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 4912 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 4913 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 4914 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 4915 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 4916 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 4917 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 4918 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 4919 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 4920 | .ilen = 248, |
| 4921 | .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20" |
| 4922 | "\x1C\x20\x13\x09\xF9\x2B\x40\x47" |
| 4923 | "\x99\x10\xD1\x1B\x65\x33\x33\xBA" |
| 4924 | "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4" |
| 4925 | "\x5A\x0C\x12\x96\x32\x57\xAA\x26" |
| 4926 | "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E" |
| 4927 | "\x81\x72\x74\xDE\x30\x19\x69\x49" |
| 4928 | "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1" |
| 4929 | "\xE8\x6D\x0D\x05\x83\xA5\x12\x08" |
| 4930 | "\x47\xF8\x88\x03\x86\x51\x3C\xEF" |
| 4931 | "\xE7\x11\x73\x4D\x44\x2B\xE2\x16" |
| 4932 | "\xE8\xA5\x06\x50\x66\x70\x0E\x14" |
| 4933 | "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F" |
| 4934 | "\x56\xB6\xA7\x44\xDB\x86\xAB\x69" |
| 4935 | "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE" |
| 4936 | "\x49\x90\x88\x6A\x09\x8F\x76\x59" |
| 4937 | "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A" |
| 4938 | "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B" |
| 4939 | "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63" |
| 4940 | "\x80\x02\x61\x2F\xE3\x46\xB6\xB5" |
| 4941 | "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F" |
| 4942 | "\x20\xCF\xD2\x47\x4E\x39\x65\xB3" |
| 4943 | "\x11\x87\xA2\x6C\x49\x7E\x36\xC7" |
| 4944 | "\x62\x8B\x48\x0D\x6A\x64\x00\xBD" |
| 4945 | "\x71\x91\x8C\xE9\x70\x19\x01\x4F" |
| 4946 | "\x4E\x68\x23\xBA\xDA\x24\x2E\x45" |
| 4947 | "\x02\x14\x33\x21\xAE\x58\x4B\xCF" |
| 4948 | "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93" |
| 4949 | "\xD7\x07\x8A\xD7\x18\x92\x36\x8C" |
| 4950 | "\x82\xA9\xBD\x6A\x31\x91\x39\x11" |
| 4951 | "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63", |
| 4952 | .rlen = 248, |
| 4953 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 4954 | .np = 3, |
| 4955 | .tap = { 248 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4956 | }, |
| 4957 | }; |
| 4958 | |
| 4959 | static struct cipher_testvec des_cbc_dec_tv_template[] = { |
| 4960 | { /* FIPS Pub 81 */ |
| 4961 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4962 | .klen = 8, |
| 4963 | .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef", |
| 4964 | .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 4965 | .ilen = 8, |
| 4966 | .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74", |
| 4967 | .rlen = 8, |
| 4968 | }, { |
| 4969 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4970 | .klen = 8, |
| 4971 | .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 4972 | .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 4973 | .ilen = 8, |
| 4974 | .result = "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 4975 | .rlen = 8, |
| 4976 | }, { |
| 4977 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4978 | .klen = 8, |
| 4979 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 4980 | .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 4981 | .ilen = 8, |
| 4982 | .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 4983 | .rlen = 8, |
| 4984 | }, { /* Copy of above, for chunk testing */ |
| 4985 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 4986 | .klen = 8, |
| 4987 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 4988 | .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 4989 | .ilen = 8, |
| 4990 | .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 4991 | .rlen = 8, |
| 4992 | .np = 2, |
| 4993 | .tap = { 4, 4 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 4994 | }, { /* Generated with Crypto++ */ |
| 4995 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 4996 | .klen = 8, |
| 4997 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 4998 | .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20" |
| 4999 | "\x1C\x20\x13\x09\xF9\x2B\x40\x47" |
| 5000 | "\x99\x10\xD1\x1B\x65\x33\x33\xBA" |
| 5001 | "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4" |
| 5002 | "\x5A\x0C\x12\x96\x32\x57\xAA\x26" |
| 5003 | "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E" |
| 5004 | "\x81\x72\x74\xDE\x30\x19\x69\x49" |
| 5005 | "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1" |
| 5006 | "\xE8\x6D\x0D\x05\x83\xA5\x12\x08" |
| 5007 | "\x47\xF8\x88\x03\x86\x51\x3C\xEF" |
| 5008 | "\xE7\x11\x73\x4D\x44\x2B\xE2\x16" |
| 5009 | "\xE8\xA5\x06\x50\x66\x70\x0E\x14" |
| 5010 | "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F" |
| 5011 | "\x56\xB6\xA7\x44\xDB\x86\xAB\x69" |
| 5012 | "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE" |
| 5013 | "\x49\x90\x88\x6A\x09\x8F\x76\x59" |
| 5014 | "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A" |
| 5015 | "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B" |
| 5016 | "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63" |
| 5017 | "\x80\x02\x61\x2F\xE3\x46\xB6\xB5" |
| 5018 | "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F" |
| 5019 | "\x20\xCF\xD2\x47\x4E\x39\x65\xB3" |
| 5020 | "\x11\x87\xA2\x6C\x49\x7E\x36\xC7" |
| 5021 | "\x62\x8B\x48\x0D\x6A\x64\x00\xBD" |
| 5022 | "\x71\x91\x8C\xE9\x70\x19\x01\x4F" |
| 5023 | "\x4E\x68\x23\xBA\xDA\x24\x2E\x45" |
| 5024 | "\x02\x14\x33\x21\xAE\x58\x4B\xCF" |
| 5025 | "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93" |
| 5026 | "\xD7\x07\x8A\xD7\x18\x92\x36\x8C" |
| 5027 | "\x82\xA9\xBD\x6A\x31\x91\x39\x11" |
| 5028 | "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63", |
| 5029 | .ilen = 248, |
| 5030 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 5031 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 5032 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 5033 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 5034 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 5035 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 5036 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 5037 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 5038 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 5039 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 5040 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 5041 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 5042 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 5043 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 5044 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 5045 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 5046 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 5047 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 5048 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 5049 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 5050 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 5051 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 5052 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 5053 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 5054 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 5055 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 5056 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 5057 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 5058 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 5059 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 5060 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 5061 | .rlen = 248, |
| 5062 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5063 | .np = 3, |
| 5064 | .tap = { 248 - 10, 2, 8 }, |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 5065 | }, |
| 5066 | }; |
| 5067 | |
| 5068 | static struct cipher_testvec des_ctr_enc_tv_template[] = { |
| 5069 | { /* Generated with Crypto++ */ |
| 5070 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 5071 | .klen = 8, |
| 5072 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 5073 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 5074 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 5075 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 5076 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 5077 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 5078 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 5079 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 5080 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 5081 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 5082 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 5083 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 5084 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 5085 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 5086 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 5087 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 5088 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 5089 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 5090 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 5091 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 5092 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 5093 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 5094 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 5095 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 5096 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 5097 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 5098 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 5099 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 5100 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 5101 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 5102 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 5103 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 5104 | .ilen = 248, |
| 5105 | .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03" |
| 5106 | "\x0F\x31\xD4\x64\xA5\x29\x77\x35" |
| 5107 | "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E" |
| 5108 | "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02" |
| 5109 | "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C" |
| 5110 | "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47" |
| 5111 | "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B" |
| 5112 | "\xC8\x0F\x85\xDC\x03\x13\xA9\x04" |
| 5113 | "\x19\x40\xBE\xBE\x5C\x49\x4A\x69" |
| 5114 | "\xED\xE8\xE1\x9E\x14\x43\x74\xDE" |
| 5115 | "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB" |
| 5116 | "\xBE\x4C\x91\x43\x22\x65\x72\x48" |
| 5117 | "\xE2\x12\xED\x88\xAC\xA7\xC9\x91" |
| 5118 | "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F" |
| 5119 | "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA" |
| 5120 | "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C" |
| 5121 | "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31" |
| 5122 | "\xB7\x30\x1C\x21\x38\xFB\x68\x8C" |
| 5123 | "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12" |
| 5124 | "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86" |
| 5125 | "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B" |
| 5126 | "\x96\x28\x72\x6B\xF3\x30\xA9\xEB" |
| 5127 | "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7" |
| 5128 | "\xC0\xEF\x07\xB7\x77\x2C\x00\x05" |
| 5129 | "\x46\xBD\xFE\x53\x81\x8B\xA4\x03" |
| 5130 | "\x20\x0F\xDB\x78\x0B\x1F\x53\x04" |
| 5131 | "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E" |
| 5132 | "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2" |
| 5133 | "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD" |
| 5134 | "\x19\x7F\x99\x19\x53\xCE\x1D\x14" |
| 5135 | "\x69\x74\xA1\x06\x46\x0F\x4E\x75", |
| 5136 | .rlen = 248, |
| 5137 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5138 | .np = 3, |
| 5139 | .tap = { 248 - 10, 2, 8 }, |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 5140 | }, { /* Generated with Crypto++ */ |
| 5141 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 5142 | .klen = 8, |
| 5143 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 5144 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 5145 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 5146 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 5147 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 5148 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 5149 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 5150 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 5151 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 5152 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 5153 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 5154 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 5155 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 5156 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 5157 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 5158 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 5159 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 5160 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 5161 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 5162 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 5163 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 5164 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 5165 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 5166 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 5167 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 5168 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 5169 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 5170 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 5171 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 5172 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 5173 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 5174 | "\xC6\x2F\xBB\x24\x8D\x19\x82", |
| 5175 | .ilen = 247, |
| 5176 | .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3" |
| 5177 | "\xF4\x10\xCC\x21\x99\xEB\xDC\x15" |
| 5178 | "\x19\x13\x93\x27\x9D\xB6\x6F\x45" |
| 5179 | "\x17\x55\x61\x72\xC8\xD3\x7F\xA5" |
| 5180 | "\x32\xD0\xD3\x02\x15\xA4\x05\x23" |
| 5181 | "\x9C\x23\x61\x60\x77\x7B\x6C\x95" |
| 5182 | "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D" |
| 5183 | "\xC8\x47\xD5\x94\xE7\x53\xC8\x23" |
| 5184 | "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12" |
| 5185 | "\xA4\x42\x15\x34\xF7\x5F\xDC\x58" |
| 5186 | "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6" |
| 5187 | "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8" |
| 5188 | "\x02\x82\xBB\x16\xB8\xDC\xB5\x58" |
| 5189 | "\xC3\x2D\x79\xE4\x25\x79\x43\xF9" |
| 5190 | "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E" |
| 5191 | "\x04\x25\x79\xFD\x27\xFB\xC4\xEA" |
| 5192 | "\x32\x94\x48\x92\xF3\x68\x1A\x7F" |
| 5193 | "\x36\x33\x43\x79\xF7\xCA\xC2\x38" |
| 5194 | "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C" |
| 5195 | "\x40\x57\x3E\xED\x00\x9F\x22\x6E" |
| 5196 | "\x80\x99\x0B\xCC\x40\x63\x46\x8A" |
| 5197 | "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9" |
| 5198 | "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D" |
| 5199 | "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C" |
| 5200 | "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A" |
| 5201 | "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E" |
| 5202 | "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0" |
| 5203 | "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7" |
| 5204 | "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94" |
| 5205 | "\xA5\xA6\xE7\xB0\x51\x36\x52\x37" |
| 5206 | "\x91\x45\x05\x3E\x58\xBF\x32", |
| 5207 | .rlen = 247, |
| 5208 | .also_non_np = 1, |
| 5209 | .np = 2, |
| 5210 | .tap = { 247 - 8, 8 }, |
| 5211 | }, |
| 5212 | }; |
| 5213 | |
| 5214 | static struct cipher_testvec des_ctr_dec_tv_template[] = { |
| 5215 | { /* Generated with Crypto++ */ |
| 5216 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 5217 | .klen = 8, |
| 5218 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 5219 | .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03" |
| 5220 | "\x0F\x31\xD4\x64\xA5\x29\x77\x35" |
| 5221 | "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E" |
| 5222 | "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02" |
| 5223 | "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C" |
| 5224 | "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47" |
| 5225 | "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B" |
| 5226 | "\xC8\x0F\x85\xDC\x03\x13\xA9\x04" |
| 5227 | "\x19\x40\xBE\xBE\x5C\x49\x4A\x69" |
| 5228 | "\xED\xE8\xE1\x9E\x14\x43\x74\xDE" |
| 5229 | "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB" |
| 5230 | "\xBE\x4C\x91\x43\x22\x65\x72\x48" |
| 5231 | "\xE2\x12\xED\x88\xAC\xA7\xC9\x91" |
| 5232 | "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F" |
| 5233 | "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA" |
| 5234 | "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C" |
| 5235 | "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31" |
| 5236 | "\xB7\x30\x1C\x21\x38\xFB\x68\x8C" |
| 5237 | "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12" |
| 5238 | "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86" |
| 5239 | "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B" |
| 5240 | "\x96\x28\x72\x6B\xF3\x30\xA9\xEB" |
| 5241 | "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7" |
| 5242 | "\xC0\xEF\x07\xB7\x77\x2C\x00\x05" |
| 5243 | "\x46\xBD\xFE\x53\x81\x8B\xA4\x03" |
| 5244 | "\x20\x0F\xDB\x78\x0B\x1F\x53\x04" |
| 5245 | "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E" |
| 5246 | "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2" |
| 5247 | "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD" |
| 5248 | "\x19\x7F\x99\x19\x53\xCE\x1D\x14" |
| 5249 | "\x69\x74\xA1\x06\x46\x0F\x4E\x75", |
| 5250 | .ilen = 248, |
| 5251 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 5252 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 5253 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 5254 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 5255 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 5256 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 5257 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 5258 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 5259 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 5260 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 5261 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 5262 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 5263 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 5264 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 5265 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 5266 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 5267 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 5268 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 5269 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 5270 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 5271 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 5272 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 5273 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 5274 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 5275 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 5276 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 5277 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 5278 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 5279 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 5280 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 5281 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 5282 | .rlen = 248, |
| 5283 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5284 | .np = 3, |
| 5285 | .tap = { 248 - 10, 2, 8 }, |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 5286 | }, { /* Generated with Crypto++ */ |
| 5287 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 5288 | .klen = 8, |
| 5289 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 5290 | .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3" |
| 5291 | "\xF4\x10\xCC\x21\x99\xEB\xDC\x15" |
| 5292 | "\x19\x13\x93\x27\x9D\xB6\x6F\x45" |
| 5293 | "\x17\x55\x61\x72\xC8\xD3\x7F\xA5" |
| 5294 | "\x32\xD0\xD3\x02\x15\xA4\x05\x23" |
| 5295 | "\x9C\x23\x61\x60\x77\x7B\x6C\x95" |
| 5296 | "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D" |
| 5297 | "\xC8\x47\xD5\x94\xE7\x53\xC8\x23" |
| 5298 | "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12" |
| 5299 | "\xA4\x42\x15\x34\xF7\x5F\xDC\x58" |
| 5300 | "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6" |
| 5301 | "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8" |
| 5302 | "\x02\x82\xBB\x16\xB8\xDC\xB5\x58" |
| 5303 | "\xC3\x2D\x79\xE4\x25\x79\x43\xF9" |
| 5304 | "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E" |
| 5305 | "\x04\x25\x79\xFD\x27\xFB\xC4\xEA" |
| 5306 | "\x32\x94\x48\x92\xF3\x68\x1A\x7F" |
| 5307 | "\x36\x33\x43\x79\xF7\xCA\xC2\x38" |
| 5308 | "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C" |
| 5309 | "\x40\x57\x3E\xED\x00\x9F\x22\x6E" |
| 5310 | "\x80\x99\x0B\xCC\x40\x63\x46\x8A" |
| 5311 | "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9" |
| 5312 | "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D" |
| 5313 | "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C" |
| 5314 | "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A" |
| 5315 | "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E" |
| 5316 | "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0" |
| 5317 | "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7" |
| 5318 | "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94" |
| 5319 | "\xA5\xA6\xE7\xB0\x51\x36\x52\x37" |
| 5320 | "\x91\x45\x05\x3E\x58\xBF\x32", |
| 5321 | .ilen = 247, |
| 5322 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 5323 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 5324 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 5325 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 5326 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 5327 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 5328 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 5329 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 5330 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 5331 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 5332 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 5333 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 5334 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 5335 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 5336 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 5337 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 5338 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 5339 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 5340 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 5341 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 5342 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 5343 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 5344 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 5345 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 5346 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 5347 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 5348 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 5349 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 5350 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 5351 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 5352 | "\xC6\x2F\xBB\x24\x8D\x19\x82", |
| 5353 | .rlen = 247, |
| 5354 | .also_non_np = 1, |
| 5355 | .np = 2, |
| 5356 | .tap = { 247 - 8, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5357 | }, |
| 5358 | }; |
| 5359 | |
| 5360 | static struct cipher_testvec des3_ede_enc_tv_template[] = { |
| 5361 | { /* These are from openssl */ |
| 5362 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 5363 | "\x55\x55\x55\x55\x55\x55\x55\x55" |
| 5364 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5365 | .klen = 24, |
| 5366 | .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61", |
| 5367 | .ilen = 8, |
| 5368 | .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72", |
| 5369 | .rlen = 8, |
| 5370 | }, { |
| 5371 | .key = "\x03\x52\x02\x07\x67\x20\x82\x17" |
| 5372 | "\x86\x02\x87\x66\x59\x08\x21\x98" |
| 5373 | "\x64\x05\x6a\xbd\xfe\xa9\x34\x57", |
| 5374 | .klen = 24, |
| 5375 | .input = "\x73\x71\x75\x69\x67\x67\x6c\x65", |
| 5376 | .ilen = 8, |
| 5377 | .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30", |
| 5378 | .rlen = 8, |
| 5379 | }, { |
| 5380 | .key = "\x10\x46\x10\x34\x89\x98\x80\x20" |
| 5381 | "\x91\x07\xd0\x15\x89\x19\x01\x01" |
| 5382 | "\x19\x07\x92\x10\x98\x1a\x01\x01", |
| 5383 | .klen = 24, |
| 5384 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5385 | .ilen = 8, |
| 5386 | .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b", |
| 5387 | .rlen = 8, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 5388 | }, { /* Generated with Crypto++ */ |
| 5389 | .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67" |
| 5390 | "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D" |
| 5391 | "\xCE\xEB\xB4\x51\x72\xB4\x51\x72", |
| 5392 | .klen = 24, |
| 5393 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 5394 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 5395 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 5396 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 5397 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 5398 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 5399 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 5400 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 5401 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 5402 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 5403 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 5404 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 5405 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 5406 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 5407 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 5408 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 5409 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 5410 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 5411 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 5412 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 5413 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 5414 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 5415 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 5416 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 5417 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 5418 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 5419 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 5420 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 5421 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 5422 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 5423 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 5424 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 5425 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 5426 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 5427 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 5428 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 5429 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 5430 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 5431 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 5432 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 5433 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 5434 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 5435 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 5436 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 5437 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 5438 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 5439 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 5440 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 5441 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 5442 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 5443 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 5444 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 5445 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 5446 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 5447 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 5448 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 5449 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 5450 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 5451 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 5452 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 5453 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 5454 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 5455 | .ilen = 496, |
| 5456 | .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA" |
| 5457 | "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4" |
| 5458 | "\x81\x01\x04\x00\x76\xFA\xED\xD3" |
| 5459 | "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64" |
| 5460 | "\xCA\x4E\x90\xE0\xC0\x63\x28\x92" |
| 5461 | "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77" |
| 5462 | "\x69\x56\xD0\x19\xAD\x00\x2D\x97" |
| 5463 | "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2" |
| 5464 | "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B" |
| 5465 | "\xEA\x32\x56\xE4\x0B\xAF\x27\x36" |
| 5466 | "\xAF\x08\xB9\x61\xB7\x48\x23\x27" |
| 5467 | "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7" |
| 5468 | "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6" |
| 5469 | "\x9D\xDA\x04\x59\xE2\x09\x48\x7E" |
| 5470 | "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E" |
| 5471 | "\x0D\x19\xFA\x33\x0F\xEE\x36\x68" |
| 5472 | "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA" |
| 5473 | "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16" |
| 5474 | "\x45\x86\x50\x01\x70\x35\x99\x92" |
| 5475 | "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B" |
| 5476 | "\xD2\x04\x84\x90\xC4\x27\xDF\x0A" |
| 5477 | "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA" |
| 5478 | "\xB3\x18\x5C\xC3\x93\x63\x5A\x68" |
| 5479 | "\x77\x02\xBA\xED\x62\x71\xB1\xD9" |
| 5480 | "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E" |
| 5481 | "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4" |
| 5482 | "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70" |
| 5483 | "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD" |
| 5484 | "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1" |
| 5485 | "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2" |
| 5486 | "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52" |
| 5487 | "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3" |
| 5488 | "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F" |
| 5489 | "\xDB\xEA\x84\x13\x26\x6C\x85\x4E" |
| 5490 | "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06" |
| 5491 | "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2" |
| 5492 | "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C" |
| 5493 | "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5" |
| 5494 | "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7" |
| 5495 | "\xD1\x17\x25\x08\xF9\xA9\xA6\x67" |
| 5496 | "\x38\x80\xD1\x22\xAB\x1A\xD7\x26" |
| 5497 | "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57" |
| 5498 | "\x31\xEC\xC9\xED\xDB\x79\xC0\x48" |
| 5499 | "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E" |
| 5500 | "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC" |
| 5501 | "\x58\xC8\xDE\x51\x4E\x17\x15\x11" |
| 5502 | "\x66\x58\xB6\x90\xDC\xDF\xA1\x49" |
| 5503 | "\xCA\x79\xE9\x31\x31\x42\xDC\x56" |
| 5504 | "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19" |
| 5505 | "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90" |
| 5506 | "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B" |
| 5507 | "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46" |
| 5508 | "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84" |
| 5509 | "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA" |
| 5510 | "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F" |
| 5511 | "\xE4\x82\x77\xCE\x87\xC0\x09\xF0" |
| 5512 | "\xD6\x10\x9E\x34\xE1\x0C\x67\x55" |
| 5513 | "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA" |
| 5514 | "\xF2\x7B\xBE\x75\x07\x42\x9D\x99" |
| 5515 | "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6" |
| 5516 | "\x93\x03\xD7\x51\x09\xFA\xBE\x68" |
| 5517 | "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63", |
| 5518 | .rlen = 496, |
| 5519 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5520 | .np = 3, |
| 5521 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5522 | }, |
| 5523 | }; |
| 5524 | |
| 5525 | static struct cipher_testvec des3_ede_dec_tv_template[] = { |
| 5526 | { /* These are from openssl */ |
| 5527 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 5528 | "\x55\x55\x55\x55\x55\x55\x55\x55" |
| 5529 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5530 | .klen = 24, |
| 5531 | .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72", |
| 5532 | .ilen = 8, |
| 5533 | .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61", |
| 5534 | .rlen = 8, |
| 5535 | }, { |
| 5536 | .key = "\x03\x52\x02\x07\x67\x20\x82\x17" |
| 5537 | "\x86\x02\x87\x66\x59\x08\x21\x98" |
| 5538 | "\x64\x05\x6a\xbd\xfe\xa9\x34\x57", |
| 5539 | .klen = 24, |
| 5540 | .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30", |
| 5541 | .ilen = 8, |
| 5542 | .result = "\x73\x71\x75\x69\x67\x67\x6c\x65", |
| 5543 | .rlen = 8, |
| 5544 | }, { |
| 5545 | .key = "\x10\x46\x10\x34\x89\x98\x80\x20" |
| 5546 | "\x91\x07\xd0\x15\x89\x19\x01\x01" |
| 5547 | "\x19\x07\x92\x10\x98\x1a\x01\x01", |
| 5548 | .klen = 24, |
| 5549 | .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b", |
| 5550 | .ilen = 8, |
| 5551 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5552 | .rlen = 8, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 5553 | }, { /* Generated with Crypto++ */ |
| 5554 | .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67" |
| 5555 | "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D" |
| 5556 | "\xCE\xEB\xB4\x51\x72\xB4\x51\x72", |
| 5557 | .klen = 24, |
| 5558 | .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA" |
| 5559 | "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4" |
| 5560 | "\x81\x01\x04\x00\x76\xFA\xED\xD3" |
| 5561 | "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64" |
| 5562 | "\xCA\x4E\x90\xE0\xC0\x63\x28\x92" |
| 5563 | "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77" |
| 5564 | "\x69\x56\xD0\x19\xAD\x00\x2D\x97" |
| 5565 | "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2" |
| 5566 | "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B" |
| 5567 | "\xEA\x32\x56\xE4\x0B\xAF\x27\x36" |
| 5568 | "\xAF\x08\xB9\x61\xB7\x48\x23\x27" |
| 5569 | "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7" |
| 5570 | "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6" |
| 5571 | "\x9D\xDA\x04\x59\xE2\x09\x48\x7E" |
| 5572 | "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E" |
| 5573 | "\x0D\x19\xFA\x33\x0F\xEE\x36\x68" |
| 5574 | "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA" |
| 5575 | "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16" |
| 5576 | "\x45\x86\x50\x01\x70\x35\x99\x92" |
| 5577 | "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B" |
| 5578 | "\xD2\x04\x84\x90\xC4\x27\xDF\x0A" |
| 5579 | "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA" |
| 5580 | "\xB3\x18\x5C\xC3\x93\x63\x5A\x68" |
| 5581 | "\x77\x02\xBA\xED\x62\x71\xB1\xD9" |
| 5582 | "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E" |
| 5583 | "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4" |
| 5584 | "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70" |
| 5585 | "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD" |
| 5586 | "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1" |
| 5587 | "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2" |
| 5588 | "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52" |
| 5589 | "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3" |
| 5590 | "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F" |
| 5591 | "\xDB\xEA\x84\x13\x26\x6C\x85\x4E" |
| 5592 | "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06" |
| 5593 | "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2" |
| 5594 | "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C" |
| 5595 | "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5" |
| 5596 | "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7" |
| 5597 | "\xD1\x17\x25\x08\xF9\xA9\xA6\x67" |
| 5598 | "\x38\x80\xD1\x22\xAB\x1A\xD7\x26" |
| 5599 | "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57" |
| 5600 | "\x31\xEC\xC9\xED\xDB\x79\xC0\x48" |
| 5601 | "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E" |
| 5602 | "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC" |
| 5603 | "\x58\xC8\xDE\x51\x4E\x17\x15\x11" |
| 5604 | "\x66\x58\xB6\x90\xDC\xDF\xA1\x49" |
| 5605 | "\xCA\x79\xE9\x31\x31\x42\xDC\x56" |
| 5606 | "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19" |
| 5607 | "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90" |
| 5608 | "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B" |
| 5609 | "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46" |
| 5610 | "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84" |
| 5611 | "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA" |
| 5612 | "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F" |
| 5613 | "\xE4\x82\x77\xCE\x87\xC0\x09\xF0" |
| 5614 | "\xD6\x10\x9E\x34\xE1\x0C\x67\x55" |
| 5615 | "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA" |
| 5616 | "\xF2\x7B\xBE\x75\x07\x42\x9D\x99" |
| 5617 | "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6" |
| 5618 | "\x93\x03\xD7\x51\x09\xFA\xBE\x68" |
| 5619 | "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63", |
| 5620 | .ilen = 496, |
| 5621 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 5622 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 5623 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 5624 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 5625 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 5626 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 5627 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 5628 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 5629 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 5630 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 5631 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 5632 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 5633 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 5634 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 5635 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 5636 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 5637 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 5638 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 5639 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 5640 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 5641 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 5642 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 5643 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 5644 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 5645 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 5646 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 5647 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 5648 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 5649 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 5650 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 5651 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 5652 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 5653 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 5654 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 5655 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 5656 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 5657 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 5658 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 5659 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 5660 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 5661 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 5662 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 5663 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 5664 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 5665 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 5666 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 5667 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 5668 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 5669 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 5670 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 5671 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 5672 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 5673 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 5674 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 5675 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 5676 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 5677 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 5678 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 5679 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 5680 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 5681 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 5682 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 5683 | .rlen = 496, |
| 5684 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5685 | .np = 3, |
| 5686 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5687 | }, |
| 5688 | }; |
| 5689 | |
| 5690 | static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = { |
| 5691 | { /* Generated from openssl */ |
| 5692 | .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 5693 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 5694 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 5695 | .klen = 24, |
| 5696 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 5697 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 5698 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 5699 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 5700 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 5701 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 5702 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 5703 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 5704 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 5705 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 5706 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 5707 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 5708 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 5709 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 5710 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 5711 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 5712 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 5713 | .ilen = 128, |
| 5714 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 5715 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 5716 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 5717 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 5718 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 5719 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 5720 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 5721 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 5722 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 5723 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 5724 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 5725 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 5726 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 5727 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 5728 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 5729 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19", |
| 5730 | .rlen = 128, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 5731 | }, { /* Generated with Crypto++ */ |
| 5732 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 5733 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 5734 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 5735 | .klen = 24, |
| 5736 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 5737 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 5738 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 5739 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 5740 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 5741 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 5742 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 5743 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 5744 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 5745 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 5746 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 5747 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 5748 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 5749 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 5750 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 5751 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 5752 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 5753 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 5754 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 5755 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 5756 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 5757 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 5758 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 5759 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 5760 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 5761 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 5762 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 5763 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 5764 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 5765 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 5766 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 5767 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 5768 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 5769 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 5770 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 5771 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 5772 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 5773 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 5774 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 5775 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 5776 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 5777 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 5778 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 5779 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 5780 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 5781 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 5782 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 5783 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 5784 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 5785 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 5786 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 5787 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 5788 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 5789 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 5790 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 5791 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 5792 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 5793 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 5794 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 5795 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 5796 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 5797 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 5798 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 5799 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 5800 | .ilen = 496, |
| 5801 | .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84" |
| 5802 | "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5" |
| 5803 | "\x1E\x68\x8E\x85\x12\x86\x1D\x38" |
| 5804 | "\x1C\x91\x40\xCC\x69\x6A\xD5\x35" |
| 5805 | "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF" |
| 5806 | "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C" |
| 5807 | "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37" |
| 5808 | "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90" |
| 5809 | "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B" |
| 5810 | "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B" |
| 5811 | "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9" |
| 5812 | "\xE6\xA5\xAD\x25\xE6\x17\x69\x63" |
| 5813 | "\x11\x35\x61\x94\x88\x7B\x1C\x48" |
| 5814 | "\xF1\x24\x20\x29\x6B\x93\x1A\x8E" |
| 5815 | "\x43\x03\x89\xD8\xB1\xDA\x47\x7B" |
| 5816 | "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB" |
| 5817 | "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8" |
| 5818 | "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73" |
| 5819 | "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6" |
| 5820 | "\x67\x88\xA5\x20\x6F\x5F\x97\xC7" |
| 5821 | "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7" |
| 5822 | "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7" |
| 5823 | "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E" |
| 5824 | "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6" |
| 5825 | "\xEE\xFE\x55\xA3\x29\x65\xE0\x12" |
| 5826 | "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96" |
| 5827 | "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF" |
| 5828 | "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE" |
| 5829 | "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99" |
| 5830 | "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D" |
| 5831 | "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6" |
| 5832 | "\x2B\x1C\xD5\xFB\x96\x24\x60\x60" |
| 5833 | "\x54\x40\xB8\x62\xA4\xF8\x46\x95" |
| 5834 | "\x73\x28\xA3\xA6\x16\x2B\x17\xE7" |
| 5835 | "\x7A\xF8\x62\x54\x3B\x64\x69\xE1" |
| 5836 | "\x71\x34\x29\x5B\x4E\x05\x9B\xFA" |
| 5837 | "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59" |
| 5838 | "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2" |
| 5839 | "\x3B\x8E\x71\x69\x6A\x91\xB6\x65" |
| 5840 | "\x32\x09\xB8\xE4\x09\x1F\xEA\x39" |
| 5841 | "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0" |
| 5842 | "\x73\x50\x08\x56\x20\x9B\x94\x23" |
| 5843 | "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F" |
| 5844 | "\x41\x5B\xCC\xE2\x18\xAE\x62\x89" |
| 5845 | "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5" |
| 5846 | "\x25\xC9\x48\x97\xB5\xD3\x17\xD5" |
| 5847 | "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B" |
| 5848 | "\x57\x08\xAE\x91\xF2\xB7\x57\x89" |
| 5849 | "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF" |
| 5850 | "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02" |
| 5851 | "\xD4\x56\x42\x79\x79\x7F\x2A\x77" |
| 5852 | "\x25\xE9\x7D\xC1\x88\x19\x2B\x49" |
| 5853 | "\x6F\x46\x59\xAB\x56\x1F\x61\xE0" |
| 5854 | "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12" |
| 5855 | "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8" |
| 5856 | "\x21\x85\x1A\x62\x7E\x34\xBB\xEB" |
| 5857 | "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5" |
| 5858 | "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38" |
| 5859 | "\x02\x80\xA3\x28\x22\x75\xE1\xE9" |
| 5860 | "\x90\xE9\xFA\x4B\x00\x10\xAC\x58" |
| 5861 | "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F" |
| 5862 | "\x95\x63\x73\xA2\x44\xAC\xF8\xA5", |
| 5863 | .rlen = 496, |
| 5864 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5865 | .np = 3, |
| 5866 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5867 | }, |
| 5868 | }; |
| 5869 | |
| 5870 | static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = { |
| 5871 | { /* Generated from openssl */ |
| 5872 | .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 5873 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 5874 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 5875 | .klen = 24, |
| 5876 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 5877 | .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 5878 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 5879 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 5880 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 5881 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 5882 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 5883 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 5884 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 5885 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 5886 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 5887 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 5888 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 5889 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 5890 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 5891 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 5892 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19", |
| 5893 | .ilen = 128, |
| 5894 | .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 5895 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 5896 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 5897 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 5898 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 5899 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 5900 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 5901 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 5902 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 5903 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 5904 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 5905 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 5906 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 5907 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 5908 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 5909 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 5910 | .rlen = 128, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 5911 | }, { /* Generated with Crypto++ */ |
| 5912 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 5913 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 5914 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 5915 | .klen = 24, |
| 5916 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 5917 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 5918 | .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84" |
| 5919 | "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5" |
| 5920 | "\x1E\x68\x8E\x85\x12\x86\x1D\x38" |
| 5921 | "\x1C\x91\x40\xCC\x69\x6A\xD5\x35" |
| 5922 | "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF" |
| 5923 | "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C" |
| 5924 | "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37" |
| 5925 | "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90" |
| 5926 | "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B" |
| 5927 | "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B" |
| 5928 | "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9" |
| 5929 | "\xE6\xA5\xAD\x25\xE6\x17\x69\x63" |
| 5930 | "\x11\x35\x61\x94\x88\x7B\x1C\x48" |
| 5931 | "\xF1\x24\x20\x29\x6B\x93\x1A\x8E" |
| 5932 | "\x43\x03\x89\xD8\xB1\xDA\x47\x7B" |
| 5933 | "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB" |
| 5934 | "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8" |
| 5935 | "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73" |
| 5936 | "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6" |
| 5937 | "\x67\x88\xA5\x20\x6F\x5F\x97\xC7" |
| 5938 | "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7" |
| 5939 | "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7" |
| 5940 | "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E" |
| 5941 | "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6" |
| 5942 | "\xEE\xFE\x55\xA3\x29\x65\xE0\x12" |
| 5943 | "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96" |
| 5944 | "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF" |
| 5945 | "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE" |
| 5946 | "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99" |
| 5947 | "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D" |
| 5948 | "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6" |
| 5949 | "\x2B\x1C\xD5\xFB\x96\x24\x60\x60" |
| 5950 | "\x54\x40\xB8\x62\xA4\xF8\x46\x95" |
| 5951 | "\x73\x28\xA3\xA6\x16\x2B\x17\xE7" |
| 5952 | "\x7A\xF8\x62\x54\x3B\x64\x69\xE1" |
| 5953 | "\x71\x34\x29\x5B\x4E\x05\x9B\xFA" |
| 5954 | "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59" |
| 5955 | "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2" |
| 5956 | "\x3B\x8E\x71\x69\x6A\x91\xB6\x65" |
| 5957 | "\x32\x09\xB8\xE4\x09\x1F\xEA\x39" |
| 5958 | "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0" |
| 5959 | "\x73\x50\x08\x56\x20\x9B\x94\x23" |
| 5960 | "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F" |
| 5961 | "\x41\x5B\xCC\xE2\x18\xAE\x62\x89" |
| 5962 | "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5" |
| 5963 | "\x25\xC9\x48\x97\xB5\xD3\x17\xD5" |
| 5964 | "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B" |
| 5965 | "\x57\x08\xAE\x91\xF2\xB7\x57\x89" |
| 5966 | "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF" |
| 5967 | "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02" |
| 5968 | "\xD4\x56\x42\x79\x79\x7F\x2A\x77" |
| 5969 | "\x25\xE9\x7D\xC1\x88\x19\x2B\x49" |
| 5970 | "\x6F\x46\x59\xAB\x56\x1F\x61\xE0" |
| 5971 | "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12" |
| 5972 | "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8" |
| 5973 | "\x21\x85\x1A\x62\x7E\x34\xBB\xEB" |
| 5974 | "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5" |
| 5975 | "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38" |
| 5976 | "\x02\x80\xA3\x28\x22\x75\xE1\xE9" |
| 5977 | "\x90\xE9\xFA\x4B\x00\x10\xAC\x58" |
| 5978 | "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F" |
| 5979 | "\x95\x63\x73\xA2\x44\xAC\xF8\xA5", |
| 5980 | .ilen = 496, |
| 5981 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 5982 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 5983 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 5984 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 5985 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 5986 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 5987 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 5988 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 5989 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 5990 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 5991 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 5992 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 5993 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 5994 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 5995 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 5996 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 5997 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 5998 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 5999 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 6000 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 6001 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 6002 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 6003 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 6004 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 6005 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 6006 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 6007 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 6008 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 6009 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 6010 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 6011 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 6012 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 6013 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 6014 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 6015 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 6016 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 6017 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 6018 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 6019 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 6020 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 6021 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 6022 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 6023 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 6024 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 6025 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 6026 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 6027 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 6028 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 6029 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 6030 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 6031 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 6032 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 6033 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 6034 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 6035 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 6036 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 6037 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 6038 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 6039 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 6040 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 6041 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 6042 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 6043 | .rlen = 496, |
| 6044 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 6045 | .np = 3, |
| 6046 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 6047 | }, |
| 6048 | }; |
| 6049 | |
| 6050 | static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = { |
| 6051 | { /* Generated with Crypto++ */ |
| 6052 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 6053 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 6054 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 6055 | .klen = 24, |
| 6056 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 6057 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 6058 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 6059 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 6060 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 6061 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 6062 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 6063 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 6064 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 6065 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 6066 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 6067 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 6068 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 6069 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 6070 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 6071 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 6072 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 6073 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 6074 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 6075 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 6076 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 6077 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 6078 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 6079 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 6080 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 6081 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 6082 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 6083 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 6084 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 6085 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 6086 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 6087 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 6088 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 6089 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 6090 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 6091 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 6092 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 6093 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 6094 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 6095 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 6096 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 6097 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 6098 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 6099 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 6100 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 6101 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 6102 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 6103 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 6104 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 6105 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 6106 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 6107 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 6108 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 6109 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 6110 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 6111 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 6112 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 6113 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 6114 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 6115 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 6116 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 6117 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 6118 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 6119 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 6120 | .ilen = 496, |
| 6121 | .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF" |
| 6122 | "\x19\xCD\x6F\x32\x53\x05\x22\x15" |
| 6123 | "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9" |
| 6124 | "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4" |
| 6125 | "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE" |
| 6126 | "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E" |
| 6127 | "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C" |
| 6128 | "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA" |
| 6129 | "\x13\x78\xDC\x89\x12\x12\x43\xFA" |
| 6130 | "\xF6\x12\xEF\x8D\x87\x62\x78\x83" |
| 6131 | "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B" |
| 6132 | "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03" |
| 6133 | "\xBF\x45\x73\xD4\xE5\x59\x95\xD1" |
| 6134 | "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F" |
| 6135 | "\xA4\xD2\x39\x80\xAA\x50\x23\xF0" |
| 6136 | "\x74\x88\x3D\xA8\x6A\x18\x79\x3B" |
| 6137 | "\xC4\x96\x6C\x8D\x22\x40\x92\x6E" |
| 6138 | "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7" |
| 6139 | "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC" |
| 6140 | "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA" |
| 6141 | "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B" |
| 6142 | "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B" |
| 6143 | "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D" |
| 6144 | "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01" |
| 6145 | "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0" |
| 6146 | "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA" |
| 6147 | "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA" |
| 6148 | "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2" |
| 6149 | "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F" |
| 6150 | "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9" |
| 6151 | "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C" |
| 6152 | "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4" |
| 6153 | "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08" |
| 6154 | "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D" |
| 6155 | "\x14\x28\x0C\xCF\x99\x13\x7A\xF1" |
| 6156 | "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1" |
| 6157 | "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E" |
| 6158 | "\x83\x37\x4F\x1F\x48\x30\xED\x04" |
| 6159 | "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C" |
| 6160 | "\x41\x8F\x63\x37\x78\x2F\x86\xA6" |
| 6161 | "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67" |
| 6162 | "\x52\x71\xC3\x8E\xF8\x26\x93\x72" |
| 6163 | "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A" |
| 6164 | "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C" |
| 6165 | "\x52\xBC\x8B\x05\x56\xB2\xBC\x31" |
| 6166 | "\x9B\x74\xB9\x29\x29\x96\x9A\x50" |
| 6167 | "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4" |
| 6168 | "\xD3\x05\x7E\x59\x55\xC3\xF4\x90" |
| 6169 | "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1" |
| 6170 | "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC" |
| 6171 | "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA" |
| 6172 | "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65" |
| 6173 | "\x32\xDC\x48\xC4\xF2\x00\x6B\x77" |
| 6174 | "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A" |
| 6175 | "\xA5\x3A\x62\xC8\x91\xB1\x03\x65" |
| 6176 | "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC" |
| 6177 | "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0" |
| 6178 | "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0" |
| 6179 | "\x40\x77\x72\xC2\xEA\x0E\x3A\x78" |
| 6180 | "\x46\xB9\x91\xB6\xE7\x3D\x51\x42" |
| 6181 | "\xFD\x51\xB0\xC6\x2C\x63\x13\x78" |
| 6182 | "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34", |
| 6183 | .rlen = 496, |
| 6184 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 6185 | .np = 3, |
| 6186 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 6187 | }, { /* Generated with Crypto++ */ |
| 6188 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 6189 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 6190 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 6191 | .klen = 24, |
| 6192 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 6193 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 6194 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 6195 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 6196 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 6197 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 6198 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 6199 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 6200 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 6201 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 6202 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 6203 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 6204 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 6205 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 6206 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 6207 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 6208 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 6209 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 6210 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 6211 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 6212 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 6213 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 6214 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 6215 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 6216 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 6217 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 6218 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 6219 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 6220 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 6221 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 6222 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 6223 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 6224 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 6225 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 6226 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 6227 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 6228 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 6229 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 6230 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 6231 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 6232 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 6233 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 6234 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 6235 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 6236 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 6237 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 6238 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 6239 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 6240 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 6241 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 6242 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 6243 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 6244 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 6245 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 6246 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 6247 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 6248 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 6249 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 6250 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 6251 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 6252 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 6253 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 6254 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 6255 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47" |
| 6256 | "\x2E\xB1\x18", |
| 6257 | .ilen = 499, |
| 6258 | .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4" |
| 6259 | "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7" |
| 6260 | "\x94\x9D\x1B\xFF\x8E\x95\x57\x89" |
| 6261 | "\x8C\x2E\x33\x70\x43\x61\xE6\xD2" |
| 6262 | "\x82\x33\x63\xB6\xC4\x34\x5E\xF8" |
| 6263 | "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA" |
| 6264 | "\x7C\xA0\x55\x89\x2E\xE1\x85\x25" |
| 6265 | "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF" |
| 6266 | "\x08\x2E\x69\xD4\x54\xDE\x22\x84" |
| 6267 | "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05" |
| 6268 | "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F" |
| 6269 | "\x58\x5C\x46\xEA\x07\x40\xDA\xE1" |
| 6270 | "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54" |
| 6271 | "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5" |
| 6272 | "\x97\x5D\x61\x78\x2E\x46\xEC\x6A" |
| 6273 | "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29" |
| 6274 | "\x9F\x17\x33\x24\xD8\xB9\xB2\x05" |
| 6275 | "\x93\x88\xEA\xF7\xA0\x70\x69\x49" |
| 6276 | "\x88\x6B\x73\x40\x41\x8D\xD9\xD9" |
| 6277 | "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A" |
| 6278 | "\x66\xE1\xDA\xED\x10\xFF\x69\x1D" |
| 6279 | "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2" |
| 6280 | "\x45\x54\x8B\xA3\x70\x23\xB4\x5E" |
| 6281 | "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2" |
| 6282 | "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2" |
| 6283 | "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8" |
| 6284 | "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0" |
| 6285 | "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E" |
| 6286 | "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71" |
| 6287 | "\xCE\x05\x49\x89\xBA\xD6\x72\xE7" |
| 6288 | "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02" |
| 6289 | "\xD6\x43\x22\xAF\xA2\xE4\x80\x85" |
| 6290 | "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF" |
| 6291 | "\x5C\x82\x2E\x98\x0D\x30\x41\x6B" |
| 6292 | "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D" |
| 6293 | "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58" |
| 6294 | "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40" |
| 6295 | "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC" |
| 6296 | "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B" |
| 6297 | "\xC6\x12\x13\x4F\xCB\x35\xBA\x35" |
| 6298 | "\xDD\x7A\x36\x9C\x12\x57\x55\x83" |
| 6299 | "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C" |
| 6300 | "\x38\xCF\xBD\x79\x5B\x13\x4D\x97" |
| 6301 | "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4" |
| 6302 | "\x98\xE2\xBD\x77\x6B\x53\x39\x1A" |
| 6303 | "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69" |
| 6304 | "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15" |
| 6305 | "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F" |
| 6306 | "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F" |
| 6307 | "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA" |
| 6308 | "\x8A\x19\x08\xE1\x08\x48\x59\x51" |
| 6309 | "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F" |
| 6310 | "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA" |
| 6311 | "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4" |
| 6312 | "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED" |
| 6313 | "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75" |
| 6314 | "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4" |
| 6315 | "\x97\x73\x28\xDE\xCF\xAF\x82\xBD" |
| 6316 | "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42" |
| 6317 | "\x42\x39\x7C\x53\xA4\xD4\xDD\x40" |
| 6318 | "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7" |
| 6319 | "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B" |
| 6320 | "\xF2\x79\xD9", |
| 6321 | .rlen = 499, |
| 6322 | .also_non_np = 1, |
| 6323 | .np = 2, |
| 6324 | .tap = { 499 - 16, 16 }, |
| 6325 | }, |
| 6326 | }; |
| 6327 | |
| 6328 | static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = { |
| 6329 | { /* Generated with Crypto++ */ |
| 6330 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 6331 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 6332 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 6333 | .klen = 24, |
| 6334 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 6335 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 6336 | .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF" |
| 6337 | "\x19\xCD\x6F\x32\x53\x05\x22\x15" |
| 6338 | "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9" |
| 6339 | "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4" |
| 6340 | "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE" |
| 6341 | "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E" |
| 6342 | "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C" |
| 6343 | "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA" |
| 6344 | "\x13\x78\xDC\x89\x12\x12\x43\xFA" |
| 6345 | "\xF6\x12\xEF\x8D\x87\x62\x78\x83" |
| 6346 | "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B" |
| 6347 | "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03" |
| 6348 | "\xBF\x45\x73\xD4\xE5\x59\x95\xD1" |
| 6349 | "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F" |
| 6350 | "\xA4\xD2\x39\x80\xAA\x50\x23\xF0" |
| 6351 | "\x74\x88\x3D\xA8\x6A\x18\x79\x3B" |
| 6352 | "\xC4\x96\x6C\x8D\x22\x40\x92\x6E" |
| 6353 | "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7" |
| 6354 | "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC" |
| 6355 | "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA" |
| 6356 | "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B" |
| 6357 | "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B" |
| 6358 | "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D" |
| 6359 | "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01" |
| 6360 | "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0" |
| 6361 | "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA" |
| 6362 | "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA" |
| 6363 | "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2" |
| 6364 | "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F" |
| 6365 | "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9" |
| 6366 | "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C" |
| 6367 | "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4" |
| 6368 | "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08" |
| 6369 | "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D" |
| 6370 | "\x14\x28\x0C\xCF\x99\x13\x7A\xF1" |
| 6371 | "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1" |
| 6372 | "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E" |
| 6373 | "\x83\x37\x4F\x1F\x48\x30\xED\x04" |
| 6374 | "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C" |
| 6375 | "\x41\x8F\x63\x37\x78\x2F\x86\xA6" |
| 6376 | "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67" |
| 6377 | "\x52\x71\xC3\x8E\xF8\x26\x93\x72" |
| 6378 | "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A" |
| 6379 | "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C" |
| 6380 | "\x52\xBC\x8B\x05\x56\xB2\xBC\x31" |
| 6381 | "\x9B\x74\xB9\x29\x29\x96\x9A\x50" |
| 6382 | "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4" |
| 6383 | "\xD3\x05\x7E\x59\x55\xC3\xF4\x90" |
| 6384 | "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1" |
| 6385 | "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC" |
| 6386 | "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA" |
| 6387 | "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65" |
| 6388 | "\x32\xDC\x48\xC4\xF2\x00\x6B\x77" |
| 6389 | "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A" |
| 6390 | "\xA5\x3A\x62\xC8\x91\xB1\x03\x65" |
| 6391 | "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC" |
| 6392 | "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0" |
| 6393 | "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0" |
| 6394 | "\x40\x77\x72\xC2\xEA\x0E\x3A\x78" |
| 6395 | "\x46\xB9\x91\xB6\xE7\x3D\x51\x42" |
| 6396 | "\xFD\x51\xB0\xC6\x2C\x63\x13\x78" |
| 6397 | "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34", |
| 6398 | .ilen = 496, |
| 6399 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 6400 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 6401 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 6402 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 6403 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 6404 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 6405 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 6406 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 6407 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 6408 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 6409 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 6410 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 6411 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 6412 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 6413 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 6414 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 6415 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 6416 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 6417 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 6418 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 6419 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 6420 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 6421 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 6422 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 6423 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 6424 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 6425 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 6426 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 6427 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 6428 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 6429 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 6430 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 6431 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 6432 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 6433 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 6434 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 6435 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 6436 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 6437 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 6438 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 6439 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 6440 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 6441 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 6442 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 6443 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 6444 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 6445 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 6446 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 6447 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 6448 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 6449 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 6450 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 6451 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 6452 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 6453 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 6454 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 6455 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 6456 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 6457 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 6458 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 6459 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 6460 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 6461 | .rlen = 496, |
| 6462 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 6463 | .np = 3, |
| 6464 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 6465 | }, { /* Generated with Crypto++ */ |
| 6466 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 6467 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 6468 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 6469 | .klen = 24, |
| 6470 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 6471 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 6472 | .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4" |
| 6473 | "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7" |
| 6474 | "\x94\x9D\x1B\xFF\x8E\x95\x57\x89" |
| 6475 | "\x8C\x2E\x33\x70\x43\x61\xE6\xD2" |
| 6476 | "\x82\x33\x63\xB6\xC4\x34\x5E\xF8" |
| 6477 | "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA" |
| 6478 | "\x7C\xA0\x55\x89\x2E\xE1\x85\x25" |
| 6479 | "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF" |
| 6480 | "\x08\x2E\x69\xD4\x54\xDE\x22\x84" |
| 6481 | "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05" |
| 6482 | "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F" |
| 6483 | "\x58\x5C\x46\xEA\x07\x40\xDA\xE1" |
| 6484 | "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54" |
| 6485 | "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5" |
| 6486 | "\x97\x5D\x61\x78\x2E\x46\xEC\x6A" |
| 6487 | "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29" |
| 6488 | "\x9F\x17\x33\x24\xD8\xB9\xB2\x05" |
| 6489 | "\x93\x88\xEA\xF7\xA0\x70\x69\x49" |
| 6490 | "\x88\x6B\x73\x40\x41\x8D\xD9\xD9" |
| 6491 | "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A" |
| 6492 | "\x66\xE1\xDA\xED\x10\xFF\x69\x1D" |
| 6493 | "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2" |
| 6494 | "\x45\x54\x8B\xA3\x70\x23\xB4\x5E" |
| 6495 | "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2" |
| 6496 | "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2" |
| 6497 | "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8" |
| 6498 | "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0" |
| 6499 | "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E" |
| 6500 | "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71" |
| 6501 | "\xCE\x05\x49\x89\xBA\xD6\x72\xE7" |
| 6502 | "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02" |
| 6503 | "\xD6\x43\x22\xAF\xA2\xE4\x80\x85" |
| 6504 | "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF" |
| 6505 | "\x5C\x82\x2E\x98\x0D\x30\x41\x6B" |
| 6506 | "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D" |
| 6507 | "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58" |
| 6508 | "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40" |
| 6509 | "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC" |
| 6510 | "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B" |
| 6511 | "\xC6\x12\x13\x4F\xCB\x35\xBA\x35" |
| 6512 | "\xDD\x7A\x36\x9C\x12\x57\x55\x83" |
| 6513 | "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C" |
| 6514 | "\x38\xCF\xBD\x79\x5B\x13\x4D\x97" |
| 6515 | "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4" |
| 6516 | "\x98\xE2\xBD\x77\x6B\x53\x39\x1A" |
| 6517 | "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69" |
| 6518 | "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15" |
| 6519 | "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F" |
| 6520 | "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F" |
| 6521 | "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA" |
| 6522 | "\x8A\x19\x08\xE1\x08\x48\x59\x51" |
| 6523 | "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F" |
| 6524 | "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA" |
| 6525 | "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4" |
| 6526 | "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED" |
| 6527 | "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75" |
| 6528 | "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4" |
| 6529 | "\x97\x73\x28\xDE\xCF\xAF\x82\xBD" |
| 6530 | "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42" |
| 6531 | "\x42\x39\x7C\x53\xA4\xD4\xDD\x40" |
| 6532 | "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7" |
| 6533 | "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B" |
| 6534 | "\xF2\x79\xD9", |
| 6535 | .ilen = 499, |
| 6536 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 6537 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 6538 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 6539 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 6540 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 6541 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 6542 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 6543 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 6544 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 6545 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 6546 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 6547 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 6548 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 6549 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 6550 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 6551 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 6552 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 6553 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 6554 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 6555 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 6556 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 6557 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 6558 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 6559 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 6560 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 6561 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 6562 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 6563 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 6564 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 6565 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 6566 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 6567 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 6568 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 6569 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 6570 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 6571 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 6572 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 6573 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 6574 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 6575 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 6576 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 6577 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 6578 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 6579 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 6580 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 6581 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 6582 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 6583 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 6584 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 6585 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 6586 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 6587 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 6588 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 6589 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 6590 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 6591 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 6592 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 6593 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 6594 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 6595 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 6596 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 6597 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47" |
| 6598 | "\x2E\xB1\x18", |
| 6599 | .rlen = 499, |
| 6600 | .also_non_np = 1, |
| 6601 | .np = 2, |
| 6602 | .tap = { 499 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6603 | }, |
| 6604 | }; |
| 6605 | |
| 6606 | /* |
| 6607 | * Blowfish test vectors. |
| 6608 | */ |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6609 | #define BF_ENC_TEST_VECTORS 7 |
| 6610 | #define BF_DEC_TEST_VECTORS 7 |
| 6611 | #define BF_CBC_ENC_TEST_VECTORS 2 |
| 6612 | #define BF_CBC_DEC_TEST_VECTORS 2 |
| 6613 | #define BF_CTR_ENC_TEST_VECTORS 2 |
| 6614 | #define BF_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6615 | |
| 6616 | static struct cipher_testvec bf_enc_tv_template[] = { |
| 6617 | { /* DES test vectors from OpenSSL */ |
| 6618 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6619 | .klen = 8, |
| 6620 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6621 | .ilen = 8, |
| 6622 | .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", |
| 6623 | .rlen = 8, |
| 6624 | }, { |
| 6625 | .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", |
| 6626 | .klen = 8, |
| 6627 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 6628 | .ilen = 8, |
| 6629 | .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae", |
| 6630 | .rlen = 8, |
| 6631 | }, { |
| 6632 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 6633 | .klen = 8, |
| 6634 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 6635 | .ilen = 8, |
| 6636 | .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", |
| 6637 | .rlen = 8, |
| 6638 | }, { /* Vary the keylength... */ |
| 6639 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 6640 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", |
| 6641 | .klen = 16, |
| 6642 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 6643 | .ilen = 8, |
| 6644 | .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", |
| 6645 | .rlen = 8, |
| 6646 | }, { |
| 6647 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 6648 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 6649 | "\x00\x11\x22\x33\x44", |
| 6650 | .klen = 21, |
| 6651 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 6652 | .ilen = 8, |
| 6653 | .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", |
| 6654 | .rlen = 8, |
| 6655 | }, { /* Generated with bf488 */ |
| 6656 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 6657 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 6658 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 6659 | "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" |
| 6660 | "\x58\x40\x23\x64\x1a\xba\x61\x76" |
| 6661 | "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" |
| 6662 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 6663 | .klen = 56, |
| 6664 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 6665 | .ilen = 8, |
| 6666 | .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", |
| 6667 | .rlen = 8, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6668 | }, { /* Generated with Crypto++ */ |
| 6669 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6670 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6671 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6672 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6673 | .klen = 32, |
| 6674 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6675 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6676 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6677 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6678 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6679 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6680 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6681 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6682 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6683 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6684 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6685 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6686 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6687 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6688 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6689 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6690 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6691 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6692 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6693 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6694 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6695 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6696 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6697 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6698 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6699 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6700 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6701 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6702 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6703 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6704 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6705 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6706 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6707 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6708 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6709 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6710 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6711 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6712 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6713 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6714 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6715 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6716 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6717 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6718 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6719 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6720 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6721 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6722 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6723 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6724 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6725 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6726 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6727 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6728 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6729 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6730 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6731 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6732 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6733 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6734 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6735 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6736 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6737 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6738 | .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F" |
| 6739 | "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D" |
| 6740 | "\xD7\x87\xA1\xF2\xDF\x51\x71\x26" |
| 6741 | "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6742 | "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B" |
| 6743 | "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9" |
| 6744 | "\xCD\xF3\x88\x39\x39\x7A\xDF\x19" |
| 6745 | "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86" |
| 6746 | "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5" |
| 6747 | "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D" |
| 6748 | "\x6E\x66\xAF\x38\x6C\xD3\x13\xED" |
| 6749 | "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A" |
| 6750 | "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B" |
| 6751 | "\x9D\x5B\x54\x65\x4F\x16\x8A\x97" |
| 6752 | "\xF3\xF6\xD4\xAA\x87\x36\x77\x72" |
| 6753 | "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D" |
| 6754 | "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F" |
| 6755 | "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8" |
| 6756 | "\x47\x82\x98\x23\x33\x36\xBC\x1B" |
| 6757 | "\x36\xE7\xF6\xCF\x97\x37\x16\xC0" |
| 6758 | "\x87\x31\x8B\xB0\xDB\x19\x42\xA5" |
| 6759 | "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9" |
| 6760 | "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71" |
| 6761 | "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B" |
| 6762 | "\x60\x00\x55\x57\x06\x8B\xD5\xB3" |
| 6763 | "\x86\x30\x78\xDA\x33\x9A\x9D\xCC" |
| 6764 | "\xBA\x0B\x81\x06\x77\x43\xC7\xC9" |
| 6765 | "\xDB\x37\x60\x11\x45\x59\x6D\x2D" |
| 6766 | "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C" |
| 6767 | "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B" |
| 6768 | "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9" |
| 6769 | "\x98\xE4\x7F\xC3\x6E\x51\x24\x70" |
| 6770 | "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3" |
| 6771 | "\xE0\x8A\x44\xA2\x5C\x94\x74\x34" |
| 6772 | "\x37\x52\x7C\x03\xE8\x8E\x97\xE1" |
| 6773 | "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F" |
| 6774 | "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45" |
| 6775 | "\x55\xC5\xA7\xA3\x19\x80\x28\x51" |
| 6776 | "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB" |
| 6777 | "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC" |
| 6778 | "\x3E\x42\x14\x49\x88\x51\xBF\x68" |
| 6779 | "\x45\x75\x27\x1B\x0A\x72\xED\xAF" |
| 6780 | "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3" |
| 6781 | "\x34\xDD\x91\x19\x42\x3A\xCB\xDA" |
| 6782 | "\x38\xFA\x3C\x93\x62\xF2\xE3\x81" |
| 6783 | "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09" |
| 6784 | "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2" |
| 6785 | "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E" |
| 6786 | "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC" |
| 6787 | "\x36\x56\x6E\x85\x73\xD7\x52\xBA" |
| 6788 | "\x35\x5E\x32\x89\x5D\x42\xF5\x36" |
| 6789 | "\x52\x8D\x46\x7D\xC8\x71\xAD\x33" |
| 6790 | "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC" |
| 6791 | "\xFE\x88\xE6\x16\xE4\xC8\x13\x00" |
| 6792 | "\x3C\xDA\x59\x32\x38\x19\xD5\xEB" |
| 6793 | "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C" |
| 6794 | "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B" |
| 6795 | "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29" |
| 6796 | "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D" |
| 6797 | "\xC9\x0D\x59\x82\x27\x57\x9D\x42" |
| 6798 | "\x54\x59\x09\xA5\x3D\xC5\x84\x68" |
| 6799 | "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5" |
| 6800 | "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4", |
| 6801 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 6802 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 6803 | .np = 3, |
| 6804 | .tap = { 504 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6805 | }, |
| 6806 | }; |
| 6807 | |
| 6808 | static struct cipher_testvec bf_dec_tv_template[] = { |
| 6809 | { /* DES test vectors from OpenSSL */ |
| 6810 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6811 | .klen = 8, |
| 6812 | .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", |
| 6813 | .ilen = 8, |
| 6814 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 6815 | .rlen = 8, |
| 6816 | }, { |
| 6817 | .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", |
| 6818 | .klen = 8, |
| 6819 | .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae", |
| 6820 | .ilen = 8, |
| 6821 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 6822 | .rlen = 8, |
| 6823 | }, { |
| 6824 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 6825 | .klen = 8, |
| 6826 | .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", |
| 6827 | .ilen = 8, |
| 6828 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 6829 | .rlen = 8, |
| 6830 | }, { /* Vary the keylength... */ |
| 6831 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 6832 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", |
| 6833 | .klen = 16, |
| 6834 | .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", |
| 6835 | .ilen = 8, |
| 6836 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 6837 | .rlen = 8, |
| 6838 | }, { |
| 6839 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 6840 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 6841 | "\x00\x11\x22\x33\x44", |
| 6842 | .klen = 21, |
| 6843 | .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", |
| 6844 | .ilen = 8, |
| 6845 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 6846 | .rlen = 8, |
| 6847 | }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */ |
| 6848 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 6849 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 6850 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 6851 | "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" |
| 6852 | "\x58\x40\x23\x64\x1a\xba\x61\x76" |
| 6853 | "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" |
| 6854 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 6855 | .klen = 56, |
| 6856 | .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", |
| 6857 | .ilen = 8, |
| 6858 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 6859 | .rlen = 8, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6860 | }, { /* Generated with Crypto++ */ |
| 6861 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6862 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6863 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6864 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6865 | .klen = 32, |
| 6866 | .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F" |
| 6867 | "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D" |
| 6868 | "\xD7\x87\xA1\xF2\xDF\x51\x71\x26" |
| 6869 | "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6870 | "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B" |
| 6871 | "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9" |
| 6872 | "\xCD\xF3\x88\x39\x39\x7A\xDF\x19" |
| 6873 | "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86" |
| 6874 | "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5" |
| 6875 | "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D" |
| 6876 | "\x6E\x66\xAF\x38\x6C\xD3\x13\xED" |
| 6877 | "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A" |
| 6878 | "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B" |
| 6879 | "\x9D\x5B\x54\x65\x4F\x16\x8A\x97" |
| 6880 | "\xF3\xF6\xD4\xAA\x87\x36\x77\x72" |
| 6881 | "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D" |
| 6882 | "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F" |
| 6883 | "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8" |
| 6884 | "\x47\x82\x98\x23\x33\x36\xBC\x1B" |
| 6885 | "\x36\xE7\xF6\xCF\x97\x37\x16\xC0" |
| 6886 | "\x87\x31\x8B\xB0\xDB\x19\x42\xA5" |
| 6887 | "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9" |
| 6888 | "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71" |
| 6889 | "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B" |
| 6890 | "\x60\x00\x55\x57\x06\x8B\xD5\xB3" |
| 6891 | "\x86\x30\x78\xDA\x33\x9A\x9D\xCC" |
| 6892 | "\xBA\x0B\x81\x06\x77\x43\xC7\xC9" |
| 6893 | "\xDB\x37\x60\x11\x45\x59\x6D\x2D" |
| 6894 | "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C" |
| 6895 | "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B" |
| 6896 | "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9" |
| 6897 | "\x98\xE4\x7F\xC3\x6E\x51\x24\x70" |
| 6898 | "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3" |
| 6899 | "\xE0\x8A\x44\xA2\x5C\x94\x74\x34" |
| 6900 | "\x37\x52\x7C\x03\xE8\x8E\x97\xE1" |
| 6901 | "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F" |
| 6902 | "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45" |
| 6903 | "\x55\xC5\xA7\xA3\x19\x80\x28\x51" |
| 6904 | "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB" |
| 6905 | "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC" |
| 6906 | "\x3E\x42\x14\x49\x88\x51\xBF\x68" |
| 6907 | "\x45\x75\x27\x1B\x0A\x72\xED\xAF" |
| 6908 | "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3" |
| 6909 | "\x34\xDD\x91\x19\x42\x3A\xCB\xDA" |
| 6910 | "\x38\xFA\x3C\x93\x62\xF2\xE3\x81" |
| 6911 | "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09" |
| 6912 | "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2" |
| 6913 | "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E" |
| 6914 | "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC" |
| 6915 | "\x36\x56\x6E\x85\x73\xD7\x52\xBA" |
| 6916 | "\x35\x5E\x32\x89\x5D\x42\xF5\x36" |
| 6917 | "\x52\x8D\x46\x7D\xC8\x71\xAD\x33" |
| 6918 | "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC" |
| 6919 | "\xFE\x88\xE6\x16\xE4\xC8\x13\x00" |
| 6920 | "\x3C\xDA\x59\x32\x38\x19\xD5\xEB" |
| 6921 | "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C" |
| 6922 | "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B" |
| 6923 | "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29" |
| 6924 | "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D" |
| 6925 | "\xC9\x0D\x59\x82\x27\x57\x9D\x42" |
| 6926 | "\x54\x59\x09\xA5\x3D\xC5\x84\x68" |
| 6927 | "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5" |
| 6928 | "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4", |
| 6929 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6930 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6931 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6932 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6933 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6934 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6935 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6936 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6937 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6938 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6939 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6940 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6941 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6942 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6943 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6944 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6945 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6946 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6947 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6948 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6949 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6950 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6951 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6952 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6953 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6954 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6955 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6956 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6957 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6958 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6959 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6960 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6961 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6962 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6963 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6964 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6965 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6966 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6967 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6968 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6969 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6970 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6971 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6972 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6973 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6974 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6975 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6976 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6977 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6978 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6979 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6980 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6981 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6982 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6983 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6984 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6985 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6986 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6987 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6988 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6989 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6990 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6991 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6992 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6993 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 6994 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 6995 | .np = 3, |
| 6996 | .tap = { 504 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6997 | }, |
| 6998 | }; |
| 6999 | |
| 7000 | static struct cipher_testvec bf_cbc_enc_tv_template[] = { |
| 7001 | { /* From OpenSSL */ |
| 7002 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 7003 | "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 7004 | .klen = 16, |
| 7005 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 7006 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 7007 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 7008 | "\x68\x65\x20\x74\x69\x6d\x65\x20" |
| 7009 | "\x66\x6f\x72\x20\x00\x00\x00\x00", |
| 7010 | .ilen = 32, |
| 7011 | .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" |
| 7012 | "\x05\xb1\x56\xe2\x74\x03\x97\x93" |
| 7013 | "\x58\xde\xb9\xe7\x15\x46\x16\xd9" |
| 7014 | "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", |
| 7015 | .rlen = 32, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7016 | }, { /* Generated with Crypto++ */ |
| 7017 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7018 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7019 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7020 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7021 | .klen = 32, |
| 7022 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 7023 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7024 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7025 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7026 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7027 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7028 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7029 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7030 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7031 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7032 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7033 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7034 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7035 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7036 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7037 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7038 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7039 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7040 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7041 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7042 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7043 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7044 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7045 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7046 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7047 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7048 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7049 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7050 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7051 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7052 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7053 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7054 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7055 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7056 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7057 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7058 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7059 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7060 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7061 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7062 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7063 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7064 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7065 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7066 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7067 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7068 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7069 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7070 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7071 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7072 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7073 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7074 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7075 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7076 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7077 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7078 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7079 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7080 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7081 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7082 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7083 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7084 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 7085 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 7086 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7087 | .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06" |
| 7088 | "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62" |
| 7089 | "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E" |
| 7090 | "\x1B\xD9\x02\xB6\x48\xB0\x87\x25" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7091 | "\x01\x9C\x93\x63\x51\x60\x82\xD2" |
| 7092 | "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD" |
| 7093 | "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F" |
| 7094 | "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69" |
| 7095 | "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5" |
| 7096 | "\x43\x29\x9D\x94\xF4\x2F\x0A\x65" |
| 7097 | "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A" |
| 7098 | "\x60\xD3\x52\xA8\xED\x91\xDF\xE1" |
| 7099 | "\x91\x73\x7C\x28\xA1\x14\xC3\x4C" |
| 7100 | "\x82\x72\x4B\x7D\x7D\x32\xD5\x19" |
| 7101 | "\xE8\xB8\x6B\x30\x21\x09\x0E\x27" |
| 7102 | "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6" |
| 7103 | "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13" |
| 7104 | "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69" |
| 7105 | "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C" |
| 7106 | "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40" |
| 7107 | "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43" |
| 7108 | "\x65\xFE\x15\x40\xD0\x62\x41\x02" |
| 7109 | "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE" |
| 7110 | "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C" |
| 7111 | "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B" |
| 7112 | "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A" |
| 7113 | "\xC2\x6D\xBD\x5E\x89\x95\x86\x43" |
| 7114 | "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24" |
| 7115 | "\x04\xF0\x86\x08\x78\x18\x42\xE0" |
| 7116 | "\x39\x1B\x22\x9E\x89\x4C\x04\x6B" |
| 7117 | "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7" |
| 7118 | "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC" |
| 7119 | "\xF0\x51\xCC\x93\x68\xFC\xE9\x19" |
| 7120 | "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC" |
| 7121 | "\x97\x18\x92\xFF\x15\x11\xCE\xED" |
| 7122 | "\x04\x41\x05\xA3\x92\xFF\x3B\xE6" |
| 7123 | "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04" |
| 7124 | "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68" |
| 7125 | "\xEF\xB3\x61\x18\xDB\x83\x9B\x39" |
| 7126 | "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02" |
| 7127 | "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35" |
| 7128 | "\x75\x6F\x06\x81\x0A\x97\x4D\xF0" |
| 7129 | "\x43\x12\x73\x77\xDB\x91\x83\x5B" |
| 7130 | "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50" |
| 7131 | "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F" |
| 7132 | "\x7E\x12\x40\xB2\x3E\x19\x23\xF1" |
| 7133 | "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87" |
| 7134 | "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88" |
| 7135 | "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A" |
| 7136 | "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76" |
| 7137 | "\x14\x48\x2E\xDE\x2A\x44\x5E\x45" |
| 7138 | "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A" |
| 7139 | "\xED\x73\xD3\x79\xF7\x38\x1D\xD0" |
| 7140 | "\xC5\xF8\x69\x83\x28\x84\x87\x56" |
| 7141 | "\x3F\xAE\x81\x04\x79\x1F\xD1\x09" |
| 7142 | "\xC5\xE5\x05\x0D\x64\x16\xCE\x42" |
| 7143 | "\xC5\xF8\xDB\x57\x89\x33\x22\xFC" |
| 7144 | "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90" |
| 7145 | "\x02\xBA\x55\x1E\x24\x3E\x02\x1D" |
| 7146 | "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51" |
| 7147 | "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9" |
| 7148 | "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0" |
| 7149 | "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4", |
| 7150 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7151 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 7152 | .np = 3, |
| 7153 | .tap = { 504 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 7154 | }, |
| 7155 | }; |
| 7156 | |
| 7157 | static struct cipher_testvec bf_cbc_dec_tv_template[] = { |
| 7158 | { /* From OpenSSL */ |
| 7159 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 7160 | "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 7161 | .klen = 16, |
| 7162 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 7163 | .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" |
| 7164 | "\x05\xb1\x56\xe2\x74\x03\x97\x93" |
| 7165 | "\x58\xde\xb9\xe7\x15\x46\x16\xd9" |
| 7166 | "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", |
| 7167 | .ilen = 32, |
| 7168 | .result = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 7169 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 7170 | "\x68\x65\x20\x74\x69\x6d\x65\x20" |
| 7171 | "\x66\x6f\x72\x20\x00\x00\x00\x00", |
| 7172 | .rlen = 32, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7173 | }, { /* Generated with Crypto++ */ |
| 7174 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7175 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7176 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7177 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7178 | .klen = 32, |
| 7179 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 7180 | .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06" |
| 7181 | "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62" |
| 7182 | "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E" |
| 7183 | "\x1B\xD9\x02\xB6\x48\xB0\x87\x25" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7184 | "\x01\x9C\x93\x63\x51\x60\x82\xD2" |
| 7185 | "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD" |
| 7186 | "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F" |
| 7187 | "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69" |
| 7188 | "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5" |
| 7189 | "\x43\x29\x9D\x94\xF4\x2F\x0A\x65" |
| 7190 | "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A" |
| 7191 | "\x60\xD3\x52\xA8\xED\x91\xDF\xE1" |
| 7192 | "\x91\x73\x7C\x28\xA1\x14\xC3\x4C" |
| 7193 | "\x82\x72\x4B\x7D\x7D\x32\xD5\x19" |
| 7194 | "\xE8\xB8\x6B\x30\x21\x09\x0E\x27" |
| 7195 | "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6" |
| 7196 | "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13" |
| 7197 | "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69" |
| 7198 | "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C" |
| 7199 | "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40" |
| 7200 | "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43" |
| 7201 | "\x65\xFE\x15\x40\xD0\x62\x41\x02" |
| 7202 | "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE" |
| 7203 | "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C" |
| 7204 | "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B" |
| 7205 | "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A" |
| 7206 | "\xC2\x6D\xBD\x5E\x89\x95\x86\x43" |
| 7207 | "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24" |
| 7208 | "\x04\xF0\x86\x08\x78\x18\x42\xE0" |
| 7209 | "\x39\x1B\x22\x9E\x89\x4C\x04\x6B" |
| 7210 | "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7" |
| 7211 | "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC" |
| 7212 | "\xF0\x51\xCC\x93\x68\xFC\xE9\x19" |
| 7213 | "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC" |
| 7214 | "\x97\x18\x92\xFF\x15\x11\xCE\xED" |
| 7215 | "\x04\x41\x05\xA3\x92\xFF\x3B\xE6" |
| 7216 | "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04" |
| 7217 | "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68" |
| 7218 | "\xEF\xB3\x61\x18\xDB\x83\x9B\x39" |
| 7219 | "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02" |
| 7220 | "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35" |
| 7221 | "\x75\x6F\x06\x81\x0A\x97\x4D\xF0" |
| 7222 | "\x43\x12\x73\x77\xDB\x91\x83\x5B" |
| 7223 | "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50" |
| 7224 | "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F" |
| 7225 | "\x7E\x12\x40\xB2\x3E\x19\x23\xF1" |
| 7226 | "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87" |
| 7227 | "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88" |
| 7228 | "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A" |
| 7229 | "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76" |
| 7230 | "\x14\x48\x2E\xDE\x2A\x44\x5E\x45" |
| 7231 | "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A" |
| 7232 | "\xED\x73\xD3\x79\xF7\x38\x1D\xD0" |
| 7233 | "\xC5\xF8\x69\x83\x28\x84\x87\x56" |
| 7234 | "\x3F\xAE\x81\x04\x79\x1F\xD1\x09" |
| 7235 | "\xC5\xE5\x05\x0D\x64\x16\xCE\x42" |
| 7236 | "\xC5\xF8\xDB\x57\x89\x33\x22\xFC" |
| 7237 | "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90" |
| 7238 | "\x02\xBA\x55\x1E\x24\x3E\x02\x1D" |
| 7239 | "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51" |
| 7240 | "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9" |
| 7241 | "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0" |
| 7242 | "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4", |
| 7243 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7244 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7245 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7246 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7247 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7248 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7249 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7250 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7251 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7252 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7253 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7254 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7255 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7256 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7257 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7258 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7259 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7260 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7261 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7262 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7263 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7264 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7265 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7266 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7267 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7268 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7269 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7270 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7271 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7272 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7273 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7274 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7275 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7276 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7277 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7278 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7279 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7280 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7281 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7282 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7283 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7284 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7285 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7286 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7287 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7288 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7289 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7290 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7291 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7292 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7293 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7294 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7295 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7296 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7297 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7298 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7299 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7300 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7301 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7302 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7303 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7304 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7305 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 7306 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 7307 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7308 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 7309 | .np = 3, |
| 7310 | .tap = { 504 - 10, 2, 8 }, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7311 | }, |
| 7312 | }; |
| 7313 | |
| 7314 | static struct cipher_testvec bf_ctr_enc_tv_template[] = { |
| 7315 | { /* Generated with Crypto++ */ |
| 7316 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7317 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7318 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7319 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7320 | .klen = 32, |
| 7321 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 7322 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7323 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7324 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7325 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7326 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7327 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7328 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7329 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7330 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7331 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7332 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7333 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7334 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7335 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7336 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7337 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7338 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7339 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7340 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7341 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7342 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7343 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7344 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7345 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7346 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7347 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7348 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7349 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7350 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7351 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7352 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7353 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7354 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7355 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7356 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7357 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7358 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7359 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7360 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7361 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7362 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7363 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7364 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7365 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7366 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7367 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7368 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7369 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7370 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7371 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7372 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7373 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7374 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7375 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7376 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7377 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7378 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7379 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7380 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7381 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7382 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7383 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 7384 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 7385 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7386 | .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 7387 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 7388 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 7389 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7390 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
| 7391 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 7392 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 7393 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 7394 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 7395 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 7396 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 7397 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 7398 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 7399 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 7400 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 7401 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 7402 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 7403 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 7404 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 7405 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 7406 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 7407 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 7408 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 7409 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 7410 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 7411 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 7412 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 7413 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 7414 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 7415 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 7416 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 7417 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 7418 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 7419 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 7420 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 7421 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 7422 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 7423 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 7424 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 7425 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 7426 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 7427 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 7428 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 7429 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 7430 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 7431 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 7432 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 7433 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 7434 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 7435 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 7436 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 7437 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 7438 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 7439 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 7440 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 7441 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 7442 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 7443 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 7444 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 7445 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 7446 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 7447 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 7448 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29", |
| 7449 | .rlen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7450 | }, { /* Generated with Crypto++ */ |
| 7451 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7452 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7453 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7454 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7455 | .klen = 32, |
| 7456 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 7457 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7458 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7459 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7460 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7461 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7462 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7463 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7464 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7465 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7466 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7467 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7468 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7469 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7470 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7471 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7472 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7473 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7474 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7475 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7476 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7477 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7478 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7479 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7480 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7481 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7482 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7483 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7484 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7485 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7486 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7487 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7488 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7489 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7490 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7491 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7492 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7493 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7494 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7495 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7496 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7497 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7498 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7499 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7500 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7501 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7502 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7503 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7504 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7505 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7506 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7507 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7508 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7509 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7510 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7511 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7512 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7513 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7514 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7515 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7516 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7517 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7518 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 7519 | "\x2B\xC2\x59\xF0\x64\xFB\x92", |
| 7520 | .ilen = 503, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7521 | .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 7522 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 7523 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 7524 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 7525 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7526 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 7527 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 7528 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 7529 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 7530 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 7531 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 7532 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 7533 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 7534 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 7535 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 7536 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 7537 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 7538 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 7539 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 7540 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 7541 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 7542 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 7543 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 7544 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 7545 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 7546 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 7547 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 7548 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 7549 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 7550 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 7551 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 7552 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 7553 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 7554 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 7555 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 7556 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 7557 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 7558 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 7559 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 7560 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 7561 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 7562 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 7563 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 7564 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 7565 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 7566 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 7567 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 7568 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 7569 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 7570 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 7571 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 7572 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 7573 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 7574 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 7575 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 7576 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 7577 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 7578 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 7579 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 7580 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 7581 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 7582 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 7583 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D", |
| 7584 | .rlen = 503, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7585 | .also_non_np = 1, |
| 7586 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7587 | .tap = { 503 - 8, 8 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 7588 | }, { /* Generated with Crypto++ */ |
| 7589 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7590 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7591 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7592 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7593 | .klen = 32, |
| 7594 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 7595 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7596 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7597 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7598 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7599 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7600 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7601 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7602 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7603 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7604 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7605 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7606 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7607 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7608 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7609 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7610 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7611 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7612 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7613 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7614 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7615 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7616 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7617 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7618 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7619 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7620 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7621 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7622 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7623 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7624 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7625 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7626 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7627 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7628 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7629 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7630 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7631 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7632 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7633 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7634 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7635 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7636 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7637 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7638 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7639 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7640 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7641 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7642 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7643 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7644 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7645 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7646 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7647 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7648 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7649 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7650 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7651 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7652 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7653 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7654 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7655 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7656 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 7657 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 7658 | .ilen = 504, |
| 7659 | .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D" |
| 7660 | "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82" |
| 7661 | "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F" |
| 7662 | "\x25\xF9\x27\x21\xF2\xD2\x9A\x01" |
| 7663 | "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE" |
| 7664 | "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2" |
| 7665 | "\x62\x44\x72\xB9\x5D\xC0\xF8\x37" |
| 7666 | "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2" |
| 7667 | "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18" |
| 7668 | "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60" |
| 7669 | "\xF8\x98\xA2\x39\x81\x23\x6C\xA9" |
| 7670 | "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44" |
| 7671 | "\x2A\x67\x7A\x88\x28\xDC\x36\x83" |
| 7672 | "\x18\xD7\x48\x43\x17\x2B\x1B\xE6" |
| 7673 | "\x0B\x82\x59\x14\x26\x67\x08\x09" |
| 7674 | "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A" |
| 7675 | "\xCD\x22\x94\x42\xF5\xBA\x74\x7E" |
| 7676 | "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E" |
| 7677 | "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8" |
| 7678 | "\xF4\xCC\x19\x76\xAB\x48\x29\xAA" |
| 7679 | "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21" |
| 7680 | "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F" |
| 7681 | "\x59\x28\x1A\xE4\x18\x16\xA0\x29" |
| 7682 | "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E" |
| 7683 | "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D" |
| 7684 | "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD" |
| 7685 | "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31" |
| 7686 | "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB" |
| 7687 | "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8" |
| 7688 | "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F" |
| 7689 | "\xC5\xE9\x09\x08\xDD\x22\x77\x42" |
| 7690 | "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C" |
| 7691 | "\xF0\xFF\x15\x8E\x84\x86\xC0\x10" |
| 7692 | "\x0F\x8D\x33\x06\xB8\x72\xA4\x47" |
| 7693 | "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B" |
| 7694 | "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2" |
| 7695 | "\x63\x66\x07\x6D\x3F\x6C\x51\x7C" |
| 7696 | "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D" |
| 7697 | "\xB4\x19\xD8\x19\x45\x66\x27\x02" |
| 7698 | "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D" |
| 7699 | "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1" |
| 7700 | "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7" |
| 7701 | "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53" |
| 7702 | "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3" |
| 7703 | "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8" |
| 7704 | "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A" |
| 7705 | "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E" |
| 7706 | "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37" |
| 7707 | "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22" |
| 7708 | "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9" |
| 7709 | "\x91\x51\x4E\x71\xF2\x98\x85\x16" |
| 7710 | "\x25\x7A\x76\x8A\x51\x0E\x65\x14" |
| 7711 | "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A" |
| 7712 | "\xE1\xCF\x41\x72\x14\x29\x4C\xF0" |
| 7713 | "\x20\xD9\x9A\xC5\x66\xA4\x03\x76" |
| 7714 | "\x5B\xA4\x15\x4F\x0E\x64\x39\x40" |
| 7715 | "\x25\xF9\x20\x22\xF5\x88\xF5\xBA" |
| 7716 | "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24" |
| 7717 | "\x4B\x92\x71\xD9\x2F\x77\xA7\x95" |
| 7718 | "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB" |
| 7719 | "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0" |
| 7720 | "\x16\x4C\x18\x6B\xF2\x69\xA0\x07" |
| 7721 | "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E", |
| 7722 | .rlen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7723 | }, |
| 7724 | }; |
| 7725 | |
| 7726 | static struct cipher_testvec bf_ctr_dec_tv_template[] = { |
| 7727 | { /* Generated with Crypto++ */ |
| 7728 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7729 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7730 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7731 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7732 | .klen = 32, |
| 7733 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 7734 | .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 7735 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 7736 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 7737 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7738 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
| 7739 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 7740 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 7741 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 7742 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 7743 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 7744 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 7745 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 7746 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 7747 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 7748 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 7749 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 7750 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 7751 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 7752 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 7753 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 7754 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 7755 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 7756 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 7757 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 7758 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 7759 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 7760 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 7761 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 7762 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 7763 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 7764 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 7765 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 7766 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 7767 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 7768 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 7769 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 7770 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 7771 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 7772 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 7773 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 7774 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 7775 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 7776 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 7777 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 7778 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 7779 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 7780 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 7781 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 7782 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 7783 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 7784 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 7785 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 7786 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 7787 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 7788 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 7789 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 7790 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 7791 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 7792 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 7793 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 7794 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 7795 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 7796 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29", |
| 7797 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7798 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7799 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7800 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7801 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7802 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7803 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7804 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7805 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7806 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7807 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7808 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7809 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7810 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7811 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7812 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7813 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7814 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7815 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7816 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7817 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7818 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7819 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7820 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7821 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7822 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7823 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7824 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7825 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7826 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7827 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7828 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7829 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7830 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7831 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7832 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7833 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7834 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7835 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7836 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7837 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7838 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7839 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7840 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7841 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7842 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7843 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7844 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7845 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7846 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7847 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7848 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7849 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7850 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7851 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7852 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7853 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7854 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7855 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7856 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7857 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7858 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7859 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 7860 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 7861 | .rlen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7862 | }, { /* Generated with Crypto++ */ |
| 7863 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7864 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7865 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7866 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7867 | .klen = 32, |
| 7868 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 7869 | .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 7870 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 7871 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 7872 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 7873 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7874 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 7875 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 7876 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 7877 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 7878 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 7879 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 7880 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 7881 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 7882 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 7883 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 7884 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 7885 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 7886 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 7887 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 7888 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 7889 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 7890 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 7891 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 7892 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 7893 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 7894 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 7895 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 7896 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 7897 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 7898 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 7899 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 7900 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 7901 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 7902 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 7903 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 7904 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 7905 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 7906 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 7907 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 7908 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 7909 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 7910 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 7911 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 7912 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 7913 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 7914 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 7915 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 7916 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 7917 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 7918 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 7919 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 7920 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 7921 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 7922 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 7923 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 7924 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 7925 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 7926 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 7927 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 7928 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 7929 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 7930 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 7931 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D", |
| 7932 | .ilen = 503, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 7933 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7934 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7935 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7936 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7937 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7938 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7939 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7940 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7941 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7942 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7943 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7944 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7945 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7946 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7947 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7948 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7949 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7950 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7951 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7952 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7953 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7954 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7955 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7956 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7957 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7958 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7959 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7960 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7961 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7962 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7963 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7964 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7965 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7966 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7967 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7968 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7969 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7970 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7971 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7972 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7973 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7974 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7975 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7976 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7977 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7978 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7979 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7980 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7981 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7982 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7983 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7984 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7985 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7986 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7987 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7988 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7989 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7990 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7991 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7992 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7993 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7994 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 7995 | "\x2B\xC2\x59\xF0\x64\xFB\x92", |
| 7996 | .rlen = 503, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7997 | .also_non_np = 1, |
| 7998 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 7999 | .tap = { 503 - 8, 8 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 8000 | }, { /* Generated with Crypto++ */ |
| 8001 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 8002 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 8003 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 8004 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 8005 | .klen = 32, |
| 8006 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 8007 | .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D" |
| 8008 | "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82" |
| 8009 | "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F" |
| 8010 | "\x25\xF9\x27\x21\xF2\xD2\x9A\x01" |
| 8011 | "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE" |
| 8012 | "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2" |
| 8013 | "\x62\x44\x72\xB9\x5D\xC0\xF8\x37" |
| 8014 | "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2" |
| 8015 | "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18" |
| 8016 | "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60" |
| 8017 | "\xF8\x98\xA2\x39\x81\x23\x6C\xA9" |
| 8018 | "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44" |
| 8019 | "\x2A\x67\x7A\x88\x28\xDC\x36\x83" |
| 8020 | "\x18\xD7\x48\x43\x17\x2B\x1B\xE6" |
| 8021 | "\x0B\x82\x59\x14\x26\x67\x08\x09" |
| 8022 | "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A" |
| 8023 | "\xCD\x22\x94\x42\xF5\xBA\x74\x7E" |
| 8024 | "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E" |
| 8025 | "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8" |
| 8026 | "\xF4\xCC\x19\x76\xAB\x48\x29\xAA" |
| 8027 | "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21" |
| 8028 | "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F" |
| 8029 | "\x59\x28\x1A\xE4\x18\x16\xA0\x29" |
| 8030 | "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E" |
| 8031 | "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D" |
| 8032 | "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD" |
| 8033 | "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31" |
| 8034 | "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB" |
| 8035 | "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8" |
| 8036 | "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F" |
| 8037 | "\xC5\xE9\x09\x08\xDD\x22\x77\x42" |
| 8038 | "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C" |
| 8039 | "\xF0\xFF\x15\x8E\x84\x86\xC0\x10" |
| 8040 | "\x0F\x8D\x33\x06\xB8\x72\xA4\x47" |
| 8041 | "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B" |
| 8042 | "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2" |
| 8043 | "\x63\x66\x07\x6D\x3F\x6C\x51\x7C" |
| 8044 | "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D" |
| 8045 | "\xB4\x19\xD8\x19\x45\x66\x27\x02" |
| 8046 | "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D" |
| 8047 | "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1" |
| 8048 | "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7" |
| 8049 | "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53" |
| 8050 | "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3" |
| 8051 | "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8" |
| 8052 | "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A" |
| 8053 | "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E" |
| 8054 | "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37" |
| 8055 | "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22" |
| 8056 | "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9" |
| 8057 | "\x91\x51\x4E\x71\xF2\x98\x85\x16" |
| 8058 | "\x25\x7A\x76\x8A\x51\x0E\x65\x14" |
| 8059 | "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A" |
| 8060 | "\xE1\xCF\x41\x72\x14\x29\x4C\xF0" |
| 8061 | "\x20\xD9\x9A\xC5\x66\xA4\x03\x76" |
| 8062 | "\x5B\xA4\x15\x4F\x0E\x64\x39\x40" |
| 8063 | "\x25\xF9\x20\x22\xF5\x88\xF5\xBA" |
| 8064 | "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24" |
| 8065 | "\x4B\x92\x71\xD9\x2F\x77\xA7\x95" |
| 8066 | "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB" |
| 8067 | "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0" |
| 8068 | "\x16\x4C\x18\x6B\xF2\x69\xA0\x07" |
| 8069 | "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E", |
| 8070 | .ilen = 504, |
| 8071 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8072 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8073 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8074 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8075 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8076 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8077 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 8078 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 8079 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8080 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8081 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8082 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8083 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8084 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8085 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8086 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8087 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8088 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8089 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8090 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8091 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8092 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8093 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8094 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8095 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8096 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8097 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8098 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8099 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8100 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8101 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8102 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8103 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8104 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8105 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8106 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8107 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8108 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8109 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8110 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8111 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8112 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8113 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8114 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8115 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8116 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8117 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8118 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8119 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8120 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8121 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8122 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8123 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8124 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8125 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8126 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8127 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8128 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8129 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8130 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8131 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8132 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 8133 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 8134 | .rlen = 504, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 8135 | }, |
| 8136 | }; |
| 8137 | |
| 8138 | /* |
| 8139 | * Twofish test vectors. |
| 8140 | */ |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8141 | #define TF_ENC_TEST_VECTORS 4 |
| 8142 | #define TF_DEC_TEST_VECTORS 4 |
| 8143 | #define TF_CBC_ENC_TEST_VECTORS 5 |
| 8144 | #define TF_CBC_DEC_TEST_VECTORS 5 |
| 8145 | #define TF_CTR_ENC_TEST_VECTORS 2 |
| 8146 | #define TF_CTR_DEC_TEST_VECTORS 2 |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 8147 | #define TF_LRW_ENC_TEST_VECTORS 8 |
| 8148 | #define TF_LRW_DEC_TEST_VECTORS 8 |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 8149 | #define TF_XTS_ENC_TEST_VECTORS 5 |
| 8150 | #define TF_XTS_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 8151 | |
| 8152 | static struct cipher_testvec tf_enc_tv_template[] = { |
| 8153 | { |
| 8154 | .key = zeroed_string, |
| 8155 | .klen = 16, |
| 8156 | .input = zeroed_string, |
| 8157 | .ilen = 16, |
| 8158 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 8159 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 8160 | .rlen = 16, |
| 8161 | }, { |
| 8162 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 8163 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 8164 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 8165 | .klen = 24, |
| 8166 | .input = zeroed_string, |
| 8167 | .ilen = 16, |
| 8168 | .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" |
| 8169 | "\x50\x1f\x13\xb8\x92\xbd\x22\x48", |
| 8170 | .rlen = 16, |
| 8171 | }, { |
| 8172 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 8173 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 8174 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 8175 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 8176 | .klen = 32, |
| 8177 | .input = zeroed_string, |
| 8178 | .ilen = 16, |
| 8179 | .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" |
| 8180 | "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", |
| 8181 | .rlen = 16, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8182 | }, { /* Generated with Crypto++ */ |
| 8183 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 8184 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 8185 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 8186 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 8187 | .klen = 32, |
| 8188 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8189 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8190 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8191 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8192 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8193 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8194 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8195 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 8196 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8197 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8198 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8199 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8200 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8201 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8202 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8203 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8204 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8205 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8206 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8207 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8208 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8209 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8210 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8211 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8212 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8213 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8214 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8215 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8216 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8217 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8218 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8219 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8220 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8221 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8222 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8223 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8224 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8225 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8226 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8227 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8228 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8229 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8230 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8231 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8232 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8233 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8234 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8235 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8236 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8237 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8238 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8239 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8240 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8241 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8242 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8243 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8244 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8245 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8246 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8247 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8248 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8249 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 8250 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8251 | .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF" |
| 8252 | "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC" |
| 8253 | "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D" |
| 8254 | "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14" |
| 8255 | "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" |
| 8256 | "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" |
| 8257 | "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8258 | "\x89\xF6\x82\xF0\xD3\xDB\x06\x02" |
| 8259 | "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43" |
| 8260 | "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40" |
| 8261 | "\x80\x27\x88\xBA\x2C\x74\x42\xE0" |
| 8262 | "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A" |
| 8263 | "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A" |
| 8264 | "\x91\x75\x47\xBC\x67\x21\x4E\xF9" |
| 8265 | "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C" |
| 8266 | "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22" |
| 8267 | "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C" |
| 8268 | "\xC6\x24\x42\xB8\x23\x66\x80\xA9" |
| 8269 | "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63" |
| 8270 | "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3" |
| 8271 | "\x33\x62\x70\xE2\x1B\x86\x7A\xA1" |
| 8272 | "\x51\x4A\x16\xFE\x29\x63\x7E\xD0" |
| 8273 | "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8" |
| 8274 | "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66" |
| 8275 | "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B" |
| 8276 | "\xB6\x41\x42\x64\x43\xEE\x6E\x7C" |
| 8277 | "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F" |
| 8278 | "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97" |
| 8279 | "\x66\xA3\x96\x0F\x1C\x25\x60\xF5" |
| 8280 | "\x3C\x2E\x32\x69\x0E\x82\xFF\x27" |
| 8281 | "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C" |
| 8282 | "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A" |
| 8283 | "\x1B\x42\x1F\x5B\x29\x19\x96\x13" |
| 8284 | "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B" |
| 8285 | "\x81\x77\x6D\xF4\xA0\x01\x42\xEC" |
| 8286 | "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB" |
| 8287 | "\x83\x54\xDF\x0F\x86\xB7\xEA\x40" |
| 8288 | "\x46\x39\xF7\x2A\x89\x8D\x4E\x96" |
| 8289 | "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D" |
| 8290 | "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16" |
| 8291 | "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D" |
| 8292 | "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41" |
| 8293 | "\xC6\xBD\x36\xEF\xED\x29\x50\x6D" |
| 8294 | "\x10\xEF\x26\xE8\xA8\x93\x11\x3F" |
| 8295 | "\x2D\x1F\x88\x20\x77\x45\xF5\x66" |
| 8296 | "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81" |
| 8297 | "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C" |
| 8298 | "\xB2\x10\x7A\xCA\x05\x25\x59\xDB" |
| 8299 | "\xC7\x28\xF5\x20\x35\x52\x9E\x62" |
| 8300 | "\xF8\x88\x24\x1C\x4D\x84\x12\x39" |
| 8301 | "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC" |
| 8302 | "\x87\x66\xE6\xC0\x6B\x31\x9A\x66" |
| 8303 | "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F" |
| 8304 | "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD" |
| 8305 | "\xA3\x63\xE2\x71\x4F\x03\x94\x87" |
| 8306 | "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F" |
| 8307 | "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D" |
| 8308 | "\x84\x9B\x2A\xE9\x55\xDD\x46\x91" |
| 8309 | "\x15\x33\xF3\x2B\x9B\x46\x97\x00" |
| 8310 | "\xF0\x29\xD8\x59\x5D\x33\x37\xF9" |
| 8311 | "\x58\x33\x9B\x78\xC7\x58\x48\x6B" |
| 8312 | "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5", |
| 8313 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8314 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 8315 | .np = 3, |
| 8316 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 8317 | }, |
| 8318 | }; |
| 8319 | |
| 8320 | static struct cipher_testvec tf_dec_tv_template[] = { |
| 8321 | { |
| 8322 | .key = zeroed_string, |
| 8323 | .klen = 16, |
| 8324 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 8325 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 8326 | .ilen = 16, |
| 8327 | .result = zeroed_string, |
| 8328 | .rlen = 16, |
| 8329 | }, { |
| 8330 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 8331 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 8332 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 8333 | .klen = 24, |
| 8334 | .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" |
| 8335 | "\x50\x1f\x13\xb8\x92\xbd\x22\x48", |
| 8336 | .ilen = 16, |
| 8337 | .result = zeroed_string, |
| 8338 | .rlen = 16, |
| 8339 | }, { |
| 8340 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 8341 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 8342 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 8343 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 8344 | .klen = 32, |
| 8345 | .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" |
| 8346 | "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", |
| 8347 | .ilen = 16, |
| 8348 | .result = zeroed_string, |
| 8349 | .rlen = 16, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8350 | }, { /* Generated with Crypto++ */ |
| 8351 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 8352 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 8353 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 8354 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 8355 | .klen = 32, |
| 8356 | .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF" |
| 8357 | "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC" |
| 8358 | "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D" |
| 8359 | "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14" |
| 8360 | "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" |
| 8361 | "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" |
| 8362 | "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8363 | "\x89\xF6\x82\xF0\xD3\xDB\x06\x02" |
| 8364 | "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43" |
| 8365 | "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40" |
| 8366 | "\x80\x27\x88\xBA\x2C\x74\x42\xE0" |
| 8367 | "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A" |
| 8368 | "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A" |
| 8369 | "\x91\x75\x47\xBC\x67\x21\x4E\xF9" |
| 8370 | "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C" |
| 8371 | "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22" |
| 8372 | "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C" |
| 8373 | "\xC6\x24\x42\xB8\x23\x66\x80\xA9" |
| 8374 | "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63" |
| 8375 | "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3" |
| 8376 | "\x33\x62\x70\xE2\x1B\x86\x7A\xA1" |
| 8377 | "\x51\x4A\x16\xFE\x29\x63\x7E\xD0" |
| 8378 | "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8" |
| 8379 | "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66" |
| 8380 | "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B" |
| 8381 | "\xB6\x41\x42\x64\x43\xEE\x6E\x7C" |
| 8382 | "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F" |
| 8383 | "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97" |
| 8384 | "\x66\xA3\x96\x0F\x1C\x25\x60\xF5" |
| 8385 | "\x3C\x2E\x32\x69\x0E\x82\xFF\x27" |
| 8386 | "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C" |
| 8387 | "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A" |
| 8388 | "\x1B\x42\x1F\x5B\x29\x19\x96\x13" |
| 8389 | "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B" |
| 8390 | "\x81\x77\x6D\xF4\xA0\x01\x42\xEC" |
| 8391 | "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB" |
| 8392 | "\x83\x54\xDF\x0F\x86\xB7\xEA\x40" |
| 8393 | "\x46\x39\xF7\x2A\x89\x8D\x4E\x96" |
| 8394 | "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D" |
| 8395 | "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16" |
| 8396 | "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D" |
| 8397 | "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41" |
| 8398 | "\xC6\xBD\x36\xEF\xED\x29\x50\x6D" |
| 8399 | "\x10\xEF\x26\xE8\xA8\x93\x11\x3F" |
| 8400 | "\x2D\x1F\x88\x20\x77\x45\xF5\x66" |
| 8401 | "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81" |
| 8402 | "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C" |
| 8403 | "\xB2\x10\x7A\xCA\x05\x25\x59\xDB" |
| 8404 | "\xC7\x28\xF5\x20\x35\x52\x9E\x62" |
| 8405 | "\xF8\x88\x24\x1C\x4D\x84\x12\x39" |
| 8406 | "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC" |
| 8407 | "\x87\x66\xE6\xC0\x6B\x31\x9A\x66" |
| 8408 | "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F" |
| 8409 | "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD" |
| 8410 | "\xA3\x63\xE2\x71\x4F\x03\x94\x87" |
| 8411 | "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F" |
| 8412 | "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D" |
| 8413 | "\x84\x9B\x2A\xE9\x55\xDD\x46\x91" |
| 8414 | "\x15\x33\xF3\x2B\x9B\x46\x97\x00" |
| 8415 | "\xF0\x29\xD8\x59\x5D\x33\x37\xF9" |
| 8416 | "\x58\x33\x9B\x78\xC7\x58\x48\x6B" |
| 8417 | "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5", |
| 8418 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8419 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8420 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8421 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8422 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8423 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8424 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8425 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8426 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 8427 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8428 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8429 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8430 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8431 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8432 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8433 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8434 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8435 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8436 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8437 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8438 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8439 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8440 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8441 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8442 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8443 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8444 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8445 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8446 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8447 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8448 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8449 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8450 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8451 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8452 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8453 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8454 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8455 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8456 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8457 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8458 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8459 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8460 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8461 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8462 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8463 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8464 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8465 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8466 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8467 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8468 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8469 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8470 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8471 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8472 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8473 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8474 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8475 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8476 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8477 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8478 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8479 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8480 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 8481 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8482 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 8483 | .np = 3, |
| 8484 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 8485 | }, |
| 8486 | }; |
| 8487 | |
| 8488 | static struct cipher_testvec tf_cbc_enc_tv_template[] = { |
| 8489 | { /* Generated with Nettle */ |
| 8490 | .key = zeroed_string, |
| 8491 | .klen = 16, |
| 8492 | .iv = zeroed_string, |
| 8493 | .input = zeroed_string, |
| 8494 | .ilen = 16, |
| 8495 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 8496 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 8497 | .rlen = 16, |
| 8498 | }, { |
| 8499 | .key = zeroed_string, |
| 8500 | .klen = 16, |
| 8501 | .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 8502 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 8503 | .input = zeroed_string, |
| 8504 | .ilen = 16, |
| 8505 | .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 8506 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 8507 | .rlen = 16, |
| 8508 | }, { |
| 8509 | .key = zeroed_string, |
| 8510 | .klen = 16, |
| 8511 | .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 8512 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 8513 | .input = zeroed_string, |
| 8514 | .ilen = 16, |
| 8515 | .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 8516 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 8517 | .rlen = 16, |
| 8518 | }, { |
| 8519 | .key = zeroed_string, |
| 8520 | .klen = 16, |
| 8521 | .iv = zeroed_string, |
| 8522 | .input = zeroed_string, |
| 8523 | .ilen = 48, |
| 8524 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 8525 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" |
| 8526 | "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 8527 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19" |
| 8528 | "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 8529 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 8530 | .rlen = 48, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8531 | }, { /* Generated with Crypto++ */ |
| 8532 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 8533 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 8534 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 8535 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 8536 | .klen = 32, |
| 8537 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 8538 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 8539 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8540 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8541 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8542 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8543 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8544 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8545 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8546 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 8547 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8548 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8549 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8550 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8551 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8552 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8553 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8554 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8555 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8556 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8557 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8558 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8559 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8560 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8561 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8562 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8563 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8564 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8565 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8566 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8567 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8568 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8569 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8570 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8571 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8572 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8573 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8574 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8575 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8576 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8577 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8578 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8579 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8580 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8581 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8582 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8583 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8584 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8585 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8586 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8587 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8588 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8589 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8590 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8591 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8592 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8593 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8594 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8595 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8596 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8597 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8598 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8599 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8600 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 8601 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8602 | .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1" |
| 8603 | "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5" |
| 8604 | "\x26\x1B\x05\x0C\x05\x12\x3F\xC0" |
| 8605 | "\xF9\x1C\x02\x28\x40\x96\x6F\xD0" |
| 8606 | "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" |
| 8607 | "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" |
| 8608 | "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8609 | "\xB1\xD3\x44\x65\xDF\xE7\x63\x38" |
| 8610 | "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8" |
| 8611 | "\x43\xFC\xFE\x18\xB5\x11\x6D\x31" |
| 8612 | "\x81\x8B\x0D\x75\xF6\x80\xEC\x84" |
| 8613 | "\x04\xB9\xE6\x09\x63\xED\x39\xDB" |
| 8614 | "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD" |
| 8615 | "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63" |
| 8616 | "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80" |
| 8617 | "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68" |
| 8618 | "\x45\xDD\xC8\x83\x1D\x41\x96\x0D" |
| 8619 | "\x91\x2E\x05\xD3\x59\x82\xE0\x43" |
| 8620 | "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF" |
| 8621 | "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C" |
| 8622 | "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3" |
| 8623 | "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC" |
| 8624 | "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF" |
| 8625 | "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38" |
| 8626 | "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34" |
| 8627 | "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60" |
| 8628 | "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7" |
| 8629 | "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8" |
| 8630 | "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25" |
| 8631 | "\x94\x70\x74\x0E\x1D\xC5\xBC\x12" |
| 8632 | "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55" |
| 8633 | "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3" |
| 8634 | "\x75\x42\x62\x04\x31\x1F\x95\x7C" |
| 8635 | "\x66\x1A\x97\xDC\x2F\x40\x5C\x39" |
| 8636 | "\x78\xE6\x02\xDB\x49\xE1\xC6\x47" |
| 8637 | "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93" |
| 8638 | "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7" |
| 8639 | "\xC2\x89\xF3\x91\x88\x83\x3D\xF0" |
| 8640 | "\x29\xA2\xCD\xB5\x79\x16\xC2\x40" |
| 8641 | "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4" |
| 8642 | "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B" |
| 8643 | "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF" |
| 8644 | "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA" |
| 8645 | "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C" |
| 8646 | "\x78\xB6\xC9\xBF\xF9\x78\x57\x88" |
| 8647 | "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8" |
| 8648 | "\xEE\xC4\xBE\x7B\x55\x59\x00\x48" |
| 8649 | "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C" |
| 8650 | "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE" |
| 8651 | "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D" |
| 8652 | "\xBC\x68\x9C\x91\x2A\x59\x57\x04" |
| 8653 | "\xED\x1A\x1E\x00\xB1\x85\x92\x04" |
| 8654 | "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7" |
| 8655 | "\x4C\x3E\xB0\xE7\x86\x62\x68\x91" |
| 8656 | "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93" |
| 8657 | "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64" |
| 8658 | "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD" |
| 8659 | "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1" |
| 8660 | "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39" |
| 8661 | "\x69\xA1\x62\xBD\x49\x3A\x9D\x91" |
| 8662 | "\x30\x70\x56\xA4\x37\xDD\x7C\xC0" |
| 8663 | "\x0A\xA3\x30\x10\x26\x25\x41\x2C", |
| 8664 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8665 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 8666 | .np = 3, |
| 8667 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 8668 | }, |
| 8669 | }; |
| 8670 | |
| 8671 | static struct cipher_testvec tf_cbc_dec_tv_template[] = { |
| 8672 | { /* Reverse of the first four above */ |
| 8673 | .key = zeroed_string, |
| 8674 | .klen = 16, |
| 8675 | .iv = zeroed_string, |
| 8676 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 8677 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 8678 | .ilen = 16, |
| 8679 | .result = zeroed_string, |
| 8680 | .rlen = 16, |
| 8681 | }, { |
| 8682 | .key = zeroed_string, |
| 8683 | .klen = 16, |
| 8684 | .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 8685 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 8686 | .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 8687 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 8688 | .ilen = 16, |
| 8689 | .result = zeroed_string, |
| 8690 | .rlen = 16, |
| 8691 | }, { |
| 8692 | .key = zeroed_string, |
| 8693 | .klen = 16, |
| 8694 | .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 8695 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 8696 | .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 8697 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 8698 | .ilen = 16, |
| 8699 | .result = zeroed_string, |
| 8700 | .rlen = 16, |
| 8701 | }, { |
| 8702 | .key = zeroed_string, |
| 8703 | .klen = 16, |
| 8704 | .iv = zeroed_string, |
| 8705 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 8706 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" |
| 8707 | "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 8708 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19" |
| 8709 | "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 8710 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 8711 | .ilen = 48, |
| 8712 | .result = zeroed_string, |
| 8713 | .rlen = 48, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8714 | }, { /* Generated with Crypto++ */ |
| 8715 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 8716 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 8717 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 8718 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 8719 | .klen = 32, |
| 8720 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 8721 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 8722 | .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1" |
| 8723 | "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5" |
| 8724 | "\x26\x1B\x05\x0C\x05\x12\x3F\xC0" |
| 8725 | "\xF9\x1C\x02\x28\x40\x96\x6F\xD0" |
| 8726 | "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" |
| 8727 | "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" |
| 8728 | "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8729 | "\xB1\xD3\x44\x65\xDF\xE7\x63\x38" |
| 8730 | "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8" |
| 8731 | "\x43\xFC\xFE\x18\xB5\x11\x6D\x31" |
| 8732 | "\x81\x8B\x0D\x75\xF6\x80\xEC\x84" |
| 8733 | "\x04\xB9\xE6\x09\x63\xED\x39\xDB" |
| 8734 | "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD" |
| 8735 | "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63" |
| 8736 | "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80" |
| 8737 | "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68" |
| 8738 | "\x45\xDD\xC8\x83\x1D\x41\x96\x0D" |
| 8739 | "\x91\x2E\x05\xD3\x59\x82\xE0\x43" |
| 8740 | "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF" |
| 8741 | "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C" |
| 8742 | "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3" |
| 8743 | "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC" |
| 8744 | "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF" |
| 8745 | "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38" |
| 8746 | "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34" |
| 8747 | "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60" |
| 8748 | "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7" |
| 8749 | "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8" |
| 8750 | "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25" |
| 8751 | "\x94\x70\x74\x0E\x1D\xC5\xBC\x12" |
| 8752 | "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55" |
| 8753 | "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3" |
| 8754 | "\x75\x42\x62\x04\x31\x1F\x95\x7C" |
| 8755 | "\x66\x1A\x97\xDC\x2F\x40\x5C\x39" |
| 8756 | "\x78\xE6\x02\xDB\x49\xE1\xC6\x47" |
| 8757 | "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93" |
| 8758 | "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7" |
| 8759 | "\xC2\x89\xF3\x91\x88\x83\x3D\xF0" |
| 8760 | "\x29\xA2\xCD\xB5\x79\x16\xC2\x40" |
| 8761 | "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4" |
| 8762 | "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B" |
| 8763 | "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF" |
| 8764 | "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA" |
| 8765 | "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C" |
| 8766 | "\x78\xB6\xC9\xBF\xF9\x78\x57\x88" |
| 8767 | "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8" |
| 8768 | "\xEE\xC4\xBE\x7B\x55\x59\x00\x48" |
| 8769 | "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C" |
| 8770 | "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE" |
| 8771 | "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D" |
| 8772 | "\xBC\x68\x9C\x91\x2A\x59\x57\x04" |
| 8773 | "\xED\x1A\x1E\x00\xB1\x85\x92\x04" |
| 8774 | "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7" |
| 8775 | "\x4C\x3E\xB0\xE7\x86\x62\x68\x91" |
| 8776 | "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93" |
| 8777 | "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64" |
| 8778 | "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD" |
| 8779 | "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1" |
| 8780 | "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39" |
| 8781 | "\x69\xA1\x62\xBD\x49\x3A\x9D\x91" |
| 8782 | "\x30\x70\x56\xA4\x37\xDD\x7C\xC0" |
| 8783 | "\x0A\xA3\x30\x10\x26\x25\x41\x2C", |
| 8784 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8785 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8786 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8787 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8788 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8789 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8790 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8791 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8792 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 8793 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8794 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8795 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8796 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8797 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8798 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8799 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8800 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8801 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8802 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8803 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8804 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8805 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8806 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8807 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8808 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8809 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8810 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8811 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8812 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8813 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8814 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8815 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8816 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8817 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8818 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8819 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8820 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8821 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8822 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8823 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8824 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8825 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8826 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8827 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8828 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8829 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8830 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8831 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8832 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8833 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8834 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8835 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8836 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8837 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8838 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8839 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8840 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8841 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8842 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8843 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8844 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8845 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8846 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 8847 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8848 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 8849 | .np = 3, |
| 8850 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8851 | }, |
| 8852 | }; |
| 8853 | |
| 8854 | static struct cipher_testvec tf_ctr_enc_tv_template[] = { |
| 8855 | { /* Generated with Crypto++ */ |
| 8856 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 8857 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 8858 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 8859 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 8860 | .klen = 32, |
| 8861 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 8862 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 8863 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8864 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8865 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8866 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8867 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8868 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8869 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8870 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 8871 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8872 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8873 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8874 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8875 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8876 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8877 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8878 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8879 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8880 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8881 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8882 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8883 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8884 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8885 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8886 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8887 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8888 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8889 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8890 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8891 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8892 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8893 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8894 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8895 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8896 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8897 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8898 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8899 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8900 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8901 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8902 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8903 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8904 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8905 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8906 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8907 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8908 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8909 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8910 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8911 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8912 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8913 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8914 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8915 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8916 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8917 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8918 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8919 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8920 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8921 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8922 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8923 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8924 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 8925 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8926 | .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 8927 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 8928 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 8929 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 8930 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 8931 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 8932 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8933 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
| 8934 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 8935 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 8936 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 8937 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 8938 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 8939 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 8940 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 8941 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 8942 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 8943 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 8944 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 8945 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 8946 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 8947 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 8948 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 8949 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 8950 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 8951 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 8952 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 8953 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 8954 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 8955 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 8956 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 8957 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 8958 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 8959 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 8960 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 8961 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 8962 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 8963 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 8964 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 8965 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 8966 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 8967 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 8968 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 8969 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 8970 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 8971 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 8972 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 8973 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 8974 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 8975 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 8976 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 8977 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 8978 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 8979 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 8980 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 8981 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 8982 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 8983 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 8984 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 8985 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 8986 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 8987 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF", |
| 8988 | .rlen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8989 | }, { /* Generated with Crypto++ */ |
| 8990 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 8991 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 8992 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 8993 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 8994 | .klen = 32, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 8995 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 8996 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 8997 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8998 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8999 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9000 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9001 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9002 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9003 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 9004 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 9005 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9006 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9007 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9008 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9009 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9010 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9011 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9012 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9013 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 9014 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9015 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9016 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9017 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9018 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9019 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9020 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9021 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9022 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9023 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9024 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9025 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9026 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9027 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9028 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9029 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9030 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9031 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9032 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9033 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9034 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9035 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9036 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9037 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9038 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9039 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9040 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9041 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9042 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9043 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9044 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9045 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9046 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9047 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9048 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9049 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9050 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9051 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9052 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9053 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9054 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9055 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9056 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9057 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9058 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 9059 | .ilen = 496, |
| 9060 | .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44" |
| 9061 | "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C" |
| 9062 | "\x53\xC8\x16\x38\xDE\x40\x4F\x91" |
| 9063 | "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA" |
| 9064 | "\x88\x7E\x89\xE9\x67\x2B\x83\xA2" |
| 9065 | "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B" |
| 9066 | "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3" |
| 9067 | "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33" |
| 9068 | "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E" |
| 9069 | "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0" |
| 9070 | "\x64\x89\x9F\x6A\x27\x96\x07\xA6" |
| 9071 | "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01" |
| 9072 | "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34" |
| 9073 | "\x39\x18\x09\xA4\x82\x59\x78\xE7" |
| 9074 | "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2" |
| 9075 | "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3" |
| 9076 | "\xE6\x87\x31\x9E\x16\x85\xAD\xB1" |
| 9077 | "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E" |
| 9078 | "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3" |
| 9079 | "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF" |
| 9080 | "\x89\x16\x4D\x2D\xA2\x26\x33\x72" |
| 9081 | "\x18\x33\x7E\xD6\xD2\x16\xA4\x54" |
| 9082 | "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB" |
| 9083 | "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2" |
| 9084 | "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19" |
| 9085 | "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E" |
| 9086 | "\xAC\x00\xE3\x50\x63\x4A\x80\x9A" |
| 9087 | "\x05\xBC\x50\x39\xD3\x32\xD9\x0D" |
| 9088 | "\xE3\x20\x0D\x75\x54\xEC\xE6\x31" |
| 9089 | "\x14\xB9\x3A\x59\x00\x43\x37\x8E" |
| 9090 | "\x8C\x5A\x79\x62\x14\x76\x8A\xAE" |
| 9091 | "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D" |
| 9092 | "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60" |
| 9093 | "\xC9\x87\xB1\x79\x1E\xA5\x86\x68" |
| 9094 | "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73" |
| 9095 | "\xD0\xDA\x75\x77\x9E\x05\x27\xF1" |
| 9096 | "\x08\xA9\x66\x64\x6C\xBC\x82\x17" |
| 9097 | "\x2C\x23\x5F\x62\x4D\x02\x1A\x58" |
| 9098 | "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF" |
| 9099 | "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83" |
| 9100 | "\x95\x87\x13\x57\x60\xD7\xB5\xB1" |
| 9101 | "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D" |
| 9102 | "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF" |
| 9103 | "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A" |
| 9104 | "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8" |
| 9105 | "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0" |
| 9106 | "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC" |
| 9107 | "\xDE\x55\x1B\x50\x14\x53\x44\x17" |
| 9108 | "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A" |
| 9109 | "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B" |
| 9110 | "\x1A\x09\x97\xA9\xB6\x97\x79\x06" |
| 9111 | "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1" |
| 9112 | "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5" |
| 9113 | "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D" |
| 9114 | "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23" |
| 9115 | "\x41\x67\xA1\x24\x99\x7E\xCC\x9B" |
| 9116 | "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A" |
| 9117 | "\xF4\x78\xFD\x79\x62\x63\x4F\x14" |
| 9118 | "\xD6\x11\x11\x04\x05\x5F\x7E\xEA" |
| 9119 | "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54" |
| 9120 | "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B" |
| 9121 | "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D", |
| 9122 | .rlen = 496, |
| 9123 | }, { /* Generated with Crypto++ */ |
| 9124 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9125 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9126 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 9127 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 9128 | .klen = 32, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 9129 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 9130 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 9131 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 9132 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 9133 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9134 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9135 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9136 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9137 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 9138 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 9139 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9140 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9141 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9142 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9143 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9144 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9145 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9146 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9147 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 9148 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9149 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9150 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9151 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9152 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9153 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9154 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9155 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9156 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9157 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9158 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9159 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9160 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9161 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9162 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9163 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9164 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9165 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9166 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9167 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9168 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9169 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9170 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9171 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9172 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9173 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9174 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9175 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9176 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9177 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9178 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9179 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9180 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9181 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9182 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9183 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9184 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9185 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9186 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9187 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9188 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9189 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9190 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9191 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9192 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 9193 | "\x2B\xC2\x59", |
| 9194 | .ilen = 499, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 9195 | .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 9196 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 9197 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 9198 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 9199 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 9200 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 9201 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
| 9202 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 9203 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 9204 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 9205 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 9206 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 9207 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 9208 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 9209 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 9210 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 9211 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 9212 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 9213 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 9214 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 9215 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 9216 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 9217 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 9218 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 9219 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 9220 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 9221 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 9222 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 9223 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 9224 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 9225 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 9226 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 9227 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 9228 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 9229 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 9230 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 9231 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 9232 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 9233 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 9234 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 9235 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 9236 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 9237 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 9238 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 9239 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 9240 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 9241 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 9242 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 9243 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 9244 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 9245 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 9246 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 9247 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 9248 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 9249 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 9250 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 9251 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 9252 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 9253 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 9254 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 9255 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 9256 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF" |
| 9257 | "\x6C\x82\x9D", |
| 9258 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9259 | .also_non_np = 1, |
| 9260 | .np = 2, |
| 9261 | .tap = { 499 - 16, 16 }, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 9262 | }, |
| 9263 | }; |
| 9264 | |
| 9265 | static struct cipher_testvec tf_ctr_dec_tv_template[] = { |
| 9266 | { /* Generated with Crypto++ */ |
| 9267 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9268 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9269 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 9270 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 9271 | .klen = 32, |
| 9272 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 9273 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 9274 | .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 9275 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 9276 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 9277 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 9278 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 9279 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 9280 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 9281 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
| 9282 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 9283 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 9284 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 9285 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 9286 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 9287 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 9288 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 9289 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 9290 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 9291 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 9292 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 9293 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 9294 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 9295 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 9296 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 9297 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 9298 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 9299 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 9300 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 9301 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 9302 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 9303 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 9304 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 9305 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 9306 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 9307 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 9308 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 9309 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 9310 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 9311 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 9312 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 9313 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 9314 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 9315 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 9316 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 9317 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 9318 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 9319 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 9320 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 9321 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 9322 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 9323 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 9324 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 9325 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 9326 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 9327 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 9328 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 9329 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 9330 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 9331 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 9332 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 9333 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 9334 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 9335 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF", |
| 9336 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 9337 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 9338 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 9339 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9340 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9341 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9342 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9343 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 9344 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 9345 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9346 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9347 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9348 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9349 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9350 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9351 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9352 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9353 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 9354 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9355 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9356 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9357 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9358 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9359 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9360 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9361 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9362 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9363 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9364 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9365 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9366 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9367 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9368 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9369 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9370 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9371 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9372 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9373 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9374 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9375 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9376 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9377 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9378 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9379 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9380 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9381 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9382 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9383 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9384 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9385 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9386 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9387 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9388 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9389 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9390 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9391 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9392 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9393 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9394 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9395 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9396 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9397 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9398 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 9399 | .rlen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 9400 | }, { /* Generated with Crypto++ */ |
| 9401 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9402 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9403 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 9404 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 9405 | .klen = 32, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 9406 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 9407 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 9408 | .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44" |
| 9409 | "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C" |
| 9410 | "\x53\xC8\x16\x38\xDE\x40\x4F\x91" |
| 9411 | "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA" |
| 9412 | "\x88\x7E\x89\xE9\x67\x2B\x83\xA2" |
| 9413 | "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B" |
| 9414 | "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3" |
| 9415 | "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33" |
| 9416 | "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E" |
| 9417 | "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0" |
| 9418 | "\x64\x89\x9F\x6A\x27\x96\x07\xA6" |
| 9419 | "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01" |
| 9420 | "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34" |
| 9421 | "\x39\x18\x09\xA4\x82\x59\x78\xE7" |
| 9422 | "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2" |
| 9423 | "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3" |
| 9424 | "\xE6\x87\x31\x9E\x16\x85\xAD\xB1" |
| 9425 | "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E" |
| 9426 | "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3" |
| 9427 | "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF" |
| 9428 | "\x89\x16\x4D\x2D\xA2\x26\x33\x72" |
| 9429 | "\x18\x33\x7E\xD6\xD2\x16\xA4\x54" |
| 9430 | "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB" |
| 9431 | "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2" |
| 9432 | "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19" |
| 9433 | "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E" |
| 9434 | "\xAC\x00\xE3\x50\x63\x4A\x80\x9A" |
| 9435 | "\x05\xBC\x50\x39\xD3\x32\xD9\x0D" |
| 9436 | "\xE3\x20\x0D\x75\x54\xEC\xE6\x31" |
| 9437 | "\x14\xB9\x3A\x59\x00\x43\x37\x8E" |
| 9438 | "\x8C\x5A\x79\x62\x14\x76\x8A\xAE" |
| 9439 | "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D" |
| 9440 | "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60" |
| 9441 | "\xC9\x87\xB1\x79\x1E\xA5\x86\x68" |
| 9442 | "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73" |
| 9443 | "\xD0\xDA\x75\x77\x9E\x05\x27\xF1" |
| 9444 | "\x08\xA9\x66\x64\x6C\xBC\x82\x17" |
| 9445 | "\x2C\x23\x5F\x62\x4D\x02\x1A\x58" |
| 9446 | "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF" |
| 9447 | "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83" |
| 9448 | "\x95\x87\x13\x57\x60\xD7\xB5\xB1" |
| 9449 | "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D" |
| 9450 | "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF" |
| 9451 | "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A" |
| 9452 | "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8" |
| 9453 | "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0" |
| 9454 | "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC" |
| 9455 | "\xDE\x55\x1B\x50\x14\x53\x44\x17" |
| 9456 | "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A" |
| 9457 | "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B" |
| 9458 | "\x1A\x09\x97\xA9\xB6\x97\x79\x06" |
| 9459 | "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1" |
| 9460 | "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5" |
| 9461 | "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D" |
| 9462 | "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23" |
| 9463 | "\x41\x67\xA1\x24\x99\x7E\xCC\x9B" |
| 9464 | "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A" |
| 9465 | "\xF4\x78\xFD\x79\x62\x63\x4F\x14" |
| 9466 | "\xD6\x11\x11\x04\x05\x5F\x7E\xEA" |
| 9467 | "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54" |
| 9468 | "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B" |
| 9469 | "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D", |
| 9470 | .ilen = 496, |
| 9471 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 9472 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 9473 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9474 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9475 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9476 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9477 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 9478 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 9479 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9480 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9481 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9482 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9483 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9484 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9485 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9486 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9487 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 9488 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9489 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9490 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9491 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9492 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9493 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9494 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9495 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9496 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9497 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9498 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9499 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9500 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9501 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9502 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9503 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9504 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9505 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9506 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9507 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9508 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9509 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9510 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9511 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9512 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9513 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9514 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9515 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9516 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9517 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9518 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9519 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9520 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9521 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9522 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9523 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9524 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9525 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9526 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9527 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9528 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9529 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9530 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9531 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9532 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 9533 | .rlen = 496, |
| 9534 | }, { /* Generated with Crypto++ */ |
| 9535 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9536 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9537 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 9538 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 9539 | .klen = 32, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 9540 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 9541 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 9542 | .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 9543 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 9544 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 9545 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 9546 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 9547 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 9548 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
| 9549 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 9550 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 9551 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 9552 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 9553 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 9554 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 9555 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 9556 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 9557 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 9558 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 9559 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 9560 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 9561 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 9562 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 9563 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 9564 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 9565 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 9566 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 9567 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 9568 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 9569 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 9570 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 9571 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 9572 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 9573 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 9574 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 9575 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 9576 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 9577 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 9578 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 9579 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 9580 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 9581 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 9582 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 9583 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 9584 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 9585 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 9586 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 9587 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 9588 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 9589 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 9590 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 9591 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 9592 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 9593 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 9594 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 9595 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 9596 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 9597 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 9598 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 9599 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 9600 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 9601 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 9602 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 9603 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF" |
| 9604 | "\x6C\x82\x9D", |
| 9605 | .ilen = 499, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 9606 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 9607 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 9608 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9609 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9610 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9611 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9612 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 9613 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 9614 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9615 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9616 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9617 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9618 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9619 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9620 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9621 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9622 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 9623 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9624 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9625 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9626 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9627 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9628 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9629 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9630 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9631 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9632 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9633 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9634 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9635 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9636 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9637 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9638 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9639 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9640 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9641 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9642 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9643 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9644 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9645 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9646 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9647 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9648 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9649 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9650 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9651 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9652 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9653 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9654 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9655 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9656 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9657 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9658 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9659 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9660 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9661 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9662 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9663 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9664 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9665 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9666 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9667 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 9668 | "\x2B\xC2\x59", |
| 9669 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9670 | .also_non_np = 1, |
| 9671 | .np = 2, |
| 9672 | .tap = { 499 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9673 | }, |
| 9674 | }; |
| 9675 | |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 9676 | static struct cipher_testvec tf_lrw_enc_tv_template[] = { |
| 9677 | /* Generated from AES-LRW test vectors */ |
| 9678 | { |
| 9679 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 9680 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 9681 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 9682 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 9683 | .klen = 32, |
| 9684 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9685 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 9686 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9687 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9688 | .ilen = 16, |
| 9689 | .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b" |
| 9690 | "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee", |
| 9691 | .rlen = 16, |
| 9692 | }, { |
| 9693 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 9694 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 9695 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 9696 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 9697 | .klen = 32, |
| 9698 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9699 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 9700 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9701 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9702 | .ilen = 16, |
| 9703 | .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9" |
| 9704 | "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd", |
| 9705 | .rlen = 16, |
| 9706 | }, { |
| 9707 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 9708 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 9709 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 9710 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 9711 | .klen = 32, |
| 9712 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9713 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 9714 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9715 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9716 | .ilen = 16, |
| 9717 | .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1" |
| 9718 | "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4", |
| 9719 | .rlen = 16, |
| 9720 | }, { |
| 9721 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 9722 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 9723 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 9724 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 9725 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 9726 | .klen = 40, |
| 9727 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9728 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 9729 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9730 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9731 | .ilen = 16, |
| 9732 | .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c" |
| 9733 | "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5", |
| 9734 | .rlen = 16, |
| 9735 | }, { |
| 9736 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 9737 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 9738 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 9739 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 9740 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 9741 | .klen = 40, |
| 9742 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9743 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 9744 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9745 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9746 | .ilen = 16, |
| 9747 | .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a" |
| 9748 | "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4", |
| 9749 | .rlen = 16, |
| 9750 | }, { |
| 9751 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 9752 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 9753 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 9754 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 9755 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 9756 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 9757 | .klen = 48, |
| 9758 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9759 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 9760 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9761 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9762 | .ilen = 16, |
| 9763 | .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58" |
| 9764 | "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76", |
| 9765 | .rlen = 16, |
| 9766 | }, { |
| 9767 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 9768 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 9769 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 9770 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 9771 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 9772 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 9773 | .klen = 48, |
| 9774 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9775 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 9776 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9777 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9778 | .ilen = 16, |
| 9779 | .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75" |
| 9780 | "\x17\x66\x5e\x0c\x14\xa1\x3d\x40", |
| 9781 | .rlen = 16, |
| 9782 | }, { |
| 9783 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 9784 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 9785 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 9786 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 9787 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 9788 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 9789 | .klen = 48, |
| 9790 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9791 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 9792 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 9793 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 9794 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 9795 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 9796 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 9797 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 9798 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 9799 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 9800 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 9801 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 9802 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 9803 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 9804 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 9805 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 9806 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 9807 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 9808 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 9809 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 9810 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 9811 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 9812 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 9813 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 9814 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 9815 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 9816 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 9817 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 9818 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 9819 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 9820 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 9821 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 9822 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 9823 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 9824 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 9825 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 9826 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 9827 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 9828 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 9829 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 9830 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 9831 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 9832 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 9833 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 9834 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 9835 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 9836 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 9837 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 9838 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 9839 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 9840 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 9841 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 9842 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 9843 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 9844 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 9845 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 9846 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 9847 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 9848 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 9849 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 9850 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 9851 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 9852 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 9853 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 9854 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 9855 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 9856 | .ilen = 512, |
| 9857 | .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89" |
| 9858 | "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9" |
| 9859 | "\x08\xc3\x0d\xdd\x95\xab\x19\x96" |
| 9860 | "\x27\x52\x41\xc3\xca\xfb\xf6\xee" |
| 9861 | "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a" |
| 9862 | "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45" |
| 9863 | "\x42\xe9\x29\xc0\xb4\x07\xb4\x31" |
| 9864 | "\x66\x77\x72\xb5\xb6\xb3\x57\x46" |
| 9865 | "\x34\x9a\xfe\x03\xaf\x6b\x36\x07" |
| 9866 | "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d" |
| 9867 | "\xfb\x6d\x82\x51\xb6\x98\xd0\x71" |
| 9868 | "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d" |
| 9869 | "\x72\x2b\x54\x13\xe3\x6d\x79\x37" |
| 9870 | "\xa9\x39\x2c\xdf\x21\xab\x87\xd5" |
| 9871 | "\xee\xef\x9a\x12\x50\x39\x2e\x1b" |
| 9872 | "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac" |
| 9873 | "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08" |
| 9874 | "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25" |
| 9875 | "\x31\x9d\xef\xb1\x1d\x27\x55\x04" |
| 9876 | "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a" |
| 9877 | "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb" |
| 9878 | "\x26\xbe\x4f\x27\x04\x42\xd1\x44" |
| 9879 | "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf" |
| 9880 | "\x1d\x28\x14\xfd\xb1\x1a\x34\x18" |
| 9881 | "\xf5\x1e\x28\x69\x95\x6a\x5a\xba" |
| 9882 | "\x8e\xb2\x58\x1d\x28\x17\x13\x3d" |
| 9883 | "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8" |
| 9884 | "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b" |
| 9885 | "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a" |
| 9886 | "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a" |
| 9887 | "\x63\xa5\x99\x82\x09\x72\x8f\xc6" |
| 9888 | "\xa4\x62\x24\x69\x8c\x2d\x26\x00" |
| 9889 | "\x99\x83\x91\xd6\xc6\xcf\x57\x67" |
| 9890 | "\x38\xea\xf2\xfc\x29\xe0\x73\x39" |
| 9891 | "\xf9\x13\x94\x6d\xe2\x58\x28\x75" |
| 9892 | "\x3e\xae\x71\x90\x07\x70\x1c\x38" |
| 9893 | "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef" |
| 9894 | "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22" |
| 9895 | "\x82\x09\xe3\x18\x3f\x4f\x48\xfc" |
| 9896 | "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b" |
| 9897 | "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e" |
| 9898 | "\xc3\xac\x4a\xed\xe7\x82\xef\x31" |
| 9899 | "\x1f\x1a\x51\x1e\x29\x60\xc8\x98" |
| 9900 | "\x93\x51\x1d\x3d\x62\x59\x83\x82" |
| 9901 | "\x0c\xf1\xd7\x8d\xac\x33\x44\x81" |
| 9902 | "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4" |
| 9903 | "\xec\xdc\x24\xfd\x0e\x1a\x79\x94" |
| 9904 | "\x34\xb0\x62\xfa\x98\x49\x26\x1f" |
| 9905 | "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe" |
| 9906 | "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc" |
| 9907 | "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c" |
| 9908 | "\xdb\xf6\x21\x80\xf7\x5a\x37\x15" |
| 9909 | "\x0c\xe3\x36\xc8\x74\x75\x20\x91" |
| 9910 | "\xdf\x52\x2d\x0c\xe7\x45\xff\x46" |
| 9911 | "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6" |
| 9912 | "\x26\xa2\x5d\x7d\x61\xbf\x10\x46" |
| 9913 | "\x57\x8d\x05\x96\x70\x0b\xd6\x41" |
| 9914 | "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd" |
| 9915 | "\x5f\x92\x81\x6e\x35\x03\xd4\x72" |
| 9916 | "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23" |
| 9917 | "\x45\x5d\xec\x72\xc1\x52\xef\x2e" |
| 9918 | "\x81\x00\xd3\xfe\x4c\x3c\x05\x61" |
| 9919 | "\x80\x18\xc4\x6c\x03\xd3\xb7\xba" |
| 9920 | "\x11\xd7\xb8\x6e\xea\xe1\x80\x30", |
| 9921 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9922 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 9923 | .np = 3, |
| 9924 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 9925 | }, |
| 9926 | }; |
| 9927 | |
| 9928 | static struct cipher_testvec tf_lrw_dec_tv_template[] = { |
| 9929 | /* Generated from AES-LRW test vectors */ |
| 9930 | /* same as enc vectors with input and result reversed */ |
| 9931 | { |
| 9932 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 9933 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 9934 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 9935 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 9936 | .klen = 32, |
| 9937 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9938 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 9939 | .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b" |
| 9940 | "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee", |
| 9941 | .ilen = 16, |
| 9942 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9943 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9944 | .rlen = 16, |
| 9945 | }, { |
| 9946 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 9947 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 9948 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 9949 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 9950 | .klen = 32, |
| 9951 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9952 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 9953 | .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9" |
| 9954 | "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd", |
| 9955 | .ilen = 16, |
| 9956 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9957 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9958 | .rlen = 16, |
| 9959 | }, { |
| 9960 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 9961 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 9962 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 9963 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 9964 | .klen = 32, |
| 9965 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9966 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 9967 | .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1" |
| 9968 | "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4", |
| 9969 | .ilen = 16, |
| 9970 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9971 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9972 | .rlen = 16, |
| 9973 | }, { |
| 9974 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 9975 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 9976 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 9977 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 9978 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 9979 | .klen = 40, |
| 9980 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9981 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 9982 | .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c" |
| 9983 | "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5", |
| 9984 | .ilen = 16, |
| 9985 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9986 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9987 | .rlen = 16, |
| 9988 | }, { |
| 9989 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 9990 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 9991 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 9992 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 9993 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 9994 | .klen = 40, |
| 9995 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9996 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 9997 | .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a" |
| 9998 | "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4", |
| 9999 | .ilen = 16, |
| 10000 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10001 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10002 | .rlen = 16, |
| 10003 | }, { |
| 10004 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 10005 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 10006 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 10007 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 10008 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 10009 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 10010 | .klen = 48, |
| 10011 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10012 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 10013 | .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58" |
| 10014 | "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76", |
| 10015 | .ilen = 16, |
| 10016 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10017 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10018 | .rlen = 16, |
| 10019 | }, { |
| 10020 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 10021 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 10022 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 10023 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 10024 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 10025 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 10026 | .klen = 48, |
| 10027 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10028 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 10029 | .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75" |
| 10030 | "\x17\x66\x5e\x0c\x14\xa1\x3d\x40", |
| 10031 | .ilen = 16, |
| 10032 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10033 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 10034 | .rlen = 16, |
| 10035 | }, { |
| 10036 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 10037 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 10038 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 10039 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 10040 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 10041 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 10042 | .klen = 48, |
| 10043 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10044 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 10045 | .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89" |
| 10046 | "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9" |
| 10047 | "\x08\xc3\x0d\xdd\x95\xab\x19\x96" |
| 10048 | "\x27\x52\x41\xc3\xca\xfb\xf6\xee" |
| 10049 | "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a" |
| 10050 | "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45" |
| 10051 | "\x42\xe9\x29\xc0\xb4\x07\xb4\x31" |
| 10052 | "\x66\x77\x72\xb5\xb6\xb3\x57\x46" |
| 10053 | "\x34\x9a\xfe\x03\xaf\x6b\x36\x07" |
| 10054 | "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d" |
| 10055 | "\xfb\x6d\x82\x51\xb6\x98\xd0\x71" |
| 10056 | "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d" |
| 10057 | "\x72\x2b\x54\x13\xe3\x6d\x79\x37" |
| 10058 | "\xa9\x39\x2c\xdf\x21\xab\x87\xd5" |
| 10059 | "\xee\xef\x9a\x12\x50\x39\x2e\x1b" |
| 10060 | "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac" |
| 10061 | "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08" |
| 10062 | "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25" |
| 10063 | "\x31\x9d\xef\xb1\x1d\x27\x55\x04" |
| 10064 | "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a" |
| 10065 | "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb" |
| 10066 | "\x26\xbe\x4f\x27\x04\x42\xd1\x44" |
| 10067 | "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf" |
| 10068 | "\x1d\x28\x14\xfd\xb1\x1a\x34\x18" |
| 10069 | "\xf5\x1e\x28\x69\x95\x6a\x5a\xba" |
| 10070 | "\x8e\xb2\x58\x1d\x28\x17\x13\x3d" |
| 10071 | "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8" |
| 10072 | "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b" |
| 10073 | "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a" |
| 10074 | "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a" |
| 10075 | "\x63\xa5\x99\x82\x09\x72\x8f\xc6" |
| 10076 | "\xa4\x62\x24\x69\x8c\x2d\x26\x00" |
| 10077 | "\x99\x83\x91\xd6\xc6\xcf\x57\x67" |
| 10078 | "\x38\xea\xf2\xfc\x29\xe0\x73\x39" |
| 10079 | "\xf9\x13\x94\x6d\xe2\x58\x28\x75" |
| 10080 | "\x3e\xae\x71\x90\x07\x70\x1c\x38" |
| 10081 | "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef" |
| 10082 | "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22" |
| 10083 | "\x82\x09\xe3\x18\x3f\x4f\x48\xfc" |
| 10084 | "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b" |
| 10085 | "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e" |
| 10086 | "\xc3\xac\x4a\xed\xe7\x82\xef\x31" |
| 10087 | "\x1f\x1a\x51\x1e\x29\x60\xc8\x98" |
| 10088 | "\x93\x51\x1d\x3d\x62\x59\x83\x82" |
| 10089 | "\x0c\xf1\xd7\x8d\xac\x33\x44\x81" |
| 10090 | "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4" |
| 10091 | "\xec\xdc\x24\xfd\x0e\x1a\x79\x94" |
| 10092 | "\x34\xb0\x62\xfa\x98\x49\x26\x1f" |
| 10093 | "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe" |
| 10094 | "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc" |
| 10095 | "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c" |
| 10096 | "\xdb\xf6\x21\x80\xf7\x5a\x37\x15" |
| 10097 | "\x0c\xe3\x36\xc8\x74\x75\x20\x91" |
| 10098 | "\xdf\x52\x2d\x0c\xe7\x45\xff\x46" |
| 10099 | "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6" |
| 10100 | "\x26\xa2\x5d\x7d\x61\xbf\x10\x46" |
| 10101 | "\x57\x8d\x05\x96\x70\x0b\xd6\x41" |
| 10102 | "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd" |
| 10103 | "\x5f\x92\x81\x6e\x35\x03\xd4\x72" |
| 10104 | "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23" |
| 10105 | "\x45\x5d\xec\x72\xc1\x52\xef\x2e" |
| 10106 | "\x81\x00\xd3\xfe\x4c\x3c\x05\x61" |
| 10107 | "\x80\x18\xc4\x6c\x03\xd3\xb7\xba" |
| 10108 | "\x11\xd7\xb8\x6e\xea\xe1\x80\x30", |
| 10109 | .ilen = 512, |
| 10110 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 10111 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 10112 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 10113 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 10114 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 10115 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 10116 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 10117 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 10118 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 10119 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 10120 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 10121 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 10122 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 10123 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 10124 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 10125 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 10126 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 10127 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 10128 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 10129 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 10130 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 10131 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 10132 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 10133 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 10134 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 10135 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 10136 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 10137 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 10138 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 10139 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 10140 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 10141 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 10142 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 10143 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 10144 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 10145 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 10146 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 10147 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 10148 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 10149 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 10150 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 10151 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 10152 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 10153 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 10154 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 10155 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 10156 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 10157 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 10158 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 10159 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 10160 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 10161 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 10162 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 10163 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 10164 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 10165 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 10166 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 10167 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 10168 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 10169 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 10170 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 10171 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 10172 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 10173 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 10174 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10175 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 10176 | .np = 3, |
| 10177 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 10178 | }, |
| 10179 | }; |
| 10180 | |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 10181 | static struct cipher_testvec tf_xts_enc_tv_template[] = { |
| 10182 | /* Generated from AES-XTS test vectors */ |
| 10183 | { |
| 10184 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10185 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10186 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10187 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10188 | .klen = 32, |
| 10189 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10190 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10191 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10192 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10193 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10194 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10195 | .ilen = 32, |
| 10196 | .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" |
| 10197 | "\x30\x74\xe4\x44\x52\x77\x97\x43" |
| 10198 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" |
| 10199 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", |
| 10200 | .rlen = 32, |
| 10201 | }, { |
| 10202 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 10203 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 10204 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 10205 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 10206 | .klen = 32, |
| 10207 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 10208 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10209 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10210 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10211 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10212 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 10213 | .ilen = 32, |
| 10214 | .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" |
| 10215 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" |
| 10216 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" |
| 10217 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", |
| 10218 | .rlen = 32, |
| 10219 | }, { |
| 10220 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 10221 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 10222 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 10223 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 10224 | .klen = 32, |
| 10225 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 10226 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10227 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10228 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10229 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10230 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 10231 | .ilen = 32, |
| 10232 | .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" |
| 10233 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" |
| 10234 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" |
| 10235 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", |
| 10236 | .rlen = 32, |
| 10237 | }, { |
| 10238 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 10239 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 10240 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 10241 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 10242 | .klen = 32, |
| 10243 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10244 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10245 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10246 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10247 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10248 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 10249 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 10250 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 10251 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10252 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 10253 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 10254 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 10255 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 10256 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 10257 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 10258 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 10259 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 10260 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 10261 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 10262 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 10263 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 10264 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 10265 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 10266 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 10267 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 10268 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 10269 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 10270 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 10271 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 10272 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 10273 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 10274 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 10275 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 10276 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 10277 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10278 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10279 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10280 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 10281 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 10282 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 10283 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10284 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 10285 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 10286 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 10287 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 10288 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 10289 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 10290 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 10291 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 10292 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 10293 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 10294 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 10295 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 10296 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 10297 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 10298 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 10299 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 10300 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 10301 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 10302 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 10303 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 10304 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 10305 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 10306 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 10307 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 10308 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 10309 | .ilen = 512, |
| 10310 | .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" |
| 10311 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" |
| 10312 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" |
| 10313 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" |
| 10314 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" |
| 10315 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" |
| 10316 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" |
| 10317 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" |
| 10318 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" |
| 10319 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" |
| 10320 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" |
| 10321 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" |
| 10322 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" |
| 10323 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" |
| 10324 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" |
| 10325 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" |
| 10326 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" |
| 10327 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" |
| 10328 | "\x39\x80\x39\x09\x97\x65\xf2\x83" |
| 10329 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" |
| 10330 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" |
| 10331 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" |
| 10332 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" |
| 10333 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" |
| 10334 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" |
| 10335 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" |
| 10336 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" |
| 10337 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" |
| 10338 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" |
| 10339 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" |
| 10340 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" |
| 10341 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" |
| 10342 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" |
| 10343 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" |
| 10344 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" |
| 10345 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" |
| 10346 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" |
| 10347 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" |
| 10348 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" |
| 10349 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" |
| 10350 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" |
| 10351 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" |
| 10352 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" |
| 10353 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" |
| 10354 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" |
| 10355 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" |
| 10356 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" |
| 10357 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" |
| 10358 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" |
| 10359 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" |
| 10360 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" |
| 10361 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" |
| 10362 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" |
| 10363 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" |
| 10364 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" |
| 10365 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" |
| 10366 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" |
| 10367 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" |
| 10368 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" |
| 10369 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" |
| 10370 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" |
| 10371 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" |
| 10372 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" |
| 10373 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", |
| 10374 | .rlen = 512, |
| 10375 | }, { |
| 10376 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 10377 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 10378 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 10379 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 10380 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 10381 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 10382 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 10383 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 10384 | .klen = 64, |
| 10385 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 10386 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10387 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10388 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10389 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10390 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 10391 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 10392 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 10393 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10394 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 10395 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 10396 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 10397 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 10398 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 10399 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 10400 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 10401 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 10402 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 10403 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 10404 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 10405 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 10406 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 10407 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 10408 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 10409 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 10410 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 10411 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 10412 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 10413 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 10414 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 10415 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 10416 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 10417 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 10418 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 10419 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10420 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10421 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10422 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 10423 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 10424 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 10425 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10426 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 10427 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 10428 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 10429 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 10430 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 10431 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 10432 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 10433 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 10434 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 10435 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 10436 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 10437 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 10438 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 10439 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 10440 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 10441 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 10442 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 10443 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 10444 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 10445 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 10446 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 10447 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 10448 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 10449 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 10450 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 10451 | .ilen = 512, |
| 10452 | .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" |
| 10453 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" |
| 10454 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" |
| 10455 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" |
| 10456 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" |
| 10457 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" |
| 10458 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" |
| 10459 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" |
| 10460 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" |
| 10461 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" |
| 10462 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" |
| 10463 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" |
| 10464 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" |
| 10465 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" |
| 10466 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" |
| 10467 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" |
| 10468 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" |
| 10469 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" |
| 10470 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" |
| 10471 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" |
| 10472 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" |
| 10473 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" |
| 10474 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" |
| 10475 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" |
| 10476 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" |
| 10477 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" |
| 10478 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" |
| 10479 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" |
| 10480 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" |
| 10481 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" |
| 10482 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" |
| 10483 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" |
| 10484 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" |
| 10485 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" |
| 10486 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" |
| 10487 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" |
| 10488 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" |
| 10489 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" |
| 10490 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" |
| 10491 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" |
| 10492 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" |
| 10493 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" |
| 10494 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" |
| 10495 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" |
| 10496 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" |
| 10497 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" |
| 10498 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" |
| 10499 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" |
| 10500 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" |
| 10501 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" |
| 10502 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" |
| 10503 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" |
| 10504 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" |
| 10505 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" |
| 10506 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" |
| 10507 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" |
| 10508 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" |
| 10509 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" |
| 10510 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" |
| 10511 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" |
| 10512 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" |
| 10513 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" |
| 10514 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" |
| 10515 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", |
| 10516 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10517 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 10518 | .np = 3, |
| 10519 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 10520 | }, |
| 10521 | }; |
| 10522 | |
| 10523 | static struct cipher_testvec tf_xts_dec_tv_template[] = { |
| 10524 | /* Generated from AES-XTS test vectors */ |
| 10525 | /* same as enc vectors with input and result reversed */ |
| 10526 | { |
| 10527 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10528 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10529 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10530 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10531 | .klen = 32, |
| 10532 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10533 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10534 | .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" |
| 10535 | "\x30\x74\xe4\x44\x52\x77\x97\x43" |
| 10536 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" |
| 10537 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", |
| 10538 | .ilen = 32, |
| 10539 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10540 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10541 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10542 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10543 | .rlen = 32, |
| 10544 | }, { |
| 10545 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 10546 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 10547 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 10548 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 10549 | .klen = 32, |
| 10550 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 10551 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10552 | .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" |
| 10553 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" |
| 10554 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" |
| 10555 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", |
| 10556 | .ilen = 32, |
| 10557 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10558 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10559 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10560 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 10561 | .rlen = 32, |
| 10562 | }, { |
| 10563 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 10564 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 10565 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 10566 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 10567 | .klen = 32, |
| 10568 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 10569 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10570 | .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" |
| 10571 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" |
| 10572 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" |
| 10573 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", |
| 10574 | .ilen = 32, |
| 10575 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10576 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10577 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 10578 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 10579 | .rlen = 32, |
| 10580 | }, { |
| 10581 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 10582 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 10583 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 10584 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 10585 | .klen = 32, |
| 10586 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10587 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10588 | .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" |
| 10589 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" |
| 10590 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" |
| 10591 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" |
| 10592 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" |
| 10593 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" |
| 10594 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" |
| 10595 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" |
| 10596 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" |
| 10597 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" |
| 10598 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" |
| 10599 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" |
| 10600 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" |
| 10601 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" |
| 10602 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" |
| 10603 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" |
| 10604 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" |
| 10605 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" |
| 10606 | "\x39\x80\x39\x09\x97\x65\xf2\x83" |
| 10607 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" |
| 10608 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" |
| 10609 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" |
| 10610 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" |
| 10611 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" |
| 10612 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" |
| 10613 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" |
| 10614 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" |
| 10615 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" |
| 10616 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" |
| 10617 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" |
| 10618 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" |
| 10619 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" |
| 10620 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" |
| 10621 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" |
| 10622 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" |
| 10623 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" |
| 10624 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" |
| 10625 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" |
| 10626 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" |
| 10627 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" |
| 10628 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" |
| 10629 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" |
| 10630 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" |
| 10631 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" |
| 10632 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" |
| 10633 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" |
| 10634 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" |
| 10635 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" |
| 10636 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" |
| 10637 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" |
| 10638 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" |
| 10639 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" |
| 10640 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" |
| 10641 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" |
| 10642 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" |
| 10643 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" |
| 10644 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" |
| 10645 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" |
| 10646 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" |
| 10647 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" |
| 10648 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" |
| 10649 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" |
| 10650 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" |
| 10651 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", |
| 10652 | .ilen = 512, |
| 10653 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10654 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10655 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10656 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 10657 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 10658 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 10659 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10660 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 10661 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 10662 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 10663 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 10664 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 10665 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 10666 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 10667 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 10668 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 10669 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 10670 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 10671 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 10672 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 10673 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 10674 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 10675 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 10676 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 10677 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 10678 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 10679 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 10680 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 10681 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 10682 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 10683 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 10684 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 10685 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10686 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10687 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10688 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 10689 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 10690 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 10691 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10692 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 10693 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 10694 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 10695 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 10696 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 10697 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 10698 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 10699 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 10700 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 10701 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 10702 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 10703 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 10704 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 10705 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 10706 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 10707 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 10708 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 10709 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 10710 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 10711 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 10712 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 10713 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 10714 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 10715 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 10716 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 10717 | .rlen = 512, |
| 10718 | }, { |
| 10719 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 10720 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 10721 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 10722 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 10723 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 10724 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 10725 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 10726 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 10727 | .klen = 64, |
| 10728 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 10729 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10730 | .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" |
| 10731 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" |
| 10732 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" |
| 10733 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" |
| 10734 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" |
| 10735 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" |
| 10736 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" |
| 10737 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" |
| 10738 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" |
| 10739 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" |
| 10740 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" |
| 10741 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" |
| 10742 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" |
| 10743 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" |
| 10744 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" |
| 10745 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" |
| 10746 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" |
| 10747 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" |
| 10748 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" |
| 10749 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" |
| 10750 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" |
| 10751 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" |
| 10752 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" |
| 10753 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" |
| 10754 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" |
| 10755 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" |
| 10756 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" |
| 10757 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" |
| 10758 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" |
| 10759 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" |
| 10760 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" |
| 10761 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" |
| 10762 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" |
| 10763 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" |
| 10764 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" |
| 10765 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" |
| 10766 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" |
| 10767 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" |
| 10768 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" |
| 10769 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" |
| 10770 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" |
| 10771 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" |
| 10772 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" |
| 10773 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" |
| 10774 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" |
| 10775 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" |
| 10776 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" |
| 10777 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" |
| 10778 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" |
| 10779 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" |
| 10780 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" |
| 10781 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" |
| 10782 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" |
| 10783 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" |
| 10784 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" |
| 10785 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" |
| 10786 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" |
| 10787 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" |
| 10788 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" |
| 10789 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" |
| 10790 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" |
| 10791 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" |
| 10792 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" |
| 10793 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", |
| 10794 | .ilen = 512, |
| 10795 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10796 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10797 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10798 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 10799 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 10800 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 10801 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10802 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 10803 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 10804 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 10805 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 10806 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 10807 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 10808 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 10809 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 10810 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 10811 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 10812 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 10813 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 10814 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 10815 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 10816 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 10817 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 10818 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 10819 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 10820 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 10821 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 10822 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 10823 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 10824 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 10825 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 10826 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 10827 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10828 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10829 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10830 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 10831 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 10832 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 10833 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 10834 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 10835 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 10836 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 10837 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 10838 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 10839 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 10840 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 10841 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 10842 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 10843 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 10844 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 10845 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 10846 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 10847 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 10848 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 10849 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 10850 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 10851 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 10852 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 10853 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 10854 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 10855 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 10856 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 10857 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 10858 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 10859 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10860 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 10861 | .np = 3, |
| 10862 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 10863 | }, |
| 10864 | }; |
| 10865 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 10866 | /* |
| 10867 | * Serpent test vectors. These are backwards because Serpent writes |
| 10868 | * octet sequences in right-to-left mode. |
| 10869 | */ |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10870 | #define SERPENT_ENC_TEST_VECTORS 5 |
| 10871 | #define SERPENT_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 10872 | |
| 10873 | #define TNEPRES_ENC_TEST_VECTORS 4 |
| 10874 | #define TNEPRES_DEC_TEST_VECTORS 4 |
| 10875 | |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10876 | #define SERPENT_CBC_ENC_TEST_VECTORS 1 |
| 10877 | #define SERPENT_CBC_DEC_TEST_VECTORS 1 |
| 10878 | |
| 10879 | #define SERPENT_CTR_ENC_TEST_VECTORS 2 |
| 10880 | #define SERPENT_CTR_DEC_TEST_VECTORS 2 |
| 10881 | |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 10882 | #define SERPENT_LRW_ENC_TEST_VECTORS 8 |
| 10883 | #define SERPENT_LRW_DEC_TEST_VECTORS 8 |
| 10884 | |
Jussi Kivilinna | 18be20b | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 10885 | #define SERPENT_XTS_ENC_TEST_VECTORS 5 |
| 10886 | #define SERPENT_XTS_DEC_TEST_VECTORS 5 |
| 10887 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 10888 | static struct cipher_testvec serpent_enc_tv_template[] = { |
| 10889 | { |
| 10890 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10891 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10892 | .ilen = 16, |
| 10893 | .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" |
| 10894 | "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", |
| 10895 | .rlen = 16, |
| 10896 | }, { |
| 10897 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10898 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10899 | .klen = 16, |
| 10900 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10901 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10902 | .ilen = 16, |
| 10903 | .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" |
| 10904 | "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", |
| 10905 | .rlen = 16, |
| 10906 | }, { |
| 10907 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10908 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10909 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10910 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 10911 | .klen = 32, |
| 10912 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10913 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10914 | .ilen = 16, |
| 10915 | .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" |
| 10916 | "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", |
| 10917 | .rlen = 16, |
| 10918 | }, { |
| 10919 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 10920 | .klen = 16, |
| 10921 | .input = zeroed_string, |
| 10922 | .ilen = 16, |
| 10923 | .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" |
| 10924 | "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", |
| 10925 | .rlen = 16, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10926 | }, { /* Generated with Crypto++ */ |
| 10927 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10928 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10929 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10930 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10931 | .klen = 32, |
| 10932 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10933 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10934 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10935 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10936 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10937 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10938 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10939 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10940 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10941 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10942 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10943 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10944 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10945 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10946 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10947 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10948 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10949 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10950 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10951 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10952 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10953 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10954 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10955 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10956 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10957 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10958 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10959 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10960 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10961 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10962 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10963 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10964 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10965 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10966 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10967 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10968 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10969 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10970 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10971 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10972 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10973 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10974 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10975 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10976 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10977 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10978 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10979 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10980 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10981 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10982 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10983 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10984 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10985 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10986 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10987 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10988 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10989 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10990 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10991 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10992 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10993 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10994 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10995 | .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB" |
| 10996 | "\xB1\x80\x10\x43\xDE\x62\x70\xBD" |
| 10997 | "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7" |
| 10998 | "\x0C\xD1\xBB\x29\x25\x14\x4C\x22" |
| 10999 | "\x77\xA6\x38\x00\xDB\xB9\xE2\x07" |
| 11000 | "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39" |
| 11001 | "\x99\x34\x89\x5B\x54\xE9\x12\x13" |
| 11002 | "\x3B\x04\xE5\x12\x42\xC5\x79\xAB" |
| 11003 | "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6" |
| 11004 | "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA" |
| 11005 | "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A" |
| 11006 | "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87" |
| 11007 | "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5" |
| 11008 | "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73" |
| 11009 | "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD" |
| 11010 | "\x69\xDA\x7A\x01\xF5\x6A\x70\x39" |
| 11011 | "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11012 | "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6" |
| 11013 | "\xB6\x31\x36\x34\x38\x3C\x1D\x69" |
| 11014 | "\x9F\x47\x28\x9A\x1D\x96\x70\x54" |
| 11015 | "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A" |
| 11016 | "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A" |
| 11017 | "\x23\x9C\x9B\x79\xC7\x75\xC8\x39" |
| 11018 | "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D" |
| 11019 | "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B" |
| 11020 | "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F" |
| 11021 | "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8" |
| 11022 | "\xEF\x50\x22\x20\x93\x30\xBE\xE2" |
| 11023 | "\x38\x05\x65\xAF\xBA\xB6\xE4\x72" |
| 11024 | "\xA9\xEE\x05\x42\x88\xBD\x9D\x49" |
| 11025 | "\xAD\x93\xCA\x4D\x45\x11\x43\x4D" |
| 11026 | "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4" |
| 11027 | "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD" |
| 11028 | "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6" |
| 11029 | "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69" |
| 11030 | "\x73\x65\x65\x51\xD6\x0B\x4E\x8C" |
| 11031 | "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B" |
| 11032 | "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39" |
| 11033 | "\xE8\x10\x93\x16\xC8\x68\x4C\x60" |
| 11034 | "\x87\x70\x14\xD0\x01\x57\xCB\x42" |
| 11035 | "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7" |
| 11036 | "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE" |
| 11037 | "\xFD\x72\xEC\xD7\x6F\x97\x14\x90" |
| 11038 | "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE" |
| 11039 | "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B" |
| 11040 | "\x71\x80\x05\x35\x3F\x40\x0B\x21" |
| 11041 | "\x76\xE5\xEF\x42\x6C\xDB\x31\x05" |
| 11042 | "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2" |
| 11043 | "\x49\x03\x5E\x77\x2E\x20\xBA\xA1" |
| 11044 | "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E" |
| 11045 | "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F" |
| 11046 | "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6" |
| 11047 | "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1" |
| 11048 | "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00" |
| 11049 | "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF" |
| 11050 | "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45" |
| 11051 | "\x91\x76\xE7\x6E\x65\x3D\x15\x86" |
| 11052 | "\x10\xF8\xDB\x66\x97\x7C\x43\x4D" |
| 11053 | "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A" |
| 11054 | "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02" |
| 11055 | "\x75\x55\x9B\xFF\x36\x73\xAB\x7C" |
| 11056 | "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7", |
| 11057 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11058 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 11059 | .np = 3, |
| 11060 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 11061 | }, |
| 11062 | }; |
| 11063 | |
| 11064 | static struct cipher_testvec tnepres_enc_tv_template[] = { |
| 11065 | { /* KeySize=128, PT=0, I=1 */ |
| 11066 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11067 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11068 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 11069 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11070 | .klen = 16, |
| 11071 | .ilen = 16, |
| 11072 | .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05" |
| 11073 | "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd", |
| 11074 | .rlen = 16, |
| 11075 | }, { /* KeySize=192, PT=0, I=1 */ |
| 11076 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 11077 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11078 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11079 | .klen = 24, |
| 11080 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11081 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11082 | .ilen = 16, |
| 11083 | .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68" |
| 11084 | "\xac\x36\x78\xf7\xa3\xf6\x0c\x66", |
| 11085 | .rlen = 16, |
| 11086 | }, { /* KeySize=256, PT=0, I=1 */ |
| 11087 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 11088 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11089 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11090 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11091 | .klen = 32, |
| 11092 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11093 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11094 | .ilen = 16, |
| 11095 | .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb" |
| 11096 | "\xc0\xeb\xd2\x1a\x82\xef\x08\x19", |
| 11097 | .rlen = 16, |
| 11098 | }, { /* KeySize=256, I=257 */ |
| 11099 | .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18" |
| 11100 | "\x17\x16\x15\x14\x13\x12\x11\x10" |
| 11101 | "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" |
| 11102 | "\x07\x06\x05\x04\x03\x02\x01\x00", |
| 11103 | .klen = 32, |
| 11104 | .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" |
| 11105 | "\x07\x06\x05\x04\x03\x02\x01\x00", |
| 11106 | .ilen = 16, |
| 11107 | .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b" |
| 11108 | "\xb8\x32\xe4\x33\xf8\x9f\x26\xde", |
| 11109 | .rlen = 16, |
| 11110 | }, |
| 11111 | }; |
| 11112 | |
| 11113 | |
| 11114 | static struct cipher_testvec serpent_dec_tv_template[] = { |
| 11115 | { |
| 11116 | .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" |
| 11117 | "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", |
| 11118 | .ilen = 16, |
| 11119 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11120 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 11121 | .rlen = 16, |
| 11122 | }, { |
| 11123 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11124 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 11125 | .klen = 16, |
| 11126 | .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" |
| 11127 | "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", |
| 11128 | .ilen = 16, |
| 11129 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11130 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 11131 | .rlen = 16, |
| 11132 | }, { |
| 11133 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11134 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11135 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11136 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 11137 | .klen = 32, |
| 11138 | .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" |
| 11139 | "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", |
| 11140 | .ilen = 16, |
| 11141 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11142 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 11143 | .rlen = 16, |
| 11144 | }, { |
| 11145 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 11146 | .klen = 16, |
| 11147 | .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" |
| 11148 | "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", |
| 11149 | .ilen = 16, |
| 11150 | .result = zeroed_string, |
| 11151 | .rlen = 16, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11152 | }, { /* Generated with Crypto++ */ |
| 11153 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 11154 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 11155 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 11156 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 11157 | .klen = 32, |
| 11158 | .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB" |
| 11159 | "\xB1\x80\x10\x43\xDE\x62\x70\xBD" |
| 11160 | "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7" |
| 11161 | "\x0C\xD1\xBB\x29\x25\x14\x4C\x22" |
| 11162 | "\x77\xA6\x38\x00\xDB\xB9\xE2\x07" |
| 11163 | "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39" |
| 11164 | "\x99\x34\x89\x5B\x54\xE9\x12\x13" |
| 11165 | "\x3B\x04\xE5\x12\x42\xC5\x79\xAB" |
| 11166 | "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6" |
| 11167 | "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA" |
| 11168 | "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A" |
| 11169 | "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87" |
| 11170 | "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5" |
| 11171 | "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73" |
| 11172 | "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD" |
| 11173 | "\x69\xDA\x7A\x01\xF5\x6A\x70\x39" |
| 11174 | "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11175 | "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6" |
| 11176 | "\xB6\x31\x36\x34\x38\x3C\x1D\x69" |
| 11177 | "\x9F\x47\x28\x9A\x1D\x96\x70\x54" |
| 11178 | "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A" |
| 11179 | "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A" |
| 11180 | "\x23\x9C\x9B\x79\xC7\x75\xC8\x39" |
| 11181 | "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D" |
| 11182 | "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B" |
| 11183 | "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F" |
| 11184 | "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8" |
| 11185 | "\xEF\x50\x22\x20\x93\x30\xBE\xE2" |
| 11186 | "\x38\x05\x65\xAF\xBA\xB6\xE4\x72" |
| 11187 | "\xA9\xEE\x05\x42\x88\xBD\x9D\x49" |
| 11188 | "\xAD\x93\xCA\x4D\x45\x11\x43\x4D" |
| 11189 | "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4" |
| 11190 | "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD" |
| 11191 | "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6" |
| 11192 | "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69" |
| 11193 | "\x73\x65\x65\x51\xD6\x0B\x4E\x8C" |
| 11194 | "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B" |
| 11195 | "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39" |
| 11196 | "\xE8\x10\x93\x16\xC8\x68\x4C\x60" |
| 11197 | "\x87\x70\x14\xD0\x01\x57\xCB\x42" |
| 11198 | "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7" |
| 11199 | "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE" |
| 11200 | "\xFD\x72\xEC\xD7\x6F\x97\x14\x90" |
| 11201 | "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE" |
| 11202 | "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B" |
| 11203 | "\x71\x80\x05\x35\x3F\x40\x0B\x21" |
| 11204 | "\x76\xE5\xEF\x42\x6C\xDB\x31\x05" |
| 11205 | "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2" |
| 11206 | "\x49\x03\x5E\x77\x2E\x20\xBA\xA1" |
| 11207 | "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E" |
| 11208 | "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F" |
| 11209 | "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6" |
| 11210 | "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1" |
| 11211 | "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00" |
| 11212 | "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF" |
| 11213 | "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45" |
| 11214 | "\x91\x76\xE7\x6E\x65\x3D\x15\x86" |
| 11215 | "\x10\xF8\xDB\x66\x97\x7C\x43\x4D" |
| 11216 | "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A" |
| 11217 | "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02" |
| 11218 | "\x75\x55\x9B\xFF\x36\x73\xAB\x7C" |
| 11219 | "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7", |
| 11220 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11221 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 11222 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 11223 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 11224 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 11225 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 11226 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 11227 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 11228 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 11229 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 11230 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 11231 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 11232 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 11233 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 11234 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 11235 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 11236 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 11237 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11238 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 11239 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 11240 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 11241 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 11242 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 11243 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 11244 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 11245 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 11246 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 11247 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 11248 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 11249 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 11250 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 11251 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 11252 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 11253 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 11254 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 11255 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 11256 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 11257 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 11258 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 11259 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 11260 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 11261 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 11262 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 11263 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 11264 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 11265 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 11266 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 11267 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 11268 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 11269 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 11270 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 11271 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 11272 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 11273 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 11274 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 11275 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 11276 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 11277 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 11278 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 11279 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 11280 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 11281 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 11282 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 11283 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11284 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 11285 | .np = 3, |
| 11286 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 11287 | }, |
| 11288 | }; |
| 11289 | |
| 11290 | static struct cipher_testvec tnepres_dec_tv_template[] = { |
| 11291 | { |
| 11292 | .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97" |
| 11293 | "\x6d\x6f\xbb\x38\x4b\x37\x21\x28", |
| 11294 | .ilen = 16, |
| 11295 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11296 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 11297 | .rlen = 16, |
| 11298 | }, { |
| 11299 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11300 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 11301 | .klen = 16, |
| 11302 | .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47" |
| 11303 | "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e", |
| 11304 | .ilen = 16, |
| 11305 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11306 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 11307 | .rlen = 16, |
| 11308 | }, { |
| 11309 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11310 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11311 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11312 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 11313 | .klen = 32, |
| 11314 | .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49" |
| 11315 | "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee", |
| 11316 | .ilen = 16, |
| 11317 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11318 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 11319 | .rlen = 16, |
| 11320 | }, { /* KeySize=128, I=121 */ |
| 11321 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 11322 | .klen = 16, |
| 11323 | .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06" |
| 11324 | "\x46\x2a\xf4\xef\x81\x54\x4e\x26", |
| 11325 | .ilen = 16, |
| 11326 | .result = zeroed_string, |
| 11327 | .rlen = 16, |
| 11328 | }, |
| 11329 | }; |
| 11330 | |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11331 | static struct cipher_testvec serpent_cbc_enc_tv_template[] = { |
| 11332 | { /* Generated with Crypto++ */ |
| 11333 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 11334 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 11335 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 11336 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 11337 | .klen = 32, |
| 11338 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 11339 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 11340 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 11341 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 11342 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 11343 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 11344 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 11345 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 11346 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 11347 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 11348 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 11349 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 11350 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 11351 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 11352 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 11353 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 11354 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 11355 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 11356 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11357 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 11358 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 11359 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 11360 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 11361 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 11362 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 11363 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 11364 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 11365 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 11366 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 11367 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 11368 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 11369 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 11370 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 11371 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 11372 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 11373 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 11374 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 11375 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 11376 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 11377 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 11378 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 11379 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 11380 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 11381 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 11382 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 11383 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 11384 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 11385 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 11386 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 11387 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 11388 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 11389 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 11390 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 11391 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 11392 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 11393 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 11394 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 11395 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 11396 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 11397 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 11398 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 11399 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 11400 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 11401 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 11402 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11403 | .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C" |
| 11404 | "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E" |
| 11405 | "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD" |
| 11406 | "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C" |
| 11407 | "\x38\x63\x35\x7E\x79\x18\x0A\xE8" |
| 11408 | "\x67\x06\x76\xD5\xFF\x22\x2F\xDA" |
| 11409 | "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97" |
| 11410 | "\xFE\x53\x75\x35\x97\x7F\x51\xEA" |
| 11411 | "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7" |
| 11412 | "\x62\x67\xFF\x04\xC2\x18\x22\x5F" |
| 11413 | "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E" |
| 11414 | "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41" |
| 11415 | "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB" |
| 11416 | "\x72\x84\xF8\x0A\x3F\x38\x5E\x91" |
| 11417 | "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2" |
| 11418 | "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB" |
| 11419 | "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11420 | "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C" |
| 11421 | "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A" |
| 11422 | "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC" |
| 11423 | "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97" |
| 11424 | "\x5A\x5E\x7E\x96\x52\x20\xDC\x25" |
| 11425 | "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C" |
| 11426 | "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B" |
| 11427 | "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9" |
| 11428 | "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5" |
| 11429 | "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B" |
| 11430 | "\xA1\xC0\x12\x54\x4E\xC9\x20\x92" |
| 11431 | "\x11\x00\x10\x4E\xB3\x7C\xCA\x63" |
| 11432 | "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7" |
| 11433 | "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D" |
| 11434 | "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7" |
| 11435 | "\x81\x92\x66\x67\x15\x1E\x39\x98" |
| 11436 | "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A" |
| 11437 | "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05" |
| 11438 | "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B" |
| 11439 | "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C" |
| 11440 | "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3" |
| 11441 | "\x96\xC6\x66\x49\xDA\x0D\x71\xAC" |
| 11442 | "\x04\x05\x46\xD3\x90\x0F\x64\x64" |
| 11443 | "\x01\x66\x2C\x62\x5D\x34\xD1\xCB" |
| 11444 | "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97" |
| 11445 | "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D" |
| 11446 | "\x62\xA6\x19\x28\x9E\x26\xB4\x3F" |
| 11447 | "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0" |
| 11448 | "\x7D\xE9\x95\x45\x86\xED\xB1\xE0" |
| 11449 | "\x8D\xE9\xC5\x86\x13\x24\x28\x7D" |
| 11450 | "\x74\xEF\xCA\x50\x12\x7E\x64\x8F" |
| 11451 | "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7" |
| 11452 | "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA" |
| 11453 | "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2" |
| 11454 | "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E" |
| 11455 | "\xE6\x75\x0D\x54\x64\x11\xA3\x3A" |
| 11456 | "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E" |
| 11457 | "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4" |
| 11458 | "\xBA\x23\x2D\x8D\x29\x07\x12\xCF" |
| 11459 | "\x34\xCD\x72\x7F\x01\x30\xE7\xA0" |
| 11460 | "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2" |
| 11461 | "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4" |
| 11462 | "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF" |
| 11463 | "\xFC\x66\xAA\x37\xF2\x37\x39\x6B" |
| 11464 | "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1", |
| 11465 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11466 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 11467 | .np = 3, |
| 11468 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11469 | }, |
| 11470 | }; |
| 11471 | |
| 11472 | static struct cipher_testvec serpent_cbc_dec_tv_template[] = { |
| 11473 | { /* Generated with Crypto++ */ |
| 11474 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 11475 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 11476 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 11477 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 11478 | .klen = 32, |
| 11479 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 11480 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 11481 | .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C" |
| 11482 | "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E" |
| 11483 | "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD" |
| 11484 | "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C" |
| 11485 | "\x38\x63\x35\x7E\x79\x18\x0A\xE8" |
| 11486 | "\x67\x06\x76\xD5\xFF\x22\x2F\xDA" |
| 11487 | "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97" |
| 11488 | "\xFE\x53\x75\x35\x97\x7F\x51\xEA" |
| 11489 | "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7" |
| 11490 | "\x62\x67\xFF\x04\xC2\x18\x22\x5F" |
| 11491 | "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E" |
| 11492 | "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41" |
| 11493 | "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB" |
| 11494 | "\x72\x84\xF8\x0A\x3F\x38\x5E\x91" |
| 11495 | "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2" |
| 11496 | "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB" |
| 11497 | "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11498 | "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C" |
| 11499 | "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A" |
| 11500 | "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC" |
| 11501 | "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97" |
| 11502 | "\x5A\x5E\x7E\x96\x52\x20\xDC\x25" |
| 11503 | "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C" |
| 11504 | "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B" |
| 11505 | "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9" |
| 11506 | "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5" |
| 11507 | "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B" |
| 11508 | "\xA1\xC0\x12\x54\x4E\xC9\x20\x92" |
| 11509 | "\x11\x00\x10\x4E\xB3\x7C\xCA\x63" |
| 11510 | "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7" |
| 11511 | "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D" |
| 11512 | "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7" |
| 11513 | "\x81\x92\x66\x67\x15\x1E\x39\x98" |
| 11514 | "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A" |
| 11515 | "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05" |
| 11516 | "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B" |
| 11517 | "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C" |
| 11518 | "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3" |
| 11519 | "\x96\xC6\x66\x49\xDA\x0D\x71\xAC" |
| 11520 | "\x04\x05\x46\xD3\x90\x0F\x64\x64" |
| 11521 | "\x01\x66\x2C\x62\x5D\x34\xD1\xCB" |
| 11522 | "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97" |
| 11523 | "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D" |
| 11524 | "\x62\xA6\x19\x28\x9E\x26\xB4\x3F" |
| 11525 | "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0" |
| 11526 | "\x7D\xE9\x95\x45\x86\xED\xB1\xE0" |
| 11527 | "\x8D\xE9\xC5\x86\x13\x24\x28\x7D" |
| 11528 | "\x74\xEF\xCA\x50\x12\x7E\x64\x8F" |
| 11529 | "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7" |
| 11530 | "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA" |
| 11531 | "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2" |
| 11532 | "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E" |
| 11533 | "\xE6\x75\x0D\x54\x64\x11\xA3\x3A" |
| 11534 | "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E" |
| 11535 | "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4" |
| 11536 | "\xBA\x23\x2D\x8D\x29\x07\x12\xCF" |
| 11537 | "\x34\xCD\x72\x7F\x01\x30\xE7\xA0" |
| 11538 | "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2" |
| 11539 | "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4" |
| 11540 | "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF" |
| 11541 | "\xFC\x66\xAA\x37\xF2\x37\x39\x6B" |
| 11542 | "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1", |
| 11543 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11544 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 11545 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 11546 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 11547 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 11548 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 11549 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 11550 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 11551 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 11552 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 11553 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 11554 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 11555 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 11556 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 11557 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 11558 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 11559 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 11560 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11561 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 11562 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 11563 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 11564 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 11565 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 11566 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 11567 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 11568 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 11569 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 11570 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 11571 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 11572 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 11573 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 11574 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 11575 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 11576 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 11577 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 11578 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 11579 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 11580 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 11581 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 11582 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 11583 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 11584 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 11585 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 11586 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 11587 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 11588 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 11589 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 11590 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 11591 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 11592 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 11593 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 11594 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 11595 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 11596 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 11597 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 11598 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 11599 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 11600 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 11601 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 11602 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 11603 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 11604 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 11605 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 11606 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11607 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 11608 | .np = 3, |
| 11609 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11610 | }, |
| 11611 | }; |
| 11612 | |
| 11613 | static struct cipher_testvec serpent_ctr_enc_tv_template[] = { |
| 11614 | { /* Generated with Crypto++ */ |
| 11615 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 11616 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 11617 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 11618 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 11619 | .klen = 32, |
| 11620 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 11621 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 11622 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 11623 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 11624 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 11625 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 11626 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 11627 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 11628 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 11629 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 11630 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 11631 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 11632 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 11633 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 11634 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 11635 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 11636 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 11637 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 11638 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11639 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 11640 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 11641 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 11642 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 11643 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 11644 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 11645 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 11646 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 11647 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 11648 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 11649 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 11650 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 11651 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 11652 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 11653 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 11654 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 11655 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 11656 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 11657 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 11658 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 11659 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 11660 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 11661 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 11662 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 11663 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 11664 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 11665 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 11666 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 11667 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 11668 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 11669 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 11670 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 11671 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 11672 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 11673 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 11674 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 11675 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 11676 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 11677 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 11678 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 11679 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 11680 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 11681 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 11682 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 11683 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 11684 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11685 | .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 11686 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 11687 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 11688 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 11689 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 11690 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 11691 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 11692 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 11693 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 11694 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 11695 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 11696 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 11697 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 11698 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 11699 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 11700 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 11701 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11702 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
| 11703 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 11704 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 11705 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 11706 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 11707 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 11708 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 11709 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 11710 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 11711 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 11712 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 11713 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 11714 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 11715 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 11716 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 11717 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 11718 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 11719 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 11720 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 11721 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 11722 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 11723 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 11724 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 11725 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 11726 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 11727 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 11728 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 11729 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 11730 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 11731 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 11732 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 11733 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 11734 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 11735 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 11736 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 11737 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 11738 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 11739 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 11740 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 11741 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 11742 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 11743 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 11744 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 11745 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 11746 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13", |
| 11747 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11748 | }, { /* Generated with Crypto++ */ |
| 11749 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 11750 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 11751 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 11752 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 11753 | .klen = 32, |
| 11754 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 11755 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 11756 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 11757 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 11758 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 11759 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 11760 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 11761 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 11762 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 11763 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 11764 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 11765 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 11766 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 11767 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 11768 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 11769 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 11770 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 11771 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 11772 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 11773 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11774 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 11775 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 11776 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 11777 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 11778 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 11779 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 11780 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 11781 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 11782 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 11783 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 11784 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 11785 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 11786 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 11787 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 11788 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 11789 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 11790 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 11791 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 11792 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 11793 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 11794 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 11795 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 11796 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 11797 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 11798 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 11799 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 11800 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 11801 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 11802 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 11803 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 11804 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 11805 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 11806 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 11807 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 11808 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 11809 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 11810 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 11811 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 11812 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 11813 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 11814 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 11815 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 11816 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 11817 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 11818 | "\x2B\xC2\x59", |
| 11819 | .ilen = 499, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11820 | .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 11821 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 11822 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 11823 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 11824 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 11825 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 11826 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 11827 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 11828 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 11829 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 11830 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 11831 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 11832 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 11833 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 11834 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 11835 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 11836 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 11837 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11838 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 11839 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 11840 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 11841 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 11842 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 11843 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 11844 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 11845 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 11846 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 11847 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 11848 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 11849 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 11850 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 11851 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 11852 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 11853 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 11854 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 11855 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 11856 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 11857 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 11858 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 11859 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 11860 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 11861 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 11862 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 11863 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 11864 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 11865 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 11866 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 11867 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 11868 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 11869 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 11870 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 11871 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 11872 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 11873 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 11874 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 11875 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 11876 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 11877 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 11878 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 11879 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 11880 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 11881 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13" |
| 11882 | "\x38\xE2\xE5", |
| 11883 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11884 | .also_non_np = 1, |
| 11885 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11886 | .tap = { 499 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 11887 | }, { /* Generated with Crypto++ */ |
| 11888 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 11889 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 11890 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 11891 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 11892 | .klen = 32, |
| 11893 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 11894 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 11895 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 11896 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 11897 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 11898 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 11899 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 11900 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 11901 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 11902 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 11903 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 11904 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 11905 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 11906 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 11907 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 11908 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 11909 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 11910 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 11911 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 11912 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 11913 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 11914 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 11915 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 11916 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 11917 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 11918 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 11919 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 11920 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 11921 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 11922 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 11923 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 11924 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 11925 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 11926 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 11927 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 11928 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 11929 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 11930 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 11931 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 11932 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 11933 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 11934 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 11935 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 11936 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 11937 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 11938 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 11939 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 11940 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 11941 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 11942 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 11943 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 11944 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 11945 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 11946 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 11947 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 11948 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 11949 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 11950 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 11951 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 11952 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 11953 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 11954 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 11955 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 11956 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 11957 | .ilen = 496, |
| 11958 | .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC" |
| 11959 | "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D" |
| 11960 | "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC" |
| 11961 | "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A" |
| 11962 | "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E" |
| 11963 | "\x71\x28\x06\x4F\xE8\x08\x39\xDA" |
| 11964 | "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69" |
| 11965 | "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B" |
| 11966 | "\x9F\x3E\x39\x79\xF0\xCD\x64\x35" |
| 11967 | "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B" |
| 11968 | "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18" |
| 11969 | "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2" |
| 11970 | "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47" |
| 11971 | "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2" |
| 11972 | "\x7D\xE2\x43\x81\x86\x72\x2E\xB1" |
| 11973 | "\x39\xF6\x95\xE1\x1F\xCB\x76\x33" |
| 11974 | "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F" |
| 11975 | "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C" |
| 11976 | "\x70\xFE\x52\xAA\x93\x3C\xC4\x46" |
| 11977 | "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE" |
| 11978 | "\x25\x92\xB2\x63\xBD\x49\x77\xB4" |
| 11979 | "\x22\xA4\x6A\xD5\x04\xE0\x45\x58" |
| 11980 | "\x1C\x34\x96\x7C\x03\x0C\x13\xA2" |
| 11981 | "\x05\x22\xE2\xCB\x5A\x35\x03\x09" |
| 11982 | "\x40\xD2\x82\x05\xCA\x58\x73\xF2" |
| 11983 | "\x29\x5E\x01\x47\x13\x32\x78\xBE" |
| 11984 | "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C" |
| 11985 | "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1" |
| 11986 | "\x38\x35\x11\x26\x4A\xB4\x06\x32" |
| 11987 | "\xFA\xD2\x07\x77\xB3\x74\x98\x80" |
| 11988 | "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF" |
| 11989 | "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F" |
| 11990 | "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65" |
| 11991 | "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA" |
| 11992 | "\xD6\x9B\xC9\x6D\x58\x40\x81\x02" |
| 11993 | "\x73\x44\x4E\x43\x6E\x37\xBB\x11" |
| 11994 | "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA" |
| 11995 | "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8" |
| 11996 | "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B" |
| 11997 | "\x07\xB5\x82\x3A\xC4\xE8\x42\x51" |
| 11998 | "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F" |
| 11999 | "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7" |
| 12000 | "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F" |
| 12001 | "\xBF\xF9\xAC\x59\x50\xA8\x08\x70" |
| 12002 | "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2" |
| 12003 | "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD" |
| 12004 | "\xC1\x03\x9A\xAA\x89\x8B\x32\x46" |
| 12005 | "\x5B\x18\x27\xBA\x46\xAA\x64\xDE" |
| 12006 | "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB" |
| 12007 | "\x7E\xDA\xEC\x30\x17\x19\xF8\x80" |
| 12008 | "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28" |
| 12009 | "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE" |
| 12010 | "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8" |
| 12011 | "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B" |
| 12012 | "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E" |
| 12013 | "\xDC\x34\x27\x89\x98\xCE\x1C\xA2" |
| 12014 | "\xD8\xB8\x90\xBE\xEC\x72\x28\x13" |
| 12015 | "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50" |
| 12016 | "\xB7\x99\x65\x8A\xC9\xC6\x21\x34" |
| 12017 | "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17" |
| 12018 | "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0" |
| 12019 | "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20", |
| 12020 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 12021 | }, |
| 12022 | }; |
| 12023 | |
| 12024 | static struct cipher_testvec serpent_ctr_dec_tv_template[] = { |
| 12025 | { /* Generated with Crypto++ */ |
| 12026 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12027 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12028 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12029 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12030 | .klen = 32, |
| 12031 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12032 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12033 | .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 12034 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 12035 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 12036 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 12037 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 12038 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 12039 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 12040 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 12041 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 12042 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 12043 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 12044 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 12045 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 12046 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 12047 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 12048 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 12049 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 12050 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
| 12051 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 12052 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 12053 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 12054 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 12055 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 12056 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 12057 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 12058 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 12059 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 12060 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 12061 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 12062 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 12063 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 12064 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 12065 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 12066 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 12067 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 12068 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 12069 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 12070 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 12071 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 12072 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 12073 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 12074 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 12075 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 12076 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 12077 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 12078 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 12079 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 12080 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 12081 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 12082 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 12083 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 12084 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 12085 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 12086 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 12087 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 12088 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 12089 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 12090 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 12091 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 12092 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 12093 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 12094 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13", |
| 12095 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 12096 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12097 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12098 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12099 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12100 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12101 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12102 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12103 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12104 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12105 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12106 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12107 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12108 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12109 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12110 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12111 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12112 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 12113 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12114 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12115 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12116 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12117 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12118 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12119 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12120 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12121 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12122 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12123 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12124 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12125 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12126 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12127 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12128 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12129 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12130 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12131 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12132 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12133 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12134 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12135 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12136 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12137 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12138 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12139 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12140 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12141 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12142 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12143 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12144 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12145 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12146 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12147 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12148 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12149 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12150 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12151 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12152 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12153 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12154 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12155 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12156 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12157 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12158 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 12159 | }, { /* Generated with Crypto++ */ |
| 12160 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12161 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12162 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12163 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12164 | .klen = 32, |
| 12165 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12166 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12167 | .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 12168 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 12169 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 12170 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 12171 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 12172 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 12173 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 12174 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 12175 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 12176 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 12177 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 12178 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 12179 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 12180 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 12181 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 12182 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 12183 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 12184 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 12185 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 12186 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 12187 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 12188 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 12189 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 12190 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 12191 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 12192 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 12193 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 12194 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 12195 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 12196 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 12197 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 12198 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 12199 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 12200 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 12201 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 12202 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 12203 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 12204 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 12205 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 12206 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 12207 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 12208 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 12209 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 12210 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 12211 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 12212 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 12213 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 12214 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 12215 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 12216 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 12217 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 12218 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 12219 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 12220 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 12221 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 12222 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 12223 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 12224 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 12225 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 12226 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 12227 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 12228 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13" |
| 12229 | "\x38\xE2\xE5", |
| 12230 | .ilen = 499, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 12231 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12232 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12233 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12234 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12235 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12236 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12237 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12238 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12239 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12240 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12241 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12242 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12243 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12244 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12245 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12246 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12247 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12248 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 12249 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12250 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12251 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12252 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12253 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12254 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12255 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12256 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12257 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12258 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12259 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12260 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12261 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12262 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12263 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12264 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12265 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12266 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12267 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12268 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12269 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12270 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12271 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12272 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12273 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12274 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12275 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12276 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12277 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12278 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12279 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12280 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12281 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12282 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12283 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12284 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12285 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12286 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12287 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12288 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12289 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12290 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12291 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12292 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 12293 | "\x2B\xC2\x59", |
| 12294 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12295 | .also_non_np = 1, |
| 12296 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 12297 | .tap = { 499 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 12298 | }, { /* Generated with Crypto++ */ |
| 12299 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12300 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12301 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12302 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12303 | .klen = 32, |
| 12304 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 12305 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 12306 | .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC" |
| 12307 | "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D" |
| 12308 | "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC" |
| 12309 | "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A" |
| 12310 | "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E" |
| 12311 | "\x71\x28\x06\x4F\xE8\x08\x39\xDA" |
| 12312 | "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69" |
| 12313 | "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B" |
| 12314 | "\x9F\x3E\x39\x79\xF0\xCD\x64\x35" |
| 12315 | "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B" |
| 12316 | "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18" |
| 12317 | "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2" |
| 12318 | "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47" |
| 12319 | "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2" |
| 12320 | "\x7D\xE2\x43\x81\x86\x72\x2E\xB1" |
| 12321 | "\x39\xF6\x95\xE1\x1F\xCB\x76\x33" |
| 12322 | "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F" |
| 12323 | "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C" |
| 12324 | "\x70\xFE\x52\xAA\x93\x3C\xC4\x46" |
| 12325 | "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE" |
| 12326 | "\x25\x92\xB2\x63\xBD\x49\x77\xB4" |
| 12327 | "\x22\xA4\x6A\xD5\x04\xE0\x45\x58" |
| 12328 | "\x1C\x34\x96\x7C\x03\x0C\x13\xA2" |
| 12329 | "\x05\x22\xE2\xCB\x5A\x35\x03\x09" |
| 12330 | "\x40\xD2\x82\x05\xCA\x58\x73\xF2" |
| 12331 | "\x29\x5E\x01\x47\x13\x32\x78\xBE" |
| 12332 | "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C" |
| 12333 | "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1" |
| 12334 | "\x38\x35\x11\x26\x4A\xB4\x06\x32" |
| 12335 | "\xFA\xD2\x07\x77\xB3\x74\x98\x80" |
| 12336 | "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF" |
| 12337 | "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F" |
| 12338 | "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65" |
| 12339 | "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA" |
| 12340 | "\xD6\x9B\xC9\x6D\x58\x40\x81\x02" |
| 12341 | "\x73\x44\x4E\x43\x6E\x37\xBB\x11" |
| 12342 | "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA" |
| 12343 | "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8" |
| 12344 | "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B" |
| 12345 | "\x07\xB5\x82\x3A\xC4\xE8\x42\x51" |
| 12346 | "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F" |
| 12347 | "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7" |
| 12348 | "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F" |
| 12349 | "\xBF\xF9\xAC\x59\x50\xA8\x08\x70" |
| 12350 | "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2" |
| 12351 | "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD" |
| 12352 | "\xC1\x03\x9A\xAA\x89\x8B\x32\x46" |
| 12353 | "\x5B\x18\x27\xBA\x46\xAA\x64\xDE" |
| 12354 | "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB" |
| 12355 | "\x7E\xDA\xEC\x30\x17\x19\xF8\x80" |
| 12356 | "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28" |
| 12357 | "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE" |
| 12358 | "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8" |
| 12359 | "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B" |
| 12360 | "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E" |
| 12361 | "\xDC\x34\x27\x89\x98\xCE\x1C\xA2" |
| 12362 | "\xD8\xB8\x90\xBE\xEC\x72\x28\x13" |
| 12363 | "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50" |
| 12364 | "\xB7\x99\x65\x8A\xC9\xC6\x21\x34" |
| 12365 | "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17" |
| 12366 | "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0" |
| 12367 | "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20", |
| 12368 | .ilen = 496, |
| 12369 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12370 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12371 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12372 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12373 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12374 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12375 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12376 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12377 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12378 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12379 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12380 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12381 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12382 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12383 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12384 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12385 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12386 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12387 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12388 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12389 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12390 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12391 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12392 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12393 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12394 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12395 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12396 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12397 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12398 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12399 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12400 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12401 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12402 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12403 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12404 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12405 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12406 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12407 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12408 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12409 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12410 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12411 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12412 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12413 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12414 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12415 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12416 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12417 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12418 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12419 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12420 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12421 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12422 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12423 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12424 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12425 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12426 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12427 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12428 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12429 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12430 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12431 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 12432 | }, |
| 12433 | }; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12434 | |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 12435 | static struct cipher_testvec serpent_lrw_enc_tv_template[] = { |
| 12436 | /* Generated from AES-LRW test vectors */ |
| 12437 | { |
| 12438 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 12439 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 12440 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 12441 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 12442 | .klen = 32, |
| 12443 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12444 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 12445 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12446 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12447 | .ilen = 16, |
| 12448 | .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79" |
| 12449 | "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a", |
| 12450 | .rlen = 16, |
| 12451 | }, { |
| 12452 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 12453 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 12454 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 12455 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 12456 | .klen = 32, |
| 12457 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12458 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 12459 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12460 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12461 | .ilen = 16, |
| 12462 | .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad" |
| 12463 | "\x08\x94\x54\x9c\x21\x7c\x69\xe3", |
| 12464 | .rlen = 16, |
| 12465 | }, { |
| 12466 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 12467 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 12468 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 12469 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 12470 | .klen = 32, |
| 12471 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12472 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 12473 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12474 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12475 | .ilen = 16, |
| 12476 | .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34" |
| 12477 | "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c", |
| 12478 | .rlen = 16, |
| 12479 | }, { |
| 12480 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 12481 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 12482 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 12483 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 12484 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 12485 | .klen = 40, |
| 12486 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12487 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 12488 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12489 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12490 | .ilen = 16, |
| 12491 | .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc" |
| 12492 | "\x5d\x45\x95\x30\x8f\xff\x2f\x1b", |
| 12493 | .rlen = 16, |
| 12494 | }, { |
| 12495 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 12496 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 12497 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 12498 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 12499 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 12500 | .klen = 40, |
| 12501 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12502 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 12503 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12504 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12505 | .ilen = 16, |
| 12506 | .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f" |
| 12507 | "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26", |
| 12508 | .rlen = 16, |
| 12509 | }, { |
| 12510 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 12511 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 12512 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 12513 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 12514 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 12515 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 12516 | .klen = 48, |
| 12517 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12518 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 12519 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12520 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12521 | .ilen = 16, |
| 12522 | .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c" |
| 12523 | "\x2e\x18\xe6\x99\xcd\xd3\x15\x68", |
| 12524 | .rlen = 16, |
| 12525 | }, { |
| 12526 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 12527 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 12528 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 12529 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 12530 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 12531 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 12532 | .klen = 48, |
| 12533 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12534 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 12535 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12536 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12537 | .ilen = 16, |
| 12538 | .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6" |
| 12539 | "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf", |
| 12540 | .rlen = 16, |
| 12541 | }, { |
| 12542 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 12543 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 12544 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 12545 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 12546 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 12547 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 12548 | .klen = 48, |
| 12549 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12550 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 12551 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 12552 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 12553 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 12554 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 12555 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 12556 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 12557 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 12558 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 12559 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 12560 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 12561 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 12562 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 12563 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 12564 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 12565 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 12566 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 12567 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 12568 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 12569 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 12570 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 12571 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 12572 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 12573 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 12574 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 12575 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 12576 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 12577 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 12578 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 12579 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 12580 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 12581 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 12582 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 12583 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 12584 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 12585 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 12586 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 12587 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 12588 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 12589 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 12590 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 12591 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 12592 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 12593 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 12594 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 12595 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 12596 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 12597 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 12598 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 12599 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 12600 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 12601 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 12602 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 12603 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 12604 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 12605 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 12606 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 12607 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 12608 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 12609 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 12610 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 12611 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 12612 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 12613 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 12614 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 12615 | .ilen = 512, |
| 12616 | .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74" |
| 12617 | "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d" |
| 12618 | "\x82\xec\xf1\x5f\x03\x6d\x02\x58" |
| 12619 | "\x90\x67\xfc\xdd\x8d\xe1\x38\x08" |
| 12620 | "\x7b\xc9\x9b\x4b\x04\x09\x50\x15" |
| 12621 | "\xce\xab\xda\x33\x30\x20\x12\xfa" |
| 12622 | "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9" |
| 12623 | "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c" |
| 12624 | "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22" |
| 12625 | "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b" |
| 12626 | "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5" |
| 12627 | "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5" |
| 12628 | "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b" |
| 12629 | "\x89\x58\x7c\x9a\xae\x26\xe8\xb7" |
| 12630 | "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d" |
| 12631 | "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47" |
| 12632 | "\x5f\x03\x8b\xdd\x94\xd1\xee\x12" |
| 12633 | "\xa7\x83\x80\xf2\xc1\x15\x74\x4f" |
| 12634 | "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f" |
| 12635 | "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52" |
| 12636 | "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98" |
| 12637 | "\x04\xd6\xdd\x4c\x00\x64\xd9\x54" |
| 12638 | "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8" |
| 12639 | "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b" |
| 12640 | "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9" |
| 12641 | "\x04\xc3\x6f\x17\x66\xa9\x1f\x59" |
| 12642 | "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b" |
| 12643 | "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43" |
| 12644 | "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb" |
| 12645 | "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49" |
| 12646 | "\xb3\xac\x5d\xcf\x31\xa0\x27\x26" |
| 12647 | "\x21\xbe\x94\x2e\x19\xea\xf4\xee" |
| 12648 | "\xb5\x13\x89\xf7\x94\x0b\xef\x59" |
| 12649 | "\x44\xc5\x78\x8b\x3c\x3b\x71\x20" |
| 12650 | "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2" |
| 12651 | "\xb4\x11\x0e\x2c\x61\xa1\x52\x46" |
| 12652 | "\x18\x11\x16\xc6\x86\x44\xa7\xaf" |
| 12653 | "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b" |
| 12654 | "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea" |
| 12655 | "\x3f\x0e\x90\xd6\x8f\x83\x30\x64" |
| 12656 | "\xb5\x51\x2d\x08\x3c\xcd\x99\x36" |
| 12657 | "\x96\xd4\xb1\xb5\x48\x30\xca\x48" |
| 12658 | "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d" |
| 12659 | "\x12\x33\x2f\xc0\xe8\xda\xec\x8a" |
| 12660 | "\xe1\x88\x72\x63\xde\x20\xa3\xe1" |
| 12661 | "\x8e\xac\x84\x37\x35\xf5\xf7\x3f" |
| 12662 | "\x00\x02\x0e\xe4\xc1\x53\x68\x3f" |
| 12663 | "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d" |
| 12664 | "\x7c\x83\xd0\xbd\xaa\x97\x35\x36" |
| 12665 | "\x98\x88\x59\x5d\xe7\x24\xe3\x90" |
| 12666 | "\x9d\x30\x47\xa7\xc3\x60\x35\xf4" |
| 12667 | "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b" |
| 12668 | "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d" |
| 12669 | "\x49\x5a\x3c\x8a\xa3\x01\xae\x25" |
| 12670 | "\x42\xab\xd2\x87\x1b\x35\xd6\xd2" |
| 12671 | "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39" |
| 12672 | "\x1c\x58\xa2\xb4\xd0\x78\x55\x72" |
| 12673 | "\x76\x59\xea\xd9\xd7\x6e\x63\x8b" |
| 12674 | "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68" |
| 12675 | "\x86\x28\xd1\xbb\x54\x8d\x66\xad" |
| 12676 | "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd" |
| 12677 | "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a" |
| 12678 | "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd" |
| 12679 | "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7", |
| 12680 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12681 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 12682 | .np = 3, |
| 12683 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 12684 | }, |
| 12685 | }; |
| 12686 | |
| 12687 | static struct cipher_testvec serpent_lrw_dec_tv_template[] = { |
| 12688 | /* Generated from AES-LRW test vectors */ |
| 12689 | /* same as enc vectors with input and result reversed */ |
| 12690 | { |
| 12691 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 12692 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 12693 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 12694 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 12695 | .klen = 32, |
| 12696 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12697 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 12698 | .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79" |
| 12699 | "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a", |
| 12700 | .ilen = 16, |
| 12701 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12702 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12703 | .rlen = 16, |
| 12704 | }, { |
| 12705 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 12706 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 12707 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 12708 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 12709 | .klen = 32, |
| 12710 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12711 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 12712 | .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad" |
| 12713 | "\x08\x94\x54\x9c\x21\x7c\x69\xe3", |
| 12714 | .ilen = 16, |
| 12715 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12716 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12717 | .rlen = 16, |
| 12718 | }, { |
| 12719 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 12720 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 12721 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 12722 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 12723 | .klen = 32, |
| 12724 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12725 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 12726 | .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34" |
| 12727 | "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c", |
| 12728 | .ilen = 16, |
| 12729 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12730 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12731 | .rlen = 16, |
| 12732 | }, { |
| 12733 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 12734 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 12735 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 12736 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 12737 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 12738 | .klen = 40, |
| 12739 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12740 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 12741 | .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc" |
| 12742 | "\x5d\x45\x95\x30\x8f\xff\x2f\x1b", |
| 12743 | .ilen = 16, |
| 12744 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12745 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12746 | .rlen = 16, |
| 12747 | }, { |
| 12748 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 12749 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 12750 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 12751 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 12752 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 12753 | .klen = 40, |
| 12754 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12755 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 12756 | .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f" |
| 12757 | "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26", |
| 12758 | .ilen = 16, |
| 12759 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12760 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12761 | .rlen = 16, |
| 12762 | }, { |
| 12763 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 12764 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 12765 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 12766 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 12767 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 12768 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 12769 | .klen = 48, |
| 12770 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12771 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 12772 | .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c" |
| 12773 | "\x2e\x18\xe6\x99\xcd\xd3\x15\x68", |
| 12774 | .ilen = 16, |
| 12775 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12776 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12777 | .rlen = 16, |
| 12778 | }, { |
| 12779 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 12780 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 12781 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 12782 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 12783 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 12784 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 12785 | .klen = 48, |
| 12786 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12787 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 12788 | .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6" |
| 12789 | "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf", |
| 12790 | .ilen = 16, |
| 12791 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12792 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 12793 | .rlen = 16, |
| 12794 | }, { |
| 12795 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 12796 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 12797 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 12798 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 12799 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 12800 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 12801 | .klen = 48, |
| 12802 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12803 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 12804 | .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74" |
| 12805 | "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d" |
| 12806 | "\x82\xec\xf1\x5f\x03\x6d\x02\x58" |
| 12807 | "\x90\x67\xfc\xdd\x8d\xe1\x38\x08" |
| 12808 | "\x7b\xc9\x9b\x4b\x04\x09\x50\x15" |
| 12809 | "\xce\xab\xda\x33\x30\x20\x12\xfa" |
| 12810 | "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9" |
| 12811 | "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c" |
| 12812 | "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22" |
| 12813 | "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b" |
| 12814 | "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5" |
| 12815 | "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5" |
| 12816 | "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b" |
| 12817 | "\x89\x58\x7c\x9a\xae\x26\xe8\xb7" |
| 12818 | "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d" |
| 12819 | "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47" |
| 12820 | "\x5f\x03\x8b\xdd\x94\xd1\xee\x12" |
| 12821 | "\xa7\x83\x80\xf2\xc1\x15\x74\x4f" |
| 12822 | "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f" |
| 12823 | "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52" |
| 12824 | "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98" |
| 12825 | "\x04\xd6\xdd\x4c\x00\x64\xd9\x54" |
| 12826 | "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8" |
| 12827 | "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b" |
| 12828 | "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9" |
| 12829 | "\x04\xc3\x6f\x17\x66\xa9\x1f\x59" |
| 12830 | "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b" |
| 12831 | "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43" |
| 12832 | "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb" |
| 12833 | "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49" |
| 12834 | "\xb3\xac\x5d\xcf\x31\xa0\x27\x26" |
| 12835 | "\x21\xbe\x94\x2e\x19\xea\xf4\xee" |
| 12836 | "\xb5\x13\x89\xf7\x94\x0b\xef\x59" |
| 12837 | "\x44\xc5\x78\x8b\x3c\x3b\x71\x20" |
| 12838 | "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2" |
| 12839 | "\xb4\x11\x0e\x2c\x61\xa1\x52\x46" |
| 12840 | "\x18\x11\x16\xc6\x86\x44\xa7\xaf" |
| 12841 | "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b" |
| 12842 | "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea" |
| 12843 | "\x3f\x0e\x90\xd6\x8f\x83\x30\x64" |
| 12844 | "\xb5\x51\x2d\x08\x3c\xcd\x99\x36" |
| 12845 | "\x96\xd4\xb1\xb5\x48\x30\xca\x48" |
| 12846 | "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d" |
| 12847 | "\x12\x33\x2f\xc0\xe8\xda\xec\x8a" |
| 12848 | "\xe1\x88\x72\x63\xde\x20\xa3\xe1" |
| 12849 | "\x8e\xac\x84\x37\x35\xf5\xf7\x3f" |
| 12850 | "\x00\x02\x0e\xe4\xc1\x53\x68\x3f" |
| 12851 | "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d" |
| 12852 | "\x7c\x83\xd0\xbd\xaa\x97\x35\x36" |
| 12853 | "\x98\x88\x59\x5d\xe7\x24\xe3\x90" |
| 12854 | "\x9d\x30\x47\xa7\xc3\x60\x35\xf4" |
| 12855 | "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b" |
| 12856 | "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d" |
| 12857 | "\x49\x5a\x3c\x8a\xa3\x01\xae\x25" |
| 12858 | "\x42\xab\xd2\x87\x1b\x35\xd6\xd2" |
| 12859 | "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39" |
| 12860 | "\x1c\x58\xa2\xb4\xd0\x78\x55\x72" |
| 12861 | "\x76\x59\xea\xd9\xd7\x6e\x63\x8b" |
| 12862 | "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68" |
| 12863 | "\x86\x28\xd1\xbb\x54\x8d\x66\xad" |
| 12864 | "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd" |
| 12865 | "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a" |
| 12866 | "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd" |
| 12867 | "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7", |
| 12868 | .ilen = 512, |
| 12869 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 12870 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 12871 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 12872 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 12873 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 12874 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 12875 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 12876 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 12877 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 12878 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 12879 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 12880 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 12881 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 12882 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 12883 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 12884 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 12885 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 12886 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 12887 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 12888 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 12889 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 12890 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 12891 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 12892 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 12893 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 12894 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 12895 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 12896 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 12897 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 12898 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 12899 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 12900 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 12901 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 12902 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 12903 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 12904 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 12905 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 12906 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 12907 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 12908 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 12909 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 12910 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 12911 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 12912 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 12913 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 12914 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 12915 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 12916 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 12917 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 12918 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 12919 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 12920 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 12921 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 12922 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 12923 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 12924 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 12925 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 12926 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 12927 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 12928 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 12929 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 12930 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 12931 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 12932 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 12933 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12934 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 12935 | .np = 3, |
| 12936 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 12937 | }, |
| 12938 | }; |
| 12939 | |
Jussi Kivilinna | 18be20b | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 12940 | static struct cipher_testvec serpent_xts_enc_tv_template[] = { |
| 12941 | /* Generated from AES-XTS test vectors */ |
| 12942 | { |
| 12943 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12944 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12945 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12946 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12947 | .klen = 32, |
| 12948 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12949 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12950 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12951 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12952 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12953 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12954 | .ilen = 32, |
| 12955 | .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64" |
| 12956 | "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4" |
| 12957 | "\x6a\x31\xc5\xf3\x00\xca\xb9\x16" |
| 12958 | "\xde\xe2\x77\x66\xf7\xfe\x62\x08", |
| 12959 | .rlen = 32, |
| 12960 | }, { |
| 12961 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 12962 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 12963 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 12964 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 12965 | .klen = 32, |
| 12966 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 12967 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12968 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12969 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12970 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12971 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 12972 | .ilen = 32, |
| 12973 | .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98" |
| 12974 | "\x41\x86\x12\xaf\xb3\xd7\x68\x13" |
| 12975 | "\xed\x81\xcd\x06\x87\x43\x1a\xbb" |
| 12976 | "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe", |
| 12977 | .rlen = 32, |
| 12978 | }, { |
| 12979 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 12980 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 12981 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 12982 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 12983 | .klen = 32, |
| 12984 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 12985 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12986 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12987 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12988 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12989 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 12990 | .ilen = 32, |
| 12991 | .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61" |
| 12992 | "\xb6\x1c\x81\x8f\x2c\x87\x60\x89" |
| 12993 | "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86" |
| 12994 | "\xc1\x68\x45\xaa\x00\xe9\x24\xc5", |
| 12995 | .rlen = 32, |
| 12996 | }, { |
| 12997 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 12998 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 12999 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13000 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 13001 | .klen = 32, |
| 13002 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13003 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13004 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13005 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13006 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13007 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13008 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13009 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13010 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13011 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13012 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13013 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13014 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13015 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13016 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13017 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13018 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13019 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13020 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13021 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13022 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13023 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13024 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13025 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13026 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13027 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13028 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13029 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13030 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13031 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13032 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13033 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13034 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13035 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 13036 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13037 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13038 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13039 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13040 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13041 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13042 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13043 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13044 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13045 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13046 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13047 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13048 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13049 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13050 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13051 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13052 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13053 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13054 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13055 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13056 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13057 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13058 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13059 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13060 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13061 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13062 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13063 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13064 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13065 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13066 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13067 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 13068 | .ilen = 512, |
| 13069 | .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b" |
| 13070 | "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53" |
| 13071 | "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e" |
| 13072 | "\x28\xca\xb0\x22\xb3\x85\x75\xf4" |
| 13073 | "\x00\x5c\x75\x14\x06\xd6\x25\x82" |
| 13074 | "\xe6\xcb\x08\xf7\x29\x90\x23\x8e" |
| 13075 | "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3" |
| 13076 | "\x80\x51\x67\xb5\x0b\x85\x69\xe8" |
| 13077 | "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3" |
| 13078 | "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0" |
| 13079 | "\x63\x5a\x16\x0f\xf0\xce\x66\x1f" |
| 13080 | "\x2c\x21\x07\xf1\xa4\x03\xa3\x44" |
| 13081 | "\x41\x61\x87\x5d\x6b\xb3\xef\xd4" |
| 13082 | "\xfc\xaa\x32\x7e\x55\x58\x04\x41" |
| 13083 | "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a" |
| 13084 | "\x55\x79\x4b\x6f\xcf\x89\xb9\x19" |
| 13085 | "\xe5\x54\x13\x15\xb2\x1a\xfa\x15" |
| 13086 | "\xc2\xf0\x06\x59\xfa\xa0\x25\x05" |
| 13087 | "\x58\xfa\x43\x91\x16\x85\x40\xbb" |
| 13088 | "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08" |
| 13089 | "\xcd\x22\x22\x41\x11\x9f\x6c\x7c" |
| 13090 | "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7" |
| 13091 | "\xa0\x42\xa8\xde\xfc\xa3\xca\x98" |
| 13092 | "\x4b\x43\xb1\xce\x4b\xbf\x01\x67" |
| 13093 | "\x6e\x29\x60\xbd\x10\x14\x84\x82" |
| 13094 | "\x83\x82\x0c\x63\x73\x92\x02\x7c" |
| 13095 | "\x55\x37\x20\x80\x17\x51\xc8\xbc" |
| 13096 | "\x46\x02\xcb\x38\x07\x6d\xe2\x85" |
| 13097 | "\xaa\x29\xaf\x24\x58\x0d\xf0\x75" |
| 13098 | "\x08\x0a\xa5\x34\x25\x16\xf3\x74" |
| 13099 | "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29" |
| 13100 | "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c" |
| 13101 | "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e" |
| 13102 | "\x8c\x2b\x4f\x54\x76\x47\x53\x8e" |
| 13103 | "\xe8\x00\xec\x92\xb9\x55\xe6\xa2" |
| 13104 | "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87" |
| 13105 | "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21" |
| 13106 | "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19" |
| 13107 | "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9" |
| 13108 | "\x94\x4e\x63\xc7\xae\xfc\xed\x47" |
| 13109 | "\xe2\xfe\x7a\x63\x77\xfe\x97\x82" |
| 13110 | "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80" |
| 13111 | "\xec\x69\x41\xec\xa7\x8a\xe0\x2f" |
| 13112 | "\xe3\x49\x26\xa2\x41\xb2\x08\x0f" |
| 13113 | "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e" |
| 13114 | "\x43\x42\x35\xd0\xcf\xec\x77\x67" |
| 13115 | "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e" |
| 13116 | "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50" |
| 13117 | "\xab\x6c\x6b\xff\xea\x00\x67\xaa" |
| 13118 | "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76" |
| 13119 | "\x2b\x77\x3f\xbe\x12\x75\xfb\x92" |
| 13120 | "\xc6\x89\x67\x4d\xca\xf7\xd4\x50" |
| 13121 | "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6" |
| 13122 | "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5" |
| 13123 | "\x86\xad\x51\xcc\xd5\x96\xb8\xdc" |
| 13124 | "\x03\x57\xe6\x98\x52\x2f\x61\x62" |
| 13125 | "\xc4\x5c\x9c\x36\x71\x07\xfb\x94" |
| 13126 | "\xe3\x02\xc4\x2b\x08\x75\xc7\x35" |
| 13127 | "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1" |
| 13128 | "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e" |
| 13129 | "\x76\x87\x19\x04\x1a\x2f\x38\x3e" |
| 13130 | "\xef\x91\x64\x1d\x18\x07\x4e\x31" |
| 13131 | "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c" |
| 13132 | "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd", |
| 13133 | .rlen = 512, |
| 13134 | }, { |
| 13135 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 13136 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 13137 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 13138 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 13139 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13140 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 13141 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 13142 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 13143 | .klen = 64, |
| 13144 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 13145 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13146 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13147 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13148 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13149 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13150 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13151 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13152 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13153 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13154 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13155 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13156 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13157 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13158 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13159 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13160 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13161 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13162 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13163 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13164 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13165 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13166 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13167 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13168 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13169 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13170 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13171 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13172 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13173 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13174 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13175 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13176 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13177 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 13178 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13179 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13180 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13181 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13182 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13183 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13184 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13185 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13186 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13187 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13188 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13189 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13190 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13191 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13192 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13193 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13194 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13195 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13196 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13197 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13198 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13199 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13200 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13201 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13202 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13203 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13204 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13205 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13206 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13207 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13208 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13209 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 13210 | .ilen = 512, |
| 13211 | .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32" |
| 13212 | "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f" |
| 13213 | "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b" |
| 13214 | "\x80\x1b\x82\xcb\x01\x59\x91\x7f" |
| 13215 | "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3" |
| 13216 | "\x34\xfd\xe6\x11\xf9\x33\x45\x12" |
| 13217 | "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23" |
| 13218 | "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7" |
| 13219 | "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0" |
| 13220 | "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78" |
| 13221 | "\xcd\xec\x7d\xdc\x19\x9c\x72\x64" |
| 13222 | "\x63\x0b\x38\x2e\x76\xdd\x2d\x36" |
| 13223 | "\x49\xb0\x1d\xea\x78\x9e\x00\xca" |
| 13224 | "\x20\xcc\x1b\x1e\x98\x74\xab\xed" |
| 13225 | "\x79\xf7\xd0\x6c\xd8\x93\x80\x29" |
| 13226 | "\xac\xa5\x5e\x34\xa9\xab\xa0\x55" |
| 13227 | "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46" |
| 13228 | "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae" |
| 13229 | "\x25\x42\x17\xbf\x76\x8f\x1c\x3d" |
| 13230 | "\xec\x9a\xda\x64\x96\xb5\x61\xff" |
| 13231 | "\x99\xeb\x12\x96\x85\x82\x9d\xd5" |
| 13232 | "\x81\x85\x14\xa8\x59\xac\x8c\x94" |
| 13233 | "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba" |
| 13234 | "\x82\xc6\x4d\xca\x86\xea\x53\x28" |
| 13235 | "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79" |
| 13236 | "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff" |
| 13237 | "\x05\xca\x81\x7b\xda\xa2\xde\x63" |
| 13238 | "\x3a\x10\xbe\xc2\xac\x32\xc4\x05" |
| 13239 | "\x47\x7e\xef\x67\xe2\x5f\x5b\xae" |
| 13240 | "\xed\xf1\x70\x34\x16\x9a\x07\x7b" |
| 13241 | "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a" |
| 13242 | "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd" |
| 13243 | "\x93\x1f\x06\xba\xd4\x9a\x22\x69" |
| 13244 | "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c" |
| 13245 | "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6" |
| 13246 | "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32" |
| 13247 | "\xfd\x43\x7d\xda\x42\x51\x87\x43" |
| 13248 | "\x9d\xf9\xef\xf4\x30\x97\xf8\x09" |
| 13249 | "\x88\xfc\x3f\x93\x70\xc1\x4a\xec" |
| 13250 | "\x27\x5f\x11\xac\x71\xc7\x48\x46" |
| 13251 | "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56" |
| 13252 | "\x0d\x4e\xb0\x32\x76\xce\x86\x81" |
| 13253 | "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24" |
| 13254 | "\xaf\xf7\x9a\xde\xff\x18\xac\x14" |
| 13255 | "\x90\xc5\x01\x39\x34\x0f\x24\xf3" |
| 13256 | "\x13\x2f\x5e\x4f\x30\x9a\x36\x40" |
| 13257 | "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23" |
| 13258 | "\x50\x88\x97\x40\x69\xb1\x37\xf5" |
| 13259 | "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8" |
| 13260 | "\x7b\x10\x20\xb9\x2b\x46\x83\x5b" |
| 13261 | "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2" |
| 13262 | "\x72\xb0\x97\x4e\x89\xb3\x48\x00" |
| 13263 | "\xc1\x16\x73\x50\x77\xba\xa6\x65" |
| 13264 | "\x20\x2d\xb0\x02\x27\x89\xda\x99" |
| 13265 | "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6" |
| 13266 | "\x2a\xda\x09\x12\x11\xaf\xe6\x57" |
| 13267 | "\x01\x04\x8a\xff\x86\x8b\xac\xf8" |
| 13268 | "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76" |
| 13269 | "\xa3\x0e\x33\x74\x40\x18\x39\x72" |
| 13270 | "\x66\x50\x31\xfd\x70\xdf\xe8\x51" |
| 13271 | "\x96\x21\x36\xb2\x9b\xfa\x85\xd1" |
| 13272 | "\x30\x05\xc8\x92\x98\x80\xff\x7a" |
| 13273 | "\xaf\x43\x0b\xc5\x20\x41\x92\x20" |
| 13274 | "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1", |
| 13275 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13276 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 13277 | .np = 3, |
| 13278 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 18be20b | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 13279 | }, |
| 13280 | }; |
| 13281 | |
| 13282 | static struct cipher_testvec serpent_xts_dec_tv_template[] = { |
| 13283 | /* Generated from AES-XTS test vectors */ |
| 13284 | /* same as enc vectors with input and result reversed */ |
| 13285 | { |
| 13286 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13287 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13288 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13289 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13290 | .klen = 32, |
| 13291 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13292 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13293 | .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64" |
| 13294 | "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4" |
| 13295 | "\x6a\x31\xc5\xf3\x00\xca\xb9\x16" |
| 13296 | "\xde\xe2\x77\x66\xf7\xfe\x62\x08", |
| 13297 | .ilen = 32, |
| 13298 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13299 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13300 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13301 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13302 | .rlen = 32, |
| 13303 | }, { |
| 13304 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 13305 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 13306 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 13307 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 13308 | .klen = 32, |
| 13309 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 13310 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13311 | .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98" |
| 13312 | "\x41\x86\x12\xaf\xb3\xd7\x68\x13" |
| 13313 | "\xed\x81\xcd\x06\x87\x43\x1a\xbb" |
| 13314 | "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe", |
| 13315 | .ilen = 32, |
| 13316 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13317 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13318 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13319 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 13320 | .rlen = 32, |
| 13321 | }, { |
| 13322 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 13323 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 13324 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 13325 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 13326 | .klen = 32, |
| 13327 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 13328 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13329 | .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61" |
| 13330 | "\xb6\x1c\x81\x8f\x2c\x87\x60\x89" |
| 13331 | "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86" |
| 13332 | "\xc1\x68\x45\xaa\x00\xe9\x24\xc5", |
| 13333 | .ilen = 32, |
| 13334 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13335 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13336 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13337 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 13338 | .rlen = 32, |
| 13339 | }, { |
| 13340 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 13341 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 13342 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13343 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 13344 | .klen = 32, |
| 13345 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13346 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13347 | .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b" |
| 13348 | "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53" |
| 13349 | "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e" |
| 13350 | "\x28\xca\xb0\x22\xb3\x85\x75\xf4" |
| 13351 | "\x00\x5c\x75\x14\x06\xd6\x25\x82" |
| 13352 | "\xe6\xcb\x08\xf7\x29\x90\x23\x8e" |
| 13353 | "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3" |
| 13354 | "\x80\x51\x67\xb5\x0b\x85\x69\xe8" |
| 13355 | "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3" |
| 13356 | "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0" |
| 13357 | "\x63\x5a\x16\x0f\xf0\xce\x66\x1f" |
| 13358 | "\x2c\x21\x07\xf1\xa4\x03\xa3\x44" |
| 13359 | "\x41\x61\x87\x5d\x6b\xb3\xef\xd4" |
| 13360 | "\xfc\xaa\x32\x7e\x55\x58\x04\x41" |
| 13361 | "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a" |
| 13362 | "\x55\x79\x4b\x6f\xcf\x89\xb9\x19" |
| 13363 | "\xe5\x54\x13\x15\xb2\x1a\xfa\x15" |
| 13364 | "\xc2\xf0\x06\x59\xfa\xa0\x25\x05" |
| 13365 | "\x58\xfa\x43\x91\x16\x85\x40\xbb" |
| 13366 | "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08" |
| 13367 | "\xcd\x22\x22\x41\x11\x9f\x6c\x7c" |
| 13368 | "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7" |
| 13369 | "\xa0\x42\xa8\xde\xfc\xa3\xca\x98" |
| 13370 | "\x4b\x43\xb1\xce\x4b\xbf\x01\x67" |
| 13371 | "\x6e\x29\x60\xbd\x10\x14\x84\x82" |
| 13372 | "\x83\x82\x0c\x63\x73\x92\x02\x7c" |
| 13373 | "\x55\x37\x20\x80\x17\x51\xc8\xbc" |
| 13374 | "\x46\x02\xcb\x38\x07\x6d\xe2\x85" |
| 13375 | "\xaa\x29\xaf\x24\x58\x0d\xf0\x75" |
| 13376 | "\x08\x0a\xa5\x34\x25\x16\xf3\x74" |
| 13377 | "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29" |
| 13378 | "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c" |
| 13379 | "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e" |
| 13380 | "\x8c\x2b\x4f\x54\x76\x47\x53\x8e" |
| 13381 | "\xe8\x00\xec\x92\xb9\x55\xe6\xa2" |
| 13382 | "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87" |
| 13383 | "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21" |
| 13384 | "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19" |
| 13385 | "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9" |
| 13386 | "\x94\x4e\x63\xc7\xae\xfc\xed\x47" |
| 13387 | "\xe2\xfe\x7a\x63\x77\xfe\x97\x82" |
| 13388 | "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80" |
| 13389 | "\xec\x69\x41\xec\xa7\x8a\xe0\x2f" |
| 13390 | "\xe3\x49\x26\xa2\x41\xb2\x08\x0f" |
| 13391 | "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e" |
| 13392 | "\x43\x42\x35\xd0\xcf\xec\x77\x67" |
| 13393 | "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e" |
| 13394 | "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50" |
| 13395 | "\xab\x6c\x6b\xff\xea\x00\x67\xaa" |
| 13396 | "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76" |
| 13397 | "\x2b\x77\x3f\xbe\x12\x75\xfb\x92" |
| 13398 | "\xc6\x89\x67\x4d\xca\xf7\xd4\x50" |
| 13399 | "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6" |
| 13400 | "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5" |
| 13401 | "\x86\xad\x51\xcc\xd5\x96\xb8\xdc" |
| 13402 | "\x03\x57\xe6\x98\x52\x2f\x61\x62" |
| 13403 | "\xc4\x5c\x9c\x36\x71\x07\xfb\x94" |
| 13404 | "\xe3\x02\xc4\x2b\x08\x75\xc7\x35" |
| 13405 | "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1" |
| 13406 | "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e" |
| 13407 | "\x76\x87\x19\x04\x1a\x2f\x38\x3e" |
| 13408 | "\xef\x91\x64\x1d\x18\x07\x4e\x31" |
| 13409 | "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c" |
| 13410 | "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd", |
| 13411 | .ilen = 512, |
| 13412 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13413 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13414 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13415 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13416 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13417 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13418 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13419 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13420 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13421 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13422 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13423 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13424 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13425 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13426 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13427 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13428 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13429 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13430 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13431 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13432 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13433 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13434 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13435 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13436 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13437 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13438 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13439 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13440 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13441 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13442 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13443 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 13444 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13445 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13446 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13447 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13448 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13449 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13450 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13451 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13452 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13453 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13454 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13455 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13456 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13457 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13458 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13459 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13460 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13461 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13462 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13463 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13464 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13465 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13466 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13467 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13468 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13469 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13470 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13471 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13472 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13473 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13474 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13475 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 13476 | .rlen = 512, |
| 13477 | }, { |
| 13478 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 13479 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 13480 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 13481 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 13482 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13483 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 13484 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 13485 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 13486 | .klen = 64, |
| 13487 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 13488 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13489 | .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32" |
| 13490 | "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f" |
| 13491 | "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b" |
| 13492 | "\x80\x1b\x82\xcb\x01\x59\x91\x7f" |
| 13493 | "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3" |
| 13494 | "\x34\xfd\xe6\x11\xf9\x33\x45\x12" |
| 13495 | "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23" |
| 13496 | "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7" |
| 13497 | "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0" |
| 13498 | "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78" |
| 13499 | "\xcd\xec\x7d\xdc\x19\x9c\x72\x64" |
| 13500 | "\x63\x0b\x38\x2e\x76\xdd\x2d\x36" |
| 13501 | "\x49\xb0\x1d\xea\x78\x9e\x00\xca" |
| 13502 | "\x20\xcc\x1b\x1e\x98\x74\xab\xed" |
| 13503 | "\x79\xf7\xd0\x6c\xd8\x93\x80\x29" |
| 13504 | "\xac\xa5\x5e\x34\xa9\xab\xa0\x55" |
| 13505 | "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46" |
| 13506 | "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae" |
| 13507 | "\x25\x42\x17\xbf\x76\x8f\x1c\x3d" |
| 13508 | "\xec\x9a\xda\x64\x96\xb5\x61\xff" |
| 13509 | "\x99\xeb\x12\x96\x85\x82\x9d\xd5" |
| 13510 | "\x81\x85\x14\xa8\x59\xac\x8c\x94" |
| 13511 | "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba" |
| 13512 | "\x82\xc6\x4d\xca\x86\xea\x53\x28" |
| 13513 | "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79" |
| 13514 | "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff" |
| 13515 | "\x05\xca\x81\x7b\xda\xa2\xde\x63" |
| 13516 | "\x3a\x10\xbe\xc2\xac\x32\xc4\x05" |
| 13517 | "\x47\x7e\xef\x67\xe2\x5f\x5b\xae" |
| 13518 | "\xed\xf1\x70\x34\x16\x9a\x07\x7b" |
| 13519 | "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a" |
| 13520 | "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd" |
| 13521 | "\x93\x1f\x06\xba\xd4\x9a\x22\x69" |
| 13522 | "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c" |
| 13523 | "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6" |
| 13524 | "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32" |
| 13525 | "\xfd\x43\x7d\xda\x42\x51\x87\x43" |
| 13526 | "\x9d\xf9\xef\xf4\x30\x97\xf8\x09" |
| 13527 | "\x88\xfc\x3f\x93\x70\xc1\x4a\xec" |
| 13528 | "\x27\x5f\x11\xac\x71\xc7\x48\x46" |
| 13529 | "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56" |
| 13530 | "\x0d\x4e\xb0\x32\x76\xce\x86\x81" |
| 13531 | "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24" |
| 13532 | "\xaf\xf7\x9a\xde\xff\x18\xac\x14" |
| 13533 | "\x90\xc5\x01\x39\x34\x0f\x24\xf3" |
| 13534 | "\x13\x2f\x5e\x4f\x30\x9a\x36\x40" |
| 13535 | "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23" |
| 13536 | "\x50\x88\x97\x40\x69\xb1\x37\xf5" |
| 13537 | "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8" |
| 13538 | "\x7b\x10\x20\xb9\x2b\x46\x83\x5b" |
| 13539 | "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2" |
| 13540 | "\x72\xb0\x97\x4e\x89\xb3\x48\x00" |
| 13541 | "\xc1\x16\x73\x50\x77\xba\xa6\x65" |
| 13542 | "\x20\x2d\xb0\x02\x27\x89\xda\x99" |
| 13543 | "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6" |
| 13544 | "\x2a\xda\x09\x12\x11\xaf\xe6\x57" |
| 13545 | "\x01\x04\x8a\xff\x86\x8b\xac\xf8" |
| 13546 | "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76" |
| 13547 | "\xa3\x0e\x33\x74\x40\x18\x39\x72" |
| 13548 | "\x66\x50\x31\xfd\x70\xdf\xe8\x51" |
| 13549 | "\x96\x21\x36\xb2\x9b\xfa\x85\xd1" |
| 13550 | "\x30\x05\xc8\x92\x98\x80\xff\x7a" |
| 13551 | "\xaf\x43\x0b\xc5\x20\x41\x92\x20" |
| 13552 | "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1", |
| 13553 | .ilen = 512, |
| 13554 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13555 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13556 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13557 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13558 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13559 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13560 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13561 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13562 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13563 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13564 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13565 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13566 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13567 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13568 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13569 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13570 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13571 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13572 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13573 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13574 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13575 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13576 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13577 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13578 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13579 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13580 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13581 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13582 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13583 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13584 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13585 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 13586 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13587 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13588 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13589 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13590 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13591 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13592 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13593 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13594 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13595 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13596 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13597 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13598 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13599 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13600 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13601 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13602 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13603 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13604 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13605 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13606 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13607 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13608 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13609 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13610 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13611 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13612 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13613 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13614 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13615 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13616 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13617 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 13618 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13619 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 13620 | .np = 3, |
| 13621 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 18be20b | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 13622 | }, |
| 13623 | }; |
| 13624 | |
Eric Biggers | a24846d | 2018-02-14 10:42:19 -0800 | [diff] [blame] | 13625 | /* |
| 13626 | * Speck test vectors taken from the original paper: |
| 13627 | * "The Simon and Speck Families of Lightweight Block Ciphers" |
| 13628 | * https://eprint.iacr.org/2013/404.pdf |
| 13629 | * |
| 13630 | * Note that the paper does not make byte and word order clear. But it was |
| 13631 | * confirmed with the authors that the intended orders are little endian byte |
| 13632 | * order and (y, x) word order. Equivalently, the printed test vectors, when |
| 13633 | * looking at only the bytes (ignoring the whitespace that divides them into |
| 13634 | * words), are backwards: the left-most byte is actually the one with the |
| 13635 | * highest memory address, while the right-most byte is actually the one with |
| 13636 | * the lowest memory address. |
| 13637 | */ |
| 13638 | |
| 13639 | static struct cipher_testvec speck128_enc_tv_template[] = { |
| 13640 | { /* Speck128/128 */ |
| 13641 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13642 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 13643 | .klen = 16, |
| 13644 | .input = "\x20\x6d\x61\x64\x65\x20\x69\x74" |
| 13645 | "\x20\x65\x71\x75\x69\x76\x61\x6c", |
| 13646 | .ilen = 16, |
| 13647 | .result = "\x18\x0d\x57\x5c\xdf\xfe\x60\x78" |
| 13648 | "\x65\x32\x78\x79\x51\x98\x5d\xa6", |
| 13649 | .rlen = 16, |
| 13650 | }, { /* Speck128/192 */ |
| 13651 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13652 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13653 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 13654 | .klen = 24, |
| 13655 | .input = "\x65\x6e\x74\x20\x74\x6f\x20\x43" |
| 13656 | "\x68\x69\x65\x66\x20\x48\x61\x72", |
| 13657 | .ilen = 16, |
| 13658 | .result = "\x86\x18\x3c\xe0\x5d\x18\xbc\xf9" |
| 13659 | "\x66\x55\x13\x13\x3a\xcf\xe4\x1b", |
| 13660 | .rlen = 16, |
| 13661 | }, { /* Speck128/256 */ |
| 13662 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13663 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13664 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13665 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 13666 | .klen = 32, |
| 13667 | .input = "\x70\x6f\x6f\x6e\x65\x72\x2e\x20" |
| 13668 | "\x49\x6e\x20\x74\x68\x6f\x73\x65", |
| 13669 | .ilen = 16, |
| 13670 | .result = "\x43\x8f\x18\x9c\x8d\xb4\xee\x4e" |
| 13671 | "\x3e\xf5\xc0\x05\x04\x01\x09\x41", |
| 13672 | .rlen = 16, |
| 13673 | }, |
| 13674 | }; |
| 13675 | |
| 13676 | static struct cipher_testvec speck128_dec_tv_template[] = { |
| 13677 | { /* Speck128/128 */ |
| 13678 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13679 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 13680 | .klen = 16, |
| 13681 | .input = "\x18\x0d\x57\x5c\xdf\xfe\x60\x78" |
| 13682 | "\x65\x32\x78\x79\x51\x98\x5d\xa6", |
| 13683 | .ilen = 16, |
| 13684 | .result = "\x20\x6d\x61\x64\x65\x20\x69\x74" |
| 13685 | "\x20\x65\x71\x75\x69\x76\x61\x6c", |
| 13686 | .rlen = 16, |
| 13687 | }, { /* Speck128/192 */ |
| 13688 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13689 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13690 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 13691 | .klen = 24, |
| 13692 | .input = "\x86\x18\x3c\xe0\x5d\x18\xbc\xf9" |
| 13693 | "\x66\x55\x13\x13\x3a\xcf\xe4\x1b", |
| 13694 | .ilen = 16, |
| 13695 | .result = "\x65\x6e\x74\x20\x74\x6f\x20\x43" |
| 13696 | "\x68\x69\x65\x66\x20\x48\x61\x72", |
| 13697 | .rlen = 16, |
| 13698 | }, { /* Speck128/256 */ |
| 13699 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13700 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13701 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13702 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 13703 | .klen = 32, |
| 13704 | .input = "\x43\x8f\x18\x9c\x8d\xb4\xee\x4e" |
| 13705 | "\x3e\xf5\xc0\x05\x04\x01\x09\x41", |
| 13706 | .ilen = 16, |
| 13707 | .result = "\x70\x6f\x6f\x6e\x65\x72\x2e\x20" |
| 13708 | "\x49\x6e\x20\x74\x68\x6f\x73\x65", |
| 13709 | .rlen = 16, |
| 13710 | }, |
| 13711 | }; |
| 13712 | |
Eric Biggers | 4363409 | 2018-02-14 10:42:22 -0800 | [diff] [blame] | 13713 | /* |
| 13714 | * Speck128-XTS test vectors, taken from the AES-XTS test vectors with the |
| 13715 | * result recomputed with Speck128 as the cipher |
| 13716 | */ |
| 13717 | |
| 13718 | static struct cipher_testvec speck128_xts_enc_tv_template[] = { |
| 13719 | { |
| 13720 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13721 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13722 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13723 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13724 | .klen = 32, |
| 13725 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13726 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13727 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13728 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13729 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13730 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13731 | .ilen = 32, |
| 13732 | .result = "\xbe\xa0\xe7\x03\xd7\xfe\xab\x62" |
| 13733 | "\x3b\x99\x4a\x64\x74\x77\xac\xed" |
| 13734 | "\xd8\xf4\xa6\xcf\xae\xb9\x07\x42" |
| 13735 | "\x51\xd9\xb6\x1d\xe0\x5e\xbc\x54", |
| 13736 | .rlen = 32, |
| 13737 | }, { |
| 13738 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 13739 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 13740 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 13741 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 13742 | .klen = 32, |
| 13743 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 13744 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13745 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13746 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13747 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13748 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 13749 | .ilen = 32, |
| 13750 | .result = "\xfb\x53\x81\x75\x6f\x9f\x34\xad" |
| 13751 | "\x7e\x01\xed\x7b\xcc\xda\x4e\x4a" |
| 13752 | "\xd4\x84\xa4\x53\xd5\x88\x73\x1b" |
| 13753 | "\xfd\xcb\xae\x0d\xf3\x04\xee\xe6", |
| 13754 | .rlen = 32, |
| 13755 | }, { |
| 13756 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 13757 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 13758 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 13759 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 13760 | .klen = 32, |
| 13761 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 13762 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13763 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13764 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13765 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 13766 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 13767 | .ilen = 32, |
| 13768 | .result = "\x21\x52\x84\x15\xd1\xf7\x21\x55" |
| 13769 | "\xd9\x75\x4a\xd3\xc5\xdb\x9f\x7d" |
| 13770 | "\xda\x63\xb2\xf1\x82\xb0\x89\x59" |
| 13771 | "\x86\xd4\xaa\xaa\xdd\xff\x4f\x92", |
| 13772 | .rlen = 32, |
| 13773 | }, { |
| 13774 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 13775 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 13776 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13777 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 13778 | .klen = 32, |
| 13779 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13780 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13781 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13782 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13783 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13784 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13785 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13786 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13787 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13788 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13789 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13790 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13791 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13792 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13793 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13794 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13795 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13796 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13797 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13798 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13799 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13800 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13801 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13802 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13803 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13804 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13805 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13806 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13807 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13808 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13809 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13810 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13811 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13812 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 13813 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13814 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13815 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13816 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13817 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13818 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13819 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13820 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13821 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13822 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13823 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13824 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13825 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13826 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13827 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13828 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13829 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13830 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13831 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13832 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13833 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13834 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13835 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13836 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13837 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13838 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13839 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13840 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13841 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13842 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13843 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13844 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 13845 | .ilen = 512, |
| 13846 | .result = "\x57\xb5\xf8\x71\x6e\x6d\xdd\x82" |
| 13847 | "\x53\xd0\xed\x2d\x30\xc1\x20\xef" |
| 13848 | "\x70\x67\x5e\xff\x09\x70\xbb\xc1" |
| 13849 | "\x3a\x7b\x48\x26\xd9\x0b\xf4\x48" |
| 13850 | "\xbe\xce\xb1\xc7\xb2\x67\xc4\xa7" |
| 13851 | "\x76\xf8\x36\x30\xb7\xb4\x9a\xd9" |
| 13852 | "\xf5\x9d\xd0\x7b\xc1\x06\x96\x44" |
| 13853 | "\x19\xc5\x58\x84\x63\xb9\x12\x68" |
| 13854 | "\x68\xc7\xaa\x18\x98\xf2\x1f\x5c" |
| 13855 | "\x39\xa6\xd8\x32\x2b\xc3\x51\xfd" |
| 13856 | "\x74\x79\x2e\xb4\x44\xd7\x69\xc4" |
| 13857 | "\xfc\x29\xe6\xed\x26\x1e\xa6\x9d" |
| 13858 | "\x1c\xbe\x00\x0e\x7f\x3a\xca\xfb" |
| 13859 | "\x6d\x13\x65\xa0\xf9\x31\x12\xe2" |
| 13860 | "\x26\xd1\xec\x2b\x0a\x8b\x59\x99" |
| 13861 | "\xa7\x49\xa0\x0e\x09\x33\x85\x50" |
| 13862 | "\xc3\x23\xca\x7a\xdd\x13\x45\x5f" |
| 13863 | "\xde\x4c\xa7\xcb\x00\x8a\x66\x6f" |
| 13864 | "\xa2\xb6\xb1\x2e\xe1\xa0\x18\xf6" |
| 13865 | "\xad\xf3\xbd\xeb\xc7\xef\x55\x4f" |
| 13866 | "\x79\x91\x8d\x36\x13\x7b\xd0\x4a" |
| 13867 | "\x6c\x39\xfb\x53\xb8\x6f\x02\x51" |
| 13868 | "\xa5\x20\xac\x24\x1c\x73\x59\x73" |
| 13869 | "\x58\x61\x3a\x87\x58\xb3\x20\x56" |
| 13870 | "\x39\x06\x2b\x4d\xd3\x20\x2b\x89" |
| 13871 | "\x3f\xa2\xf0\x96\xeb\x7f\xa4\xcd" |
| 13872 | "\x11\xae\xbd\xcb\x3a\xb4\xd9\x91" |
| 13873 | "\x09\x35\x71\x50\x65\xac\x92\xe3" |
| 13874 | "\x7b\x32\xc0\x7a\xdd\xd4\xc3\x92" |
| 13875 | "\x6f\xeb\x79\xde\x6f\xd3\x25\xc9" |
| 13876 | "\xcd\x63\xf5\x1e\x7a\x3b\x26\x9d" |
| 13877 | "\x77\x04\x80\xa9\xbf\x38\xb5\xbd" |
| 13878 | "\xb8\x05\x07\xbd\xfd\xab\x7b\xf8" |
| 13879 | "\x2a\x26\xcc\x49\x14\x6d\x55\x01" |
| 13880 | "\x06\x94\xd8\xb2\x2d\x53\x83\x1b" |
| 13881 | "\x8f\xd4\xdd\x57\x12\x7e\x18\xba" |
| 13882 | "\x8e\xe2\x4d\x80\xef\x7e\x6b\x9d" |
| 13883 | "\x24\xa9\x60\xa4\x97\x85\x86\x2a" |
| 13884 | "\x01\x00\x09\xf1\xcb\x4a\x24\x1c" |
| 13885 | "\xd8\xf6\xe6\x5b\xe7\x5d\xf2\xc4" |
| 13886 | "\x97\x1c\x10\xc6\x4d\x66\x4f\x98" |
| 13887 | "\x87\x30\xac\xd5\xea\x73\x49\x10" |
| 13888 | "\x80\xea\xe5\x5f\x4d\x5f\x03\x33" |
| 13889 | "\x66\x02\x35\x3d\x60\x06\x36\x4f" |
| 13890 | "\x14\x1c\xd8\x07\x1f\x78\xd0\xf8" |
| 13891 | "\x4f\x6c\x62\x7c\x15\xa5\x7c\x28" |
| 13892 | "\x7c\xcc\xeb\x1f\xd1\x07\x90\x93" |
| 13893 | "\x7e\xc2\xa8\x3a\x80\xc0\xf5\x30" |
| 13894 | "\xcc\x75\xcf\x16\x26\xa9\x26\x3b" |
| 13895 | "\xe7\x68\x2f\x15\x21\x5b\xe4\x00" |
| 13896 | "\xbd\x48\x50\xcd\x75\x70\xc4\x62" |
| 13897 | "\xbb\x41\xfb\x89\x4a\x88\x3b\x3b" |
| 13898 | "\x51\x66\x02\x69\x04\x97\x36\xd4" |
| 13899 | "\x75\xae\x0b\xa3\x42\xf8\xca\x79" |
| 13900 | "\x8f\x93\xe9\xcc\x38\xbd\xd6\xd2" |
| 13901 | "\xf9\x70\x4e\xc3\x6a\x8e\x25\xbd" |
| 13902 | "\xea\x15\x5a\xa0\x85\x7e\x81\x0d" |
| 13903 | "\x03\xe7\x05\x39\xf5\x05\x26\xee" |
| 13904 | "\xec\xaa\x1f\x3d\xc9\x98\x76\x01" |
| 13905 | "\x2c\xf4\xfc\xa3\x88\x77\x38\xc4" |
| 13906 | "\x50\x65\x50\x6d\x04\x1f\xdf\x5a" |
| 13907 | "\xaa\xf2\x01\xa9\xc1\x8d\xee\xca" |
| 13908 | "\x47\x26\xef\x39\xb8\xb4\xf2\xd1" |
| 13909 | "\xd6\xbb\x1b\x2a\xc1\x34\x14\xcf", |
| 13910 | .rlen = 512, |
| 13911 | }, { |
| 13912 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 13913 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 13914 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 13915 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 13916 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13917 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 13918 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 13919 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 13920 | .klen = 64, |
| 13921 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 13922 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13923 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13924 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13925 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13926 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13927 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13928 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13929 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13930 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13931 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13932 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13933 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13934 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13935 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13936 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13937 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13938 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13939 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13940 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13941 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13942 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13943 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13944 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13945 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13946 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13947 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13948 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13949 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13950 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13951 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13952 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13953 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13954 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 13955 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13956 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13957 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13958 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13959 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13960 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13961 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13962 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13963 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13964 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13965 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13966 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13967 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13968 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13969 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13970 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13971 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13972 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13973 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13974 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13975 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13976 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13977 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13978 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13979 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13980 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13981 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13982 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13983 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13984 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13985 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13986 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 13987 | .ilen = 512, |
| 13988 | .result = "\xc5\x85\x2a\x4b\x73\xe4\xf6\xf1" |
| 13989 | "\x7e\xf9\xf6\xe9\xa3\x73\x36\xcb" |
| 13990 | "\xaa\xb6\x22\xb0\x24\x6e\x3d\x73" |
| 13991 | "\x92\x99\xde\xd3\x76\xed\xcd\x63" |
| 13992 | "\x64\x3a\x22\x57\xc1\x43\x49\xd4" |
| 13993 | "\x79\x36\x31\x19\x62\xae\x10\x7e" |
| 13994 | "\x7d\xcf\x7a\xe2\x6b\xce\x27\xfa" |
| 13995 | "\xdc\x3d\xd9\x83\xd3\x42\x4c\xe0" |
| 13996 | "\x1b\xd6\x1d\x1a\x6f\xd2\x03\x00" |
| 13997 | "\xfc\x81\x99\x8a\x14\x62\xf5\x7e" |
| 13998 | "\x0d\xe7\x12\xe8\x17\x9d\x0b\xec" |
| 13999 | "\xe2\xf7\xc9\xa7\x63\xd1\x79\xb6" |
| 14000 | "\x62\x62\x37\xfe\x0a\x4c\x4a\x37" |
| 14001 | "\x70\xc7\x5e\x96\x5f\xbc\x8e\x9e" |
| 14002 | "\x85\x3c\x4f\x26\x64\x85\xbc\x68" |
| 14003 | "\xb0\xe0\x86\x5e\x26\x41\xce\x11" |
| 14004 | "\x50\xda\x97\x14\xe9\x9e\xc7\x6d" |
| 14005 | "\x3b\xdc\x43\xde\x2b\x27\x69\x7d" |
| 14006 | "\xfc\xb0\x28\xbd\x8f\xb1\xc6\x31" |
| 14007 | "\x14\x4d\xf0\x74\x37\xfd\x07\x25" |
| 14008 | "\x96\x55\xe5\xfc\x9e\x27\x2a\x74" |
| 14009 | "\x1b\x83\x4d\x15\x83\xac\x57\xa0" |
| 14010 | "\xac\xa5\xd0\x38\xef\x19\x56\x53" |
| 14011 | "\x25\x4b\xfc\xce\x04\x23\xe5\x6b" |
| 14012 | "\xf6\xc6\x6c\x32\x0b\xb3\x12\xc5" |
| 14013 | "\xed\x22\x34\x1c\x5d\xed\x17\x06" |
| 14014 | "\x36\xa3\xe6\x77\xb9\x97\x46\xb8" |
| 14015 | "\xe9\x3f\x7e\xc7\xbc\x13\x5c\xdc" |
| 14016 | "\x6e\x3f\x04\x5e\xd1\x59\xa5\x82" |
| 14017 | "\x35\x91\x3d\x1b\xe4\x97\x9f\x92" |
| 14018 | "\x1c\x5e\x5f\x6f\x41\xd4\x62\xa1" |
| 14019 | "\x8d\x39\xfc\x42\xfb\x38\x80\xb9" |
| 14020 | "\x0a\xe3\xcc\x6a\x93\xd9\x7a\xb1" |
| 14021 | "\xe9\x69\xaf\x0a\x6b\x75\x38\xa7" |
| 14022 | "\xa1\xbf\xf7\xda\x95\x93\x4b\x78" |
| 14023 | "\x19\xf5\x94\xf9\xd2\x00\x33\x37" |
| 14024 | "\xcf\xf5\x9e\x9c\xf3\xcc\xa6\xee" |
| 14025 | "\x42\xb2\x9e\x2c\x5f\x48\x23\x26" |
| 14026 | "\x15\x25\x17\x03\x3d\xfe\x2c\xfc" |
| 14027 | "\xeb\xba\xda\xe0\x00\x05\xb6\xa6" |
| 14028 | "\x07\xb3\xe8\x36\x5b\xec\x5b\xbf" |
| 14029 | "\xd6\x5b\x00\x74\xc6\x97\xf1\x6a" |
| 14030 | "\x49\xa1\xc3\xfa\x10\x52\xb9\x14" |
| 14031 | "\xad\xb7\x73\xf8\x78\x12\xc8\x59" |
| 14032 | "\x17\x80\x4c\x57\x39\xf1\x6d\x80" |
| 14033 | "\x25\x77\x0f\x5e\x7d\xf0\xaf\x21" |
| 14034 | "\xec\xce\xb7\xc8\x02\x8a\xed\x53" |
| 14035 | "\x2c\x25\x68\x2e\x1f\x85\x5e\x67" |
| 14036 | "\xd1\x07\x7a\x3a\x89\x08\xe0\x34" |
| 14037 | "\xdc\xdb\x26\xb4\x6b\x77\xfc\x40" |
| 14038 | "\x31\x15\x72\xa0\xf0\x73\xd9\x3b" |
| 14039 | "\xd5\xdb\xfe\xfc\x8f\xa9\x44\xa2" |
| 14040 | "\x09\x9f\xc6\x33\xe5\xe2\x88\xe8" |
| 14041 | "\xf3\xf0\x1a\xf4\xce\x12\x0f\xd6" |
| 14042 | "\xf7\x36\xe6\xa4\xf4\x7a\x10\x58" |
| 14043 | "\xcc\x1f\x48\x49\x65\x47\x75\xe9" |
| 14044 | "\x28\xe1\x65\x7b\xf2\xc4\xb5\x07" |
| 14045 | "\xf2\xec\x76\xd8\x8f\x09\xf3\x16" |
| 14046 | "\xa1\x51\x89\x3b\xeb\x96\x42\xac" |
| 14047 | "\x65\xe0\x67\x63\x29\xdc\xb4\x7d" |
| 14048 | "\xf2\x41\x51\x6a\xcb\xde\x3c\xfb" |
| 14049 | "\x66\x8d\x13\xca\xe0\x59\x2a\x00" |
| 14050 | "\xc9\x53\x4c\xe6\x9e\xe2\x73\xd5" |
| 14051 | "\x67\x19\xb2\xbd\x9a\x63\xd7\x5c", |
| 14052 | .rlen = 512, |
| 14053 | .also_non_np = 1, |
| 14054 | .np = 3, |
| 14055 | .tap = { 512 - 20, 4, 16 }, |
| 14056 | } |
| 14057 | }; |
| 14058 | |
| 14059 | static struct cipher_testvec speck128_xts_dec_tv_template[] = { |
| 14060 | { |
| 14061 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14062 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14063 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14064 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14065 | .klen = 32, |
| 14066 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14067 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14068 | .input = "\xbe\xa0\xe7\x03\xd7\xfe\xab\x62" |
| 14069 | "\x3b\x99\x4a\x64\x74\x77\xac\xed" |
| 14070 | "\xd8\xf4\xa6\xcf\xae\xb9\x07\x42" |
| 14071 | "\x51\xd9\xb6\x1d\xe0\x5e\xbc\x54", |
| 14072 | .ilen = 32, |
| 14073 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14074 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14075 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14076 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14077 | .rlen = 32, |
| 14078 | }, { |
| 14079 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 14080 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 14081 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 14082 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 14083 | .klen = 32, |
| 14084 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 14085 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14086 | .input = "\xfb\x53\x81\x75\x6f\x9f\x34\xad" |
| 14087 | "\x7e\x01\xed\x7b\xcc\xda\x4e\x4a" |
| 14088 | "\xd4\x84\xa4\x53\xd5\x88\x73\x1b" |
| 14089 | "\xfd\xcb\xae\x0d\xf3\x04\xee\xe6", |
| 14090 | .ilen = 32, |
| 14091 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14092 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14093 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14094 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 14095 | .rlen = 32, |
| 14096 | }, { |
| 14097 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 14098 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 14099 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 14100 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 14101 | .klen = 32, |
| 14102 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 14103 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14104 | .input = "\x21\x52\x84\x15\xd1\xf7\x21\x55" |
| 14105 | "\xd9\x75\x4a\xd3\xc5\xdb\x9f\x7d" |
| 14106 | "\xda\x63\xb2\xf1\x82\xb0\x89\x59" |
| 14107 | "\x86\xd4\xaa\xaa\xdd\xff\x4f\x92", |
| 14108 | .ilen = 32, |
| 14109 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14110 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14111 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14112 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 14113 | .rlen = 32, |
| 14114 | }, { |
| 14115 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 14116 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 14117 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 14118 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 14119 | .klen = 32, |
| 14120 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14121 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14122 | .input = "\x57\xb5\xf8\x71\x6e\x6d\xdd\x82" |
| 14123 | "\x53\xd0\xed\x2d\x30\xc1\x20\xef" |
| 14124 | "\x70\x67\x5e\xff\x09\x70\xbb\xc1" |
| 14125 | "\x3a\x7b\x48\x26\xd9\x0b\xf4\x48" |
| 14126 | "\xbe\xce\xb1\xc7\xb2\x67\xc4\xa7" |
| 14127 | "\x76\xf8\x36\x30\xb7\xb4\x9a\xd9" |
| 14128 | "\xf5\x9d\xd0\x7b\xc1\x06\x96\x44" |
| 14129 | "\x19\xc5\x58\x84\x63\xb9\x12\x68" |
| 14130 | "\x68\xc7\xaa\x18\x98\xf2\x1f\x5c" |
| 14131 | "\x39\xa6\xd8\x32\x2b\xc3\x51\xfd" |
| 14132 | "\x74\x79\x2e\xb4\x44\xd7\x69\xc4" |
| 14133 | "\xfc\x29\xe6\xed\x26\x1e\xa6\x9d" |
| 14134 | "\x1c\xbe\x00\x0e\x7f\x3a\xca\xfb" |
| 14135 | "\x6d\x13\x65\xa0\xf9\x31\x12\xe2" |
| 14136 | "\x26\xd1\xec\x2b\x0a\x8b\x59\x99" |
| 14137 | "\xa7\x49\xa0\x0e\x09\x33\x85\x50" |
| 14138 | "\xc3\x23\xca\x7a\xdd\x13\x45\x5f" |
| 14139 | "\xde\x4c\xa7\xcb\x00\x8a\x66\x6f" |
| 14140 | "\xa2\xb6\xb1\x2e\xe1\xa0\x18\xf6" |
| 14141 | "\xad\xf3\xbd\xeb\xc7\xef\x55\x4f" |
| 14142 | "\x79\x91\x8d\x36\x13\x7b\xd0\x4a" |
| 14143 | "\x6c\x39\xfb\x53\xb8\x6f\x02\x51" |
| 14144 | "\xa5\x20\xac\x24\x1c\x73\x59\x73" |
| 14145 | "\x58\x61\x3a\x87\x58\xb3\x20\x56" |
| 14146 | "\x39\x06\x2b\x4d\xd3\x20\x2b\x89" |
| 14147 | "\x3f\xa2\xf0\x96\xeb\x7f\xa4\xcd" |
| 14148 | "\x11\xae\xbd\xcb\x3a\xb4\xd9\x91" |
| 14149 | "\x09\x35\x71\x50\x65\xac\x92\xe3" |
| 14150 | "\x7b\x32\xc0\x7a\xdd\xd4\xc3\x92" |
| 14151 | "\x6f\xeb\x79\xde\x6f\xd3\x25\xc9" |
| 14152 | "\xcd\x63\xf5\x1e\x7a\x3b\x26\x9d" |
| 14153 | "\x77\x04\x80\xa9\xbf\x38\xb5\xbd" |
| 14154 | "\xb8\x05\x07\xbd\xfd\xab\x7b\xf8" |
| 14155 | "\x2a\x26\xcc\x49\x14\x6d\x55\x01" |
| 14156 | "\x06\x94\xd8\xb2\x2d\x53\x83\x1b" |
| 14157 | "\x8f\xd4\xdd\x57\x12\x7e\x18\xba" |
| 14158 | "\x8e\xe2\x4d\x80\xef\x7e\x6b\x9d" |
| 14159 | "\x24\xa9\x60\xa4\x97\x85\x86\x2a" |
| 14160 | "\x01\x00\x09\xf1\xcb\x4a\x24\x1c" |
| 14161 | "\xd8\xf6\xe6\x5b\xe7\x5d\xf2\xc4" |
| 14162 | "\x97\x1c\x10\xc6\x4d\x66\x4f\x98" |
| 14163 | "\x87\x30\xac\xd5\xea\x73\x49\x10" |
| 14164 | "\x80\xea\xe5\x5f\x4d\x5f\x03\x33" |
| 14165 | "\x66\x02\x35\x3d\x60\x06\x36\x4f" |
| 14166 | "\x14\x1c\xd8\x07\x1f\x78\xd0\xf8" |
| 14167 | "\x4f\x6c\x62\x7c\x15\xa5\x7c\x28" |
| 14168 | "\x7c\xcc\xeb\x1f\xd1\x07\x90\x93" |
| 14169 | "\x7e\xc2\xa8\x3a\x80\xc0\xf5\x30" |
| 14170 | "\xcc\x75\xcf\x16\x26\xa9\x26\x3b" |
| 14171 | "\xe7\x68\x2f\x15\x21\x5b\xe4\x00" |
| 14172 | "\xbd\x48\x50\xcd\x75\x70\xc4\x62" |
| 14173 | "\xbb\x41\xfb\x89\x4a\x88\x3b\x3b" |
| 14174 | "\x51\x66\x02\x69\x04\x97\x36\xd4" |
| 14175 | "\x75\xae\x0b\xa3\x42\xf8\xca\x79" |
| 14176 | "\x8f\x93\xe9\xcc\x38\xbd\xd6\xd2" |
| 14177 | "\xf9\x70\x4e\xc3\x6a\x8e\x25\xbd" |
| 14178 | "\xea\x15\x5a\xa0\x85\x7e\x81\x0d" |
| 14179 | "\x03\xe7\x05\x39\xf5\x05\x26\xee" |
| 14180 | "\xec\xaa\x1f\x3d\xc9\x98\x76\x01" |
| 14181 | "\x2c\xf4\xfc\xa3\x88\x77\x38\xc4" |
| 14182 | "\x50\x65\x50\x6d\x04\x1f\xdf\x5a" |
| 14183 | "\xaa\xf2\x01\xa9\xc1\x8d\xee\xca" |
| 14184 | "\x47\x26\xef\x39\xb8\xb4\xf2\xd1" |
| 14185 | "\xd6\xbb\x1b\x2a\xc1\x34\x14\xcf", |
| 14186 | .ilen = 512, |
| 14187 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14188 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14189 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14190 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14191 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14192 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14193 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14194 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14195 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14196 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14197 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14198 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14199 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14200 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14201 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14202 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14203 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14204 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14205 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14206 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14207 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14208 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14209 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14210 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14211 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14212 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14213 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14214 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14215 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14216 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14217 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14218 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 14219 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14220 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14221 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14222 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14223 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14224 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14225 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14226 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14227 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14228 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14229 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14230 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14231 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14232 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14233 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14234 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14235 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14236 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14237 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14238 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14239 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14240 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14241 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14242 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14243 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14244 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14245 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14246 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14247 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14248 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14249 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14250 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 14251 | .rlen = 512, |
| 14252 | }, { |
| 14253 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 14254 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 14255 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 14256 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 14257 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 14258 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 14259 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 14260 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 14261 | .klen = 64, |
| 14262 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 14263 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14264 | .input = "\xc5\x85\x2a\x4b\x73\xe4\xf6\xf1" |
| 14265 | "\x7e\xf9\xf6\xe9\xa3\x73\x36\xcb" |
| 14266 | "\xaa\xb6\x22\xb0\x24\x6e\x3d\x73" |
| 14267 | "\x92\x99\xde\xd3\x76\xed\xcd\x63" |
| 14268 | "\x64\x3a\x22\x57\xc1\x43\x49\xd4" |
| 14269 | "\x79\x36\x31\x19\x62\xae\x10\x7e" |
| 14270 | "\x7d\xcf\x7a\xe2\x6b\xce\x27\xfa" |
| 14271 | "\xdc\x3d\xd9\x83\xd3\x42\x4c\xe0" |
| 14272 | "\x1b\xd6\x1d\x1a\x6f\xd2\x03\x00" |
| 14273 | "\xfc\x81\x99\x8a\x14\x62\xf5\x7e" |
| 14274 | "\x0d\xe7\x12\xe8\x17\x9d\x0b\xec" |
| 14275 | "\xe2\xf7\xc9\xa7\x63\xd1\x79\xb6" |
| 14276 | "\x62\x62\x37\xfe\x0a\x4c\x4a\x37" |
| 14277 | "\x70\xc7\x5e\x96\x5f\xbc\x8e\x9e" |
| 14278 | "\x85\x3c\x4f\x26\x64\x85\xbc\x68" |
| 14279 | "\xb0\xe0\x86\x5e\x26\x41\xce\x11" |
| 14280 | "\x50\xda\x97\x14\xe9\x9e\xc7\x6d" |
| 14281 | "\x3b\xdc\x43\xde\x2b\x27\x69\x7d" |
| 14282 | "\xfc\xb0\x28\xbd\x8f\xb1\xc6\x31" |
| 14283 | "\x14\x4d\xf0\x74\x37\xfd\x07\x25" |
| 14284 | "\x96\x55\xe5\xfc\x9e\x27\x2a\x74" |
| 14285 | "\x1b\x83\x4d\x15\x83\xac\x57\xa0" |
| 14286 | "\xac\xa5\xd0\x38\xef\x19\x56\x53" |
| 14287 | "\x25\x4b\xfc\xce\x04\x23\xe5\x6b" |
| 14288 | "\xf6\xc6\x6c\x32\x0b\xb3\x12\xc5" |
| 14289 | "\xed\x22\x34\x1c\x5d\xed\x17\x06" |
| 14290 | "\x36\xa3\xe6\x77\xb9\x97\x46\xb8" |
| 14291 | "\xe9\x3f\x7e\xc7\xbc\x13\x5c\xdc" |
| 14292 | "\x6e\x3f\x04\x5e\xd1\x59\xa5\x82" |
| 14293 | "\x35\x91\x3d\x1b\xe4\x97\x9f\x92" |
| 14294 | "\x1c\x5e\x5f\x6f\x41\xd4\x62\xa1" |
| 14295 | "\x8d\x39\xfc\x42\xfb\x38\x80\xb9" |
| 14296 | "\x0a\xe3\xcc\x6a\x93\xd9\x7a\xb1" |
| 14297 | "\xe9\x69\xaf\x0a\x6b\x75\x38\xa7" |
| 14298 | "\xa1\xbf\xf7\xda\x95\x93\x4b\x78" |
| 14299 | "\x19\xf5\x94\xf9\xd2\x00\x33\x37" |
| 14300 | "\xcf\xf5\x9e\x9c\xf3\xcc\xa6\xee" |
| 14301 | "\x42\xb2\x9e\x2c\x5f\x48\x23\x26" |
| 14302 | "\x15\x25\x17\x03\x3d\xfe\x2c\xfc" |
| 14303 | "\xeb\xba\xda\xe0\x00\x05\xb6\xa6" |
| 14304 | "\x07\xb3\xe8\x36\x5b\xec\x5b\xbf" |
| 14305 | "\xd6\x5b\x00\x74\xc6\x97\xf1\x6a" |
| 14306 | "\x49\xa1\xc3\xfa\x10\x52\xb9\x14" |
| 14307 | "\xad\xb7\x73\xf8\x78\x12\xc8\x59" |
| 14308 | "\x17\x80\x4c\x57\x39\xf1\x6d\x80" |
| 14309 | "\x25\x77\x0f\x5e\x7d\xf0\xaf\x21" |
| 14310 | "\xec\xce\xb7\xc8\x02\x8a\xed\x53" |
| 14311 | "\x2c\x25\x68\x2e\x1f\x85\x5e\x67" |
| 14312 | "\xd1\x07\x7a\x3a\x89\x08\xe0\x34" |
| 14313 | "\xdc\xdb\x26\xb4\x6b\x77\xfc\x40" |
| 14314 | "\x31\x15\x72\xa0\xf0\x73\xd9\x3b" |
| 14315 | "\xd5\xdb\xfe\xfc\x8f\xa9\x44\xa2" |
| 14316 | "\x09\x9f\xc6\x33\xe5\xe2\x88\xe8" |
| 14317 | "\xf3\xf0\x1a\xf4\xce\x12\x0f\xd6" |
| 14318 | "\xf7\x36\xe6\xa4\xf4\x7a\x10\x58" |
| 14319 | "\xcc\x1f\x48\x49\x65\x47\x75\xe9" |
| 14320 | "\x28\xe1\x65\x7b\xf2\xc4\xb5\x07" |
| 14321 | "\xf2\xec\x76\xd8\x8f\x09\xf3\x16" |
| 14322 | "\xa1\x51\x89\x3b\xeb\x96\x42\xac" |
| 14323 | "\x65\xe0\x67\x63\x29\xdc\xb4\x7d" |
| 14324 | "\xf2\x41\x51\x6a\xcb\xde\x3c\xfb" |
| 14325 | "\x66\x8d\x13\xca\xe0\x59\x2a\x00" |
| 14326 | "\xc9\x53\x4c\xe6\x9e\xe2\x73\xd5" |
| 14327 | "\x67\x19\xb2\xbd\x9a\x63\xd7\x5c", |
| 14328 | .ilen = 512, |
| 14329 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14330 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14331 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14332 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14333 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14334 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14335 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14336 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14337 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14338 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14339 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14340 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14341 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14342 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14343 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14344 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14345 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14346 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14347 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14348 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14349 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14350 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14351 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14352 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14353 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14354 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14355 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14356 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14357 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14358 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14359 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14360 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 14361 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14362 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14363 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14364 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14365 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14366 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14367 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14368 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14369 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14370 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14371 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14372 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14373 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14374 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14375 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14376 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14377 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14378 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14379 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14380 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14381 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14382 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14383 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14384 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14385 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14386 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14387 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14388 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14389 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14390 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14391 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14392 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 14393 | .rlen = 512, |
| 14394 | .also_non_np = 1, |
| 14395 | .np = 3, |
| 14396 | .tap = { 512 - 20, 4, 16 }, |
| 14397 | } |
| 14398 | }; |
| 14399 | |
Eric Biggers | a24846d | 2018-02-14 10:42:19 -0800 | [diff] [blame] | 14400 | static struct cipher_testvec speck64_enc_tv_template[] = { |
| 14401 | { /* Speck64/96 */ |
| 14402 | .key = "\x00\x01\x02\x03\x08\x09\x0a\x0b" |
| 14403 | "\x10\x11\x12\x13", |
| 14404 | .klen = 12, |
| 14405 | .input = "\x65\x61\x6e\x73\x20\x46\x61\x74", |
| 14406 | .ilen = 8, |
| 14407 | .result = "\x6c\x94\x75\x41\xec\x52\x79\x9f", |
| 14408 | .rlen = 8, |
| 14409 | }, { /* Speck64/128 */ |
| 14410 | .key = "\x00\x01\x02\x03\x08\x09\x0a\x0b" |
| 14411 | "\x10\x11\x12\x13\x18\x19\x1a\x1b", |
| 14412 | .klen = 16, |
| 14413 | .input = "\x2d\x43\x75\x74\x74\x65\x72\x3b", |
| 14414 | .ilen = 8, |
| 14415 | .result = "\x8b\x02\x4e\x45\x48\xa5\x6f\x8c", |
| 14416 | .rlen = 8, |
| 14417 | }, |
| 14418 | }; |
| 14419 | |
| 14420 | static struct cipher_testvec speck64_dec_tv_template[] = { |
| 14421 | { /* Speck64/96 */ |
| 14422 | .key = "\x00\x01\x02\x03\x08\x09\x0a\x0b" |
| 14423 | "\x10\x11\x12\x13", |
| 14424 | .klen = 12, |
| 14425 | .input = "\x6c\x94\x75\x41\xec\x52\x79\x9f", |
| 14426 | .ilen = 8, |
| 14427 | .result = "\x65\x61\x6e\x73\x20\x46\x61\x74", |
| 14428 | .rlen = 8, |
| 14429 | }, { /* Speck64/128 */ |
| 14430 | .key = "\x00\x01\x02\x03\x08\x09\x0a\x0b" |
| 14431 | "\x10\x11\x12\x13\x18\x19\x1a\x1b", |
| 14432 | .klen = 16, |
| 14433 | .input = "\x8b\x02\x4e\x45\x48\xa5\x6f\x8c", |
| 14434 | .ilen = 8, |
| 14435 | .result = "\x2d\x43\x75\x74\x74\x65\x72\x3b", |
| 14436 | .rlen = 8, |
| 14437 | }, |
| 14438 | }; |
| 14439 | |
Eric Biggers | 74659dc | 2018-02-14 10:42:23 -0800 | [diff] [blame] | 14440 | /* |
| 14441 | * Speck64-XTS test vectors, taken from the AES-XTS test vectors with the result |
| 14442 | * recomputed with Speck64 as the cipher, and key lengths adjusted |
| 14443 | */ |
| 14444 | |
| 14445 | static struct cipher_testvec speck64_xts_enc_tv_template[] = { |
| 14446 | { |
| 14447 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14448 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14449 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14450 | .klen = 24, |
| 14451 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14452 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14453 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14454 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14455 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14456 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14457 | .ilen = 32, |
| 14458 | .result = "\x84\xaf\x54\x07\x19\xd4\x7c\xa6" |
| 14459 | "\xe4\xfe\xdf\xc4\x1f\x34\xc3\xc2" |
| 14460 | "\x80\xf5\x72\xe7\xcd\xf0\x99\x22" |
| 14461 | "\x35\xa7\x2f\x06\xef\xdc\x51\xaa", |
| 14462 | .rlen = 32, |
| 14463 | }, { |
| 14464 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 14465 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 14466 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 14467 | .klen = 24, |
| 14468 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 14469 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14470 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14471 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14472 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14473 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 14474 | .ilen = 32, |
| 14475 | .result = "\x12\x56\x73\xcd\x15\x87\xa8\x59" |
| 14476 | "\xcf\x84\xae\xd9\x1c\x66\xd6\x9f" |
| 14477 | "\xb3\x12\x69\x7e\x36\xeb\x52\xff" |
| 14478 | "\x62\xdd\xba\x90\xb3\xe1\xee\x99", |
| 14479 | .rlen = 32, |
| 14480 | }, { |
| 14481 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 14482 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 14483 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 14484 | .klen = 24, |
| 14485 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 14486 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14487 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14488 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14489 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14490 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 14491 | .ilen = 32, |
| 14492 | .result = "\x15\x1b\xe4\x2c\xa2\x5a\x2d\x2c" |
| 14493 | "\x27\x36\xc0\xbf\x5d\xea\x36\x37" |
| 14494 | "\x2d\x1a\x88\xbc\x66\xb5\xd0\x0b" |
| 14495 | "\xa1\xbc\x19\xb2\x0f\x3b\x75\x34", |
| 14496 | .rlen = 32, |
| 14497 | }, { |
| 14498 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 14499 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 14500 | "\x31\x41\x59\x26\x53\x58\x97\x93", |
| 14501 | .klen = 24, |
| 14502 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14503 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14504 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14505 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14506 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14507 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14508 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14509 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14510 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14511 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14512 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14513 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14514 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14515 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14516 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14517 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14518 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14519 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14520 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14521 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14522 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14523 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14524 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14525 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14526 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14527 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14528 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14529 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14530 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14531 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14532 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14533 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14534 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14535 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 14536 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14537 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14538 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14539 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14540 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14541 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14542 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14543 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14544 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14545 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14546 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14547 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14548 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14549 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14550 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14551 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14552 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14553 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14554 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14555 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14556 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14557 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14558 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14559 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14560 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14561 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14562 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14563 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14564 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14565 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14566 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14567 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 14568 | .ilen = 512, |
| 14569 | .result = "\xaf\xa1\x81\xa6\x32\xbb\x15\x8e" |
| 14570 | "\xf8\x95\x2e\xd3\xe6\xee\x7e\x09" |
| 14571 | "\x0c\x1a\xf5\x02\x97\x8b\xe3\xb3" |
| 14572 | "\x11\xc7\x39\x96\xd0\x95\xf4\x56" |
| 14573 | "\xf4\xdd\x03\x38\x01\x44\x2c\xcf" |
| 14574 | "\x88\xae\x8e\x3c\xcd\xe7\xaa\x66" |
| 14575 | "\xfe\x3d\xc6\xfb\x01\x23\x51\x43" |
| 14576 | "\xd5\xd2\x13\x86\x94\x34\xe9\x62" |
| 14577 | "\xf9\x89\xe3\xd1\x7b\xbe\xf8\xef" |
| 14578 | "\x76\x35\x04\x3f\xdb\x23\x9d\x0b" |
| 14579 | "\x85\x42\xb9\x02\xd6\xcc\xdb\x96" |
| 14580 | "\xa7\x6b\x27\xb6\xd4\x45\x8f\x7d" |
| 14581 | "\xae\xd2\x04\xd5\xda\xc1\x7e\x24" |
| 14582 | "\x8c\x73\xbe\x48\x7e\xcf\x65\x28" |
| 14583 | "\x29\xe5\xbe\x54\x30\xcb\x46\x95" |
| 14584 | "\x4f\x2e\x8a\x36\xc8\x27\xc5\xbe" |
| 14585 | "\xd0\x1a\xaf\xab\x26\xcd\x9e\x69" |
| 14586 | "\xa1\x09\x95\x71\x26\xe9\xc4\xdf" |
| 14587 | "\xe6\x31\xc3\x46\xda\xaf\x0b\x41" |
| 14588 | "\x1f\xab\xb1\x8e\xd6\xfc\x0b\xb3" |
| 14589 | "\x82\xc0\x37\x27\xfc\x91\xa7\x05" |
| 14590 | "\xfb\xc5\xdc\x2b\x74\x96\x48\x43" |
| 14591 | "\x5d\x9c\x19\x0f\x60\x63\x3a\x1f" |
| 14592 | "\x6f\xf0\x03\xbe\x4d\xfd\xc8\x4a" |
| 14593 | "\xc6\xa4\x81\x6d\xc3\x12\x2a\x5c" |
| 14594 | "\x07\xff\xf3\x72\x74\x48\xb5\x40" |
| 14595 | "\x50\xb5\xdd\x90\x43\x31\x18\x15" |
| 14596 | "\x7b\xf2\xa6\xdb\x83\xc8\x4b\x4a" |
| 14597 | "\x29\x93\x90\x8b\xda\x07\xf0\x35" |
| 14598 | "\x6d\x90\x88\x09\x4e\x83\xf5\x5b" |
| 14599 | "\x94\x12\xbb\x33\x27\x1d\x3f\x23" |
| 14600 | "\x51\xa8\x7c\x07\xa2\xae\x77\xa6" |
| 14601 | "\x50\xfd\xcc\xc0\x4f\x80\x7a\x9f" |
| 14602 | "\x66\xdd\xcd\x75\x24\x8b\x33\xf7" |
| 14603 | "\x20\xdb\x83\x9b\x4f\x11\x63\x6e" |
| 14604 | "\xcf\x37\xef\xc9\x11\x01\x5c\x45" |
| 14605 | "\x32\x99\x7c\x3c\x9e\x42\x89\xe3" |
| 14606 | "\x70\x6d\x15\x9f\xb1\xe6\xb6\x05" |
| 14607 | "\xfe\x0c\xb9\x49\x2d\x90\x6d\xcc" |
| 14608 | "\x5d\x3f\xc1\xfe\x89\x0a\x2e\x2d" |
| 14609 | "\xa0\xa8\x89\x3b\x73\x39\xa5\x94" |
| 14610 | "\x4c\xa4\xa6\xbb\xa7\x14\x46\x89" |
| 14611 | "\x10\xff\xaf\xef\xca\xdd\x4f\x80" |
| 14612 | "\xb3\xdf\x3b\xab\xd4\xe5\x5a\xc7" |
| 14613 | "\x33\xca\x00\x8b\x8b\x3f\xea\xec" |
| 14614 | "\x68\x8a\xc2\x6d\xfd\xd4\x67\x0f" |
| 14615 | "\x22\x31\xe1\x0e\xfe\x5a\x04\xd5" |
| 14616 | "\x64\xa3\xf1\x1a\x76\x28\xcc\x35" |
| 14617 | "\x36\xa7\x0a\x74\xf7\x1c\x44\x9b" |
| 14618 | "\xc7\x1b\x53\x17\x02\xea\xd1\xad" |
| 14619 | "\x13\x51\x73\xc0\xa0\xb2\x05\x32" |
| 14620 | "\xa8\xa2\x37\x2e\xe1\x7a\x3a\x19" |
| 14621 | "\x26\xb4\x6c\x62\x5d\xb3\x1a\x1d" |
| 14622 | "\x59\xda\xee\x1a\x22\x18\xda\x0d" |
| 14623 | "\x88\x0f\x55\x8b\x72\x62\xfd\xc1" |
| 14624 | "\x69\x13\xcd\x0d\x5f\xc1\x09\x52" |
| 14625 | "\xee\xd6\xe3\x84\x4d\xee\xf6\x88" |
| 14626 | "\xaf\x83\xdc\x76\xf4\xc0\x93\x3f" |
| 14627 | "\x4a\x75\x2f\xb0\x0b\x3e\xc4\x54" |
| 14628 | "\x7d\x69\x8d\x00\x62\x77\x0d\x14" |
| 14629 | "\xbe\x7c\xa6\x7d\xc5\x24\x4f\xf3" |
| 14630 | "\x50\xf7\x5f\xf4\xc2\xca\x41\x97" |
| 14631 | "\x37\xbe\x75\x74\xcd\xf0\x75\x6e" |
| 14632 | "\x25\x23\x94\xbd\xda\x8d\xb0\xd4", |
| 14633 | .rlen = 512, |
| 14634 | }, { |
| 14635 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 14636 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 14637 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 14638 | "\x99\x59\x57\x49\x66\x96\x76\x27", |
| 14639 | .klen = 32, |
| 14640 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 14641 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14642 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14643 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14644 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14645 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14646 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14647 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14648 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14649 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14650 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14651 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14652 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14653 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14654 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14655 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14656 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14657 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14658 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14659 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14660 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14661 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14662 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14663 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14664 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14665 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14666 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14667 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14668 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14669 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14670 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14671 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14672 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14673 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 14674 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14675 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14676 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14677 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14678 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14679 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14680 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14681 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14682 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14683 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14684 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14685 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14686 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14687 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14688 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14689 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14690 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14691 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14692 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14693 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14694 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14695 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14696 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14697 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14698 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14699 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14700 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14701 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14702 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14703 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14704 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14705 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 14706 | .ilen = 512, |
| 14707 | .result = "\x55\xed\x71\xd3\x02\x8e\x15\x3b" |
| 14708 | "\xc6\x71\x29\x2d\x3e\x89\x9f\x59" |
| 14709 | "\x68\x6a\xcc\x8a\x56\x97\xf3\x95" |
| 14710 | "\x4e\x51\x08\xda\x2a\xf8\x6f\x3c" |
| 14711 | "\x78\x16\xea\x80\xdb\x33\x75\x94" |
| 14712 | "\xf9\x29\xc4\x2b\x76\x75\x97\xc7" |
| 14713 | "\xf2\x98\x2c\xf9\xff\xc8\xd5\x2b" |
| 14714 | "\x18\xf1\xaf\xcf\x7c\xc5\x0b\xee" |
| 14715 | "\xad\x3c\x76\x7c\xe6\x27\xa2\x2a" |
| 14716 | "\xe4\x66\xe1\xab\xa2\x39\xfc\x7c" |
| 14717 | "\xf5\xec\x32\x74\xa3\xb8\x03\x88" |
| 14718 | "\x52\xfc\x2e\x56\x3f\xa1\xf0\x9f" |
| 14719 | "\x84\x5e\x46\xed\x20\x89\xb6\x44" |
| 14720 | "\x8d\xd0\xed\x54\x47\x16\xbe\x95" |
| 14721 | "\x8a\xb3\x6b\x72\xc4\x32\x52\x13" |
| 14722 | "\x1b\xb0\x82\xbe\xac\xf9\x70\xa6" |
| 14723 | "\x44\x18\xdd\x8c\x6e\xca\x6e\x45" |
| 14724 | "\x8f\x1e\x10\x07\x57\x25\x98\x7b" |
| 14725 | "\x17\x8c\x78\xdd\x80\xa7\xd9\xd8" |
| 14726 | "\x63\xaf\xb9\x67\x57\xfd\xbc\xdb" |
| 14727 | "\x44\xe9\xc5\x65\xd1\xc7\x3b\xff" |
| 14728 | "\x20\xa0\x80\x1a\xc3\x9a\xad\x5e" |
| 14729 | "\x5d\x3b\xd3\x07\xd9\xf5\xfd\x3d" |
| 14730 | "\x4a\x8b\xa8\xd2\x6e\x7a\x51\x65" |
| 14731 | "\x6c\x8e\x95\xe0\x45\xc9\x5f\x4a" |
| 14732 | "\x09\x3c\x3d\x71\x7f\x0c\x84\x2a" |
| 14733 | "\xc8\x48\x52\x1a\xc2\xd5\xd6\x78" |
| 14734 | "\x92\x1e\xa0\x90\x2e\xea\xf0\xf3" |
| 14735 | "\xdc\x0f\xb1\xaf\x0d\x9b\x06\x2e" |
| 14736 | "\x35\x10\x30\x82\x0d\xe7\xc5\x9b" |
| 14737 | "\xde\x44\x18\xbd\x9f\xd1\x45\xa9" |
| 14738 | "\x7b\x7a\x4a\xad\x35\x65\x27\xca" |
| 14739 | "\xb2\xc3\xd4\x9b\x71\x86\x70\xee" |
| 14740 | "\xf1\x89\x3b\x85\x4b\x5b\xaa\xaf" |
| 14741 | "\xfc\x42\xc8\x31\x59\xbe\x16\x60" |
| 14742 | "\x4f\xf9\xfa\x12\xea\xd0\xa7\x14" |
| 14743 | "\xf0\x7a\xf3\xd5\x8d\xbd\x81\xef" |
| 14744 | "\x52\x7f\x29\x51\x94\x20\x67\x3c" |
| 14745 | "\xd1\xaf\x77\x9f\x22\x5a\x4e\x63" |
| 14746 | "\xe7\xff\x73\x25\xd1\xdd\x96\x8a" |
| 14747 | "\x98\x52\x6d\xf3\xac\x3e\xf2\x18" |
| 14748 | "\x6d\xf6\x0a\x29\xa6\x34\x3d\xed" |
| 14749 | "\xe3\x27\x0d\x9d\x0a\x02\x44\x7e" |
| 14750 | "\x5a\x7e\x67\x0f\x0a\x9e\xd6\xad" |
| 14751 | "\x91\xe6\x4d\x81\x8c\x5c\x59\xaa" |
| 14752 | "\xfb\xeb\x56\x53\xd2\x7d\x4c\x81" |
| 14753 | "\x65\x53\x0f\x41\x11\xbd\x98\x99" |
| 14754 | "\xf9\xc6\xfa\x51\x2e\xa3\xdd\x8d" |
| 14755 | "\x84\x98\xf9\x34\xed\x33\x2a\x1f" |
| 14756 | "\x82\xed\xc1\x73\x98\xd3\x02\xdc" |
| 14757 | "\xe6\xc2\x33\x1d\xa2\xb4\xca\x76" |
| 14758 | "\x63\x51\x34\x9d\x96\x12\xae\xce" |
| 14759 | "\x83\xc9\x76\x5e\xa4\x1b\x53\x37" |
| 14760 | "\x17\xd5\xc0\x80\x1d\x62\xf8\x3d" |
| 14761 | "\x54\x27\x74\xbb\x10\x86\x57\x46" |
| 14762 | "\x68\xe1\xed\x14\xe7\x9d\xfc\x84" |
| 14763 | "\x47\xbc\xc2\xf8\x19\x4b\x99\xcf" |
| 14764 | "\x7a\xe9\xc4\xb8\x8c\x82\x72\x4d" |
| 14765 | "\x7b\x4f\x38\x55\x36\x71\x64\xc1" |
| 14766 | "\xfc\x5c\x75\x52\x33\x02\x18\xf8" |
| 14767 | "\x17\xe1\x2b\xc2\x43\x39\xbd\x76" |
| 14768 | "\x9b\x63\x76\x32\x2f\x19\x72\x10" |
| 14769 | "\x9f\x21\x0c\xf1\x66\x50\x7f\xa5" |
| 14770 | "\x0d\x1f\x46\xe0\xba\xd3\x2f\x3c", |
| 14771 | .rlen = 512, |
| 14772 | .also_non_np = 1, |
| 14773 | .np = 3, |
| 14774 | .tap = { 512 - 20, 4, 16 }, |
| 14775 | } |
| 14776 | }; |
| 14777 | |
| 14778 | static struct cipher_testvec speck64_xts_dec_tv_template[] = { |
| 14779 | { |
| 14780 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14781 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14782 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14783 | .klen = 24, |
| 14784 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14785 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14786 | .input = "\x84\xaf\x54\x07\x19\xd4\x7c\xa6" |
| 14787 | "\xe4\xfe\xdf\xc4\x1f\x34\xc3\xc2" |
| 14788 | "\x80\xf5\x72\xe7\xcd\xf0\x99\x22" |
| 14789 | "\x35\xa7\x2f\x06\xef\xdc\x51\xaa", |
| 14790 | .ilen = 32, |
| 14791 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14792 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14793 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14794 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14795 | .rlen = 32, |
| 14796 | }, { |
| 14797 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 14798 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 14799 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 14800 | .klen = 24, |
| 14801 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 14802 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14803 | .input = "\x12\x56\x73\xcd\x15\x87\xa8\x59" |
| 14804 | "\xcf\x84\xae\xd9\x1c\x66\xd6\x9f" |
| 14805 | "\xb3\x12\x69\x7e\x36\xeb\x52\xff" |
| 14806 | "\x62\xdd\xba\x90\xb3\xe1\xee\x99", |
| 14807 | .ilen = 32, |
| 14808 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14809 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14810 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14811 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 14812 | .rlen = 32, |
| 14813 | }, { |
| 14814 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 14815 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 14816 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 14817 | .klen = 24, |
| 14818 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 14819 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14820 | .input = "\x15\x1b\xe4\x2c\xa2\x5a\x2d\x2c" |
| 14821 | "\x27\x36\xc0\xbf\x5d\xea\x36\x37" |
| 14822 | "\x2d\x1a\x88\xbc\x66\xb5\xd0\x0b" |
| 14823 | "\xa1\xbc\x19\xb2\x0f\x3b\x75\x34", |
| 14824 | .ilen = 32, |
| 14825 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14826 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14827 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 14828 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 14829 | .rlen = 32, |
| 14830 | }, { |
| 14831 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 14832 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 14833 | "\x31\x41\x59\x26\x53\x58\x97\x93", |
| 14834 | .klen = 24, |
| 14835 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14836 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14837 | .input = "\xaf\xa1\x81\xa6\x32\xbb\x15\x8e" |
| 14838 | "\xf8\x95\x2e\xd3\xe6\xee\x7e\x09" |
| 14839 | "\x0c\x1a\xf5\x02\x97\x8b\xe3\xb3" |
| 14840 | "\x11\xc7\x39\x96\xd0\x95\xf4\x56" |
| 14841 | "\xf4\xdd\x03\x38\x01\x44\x2c\xcf" |
| 14842 | "\x88\xae\x8e\x3c\xcd\xe7\xaa\x66" |
| 14843 | "\xfe\x3d\xc6\xfb\x01\x23\x51\x43" |
| 14844 | "\xd5\xd2\x13\x86\x94\x34\xe9\x62" |
| 14845 | "\xf9\x89\xe3\xd1\x7b\xbe\xf8\xef" |
| 14846 | "\x76\x35\x04\x3f\xdb\x23\x9d\x0b" |
| 14847 | "\x85\x42\xb9\x02\xd6\xcc\xdb\x96" |
| 14848 | "\xa7\x6b\x27\xb6\xd4\x45\x8f\x7d" |
| 14849 | "\xae\xd2\x04\xd5\xda\xc1\x7e\x24" |
| 14850 | "\x8c\x73\xbe\x48\x7e\xcf\x65\x28" |
| 14851 | "\x29\xe5\xbe\x54\x30\xcb\x46\x95" |
| 14852 | "\x4f\x2e\x8a\x36\xc8\x27\xc5\xbe" |
| 14853 | "\xd0\x1a\xaf\xab\x26\xcd\x9e\x69" |
| 14854 | "\xa1\x09\x95\x71\x26\xe9\xc4\xdf" |
| 14855 | "\xe6\x31\xc3\x46\xda\xaf\x0b\x41" |
| 14856 | "\x1f\xab\xb1\x8e\xd6\xfc\x0b\xb3" |
| 14857 | "\x82\xc0\x37\x27\xfc\x91\xa7\x05" |
| 14858 | "\xfb\xc5\xdc\x2b\x74\x96\x48\x43" |
| 14859 | "\x5d\x9c\x19\x0f\x60\x63\x3a\x1f" |
| 14860 | "\x6f\xf0\x03\xbe\x4d\xfd\xc8\x4a" |
| 14861 | "\xc6\xa4\x81\x6d\xc3\x12\x2a\x5c" |
| 14862 | "\x07\xff\xf3\x72\x74\x48\xb5\x40" |
| 14863 | "\x50\xb5\xdd\x90\x43\x31\x18\x15" |
| 14864 | "\x7b\xf2\xa6\xdb\x83\xc8\x4b\x4a" |
| 14865 | "\x29\x93\x90\x8b\xda\x07\xf0\x35" |
| 14866 | "\x6d\x90\x88\x09\x4e\x83\xf5\x5b" |
| 14867 | "\x94\x12\xbb\x33\x27\x1d\x3f\x23" |
| 14868 | "\x51\xa8\x7c\x07\xa2\xae\x77\xa6" |
| 14869 | "\x50\xfd\xcc\xc0\x4f\x80\x7a\x9f" |
| 14870 | "\x66\xdd\xcd\x75\x24\x8b\x33\xf7" |
| 14871 | "\x20\xdb\x83\x9b\x4f\x11\x63\x6e" |
| 14872 | "\xcf\x37\xef\xc9\x11\x01\x5c\x45" |
| 14873 | "\x32\x99\x7c\x3c\x9e\x42\x89\xe3" |
| 14874 | "\x70\x6d\x15\x9f\xb1\xe6\xb6\x05" |
| 14875 | "\xfe\x0c\xb9\x49\x2d\x90\x6d\xcc" |
| 14876 | "\x5d\x3f\xc1\xfe\x89\x0a\x2e\x2d" |
| 14877 | "\xa0\xa8\x89\x3b\x73\x39\xa5\x94" |
| 14878 | "\x4c\xa4\xa6\xbb\xa7\x14\x46\x89" |
| 14879 | "\x10\xff\xaf\xef\xca\xdd\x4f\x80" |
| 14880 | "\xb3\xdf\x3b\xab\xd4\xe5\x5a\xc7" |
| 14881 | "\x33\xca\x00\x8b\x8b\x3f\xea\xec" |
| 14882 | "\x68\x8a\xc2\x6d\xfd\xd4\x67\x0f" |
| 14883 | "\x22\x31\xe1\x0e\xfe\x5a\x04\xd5" |
| 14884 | "\x64\xa3\xf1\x1a\x76\x28\xcc\x35" |
| 14885 | "\x36\xa7\x0a\x74\xf7\x1c\x44\x9b" |
| 14886 | "\xc7\x1b\x53\x17\x02\xea\xd1\xad" |
| 14887 | "\x13\x51\x73\xc0\xa0\xb2\x05\x32" |
| 14888 | "\xa8\xa2\x37\x2e\xe1\x7a\x3a\x19" |
| 14889 | "\x26\xb4\x6c\x62\x5d\xb3\x1a\x1d" |
| 14890 | "\x59\xda\xee\x1a\x22\x18\xda\x0d" |
| 14891 | "\x88\x0f\x55\x8b\x72\x62\xfd\xc1" |
| 14892 | "\x69\x13\xcd\x0d\x5f\xc1\x09\x52" |
| 14893 | "\xee\xd6\xe3\x84\x4d\xee\xf6\x88" |
| 14894 | "\xaf\x83\xdc\x76\xf4\xc0\x93\x3f" |
| 14895 | "\x4a\x75\x2f\xb0\x0b\x3e\xc4\x54" |
| 14896 | "\x7d\x69\x8d\x00\x62\x77\x0d\x14" |
| 14897 | "\xbe\x7c\xa6\x7d\xc5\x24\x4f\xf3" |
| 14898 | "\x50\xf7\x5f\xf4\xc2\xca\x41\x97" |
| 14899 | "\x37\xbe\x75\x74\xcd\xf0\x75\x6e" |
| 14900 | "\x25\x23\x94\xbd\xda\x8d\xb0\xd4", |
| 14901 | .ilen = 512, |
| 14902 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14903 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14904 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14905 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14906 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14907 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14908 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14909 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14910 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14911 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14912 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14913 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14914 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14915 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14916 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14917 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14918 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14919 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14920 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14921 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14922 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14923 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14924 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14925 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14926 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14927 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14928 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14929 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14930 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14931 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14932 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14933 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 14934 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14935 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14936 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14937 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14938 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14939 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14940 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14941 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14942 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14943 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14944 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14945 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14946 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14947 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14948 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14949 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14950 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14951 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14952 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14953 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14954 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14955 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14956 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14957 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14958 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14959 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14960 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14961 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14962 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14963 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14964 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14965 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 14966 | .rlen = 512, |
| 14967 | }, { |
| 14968 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 14969 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 14970 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 14971 | "\x99\x59\x57\x49\x66\x96\x76\x27", |
| 14972 | .klen = 32, |
| 14973 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 14974 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14975 | .input = "\x55\xed\x71\xd3\x02\x8e\x15\x3b" |
| 14976 | "\xc6\x71\x29\x2d\x3e\x89\x9f\x59" |
| 14977 | "\x68\x6a\xcc\x8a\x56\x97\xf3\x95" |
| 14978 | "\x4e\x51\x08\xda\x2a\xf8\x6f\x3c" |
| 14979 | "\x78\x16\xea\x80\xdb\x33\x75\x94" |
| 14980 | "\xf9\x29\xc4\x2b\x76\x75\x97\xc7" |
| 14981 | "\xf2\x98\x2c\xf9\xff\xc8\xd5\x2b" |
| 14982 | "\x18\xf1\xaf\xcf\x7c\xc5\x0b\xee" |
| 14983 | "\xad\x3c\x76\x7c\xe6\x27\xa2\x2a" |
| 14984 | "\xe4\x66\xe1\xab\xa2\x39\xfc\x7c" |
| 14985 | "\xf5\xec\x32\x74\xa3\xb8\x03\x88" |
| 14986 | "\x52\xfc\x2e\x56\x3f\xa1\xf0\x9f" |
| 14987 | "\x84\x5e\x46\xed\x20\x89\xb6\x44" |
| 14988 | "\x8d\xd0\xed\x54\x47\x16\xbe\x95" |
| 14989 | "\x8a\xb3\x6b\x72\xc4\x32\x52\x13" |
| 14990 | "\x1b\xb0\x82\xbe\xac\xf9\x70\xa6" |
| 14991 | "\x44\x18\xdd\x8c\x6e\xca\x6e\x45" |
| 14992 | "\x8f\x1e\x10\x07\x57\x25\x98\x7b" |
| 14993 | "\x17\x8c\x78\xdd\x80\xa7\xd9\xd8" |
| 14994 | "\x63\xaf\xb9\x67\x57\xfd\xbc\xdb" |
| 14995 | "\x44\xe9\xc5\x65\xd1\xc7\x3b\xff" |
| 14996 | "\x20\xa0\x80\x1a\xc3\x9a\xad\x5e" |
| 14997 | "\x5d\x3b\xd3\x07\xd9\xf5\xfd\x3d" |
| 14998 | "\x4a\x8b\xa8\xd2\x6e\x7a\x51\x65" |
| 14999 | "\x6c\x8e\x95\xe0\x45\xc9\x5f\x4a" |
| 15000 | "\x09\x3c\x3d\x71\x7f\x0c\x84\x2a" |
| 15001 | "\xc8\x48\x52\x1a\xc2\xd5\xd6\x78" |
| 15002 | "\x92\x1e\xa0\x90\x2e\xea\xf0\xf3" |
| 15003 | "\xdc\x0f\xb1\xaf\x0d\x9b\x06\x2e" |
| 15004 | "\x35\x10\x30\x82\x0d\xe7\xc5\x9b" |
| 15005 | "\xde\x44\x18\xbd\x9f\xd1\x45\xa9" |
| 15006 | "\x7b\x7a\x4a\xad\x35\x65\x27\xca" |
| 15007 | "\xb2\xc3\xd4\x9b\x71\x86\x70\xee" |
| 15008 | "\xf1\x89\x3b\x85\x4b\x5b\xaa\xaf" |
| 15009 | "\xfc\x42\xc8\x31\x59\xbe\x16\x60" |
| 15010 | "\x4f\xf9\xfa\x12\xea\xd0\xa7\x14" |
| 15011 | "\xf0\x7a\xf3\xd5\x8d\xbd\x81\xef" |
| 15012 | "\x52\x7f\x29\x51\x94\x20\x67\x3c" |
| 15013 | "\xd1\xaf\x77\x9f\x22\x5a\x4e\x63" |
| 15014 | "\xe7\xff\x73\x25\xd1\xdd\x96\x8a" |
| 15015 | "\x98\x52\x6d\xf3\xac\x3e\xf2\x18" |
| 15016 | "\x6d\xf6\x0a\x29\xa6\x34\x3d\xed" |
| 15017 | "\xe3\x27\x0d\x9d\x0a\x02\x44\x7e" |
| 15018 | "\x5a\x7e\x67\x0f\x0a\x9e\xd6\xad" |
| 15019 | "\x91\xe6\x4d\x81\x8c\x5c\x59\xaa" |
| 15020 | "\xfb\xeb\x56\x53\xd2\x7d\x4c\x81" |
| 15021 | "\x65\x53\x0f\x41\x11\xbd\x98\x99" |
| 15022 | "\xf9\xc6\xfa\x51\x2e\xa3\xdd\x8d" |
| 15023 | "\x84\x98\xf9\x34\xed\x33\x2a\x1f" |
| 15024 | "\x82\xed\xc1\x73\x98\xd3\x02\xdc" |
| 15025 | "\xe6\xc2\x33\x1d\xa2\xb4\xca\x76" |
| 15026 | "\x63\x51\x34\x9d\x96\x12\xae\xce" |
| 15027 | "\x83\xc9\x76\x5e\xa4\x1b\x53\x37" |
| 15028 | "\x17\xd5\xc0\x80\x1d\x62\xf8\x3d" |
| 15029 | "\x54\x27\x74\xbb\x10\x86\x57\x46" |
| 15030 | "\x68\xe1\xed\x14\xe7\x9d\xfc\x84" |
| 15031 | "\x47\xbc\xc2\xf8\x19\x4b\x99\xcf" |
| 15032 | "\x7a\xe9\xc4\xb8\x8c\x82\x72\x4d" |
| 15033 | "\x7b\x4f\x38\x55\x36\x71\x64\xc1" |
| 15034 | "\xfc\x5c\x75\x52\x33\x02\x18\xf8" |
| 15035 | "\x17\xe1\x2b\xc2\x43\x39\xbd\x76" |
| 15036 | "\x9b\x63\x76\x32\x2f\x19\x72\x10" |
| 15037 | "\x9f\x21\x0c\xf1\x66\x50\x7f\xa5" |
| 15038 | "\x0d\x1f\x46\xe0\xba\xd3\x2f\x3c", |
| 15039 | .ilen = 512, |
| 15040 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15041 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15042 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15043 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15044 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15045 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15046 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15047 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15048 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15049 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15050 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15051 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15052 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 15053 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 15054 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 15055 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 15056 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 15057 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 15058 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 15059 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 15060 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15061 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15062 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15063 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15064 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15065 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15066 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15067 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 15068 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 15069 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 15070 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 15071 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 15072 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15073 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15074 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15075 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15076 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15077 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15078 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15079 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15080 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15081 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15082 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15083 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15084 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 15085 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 15086 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 15087 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 15088 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 15089 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 15090 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 15091 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 15092 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15093 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15094 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15095 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15096 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15097 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15098 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15099 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 15100 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 15101 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 15102 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 15103 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 15104 | .rlen = 512, |
| 15105 | .also_non_np = 1, |
| 15106 | .np = 3, |
| 15107 | .tap = { 512 - 20, 4, 16 }, |
| 15108 | } |
| 15109 | }; |
| 15110 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 15111 | /* Cast6 test vectors from RFC 2612 */ |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15112 | #define CAST6_ENC_TEST_VECTORS 4 |
| 15113 | #define CAST6_DEC_TEST_VECTORS 4 |
| 15114 | #define CAST6_CBC_ENC_TEST_VECTORS 1 |
| 15115 | #define CAST6_CBC_DEC_TEST_VECTORS 1 |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 15116 | #define CAST6_CTR_ENC_TEST_VECTORS 2 |
| 15117 | #define CAST6_CTR_DEC_TEST_VECTORS 2 |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15118 | #define CAST6_LRW_ENC_TEST_VECTORS 1 |
| 15119 | #define CAST6_LRW_DEC_TEST_VECTORS 1 |
| 15120 | #define CAST6_XTS_ENC_TEST_VECTORS 1 |
| 15121 | #define CAST6_XTS_DEC_TEST_VECTORS 1 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 15122 | |
| 15123 | static struct cipher_testvec cast6_enc_tv_template[] = { |
| 15124 | { |
| 15125 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 15126 | "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", |
| 15127 | .klen = 16, |
| 15128 | .input = zeroed_string, |
| 15129 | .ilen = 16, |
| 15130 | .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" |
| 15131 | "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", |
| 15132 | .rlen = 16, |
| 15133 | }, { |
| 15134 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 15135 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 15136 | "\xba\xc7\x7a\x77\x17\x94\x28\x63", |
| 15137 | .klen = 24, |
| 15138 | .input = zeroed_string, |
| 15139 | .ilen = 16, |
| 15140 | .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" |
| 15141 | "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", |
| 15142 | .rlen = 16, |
| 15143 | }, { |
| 15144 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 15145 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 15146 | "\x8d\x7c\x47\xce\x26\x49\x08\x46" |
| 15147 | "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", |
| 15148 | .klen = 32, |
| 15149 | .input = zeroed_string, |
| 15150 | .ilen = 16, |
| 15151 | .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" |
| 15152 | "\xc9\x87\x01\x36\x55\x33\x17\xfa", |
| 15153 | .rlen = 16, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15154 | }, { /* Generated from TF test vectors */ |
| 15155 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 15156 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 15157 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 15158 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 15159 | .klen = 32, |
| 15160 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 15161 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 15162 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 15163 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 15164 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 15165 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 15166 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 15167 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 15168 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 15169 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 15170 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 15171 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 15172 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 15173 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 15174 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 15175 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 15176 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 15177 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 15178 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 15179 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 15180 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 15181 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 15182 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 15183 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 15184 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 15185 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 15186 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 15187 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 15188 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 15189 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 15190 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 15191 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 15192 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 15193 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 15194 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 15195 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 15196 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 15197 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 15198 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 15199 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 15200 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 15201 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 15202 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 15203 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 15204 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 15205 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 15206 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 15207 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 15208 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 15209 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 15210 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 15211 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 15212 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 15213 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 15214 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 15215 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 15216 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 15217 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 15218 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 15219 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 15220 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 15221 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 15222 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 15223 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 15224 | .ilen = 496, |
| 15225 | .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54" |
| 15226 | "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6" |
| 15227 | "\xB6\xB9\xC5\xA4\x91\x55\x14\x97" |
| 15228 | "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA" |
| 15229 | "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE" |
| 15230 | "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C" |
| 15231 | "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C" |
| 15232 | "\xD0\x6A\x99\x10\x72\xF8\x47\x62" |
| 15233 | "\x81\x42\xF8\xD8\xF5\xBB\x94\x08" |
| 15234 | "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E" |
| 15235 | "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58" |
| 15236 | "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12" |
| 15237 | "\x5A\x72\x85\x47\x8B\xEC\x9F\x26" |
| 15238 | "\x84\xB6\xED\x10\x33\x63\x9B\x5F" |
| 15239 | "\x4D\x53\xEE\x94\x45\x8B\x60\x58" |
| 15240 | "\x86\x20\xF9\x1E\x82\x08\x3E\x58" |
| 15241 | "\x60\x1B\x34\x19\x02\xBE\x4E\x09" |
| 15242 | "\xBB\x7C\x15\xCC\x60\x27\x55\x7A" |
| 15243 | "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3" |
| 15244 | "\xF1\xDD\xA7\x07\xA3\x12\x85\x28" |
| 15245 | "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A" |
| 15246 | "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43" |
| 15247 | "\x92\xE4\x7C\x26\x69\x4D\x83\x68" |
| 15248 | "\x14\x96\x42\x47\xBD\xA9\xE4\x8A" |
| 15249 | "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E" |
| 15250 | "\x91\x51\xB5\x36\x08\xDE\x1C\x06" |
| 15251 | "\x03\xBD\xDE\x81\x26\xF7\x99\xC2" |
| 15252 | "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF" |
| 15253 | "\xC1\xF5\x27\x05\xB8\x02\x57\x72" |
| 15254 | "\xE6\x42\x13\x0B\xC6\x47\x05\x74" |
| 15255 | "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9" |
| 15256 | "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C" |
| 15257 | "\x98\x82\x67\x67\xB4\xD7\xD3\x43" |
| 15258 | "\x23\x08\x02\xB7\x9B\x99\x05\xFB" |
| 15259 | "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6" |
| 15260 | "\x2E\x49\x58\xD0\xA8\x57\x29\x7F" |
| 15261 | "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67" |
| 15262 | "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D" |
| 15263 | "\x17\xE2\x58\x2B\x88\x0D\x68\x62" |
| 15264 | "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62" |
| 15265 | "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08" |
| 15266 | "\xEB\x84\x1D\x25\xA7\x38\x94\x06" |
| 15267 | "\x93\x9D\xF8\xFE\x88\x71\xE7\x84" |
| 15268 | "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29" |
| 15269 | "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB" |
| 15270 | "\x8E\x75\x3D\x73\xEB\x6A\xED\x29" |
| 15271 | "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA" |
| 15272 | "\x41\xE2\x10\x4C\x01\x8B\x69\x2B" |
| 15273 | "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B" |
| 15274 | "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6" |
| 15275 | "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06" |
| 15276 | "\x59\x28\x1D\x86\x43\x04\x5D\x3B" |
| 15277 | "\x99\x4C\x04\x5A\x21\x17\x8B\x76" |
| 15278 | "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3" |
| 15279 | "\x65\xA2\x58\x2A\xC5\x66\x24\xBF" |
| 15280 | "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8" |
| 15281 | "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9" |
| 15282 | "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E" |
| 15283 | "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1" |
| 15284 | "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C" |
| 15285 | "\x84\x52\x6D\x68\xDE\xC6\x64\xB2" |
| 15286 | "\x11\x74\x93\x57\xB4\x7E\xC6\x00", |
| 15287 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 15288 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 15289 | .np = 3, |
| 15290 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 15291 | }, |
| 15292 | }; |
| 15293 | |
| 15294 | static struct cipher_testvec cast6_dec_tv_template[] = { |
| 15295 | { |
| 15296 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 15297 | "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", |
| 15298 | .klen = 16, |
| 15299 | .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" |
| 15300 | "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", |
| 15301 | .ilen = 16, |
| 15302 | .result = zeroed_string, |
| 15303 | .rlen = 16, |
| 15304 | }, { |
| 15305 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 15306 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 15307 | "\xba\xc7\x7a\x77\x17\x94\x28\x63", |
| 15308 | .klen = 24, |
| 15309 | .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" |
| 15310 | "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", |
| 15311 | .ilen = 16, |
| 15312 | .result = zeroed_string, |
| 15313 | .rlen = 16, |
| 15314 | }, { |
| 15315 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 15316 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 15317 | "\x8d\x7c\x47\xce\x26\x49\x08\x46" |
| 15318 | "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", |
| 15319 | .klen = 32, |
| 15320 | .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" |
| 15321 | "\xc9\x87\x01\x36\x55\x33\x17\xfa", |
| 15322 | .ilen = 16, |
| 15323 | .result = zeroed_string, |
| 15324 | .rlen = 16, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15325 | }, { /* Generated from TF test vectors */ |
| 15326 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 15327 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 15328 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 15329 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 15330 | .klen = 32, |
| 15331 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 15332 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 15333 | .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54" |
| 15334 | "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6" |
| 15335 | "\xB6\xB9\xC5\xA4\x91\x55\x14\x97" |
| 15336 | "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA" |
| 15337 | "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE" |
| 15338 | "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C" |
| 15339 | "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C" |
| 15340 | "\xD0\x6A\x99\x10\x72\xF8\x47\x62" |
| 15341 | "\x81\x42\xF8\xD8\xF5\xBB\x94\x08" |
| 15342 | "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E" |
| 15343 | "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58" |
| 15344 | "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12" |
| 15345 | "\x5A\x72\x85\x47\x8B\xEC\x9F\x26" |
| 15346 | "\x84\xB6\xED\x10\x33\x63\x9B\x5F" |
| 15347 | "\x4D\x53\xEE\x94\x45\x8B\x60\x58" |
| 15348 | "\x86\x20\xF9\x1E\x82\x08\x3E\x58" |
| 15349 | "\x60\x1B\x34\x19\x02\xBE\x4E\x09" |
| 15350 | "\xBB\x7C\x15\xCC\x60\x27\x55\x7A" |
| 15351 | "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3" |
| 15352 | "\xF1\xDD\xA7\x07\xA3\x12\x85\x28" |
| 15353 | "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A" |
| 15354 | "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43" |
| 15355 | "\x92\xE4\x7C\x26\x69\x4D\x83\x68" |
| 15356 | "\x14\x96\x42\x47\xBD\xA9\xE4\x8A" |
| 15357 | "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E" |
| 15358 | "\x91\x51\xB5\x36\x08\xDE\x1C\x06" |
| 15359 | "\x03\xBD\xDE\x81\x26\xF7\x99\xC2" |
| 15360 | "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF" |
| 15361 | "\xC1\xF5\x27\x05\xB8\x02\x57\x72" |
| 15362 | "\xE6\x42\x13\x0B\xC6\x47\x05\x74" |
| 15363 | "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9" |
| 15364 | "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C" |
| 15365 | "\x98\x82\x67\x67\xB4\xD7\xD3\x43" |
| 15366 | "\x23\x08\x02\xB7\x9B\x99\x05\xFB" |
| 15367 | "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6" |
| 15368 | "\x2E\x49\x58\xD0\xA8\x57\x29\x7F" |
| 15369 | "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67" |
| 15370 | "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D" |
| 15371 | "\x17\xE2\x58\x2B\x88\x0D\x68\x62" |
| 15372 | "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62" |
| 15373 | "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08" |
| 15374 | "\xEB\x84\x1D\x25\xA7\x38\x94\x06" |
| 15375 | "\x93\x9D\xF8\xFE\x88\x71\xE7\x84" |
| 15376 | "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29" |
| 15377 | "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB" |
| 15378 | "\x8E\x75\x3D\x73\xEB\x6A\xED\x29" |
| 15379 | "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA" |
| 15380 | "\x41\xE2\x10\x4C\x01\x8B\x69\x2B" |
| 15381 | "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B" |
| 15382 | "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6" |
| 15383 | "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06" |
| 15384 | "\x59\x28\x1D\x86\x43\x04\x5D\x3B" |
| 15385 | "\x99\x4C\x04\x5A\x21\x17\x8B\x76" |
| 15386 | "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3" |
| 15387 | "\x65\xA2\x58\x2A\xC5\x66\x24\xBF" |
| 15388 | "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8" |
| 15389 | "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9" |
| 15390 | "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E" |
| 15391 | "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1" |
| 15392 | "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C" |
| 15393 | "\x84\x52\x6D\x68\xDE\xC6\x64\xB2" |
| 15394 | "\x11\x74\x93\x57\xB4\x7E\xC6\x00", |
| 15395 | .ilen = 496, |
| 15396 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 15397 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 15398 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 15399 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 15400 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 15401 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 15402 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 15403 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 15404 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 15405 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 15406 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 15407 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 15408 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 15409 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 15410 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 15411 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 15412 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 15413 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 15414 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 15415 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 15416 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 15417 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 15418 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 15419 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 15420 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 15421 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 15422 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 15423 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 15424 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 15425 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 15426 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 15427 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 15428 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 15429 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 15430 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 15431 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 15432 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 15433 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 15434 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 15435 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 15436 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 15437 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 15438 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 15439 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 15440 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 15441 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 15442 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 15443 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 15444 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 15445 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 15446 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 15447 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 15448 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 15449 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 15450 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 15451 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 15452 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 15453 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 15454 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 15455 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 15456 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 15457 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 15458 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 15459 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 15460 | .np = 3, |
| 15461 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15462 | }, |
| 15463 | }; |
| 15464 | |
| 15465 | static struct cipher_testvec cast6_cbc_enc_tv_template[] = { |
| 15466 | { /* Generated from TF test vectors */ |
| 15467 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 15468 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 15469 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 15470 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 15471 | .klen = 32, |
| 15472 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 15473 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 15474 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 15475 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 15476 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 15477 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 15478 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 15479 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 15480 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 15481 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 15482 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 15483 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 15484 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 15485 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 15486 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 15487 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 15488 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 15489 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 15490 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 15491 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 15492 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 15493 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 15494 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 15495 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 15496 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 15497 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 15498 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 15499 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 15500 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 15501 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 15502 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 15503 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 15504 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 15505 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 15506 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 15507 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 15508 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 15509 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 15510 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 15511 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 15512 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 15513 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 15514 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 15515 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 15516 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 15517 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 15518 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 15519 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 15520 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 15521 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 15522 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 15523 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 15524 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 15525 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 15526 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 15527 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 15528 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 15529 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 15530 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 15531 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 15532 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 15533 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 15534 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 15535 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 15536 | .ilen = 496, |
| 15537 | .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2" |
| 15538 | "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F" |
| 15539 | "\xA0\x73\xB3\x70\xC3\x68\x64\x70" |
| 15540 | "\xAD\x33\x02\xFB\x88\x74\xAA\x78" |
| 15541 | "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F" |
| 15542 | "\x7E\x6F\xDF\x05\x13\x76\xA6\x72" |
| 15543 | "\xB7\x13\x09\x0F\x7D\x38\xDF\x25" |
| 15544 | "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0" |
| 15545 | "\x57\x95\xE1\x21\x26\x10\x9A\x21" |
| 15546 | "\xA1\x8A\x51\x05\xD1\xB1\x78\x35" |
| 15547 | "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF" |
| 15548 | "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B" |
| 15549 | "\x23\x16\x47\x72\x81\x13\x3A\x72" |
| 15550 | "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8" |
| 15551 | "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E" |
| 15552 | "\xA3\x63\x98\x7D\x35\xE4\xD9\x83" |
| 15553 | "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3" |
| 15554 | "\x41\x1A\x93\x8D\x76\x31\x9F\xF2" |
| 15555 | "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9" |
| 15556 | "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1" |
| 15557 | "\x21\x9C\x1A\xCA\x65\xDE\x44\x03" |
| 15558 | "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37" |
| 15559 | "\x53\x50\x23\xA4\x81\x6E\xDA\xFB" |
| 15560 | "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8" |
| 15561 | "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7" |
| 15562 | "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3" |
| 15563 | "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2" |
| 15564 | "\xC1\x03\xE6\x5A\x37\xD8\x64\x18" |
| 15565 | "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB" |
| 15566 | "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4" |
| 15567 | "\x89\x05\x81\x6E\x71\x4F\xC3\x28" |
| 15568 | "\x10\xC1\x62\xC4\x41\xE9\xD2\x39" |
| 15569 | "\xF3\x22\x39\x12\x2C\xC2\x95\x2D" |
| 15570 | "\xBF\x93\x58\x4B\x04\xD1\x8D\x57" |
| 15571 | "\xAE\xEB\x60\x03\x56\x35\xAD\x5A" |
| 15572 | "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8" |
| 15573 | "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E" |
| 15574 | "\x07\x09\x82\xBA\xF0\x80\x8A\xD0" |
| 15575 | "\xA0\x3F\x6A\xE9\x24\x87\x19\x65" |
| 15576 | "\x73\x3F\x12\x91\x47\x54\xBA\x39" |
| 15577 | "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF" |
| 15578 | "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76" |
| 15579 | "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47" |
| 15580 | "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1" |
| 15581 | "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12" |
| 15582 | "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D" |
| 15583 | "\x23\xFA\x7D\x77\xB8\x46\x75\xFE" |
| 15584 | "\x4F\x10\xD3\x09\x60\xA1\x36\x96" |
| 15585 | "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14" |
| 15586 | "\x80\x21\x83\x58\x3C\x76\xFD\x28" |
| 15587 | "\x1D\xF9\x93\x13\xD7\x0E\x62\x14" |
| 15588 | "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C" |
| 15589 | "\x68\x93\x44\x70\xDF\xCF\x4A\x51" |
| 15590 | "\x0B\x81\x29\x41\xE5\x62\x4D\x36" |
| 15591 | "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09" |
| 15592 | "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6" |
| 15593 | "\x01\x91\xB4\x27\xDA\x59\xD6\x17" |
| 15594 | "\x56\x4D\x82\x62\x37\xA3\x48\x01" |
| 15595 | "\x99\x91\x77\xB2\x08\x6B\x2C\x37" |
| 15596 | "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3" |
| 15597 | "\x4D\x59\x7D\xC5\x28\x69\xFA\x92" |
| 15598 | "\x22\x46\x89\x2D\x0F\x2B\x08\x24", |
| 15599 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 15600 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 15601 | .np = 3, |
| 15602 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15603 | }, |
| 15604 | }; |
| 15605 | |
| 15606 | static struct cipher_testvec cast6_cbc_dec_tv_template[] = { |
| 15607 | { /* Generated from TF test vectors */ |
| 15608 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 15609 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 15610 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 15611 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 15612 | .klen = 32, |
| 15613 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 15614 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 15615 | .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2" |
| 15616 | "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F" |
| 15617 | "\xA0\x73\xB3\x70\xC3\x68\x64\x70" |
| 15618 | "\xAD\x33\x02\xFB\x88\x74\xAA\x78" |
| 15619 | "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F" |
| 15620 | "\x7E\x6F\xDF\x05\x13\x76\xA6\x72" |
| 15621 | "\xB7\x13\x09\x0F\x7D\x38\xDF\x25" |
| 15622 | "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0" |
| 15623 | "\x57\x95\xE1\x21\x26\x10\x9A\x21" |
| 15624 | "\xA1\x8A\x51\x05\xD1\xB1\x78\x35" |
| 15625 | "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF" |
| 15626 | "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B" |
| 15627 | "\x23\x16\x47\x72\x81\x13\x3A\x72" |
| 15628 | "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8" |
| 15629 | "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E" |
| 15630 | "\xA3\x63\x98\x7D\x35\xE4\xD9\x83" |
| 15631 | "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3" |
| 15632 | "\x41\x1A\x93\x8D\x76\x31\x9F\xF2" |
| 15633 | "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9" |
| 15634 | "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1" |
| 15635 | "\x21\x9C\x1A\xCA\x65\xDE\x44\x03" |
| 15636 | "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37" |
| 15637 | "\x53\x50\x23\xA4\x81\x6E\xDA\xFB" |
| 15638 | "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8" |
| 15639 | "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7" |
| 15640 | "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3" |
| 15641 | "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2" |
| 15642 | "\xC1\x03\xE6\x5A\x37\xD8\x64\x18" |
| 15643 | "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB" |
| 15644 | "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4" |
| 15645 | "\x89\x05\x81\x6E\x71\x4F\xC3\x28" |
| 15646 | "\x10\xC1\x62\xC4\x41\xE9\xD2\x39" |
| 15647 | "\xF3\x22\x39\x12\x2C\xC2\x95\x2D" |
| 15648 | "\xBF\x93\x58\x4B\x04\xD1\x8D\x57" |
| 15649 | "\xAE\xEB\x60\x03\x56\x35\xAD\x5A" |
| 15650 | "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8" |
| 15651 | "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E" |
| 15652 | "\x07\x09\x82\xBA\xF0\x80\x8A\xD0" |
| 15653 | "\xA0\x3F\x6A\xE9\x24\x87\x19\x65" |
| 15654 | "\x73\x3F\x12\x91\x47\x54\xBA\x39" |
| 15655 | "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF" |
| 15656 | "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76" |
| 15657 | "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47" |
| 15658 | "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1" |
| 15659 | "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12" |
| 15660 | "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D" |
| 15661 | "\x23\xFA\x7D\x77\xB8\x46\x75\xFE" |
| 15662 | "\x4F\x10\xD3\x09\x60\xA1\x36\x96" |
| 15663 | "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14" |
| 15664 | "\x80\x21\x83\x58\x3C\x76\xFD\x28" |
| 15665 | "\x1D\xF9\x93\x13\xD7\x0E\x62\x14" |
| 15666 | "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C" |
| 15667 | "\x68\x93\x44\x70\xDF\xCF\x4A\x51" |
| 15668 | "\x0B\x81\x29\x41\xE5\x62\x4D\x36" |
| 15669 | "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09" |
| 15670 | "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6" |
| 15671 | "\x01\x91\xB4\x27\xDA\x59\xD6\x17" |
| 15672 | "\x56\x4D\x82\x62\x37\xA3\x48\x01" |
| 15673 | "\x99\x91\x77\xB2\x08\x6B\x2C\x37" |
| 15674 | "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3" |
| 15675 | "\x4D\x59\x7D\xC5\x28\x69\xFA\x92" |
| 15676 | "\x22\x46\x89\x2D\x0F\x2B\x08\x24", |
| 15677 | .ilen = 496, |
| 15678 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 15679 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 15680 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 15681 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 15682 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 15683 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 15684 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 15685 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 15686 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 15687 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 15688 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 15689 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 15690 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 15691 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 15692 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 15693 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 15694 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 15695 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 15696 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 15697 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 15698 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 15699 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 15700 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 15701 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 15702 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 15703 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 15704 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 15705 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 15706 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 15707 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 15708 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 15709 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 15710 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 15711 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 15712 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 15713 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 15714 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 15715 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 15716 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 15717 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 15718 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 15719 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 15720 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 15721 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 15722 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 15723 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 15724 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 15725 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 15726 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 15727 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 15728 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 15729 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 15730 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 15731 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 15732 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 15733 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 15734 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 15735 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 15736 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 15737 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 15738 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 15739 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 15740 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 15741 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 15742 | .np = 3, |
| 15743 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15744 | }, |
| 15745 | }; |
| 15746 | |
| 15747 | static struct cipher_testvec cast6_ctr_enc_tv_template[] = { |
| 15748 | { /* Generated from TF test vectors */ |
| 15749 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 15750 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 15751 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 15752 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 15753 | .klen = 32, |
| 15754 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 15755 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 15756 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 15757 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 15758 | "\x3A", |
| 15759 | .ilen = 17, |
| 15760 | .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 15761 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
| 15762 | "\x57", |
| 15763 | .rlen = 17, |
| 15764 | }, { /* Generated from TF test vectors */ |
| 15765 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 15766 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 15767 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 15768 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 15769 | .klen = 32, |
| 15770 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 15771 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 15772 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 15773 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15774 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 15775 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 15776 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 15777 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 15778 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 15779 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 15780 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 15781 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 15782 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 15783 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 15784 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 15785 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 15786 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 15787 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 15788 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 15789 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 15790 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 15791 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 15792 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 15793 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 15794 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 15795 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 15796 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 15797 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 15798 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 15799 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 15800 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 15801 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 15802 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 15803 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 15804 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 15805 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 15806 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 15807 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 15808 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 15809 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 15810 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 15811 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 15812 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 15813 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 15814 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 15815 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 15816 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 15817 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 15818 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 15819 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 15820 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 15821 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 15822 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 15823 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 15824 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 15825 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 15826 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 15827 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 15828 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 15829 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 15830 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 15831 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 15832 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 15833 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 15834 | .ilen = 496, |
| 15835 | .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 15836 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
| 15837 | "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7" |
| 15838 | "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56" |
| 15839 | "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8" |
| 15840 | "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3" |
| 15841 | "\xE3\xF3\xFA\xC2\x23\x55\x98\x20" |
| 15842 | "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5" |
| 15843 | "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30" |
| 15844 | "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D" |
| 15845 | "\x66\x45\xEE\xC8\x19\xBE\x50\xF0" |
| 15846 | "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9" |
| 15847 | "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5" |
| 15848 | "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C" |
| 15849 | "\x81\xDF\x82\x12\xC7\x4C\x1B\x07" |
| 15850 | "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA" |
| 15851 | "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6" |
| 15852 | "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5" |
| 15853 | "\x49\x61\x22\x52\x64\x8C\x46\x41" |
| 15854 | "\x1F\x48\x5F\x4F\xA2\x89\x36\x17" |
| 15855 | "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0" |
| 15856 | "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3" |
| 15857 | "\x00\x14\x15\x59\xC1\x30\x64\xAF" |
| 15858 | "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C" |
| 15859 | "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4" |
| 15860 | "\x02\x37\xC4\x69\xEF\x36\xC1\xF3" |
| 15861 | "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0" |
| 15862 | "\x51\x73\xA3\x22\x42\x41\xAB\xD2" |
| 15863 | "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA" |
| 15864 | "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF" |
| 15865 | "\xC9\x3F\x07\x87\x42\x4B\x3A\x54" |
| 15866 | "\x34\x8E\x37\xA3\x03\x6F\x65\x66" |
| 15867 | "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD" |
| 15868 | "\x61\xB4\x2B\x80\xA3\x98\x13\xF5" |
| 15869 | "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8" |
| 15870 | "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D" |
| 15871 | "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE" |
| 15872 | "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A" |
| 15873 | "\x60\x40\x38\x90\x20\x46\xC7\xB3" |
| 15874 | "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4" |
| 15875 | "\x11\x41\x76\x6B\xB3\x60\x82\x3C" |
| 15876 | "\x84\xFB\x08\x2E\x92\x25\xCB\x79" |
| 15877 | "\x6F\x58\xC5\x94\x00\x00\x47\xB6" |
| 15878 | "\x9E\xDC\x0F\x29\x70\x46\x20\x76" |
| 15879 | "\x65\x75\x66\x5C\x00\x96\xB3\xE1" |
| 15880 | "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45" |
| 15881 | "\x73\xFC\x91\xAB\x79\x41\x23\x14" |
| 15882 | "\x13\xB6\x72\x6C\x46\xB3\x03\x11" |
| 15883 | "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32" |
| 15884 | "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7" |
| 15885 | "\x15\x48\x44\x99\x09\xF6\xE0\xD7" |
| 15886 | "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2" |
| 15887 | "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2" |
| 15888 | "\x12\x53\x35\x9C\xF9\xE7\x35\x5D" |
| 15889 | "\x81\xE4\x86\x42\xC3\x58\xFB\xF0" |
| 15890 | "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F" |
| 15891 | "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4" |
| 15892 | "\x19\x35\x88\x22\x45\x59\x0E\x8F" |
| 15893 | "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41" |
| 15894 | "\x9B\x66\x8D\x32\xBA\x81\x34\x87" |
| 15895 | "\x0E\x74\x33\x30\x62\xB9\x89\xDF" |
| 15896 | "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB", |
| 15897 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 15898 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 15899 | .np = 3, |
| 15900 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15901 | }, |
| 15902 | }; |
| 15903 | |
| 15904 | static struct cipher_testvec cast6_ctr_dec_tv_template[] = { |
| 15905 | { /* Generated from TF test vectors */ |
| 15906 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 15907 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 15908 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 15909 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 15910 | .klen = 32, |
| 15911 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 15912 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 15913 | .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 15914 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 15915 | "\x57", |
| 15916 | .ilen = 17, |
| 15917 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 15918 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 15919 | "\x3A", |
| 15920 | .rlen = 17, |
| 15921 | }, { /* Generated from TF test vectors */ |
| 15922 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 15923 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 15924 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 15925 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 15926 | .klen = 32, |
| 15927 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 15928 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 15929 | .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 15930 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 15931 | "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7" |
| 15932 | "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56" |
| 15933 | "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8" |
| 15934 | "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3" |
| 15935 | "\xE3\xF3\xFA\xC2\x23\x55\x98\x20" |
| 15936 | "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5" |
| 15937 | "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30" |
| 15938 | "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D" |
| 15939 | "\x66\x45\xEE\xC8\x19\xBE\x50\xF0" |
| 15940 | "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9" |
| 15941 | "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5" |
| 15942 | "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C" |
| 15943 | "\x81\xDF\x82\x12\xC7\x4C\x1B\x07" |
| 15944 | "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA" |
| 15945 | "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6" |
| 15946 | "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5" |
| 15947 | "\x49\x61\x22\x52\x64\x8C\x46\x41" |
| 15948 | "\x1F\x48\x5F\x4F\xA2\x89\x36\x17" |
| 15949 | "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0" |
| 15950 | "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3" |
| 15951 | "\x00\x14\x15\x59\xC1\x30\x64\xAF" |
| 15952 | "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C" |
| 15953 | "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4" |
| 15954 | "\x02\x37\xC4\x69\xEF\x36\xC1\xF3" |
| 15955 | "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0" |
| 15956 | "\x51\x73\xA3\x22\x42\x41\xAB\xD2" |
| 15957 | "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA" |
| 15958 | "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF" |
| 15959 | "\xC9\x3F\x07\x87\x42\x4B\x3A\x54" |
| 15960 | "\x34\x8E\x37\xA3\x03\x6F\x65\x66" |
| 15961 | "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD" |
| 15962 | "\x61\xB4\x2B\x80\xA3\x98\x13\xF5" |
| 15963 | "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8" |
| 15964 | "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D" |
| 15965 | "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE" |
| 15966 | "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A" |
| 15967 | "\x60\x40\x38\x90\x20\x46\xC7\xB3" |
| 15968 | "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4" |
| 15969 | "\x11\x41\x76\x6B\xB3\x60\x82\x3C" |
| 15970 | "\x84\xFB\x08\x2E\x92\x25\xCB\x79" |
| 15971 | "\x6F\x58\xC5\x94\x00\x00\x47\xB6" |
| 15972 | "\x9E\xDC\x0F\x29\x70\x46\x20\x76" |
| 15973 | "\x65\x75\x66\x5C\x00\x96\xB3\xE1" |
| 15974 | "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45" |
| 15975 | "\x73\xFC\x91\xAB\x79\x41\x23\x14" |
| 15976 | "\x13\xB6\x72\x6C\x46\xB3\x03\x11" |
| 15977 | "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32" |
| 15978 | "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7" |
| 15979 | "\x15\x48\x44\x99\x09\xF6\xE0\xD7" |
| 15980 | "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2" |
| 15981 | "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2" |
| 15982 | "\x12\x53\x35\x9C\xF9\xE7\x35\x5D" |
| 15983 | "\x81\xE4\x86\x42\xC3\x58\xFB\xF0" |
| 15984 | "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F" |
| 15985 | "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4" |
| 15986 | "\x19\x35\x88\x22\x45\x59\x0E\x8F" |
| 15987 | "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41" |
| 15988 | "\x9B\x66\x8D\x32\xBA\x81\x34\x87" |
| 15989 | "\x0E\x74\x33\x30\x62\xB9\x89\xDF" |
| 15990 | "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB", |
| 15991 | .ilen = 496, |
| 15992 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 15993 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 15994 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 15995 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 15996 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 15997 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 15998 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 15999 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 16000 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 16001 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 16002 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 16003 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 16004 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 16005 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 16006 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 16007 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 16008 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 16009 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 16010 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 16011 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 16012 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 16013 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 16014 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 16015 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 16016 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 16017 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 16018 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 16019 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 16020 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 16021 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 16022 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 16023 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 16024 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 16025 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 16026 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 16027 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 16028 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 16029 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 16030 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 16031 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 16032 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 16033 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 16034 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 16035 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 16036 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 16037 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 16038 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 16039 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 16040 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 16041 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 16042 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 16043 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 16044 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 16045 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 16046 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 16047 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 16048 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 16049 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 16050 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 16051 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 16052 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 16053 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 16054 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 16055 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 16056 | .np = 3, |
| 16057 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 16058 | }, |
| 16059 | }; |
| 16060 | |
| 16061 | static struct cipher_testvec cast6_lrw_enc_tv_template[] = { |
| 16062 | { /* Generated from TF test vectors */ |
| 16063 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 16064 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 16065 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 16066 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 16067 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 16068 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 16069 | .klen = 48, |
| 16070 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16071 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 16072 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 16073 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 16074 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 16075 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 16076 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 16077 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 16078 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 16079 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 16080 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 16081 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 16082 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 16083 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 16084 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 16085 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 16086 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 16087 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 16088 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 16089 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 16090 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 16091 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 16092 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 16093 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 16094 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 16095 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 16096 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 16097 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 16098 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 16099 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 16100 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 16101 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 16102 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 16103 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 16104 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 16105 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 16106 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 16107 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 16108 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 16109 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 16110 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 16111 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 16112 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 16113 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 16114 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 16115 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 16116 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 16117 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 16118 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 16119 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 16120 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 16121 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 16122 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 16123 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 16124 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 16125 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 16126 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 16127 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 16128 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 16129 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 16130 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 16131 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 16132 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 16133 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 16134 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 16135 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 16136 | .ilen = 512, |
| 16137 | .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF" |
| 16138 | "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB" |
| 16139 | "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA" |
| 16140 | "\x58\xB6\x73\xF0\xD7\x52\x34\xEF" |
| 16141 | "\xFB\x3E\x96\x81\xB7\x71\x34\xA4" |
| 16142 | "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1" |
| 16143 | "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7" |
| 16144 | "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B" |
| 16145 | "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08" |
| 16146 | "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D" |
| 16147 | "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE" |
| 16148 | "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA" |
| 16149 | "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D" |
| 16150 | "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28" |
| 16151 | "\x80\x1D\xF0\x30\xBA\x62\x77\x7D" |
| 16152 | "\xDB\x15\x69\xDF\xFA\x2A\x81\x64" |
| 16153 | "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30" |
| 16154 | "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7" |
| 16155 | "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B" |
| 16156 | "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61" |
| 16157 | "\x5E\xDB\xFC\x11\x74\x25\x96\x65" |
| 16158 | "\xE8\xE2\x34\x57\x77\x15\x5E\x70" |
| 16159 | "\xFF\x10\x90\xC3\x64\xF0\x11\x0A" |
| 16160 | "\x63\x3A\xD3\x55\x92\x15\x4B\x0C" |
| 16161 | "\xC7\x08\x89\x17\x3B\x99\xAD\x63" |
| 16162 | "\xE7\x06\xDF\x52\xBC\x15\x64\x45" |
| 16163 | "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9" |
| 16164 | "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23" |
| 16165 | "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E" |
| 16166 | "\xBD\xAB\x60\x1A\x51\x17\x54\x27" |
| 16167 | "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19" |
| 16168 | "\x2F\x6F\x20\xA7\x47\xED\x74\x6C" |
| 16169 | "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F" |
| 16170 | "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1" |
| 16171 | "\x07\x16\xDE\x76\xCC\x5E\x94\x02" |
| 16172 | "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F" |
| 16173 | "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7" |
| 16174 | "\x6E\x21\x58\x36\x06\xDE\xB3\xD4" |
| 16175 | "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23" |
| 16176 | "\x51\x21\x2B\x32\x68\xAA\xF8\xA8" |
| 16177 | "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7" |
| 16178 | "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25" |
| 16179 | "\x30\xC7\x10\x3F\x97\x27\x01\x8E" |
| 16180 | "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB" |
| 16181 | "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8" |
| 16182 | "\x22\xE2\xE6\x92\xA7\x5F\x11\x32" |
| 16183 | "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54" |
| 16184 | "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC" |
| 16185 | "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5" |
| 16186 | "\x96\x3D\x69\x91\x20\x4E\xF2\x61" |
| 16187 | "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A" |
| 16188 | "\x78\x39\xB0\xE0\xCF\x12\x56\xD6" |
| 16189 | "\x05\xDC\xF9\x19\x66\x44\x1D\xF9" |
| 16190 | "\x82\x37\xD4\xC2\x60\xB6\x31\xDF" |
| 16191 | "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D" |
| 16192 | "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9" |
| 16193 | "\x9B\x8D\xA7\x00\x86\x25\xB6\x14" |
| 16194 | "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3" |
| 16195 | "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6" |
| 16196 | "\x15\xB7\x94\x7D\x4E\x70\x4C\x75" |
| 16197 | "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A" |
| 16198 | "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5" |
| 16199 | "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7" |
| 16200 | "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46", |
| 16201 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 16202 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 16203 | .np = 3, |
| 16204 | .tap = { 512 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 16205 | }, |
| 16206 | }; |
| 16207 | |
| 16208 | static struct cipher_testvec cast6_lrw_dec_tv_template[] = { |
| 16209 | { /* Generated from TF test vectors */ |
| 16210 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 16211 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 16212 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 16213 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 16214 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 16215 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 16216 | .klen = 48, |
| 16217 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16218 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 16219 | .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF" |
| 16220 | "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB" |
| 16221 | "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA" |
| 16222 | "\x58\xB6\x73\xF0\xD7\x52\x34\xEF" |
| 16223 | "\xFB\x3E\x96\x81\xB7\x71\x34\xA4" |
| 16224 | "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1" |
| 16225 | "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7" |
| 16226 | "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B" |
| 16227 | "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08" |
| 16228 | "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D" |
| 16229 | "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE" |
| 16230 | "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA" |
| 16231 | "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D" |
| 16232 | "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28" |
| 16233 | "\x80\x1D\xF0\x30\xBA\x62\x77\x7D" |
| 16234 | "\xDB\x15\x69\xDF\xFA\x2A\x81\x64" |
| 16235 | "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30" |
| 16236 | "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7" |
| 16237 | "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B" |
| 16238 | "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61" |
| 16239 | "\x5E\xDB\xFC\x11\x74\x25\x96\x65" |
| 16240 | "\xE8\xE2\x34\x57\x77\x15\x5E\x70" |
| 16241 | "\xFF\x10\x90\xC3\x64\xF0\x11\x0A" |
| 16242 | "\x63\x3A\xD3\x55\x92\x15\x4B\x0C" |
| 16243 | "\xC7\x08\x89\x17\x3B\x99\xAD\x63" |
| 16244 | "\xE7\x06\xDF\x52\xBC\x15\x64\x45" |
| 16245 | "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9" |
| 16246 | "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23" |
| 16247 | "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E" |
| 16248 | "\xBD\xAB\x60\x1A\x51\x17\x54\x27" |
| 16249 | "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19" |
| 16250 | "\x2F\x6F\x20\xA7\x47\xED\x74\x6C" |
| 16251 | "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F" |
| 16252 | "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1" |
| 16253 | "\x07\x16\xDE\x76\xCC\x5E\x94\x02" |
| 16254 | "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F" |
| 16255 | "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7" |
| 16256 | "\x6E\x21\x58\x36\x06\xDE\xB3\xD4" |
| 16257 | "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23" |
| 16258 | "\x51\x21\x2B\x32\x68\xAA\xF8\xA8" |
| 16259 | "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7" |
| 16260 | "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25" |
| 16261 | "\x30\xC7\x10\x3F\x97\x27\x01\x8E" |
| 16262 | "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB" |
| 16263 | "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8" |
| 16264 | "\x22\xE2\xE6\x92\xA7\x5F\x11\x32" |
| 16265 | "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54" |
| 16266 | "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC" |
| 16267 | "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5" |
| 16268 | "\x96\x3D\x69\x91\x20\x4E\xF2\x61" |
| 16269 | "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A" |
| 16270 | "\x78\x39\xB0\xE0\xCF\x12\x56\xD6" |
| 16271 | "\x05\xDC\xF9\x19\x66\x44\x1D\xF9" |
| 16272 | "\x82\x37\xD4\xC2\x60\xB6\x31\xDF" |
| 16273 | "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D" |
| 16274 | "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9" |
| 16275 | "\x9B\x8D\xA7\x00\x86\x25\xB6\x14" |
| 16276 | "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3" |
| 16277 | "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6" |
| 16278 | "\x15\xB7\x94\x7D\x4E\x70\x4C\x75" |
| 16279 | "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A" |
| 16280 | "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5" |
| 16281 | "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7" |
| 16282 | "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46", |
| 16283 | .ilen = 512, |
| 16284 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 16285 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 16286 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 16287 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 16288 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 16289 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 16290 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 16291 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 16292 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 16293 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 16294 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 16295 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 16296 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 16297 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 16298 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 16299 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 16300 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 16301 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 16302 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 16303 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 16304 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 16305 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 16306 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 16307 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 16308 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 16309 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 16310 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 16311 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 16312 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 16313 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 16314 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 16315 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 16316 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 16317 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 16318 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 16319 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 16320 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 16321 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 16322 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 16323 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 16324 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 16325 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 16326 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 16327 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 16328 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 16329 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 16330 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 16331 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 16332 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 16333 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 16334 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 16335 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 16336 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 16337 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 16338 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 16339 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 16340 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 16341 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 16342 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 16343 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 16344 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 16345 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 16346 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 16347 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 16348 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 16349 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 16350 | .np = 3, |
| 16351 | .tap = { 512 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 16352 | }, |
| 16353 | }; |
| 16354 | |
| 16355 | static struct cipher_testvec cast6_xts_enc_tv_template[] = { |
| 16356 | { /* Generated from TF test vectors */ |
| 16357 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 16358 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 16359 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 16360 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 16361 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 16362 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 16363 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 16364 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 16365 | .klen = 64, |
| 16366 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 16367 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 16368 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16369 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16370 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16371 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16372 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16373 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16374 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16375 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16376 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16377 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16378 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16379 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16380 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16381 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16382 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16383 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16384 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16385 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16386 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16387 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16388 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16389 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16390 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16391 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16392 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16393 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16394 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16395 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16396 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16397 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16398 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16399 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 16400 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16401 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16402 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16403 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16404 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16405 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16406 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16407 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16408 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16409 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16410 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16411 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16412 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16413 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16414 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16415 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16416 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16417 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16418 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16419 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16420 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16421 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16422 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16423 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16424 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16425 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16426 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16427 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16428 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16429 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16430 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16431 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16432 | .ilen = 512, |
| 16433 | .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78" |
| 16434 | "\x88\x5A\x4F\x8D\x82\x76\x52\x6D" |
| 16435 | "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6" |
| 16436 | "\xE2\xC5\x62\x8D\x61\xA1\x01\xED" |
| 16437 | "\xD9\x38\x01\xC1\x43\x63\x4E\x88" |
| 16438 | "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71" |
| 16439 | "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13" |
| 16440 | "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81" |
| 16441 | "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6" |
| 16442 | "\x60\x54\x09\x32\xFE\x6A\x76\x2E" |
| 16443 | "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D" |
| 16444 | "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB" |
| 16445 | "\xB8\x25\x70\xF8\x40\xBC\x90\x1B" |
| 16446 | "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD" |
| 16447 | "\xD3\x3B\xCF\x60\xA1\x78\x94\x57" |
| 16448 | "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98" |
| 16449 | "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA" |
| 16450 | "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67" |
| 16451 | "\x05\xDD\x1D\x58\x6E\x2F\x95\x08" |
| 16452 | "\x3A\xF8\x78\x76\x82\x56\xA7\xEC" |
| 16453 | "\x51\x4B\x85\x77\xC2\x4C\x4A\x34" |
| 16454 | "\x71\x38\x17\x91\x44\xE8\xFC\x65" |
| 16455 | "\x99\x0D\x52\x91\xEE\xF8\xEF\x27" |
| 16456 | "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4" |
| 16457 | "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D" |
| 16458 | "\x59\x22\x9B\x29\x5C\x18\xF0\xC3" |
| 16459 | "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1" |
| 16460 | "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3" |
| 16461 | "\x91\x3B\x49\x73\x18\xAB\xD4\xC9" |
| 16462 | "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A" |
| 16463 | "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E" |
| 16464 | "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24" |
| 16465 | "\xE6\x87\xEA\xFE\x96\x25\x67\x8E" |
| 16466 | "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C" |
| 16467 | "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9" |
| 16468 | "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97" |
| 16469 | "\x49\xF7\x04\xCB\xEF\x84\x98\x33" |
| 16470 | "\xAF\x38\xD3\x04\x1C\x24\x71\x38" |
| 16471 | "\xC7\x71\xDD\x43\x0D\x12\x4A\x18" |
| 16472 | "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95" |
| 16473 | "\x02\x43\x5D\xCE\x19\xCC\xCD\x66" |
| 16474 | "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C" |
| 16475 | "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB" |
| 16476 | "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B" |
| 16477 | "\x30\x45\xA9\xB7\xAF\x80\x64\x6F" |
| 16478 | "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE" |
| 16479 | "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE" |
| 16480 | "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8" |
| 16481 | "\x97\xA3\xE1\x6F\x38\x24\x34\x88" |
| 16482 | "\xCE\xBD\x32\x52\xE0\x00\x6C\x94" |
| 16483 | "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F" |
| 16484 | "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59" |
| 16485 | "\x34\x39\xA8\x35\x12\xB7\xBC\xAC" |
| 16486 | "\xEA\x52\x9C\x78\x02\x6D\x92\x36" |
| 16487 | "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83" |
| 16488 | "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64" |
| 16489 | "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3" |
| 16490 | "\xB0\xEB\x31\xE4\x69\x95\xAB\x35" |
| 16491 | "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82" |
| 16492 | "\xF8\xD9\x47\x82\xA9\x82\x03\x91" |
| 16493 | "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F" |
| 16494 | "\x45\x72\x80\x17\x81\xBD\x9D\x62" |
| 16495 | "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC" |
| 16496 | "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9", |
| 16497 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 16498 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 16499 | .np = 3, |
| 16500 | .tap = { 512 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 16501 | }, |
| 16502 | }; |
| 16503 | |
| 16504 | static struct cipher_testvec cast6_xts_dec_tv_template[] = { |
| 16505 | { /* Generated from TF test vectors */ |
| 16506 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 16507 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 16508 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 16509 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 16510 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 16511 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 16512 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 16513 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 16514 | .klen = 64, |
| 16515 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 16516 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 16517 | .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78" |
| 16518 | "\x88\x5A\x4F\x8D\x82\x76\x52\x6D" |
| 16519 | "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6" |
| 16520 | "\xE2\xC5\x62\x8D\x61\xA1\x01\xED" |
| 16521 | "\xD9\x38\x01\xC1\x43\x63\x4E\x88" |
| 16522 | "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71" |
| 16523 | "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13" |
| 16524 | "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81" |
| 16525 | "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6" |
| 16526 | "\x60\x54\x09\x32\xFE\x6A\x76\x2E" |
| 16527 | "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D" |
| 16528 | "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB" |
| 16529 | "\xB8\x25\x70\xF8\x40\xBC\x90\x1B" |
| 16530 | "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD" |
| 16531 | "\xD3\x3B\xCF\x60\xA1\x78\x94\x57" |
| 16532 | "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98" |
| 16533 | "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA" |
| 16534 | "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67" |
| 16535 | "\x05\xDD\x1D\x58\x6E\x2F\x95\x08" |
| 16536 | "\x3A\xF8\x78\x76\x82\x56\xA7\xEC" |
| 16537 | "\x51\x4B\x85\x77\xC2\x4C\x4A\x34" |
| 16538 | "\x71\x38\x17\x91\x44\xE8\xFC\x65" |
| 16539 | "\x99\x0D\x52\x91\xEE\xF8\xEF\x27" |
| 16540 | "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4" |
| 16541 | "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D" |
| 16542 | "\x59\x22\x9B\x29\x5C\x18\xF0\xC3" |
| 16543 | "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1" |
| 16544 | "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3" |
| 16545 | "\x91\x3B\x49\x73\x18\xAB\xD4\xC9" |
| 16546 | "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A" |
| 16547 | "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E" |
| 16548 | "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24" |
| 16549 | "\xE6\x87\xEA\xFE\x96\x25\x67\x8E" |
| 16550 | "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C" |
| 16551 | "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9" |
| 16552 | "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97" |
| 16553 | "\x49\xF7\x04\xCB\xEF\x84\x98\x33" |
| 16554 | "\xAF\x38\xD3\x04\x1C\x24\x71\x38" |
| 16555 | "\xC7\x71\xDD\x43\x0D\x12\x4A\x18" |
| 16556 | "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95" |
| 16557 | "\x02\x43\x5D\xCE\x19\xCC\xCD\x66" |
| 16558 | "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C" |
| 16559 | "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB" |
| 16560 | "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B" |
| 16561 | "\x30\x45\xA9\xB7\xAF\x80\x64\x6F" |
| 16562 | "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE" |
| 16563 | "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE" |
| 16564 | "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8" |
| 16565 | "\x97\xA3\xE1\x6F\x38\x24\x34\x88" |
| 16566 | "\xCE\xBD\x32\x52\xE0\x00\x6C\x94" |
| 16567 | "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F" |
| 16568 | "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59" |
| 16569 | "\x34\x39\xA8\x35\x12\xB7\xBC\xAC" |
| 16570 | "\xEA\x52\x9C\x78\x02\x6D\x92\x36" |
| 16571 | "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83" |
| 16572 | "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64" |
| 16573 | "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3" |
| 16574 | "\xB0\xEB\x31\xE4\x69\x95\xAB\x35" |
| 16575 | "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82" |
| 16576 | "\xF8\xD9\x47\x82\xA9\x82\x03\x91" |
| 16577 | "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F" |
| 16578 | "\x45\x72\x80\x17\x81\xBD\x9D\x62" |
| 16579 | "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC" |
| 16580 | "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9", |
| 16581 | .ilen = 512, |
| 16582 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16583 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16584 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16585 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16586 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16587 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16588 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16589 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16590 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16591 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16592 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16593 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16594 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16595 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16596 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16597 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16598 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16599 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16600 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16601 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16602 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16603 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16604 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16605 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16606 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16607 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16608 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16609 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16610 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16611 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16612 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16613 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 16614 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16615 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16616 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16617 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 16618 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 16619 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 16620 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16621 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 16622 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 16623 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 16624 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 16625 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 16626 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 16627 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 16628 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 16629 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 16630 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 16631 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 16632 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 16633 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 16634 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 16635 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 16636 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 16637 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 16638 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 16639 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 16640 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 16641 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 16642 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 16643 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 16644 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 16645 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 16646 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 16647 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 16648 | .np = 3, |
| 16649 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16650 | }, |
| 16651 | }; |
| 16652 | |
| 16653 | |
| 16654 | /* |
| 16655 | * AES test vectors. |
| 16656 | */ |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 16657 | #define AES_ENC_TEST_VECTORS 4 |
| 16658 | #define AES_DEC_TEST_VECTORS 4 |
| 16659 | #define AES_CBC_ENC_TEST_VECTORS 5 |
| 16660 | #define AES_CBC_DEC_TEST_VECTORS 5 |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 16661 | #define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2 |
| 16662 | #define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2 |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16663 | #define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VEC 2 |
| 16664 | #define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VEC 2 |
| 16665 | #define HMAC_SHA1_AES_CBC_ENC_TEST_VEC 7 |
| 16666 | #define HMAC_SHA256_AES_CBC_ENC_TEST_VEC 7 |
| 16667 | #define HMAC_SHA512_AES_CBC_ENC_TEST_VEC 7 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16668 | #define AES_LRW_ENC_TEST_VECTORS 8 |
| 16669 | #define AES_LRW_DEC_TEST_VECTORS 8 |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 16670 | #define AES_XTS_ENC_TEST_VECTORS 5 |
| 16671 | #define AES_XTS_DEC_TEST_VECTORS 5 |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 16672 | #define AES_CTR_ENC_TEST_VECTORS 5 |
| 16673 | #define AES_CTR_DEC_TEST_VECTORS 5 |
Puneet Saxena | ba0e14a | 2011-05-04 15:04:10 +1000 | [diff] [blame] | 16674 | #define AES_OFB_ENC_TEST_VECTORS 1 |
| 16675 | #define AES_OFB_DEC_TEST_VECTORS 1 |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 16676 | #define AES_CTR_3686_ENC_TEST_VECTORS 7 |
| 16677 | #define AES_CTR_3686_DEC_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16678 | #define AES_GCM_ENC_TEST_VECTORS 9 |
| 16679 | #define AES_GCM_DEC_TEST_VECTORS 8 |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 16680 | #define AES_GCM_4106_ENC_TEST_VECTORS 23 |
| 16681 | #define AES_GCM_4106_DEC_TEST_VECTORS 23 |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 16682 | #define AES_GCM_4543_ENC_TEST_VECTORS 1 |
| 16683 | #define AES_GCM_4543_DEC_TEST_VECTORS 2 |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 16684 | #define AES_CCM_ENC_TEST_VECTORS 8 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16685 | #define AES_CCM_DEC_TEST_VECTORS 7 |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 16686 | #define AES_CCM_4309_ENC_TEST_VECTORS 7 |
| 16687 | #define AES_CCM_4309_DEC_TEST_VECTORS 10 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16688 | |
| 16689 | static struct cipher_testvec aes_enc_tv_template[] = { |
| 16690 | { /* From FIPS-197 */ |
| 16691 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16692 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 16693 | .klen = 16, |
| 16694 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 16695 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 16696 | .ilen = 16, |
| 16697 | .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" |
| 16698 | "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", |
| 16699 | .rlen = 16, |
| 16700 | }, { |
| 16701 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16702 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16703 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 16704 | .klen = 24, |
| 16705 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 16706 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 16707 | .ilen = 16, |
| 16708 | .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" |
| 16709 | "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", |
| 16710 | .rlen = 16, |
| 16711 | }, { |
| 16712 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16713 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16714 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16715 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 16716 | .klen = 32, |
| 16717 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 16718 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 16719 | .ilen = 16, |
| 16720 | .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" |
| 16721 | "\xea\xfc\x49\x90\x4b\x49\x60\x89", |
| 16722 | .rlen = 16, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 16723 | }, { /* Generated with Crypto++ */ |
| 16724 | .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32" |
| 16725 | "\x55\x0F\x32\x55\x78\x9B\xBE\x78" |
| 16726 | "\x9B\xBE\xE1\x04\x27\xE1\x04\x27" |
| 16727 | "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6", |
| 16728 | .klen = 32, |
| 16729 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 16730 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 16731 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 16732 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 16733 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 16734 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 16735 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 16736 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 16737 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 16738 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 16739 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 16740 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 16741 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 16742 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 16743 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 16744 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 16745 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 16746 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 16747 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 16748 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 16749 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 16750 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 16751 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 16752 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 16753 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 16754 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 16755 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 16756 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 16757 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 16758 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 16759 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 16760 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 16761 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 16762 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 16763 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 16764 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 16765 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 16766 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 16767 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 16768 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 16769 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 16770 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 16771 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 16772 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 16773 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 16774 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 16775 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 16776 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 16777 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 16778 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 16779 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 16780 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 16781 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 16782 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 16783 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 16784 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 16785 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 16786 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 16787 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 16788 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 16789 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 16790 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 16791 | .ilen = 496, |
| 16792 | .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D" |
| 16793 | "\x61\x1E\xBB\x63\x42\x79\xDB\x64" |
| 16794 | "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B" |
| 16795 | "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F" |
| 16796 | "\x5E\x06\xF0\x5F\x31\x51\x18\x37" |
| 16797 | "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1" |
| 16798 | "\xDD\x8D\x22\x65\x2B\x00\x50\xCE" |
| 16799 | "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA" |
| 16800 | "\x78\x69\x7F\xAE\x8F\x8B\x69\x37" |
| 16801 | "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09" |
| 16802 | "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8" |
| 16803 | "\x81\x82\x27\xFA\x45\x9C\x29\xA4" |
| 16804 | "\x22\x8B\x78\x69\x5B\x46\xF9\x39" |
| 16805 | "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C" |
| 16806 | "\x41\x72\x51\x97\x1D\x07\x49\xA0" |
| 16807 | "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03" |
| 16808 | "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64" |
| 16809 | "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA" |
| 16810 | "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F" |
| 16811 | "\xE1\x8B\x22\x17\x59\x0C\x47\x89" |
| 16812 | "\x33\xA1\xD6\x47\x03\x19\x4F\xA8" |
| 16813 | "\x67\x69\xF0\x5B\xF0\x20\xAD\x06" |
| 16814 | "\x27\x81\x92\xD8\xC5\xBA\x98\x12" |
| 16815 | "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD" |
| 16816 | "\x12\x2F\x07\x32\xEE\x39\xAF\x64" |
| 16817 | "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E" |
| 16818 | "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68" |
| 16819 | "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC" |
| 16820 | "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F" |
| 16821 | "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C" |
| 16822 | "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B" |
| 16823 | "\x25\xFB\x26\x81\xE0\x2F\xF0\x96" |
| 16824 | "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64" |
| 16825 | "\x63\x29\x4C\x8E\x18\x13\xC5\xBF" |
| 16826 | "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29" |
| 16827 | "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1" |
| 16828 | "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1" |
| 16829 | "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA" |
| 16830 | "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50" |
| 16831 | "\x31\xCB\x69\x3F\x96\x15\xD6\xF5" |
| 16832 | "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10" |
| 16833 | "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A" |
| 16834 | "\xDC\x6A\x80\x34\x73\x97\x1B\xC5" |
| 16835 | "\xCA\x26\x16\x77\x0E\x60\xAB\x89" |
| 16836 | "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4" |
| 16837 | "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70" |
| 16838 | "\x42\x71\x51\x78\x70\xB3\xE0\x3D" |
| 16839 | "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92" |
| 16840 | "\x11\x08\x42\x4F\xE5\xAD\x26\x92" |
| 16841 | "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47" |
| 16842 | "\x22\xC1\x95\xC1\x63\x7F\xCB\x03" |
| 16843 | "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA" |
| 16844 | "\x35\xA2\xFD\x45\x52\x39\x13\x6F" |
| 16845 | "\xC1\x53\xF3\x53\xDF\x33\x84\xD7" |
| 16846 | "\xD2\xC8\x37\xB0\x75\xE3\x41\x46" |
| 16847 | "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5" |
| 16848 | "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD" |
| 16849 | "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F" |
| 16850 | "\x40\x86\x7F\x51\xE1\x11\x9C\xCB" |
| 16851 | "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF" |
| 16852 | "\x09\x79\xA0\x43\x5C\x0D\x08\x58" |
| 16853 | "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9", |
| 16854 | .rlen = 496, |
| 16855 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 16856 | .np = 3, |
| 16857 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16858 | }, |
| 16859 | }; |
| 16860 | |
| 16861 | static struct cipher_testvec aes_dec_tv_template[] = { |
| 16862 | { /* From FIPS-197 */ |
| 16863 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16864 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 16865 | .klen = 16, |
| 16866 | .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" |
| 16867 | "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", |
| 16868 | .ilen = 16, |
| 16869 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 16870 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 16871 | .rlen = 16, |
| 16872 | }, { |
| 16873 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16874 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16875 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 16876 | .klen = 24, |
| 16877 | .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" |
| 16878 | "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", |
| 16879 | .ilen = 16, |
| 16880 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 16881 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 16882 | .rlen = 16, |
| 16883 | }, { |
| 16884 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 16885 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 16886 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 16887 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 16888 | .klen = 32, |
| 16889 | .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" |
| 16890 | "\xea\xfc\x49\x90\x4b\x49\x60\x89", |
| 16891 | .ilen = 16, |
| 16892 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 16893 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 16894 | .rlen = 16, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 16895 | }, { /* Generated with Crypto++ */ |
| 16896 | .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32" |
| 16897 | "\x55\x0F\x32\x55\x78\x9B\xBE\x78" |
| 16898 | "\x9B\xBE\xE1\x04\x27\xE1\x04\x27" |
| 16899 | "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6", |
| 16900 | .klen = 32, |
| 16901 | .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D" |
| 16902 | "\x61\x1E\xBB\x63\x42\x79\xDB\x64" |
| 16903 | "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B" |
| 16904 | "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F" |
| 16905 | "\x5E\x06\xF0\x5F\x31\x51\x18\x37" |
| 16906 | "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1" |
| 16907 | "\xDD\x8D\x22\x65\x2B\x00\x50\xCE" |
| 16908 | "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA" |
| 16909 | "\x78\x69\x7F\xAE\x8F\x8B\x69\x37" |
| 16910 | "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09" |
| 16911 | "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8" |
| 16912 | "\x81\x82\x27\xFA\x45\x9C\x29\xA4" |
| 16913 | "\x22\x8B\x78\x69\x5B\x46\xF9\x39" |
| 16914 | "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C" |
| 16915 | "\x41\x72\x51\x97\x1D\x07\x49\xA0" |
| 16916 | "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03" |
| 16917 | "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64" |
| 16918 | "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA" |
| 16919 | "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F" |
| 16920 | "\xE1\x8B\x22\x17\x59\x0C\x47\x89" |
| 16921 | "\x33\xA1\xD6\x47\x03\x19\x4F\xA8" |
| 16922 | "\x67\x69\xF0\x5B\xF0\x20\xAD\x06" |
| 16923 | "\x27\x81\x92\xD8\xC5\xBA\x98\x12" |
| 16924 | "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD" |
| 16925 | "\x12\x2F\x07\x32\xEE\x39\xAF\x64" |
| 16926 | "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E" |
| 16927 | "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68" |
| 16928 | "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC" |
| 16929 | "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F" |
| 16930 | "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C" |
| 16931 | "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B" |
| 16932 | "\x25\xFB\x26\x81\xE0\x2F\xF0\x96" |
| 16933 | "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64" |
| 16934 | "\x63\x29\x4C\x8E\x18\x13\xC5\xBF" |
| 16935 | "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29" |
| 16936 | "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1" |
| 16937 | "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1" |
| 16938 | "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA" |
| 16939 | "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50" |
| 16940 | "\x31\xCB\x69\x3F\x96\x15\xD6\xF5" |
| 16941 | "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10" |
| 16942 | "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A" |
| 16943 | "\xDC\x6A\x80\x34\x73\x97\x1B\xC5" |
| 16944 | "\xCA\x26\x16\x77\x0E\x60\xAB\x89" |
| 16945 | "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4" |
| 16946 | "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70" |
| 16947 | "\x42\x71\x51\x78\x70\xB3\xE0\x3D" |
| 16948 | "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92" |
| 16949 | "\x11\x08\x42\x4F\xE5\xAD\x26\x92" |
| 16950 | "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47" |
| 16951 | "\x22\xC1\x95\xC1\x63\x7F\xCB\x03" |
| 16952 | "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA" |
| 16953 | "\x35\xA2\xFD\x45\x52\x39\x13\x6F" |
| 16954 | "\xC1\x53\xF3\x53\xDF\x33\x84\xD7" |
| 16955 | "\xD2\xC8\x37\xB0\x75\xE3\x41\x46" |
| 16956 | "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5" |
| 16957 | "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD" |
| 16958 | "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F" |
| 16959 | "\x40\x86\x7F\x51\xE1\x11\x9C\xCB" |
| 16960 | "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF" |
| 16961 | "\x09\x79\xA0\x43\x5C\x0D\x08\x58" |
| 16962 | "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9", |
| 16963 | .ilen = 496, |
| 16964 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 16965 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 16966 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 16967 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 16968 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 16969 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 16970 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 16971 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 16972 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 16973 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 16974 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 16975 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 16976 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 16977 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 16978 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 16979 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 16980 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 16981 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 16982 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 16983 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 16984 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 16985 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 16986 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 16987 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 16988 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 16989 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 16990 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 16991 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 16992 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 16993 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 16994 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 16995 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 16996 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 16997 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 16998 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 16999 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 17000 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 17001 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 17002 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 17003 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 17004 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 17005 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 17006 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 17007 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 17008 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 17009 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 17010 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 17011 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 17012 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 17013 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 17014 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 17015 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 17016 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 17017 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 17018 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 17019 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 17020 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 17021 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 17022 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 17023 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 17024 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 17025 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 17026 | .rlen = 496, |
| 17027 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 17028 | .np = 3, |
| 17029 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17030 | }, |
| 17031 | }; |
| 17032 | |
| 17033 | static struct cipher_testvec aes_cbc_enc_tv_template[] = { |
| 17034 | { /* From RFC 3602 */ |
| 17035 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 17036 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 17037 | .klen = 16, |
| 17038 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 17039 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 17040 | .input = "Single block msg", |
| 17041 | .ilen = 16, |
| 17042 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 17043 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a", |
| 17044 | .rlen = 16, |
LABBE Corentin | 0d8dc96 | 2015-07-06 13:37:33 +0200 | [diff] [blame] | 17045 | .also_non_np = 1, |
| 17046 | .np = 8, |
| 17047 | .tap = { 3, 2, 3, 2, 3, 1, 1, 1 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17048 | }, { |
| 17049 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 17050 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 17051 | .klen = 16, |
| 17052 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 17053 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 17054 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17055 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17056 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17057 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 17058 | .ilen = 32, |
| 17059 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 17060 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 17061 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 17062 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", |
| 17063 | .rlen = 32, |
| 17064 | }, { /* From NIST SP800-38A */ |
| 17065 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 17066 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 17067 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 17068 | .klen = 24, |
| 17069 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17070 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 17071 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 17072 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 17073 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 17074 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 17075 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 17076 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 17077 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 17078 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 17079 | .ilen = 64, |
| 17080 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 17081 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 17082 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 17083 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 17084 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 17085 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 17086 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 17087 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", |
| 17088 | .rlen = 64, |
| 17089 | }, { |
| 17090 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 17091 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 17092 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 17093 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 17094 | .klen = 32, |
| 17095 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17096 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 17097 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 17098 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 17099 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 17100 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 17101 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 17102 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 17103 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 17104 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 17105 | .ilen = 64, |
| 17106 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 17107 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 17108 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 17109 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 17110 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 17111 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 17112 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 17113 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", |
| 17114 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 17115 | }, { /* Generated with Crypto++ */ |
| 17116 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 17117 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 17118 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 17119 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 17120 | .klen = 32, |
| 17121 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 17122 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 17123 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 17124 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 17125 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 17126 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 17127 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 17128 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 17129 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 17130 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 17131 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 17132 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 17133 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 17134 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 17135 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 17136 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 17137 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 17138 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 17139 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 17140 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 17141 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 17142 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 17143 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 17144 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 17145 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 17146 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 17147 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 17148 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 17149 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 17150 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 17151 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 17152 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 17153 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 17154 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 17155 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 17156 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 17157 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 17158 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 17159 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 17160 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 17161 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 17162 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 17163 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 17164 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 17165 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 17166 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 17167 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 17168 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 17169 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 17170 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 17171 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 17172 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 17173 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 17174 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 17175 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 17176 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 17177 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 17178 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 17179 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 17180 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 17181 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 17182 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 17183 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 17184 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 17185 | .ilen = 496, |
| 17186 | .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F" |
| 17187 | "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF" |
| 17188 | "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F" |
| 17189 | "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8" |
| 17190 | "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0" |
| 17191 | "\x11\x15\xFF\x6D\x1E\x82\x04\xA6" |
| 17192 | "\xB1\x74\xD1\x08\x13\xFD\x90\x7C" |
| 17193 | "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F" |
| 17194 | "\x0A\x70\xF1\x88\x07\xCF\x21\x26" |
| 17195 | "\x40\x40\x8A\xF5\x53\xF7\x24\x4F" |
| 17196 | "\x83\x38\x43\x5F\x08\x99\xEB\xE3" |
| 17197 | "\xDC\x02\x64\x67\x50\x6E\x15\xC3" |
| 17198 | "\x01\x1A\xA0\x81\x13\x65\xA6\x73" |
| 17199 | "\x71\xA6\x3B\x91\x83\x77\xBE\xFA" |
| 17200 | "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3" |
| 17201 | "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F" |
| 17202 | "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F" |
| 17203 | "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43" |
| 17204 | "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40" |
| 17205 | "\x03\xA8\x6C\x50\x42\x9F\x77\x59" |
| 17206 | "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99" |
| 17207 | "\x16\x24\x02\x07\x48\xAE\xF2\x31" |
| 17208 | "\x34\x0E\xC3\x85\xFE\x1C\x95\x99" |
| 17209 | "\x87\x58\x98\x8B\xE7\xC6\xC5\x70" |
| 17210 | "\x73\x81\x07\x7C\x56\x2F\xD8\x1B" |
| 17211 | "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F" |
| 17212 | "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98" |
| 17213 | "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04" |
| 17214 | "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5" |
| 17215 | "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD" |
| 17216 | "\xF1\xE3\x3D\x98\x50\x02\x77\x9E" |
| 17217 | "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66" |
| 17218 | "\x20\x02\x23\xDA\xDF\xA0\x89\xF6" |
| 17219 | "\xD8\xF3\x45\x24\x53\x6F\x16\x77" |
| 17220 | "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78" |
| 17221 | "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3" |
| 17222 | "\x57\xBC\x0B\x9F\x43\x51\x28\x4F" |
| 17223 | "\x07\x50\x6C\x68\x12\x07\xCF\xFA" |
| 17224 | "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C" |
| 17225 | "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD" |
| 17226 | "\x22\x39\x7B\x16\x03\x01\x69\xAF" |
| 17227 | "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5" |
| 17228 | "\x03\xB4\x2F\x51\x8A\x56\x17\x2B" |
| 17229 | "\x88\x42\x6D\x40\x68\x8F\xD0\x11" |
| 17230 | "\x19\xF9\x1F\x43\x79\x95\x31\xFA" |
| 17231 | "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC" |
| 17232 | "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC" |
| 17233 | "\x8D\x53\x6E\x72\x68\xA3\xC7\x63" |
| 17234 | "\x43\x2B\x78\xE0\x04\x29\x8F\x72" |
| 17235 | "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD" |
| 17236 | "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D" |
| 17237 | "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44" |
| 17238 | "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61" |
| 17239 | "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC" |
| 17240 | "\x58\x08\x15\xAB\x12\xAB\x17\x4A" |
| 17241 | "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB" |
| 17242 | "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F" |
| 17243 | "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61" |
| 17244 | "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD" |
| 17245 | "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A" |
| 17246 | "\xE0\x1F\x91\xF8\x82\x96\x2D\x65" |
| 17247 | "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02", |
| 17248 | .rlen = 496, |
| 17249 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 17250 | .np = 3, |
| 17251 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17252 | }, |
| 17253 | }; |
| 17254 | |
| 17255 | static struct cipher_testvec aes_cbc_dec_tv_template[] = { |
| 17256 | { /* From RFC 3602 */ |
| 17257 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 17258 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 17259 | .klen = 16, |
| 17260 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 17261 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 17262 | .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 17263 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a", |
| 17264 | .ilen = 16, |
| 17265 | .result = "Single block msg", |
| 17266 | .rlen = 16, |
LABBE Corentin | 0d8dc96 | 2015-07-06 13:37:33 +0200 | [diff] [blame] | 17267 | .also_non_np = 1, |
| 17268 | .np = 8, |
| 17269 | .tap = { 3, 2, 3, 2, 3, 1, 1, 1 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17270 | }, { |
| 17271 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 17272 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 17273 | .klen = 16, |
| 17274 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 17275 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 17276 | .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 17277 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 17278 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 17279 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", |
| 17280 | .ilen = 32, |
| 17281 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17282 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17283 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17284 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 17285 | .rlen = 32, |
| 17286 | }, { /* From NIST SP800-38A */ |
| 17287 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 17288 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 17289 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 17290 | .klen = 24, |
| 17291 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17292 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 17293 | .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 17294 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 17295 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 17296 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 17297 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 17298 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 17299 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 17300 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", |
| 17301 | .ilen = 64, |
| 17302 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 17303 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 17304 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 17305 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 17306 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 17307 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 17308 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 17309 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 17310 | .rlen = 64, |
| 17311 | }, { |
| 17312 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 17313 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 17314 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 17315 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 17316 | .klen = 32, |
| 17317 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17318 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 17319 | .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 17320 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 17321 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 17322 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 17323 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 17324 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 17325 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 17326 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", |
| 17327 | .ilen = 64, |
| 17328 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 17329 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 17330 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 17331 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 17332 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 17333 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 17334 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 17335 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 17336 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 17337 | }, { /* Generated with Crypto++ */ |
| 17338 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 17339 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 17340 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 17341 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 17342 | .klen = 32, |
| 17343 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 17344 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 17345 | .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F" |
| 17346 | "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF" |
| 17347 | "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F" |
| 17348 | "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8" |
| 17349 | "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0" |
| 17350 | "\x11\x15\xFF\x6D\x1E\x82\x04\xA6" |
| 17351 | "\xB1\x74\xD1\x08\x13\xFD\x90\x7C" |
| 17352 | "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F" |
| 17353 | "\x0A\x70\xF1\x88\x07\xCF\x21\x26" |
| 17354 | "\x40\x40\x8A\xF5\x53\xF7\x24\x4F" |
| 17355 | "\x83\x38\x43\x5F\x08\x99\xEB\xE3" |
| 17356 | "\xDC\x02\x64\x67\x50\x6E\x15\xC3" |
| 17357 | "\x01\x1A\xA0\x81\x13\x65\xA6\x73" |
| 17358 | "\x71\xA6\x3B\x91\x83\x77\xBE\xFA" |
| 17359 | "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3" |
| 17360 | "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F" |
| 17361 | "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F" |
| 17362 | "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43" |
| 17363 | "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40" |
| 17364 | "\x03\xA8\x6C\x50\x42\x9F\x77\x59" |
| 17365 | "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99" |
| 17366 | "\x16\x24\x02\x07\x48\xAE\xF2\x31" |
| 17367 | "\x34\x0E\xC3\x85\xFE\x1C\x95\x99" |
| 17368 | "\x87\x58\x98\x8B\xE7\xC6\xC5\x70" |
| 17369 | "\x73\x81\x07\x7C\x56\x2F\xD8\x1B" |
| 17370 | "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F" |
| 17371 | "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98" |
| 17372 | "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04" |
| 17373 | "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5" |
| 17374 | "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD" |
| 17375 | "\xF1\xE3\x3D\x98\x50\x02\x77\x9E" |
| 17376 | "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66" |
| 17377 | "\x20\x02\x23\xDA\xDF\xA0\x89\xF6" |
| 17378 | "\xD8\xF3\x45\x24\x53\x6F\x16\x77" |
| 17379 | "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78" |
| 17380 | "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3" |
| 17381 | "\x57\xBC\x0B\x9F\x43\x51\x28\x4F" |
| 17382 | "\x07\x50\x6C\x68\x12\x07\xCF\xFA" |
| 17383 | "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C" |
| 17384 | "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD" |
| 17385 | "\x22\x39\x7B\x16\x03\x01\x69\xAF" |
| 17386 | "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5" |
| 17387 | "\x03\xB4\x2F\x51\x8A\x56\x17\x2B" |
| 17388 | "\x88\x42\x6D\x40\x68\x8F\xD0\x11" |
| 17389 | "\x19\xF9\x1F\x43\x79\x95\x31\xFA" |
| 17390 | "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC" |
| 17391 | "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC" |
| 17392 | "\x8D\x53\x6E\x72\x68\xA3\xC7\x63" |
| 17393 | "\x43\x2B\x78\xE0\x04\x29\x8F\x72" |
| 17394 | "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD" |
| 17395 | "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D" |
| 17396 | "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44" |
| 17397 | "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61" |
| 17398 | "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC" |
| 17399 | "\x58\x08\x15\xAB\x12\xAB\x17\x4A" |
| 17400 | "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB" |
| 17401 | "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F" |
| 17402 | "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61" |
| 17403 | "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD" |
| 17404 | "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A" |
| 17405 | "\xE0\x1F\x91\xF8\x82\x96\x2D\x65" |
| 17406 | "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02", |
| 17407 | .ilen = 496, |
| 17408 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 17409 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 17410 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 17411 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 17412 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 17413 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 17414 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 17415 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 17416 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 17417 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 17418 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 17419 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 17420 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 17421 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 17422 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 17423 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 17424 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 17425 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 17426 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 17427 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 17428 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 17429 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 17430 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 17431 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 17432 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 17433 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 17434 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 17435 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 17436 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 17437 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 17438 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 17439 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 17440 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 17441 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 17442 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 17443 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 17444 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 17445 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 17446 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 17447 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 17448 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 17449 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 17450 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 17451 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 17452 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 17453 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 17454 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 17455 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 17456 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 17457 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 17458 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 17459 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 17460 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 17461 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 17462 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 17463 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 17464 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 17465 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 17466 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 17467 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 17468 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 17469 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 17470 | .rlen = 496, |
| 17471 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 17472 | .np = 3, |
| 17473 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17474 | }, |
| 17475 | }; |
| 17476 | |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 17477 | static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = { |
| 17478 | { /* Input data from RFC 2410 Case 1 */ |
| 17479 | #ifdef __LITTLE_ENDIAN |
| 17480 | .key = "\x08\x00" /* rta length */ |
| 17481 | "\x01\x00" /* rta type */ |
| 17482 | #else |
| 17483 | .key = "\x00\x08" /* rta length */ |
| 17484 | "\x00\x01" /* rta type */ |
| 17485 | #endif |
| 17486 | "\x00\x00\x00\x00" /* enc key length */ |
| 17487 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17488 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17489 | .klen = 8 + 16 + 0, |
| 17490 | .iv = "", |
| 17491 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 17492 | .ilen = 8, |
| 17493 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 17494 | "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a" |
| 17495 | "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae", |
| 17496 | .rlen = 8 + 16, |
| 17497 | }, { /* Input data from RFC 2410 Case 2 */ |
| 17498 | #ifdef __LITTLE_ENDIAN |
| 17499 | .key = "\x08\x00" /* rta length */ |
| 17500 | "\x01\x00" /* rta type */ |
| 17501 | #else |
| 17502 | .key = "\x00\x08" /* rta length */ |
| 17503 | "\x00\x01" /* rta type */ |
| 17504 | #endif |
| 17505 | "\x00\x00\x00\x00" /* enc key length */ |
| 17506 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17507 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17508 | .klen = 8 + 16 + 0, |
| 17509 | .iv = "", |
| 17510 | .input = "Network Security People Have A Strange Sense Of Humor", |
| 17511 | .ilen = 53, |
| 17512 | .result = "Network Security People Have A Strange Sense Of Humor" |
| 17513 | "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a" |
| 17514 | "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23", |
| 17515 | .rlen = 53 + 16, |
| 17516 | }, |
| 17517 | }; |
| 17518 | |
| 17519 | static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = { |
| 17520 | { |
| 17521 | #ifdef __LITTLE_ENDIAN |
| 17522 | .key = "\x08\x00" /* rta length */ |
| 17523 | "\x01\x00" /* rta type */ |
| 17524 | #else |
| 17525 | .key = "\x00\x08" /* rta length */ |
| 17526 | "\x00\x01" /* rta type */ |
| 17527 | #endif |
| 17528 | "\x00\x00\x00\x00" /* enc key length */ |
| 17529 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17530 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17531 | .klen = 8 + 16 + 0, |
| 17532 | .iv = "", |
| 17533 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 17534 | "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a" |
| 17535 | "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae", |
| 17536 | .ilen = 8 + 16, |
| 17537 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 17538 | .rlen = 8, |
| 17539 | }, { |
| 17540 | #ifdef __LITTLE_ENDIAN |
| 17541 | .key = "\x08\x00" /* rta length */ |
| 17542 | "\x01\x00" /* rta type */ |
| 17543 | #else |
| 17544 | .key = "\x00\x08" /* rta length */ |
| 17545 | "\x00\x01" /* rta type */ |
| 17546 | #endif |
| 17547 | "\x00\x00\x00\x00" /* enc key length */ |
| 17548 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17549 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17550 | .klen = 8 + 16 + 0, |
| 17551 | .iv = "", |
| 17552 | .input = "Network Security People Have A Strange Sense Of Humor" |
| 17553 | "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a" |
| 17554 | "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23", |
| 17555 | .ilen = 53 + 16, |
| 17556 | .result = "Network Security People Have A Strange Sense Of Humor", |
| 17557 | .rlen = 53, |
| 17558 | }, |
| 17559 | }; |
| 17560 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 17561 | static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = { |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17562 | { /* RFC 3602 Case 1 */ |
| 17563 | #ifdef __LITTLE_ENDIAN |
| 17564 | .key = "\x08\x00" /* rta length */ |
| 17565 | "\x01\x00" /* rta type */ |
| 17566 | #else |
| 17567 | .key = "\x00\x08" /* rta length */ |
| 17568 | "\x00\x01" /* rta type */ |
| 17569 | #endif |
| 17570 | "\x00\x00\x00\x10" /* enc key length */ |
| 17571 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17572 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17573 | "\x00\x00\x00\x00" |
| 17574 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 17575 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 17576 | .klen = 8 + 20 + 16, |
| 17577 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 17578 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 17579 | .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 17580 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 17581 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17582 | .input = "Single block msg", |
| 17583 | .ilen = 16, |
| 17584 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 17585 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 17586 | "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c" |
| 17587 | "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5" |
| 17588 | "\x03\x71\xa2\x06", |
| 17589 | .rlen = 16 + 20, |
| 17590 | }, { /* RFC 3602 Case 2 */ |
| 17591 | #ifdef __LITTLE_ENDIAN |
| 17592 | .key = "\x08\x00" /* rta length */ |
| 17593 | "\x01\x00" /* rta type */ |
| 17594 | #else |
| 17595 | .key = "\x00\x08" /* rta length */ |
| 17596 | "\x00\x01" /* rta type */ |
| 17597 | #endif |
| 17598 | "\x00\x00\x00\x10" /* enc key length */ |
| 17599 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17600 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17601 | "\x30\x31\x32\x33" |
| 17602 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 17603 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 17604 | .klen = 8 + 20 + 16, |
| 17605 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 17606 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 17607 | .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 17608 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 17609 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17610 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17611 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17612 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17613 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 17614 | .ilen = 32, |
| 17615 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 17616 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 17617 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 17618 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 17619 | "\xad\x9b\x4c\x5c\x85\xe1\xda\xae" |
| 17620 | "\xee\x81\x4e\xd7\xdb\x74\xcf\x58" |
| 17621 | "\x65\x39\xf8\xde", |
| 17622 | .rlen = 32 + 20, |
| 17623 | }, { /* RFC 3602 Case 3 */ |
| 17624 | #ifdef __LITTLE_ENDIAN |
| 17625 | .key = "\x08\x00" /* rta length */ |
| 17626 | "\x01\x00" /* rta type */ |
| 17627 | #else |
| 17628 | .key = "\x00\x08" /* rta length */ |
| 17629 | "\x00\x01" /* rta type */ |
| 17630 | #endif |
| 17631 | "\x00\x00\x00\x10" /* enc key length */ |
| 17632 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 17633 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 17634 | "\x22\x33\x44\x55" |
| 17635 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 17636 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 17637 | .klen = 8 + 20 + 16, |
| 17638 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 17639 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 17640 | .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 17641 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 17642 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17643 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 17644 | .ilen = 48, |
| 17645 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 17646 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 17647 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 17648 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 17649 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 17650 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 17651 | "\xc2\xec\x0c\xf8\x7f\x05\xba\xca" |
| 17652 | "\xff\xee\x4c\xd0\x93\xe6\x36\x7f" |
| 17653 | "\x8d\x62\xf2\x1e", |
| 17654 | .rlen = 48 + 20, |
| 17655 | }, { /* RFC 3602 Case 4 */ |
| 17656 | #ifdef __LITTLE_ENDIAN |
| 17657 | .key = "\x08\x00" /* rta length */ |
| 17658 | "\x01\x00" /* rta type */ |
| 17659 | #else |
| 17660 | .key = "\x00\x08" /* rta length */ |
| 17661 | "\x00\x01" /* rta type */ |
| 17662 | #endif |
| 17663 | "\x00\x00\x00\x10" /* enc key length */ |
| 17664 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 17665 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 17666 | "\x22\x33\x44\x55" |
| 17667 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 17668 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 17669 | .klen = 8 + 20 + 16, |
| 17670 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 17671 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 17672 | .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 17673 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 17674 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17675 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17676 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17677 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17678 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17679 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17680 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17681 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17682 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 17683 | .ilen = 64, |
| 17684 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 17685 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 17686 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 17687 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 17688 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 17689 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 17690 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 17691 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 17692 | "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d" |
| 17693 | "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d" |
| 17694 | "\x1d\xbe\xc6\xe9", |
| 17695 | .rlen = 64 + 20, |
| 17696 | }, { /* RFC 3602 Case 5 */ |
| 17697 | #ifdef __LITTLE_ENDIAN |
| 17698 | .key = "\x08\x00" /* rta length */ |
| 17699 | "\x01\x00" /* rta type */ |
| 17700 | #else |
| 17701 | .key = "\x00\x08" /* rta length */ |
| 17702 | "\x00\x01" /* rta type */ |
| 17703 | #endif |
| 17704 | "\x00\x00\x00\x10" /* enc key length */ |
| 17705 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 17706 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 17707 | "\x22\x33\x44\x55" |
| 17708 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 17709 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 17710 | .klen = 8 + 20 + 16, |
| 17711 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 17712 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 17713 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 17714 | "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 17715 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 17716 | .alen = 24, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17717 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 17718 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 17719 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17720 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17721 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17722 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17723 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17724 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17725 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 17726 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 17727 | .ilen = 80, |
| 17728 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 17729 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 17730 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 17731 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 17732 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 17733 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 17734 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 17735 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 17736 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 17737 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 17738 | "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c" |
| 17739 | "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8" |
| 17740 | "\x85\xe1\x59\xf7", |
| 17741 | .rlen = 80 + 20, |
| 17742 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 17743 | #ifdef __LITTLE_ENDIAN |
| 17744 | .key = "\x08\x00" /* rta length */ |
| 17745 | "\x01\x00" /* rta type */ |
| 17746 | #else |
| 17747 | .key = "\x00\x08" /* rta length */ |
| 17748 | "\x00\x01" /* rta type */ |
| 17749 | #endif |
| 17750 | "\x00\x00\x00\x18" /* enc key length */ |
| 17751 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 17752 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 17753 | "\x22\x33\x44\x55" |
| 17754 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 17755 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 17756 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 17757 | .klen = 8 + 20 + 24, |
| 17758 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17759 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 17760 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17761 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 17762 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17763 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 17764 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 17765 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 17766 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 17767 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 17768 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 17769 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 17770 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 17771 | .ilen = 64, |
| 17772 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 17773 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 17774 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 17775 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 17776 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 17777 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 17778 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 17779 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 17780 | "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4" |
| 17781 | "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36" |
| 17782 | "\x47\x4c\xfc\x36", |
| 17783 | .rlen = 64 + 20, |
| 17784 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 17785 | #ifdef __LITTLE_ENDIAN |
| 17786 | .key = "\x08\x00" /* rta length */ |
| 17787 | "\x01\x00" /* rta type */ |
| 17788 | #else |
| 17789 | .key = "\x00\x08" /* rta length */ |
| 17790 | "\x00\x01" /* rta type */ |
| 17791 | #endif |
| 17792 | "\x00\x00\x00\x20" /* enc key length */ |
| 17793 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 17794 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 17795 | "\x22\x33\x44\x55" |
| 17796 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 17797 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 17798 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 17799 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 17800 | .klen = 8 + 20 + 32, |
| 17801 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17802 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 17803 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17804 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 17805 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17806 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 17807 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 17808 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 17809 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 17810 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 17811 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 17812 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 17813 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 17814 | .ilen = 64, |
| 17815 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 17816 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 17817 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 17818 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 17819 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 17820 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 17821 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 17822 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 17823 | "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde" |
| 17824 | "\x1b\x9f\xc6\x81\x26\x43\x4a\x87" |
| 17825 | "\x51\xee\xd6\x4e", |
| 17826 | .rlen = 64 + 20, |
| 17827 | }, |
| 17828 | }; |
| 17829 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 17830 | static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = { |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 17831 | { /* Input data from RFC 2410 Case 1 */ |
| 17832 | #ifdef __LITTLE_ENDIAN |
| 17833 | .key = "\x08\x00" /* rta length */ |
| 17834 | "\x01\x00" /* rta type */ |
| 17835 | #else |
| 17836 | .key = "\x00\x08" /* rta length */ |
| 17837 | "\x00\x01" /* rta type */ |
| 17838 | #endif |
| 17839 | "\x00\x00\x00\x00" /* enc key length */ |
| 17840 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17841 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17842 | "\x00\x00\x00\x00", |
| 17843 | .klen = 8 + 20 + 0, |
| 17844 | .iv = "", |
| 17845 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 17846 | .ilen = 8, |
| 17847 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 17848 | "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab" |
| 17849 | "\x99\x5e\x19\x04\xd1\x72\xef\xb8" |
| 17850 | "\x8c\x5e\xe4\x08", |
| 17851 | .rlen = 8 + 20, |
| 17852 | }, { /* Input data from RFC 2410 Case 2 */ |
| 17853 | #ifdef __LITTLE_ENDIAN |
| 17854 | .key = "\x08\x00" /* rta length */ |
| 17855 | "\x01\x00" /* rta type */ |
| 17856 | #else |
| 17857 | .key = "\x00\x08" /* rta length */ |
| 17858 | "\x00\x01" /* rta type */ |
| 17859 | #endif |
| 17860 | "\x00\x00\x00\x00" /* enc key length */ |
| 17861 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17862 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17863 | "\x00\x00\x00\x00", |
| 17864 | .klen = 8 + 20 + 0, |
| 17865 | .iv = "", |
| 17866 | .input = "Network Security People Have A Strange Sense Of Humor", |
| 17867 | .ilen = 53, |
| 17868 | .result = "Network Security People Have A Strange Sense Of Humor" |
| 17869 | "\x75\x6f\x42\x1e\xf8\x50\x21\xd2" |
| 17870 | "\x65\x47\xee\x8e\x1a\xef\x16\xf6" |
| 17871 | "\x91\x56\xe4\xd6", |
| 17872 | .rlen = 53 + 20, |
| 17873 | }, |
| 17874 | }; |
| 17875 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 17876 | static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = { |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 17877 | { |
| 17878 | #ifdef __LITTLE_ENDIAN |
| 17879 | .key = "\x08\x00" /* rta length */ |
| 17880 | "\x01\x00" /* rta type */ |
| 17881 | #else |
| 17882 | .key = "\x00\x08" /* rta length */ |
| 17883 | "\x00\x01" /* rta type */ |
| 17884 | #endif |
| 17885 | "\x00\x00\x00\x00" /* enc key length */ |
| 17886 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17887 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17888 | "\x00\x00\x00\x00", |
| 17889 | .klen = 8 + 20 + 0, |
| 17890 | .iv = "", |
| 17891 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 17892 | "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab" |
| 17893 | "\x99\x5e\x19\x04\xd1\x72\xef\xb8" |
| 17894 | "\x8c\x5e\xe4\x08", |
| 17895 | .ilen = 8 + 20, |
| 17896 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 17897 | .rlen = 8, |
| 17898 | }, { |
| 17899 | #ifdef __LITTLE_ENDIAN |
| 17900 | .key = "\x08\x00" /* rta length */ |
| 17901 | "\x01\x00" /* rta type */ |
| 17902 | #else |
| 17903 | .key = "\x00\x08" /* rta length */ |
| 17904 | "\x00\x01" /* rta type */ |
| 17905 | #endif |
| 17906 | "\x00\x00\x00\x00" /* enc key length */ |
| 17907 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17908 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17909 | "\x00\x00\x00\x00", |
| 17910 | .klen = 8 + 20 + 0, |
| 17911 | .iv = "", |
| 17912 | .input = "Network Security People Have A Strange Sense Of Humor" |
| 17913 | "\x75\x6f\x42\x1e\xf8\x50\x21\xd2" |
| 17914 | "\x65\x47\xee\x8e\x1a\xef\x16\xf6" |
| 17915 | "\x91\x56\xe4\xd6", |
| 17916 | .ilen = 53 + 20, |
| 17917 | .result = "Network Security People Have A Strange Sense Of Humor", |
| 17918 | .rlen = 53, |
| 17919 | }, |
| 17920 | }; |
| 17921 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 17922 | static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = { |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17923 | { /* RFC 3602 Case 1 */ |
| 17924 | #ifdef __LITTLE_ENDIAN |
| 17925 | .key = "\x08\x00" /* rta length */ |
| 17926 | "\x01\x00" /* rta type */ |
| 17927 | #else |
| 17928 | .key = "\x00\x08" /* rta length */ |
| 17929 | "\x00\x01" /* rta type */ |
| 17930 | #endif |
| 17931 | "\x00\x00\x00\x10" /* enc key length */ |
| 17932 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17933 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17934 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17935 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17936 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 17937 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 17938 | .klen = 8 + 32 + 16, |
| 17939 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 17940 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 17941 | .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 17942 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 17943 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17944 | .input = "Single block msg", |
| 17945 | .ilen = 16, |
| 17946 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 17947 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 17948 | "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc" |
| 17949 | "\x38\x06\x38\x51\xb4\xb8\xf3\x5b" |
| 17950 | "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5" |
| 17951 | "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5", |
| 17952 | .rlen = 16 + 32, |
| 17953 | }, { /* RFC 3602 Case 2 */ |
| 17954 | #ifdef __LITTLE_ENDIAN |
| 17955 | .key = "\x08\x00" /* rta length */ |
| 17956 | "\x01\x00" /* rta type */ |
| 17957 | #else |
| 17958 | .key = "\x00\x08" /* rta length */ |
| 17959 | "\x00\x01" /* rta type */ |
| 17960 | #endif |
| 17961 | "\x00\x00\x00\x10" /* enc key length */ |
| 17962 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17963 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17964 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17965 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17966 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 17967 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 17968 | .klen = 8 + 32 + 16, |
| 17969 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 17970 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 17971 | .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 17972 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 17973 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 17974 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17975 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17976 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17977 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 17978 | .ilen = 32, |
| 17979 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 17980 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 17981 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 17982 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 17983 | "\xf5\x33\x53\xf3\x68\x85\x2a\x99" |
| 17984 | "\x0e\x06\x58\x8f\xba\xf6\x06\xda" |
| 17985 | "\x49\x69\x0d\x5b\xd4\x36\x06\x62" |
| 17986 | "\x35\x5e\x54\x58\x53\x4d\xdf\xbf", |
| 17987 | .rlen = 32 + 32, |
| 17988 | }, { /* RFC 3602 Case 3 */ |
| 17989 | #ifdef __LITTLE_ENDIAN |
| 17990 | .key = "\x08\x00" /* rta length */ |
| 17991 | "\x01\x00" /* rta type */ |
| 17992 | #else |
| 17993 | .key = "\x00\x08" /* rta length */ |
| 17994 | "\x00\x01" /* rta type */ |
| 17995 | #endif |
| 17996 | "\x00\x00\x00\x10" /* enc key length */ |
| 17997 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 17998 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 17999 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18000 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18001 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 18002 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 18003 | .klen = 8 + 32 + 16, |
| 18004 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 18005 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18006 | .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 18007 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 18008 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18009 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 18010 | .ilen = 48, |
| 18011 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 18012 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 18013 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 18014 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 18015 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 18016 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 18017 | "\x68\xb9\x3e\x90\x38\xa0\x88\x01" |
| 18018 | "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d" |
| 18019 | "\x24\x78\xfb\xbe\x02\xe0\x4f\x40" |
| 18020 | "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a", |
| 18021 | .rlen = 48 + 32, |
| 18022 | }, { /* RFC 3602 Case 4 */ |
| 18023 | #ifdef __LITTLE_ENDIAN |
| 18024 | .key = "\x08\x00" /* rta length */ |
| 18025 | "\x01\x00" /* rta type */ |
| 18026 | #else |
| 18027 | .key = "\x00\x08" /* rta length */ |
| 18028 | "\x00\x01" /* rta type */ |
| 18029 | #endif |
| 18030 | "\x00\x00\x00\x10" /* enc key length */ |
| 18031 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18032 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18033 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18034 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18035 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 18036 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 18037 | .klen = 8 + 32 + 16, |
| 18038 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 18039 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18040 | .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 18041 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 18042 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18043 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 18044 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 18045 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 18046 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 18047 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 18048 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 18049 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 18050 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 18051 | .ilen = 64, |
| 18052 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 18053 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 18054 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 18055 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 18056 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 18057 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 18058 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 18059 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 18060 | "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2" |
| 18061 | "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8" |
| 18062 | "\x3f\x54\xe2\x49\x39\xe3\x71\x25" |
| 18063 | "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64", |
| 18064 | .rlen = 64 + 32, |
| 18065 | }, { /* RFC 3602 Case 5 */ |
| 18066 | #ifdef __LITTLE_ENDIAN |
| 18067 | .key = "\x08\x00" /* rta length */ |
| 18068 | "\x01\x00" /* rta type */ |
| 18069 | #else |
| 18070 | .key = "\x00\x08" /* rta length */ |
| 18071 | "\x00\x01" /* rta type */ |
| 18072 | #endif |
| 18073 | "\x00\x00\x00\x10" /* enc key length */ |
| 18074 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18075 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18076 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18077 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18078 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 18079 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 18080 | .klen = 8 + 32 + 16, |
| 18081 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 18082 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18083 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 18084 | "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 18085 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 18086 | .alen = 24, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18087 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 18088 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 18089 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18090 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18091 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 18092 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 18093 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 18094 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 18095 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 18096 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 18097 | .ilen = 80, |
| 18098 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 18099 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 18100 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 18101 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 18102 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 18103 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 18104 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 18105 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 18106 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 18107 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 18108 | "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8" |
| 18109 | "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7" |
| 18110 | "\x73\xc3\x46\x20\x2c\xb1\xef\x68" |
| 18111 | "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf", |
| 18112 | .rlen = 80 + 32, |
| 18113 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 18114 | #ifdef __LITTLE_ENDIAN |
| 18115 | .key = "\x08\x00" /* rta length */ |
| 18116 | "\x01\x00" /* rta type */ |
| 18117 | #else |
| 18118 | .key = "\x00\x08" /* rta length */ |
| 18119 | "\x00\x01" /* rta type */ |
| 18120 | #endif |
| 18121 | "\x00\x00\x00\x18" /* enc key length */ |
| 18122 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18123 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18124 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18125 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18126 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 18127 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 18128 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 18129 | .klen = 8 + 32 + 24, |
| 18130 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18131 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18132 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18133 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 18134 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18135 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 18136 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 18137 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 18138 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 18139 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 18140 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 18141 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 18142 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 18143 | .ilen = 64, |
| 18144 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 18145 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 18146 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 18147 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 18148 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 18149 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 18150 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 18151 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 18152 | "\x2f\xee\x5f\xdb\x66\xfe\x79\x09" |
| 18153 | "\x61\x81\x31\xea\x5b\x3d\x8e\xfb" |
| 18154 | "\xca\x71\x85\x93\xf7\x85\x55\x8b" |
| 18155 | "\x7a\xe4\x94\xca\x8b\xba\x19\x33", |
| 18156 | .rlen = 64 + 32, |
| 18157 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 18158 | #ifdef __LITTLE_ENDIAN |
| 18159 | .key = "\x08\x00" /* rta length */ |
| 18160 | "\x01\x00" /* rta type */ |
| 18161 | #else |
| 18162 | .key = "\x00\x08" /* rta length */ |
| 18163 | "\x00\x01" /* rta type */ |
| 18164 | #endif |
| 18165 | "\x00\x00\x00\x20" /* enc key length */ |
| 18166 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18167 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18168 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18169 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18170 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 18171 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 18172 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 18173 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 18174 | .klen = 8 + 32 + 32, |
| 18175 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18176 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18177 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18178 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 18179 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18180 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 18181 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 18182 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 18183 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 18184 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 18185 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 18186 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 18187 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 18188 | .ilen = 64, |
| 18189 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 18190 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 18191 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 18192 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 18193 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 18194 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 18195 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 18196 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 18197 | "\x24\x29\xed\xc2\x31\x49\xdb\xb1" |
| 18198 | "\x8f\x74\xbd\x17\x92\x03\xbe\x8f" |
| 18199 | "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0" |
| 18200 | "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f", |
| 18201 | .rlen = 64 + 32, |
| 18202 | }, |
| 18203 | }; |
| 18204 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 18205 | static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = { |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18206 | { /* RFC 3602 Case 1 */ |
| 18207 | #ifdef __LITTLE_ENDIAN |
| 18208 | .key = "\x08\x00" /* rta length */ |
| 18209 | "\x01\x00" /* rta type */ |
| 18210 | #else |
| 18211 | .key = "\x00\x08" /* rta length */ |
| 18212 | "\x00\x01" /* rta type */ |
| 18213 | #endif |
| 18214 | "\x00\x00\x00\x10" /* enc key length */ |
| 18215 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 18216 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 18217 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 18218 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 18219 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 18220 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 18221 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 18222 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 18223 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 18224 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 18225 | .klen = 8 + 64 + 16, |
| 18226 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 18227 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18228 | .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 18229 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 18230 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18231 | .input = "Single block msg", |
| 18232 | .ilen = 16, |
| 18233 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 18234 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 18235 | "\x3f\xdc\xad\x90\x03\x63\x5e\x68" |
| 18236 | "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7" |
| 18237 | "\x19\x6e\x03\x75\x2b\xa1\x62\xce" |
| 18238 | "\xe0\xc6\x96\x75\xb2\x14\xca\x96" |
| 18239 | "\xec\xbd\x50\x08\x07\x64\x1a\x49" |
| 18240 | "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2" |
| 18241 | "\xfa\x20\x89\xdd\x9c\xac\x9e\x16" |
| 18242 | "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a", |
| 18243 | .rlen = 16 + 64, |
| 18244 | }, { /* RFC 3602 Case 2 */ |
| 18245 | #ifdef __LITTLE_ENDIAN |
| 18246 | .key = "\x08\x00" /* rta length */ |
| 18247 | "\x01\x00" /* rta type */ |
| 18248 | #else |
| 18249 | .key = "\x00\x08" /* rta length */ |
| 18250 | "\x00\x01" /* rta type */ |
| 18251 | #endif |
| 18252 | "\x00\x00\x00\x10" /* enc key length */ |
| 18253 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 18254 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 18255 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 18256 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 18257 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 18258 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 18259 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 18260 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 18261 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 18262 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 18263 | .klen = 8 + 64 + 16, |
| 18264 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 18265 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18266 | .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 18267 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 18268 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18269 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18270 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18271 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18272 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 18273 | .ilen = 32, |
| 18274 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 18275 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 18276 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 18277 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 18278 | "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef" |
| 18279 | "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41" |
| 18280 | "\x03\x9f\xc4\x64\x7f\x01\x42\x9b" |
| 18281 | "\x0e\x1b\xea\xef\xbc\x88\x19\x5e" |
| 18282 | "\x31\x7e\xc2\x95\xfc\x09\x32\x0a" |
| 18283 | "\x46\x32\x7c\x41\x9c\x59\x3e\xe9" |
| 18284 | "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8" |
| 18285 | "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d", |
| 18286 | .rlen = 32 + 64, |
| 18287 | }, { /* RFC 3602 Case 3 */ |
| 18288 | #ifdef __LITTLE_ENDIAN |
| 18289 | .key = "\x08\x00" /* rta length */ |
| 18290 | "\x01\x00" /* rta type */ |
| 18291 | #else |
| 18292 | .key = "\x00\x08" /* rta length */ |
| 18293 | "\x00\x01" /* rta type */ |
| 18294 | #endif |
| 18295 | "\x00\x00\x00\x10" /* enc key length */ |
| 18296 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18297 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18298 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18299 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18300 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 18301 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 18302 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 18303 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 18304 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 18305 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 18306 | .klen = 8 + 64 + 16, |
| 18307 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 18308 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18309 | .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 18310 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 18311 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18312 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 18313 | .ilen = 48, |
| 18314 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 18315 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 18316 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 18317 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 18318 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 18319 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 18320 | "\x64\x19\x17\x5b\x57\xe0\x21\x0f" |
| 18321 | "\xca\xdb\xa1\x26\x38\x14\xa2\x69" |
| 18322 | "\xdb\x54\x67\x80\xc0\x54\xe0\xfd" |
| 18323 | "\x3e\x91\xe7\x91\x7f\x13\x38\x44" |
| 18324 | "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41" |
| 18325 | "\x08\xea\x29\x6c\x74\x67\x3f\xb0" |
| 18326 | "\xac\x7f\x5c\x1d\xf5\xee\x22\x66" |
| 18327 | "\x27\xa6\xb6\x13\xba\xba\xf0\xc2", |
| 18328 | .rlen = 48 + 64, |
| 18329 | }, { /* RFC 3602 Case 4 */ |
| 18330 | #ifdef __LITTLE_ENDIAN |
| 18331 | .key = "\x08\x00" /* rta length */ |
| 18332 | "\x01\x00" /* rta type */ |
| 18333 | #else |
| 18334 | .key = "\x00\x08" /* rta length */ |
| 18335 | "\x00\x01" /* rta type */ |
| 18336 | #endif |
| 18337 | "\x00\x00\x00\x10" /* enc key length */ |
| 18338 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18339 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18340 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18341 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18342 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 18343 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 18344 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 18345 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 18346 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 18347 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 18348 | .klen = 8 + 64 + 16, |
| 18349 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 18350 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18351 | .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 18352 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 18353 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18354 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 18355 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 18356 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 18357 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 18358 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 18359 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 18360 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 18361 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 18362 | .ilen = 64, |
| 18363 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 18364 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 18365 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 18366 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 18367 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 18368 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 18369 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 18370 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 18371 | "\x82\xcd\x42\x28\x21\x20\x15\xcc" |
| 18372 | "\xb7\xb2\x48\x40\xc7\x64\x41\x3a" |
| 18373 | "\x61\x32\x82\x85\xcf\x27\xed\xb4" |
| 18374 | "\xe4\x68\xa2\xf5\x79\x26\x27\xb2" |
| 18375 | "\x51\x67\x6a\xc4\xf0\x66\x55\x50" |
| 18376 | "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c" |
| 18377 | "\x62\x98\x14\xd7\x2f\x37\x8d\xdf" |
| 18378 | "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda", |
| 18379 | .rlen = 64 + 64, |
| 18380 | }, { /* RFC 3602 Case 5 */ |
| 18381 | #ifdef __LITTLE_ENDIAN |
| 18382 | .key = "\x08\x00" /* rta length */ |
| 18383 | "\x01\x00" /* rta type */ |
| 18384 | #else |
| 18385 | .key = "\x00\x08" /* rta length */ |
| 18386 | "\x00\x01" /* rta type */ |
| 18387 | #endif |
| 18388 | "\x00\x00\x00\x10" /* enc key length */ |
| 18389 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18390 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18391 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18392 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18393 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 18394 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 18395 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 18396 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 18397 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 18398 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 18399 | .klen = 8 + 64 + 16, |
| 18400 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 18401 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18402 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 18403 | "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 18404 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 18405 | .alen = 24, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18406 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 18407 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 18408 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18409 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18410 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 18411 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 18412 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 18413 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 18414 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 18415 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 18416 | .ilen = 80, |
| 18417 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 18418 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 18419 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 18420 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 18421 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 18422 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 18423 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 18424 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 18425 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 18426 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 18427 | "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf" |
| 18428 | "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf" |
| 18429 | "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f" |
| 18430 | "\x14\xd9\x3d\x53\x8e\x12\xb3\x00" |
| 18431 | "\x4c\x0a\x4e\x32\x40\x43\x88\xce" |
| 18432 | "\x92\x26\xc1\x76\x20\x11\xeb\xba" |
| 18433 | "\x62\x4f\x9a\x62\x25\xc3\x75\x80" |
| 18434 | "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14", |
| 18435 | .rlen = 80 + 64, |
| 18436 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 18437 | #ifdef __LITTLE_ENDIAN |
| 18438 | .key = "\x08\x00" /* rta length */ |
| 18439 | "\x01\x00" /* rta type */ |
| 18440 | #else |
| 18441 | .key = "\x00\x08" /* rta length */ |
| 18442 | "\x00\x01" /* rta type */ |
| 18443 | #endif |
| 18444 | "\x00\x00\x00\x18" /* enc key length */ |
| 18445 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18446 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18447 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18448 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18449 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 18450 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 18451 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 18452 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 18453 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 18454 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 18455 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 18456 | .klen = 8 + 64 + 24, |
| 18457 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18458 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18459 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18460 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 18461 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18462 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 18463 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 18464 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 18465 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 18466 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 18467 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 18468 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 18469 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 18470 | .ilen = 64, |
| 18471 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 18472 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 18473 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 18474 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 18475 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 18476 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 18477 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 18478 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 18479 | "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99" |
| 18480 | "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56" |
| 18481 | "\xbb\x21\xd2\x7d\x93\x11\x17\x91" |
| 18482 | "\xc4\x83\xfd\x0a\xea\x71\xfe\x77" |
| 18483 | "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35" |
| 18484 | "\xba\x03\xd5\x32\xfa\x5f\x41\x58" |
| 18485 | "\x8d\x43\x98\xa7\x94\x16\x07\x02" |
| 18486 | "\x0f\xb6\x81\x50\x28\x95\x2e\x75", |
| 18487 | .rlen = 64 + 64, |
| 18488 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 18489 | #ifdef __LITTLE_ENDIAN |
| 18490 | .key = "\x08\x00" /* rta length */ |
| 18491 | "\x01\x00" /* rta type */ |
| 18492 | #else |
| 18493 | .key = "\x00\x08" /* rta length */ |
| 18494 | "\x00\x01" /* rta type */ |
| 18495 | #endif |
| 18496 | "\x00\x00\x00\x20" /* enc key length */ |
| 18497 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18498 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18499 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18500 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18501 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 18502 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 18503 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 18504 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 18505 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 18506 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 18507 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 18508 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 18509 | .klen = 8 + 64 + 32, |
| 18510 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18511 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18512 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18513 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 18514 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 18515 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 18516 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 18517 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 18518 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 18519 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 18520 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 18521 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 18522 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 18523 | .ilen = 64, |
| 18524 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 18525 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 18526 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 18527 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 18528 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 18529 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 18530 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 18531 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 18532 | "\xb2\x27\x69\x7f\x45\x64\x79\x2b" |
| 18533 | "\xb7\xb8\x4c\xd4\x75\x94\x68\x40" |
| 18534 | "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b" |
| 18535 | "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d" |
| 18536 | "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c" |
| 18537 | "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c" |
| 18538 | "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2" |
| 18539 | "\x2c\xb1\x62\x2c\x10\xca\xf1\x21", |
| 18540 | .rlen = 64 + 64, |
| 18541 | }, |
| 18542 | }; |
| 18543 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 18544 | #define HMAC_SHA1_DES_CBC_ENC_TEST_VEC 1 |
| 18545 | |
| 18546 | static struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = { |
| 18547 | { /*Generated with cryptopp*/ |
| 18548 | #ifdef __LITTLE_ENDIAN |
| 18549 | .key = "\x08\x00" /* rta length */ |
| 18550 | "\x01\x00" /* rta type */ |
| 18551 | #else |
| 18552 | .key = "\x00\x08" /* rta length */ |
| 18553 | "\x00\x01" /* rta type */ |
| 18554 | #endif |
| 18555 | "\x00\x00\x00\x08" /* enc key length */ |
| 18556 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18557 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18558 | "\x22\x33\x44\x55" |
| 18559 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 18560 | .klen = 8 + 20 + 8, |
| 18561 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18562 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 18563 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 18564 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 18565 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 18566 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 18567 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 18568 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 18569 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 18570 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 18571 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 18572 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 18573 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 18574 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 18575 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 18576 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 18577 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 18578 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 18579 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 18580 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 18581 | .ilen = 128, |
| 18582 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 18583 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 18584 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 18585 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 18586 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 18587 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 18588 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 18589 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 18590 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 18591 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 18592 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 18593 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 18594 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 18595 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 18596 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 18597 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 18598 | "\x95\x16\x20\x09\xf5\x95\x19\xfd" |
| 18599 | "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa" |
| 18600 | "\x5c\x44\xa9\x37", |
| 18601 | .rlen = 128 + 20, |
| 18602 | }, |
| 18603 | }; |
| 18604 | |
| 18605 | #define HMAC_SHA224_DES_CBC_ENC_TEST_VEC 1 |
| 18606 | |
| 18607 | static struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = { |
| 18608 | { /*Generated with cryptopp*/ |
| 18609 | #ifdef __LITTLE_ENDIAN |
| 18610 | .key = "\x08\x00" /* rta length */ |
| 18611 | "\x01\x00" /* rta type */ |
| 18612 | #else |
| 18613 | .key = "\x00\x08" /* rta length */ |
| 18614 | "\x00\x01" /* rta type */ |
| 18615 | #endif |
| 18616 | "\x00\x00\x00\x08" /* enc key length */ |
| 18617 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18618 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18619 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18620 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 18621 | .klen = 8 + 24 + 8, |
| 18622 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18623 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 18624 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 18625 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 18626 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 18627 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 18628 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 18629 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 18630 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 18631 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 18632 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 18633 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 18634 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 18635 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 18636 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 18637 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 18638 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 18639 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 18640 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 18641 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 18642 | .ilen = 128, |
| 18643 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 18644 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 18645 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 18646 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 18647 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 18648 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 18649 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 18650 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 18651 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 18652 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 18653 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 18654 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 18655 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 18656 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 18657 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 18658 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 18659 | "\x9c\x2d\x7e\xee\x20\x34\x55\x0a" |
| 18660 | "\xce\xb5\x4e\x64\x53\xe7\xbf\x91" |
| 18661 | "\xab\xd4\xd9\xda\xc9\x12\xae\xf7", |
| 18662 | .rlen = 128 + 24, |
| 18663 | }, |
| 18664 | }; |
| 18665 | |
| 18666 | #define HMAC_SHA256_DES_CBC_ENC_TEST_VEC 1 |
| 18667 | |
| 18668 | static struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = { |
| 18669 | { /*Generated with cryptopp*/ |
| 18670 | #ifdef __LITTLE_ENDIAN |
| 18671 | .key = "\x08\x00" /* rta length */ |
| 18672 | "\x01\x00" /* rta type */ |
| 18673 | #else |
| 18674 | .key = "\x00\x08" /* rta length */ |
| 18675 | "\x00\x01" /* rta type */ |
| 18676 | #endif |
| 18677 | "\x00\x00\x00\x08" /* enc key length */ |
| 18678 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18679 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18680 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18681 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18682 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 18683 | .klen = 8 + 32 + 8, |
| 18684 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18685 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 18686 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 18687 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 18688 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 18689 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 18690 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 18691 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 18692 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 18693 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 18694 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 18695 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 18696 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 18697 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 18698 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 18699 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 18700 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 18701 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 18702 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 18703 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 18704 | .ilen = 128, |
| 18705 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 18706 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 18707 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 18708 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 18709 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 18710 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 18711 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 18712 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 18713 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 18714 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 18715 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 18716 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 18717 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 18718 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 18719 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 18720 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 18721 | "\xc6\x58\xa1\x60\x70\x91\x39\x36" |
| 18722 | "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e" |
| 18723 | "\xde\x63\xde\x76\x52\xde\x9f\xba" |
| 18724 | "\x90\xcf\x15\xf2\xbb\x6e\x84\x00", |
| 18725 | .rlen = 128 + 32, |
| 18726 | }, |
| 18727 | }; |
| 18728 | |
| 18729 | #define HMAC_SHA384_DES_CBC_ENC_TEST_VEC 1 |
| 18730 | |
| 18731 | static struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = { |
| 18732 | { /*Generated with cryptopp*/ |
| 18733 | #ifdef __LITTLE_ENDIAN |
| 18734 | .key = "\x08\x00" /* rta length */ |
| 18735 | "\x01\x00" /* rta type */ |
| 18736 | #else |
| 18737 | .key = "\x00\x08" /* rta length */ |
| 18738 | "\x00\x01" /* rta type */ |
| 18739 | #endif |
| 18740 | "\x00\x00\x00\x08" /* enc key length */ |
| 18741 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18742 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18743 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18744 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18745 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 18746 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 18747 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 18748 | .klen = 8 + 48 + 8, |
| 18749 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18750 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 18751 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 18752 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 18753 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 18754 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 18755 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 18756 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 18757 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 18758 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 18759 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 18760 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 18761 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 18762 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 18763 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 18764 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 18765 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 18766 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 18767 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 18768 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 18769 | .ilen = 128, |
| 18770 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 18771 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 18772 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 18773 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 18774 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 18775 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 18776 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 18777 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 18778 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 18779 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 18780 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 18781 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 18782 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 18783 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 18784 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 18785 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 18786 | "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0" |
| 18787 | "\xc8\x8c\xef\x25\x07\x83\x11\x3a" |
| 18788 | "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe" |
| 18789 | "\x5e\x67\xb5\x74\xe7\xe7\x85\x61" |
| 18790 | "\x6a\x95\x26\x75\xcc\x53\x89\xf3" |
| 18791 | "\x74\xc9\x2a\x76\x20\xa2\x64\x62", |
| 18792 | .rlen = 128 + 48, |
| 18793 | }, |
| 18794 | }; |
| 18795 | |
| 18796 | #define HMAC_SHA512_DES_CBC_ENC_TEST_VEC 1 |
| 18797 | |
| 18798 | static struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = { |
| 18799 | { /*Generated with cryptopp*/ |
| 18800 | #ifdef __LITTLE_ENDIAN |
| 18801 | .key = "\x08\x00" /* rta length */ |
| 18802 | "\x01\x00" /* rta type */ |
| 18803 | #else |
| 18804 | .key = "\x00\x08" /* rta length */ |
| 18805 | "\x00\x01" /* rta type */ |
| 18806 | #endif |
| 18807 | "\x00\x00\x00\x08" /* enc key length */ |
| 18808 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18809 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18810 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18811 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 18812 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 18813 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 18814 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 18815 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 18816 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 18817 | .klen = 8 + 64 + 8, |
| 18818 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18819 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 18820 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 18821 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 18822 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 18823 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 18824 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 18825 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 18826 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 18827 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 18828 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 18829 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 18830 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 18831 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 18832 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 18833 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 18834 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 18835 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 18836 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 18837 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 18838 | .ilen = 128, |
| 18839 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 18840 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 18841 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 18842 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 18843 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 18844 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 18845 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 18846 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 18847 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 18848 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 18849 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 18850 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 18851 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 18852 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 18853 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 18854 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 18855 | "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e" |
| 18856 | "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb" |
| 18857 | "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb" |
| 18858 | "\x58\x83\xda\x67\xfb\x21\x24\xa2" |
| 18859 | "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93" |
| 18860 | "\x97\xe2\xe3\xb8\xaa\x48\x85\xee" |
| 18861 | "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96" |
| 18862 | "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b", |
| 18863 | .rlen = 128 + 64, |
| 18864 | }, |
| 18865 | }; |
| 18866 | |
| 18867 | #define HMAC_SHA1_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 18868 | |
| 18869 | static struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = { |
| 18870 | { /*Generated with cryptopp*/ |
| 18871 | #ifdef __LITTLE_ENDIAN |
| 18872 | .key = "\x08\x00" /* rta length */ |
| 18873 | "\x01\x00" /* rta type */ |
| 18874 | #else |
| 18875 | .key = "\x00\x08" /* rta length */ |
| 18876 | "\x00\x01" /* rta type */ |
| 18877 | #endif |
| 18878 | "\x00\x00\x00\x18" /* enc key length */ |
| 18879 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18880 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18881 | "\x22\x33\x44\x55" |
| 18882 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 18883 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 18884 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 18885 | .klen = 8 + 20 + 24, |
| 18886 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18887 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 18888 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 18889 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 18890 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 18891 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 18892 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 18893 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 18894 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 18895 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 18896 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 18897 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 18898 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 18899 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 18900 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 18901 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 18902 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 18903 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 18904 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 18905 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 18906 | .ilen = 128, |
| 18907 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 18908 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 18909 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 18910 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 18911 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 18912 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 18913 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 18914 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 18915 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 18916 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 18917 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 18918 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 18919 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 18920 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 18921 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 18922 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 18923 | "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6" |
| 18924 | "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf" |
| 18925 | "\xd1\x60\x91\xb3", |
| 18926 | .rlen = 128 + 20, |
| 18927 | }, |
| 18928 | }; |
| 18929 | |
| 18930 | #define HMAC_SHA224_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 18931 | |
| 18932 | static struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = { |
| 18933 | { /*Generated with cryptopp*/ |
| 18934 | #ifdef __LITTLE_ENDIAN |
| 18935 | .key = "\x08\x00" /* rta length */ |
| 18936 | "\x01\x00" /* rta type */ |
| 18937 | #else |
| 18938 | .key = "\x00\x08" /* rta length */ |
| 18939 | "\x00\x01" /* rta type */ |
| 18940 | #endif |
| 18941 | "\x00\x00\x00\x18" /* enc key length */ |
| 18942 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 18943 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 18944 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 18945 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 18946 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 18947 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 18948 | .klen = 8 + 24 + 24, |
| 18949 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 18950 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 18951 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 18952 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 18953 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 18954 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 18955 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 18956 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 18957 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 18958 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 18959 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 18960 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 18961 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 18962 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 18963 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 18964 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 18965 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 18966 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 18967 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 18968 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 18969 | .ilen = 128, |
| 18970 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 18971 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 18972 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 18973 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 18974 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 18975 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 18976 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 18977 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 18978 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 18979 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 18980 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 18981 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 18982 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 18983 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 18984 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 18985 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 18986 | "\x15\x24\x7f\x5a\x45\x4a\x66\xce" |
| 18987 | "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c" |
| 18988 | "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0", |
| 18989 | .rlen = 128 + 24, |
| 18990 | }, |
| 18991 | }; |
| 18992 | |
| 18993 | #define HMAC_SHA256_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 18994 | |
| 18995 | static struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = { |
| 18996 | { /*Generated with cryptopp*/ |
| 18997 | #ifdef __LITTLE_ENDIAN |
| 18998 | .key = "\x08\x00" /* rta length */ |
| 18999 | "\x01\x00" /* rta type */ |
| 19000 | #else |
| 19001 | .key = "\x00\x08" /* rta length */ |
| 19002 | "\x00\x01" /* rta type */ |
| 19003 | #endif |
| 19004 | "\x00\x00\x00\x18" /* enc key length */ |
| 19005 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 19006 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 19007 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 19008 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 19009 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 19010 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 19011 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 19012 | .klen = 8 + 32 + 24, |
| 19013 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 19014 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 19015 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 19016 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 19017 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 19018 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 19019 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 19020 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 19021 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 19022 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 19023 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 19024 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 19025 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 19026 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 19027 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 19028 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 19029 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 19030 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 19031 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 19032 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 19033 | .ilen = 128, |
| 19034 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 19035 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 19036 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 19037 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 19038 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 19039 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 19040 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 19041 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 19042 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 19043 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 19044 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 19045 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 19046 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 19047 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 19048 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 19049 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 19050 | "\x73\xb0\xea\x9f\xe8\x18\x80\xd6" |
| 19051 | "\x56\x38\x44\xc0\xdb\xe3\x4f\x71" |
| 19052 | "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f" |
| 19053 | "\xca\x43\x95\xdf\x80\x61\x81\xa9", |
| 19054 | .rlen = 128 + 32, |
| 19055 | }, |
| 19056 | }; |
| 19057 | |
| 19058 | #define HMAC_SHA384_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 19059 | |
| 19060 | static struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = { |
| 19061 | { /*Generated with cryptopp*/ |
| 19062 | #ifdef __LITTLE_ENDIAN |
| 19063 | .key = "\x08\x00" /* rta length */ |
| 19064 | "\x01\x00" /* rta type */ |
| 19065 | #else |
| 19066 | .key = "\x00\x08" /* rta length */ |
| 19067 | "\x00\x01" /* rta type */ |
| 19068 | #endif |
| 19069 | "\x00\x00\x00\x18" /* enc key length */ |
| 19070 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 19071 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 19072 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 19073 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 19074 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 19075 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 19076 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 19077 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 19078 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 19079 | .klen = 8 + 48 + 24, |
| 19080 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 19081 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 19082 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 19083 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 19084 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 19085 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 19086 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 19087 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 19088 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 19089 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 19090 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 19091 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 19092 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 19093 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 19094 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 19095 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 19096 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 19097 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 19098 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 19099 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 19100 | .ilen = 128, |
| 19101 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 19102 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 19103 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 19104 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 19105 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 19106 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 19107 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 19108 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 19109 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 19110 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 19111 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 19112 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 19113 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 19114 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 19115 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 19116 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 19117 | "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7" |
| 19118 | "\x70\xe7\x93\xbf\x73\xe6\x9f\x83" |
| 19119 | "\x99\x62\x23\xe6\x5b\xd0\xda\x18" |
| 19120 | "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39" |
| 19121 | "\x36\x5d\x13\x2f\x86\x10\x78\xd6" |
| 19122 | "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b", |
| 19123 | .rlen = 128 + 48, |
| 19124 | }, |
| 19125 | }; |
| 19126 | |
| 19127 | #define HMAC_SHA512_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 19128 | |
| 19129 | static struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = { |
| 19130 | { /*Generated with cryptopp*/ |
| 19131 | #ifdef __LITTLE_ENDIAN |
| 19132 | .key = "\x08\x00" /* rta length */ |
| 19133 | "\x01\x00" /* rta type */ |
| 19134 | #else |
| 19135 | .key = "\x00\x08" /* rta length */ |
| 19136 | "\x00\x01" /* rta type */ |
| 19137 | #endif |
| 19138 | "\x00\x00\x00\x18" /* enc key length */ |
| 19139 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 19140 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 19141 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 19142 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 19143 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 19144 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 19145 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 19146 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 19147 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 19148 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 19149 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 19150 | .klen = 8 + 64 + 24, |
| 19151 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 19152 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 19153 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 19154 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 19155 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 19156 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 19157 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 19158 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 19159 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 19160 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 19161 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 19162 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 19163 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 19164 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 19165 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 19166 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 19167 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 19168 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 19169 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 19170 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 19171 | .ilen = 128, |
| 19172 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 19173 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 19174 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 19175 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 19176 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 19177 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 19178 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 19179 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 19180 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 19181 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 19182 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 19183 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 19184 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 19185 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 19186 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 19187 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 19188 | "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32" |
| 19189 | "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e" |
| 19190 | "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b" |
| 19191 | "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60" |
| 19192 | "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0" |
| 19193 | "\x2a\x74\xd4\x65\x12\xcb\x55\xf2" |
| 19194 | "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2" |
| 19195 | "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb", |
| 19196 | .rlen = 128 + 64, |
| 19197 | }, |
| 19198 | }; |
| 19199 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 19200 | static struct cipher_testvec aes_lrw_enc_tv_template[] = { |
| 19201 | /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ |
| 19202 | { /* LRW-32-AES 1 */ |
| 19203 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 19204 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 19205 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 19206 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 19207 | .klen = 32, |
| 19208 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19209 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 19210 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19211 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19212 | .ilen = 16, |
| 19213 | .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" |
| 19214 | "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", |
| 19215 | .rlen = 16, |
| 19216 | }, { /* LRW-32-AES 2 */ |
| 19217 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 19218 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 19219 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 19220 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 19221 | .klen = 32, |
| 19222 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19223 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 19224 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19225 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19226 | .ilen = 16, |
| 19227 | .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" |
| 19228 | "\x27\x4f\x07\x69\xb2\x60\xe1\x36", |
| 19229 | .rlen = 16, |
| 19230 | }, { /* LRW-32-AES 3 */ |
| 19231 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 19232 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 19233 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 19234 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 19235 | .klen = 32, |
| 19236 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19237 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 19238 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19239 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19240 | .ilen = 16, |
| 19241 | .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82" |
| 19242 | "\xf9\x59\x62\x03\x69\x0e\x5e\x01", |
| 19243 | .rlen = 16, |
| 19244 | }, { /* LRW-32-AES 4 */ |
| 19245 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 19246 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 19247 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 19248 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 19249 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 19250 | .klen = 40, |
| 19251 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19252 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 19253 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19254 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19255 | .ilen = 16, |
| 19256 | .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" |
| 19257 | "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", |
| 19258 | .rlen = 16, |
| 19259 | }, { /* LRW-32-AES 5 */ |
| 19260 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 19261 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 19262 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 19263 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 19264 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 19265 | .klen = 40, |
| 19266 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19267 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 19268 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19269 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19270 | .ilen = 16, |
| 19271 | .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" |
| 19272 | "\xc8\x60\x48\x02\x87\xe3\x34\x06", |
| 19273 | .rlen = 16, |
| 19274 | }, { /* LRW-32-AES 6 */ |
| 19275 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 19276 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 19277 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 19278 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 19279 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 19280 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 19281 | .klen = 48, |
| 19282 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19283 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 19284 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19285 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19286 | .ilen = 16, |
| 19287 | .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" |
| 19288 | "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", |
| 19289 | .rlen = 16, |
| 19290 | }, { /* LRW-32-AES 7 */ |
| 19291 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 19292 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 19293 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 19294 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 19295 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 19296 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 19297 | .klen = 48, |
| 19298 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19299 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 19300 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19301 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19302 | .ilen = 16, |
| 19303 | .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" |
| 19304 | "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", |
| 19305 | .rlen = 16, |
| 19306 | }, { |
| 19307 | /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ |
| 19308 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 19309 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 19310 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 19311 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 19312 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 19313 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 19314 | .klen = 48, |
| 19315 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19316 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 19317 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 19318 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 19319 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 19320 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 19321 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 19322 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 19323 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 19324 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 19325 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 19326 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 19327 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 19328 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 19329 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 19330 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 19331 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 19332 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 19333 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 19334 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 19335 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 19336 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 19337 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 19338 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 19339 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 19340 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 19341 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 19342 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 19343 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 19344 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 19345 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 19346 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 19347 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 19348 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 19349 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 19350 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 19351 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 19352 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 19353 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 19354 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 19355 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 19356 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 19357 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 19358 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 19359 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 19360 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 19361 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 19362 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 19363 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 19364 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 19365 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 19366 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 19367 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 19368 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 19369 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 19370 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 19371 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 19372 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 19373 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 19374 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 19375 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 19376 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 19377 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 19378 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 19379 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 19380 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 19381 | .ilen = 512, |
| 19382 | .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" |
| 19383 | "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" |
| 19384 | "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" |
| 19385 | "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" |
| 19386 | "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" |
| 19387 | "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" |
| 19388 | "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" |
| 19389 | "\xe8\x58\x46\x97\x39\x51\x07\xde" |
| 19390 | "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" |
| 19391 | "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" |
| 19392 | "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" |
| 19393 | "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" |
| 19394 | "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" |
| 19395 | "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" |
| 19396 | "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" |
| 19397 | "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" |
| 19398 | "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" |
| 19399 | "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" |
| 19400 | "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" |
| 19401 | "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" |
| 19402 | "\x18\x55\xa1\x24\x0b\x24\x24\xaf" |
| 19403 | "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" |
| 19404 | "\xff\xed\x89\xce\xd5\x3d\x88\xf3" |
| 19405 | "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" |
| 19406 | "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" |
| 19407 | "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" |
| 19408 | "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" |
| 19409 | "\x41\x30\x58\xc5\x62\x74\x52\x1d" |
| 19410 | "\x45\x24\x6a\x42\x64\x4f\x97\x1c" |
| 19411 | "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" |
| 19412 | "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" |
| 19413 | "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" |
| 19414 | "\xe4\x81\x84\x95\x36\x59\x7a\x6b" |
| 19415 | "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" |
| 19416 | "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" |
| 19417 | "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" |
| 19418 | "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" |
| 19419 | "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" |
| 19420 | "\xb8\x79\x78\x97\x94\xff\x72\x13" |
| 19421 | "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" |
| 19422 | "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" |
| 19423 | "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" |
| 19424 | "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" |
| 19425 | "\xcc\xce\x51\x0c\x19\x8a\x82\x30" |
| 19426 | "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" |
| 19427 | "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" |
| 19428 | "\x1e\x86\x53\x11\x53\x94\x00\xee" |
| 19429 | "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" |
| 19430 | "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" |
| 19431 | "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" |
| 19432 | "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" |
| 19433 | "\x9e\xfa\x31\x18\x45\x3c\x21\x33" |
| 19434 | "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" |
| 19435 | "\x03\xad\x1b\x48\xd4\x67\x27\xf0" |
| 19436 | "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" |
| 19437 | "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" |
| 19438 | "\xf7\x11\x90\xec\xbd\x51\x5c\x32" |
| 19439 | "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" |
| 19440 | "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" |
| 19441 | "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" |
| 19442 | "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" |
| 19443 | "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" |
| 19444 | "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" |
| 19445 | "\x74\x3f\x7d\x58\x88\x75\xde\x3e", |
| 19446 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 19447 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 19448 | .np = 3, |
| 19449 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 19450 | } |
| 19451 | }; |
| 19452 | |
| 19453 | static struct cipher_testvec aes_lrw_dec_tv_template[] = { |
| 19454 | /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ |
| 19455 | /* same as enc vectors with input and result reversed */ |
| 19456 | { /* LRW-32-AES 1 */ |
| 19457 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 19458 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 19459 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 19460 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 19461 | .klen = 32, |
| 19462 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19463 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 19464 | .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" |
| 19465 | "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", |
| 19466 | .ilen = 16, |
| 19467 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19468 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19469 | .rlen = 16, |
| 19470 | }, { /* LRW-32-AES 2 */ |
| 19471 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 19472 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 19473 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 19474 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 19475 | .klen = 32, |
| 19476 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19477 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 19478 | .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" |
| 19479 | "\x27\x4f\x07\x69\xb2\x60\xe1\x36", |
| 19480 | .ilen = 16, |
| 19481 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19482 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19483 | .rlen = 16, |
| 19484 | }, { /* LRW-32-AES 3 */ |
| 19485 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 19486 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 19487 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 19488 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 19489 | .klen = 32, |
| 19490 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19491 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 19492 | .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82" |
| 19493 | "\xf9\x59\x62\x03\x69\x0e\x5e\x01", |
| 19494 | .ilen = 16, |
| 19495 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19496 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19497 | .rlen = 16, |
| 19498 | }, { /* LRW-32-AES 4 */ |
| 19499 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 19500 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 19501 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 19502 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 19503 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 19504 | .klen = 40, |
| 19505 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19506 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 19507 | .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" |
| 19508 | "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", |
| 19509 | .ilen = 16, |
| 19510 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19511 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19512 | .rlen = 16, |
| 19513 | }, { /* LRW-32-AES 5 */ |
| 19514 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 19515 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 19516 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 19517 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 19518 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 19519 | .klen = 40, |
| 19520 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19521 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 19522 | .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" |
| 19523 | "\xc8\x60\x48\x02\x87\xe3\x34\x06", |
| 19524 | .ilen = 16, |
| 19525 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19526 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19527 | .rlen = 16, |
| 19528 | }, { /* LRW-32-AES 6 */ |
| 19529 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 19530 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 19531 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 19532 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 19533 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 19534 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 19535 | .klen = 48, |
| 19536 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19537 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 19538 | .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" |
| 19539 | "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", |
| 19540 | .ilen = 16, |
| 19541 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19542 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19543 | .rlen = 16, |
| 19544 | }, { /* LRW-32-AES 7 */ |
| 19545 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 19546 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 19547 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 19548 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 19549 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 19550 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 19551 | .klen = 48, |
| 19552 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19553 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 19554 | .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" |
| 19555 | "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", |
| 19556 | .ilen = 16, |
| 19557 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19558 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 19559 | .rlen = 16, |
| 19560 | }, { |
| 19561 | /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ |
| 19562 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 19563 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 19564 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 19565 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 19566 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 19567 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 19568 | .klen = 48, |
| 19569 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19570 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 19571 | .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" |
| 19572 | "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" |
| 19573 | "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" |
| 19574 | "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" |
| 19575 | "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" |
| 19576 | "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" |
| 19577 | "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" |
| 19578 | "\xe8\x58\x46\x97\x39\x51\x07\xde" |
| 19579 | "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" |
| 19580 | "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" |
| 19581 | "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" |
| 19582 | "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" |
| 19583 | "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" |
| 19584 | "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" |
| 19585 | "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" |
| 19586 | "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" |
| 19587 | "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" |
| 19588 | "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" |
| 19589 | "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" |
| 19590 | "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" |
| 19591 | "\x18\x55\xa1\x24\x0b\x24\x24\xaf" |
| 19592 | "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" |
| 19593 | "\xff\xed\x89\xce\xd5\x3d\x88\xf3" |
| 19594 | "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" |
| 19595 | "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" |
| 19596 | "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" |
| 19597 | "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" |
| 19598 | "\x41\x30\x58\xc5\x62\x74\x52\x1d" |
| 19599 | "\x45\x24\x6a\x42\x64\x4f\x97\x1c" |
| 19600 | "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" |
| 19601 | "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" |
| 19602 | "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" |
| 19603 | "\xe4\x81\x84\x95\x36\x59\x7a\x6b" |
| 19604 | "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" |
| 19605 | "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" |
| 19606 | "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" |
| 19607 | "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" |
| 19608 | "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" |
| 19609 | "\xb8\x79\x78\x97\x94\xff\x72\x13" |
| 19610 | "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" |
| 19611 | "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" |
| 19612 | "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" |
| 19613 | "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" |
| 19614 | "\xcc\xce\x51\x0c\x19\x8a\x82\x30" |
| 19615 | "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" |
| 19616 | "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" |
| 19617 | "\x1e\x86\x53\x11\x53\x94\x00\xee" |
| 19618 | "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" |
| 19619 | "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" |
| 19620 | "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" |
| 19621 | "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" |
| 19622 | "\x9e\xfa\x31\x18\x45\x3c\x21\x33" |
| 19623 | "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" |
| 19624 | "\x03\xad\x1b\x48\xd4\x67\x27\xf0" |
| 19625 | "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" |
| 19626 | "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" |
| 19627 | "\xf7\x11\x90\xec\xbd\x51\x5c\x32" |
| 19628 | "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" |
| 19629 | "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" |
| 19630 | "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" |
| 19631 | "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" |
| 19632 | "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" |
| 19633 | "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" |
| 19634 | "\x74\x3f\x7d\x58\x88\x75\xde\x3e", |
| 19635 | .ilen = 512, |
| 19636 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 19637 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 19638 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 19639 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 19640 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 19641 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 19642 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 19643 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 19644 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 19645 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 19646 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 19647 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 19648 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 19649 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 19650 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 19651 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 19652 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 19653 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 19654 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 19655 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 19656 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 19657 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 19658 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 19659 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 19660 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 19661 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 19662 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 19663 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 19664 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 19665 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 19666 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 19667 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 19668 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 19669 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 19670 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 19671 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 19672 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 19673 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 19674 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 19675 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 19676 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 19677 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 19678 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 19679 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 19680 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 19681 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 19682 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 19683 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 19684 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 19685 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 19686 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 19687 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 19688 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 19689 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 19690 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 19691 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 19692 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 19693 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 19694 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 19695 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 19696 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 19697 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 19698 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 19699 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 19700 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 19701 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 19702 | .np = 3, |
| 19703 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 19704 | } |
| 19705 | }; |
| 19706 | |
| 19707 | static struct cipher_testvec aes_xts_enc_tv_template[] = { |
| 19708 | /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ |
| 19709 | { /* XTS-AES 1 */ |
| 19710 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19711 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19712 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19713 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 19714 | .klen = 32, |
Stephan Mueller | 10faa8c | 2016-08-25 15:15:01 +0200 | [diff] [blame] | 19715 | .fips_skip = 1, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 19716 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19717 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 19718 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19719 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19720 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19721 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 19722 | .ilen = 32, |
| 19723 | .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" |
| 19724 | "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" |
| 19725 | "\xcd\x43\xd2\xf5\x95\x98\xed\x85" |
| 19726 | "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", |
| 19727 | .rlen = 32, |
| 19728 | }, { /* XTS-AES 2 */ |
| 19729 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 19730 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 19731 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 19732 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 19733 | .klen = 32, |
| 19734 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 19735 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 19736 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 19737 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 19738 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 19739 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 19740 | .ilen = 32, |
| 19741 | .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" |
| 19742 | "\x39\x33\x40\x38\xac\xef\x83\x8b" |
| 19743 | "\xfb\x18\x6f\xff\x74\x80\xad\xc4" |
| 19744 | "\x28\x93\x82\xec\xd6\xd3\x94\xf0", |
| 19745 | .rlen = 32, |
| 19746 | }, { /* XTS-AES 3 */ |
| 19747 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 19748 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 19749 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 19750 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 19751 | .klen = 32, |
| 19752 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 19753 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 19754 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 19755 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 19756 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 19757 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 19758 | .ilen = 32, |
| 19759 | .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" |
| 19760 | "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" |
| 19761 | "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" |
| 19762 | "\x21\x86\xa5\x97\x1a\x22\x7a\x89", |
| 19763 | .rlen = 32, |
| 19764 | }, { /* XTS-AES 4 */ |
| 19765 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 19766 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 19767 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 19768 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 19769 | .klen = 32, |
| 19770 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 19771 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 19772 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19773 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19774 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19775 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 19776 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 19777 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 19778 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19779 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 19780 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 19781 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 19782 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 19783 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 19784 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 19785 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 19786 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 19787 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 19788 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 19789 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 19790 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 19791 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 19792 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 19793 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 19794 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 19795 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 19796 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19797 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 19798 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 19799 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 19800 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 19801 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 19802 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 19803 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 19804 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19805 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19806 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19807 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 19808 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 19809 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 19810 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19811 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 19812 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 19813 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 19814 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 19815 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 19816 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 19817 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 19818 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 19819 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 19820 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 19821 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 19822 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 19823 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 19824 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 19825 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 19826 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 19827 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 19828 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19829 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 19830 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 19831 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 19832 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 19833 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 19834 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 19835 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 19836 | .ilen = 512, |
| 19837 | .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" |
| 19838 | "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" |
| 19839 | "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" |
| 19840 | "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" |
| 19841 | "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" |
| 19842 | "\x83\x33\xd8\xfa\x7f\x56\x00\x00" |
| 19843 | "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" |
| 19844 | "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" |
| 19845 | "\x32\x80\x63\xfd\x2a\xab\x53\xe5" |
| 19846 | "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" |
| 19847 | "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" |
| 19848 | "\x51\x2c\x88\x66\xc7\xe8\x60\xce" |
| 19849 | "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" |
| 19850 | "\x22\x97\x61\x46\xae\x20\xce\x84" |
| 19851 | "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" |
| 19852 | "\xae\xf2\x0c\x0d\x61\xad\x02\x65" |
| 19853 | "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" |
| 19854 | "\x52\xc6\x51\xd3\x31\x74\xbe\x51" |
| 19855 | "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" |
| 19856 | "\x88\xed\xe8\x21\x03\xa2\x52\xd8" |
| 19857 | "\xa7\x50\xe8\x76\x8d\xef\xff\xed" |
| 19858 | "\x91\x22\x81\x0a\xae\xb9\x9f\x91" |
| 19859 | "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" |
| 19860 | "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" |
| 19861 | "\x13\x32\xe4\xca\x60\x48\x2a\x4b" |
| 19862 | "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" |
| 19863 | "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" |
| 19864 | "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" |
| 19865 | "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" |
| 19866 | "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" |
| 19867 | "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" |
| 19868 | "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" |
| 19869 | "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" |
| 19870 | "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" |
| 19871 | "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" |
| 19872 | "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" |
| 19873 | "\x1e\x08\x29\x85\x16\xe2\xc9\xed" |
| 19874 | "\x03\xff\x3c\x1b\x78\x60\xf6\xde" |
| 19875 | "\x76\xd4\xce\xcd\x94\xc8\x11\x98" |
| 19876 | "\x55\xef\x52\x97\xca\x67\xe9\xf3" |
| 19877 | "\xe7\xff\x72\xb1\xe9\x97\x85\xca" |
| 19878 | "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" |
| 19879 | "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" |
| 19880 | "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" |
| 19881 | "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" |
| 19882 | "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" |
| 19883 | "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" |
| 19884 | "\x99\x02\x7a\x78\x57\x2a\xee\xbd" |
| 19885 | "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" |
| 19886 | "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" |
| 19887 | "\x18\x84\x69\x77\xae\x11\x9f\x7a" |
| 19888 | "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" |
| 19889 | "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" |
| 19890 | "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" |
| 19891 | "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" |
| 19892 | "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" |
| 19893 | "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" |
| 19894 | "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" |
| 19895 | "\x44\x92\x77\xdb\xd4\x77\xef\x2c" |
| 19896 | "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" |
| 19897 | "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" |
| 19898 | "\xf2\x62\x73\x57\x79\xa4\x18\xf2" |
| 19899 | "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" |
| 19900 | "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", |
| 19901 | .rlen = 512, |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 19902 | }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ |
| 19903 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 19904 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 19905 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 19906 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 19907 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 19908 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 19909 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 19910 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 19911 | .klen = 64, |
| 19912 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 19913 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 19914 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19915 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19916 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19917 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 19918 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 19919 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 19920 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19921 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 19922 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 19923 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 19924 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 19925 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 19926 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 19927 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 19928 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 19929 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 19930 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 19931 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 19932 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 19933 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 19934 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 19935 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 19936 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 19937 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 19938 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19939 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 19940 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 19941 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 19942 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 19943 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 19944 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 19945 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 19946 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19947 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19948 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19949 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 19950 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 19951 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 19952 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 19953 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 19954 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 19955 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 19956 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 19957 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 19958 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 19959 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 19960 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 19961 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 19962 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 19963 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 19964 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 19965 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 19966 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 19967 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 19968 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 19969 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 19970 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 19971 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 19972 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 19973 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 19974 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 19975 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 19976 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 19977 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 19978 | .ilen = 512, |
| 19979 | .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" |
| 19980 | "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" |
| 19981 | "\xea\x00\x80\x3f\x5e\x48\x23\x57" |
| 19982 | "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" |
| 19983 | "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" |
| 19984 | "\x66\xb3\x17\xf9\xac\x68\x3f\x44" |
| 19985 | "\x68\x0a\x86\xac\x35\xad\xfc\x33" |
| 19986 | "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" |
| 19987 | "\x57\x76\x92\x6c\x49\xa3\x09\x5e" |
| 19988 | "\xb1\x08\xfd\x10\x98\xba\xec\x70" |
| 19989 | "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" |
| 19990 | "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" |
| 19991 | "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" |
| 19992 | "\xae\xba\x12\x29\x61\xd0\x3a\x75" |
| 19993 | "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" |
| 19994 | "\x00\x02\x08\x87\x89\x14\x29\xca" |
| 19995 | "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" |
| 19996 | "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" |
| 19997 | "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" |
| 19998 | "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" |
| 19999 | "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" |
| 20000 | "\x21\xc7\x90\xdf\xe1\xde\x18\x34" |
| 20001 | "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" |
| 20002 | "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" |
| 20003 | "\x93\xec\x05\xc5\x2e\x04\x93\xef" |
| 20004 | "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" |
| 20005 | "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" |
| 20006 | "\x84\x14\x73\xd1\xa8\xcc\x81\xec" |
| 20007 | "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" |
| 20008 | "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" |
| 20009 | "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" |
| 20010 | "\x17\xb6\xba\x02\x46\x9a\x02\x0a" |
| 20011 | "\x84\xe1\x8e\x8f\x84\x25\x20\x70" |
| 20012 | "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" |
| 20013 | "\xbc\x48\x14\x57\x77\x8f\x61\x60" |
| 20014 | "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" |
| 20015 | "\x50\x5e\xb3\x09\x32\x6d\x68\x37" |
| 20016 | "\x8f\x83\x74\x59\x5c\x84\x9d\x84" |
| 20017 | "\xf4\xc3\x33\xec\x44\x23\x88\x51" |
| 20018 | "\x43\xcb\x47\xbd\x71\xc5\xed\xae" |
| 20019 | "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" |
| 20020 | "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" |
| 20021 | "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" |
| 20022 | "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" |
| 20023 | "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" |
| 20024 | "\x84\xc5\x87\x54\xcc\xe2\x94\x52" |
| 20025 | "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" |
| 20026 | "\x92\x5f\xed\xc4\xae\x74\xff\xac" |
| 20027 | "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" |
| 20028 | "\x79\xda\x9a\x41\x0e\x44\x50\xe0" |
| 20029 | "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" |
| 20030 | "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" |
| 20031 | "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" |
| 20032 | "\x94\x30\x54\xff\x84\x01\x14\x93" |
| 20033 | "\xc2\x7b\x34\x29\xea\xed\xb4\xed" |
| 20034 | "\x53\x76\x44\x1a\x77\xed\x43\x85" |
| 20035 | "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" |
| 20036 | "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" |
| 20037 | "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" |
| 20038 | "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" |
| 20039 | "\x77\x3d\xad\x38\x01\x4b\xd2\x09" |
| 20040 | "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" |
| 20041 | "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" |
| 20042 | "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", |
| 20043 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 20044 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 20045 | .np = 3, |
| 20046 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 20047 | } |
| 20048 | }; |
| 20049 | |
| 20050 | static struct cipher_testvec aes_xts_dec_tv_template[] = { |
| 20051 | /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ |
| 20052 | { /* XTS-AES 1 */ |
| 20053 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20054 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20055 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20056 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20057 | .klen = 32, |
Stephan Mueller | 10faa8c | 2016-08-25 15:15:01 +0200 | [diff] [blame] | 20058 | .fips_skip = 1, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 20059 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20060 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20061 | .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" |
| 20062 | "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" |
| 20063 | "\xcd\x43\xd2\xf5\x95\x98\xed\x85" |
| 20064 | "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", |
| 20065 | .ilen = 32, |
| 20066 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20067 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20068 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20069 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20070 | .rlen = 32, |
| 20071 | }, { /* XTS-AES 2 */ |
| 20072 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 20073 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 20074 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 20075 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 20076 | .klen = 32, |
| 20077 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 20078 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20079 | .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" |
| 20080 | "\x39\x33\x40\x38\xac\xef\x83\x8b" |
| 20081 | "\xfb\x18\x6f\xff\x74\x80\xad\xc4" |
| 20082 | "\x28\x93\x82\xec\xd6\xd3\x94\xf0", |
| 20083 | .ilen = 32, |
| 20084 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 20085 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 20086 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 20087 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 20088 | .rlen = 32, |
| 20089 | }, { /* XTS-AES 3 */ |
| 20090 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 20091 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 20092 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 20093 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 20094 | .klen = 32, |
| 20095 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 20096 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20097 | .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" |
| 20098 | "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" |
| 20099 | "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" |
| 20100 | "\x21\x86\xa5\x97\x1a\x22\x7a\x89", |
| 20101 | .ilen = 32, |
| 20102 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 20103 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 20104 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 20105 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 20106 | .rlen = 32, |
| 20107 | }, { /* XTS-AES 4 */ |
| 20108 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 20109 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 20110 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 20111 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 20112 | .klen = 32, |
| 20113 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20114 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20115 | .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" |
| 20116 | "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" |
| 20117 | "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" |
| 20118 | "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" |
| 20119 | "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" |
| 20120 | "\x83\x33\xd8\xfa\x7f\x56\x00\x00" |
| 20121 | "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" |
| 20122 | "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" |
| 20123 | "\x32\x80\x63\xfd\x2a\xab\x53\xe5" |
| 20124 | "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" |
| 20125 | "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" |
| 20126 | "\x51\x2c\x88\x66\xc7\xe8\x60\xce" |
| 20127 | "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" |
| 20128 | "\x22\x97\x61\x46\xae\x20\xce\x84" |
| 20129 | "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" |
| 20130 | "\xae\xf2\x0c\x0d\x61\xad\x02\x65" |
| 20131 | "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" |
| 20132 | "\x52\xc6\x51\xd3\x31\x74\xbe\x51" |
| 20133 | "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" |
| 20134 | "\x88\xed\xe8\x21\x03\xa2\x52\xd8" |
| 20135 | "\xa7\x50\xe8\x76\x8d\xef\xff\xed" |
| 20136 | "\x91\x22\x81\x0a\xae\xb9\x9f\x91" |
| 20137 | "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" |
| 20138 | "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" |
| 20139 | "\x13\x32\xe4\xca\x60\x48\x2a\x4b" |
| 20140 | "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" |
| 20141 | "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" |
| 20142 | "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" |
| 20143 | "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" |
| 20144 | "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" |
| 20145 | "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" |
| 20146 | "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" |
| 20147 | "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" |
| 20148 | "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" |
| 20149 | "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" |
| 20150 | "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" |
| 20151 | "\x1e\x08\x29\x85\x16\xe2\xc9\xed" |
| 20152 | "\x03\xff\x3c\x1b\x78\x60\xf6\xde" |
| 20153 | "\x76\xd4\xce\xcd\x94\xc8\x11\x98" |
| 20154 | "\x55\xef\x52\x97\xca\x67\xe9\xf3" |
| 20155 | "\xe7\xff\x72\xb1\xe9\x97\x85\xca" |
| 20156 | "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" |
| 20157 | "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" |
| 20158 | "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" |
| 20159 | "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" |
| 20160 | "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" |
| 20161 | "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" |
| 20162 | "\x99\x02\x7a\x78\x57\x2a\xee\xbd" |
| 20163 | "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" |
| 20164 | "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" |
| 20165 | "\x18\x84\x69\x77\xae\x11\x9f\x7a" |
| 20166 | "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" |
| 20167 | "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" |
| 20168 | "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" |
| 20169 | "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" |
| 20170 | "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" |
| 20171 | "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" |
| 20172 | "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" |
| 20173 | "\x44\x92\x77\xdb\xd4\x77\xef\x2c" |
| 20174 | "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" |
| 20175 | "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" |
| 20176 | "\xf2\x62\x73\x57\x79\xa4\x18\xf2" |
| 20177 | "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" |
| 20178 | "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", |
| 20179 | .ilen = 512, |
| 20180 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 20181 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 20182 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 20183 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 20184 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 20185 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 20186 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 20187 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 20188 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 20189 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 20190 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 20191 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 20192 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 20193 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 20194 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 20195 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 20196 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 20197 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 20198 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 20199 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 20200 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 20201 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 20202 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 20203 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 20204 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 20205 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 20206 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 20207 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 20208 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 20209 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 20210 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20211 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 20212 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 20213 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 20214 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 20215 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 20216 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 20217 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 20218 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 20219 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 20220 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 20221 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 20222 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 20223 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 20224 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 20225 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 20226 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 20227 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 20228 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 20229 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 20230 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 20231 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 20232 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 20233 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 20234 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 20235 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 20236 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 20237 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 20238 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 20239 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 20240 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 20241 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 20242 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20243 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 20244 | .rlen = 512, |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 20245 | }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ |
| 20246 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 20247 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 20248 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 20249 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 20250 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 20251 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 20252 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 20253 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 20254 | .klen = 64, |
| 20255 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 20256 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 20257 | .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" |
| 20258 | "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" |
| 20259 | "\xea\x00\x80\x3f\x5e\x48\x23\x57" |
| 20260 | "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" |
| 20261 | "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" |
| 20262 | "\x66\xb3\x17\xf9\xac\x68\x3f\x44" |
| 20263 | "\x68\x0a\x86\xac\x35\xad\xfc\x33" |
| 20264 | "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" |
| 20265 | "\x57\x76\x92\x6c\x49\xa3\x09\x5e" |
| 20266 | "\xb1\x08\xfd\x10\x98\xba\xec\x70" |
| 20267 | "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" |
| 20268 | "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" |
| 20269 | "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" |
| 20270 | "\xae\xba\x12\x29\x61\xd0\x3a\x75" |
| 20271 | "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" |
| 20272 | "\x00\x02\x08\x87\x89\x14\x29\xca" |
| 20273 | "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" |
| 20274 | "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" |
| 20275 | "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" |
| 20276 | "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" |
| 20277 | "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" |
| 20278 | "\x21\xc7\x90\xdf\xe1\xde\x18\x34" |
| 20279 | "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" |
| 20280 | "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" |
| 20281 | "\x93\xec\x05\xc5\x2e\x04\x93\xef" |
| 20282 | "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" |
| 20283 | "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" |
| 20284 | "\x84\x14\x73\xd1\xa8\xcc\x81\xec" |
| 20285 | "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" |
| 20286 | "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" |
| 20287 | "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" |
| 20288 | "\x17\xb6\xba\x02\x46\x9a\x02\x0a" |
| 20289 | "\x84\xe1\x8e\x8f\x84\x25\x20\x70" |
| 20290 | "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" |
| 20291 | "\xbc\x48\x14\x57\x77\x8f\x61\x60" |
| 20292 | "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" |
| 20293 | "\x50\x5e\xb3\x09\x32\x6d\x68\x37" |
| 20294 | "\x8f\x83\x74\x59\x5c\x84\x9d\x84" |
| 20295 | "\xf4\xc3\x33\xec\x44\x23\x88\x51" |
| 20296 | "\x43\xcb\x47\xbd\x71\xc5\xed\xae" |
| 20297 | "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" |
| 20298 | "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" |
| 20299 | "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" |
| 20300 | "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" |
| 20301 | "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" |
| 20302 | "\x84\xc5\x87\x54\xcc\xe2\x94\x52" |
| 20303 | "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" |
| 20304 | "\x92\x5f\xed\xc4\xae\x74\xff\xac" |
| 20305 | "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" |
| 20306 | "\x79\xda\x9a\x41\x0e\x44\x50\xe0" |
| 20307 | "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" |
| 20308 | "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" |
| 20309 | "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" |
| 20310 | "\x94\x30\x54\xff\x84\x01\x14\x93" |
| 20311 | "\xc2\x7b\x34\x29\xea\xed\xb4\xed" |
| 20312 | "\x53\x76\x44\x1a\x77\xed\x43\x85" |
| 20313 | "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" |
| 20314 | "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" |
| 20315 | "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" |
| 20316 | "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" |
| 20317 | "\x77\x3d\xad\x38\x01\x4b\xd2\x09" |
| 20318 | "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" |
| 20319 | "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" |
| 20320 | "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", |
| 20321 | .ilen = 512, |
| 20322 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 20323 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 20324 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 20325 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 20326 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 20327 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 20328 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 20329 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 20330 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 20331 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 20332 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 20333 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 20334 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 20335 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 20336 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 20337 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 20338 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 20339 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 20340 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 20341 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 20342 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 20343 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 20344 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 20345 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 20346 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 20347 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 20348 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 20349 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 20350 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 20351 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 20352 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20353 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 20354 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 20355 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 20356 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 20357 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 20358 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 20359 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 20360 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 20361 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 20362 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 20363 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 20364 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 20365 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 20366 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 20367 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 20368 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 20369 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 20370 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 20371 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 20372 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 20373 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 20374 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 20375 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 20376 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 20377 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 20378 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 20379 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 20380 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 20381 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 20382 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 20383 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 20384 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20385 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 20386 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 20387 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 20388 | .np = 3, |
| 20389 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 20390 | } |
| 20391 | }; |
| 20392 | |
| 20393 | |
| 20394 | static struct cipher_testvec aes_ctr_enc_tv_template[] = { |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 20395 | { /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 20396 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 20397 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 20398 | .klen = 16, |
| 20399 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20400 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 20401 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 20402 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 20403 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 20404 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 20405 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 20406 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 20407 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 20408 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 20409 | .ilen = 64, |
| 20410 | .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" |
| 20411 | "\x1b\xef\x68\x64\x99\x0d\xb6\xce" |
| 20412 | "\x98\x06\xf6\x6b\x79\x70\xfd\xff" |
| 20413 | "\x86\x17\x18\x7b\xb9\xff\xfd\xff" |
| 20414 | "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" |
| 20415 | "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" |
| 20416 | "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" |
| 20417 | "\x79\x21\x70\xa0\xf3\x00\x9c\xee", |
| 20418 | .rlen = 64, |
| 20419 | }, { |
| 20420 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 20421 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 20422 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 20423 | .klen = 24, |
| 20424 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20425 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 20426 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 20427 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 20428 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 20429 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 20430 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 20431 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 20432 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 20433 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 20434 | .ilen = 64, |
| 20435 | .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" |
| 20436 | "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" |
| 20437 | "\x09\x03\x39\xec\x0a\xa6\xfa\xef" |
| 20438 | "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" |
| 20439 | "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" |
| 20440 | "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" |
| 20441 | "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" |
| 20442 | "\x5a\x97\xda\xec\x58\xc6\xb0\x50", |
| 20443 | .rlen = 64, |
| 20444 | }, { |
| 20445 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 20446 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 20447 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 20448 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 20449 | .klen = 32, |
| 20450 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20451 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 20452 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 20453 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 20454 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 20455 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 20456 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 20457 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 20458 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 20459 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 20460 | .ilen = 64, |
| 20461 | .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" |
| 20462 | "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" |
| 20463 | "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" |
| 20464 | "\xca\x84\xe9\x90\xca\xca\xf5\xc5" |
| 20465 | "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" |
| 20466 | "\xe8\x70\x17\xba\x2d\x84\x98\x8d" |
| 20467 | "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" |
| 20468 | "\x13\xc2\xdd\x08\x45\x79\x41\xa6", |
| 20469 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 20470 | }, { /* Generated with Crypto++ */ |
| 20471 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 20472 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 20473 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 20474 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 20475 | .klen = 32, |
| 20476 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 20477 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 20478 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 20479 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 20480 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 20481 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 20482 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 20483 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 20484 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 20485 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 20486 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 20487 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 20488 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 20489 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 20490 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 20491 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 20492 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 20493 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 20494 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 20495 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 20496 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 20497 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 20498 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 20499 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 20500 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 20501 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 20502 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 20503 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 20504 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 20505 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 20506 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 20507 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 20508 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 20509 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 20510 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 20511 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 20512 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 20513 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 20514 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 20515 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 20516 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 20517 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 20518 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 20519 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 20520 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 20521 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 20522 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 20523 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 20524 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 20525 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 20526 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 20527 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 20528 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 20529 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 20530 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 20531 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 20532 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 20533 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 20534 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 20535 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 20536 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 20537 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 20538 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 20539 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 20540 | .ilen = 496, |
| 20541 | .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF" |
| 20542 | "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53" |
| 20543 | "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9" |
| 20544 | "\x69\x95\x35\x98\x8D\x4D\x8C\xC1" |
| 20545 | "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2" |
| 20546 | "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE" |
| 20547 | "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB" |
| 20548 | "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB" |
| 20549 | "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81" |
| 20550 | "\x47\x61\x12\x4D\xC2\x8C\xFA\x78" |
| 20551 | "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC" |
| 20552 | "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B" |
| 20553 | "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D" |
| 20554 | "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74" |
| 20555 | "\x32\x41\x1F\x31\x9C\x08\xA2\x5D" |
| 20556 | "\x67\xEB\x72\x1D\xF8\xE7\x70\x54" |
| 20557 | "\x34\x4B\x31\x69\x84\x66\x96\x44" |
| 20558 | "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9" |
| 20559 | "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF" |
| 20560 | "\x16\x5C\x5F\x79\x34\x52\x54\xFE" |
| 20561 | "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06" |
| 20562 | "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B" |
| 20563 | "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC" |
| 20564 | "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD" |
| 20565 | "\x3C\x98\x08\x12\xEC\xAA\x9E\x11" |
| 20566 | "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72" |
| 20567 | "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56" |
| 20568 | "\xD5\x45\x16\xD2\xAF\x13\x66\xF7" |
| 20569 | "\x8C\x67\xAC\x79\xB2\xAF\x56\x27" |
| 20570 | "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1" |
| 20571 | "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4" |
| 20572 | "\x42\xC8\x21\x08\x16\xF7\x01\xD7" |
| 20573 | "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4" |
| 20574 | "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3" |
| 20575 | "\x35\x1C\x82\xB9\x10\xF9\x42\xA1" |
| 20576 | "\xFC\x74\x9B\x44\x4F\x25\x02\xE3" |
| 20577 | "\x08\xF5\xD4\x32\x39\x08\x11\xE8" |
| 20578 | "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B" |
| 20579 | "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E" |
| 20580 | "\x0D\x07\x19\xDB\x67\xD7\x98\x91" |
| 20581 | "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33" |
| 20582 | "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA" |
| 20583 | "\x85\x99\x22\xE8\x91\x38\x70\x83" |
| 20584 | "\x93\x01\x24\x6C\xFA\x9A\xB9\x07" |
| 20585 | "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16" |
| 20586 | "\x2F\x69\xEE\x84\x36\x44\x76\x98" |
| 20587 | "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B" |
| 20588 | "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D" |
| 20589 | "\xAC\xED\x18\x1F\x50\xA4\xF5\x98" |
| 20590 | "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6" |
| 20591 | "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3" |
| 20592 | "\x1B\x39\x72\xD5\x26\xCA\x04\xE0" |
| 20593 | "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C" |
| 20594 | "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA" |
| 20595 | "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D" |
| 20596 | "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC" |
| 20597 | "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63" |
| 20598 | "\xEF\xDC\xC9\x79\x10\x26\xE8\x61" |
| 20599 | "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63" |
| 20600 | "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B" |
| 20601 | "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE" |
| 20602 | "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51", |
| 20603 | .rlen = 496, |
| 20604 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 20605 | .np = 3, |
| 20606 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 20607 | }, { /* Generated with Crypto++ */ |
| 20608 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 20609 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 20610 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 20611 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 20612 | .klen = 32, |
| 20613 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 20614 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 20615 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 20616 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 20617 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 20618 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 20619 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 20620 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 20621 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 20622 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 20623 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 20624 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 20625 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 20626 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 20627 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 20628 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 20629 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 20630 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 20631 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 20632 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 20633 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 20634 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 20635 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 20636 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 20637 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 20638 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 20639 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 20640 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 20641 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 20642 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 20643 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 20644 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 20645 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 20646 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 20647 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 20648 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 20649 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 20650 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 20651 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 20652 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 20653 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 20654 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 20655 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 20656 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 20657 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 20658 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 20659 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 20660 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 20661 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 20662 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 20663 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 20664 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 20665 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 20666 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 20667 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 20668 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 20669 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 20670 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 20671 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 20672 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 20673 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 20674 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 20675 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 20676 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12" |
| 20677 | "\x7B\xE4\x4D", |
| 20678 | .ilen = 499, |
| 20679 | .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2" |
| 20680 | "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5" |
| 20681 | "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44" |
| 20682 | "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE" |
| 20683 | "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F" |
| 20684 | "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E" |
| 20685 | "\x76\xEA\x06\x32\x23\xF3\x59\x2E" |
| 20686 | "\x75\xDE\x71\x86\x3C\x98\x23\x44" |
| 20687 | "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD" |
| 20688 | "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04" |
| 20689 | "\x70\x8B\x92\x55\x23\xE9\x6A\x3A" |
| 20690 | "\x78\x7A\x1B\x10\x85\x52\x9C\x12" |
| 20691 | "\xE4\x55\x81\x21\xCE\x53\xD0\x3B" |
| 20692 | "\x63\x77\x2C\x74\xD1\xF5\x60\xF3" |
| 20693 | "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD" |
| 20694 | "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E" |
| 20695 | "\xA8\x28\x69\x65\x31\xE1\x45\x83" |
| 20696 | "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21" |
| 20697 | "\xCD\x5D\x0F\x15\xB7\x93\x07\x26" |
| 20698 | "\xB0\x65\x6D\x91\x90\x23\x7A\xC6" |
| 20699 | "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E" |
| 20700 | "\xC6\x91\x83\x20\x92\x4D\x63\x7A" |
| 20701 | "\x45\x18\x18\x74\x19\xAD\x71\x01" |
| 20702 | "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46" |
| 20703 | "\xC9\x73\x7A\xF9\x02\x95\xF4\x07" |
| 20704 | "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C" |
| 20705 | "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8" |
| 20706 | "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D" |
| 20707 | "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7" |
| 20708 | "\xE8\x61\xE5\x95\x52\x1E\x3E\x49" |
| 20709 | "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD" |
| 20710 | "\xDD\x15\x3B\x20\x59\x24\xFF\xB0" |
| 20711 | "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5" |
| 20712 | "\x15\xF0\x61\x4F\xAE\x89\x10\x58" |
| 20713 | "\x5A\x33\x95\x52\x2A\xB5\x77\x9C" |
| 20714 | "\xA5\x43\x80\x40\x27\x2D\xAE\xD9" |
| 20715 | "\x3F\xE0\x80\x94\x78\x79\xCB\x7E" |
| 20716 | "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE" |
| 20717 | "\x0B\x05\x2A\x82\x99\x58\xBB\x7A" |
| 20718 | "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93" |
| 20719 | "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70" |
| 20720 | "\x16\xAE\x35\xC5\x52\x0F\x46\x1F" |
| 20721 | "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F" |
| 20722 | "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6" |
| 20723 | "\xF6\xB8\x32\xCD\xD6\x85\x73\x60" |
| 20724 | "\x59\x20\xE7\x55\x0E\x91\xE2\x0C" |
| 20725 | "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2" |
| 20726 | "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D" |
| 20727 | "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7" |
| 20728 | "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D" |
| 20729 | "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4" |
| 20730 | "\xFB\x81\x5D\xF7\x96\x96\xD4\x50" |
| 20731 | "\x89\xA7\xF6\xB9\x67\x76\x40\x9E" |
| 20732 | "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F" |
| 20733 | "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D" |
| 20734 | "\x87\x52\xA4\x91\xA9\xD7\xA9\x51" |
| 20735 | "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D" |
| 20736 | "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D" |
| 20737 | "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37" |
| 20738 | "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A" |
| 20739 | "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11" |
| 20740 | "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76" |
| 20741 | "\xFB\xF2\x3F", |
| 20742 | .rlen = 499, |
| 20743 | .also_non_np = 1, |
| 20744 | .np = 2, |
| 20745 | .tap = { 499 - 16, 16 }, |
| 20746 | }, |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 20747 | }; |
| 20748 | |
| 20749 | static struct cipher_testvec aes_ctr_dec_tv_template[] = { |
| 20750 | { /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 20751 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 20752 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 20753 | .klen = 16, |
| 20754 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20755 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 20756 | .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" |
| 20757 | "\x1b\xef\x68\x64\x99\x0d\xb6\xce" |
| 20758 | "\x98\x06\xf6\x6b\x79\x70\xfd\xff" |
| 20759 | "\x86\x17\x18\x7b\xb9\xff\xfd\xff" |
| 20760 | "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" |
| 20761 | "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" |
| 20762 | "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" |
| 20763 | "\x79\x21\x70\xa0\xf3\x00\x9c\xee", |
| 20764 | .ilen = 64, |
| 20765 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 20766 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 20767 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 20768 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 20769 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 20770 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 20771 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 20772 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 20773 | .rlen = 64, |
| 20774 | }, { |
| 20775 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 20776 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 20777 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 20778 | .klen = 24, |
| 20779 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20780 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 20781 | .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" |
| 20782 | "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" |
| 20783 | "\x09\x03\x39\xec\x0a\xa6\xfa\xef" |
| 20784 | "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" |
| 20785 | "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" |
| 20786 | "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" |
| 20787 | "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" |
| 20788 | "\x5a\x97\xda\xec\x58\xc6\xb0\x50", |
| 20789 | .ilen = 64, |
| 20790 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 20791 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 20792 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 20793 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 20794 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 20795 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 20796 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 20797 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 20798 | .rlen = 64, |
| 20799 | }, { |
| 20800 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 20801 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 20802 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 20803 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 20804 | .klen = 32, |
| 20805 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 20806 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 20807 | .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" |
| 20808 | "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" |
| 20809 | "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" |
| 20810 | "\xca\x84\xe9\x90\xca\xca\xf5\xc5" |
| 20811 | "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" |
| 20812 | "\xe8\x70\x17\xba\x2d\x84\x98\x8d" |
| 20813 | "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" |
| 20814 | "\x13\xc2\xdd\x08\x45\x79\x41\xa6", |
| 20815 | .ilen = 64, |
| 20816 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 20817 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 20818 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 20819 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 20820 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 20821 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 20822 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 20823 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 20824 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 20825 | }, { /* Generated with Crypto++ */ |
| 20826 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 20827 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 20828 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 20829 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 20830 | .klen = 32, |
| 20831 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 20832 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 20833 | .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF" |
| 20834 | "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53" |
| 20835 | "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9" |
| 20836 | "\x69\x95\x35\x98\x8D\x4D\x8C\xC1" |
| 20837 | "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2" |
| 20838 | "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE" |
| 20839 | "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB" |
| 20840 | "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB" |
| 20841 | "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81" |
| 20842 | "\x47\x61\x12\x4D\xC2\x8C\xFA\x78" |
| 20843 | "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC" |
| 20844 | "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B" |
| 20845 | "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D" |
| 20846 | "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74" |
| 20847 | "\x32\x41\x1F\x31\x9C\x08\xA2\x5D" |
| 20848 | "\x67\xEB\x72\x1D\xF8\xE7\x70\x54" |
| 20849 | "\x34\x4B\x31\x69\x84\x66\x96\x44" |
| 20850 | "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9" |
| 20851 | "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF" |
| 20852 | "\x16\x5C\x5F\x79\x34\x52\x54\xFE" |
| 20853 | "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06" |
| 20854 | "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B" |
| 20855 | "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC" |
| 20856 | "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD" |
| 20857 | "\x3C\x98\x08\x12\xEC\xAA\x9E\x11" |
| 20858 | "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72" |
| 20859 | "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56" |
| 20860 | "\xD5\x45\x16\xD2\xAF\x13\x66\xF7" |
| 20861 | "\x8C\x67\xAC\x79\xB2\xAF\x56\x27" |
| 20862 | "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1" |
| 20863 | "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4" |
| 20864 | "\x42\xC8\x21\x08\x16\xF7\x01\xD7" |
| 20865 | "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4" |
| 20866 | "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3" |
| 20867 | "\x35\x1C\x82\xB9\x10\xF9\x42\xA1" |
| 20868 | "\xFC\x74\x9B\x44\x4F\x25\x02\xE3" |
| 20869 | "\x08\xF5\xD4\x32\x39\x08\x11\xE8" |
| 20870 | "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B" |
| 20871 | "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E" |
| 20872 | "\x0D\x07\x19\xDB\x67\xD7\x98\x91" |
| 20873 | "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33" |
| 20874 | "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA" |
| 20875 | "\x85\x99\x22\xE8\x91\x38\x70\x83" |
| 20876 | "\x93\x01\x24\x6C\xFA\x9A\xB9\x07" |
| 20877 | "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16" |
| 20878 | "\x2F\x69\xEE\x84\x36\x44\x76\x98" |
| 20879 | "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B" |
| 20880 | "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D" |
| 20881 | "\xAC\xED\x18\x1F\x50\xA4\xF5\x98" |
| 20882 | "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6" |
| 20883 | "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3" |
| 20884 | "\x1B\x39\x72\xD5\x26\xCA\x04\xE0" |
| 20885 | "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C" |
| 20886 | "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA" |
| 20887 | "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D" |
| 20888 | "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC" |
| 20889 | "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63" |
| 20890 | "\xEF\xDC\xC9\x79\x10\x26\xE8\x61" |
| 20891 | "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63" |
| 20892 | "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B" |
| 20893 | "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE" |
| 20894 | "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51", |
| 20895 | .ilen = 496, |
| 20896 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 20897 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 20898 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 20899 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 20900 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 20901 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 20902 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 20903 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 20904 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 20905 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 20906 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 20907 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 20908 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 20909 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 20910 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 20911 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 20912 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 20913 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 20914 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 20915 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 20916 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 20917 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 20918 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 20919 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 20920 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 20921 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 20922 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 20923 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 20924 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 20925 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 20926 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 20927 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 20928 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 20929 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 20930 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 20931 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 20932 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 20933 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 20934 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 20935 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 20936 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 20937 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 20938 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 20939 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 20940 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 20941 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 20942 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 20943 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 20944 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 20945 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 20946 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 20947 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 20948 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 20949 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 20950 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 20951 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 20952 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 20953 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 20954 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 20955 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 20956 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 20957 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 20958 | .rlen = 496, |
| 20959 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 20960 | .np = 3, |
| 20961 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 20962 | }, { /* Generated with Crypto++ */ |
| 20963 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 20964 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 20965 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 20966 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 20967 | .klen = 32, |
| 20968 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 20969 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 20970 | .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2" |
| 20971 | "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5" |
| 20972 | "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44" |
| 20973 | "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE" |
| 20974 | "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F" |
| 20975 | "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E" |
| 20976 | "\x76\xEA\x06\x32\x23\xF3\x59\x2E" |
| 20977 | "\x75\xDE\x71\x86\x3C\x98\x23\x44" |
| 20978 | "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD" |
| 20979 | "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04" |
| 20980 | "\x70\x8B\x92\x55\x23\xE9\x6A\x3A" |
| 20981 | "\x78\x7A\x1B\x10\x85\x52\x9C\x12" |
| 20982 | "\xE4\x55\x81\x21\xCE\x53\xD0\x3B" |
| 20983 | "\x63\x77\x2C\x74\xD1\xF5\x60\xF3" |
| 20984 | "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD" |
| 20985 | "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E" |
| 20986 | "\xA8\x28\x69\x65\x31\xE1\x45\x83" |
| 20987 | "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21" |
| 20988 | "\xCD\x5D\x0F\x15\xB7\x93\x07\x26" |
| 20989 | "\xB0\x65\x6D\x91\x90\x23\x7A\xC6" |
| 20990 | "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E" |
| 20991 | "\xC6\x91\x83\x20\x92\x4D\x63\x7A" |
| 20992 | "\x45\x18\x18\x74\x19\xAD\x71\x01" |
| 20993 | "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46" |
| 20994 | "\xC9\x73\x7A\xF9\x02\x95\xF4\x07" |
| 20995 | "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C" |
| 20996 | "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8" |
| 20997 | "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D" |
| 20998 | "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7" |
| 20999 | "\xE8\x61\xE5\x95\x52\x1E\x3E\x49" |
| 21000 | "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD" |
| 21001 | "\xDD\x15\x3B\x20\x59\x24\xFF\xB0" |
| 21002 | "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5" |
| 21003 | "\x15\xF0\x61\x4F\xAE\x89\x10\x58" |
| 21004 | "\x5A\x33\x95\x52\x2A\xB5\x77\x9C" |
| 21005 | "\xA5\x43\x80\x40\x27\x2D\xAE\xD9" |
| 21006 | "\x3F\xE0\x80\x94\x78\x79\xCB\x7E" |
| 21007 | "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE" |
| 21008 | "\x0B\x05\x2A\x82\x99\x58\xBB\x7A" |
| 21009 | "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93" |
| 21010 | "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70" |
| 21011 | "\x16\xAE\x35\xC5\x52\x0F\x46\x1F" |
| 21012 | "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F" |
| 21013 | "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6" |
| 21014 | "\xF6\xB8\x32\xCD\xD6\x85\x73\x60" |
| 21015 | "\x59\x20\xE7\x55\x0E\x91\xE2\x0C" |
| 21016 | "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2" |
| 21017 | "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D" |
| 21018 | "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7" |
| 21019 | "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D" |
| 21020 | "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4" |
| 21021 | "\xFB\x81\x5D\xF7\x96\x96\xD4\x50" |
| 21022 | "\x89\xA7\xF6\xB9\x67\x76\x40\x9E" |
| 21023 | "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F" |
| 21024 | "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D" |
| 21025 | "\x87\x52\xA4\x91\xA9\xD7\xA9\x51" |
| 21026 | "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D" |
| 21027 | "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D" |
| 21028 | "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37" |
| 21029 | "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A" |
| 21030 | "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11" |
| 21031 | "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76" |
| 21032 | "\xFB\xF2\x3F", |
| 21033 | .ilen = 499, |
| 21034 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 21035 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 21036 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 21037 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 21038 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 21039 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 21040 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 21041 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 21042 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 21043 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 21044 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 21045 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 21046 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 21047 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 21048 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 21049 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 21050 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 21051 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 21052 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 21053 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 21054 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 21055 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 21056 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 21057 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 21058 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 21059 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 21060 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 21061 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 21062 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 21063 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 21064 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 21065 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 21066 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 21067 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 21068 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 21069 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 21070 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 21071 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 21072 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 21073 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 21074 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 21075 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 21076 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 21077 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 21078 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 21079 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 21080 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 21081 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 21082 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 21083 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 21084 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 21085 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 21086 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 21087 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 21088 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 21089 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 21090 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 21091 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 21092 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 21093 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 21094 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 21095 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12" |
| 21096 | "\x7B\xE4\x4D", |
| 21097 | .rlen = 499, |
| 21098 | .also_non_np = 1, |
| 21099 | .np = 2, |
| 21100 | .tap = { 499 - 16, 16 }, |
| 21101 | }, |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 21102 | }; |
| 21103 | |
| 21104 | static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 21105 | { /* From RFC 3686 */ |
| 21106 | .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" |
| 21107 | "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" |
| 21108 | "\x00\x00\x00\x30", |
| 21109 | .klen = 20, |
| 21110 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21111 | .input = "Single block msg", |
| 21112 | .ilen = 16, |
| 21113 | .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" |
| 21114 | "\x2d\x61\x75\xa3\x26\x13\x11\xb8", |
| 21115 | .rlen = 16, |
| 21116 | }, { |
| 21117 | .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" |
| 21118 | "\x43\xd6\xce\x1f\x32\x53\x91\x63" |
| 21119 | "\x00\x6c\xb6\xdb", |
| 21120 | .klen = 20, |
| 21121 | .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", |
| 21122 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 21123 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 21124 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 21125 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 21126 | .ilen = 32, |
| 21127 | .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" |
| 21128 | "\x79\x0d\x41\xee\x8e\xda\xd3\x88" |
| 21129 | "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" |
| 21130 | "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", |
| 21131 | .rlen = 32, |
| 21132 | }, { |
| 21133 | .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" |
| 21134 | "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" |
| 21135 | "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" |
| 21136 | "\x00\x00\x00\x48", |
| 21137 | .klen = 28, |
| 21138 | .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", |
| 21139 | .input = "Single block msg", |
| 21140 | .ilen = 16, |
| 21141 | .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" |
| 21142 | "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", |
| 21143 | .rlen = 16, |
| 21144 | }, { |
| 21145 | .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" |
| 21146 | "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" |
| 21147 | "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" |
| 21148 | "\x00\x96\xb0\x3b", |
| 21149 | .klen = 28, |
| 21150 | .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", |
| 21151 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 21152 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 21153 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 21154 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 21155 | .ilen = 32, |
| 21156 | .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32" |
| 21157 | "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" |
| 21158 | "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" |
| 21159 | "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", |
| 21160 | .rlen = 32, |
| 21161 | }, { |
| 21162 | .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" |
| 21163 | "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" |
| 21164 | "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" |
| 21165 | "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" |
| 21166 | "\x00\x00\x00\x60", |
| 21167 | .klen = 36, |
| 21168 | .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", |
| 21169 | .input = "Single block msg", |
| 21170 | .ilen = 16, |
| 21171 | .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" |
| 21172 | "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", |
| 21173 | .rlen = 16, |
| 21174 | }, { |
| 21175 | .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" |
| 21176 | "\x07\x96\x36\x58\x79\xef\xf8\x86" |
| 21177 | "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" |
| 21178 | "\x4b\x50\x59\x0c\x87\xa2\x38\x84" |
| 21179 | "\x00\xfa\xac\x24", |
| 21180 | .klen = 36, |
| 21181 | .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", |
| 21182 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 21183 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 21184 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 21185 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 21186 | .ilen = 32, |
| 21187 | .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" |
| 21188 | "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" |
| 21189 | "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" |
| 21190 | "\x55\x30\x83\x1d\x93\x44\xaf\x1c", |
| 21191 | .rlen = 32, |
| 21192 | }, { |
| 21193 | // generated using Crypto++ |
| 21194 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 21195 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 21196 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 21197 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 21198 | "\x00\x00\x00\x00", |
| 21199 | .klen = 32 + 4, |
| 21200 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21201 | .input = |
| 21202 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 21203 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 21204 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 21205 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 21206 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 21207 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 21208 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 21209 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 21210 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 21211 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 21212 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 21213 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 21214 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 21215 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 21216 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 21217 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 21218 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 21219 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 21220 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 21221 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 21222 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 21223 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 21224 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 21225 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 21226 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 21227 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 21228 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 21229 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 21230 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 21231 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 21232 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 21233 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 21234 | "\x00\x03\x06\x09\x0c\x0f\x12\x15" |
| 21235 | "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" |
| 21236 | "\x30\x33\x36\x39\x3c\x3f\x42\x45" |
| 21237 | "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" |
| 21238 | "\x60\x63\x66\x69\x6c\x6f\x72\x75" |
| 21239 | "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" |
| 21240 | "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" |
| 21241 | "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" |
| 21242 | "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" |
| 21243 | "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" |
| 21244 | "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" |
| 21245 | "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" |
| 21246 | "\x20\x23\x26\x29\x2c\x2f\x32\x35" |
| 21247 | "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" |
| 21248 | "\x50\x53\x56\x59\x5c\x5f\x62\x65" |
| 21249 | "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" |
| 21250 | "\x80\x83\x86\x89\x8c\x8f\x92\x95" |
| 21251 | "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" |
| 21252 | "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" |
| 21253 | "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" |
| 21254 | "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" |
| 21255 | "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" |
| 21256 | "\x10\x13\x16\x19\x1c\x1f\x22\x25" |
| 21257 | "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" |
| 21258 | "\x40\x43\x46\x49\x4c\x4f\x52\x55" |
| 21259 | "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" |
| 21260 | "\x70\x73\x76\x79\x7c\x7f\x82\x85" |
| 21261 | "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" |
| 21262 | "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" |
| 21263 | "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" |
| 21264 | "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" |
| 21265 | "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" |
| 21266 | "\x00\x05\x0a\x0f\x14\x19\x1e\x23" |
| 21267 | "\x28\x2d\x32\x37\x3c\x41\x46\x4b" |
| 21268 | "\x50\x55\x5a\x5f\x64\x69\x6e\x73" |
| 21269 | "\x78\x7d\x82\x87\x8c\x91\x96\x9b" |
| 21270 | "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" |
| 21271 | "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" |
| 21272 | "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" |
| 21273 | "\x18\x1d\x22\x27\x2c\x31\x36\x3b" |
| 21274 | "\x40\x45\x4a\x4f\x54\x59\x5e\x63" |
| 21275 | "\x68\x6d\x72\x77\x7c\x81\x86\x8b" |
| 21276 | "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" |
| 21277 | "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" |
| 21278 | "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" |
| 21279 | "\x08\x0d\x12\x17\x1c\x21\x26\x2b" |
| 21280 | "\x30\x35\x3a\x3f\x44\x49\x4e\x53" |
| 21281 | "\x58\x5d\x62\x67\x6c\x71\x76\x7b" |
| 21282 | "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" |
| 21283 | "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" |
| 21284 | "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" |
| 21285 | "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" |
| 21286 | "\x20\x25\x2a\x2f\x34\x39\x3e\x43" |
| 21287 | "\x48\x4d\x52\x57\x5c\x61\x66\x6b" |
| 21288 | "\x70\x75\x7a\x7f\x84\x89\x8e\x93" |
| 21289 | "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" |
| 21290 | "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" |
| 21291 | "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" |
| 21292 | "\x10\x15\x1a\x1f\x24\x29\x2e\x33" |
| 21293 | "\x38\x3d\x42\x47\x4c\x51\x56\x5b" |
| 21294 | "\x60\x65\x6a\x6f\x74\x79\x7e\x83" |
| 21295 | "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" |
| 21296 | "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" |
| 21297 | "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" |
| 21298 | "\x00\x07\x0e\x15\x1c\x23\x2a\x31" |
| 21299 | "\x38\x3f\x46\x4d\x54\x5b\x62\x69" |
| 21300 | "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" |
| 21301 | "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" |
| 21302 | "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" |
| 21303 | "\x18\x1f\x26\x2d\x34\x3b\x42\x49" |
| 21304 | "\x50\x57\x5e\x65\x6c\x73\x7a\x81" |
| 21305 | "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" |
| 21306 | "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" |
| 21307 | "\xf8\xff\x06\x0d\x14\x1b\x22\x29" |
| 21308 | "\x30\x37\x3e\x45\x4c\x53\x5a\x61" |
| 21309 | "\x68\x6f\x76\x7d\x84\x8b\x92\x99" |
| 21310 | "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" |
| 21311 | "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" |
| 21312 | "\x10\x17\x1e\x25\x2c\x33\x3a\x41" |
| 21313 | "\x48\x4f\x56\x5d\x64\x6b\x72\x79" |
| 21314 | "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" |
| 21315 | "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" |
| 21316 | "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" |
| 21317 | "\x28\x2f\x36\x3d\x44\x4b\x52\x59" |
| 21318 | "\x60\x67\x6e\x75\x7c\x83\x8a\x91" |
| 21319 | "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" |
| 21320 | "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" |
| 21321 | "\x08\x0f\x16\x1d\x24\x2b\x32\x39" |
| 21322 | "\x40\x47\x4e\x55\x5c\x63\x6a\x71" |
| 21323 | "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" |
| 21324 | "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" |
| 21325 | "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" |
| 21326 | "\x20\x27\x2e\x35\x3c\x43\x4a\x51" |
| 21327 | "\x58\x5f\x66\x6d\x74\x7b\x82\x89" |
| 21328 | "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" |
| 21329 | "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" |
| 21330 | "\x00\x09\x12\x1b\x24\x2d\x36\x3f" |
| 21331 | "\x48\x51\x5a\x63\x6c\x75\x7e\x87" |
| 21332 | "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" |
| 21333 | "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" |
| 21334 | "\x20\x29\x32\x3b\x44\x4d\x56\x5f" |
| 21335 | "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" |
| 21336 | "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" |
| 21337 | "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" |
| 21338 | "\x40\x49\x52\x5b\x64\x6d\x76\x7f" |
| 21339 | "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" |
| 21340 | "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" |
| 21341 | "\x18\x21\x2a\x33\x3c\x45\x4e\x57" |
| 21342 | "\x60\x69\x72\x7b\x84\x8d\x96\x9f" |
| 21343 | "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" |
| 21344 | "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" |
| 21345 | "\x38\x41\x4a\x53\x5c\x65\x6e\x77" |
| 21346 | "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" |
| 21347 | "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" |
| 21348 | "\x10\x19\x22\x2b\x34\x3d\x46\x4f" |
| 21349 | "\x58\x61\x6a\x73\x7c\x85\x8e\x97" |
| 21350 | "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" |
| 21351 | "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" |
| 21352 | "\x30\x39\x42\x4b\x54\x5d\x66\x6f" |
| 21353 | "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" |
| 21354 | "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" |
| 21355 | "\x08\x11\x1a\x23\x2c\x35\x3e\x47" |
| 21356 | "\x50\x59\x62\x6b\x74\x7d\x86\x8f" |
| 21357 | "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" |
| 21358 | "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" |
| 21359 | "\x28\x31\x3a\x43\x4c\x55\x5e\x67" |
| 21360 | "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" |
| 21361 | "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" |
| 21362 | "\x00\x0b\x16\x21\x2c\x37\x42\x4d" |
| 21363 | "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" |
| 21364 | "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" |
| 21365 | "\x08\x13\x1e\x29\x34\x3f\x4a\x55" |
| 21366 | "\x60\x6b\x76\x81\x8c\x97\xa2\xad" |
| 21367 | "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" |
| 21368 | "\x10\x1b\x26\x31\x3c\x47\x52\x5d" |
| 21369 | "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" |
| 21370 | "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" |
| 21371 | "\x18\x23\x2e\x39\x44\x4f\x5a\x65" |
| 21372 | "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" |
| 21373 | "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" |
| 21374 | "\x20\x2b\x36\x41\x4c\x57\x62\x6d" |
| 21375 | "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" |
| 21376 | "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" |
| 21377 | "\x28\x33\x3e\x49\x54\x5f\x6a\x75" |
| 21378 | "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" |
| 21379 | "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" |
| 21380 | "\x30\x3b\x46\x51\x5c\x67\x72\x7d" |
| 21381 | "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" |
| 21382 | "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" |
| 21383 | "\x38\x43\x4e\x59\x64\x6f\x7a\x85" |
| 21384 | "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" |
| 21385 | "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" |
| 21386 | "\x40\x4b\x56\x61\x6c\x77\x82\x8d" |
| 21387 | "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" |
| 21388 | "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" |
| 21389 | "\x48\x53\x5e\x69\x74\x7f\x8a\x95" |
| 21390 | "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" |
| 21391 | "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" |
| 21392 | "\x50\x5b\x66\x71\x7c\x87\x92\x9d" |
| 21393 | "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" |
| 21394 | "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" |
| 21395 | "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" |
| 21396 | "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" |
| 21397 | "\x38\x45\x52\x5f\x6c\x79\x86\x93" |
| 21398 | "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" |
| 21399 | "\x08\x15\x22\x2f\x3c\x49\x56\x63" |
| 21400 | "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" |
| 21401 | "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" |
| 21402 | "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" |
| 21403 | "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" |
| 21404 | "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" |
| 21405 | "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" |
| 21406 | "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" |
| 21407 | "\x48\x55\x62\x6f\x7c\x89\x96\xa3" |
| 21408 | "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" |
| 21409 | "\x18\x25\x32\x3f\x4c\x59\x66\x73" |
| 21410 | "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" |
| 21411 | "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" |
| 21412 | "\x50\x5d\x6a\x77\x84\x91\x9e\xab" |
| 21413 | "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" |
| 21414 | "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" |
| 21415 | "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" |
| 21416 | "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" |
| 21417 | "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" |
| 21418 | "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" |
| 21419 | "\x28\x35\x42\x4f\x5c\x69\x76\x83" |
| 21420 | "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" |
| 21421 | "\xf8\x05\x12\x1f\x2c\x39\x46\x53" |
| 21422 | "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" |
| 21423 | "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" |
| 21424 | "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" |
| 21425 | "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" |
| 21426 | "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" |
| 21427 | "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" |
| 21428 | "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" |
| 21429 | "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" |
| 21430 | "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" |
| 21431 | "\x58\x67\x76\x85\x94\xa3\xb2\xc1" |
| 21432 | "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" |
| 21433 | "\x48\x57\x66\x75\x84\x93\xa2\xb1" |
| 21434 | "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" |
| 21435 | "\x38\x47\x56\x65\x74\x83\x92\xa1" |
| 21436 | "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" |
| 21437 | "\x28\x37\x46\x55\x64\x73\x82\x91" |
| 21438 | "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" |
| 21439 | "\x18\x27\x36\x45\x54\x63\x72\x81" |
| 21440 | "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" |
| 21441 | "\x08\x17\x26\x35\x44\x53\x62\x71" |
| 21442 | "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" |
| 21443 | "\xf8\x07\x16\x25\x34\x43\x52\x61" |
| 21444 | "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" |
| 21445 | "\xe8\xf7\x06\x15\x24\x33\x42\x51" |
| 21446 | "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" |
| 21447 | "\xd8\xe7\xf6\x05\x14\x23\x32\x41" |
| 21448 | "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" |
| 21449 | "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" |
| 21450 | "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" |
| 21451 | "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" |
| 21452 | "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" |
| 21453 | "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" |
| 21454 | "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" |
| 21455 | "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" |
| 21456 | "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" |
| 21457 | "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" |
| 21458 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 21459 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" |
| 21460 | "\x10\x21\x32\x43\x54\x65\x76\x87" |
| 21461 | "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" |
| 21462 | "\x20\x31\x42\x53\x64\x75\x86\x97" |
| 21463 | "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" |
| 21464 | "\x30\x41\x52\x63\x74\x85\x96\xa7" |
| 21465 | "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" |
| 21466 | "\x40\x51\x62\x73\x84\x95\xa6\xb7" |
| 21467 | "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" |
| 21468 | "\x50\x61\x72\x83\x94\xa5\xb6\xc7" |
| 21469 | "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" |
| 21470 | "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" |
| 21471 | "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" |
| 21472 | "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" |
| 21473 | "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" |
| 21474 | "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" |
| 21475 | "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" |
| 21476 | "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" |
| 21477 | "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" |
| 21478 | "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" |
| 21479 | "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" |
| 21480 | "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" |
| 21481 | "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" |
| 21482 | "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" |
| 21483 | "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" |
| 21484 | "\xd0\xe1\xf2\x03\x14\x25\x36\x47" |
| 21485 | "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" |
| 21486 | "\xe0\xf1\x02\x13\x24\x35\x46\x57" |
| 21487 | "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" |
| 21488 | "\xf0\x01\x12\x23\x34\x45\x56\x67" |
| 21489 | "\x78\x89\x9a\xab\xbc\xcd\xde\xef" |
| 21490 | "\x00\x13\x26\x39\x4c\x5f\x72\x85" |
| 21491 | "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" |
| 21492 | "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" |
| 21493 | "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" |
| 21494 | "\x60\x73\x86\x99\xac\xbf\xd2\xe5" |
| 21495 | "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" |
| 21496 | "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" |
| 21497 | "\x28\x3b\x4e\x61\x74\x87\x9a\xad" |
| 21498 | "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" |
| 21499 | "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" |
| 21500 | "\xf0\x03\x16\x29\x3c\x4f\x62\x75" |
| 21501 | "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" |
| 21502 | "\x20\x33\x46\x59\x6c\x7f\x92\xa5" |
| 21503 | "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" |
| 21504 | "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" |
| 21505 | "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" |
| 21506 | "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" |
| 21507 | "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" |
| 21508 | "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" |
| 21509 | "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" |
| 21510 | "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" |
| 21511 | "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" |
| 21512 | "\x10\x23\x36\x49\x5c\x6f\x82\x95" |
| 21513 | "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" |
| 21514 | "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" |
| 21515 | "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" |
| 21516 | "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" |
| 21517 | "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" |
| 21518 | "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" |
| 21519 | "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" |
| 21520 | "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" |
| 21521 | "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" |
| 21522 | "\x00\x15\x2a\x3f\x54\x69\x7e\x93" |
| 21523 | "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" |
| 21524 | "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" |
| 21525 | "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" |
| 21526 | "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" |
| 21527 | "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" |
| 21528 | "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" |
| 21529 | "\x98\xad\xc2\xd7\xec\x01\x16\x2b" |
| 21530 | "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" |
| 21531 | "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" |
| 21532 | "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" |
| 21533 | "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" |
| 21534 | "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" |
| 21535 | "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" |
| 21536 | "\x30\x45\x5a\x6f\x84\x99\xae\xc3" |
| 21537 | "\xd8\xed\x02\x17\x2c\x41\x56\x6b" |
| 21538 | "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" |
| 21539 | "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" |
| 21540 | "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" |
| 21541 | "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" |
| 21542 | "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" |
| 21543 | "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" |
| 21544 | "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" |
| 21545 | "\x18\x2d\x42\x57\x6c\x81\x96\xab" |
| 21546 | "\xc0\xd5\xea\xff\x14\x29\x3e\x53" |
| 21547 | "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" |
| 21548 | "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" |
| 21549 | "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" |
| 21550 | "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" |
| 21551 | "\x08\x1d\x32\x47\x5c\x71\x86\x9b" |
| 21552 | "\xb0\xc5\xda\xef\x04\x19\x2e\x43" |
| 21553 | "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" |
| 21554 | "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" |
| 21555 | "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" |
| 21556 | "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" |
| 21557 | "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" |
| 21558 | "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" |
| 21559 | "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" |
| 21560 | "\x50\x67\x7e\x95\xac\xc3\xda\xf1" |
| 21561 | "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" |
| 21562 | "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" |
| 21563 | "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" |
| 21564 | "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" |
| 21565 | "\xe8\xff\x16\x2d\x44\x5b\x72\x89" |
| 21566 | "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" |
| 21567 | "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" |
| 21568 | "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" |
| 21569 | "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" |
| 21570 | "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" |
| 21571 | "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" |
| 21572 | "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" |
| 21573 | "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" |
| 21574 | "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" |
| 21575 | "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" |
| 21576 | "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" |
| 21577 | "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" |
| 21578 | "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" |
| 21579 | "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" |
| 21580 | "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" |
| 21581 | "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" |
| 21582 | "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" |
| 21583 | "\xd8\xef\x06\x1d\x34\x4b\x62\x79" |
| 21584 | "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" |
| 21585 | "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" |
| 21586 | "\x00\x19\x32\x4b\x64\x7d\x96\xaf" |
| 21587 | "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" |
| 21588 | "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" |
| 21589 | "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" |
| 21590 | "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" |
| 21591 | "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" |
| 21592 | "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" |
| 21593 | "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" |
| 21594 | "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" |
| 21595 | "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" |
| 21596 | "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" |
| 21597 | "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" |
| 21598 | "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" |
| 21599 | "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" |
| 21600 | "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" |
| 21601 | "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" |
| 21602 | "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" |
| 21603 | "\x48\x61\x7a\x93\xac\xc5\xde\xf7" |
| 21604 | "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" |
| 21605 | "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" |
| 21606 | "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" |
| 21607 | "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" |
| 21608 | "\x30\x49\x62\x7b\x94\xad\xc6\xdf" |
| 21609 | "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" |
| 21610 | "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" |
| 21611 | "\x88\xa1\xba\xd3\xec\x05\x1e\x37" |
| 21612 | "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" |
| 21613 | "\x18\x31\x4a\x63\x7c\x95\xae\xc7" |
| 21614 | "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" |
| 21615 | "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" |
| 21616 | "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" |
| 21617 | "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" |
| 21618 | "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" |
| 21619 | "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" |
| 21620 | "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" |
| 21621 | "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" |
| 21622 | "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" |
| 21623 | "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" |
| 21624 | "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" |
| 21625 | "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" |
| 21626 | "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" |
| 21627 | "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" |
| 21628 | "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" |
| 21629 | "\x48\x63\x7e\x99\xb4\xcf\xea\x05" |
| 21630 | "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" |
| 21631 | "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" |
| 21632 | "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" |
| 21633 | "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" |
| 21634 | "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" |
| 21635 | "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" |
| 21636 | "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" |
| 21637 | "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" |
| 21638 | "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" |
| 21639 | "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" |
| 21640 | "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" |
| 21641 | "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" |
| 21642 | "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" |
| 21643 | "\x18\x33\x4e\x69\x84\x9f\xba\xd5" |
| 21644 | "\xf0\x0b\x26\x41\x5c\x77\x92\xad" |
| 21645 | "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" |
| 21646 | "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" |
| 21647 | "\x78\x93\xae\xc9\xe4\xff\x1a\x35" |
| 21648 | "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" |
| 21649 | "\x28\x43\x5e\x79\x94\xaf\xca\xe5" |
| 21650 | "\x00\x1d\x3a\x57\x74\x91\xae\xcb" |
| 21651 | "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" |
| 21652 | "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" |
| 21653 | "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" |
| 21654 | "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" |
| 21655 | "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" |
| 21656 | "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" |
| 21657 | "\x58\x75\x92\xaf\xcc\xe9\x06\x23" |
| 21658 | "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" |
| 21659 | "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" |
| 21660 | "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" |
| 21661 | "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" |
| 21662 | "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" |
| 21663 | "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" |
| 21664 | "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" |
| 21665 | "\x98\xb5\xd2\xef\x0c\x29\x46\x63" |
| 21666 | "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" |
| 21667 | "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" |
| 21668 | "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" |
| 21669 | "\x38\x55\x72\x8f\xac\xc9\xe6\x03" |
| 21670 | "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" |
| 21671 | "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" |
| 21672 | "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" |
| 21673 | "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" |
| 21674 | "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" |
| 21675 | "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" |
| 21676 | "\x90\xad\xca\xe7\x04\x21\x3e\x5b" |
| 21677 | "\x78\x95\xb2\xcf\xec\x09\x26\x43" |
| 21678 | "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" |
| 21679 | "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" |
| 21680 | "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" |
| 21681 | "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" |
| 21682 | "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" |
| 21683 | "\xf8\x17\x36\x55\x74\x93\xb2\xd1" |
| 21684 | "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" |
| 21685 | "\xe8\x07\x26\x45\x64\x83\xa2\xc1" |
| 21686 | "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" |
| 21687 | "\xd8\xf7\x16\x35\x54\x73\x92\xb1" |
| 21688 | "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" |
| 21689 | "\xc8\xe7\x06\x25\x44\x63\x82\xa1" |
| 21690 | "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" |
| 21691 | "\xb8\xd7\xf6\x15\x34\x53\x72\x91" |
| 21692 | "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" |
| 21693 | "\xa8\xc7\xe6\x05\x24\x43\x62\x81" |
| 21694 | "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" |
| 21695 | "\x98\xb7\xd6\xf5\x14\x33\x52\x71" |
| 21696 | "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" |
| 21697 | "\x88\xa7\xc6\xe5\x04\x23\x42\x61" |
| 21698 | "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" |
| 21699 | "\x78\x97\xb6\xd5\xf4\x13\x32\x51" |
| 21700 | "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" |
| 21701 | "\x68\x87\xa6\xc5\xe4\x03\x22\x41" |
| 21702 | "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" |
| 21703 | "\x58\x77\x96\xb5\xd4\xf3\x12\x31" |
| 21704 | "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" |
| 21705 | "\x48\x67\x86\xa5\xc4\xe3\x02\x21" |
| 21706 | "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" |
| 21707 | "\x38\x57\x76\x95\xb4\xd3\xf2\x11" |
| 21708 | "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" |
| 21709 | "\x28\x47\x66\x85\xa4\xc3\xe2\x01" |
| 21710 | "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" |
| 21711 | "\x18\x37\x56\x75\x94\xb3\xd2\xf1" |
| 21712 | "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" |
| 21713 | "\x08\x27\x46\x65\x84\xa3\xc2\xe1" |
| 21714 | "\x00\x21\x42\x63", |
| 21715 | .ilen = 4100, |
| 21716 | .result = |
| 21717 | "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2" |
| 21718 | "\xae\xff\x91\x3a\x44\xcf\x38\x32" |
| 21719 | "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa" |
| 21720 | "\x10\xb1\xb3\x2e\x04\x31\x8f\x86" |
| 21721 | "\xf2\x62\x74\x70\x0c\xa4\x46\x08" |
| 21722 | "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79" |
| 21723 | "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31" |
| 21724 | "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71" |
| 21725 | "\xe9\x46\x03\xa5\x3d\x34\x00\xe2" |
| 21726 | "\x18\xff\x75\x6d\x06\x2d\x00\xab" |
| 21727 | "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5" |
| 21728 | "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6" |
| 21729 | "\x3d\x74\x54\xfa\x44\xcd\x23\x26" |
| 21730 | "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf" |
| 21731 | "\xa7\x20\x3c\x74\x58\x2a\x9a\xde" |
| 21732 | "\x61\x00\x1c\x4f\xff\x59\xc4\x22" |
| 21733 | "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b" |
| 21734 | "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d" |
| 21735 | "\xee\x2f\x04\x1f\x7f\xbc\x99\xee" |
| 21736 | "\x84\xff\x42\x60\xdc\x3a\x18\xa5" |
| 21737 | "\x81\xf9\xef\xdc\x7a\x0f\x65\x41" |
| 21738 | "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d" |
| 21739 | "\x8f\xd3\x76\x96\xad\x49\x6d\x38" |
| 21740 | "\x3d\x39\x0b\x6c\x80\xb7\x54\x69" |
| 21741 | "\xf0\x2c\x90\x02\x29\x0d\x1c\x12" |
| 21742 | "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3" |
| 21743 | "\xb2\x64\x33\x90\x5e\xca\x4b\xe2" |
| 21744 | "\xfb\x75\xdc\x63\xf7\x9f\x82\x74" |
| 21745 | "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33" |
| 21746 | "\xbc\x88\x00\x7f\xca\xb2\x1f\x14" |
| 21747 | "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08" |
| 21748 | "\xf3\x83\xe8\xe0\x94\x86\x2e\x92" |
| 21749 | "\x78\x6b\x01\xc9\xc7\x83\xba\x21" |
| 21750 | "\x6a\x25\x15\x33\x4e\x45\x08\xec" |
| 21751 | "\x35\xdb\xe0\x6e\x31\x51\x79\xa9" |
| 21752 | "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a" |
| 21753 | "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc" |
| 21754 | "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec" |
| 21755 | "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16" |
| 21756 | "\x1b\x66\x84\xda\xe2\x92\xe5\xc0" |
| 21757 | "\xc8\x53\x07\xaf\x80\x84\xec\xfd" |
| 21758 | "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36" |
| 21759 | "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a" |
| 21760 | "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a" |
| 21761 | "\x06\x51\x48\x4e\xf6\x59\x87\xd2" |
| 21762 | "\x04\x02\xef\xd3\x44\xde\x76\x31" |
| 21763 | "\xb3\x34\x17\x1b\x9d\x66\x11\x9f" |
| 21764 | "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7" |
| 21765 | "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb" |
| 21766 | "\x65\x83\xd0\x3b\xe3\x30\xea\x94" |
| 21767 | "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64" |
| 21768 | "\xb4\x01\xab\x36\x2c\x77\x13\xaf" |
| 21769 | "\xf8\x2b\x88\x3f\x54\x39\xc4\x44" |
| 21770 | "\xfe\xef\x6f\x68\x34\xbe\x0f\x05" |
| 21771 | "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed" |
| 21772 | "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe" |
| 21773 | "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7" |
| 21774 | "\x93\x97\xc6\x48\x45\x1d\x9f\x83" |
| 21775 | "\xdf\x4b\x40\x3e\x42\x25\x87\x80" |
| 21776 | "\x4c\x7d\xa8\xd4\x98\x23\x95\x75" |
| 21777 | "\x41\x8c\xda\x41\x9b\xd4\xa7\x06" |
| 21778 | "\xb5\xf1\x71\x09\x53\xbe\xca\xbf" |
| 21779 | "\x32\x03\xed\xf0\x50\x1c\x56\x39" |
| 21780 | "\x5b\xa4\x75\x18\xf7\x9b\x58\xef" |
| 21781 | "\x53\xfc\x2a\x38\x23\x15\x75\xcd" |
| 21782 | "\x45\xe5\x5a\x82\x55\xba\x21\xfa" |
| 21783 | "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12" |
| 21784 | "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28" |
| 21785 | "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e" |
| 21786 | "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32" |
| 21787 | "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0" |
| 21788 | "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed" |
| 21789 | "\xd1\x26\xb9\xd8\x49\x5a\x07\x19" |
| 21790 | "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3" |
| 21791 | "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59" |
| 21792 | "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31" |
| 21793 | "\xb3\x42\xba\xa2\x7e\xd4\x32\x71" |
| 21794 | "\x45\x87\x48\xa9\xc2\xf2\x89\xb3" |
| 21795 | "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe" |
| 21796 | "\xc9\xdd\x81\xeb\x13\xab\xab\xc3" |
| 21797 | "\x98\x59\xd8\x16\x3d\x14\x7a\x1c" |
| 21798 | "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2" |
| 21799 | "\x69\x3a\x29\x23\xac\x86\x32\xa5" |
| 21800 | "\x48\x9c\x9e\xf3\x47\x77\x81\x70" |
| 21801 | "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff" |
| 21802 | "\x59\x6a\xd3\x50\x59\x43\x59\xde" |
| 21803 | "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a" |
| 21804 | "\x18\x34\x0d\x1a\x63\x33\xed\x10" |
| 21805 | "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8" |
| 21806 | "\xca\xb5\x9a\xd3\xdd\xca\x45\x84" |
| 21807 | "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe" |
| 21808 | "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d" |
| 21809 | "\x85\xd8\xc9\xdf\x68\xc9\x12\x80" |
| 21810 | "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d" |
| 21811 | "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0" |
| 21812 | "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f" |
| 21813 | "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8" |
| 21814 | "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2" |
| 21815 | "\xa6\xad\x30\xbc\x78\x3c\x5b\x10" |
| 21816 | "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33" |
| 21817 | "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8" |
| 21818 | "\xe8\x99\x57\x8c\x11\xed\x66\xd9" |
| 21819 | "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a" |
| 21820 | "\x6a\xcb\x42\x24\x06\xed\x3e\x4e" |
| 21821 | "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5" |
| 21822 | "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc" |
| 21823 | "\x64\x76\x38\x49\x4d\xfe\x30\x6d" |
| 21824 | "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba" |
| 21825 | "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3" |
| 21826 | "\x28\xa2\x82\x1f\x61\x69\xad\xc1" |
| 21827 | "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b" |
| 21828 | "\x51\xb5\x17\x7f\x12\x69\x8c\x24" |
| 21829 | "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a" |
| 21830 | "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a" |
| 21831 | "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5" |
| 21832 | "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7" |
| 21833 | "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2" |
| 21834 | "\x4d\x29\x77\x53\x35\x6a\x00\x8d" |
| 21835 | "\xcd\xa3\x58\xbe\x77\x99\x18\xf8" |
| 21836 | "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2" |
| 21837 | "\x5a\x8a\x93\x25\xaf\xf3\x78\x80" |
| 21838 | "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91" |
| 21839 | "\x58\xe1\x9f\x89\x35\x9d\x1d\x21" |
| 21840 | "\x29\x9f\xf4\x99\x02\x27\x0f\xa8" |
| 21841 | "\x4f\x79\x94\x2b\x33\x2c\xda\xa2" |
| 21842 | "\x26\x39\x83\x94\xef\x27\xd8\x53" |
| 21843 | "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd" |
| 21844 | "\x43\x7c\x95\x0a\x53\xef\x66\xda" |
| 21845 | "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71" |
| 21846 | "\xba\x40\x9b\x74\xf8\xd7\xd7\x41" |
| 21847 | "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c" |
| 21848 | "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3" |
| 21849 | "\x88\xee\x73\xcf\x66\x2f\x52\x56" |
| 21850 | "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88" |
| 21851 | "\x3f\x0e\x54\x17\x48\x80\x5d\xd3" |
| 21852 | "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f" |
| 21853 | "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1" |
| 21854 | "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9" |
| 21855 | "\x85\x9c\xf1\xac\xeb\x0c\x02\x46" |
| 21856 | "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94" |
| 21857 | "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36" |
| 21858 | "\xba\x61\x34\x38\x7c\xda\x48\x3e" |
| 21859 | "\x08\xc9\x39\x23\x5e\x02\x2c\x1a" |
| 21860 | "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02" |
| 21861 | "\xb1\x33\x37\x32\xe7\xde\xd6\xd0" |
| 21862 | "\x7c\x58\x65\x4b\xf8\x34\x27\x9c" |
| 21863 | "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d" |
| 21864 | "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37" |
| 21865 | "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4" |
| 21866 | "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a" |
| 21867 | "\x35\x12\xe3\x36\x28\x27\x36\x58" |
| 21868 | "\x01\x2b\x79\xe4\xba\x6d\x10\x7d" |
| 21869 | "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f" |
| 21870 | "\x2b\x9f\x96\x00\x86\x60\xf0\x21" |
| 21871 | "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b" |
| 21872 | "\x97\xd7\xb6\x53\x2a\xcc\xab\x40" |
| 21873 | "\x9d\x62\x79\x58\x52\xe6\x65\xb7" |
| 21874 | "\xab\x55\x67\x9c\x89\x7c\x03\xb0" |
| 21875 | "\x73\x59\xc5\x81\xf5\x18\x17\x5c" |
| 21876 | "\x89\xf3\x78\x35\x44\x62\x78\x72" |
| 21877 | "\xd0\x96\xeb\x31\xe7\x87\x77\x14" |
| 21878 | "\x99\x51\xf2\x59\x26\x9e\xb5\xa6" |
| 21879 | "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a" |
| 21880 | "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe" |
| 21881 | "\x17\xd4\x84\xa0\xac\xb5\xc7\xda" |
| 21882 | "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d" |
| 21883 | "\xfb\x79\x2e\x04\x2d\x50\x28\x83" |
| 21884 | "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a" |
| 21885 | "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c" |
| 21886 | "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92" |
| 21887 | "\xd2\x49\x77\x81\x6d\x90\x70\xae" |
| 21888 | "\x98\xa1\x03\x0d\x6b\xb9\x77\x14" |
| 21889 | "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2" |
| 21890 | "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f" |
| 21891 | "\x65\x54\xa4\x7a\x42\xdc\x18\x0d" |
| 21892 | "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b" |
| 21893 | "\x45\x42\x27\x75\x50\xe5\xee\xb8" |
| 21894 | "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c" |
| 21895 | "\x3c\xe3\x0d\x80\x01\xba\x0d\x29" |
| 21896 | "\xd8\x3c\xe9\x13\x16\x57\xe6\xea" |
| 21897 | "\x94\x52\xe7\x00\x4d\x30\xb0\x0f" |
| 21898 | "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44" |
| 21899 | "\xe1\x2f\xfd\x88\xed\x43\xe7\x52" |
| 21900 | "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7" |
| 21901 | "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3" |
| 21902 | "\xdc\x9b\x2f\x01\x56\x36\x09\xc5" |
| 21903 | "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03" |
| 21904 | "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a" |
| 21905 | "\xa9\x21\x2b\x92\x94\x87\x62\x57" |
| 21906 | "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84" |
| 21907 | "\x3b\x9e\x72\x02\xd7\xcc\x09\x56" |
| 21908 | "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8" |
| 21909 | "\xd2\x0d\x61\xcb\xef\xce\x0d\x05" |
| 21910 | "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93" |
| 21911 | "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1" |
| 21912 | "\xec\xfc\x89\xf9\x64\xb0\x22\xbf" |
| 21913 | "\x9e\x55\x46\x9f\x7c\x50\x8e\x84" |
| 21914 | "\x54\x20\x98\xd7\x6c\x40\x1e\xdb" |
| 21915 | "\x69\x34\x78\x61\x24\x21\x9c\x8a" |
| 21916 | "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35" |
| 21917 | "\x86\x13\xb1\x6c\x64\x2e\x41\xa5" |
| 21918 | "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e" |
| 21919 | "\x8a\x59\x94\x3c\xcf\x36\x27\x82" |
| 21920 | "\xc2\x45\xee\x58\xcd\x88\xb4\xec" |
| 21921 | "\xde\xb2\x96\x0a\xaf\x38\x6f\x88" |
| 21922 | "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a" |
| 21923 | "\xb1\x95\x28\x86\x20\xe9\x17\x49" |
| 21924 | "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1" |
| 21925 | "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b" |
| 21926 | "\xdb\x7c\x73\x10\xb9\xba\x89\x76" |
| 21927 | "\x54\xae\x7d\x71\xb3\x93\xf6\x32" |
| 21928 | "\xe6\x47\x43\x55\xac\xa0\x0d\xc2" |
| 21929 | "\x93\x27\x4a\x8e\x0e\x74\x15\xc7" |
| 21930 | "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e" |
| 21931 | "\xea\x8f\x85\x6d\x3a\x12\x4f\x72" |
| 21932 | "\x69\x58\x7a\x80\xbb\xb5\x97\xf3" |
| 21933 | "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79" |
| 21934 | "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62" |
| 21935 | "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0" |
| 21936 | "\x79\x00\xa8\x6c\x29\xd9\x18\x24" |
| 21937 | "\x36\xa2\x46\xc0\x96\x65\x7f\xbd" |
| 21938 | "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4" |
| 21939 | "\xc5\xb4\xe2\x12\xed\x69\xed\x4f" |
| 21940 | "\x26\x2c\x39\x52\x89\x98\xe7\x2c" |
| 21941 | "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a" |
| 21942 | "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b" |
| 21943 | "\x95\x0d\x3b\x09\x6e\xee\x83\x5d" |
| 21944 | "\x32\x4d\xed\xab\xfa\x98\x14\x4e" |
| 21945 | "\xc3\x15\x45\x53\x61\xc4\x93\xbd" |
| 21946 | "\x90\xf4\x99\x95\x4c\xe6\x76\x92" |
| 21947 | "\x29\x90\x46\x30\x92\x69\x7d\x13" |
| 21948 | "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f" |
| 21949 | "\x63\x40\x36\x5f\x09\xe2\x78\xf8" |
| 21950 | "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24" |
| 21951 | "\xa8\x89\x32\x5c\x37\x25\x1d\xb2" |
| 21952 | "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c" |
| 21953 | "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2" |
| 21954 | "\x85\x8e\xbf\xf8\xde\x92\xa0\xae" |
| 21955 | "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e" |
| 21956 | "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e" |
| 21957 | "\x37\x2f\xe2\x94\x32\xaf\xa0\x23" |
| 21958 | "\x49\xe4\xc0\xb3\xac\x00\x8f\x36" |
| 21959 | "\x05\xc4\xa6\x96\xec\x05\x98\x4f" |
| 21960 | "\x96\x67\x57\x1f\x20\x86\x1b\x2d" |
| 21961 | "\x69\xe4\x29\x93\x66\x5f\xaf\x6b" |
| 21962 | "\x88\x26\x2c\x67\x02\x4b\x52\xd0" |
| 21963 | "\x83\x7a\x43\x1f\xc0\x71\x15\x25" |
| 21964 | "\x77\x65\x08\x60\x11\x76\x4c\x8d" |
| 21965 | "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a" |
| 21966 | "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3" |
| 21967 | "\x03\xd1\x24\x95\xec\x6d\xab\x38" |
| 21968 | "\x72\xce\xe2\x8b\x33\xd7\x51\x09" |
| 21969 | "\xdc\x45\xe0\x09\x96\x32\xf3\xc4" |
| 21970 | "\x84\xdc\x73\x73\x2d\x1b\x11\x98" |
| 21971 | "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d" |
| 21972 | "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74" |
| 21973 | "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a" |
| 21974 | "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96" |
| 21975 | "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1" |
| 21976 | "\x62\x8f\x7a\x73\x32\xab\xc8\x18" |
| 21977 | "\x69\xe3\x34\x30\xdf\x13\xa6\xe5" |
| 21978 | "\xe8\x0e\x67\x7f\x81\x11\xb4\x60" |
| 21979 | "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b" |
| 21980 | "\xde\x39\xa4\x01\x72\x63\xf3\xd1" |
| 21981 | "\x64\x4e\xdf\xfc\x27\x92\x37\x0d" |
| 21982 | "\x57\xcd\x11\x4f\x11\x04\x8e\x1d" |
| 21983 | "\x16\xf7\xcd\x92\x9a\x99\x30\x14" |
| 21984 | "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8" |
| 21985 | "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f" |
| 21986 | "\xe5\x79\x81\x73\xcd\x43\x59\x68" |
| 21987 | "\x73\x02\x3b\x78\x21\x72\x43\x00" |
| 21988 | "\x49\x17\xf7\x00\xaf\x68\x24\x53" |
| 21989 | "\x05\x0a\xc3\x33\xe0\x33\x3f\x69" |
| 21990 | "\xd2\x84\x2f\x0b\xed\xde\x04\xf4" |
| 21991 | "\x11\x94\x13\x69\x51\x09\x28\xde" |
| 21992 | "\x57\x5c\xef\xdc\x9a\x49\x1c\x17" |
| 21993 | "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d" |
| 21994 | "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7" |
| 21995 | "\xc9\x8d\xa3\x36\x34\x8a\x77\x13" |
| 21996 | "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e" |
| 21997 | "\x05\xa1\x7b\x0c\xcb\x74\x47\x31" |
| 21998 | "\x62\x03\x43\xf1\x87\xb4\xb0\x85" |
| 21999 | "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b" |
| 22000 | "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f" |
| 22001 | "\x73\xac\xe6\x07\xee\xc1\xa1\xd6" |
| 22002 | "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1" |
| 22003 | "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3" |
| 22004 | "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55" |
| 22005 | "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b" |
| 22006 | "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38" |
| 22007 | "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2" |
| 22008 | "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7" |
| 22009 | "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e" |
| 22010 | "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3" |
| 22011 | "\x69\xdc\xab\x24\x57\x60\x47\xc1" |
| 22012 | "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe" |
| 22013 | "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb" |
| 22014 | "\xd6\x9d\x99\x69\xab\x7a\x07\x0c" |
| 22015 | "\x65\xe7\xc4\x08\x96\xe2\xa5\x01" |
| 22016 | "\x3f\x46\x07\x05\x7e\xe8\x9a\x90" |
| 22017 | "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e" |
| 22018 | "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b" |
| 22019 | "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c" |
| 22020 | "\x26\x10\x8f\x3d\x80\xe9\x58\xf7" |
| 22021 | "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99" |
| 22022 | "\x63\x19\x3d\xd5\xec\x1b\x77\x69" |
| 22023 | "\x98\xf6\xe4\x5f\x67\x17\x4b\x09" |
| 22024 | "\x85\x62\x82\x70\x18\xe2\x9a\x78" |
| 22025 | "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb" |
| 22026 | "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8" |
| 22027 | "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f" |
| 22028 | "\x35\xf3\x61\x06\x72\x84\xc4\x32" |
| 22029 | "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02" |
| 22030 | "\x04\xc2\xde\x57\x64\x60\x8d\xcf" |
| 22031 | "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01" |
| 22032 | "\xd6\x28\x8f\x99\xbc\x46\xeb\x05" |
| 22033 | "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c" |
| 22034 | "\xb3\x71\xa0\xde\xca\x96\xf1\x78" |
| 22035 | "\x49\xa2\x99\x81\x80\x5c\x01\xf5" |
| 22036 | "\xa0\xa2\x56\x63\xe2\x70\x07\xa5" |
| 22037 | "\x95\xd6\x85\xeb\x36\x9e\xa9\x51" |
| 22038 | "\x66\x56\x5f\x1d\x02\x19\xe2\xf6" |
| 22039 | "\x4f\x73\x38\x09\x75\x64\x48\xe0" |
| 22040 | "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94" |
| 22041 | "\xfe\x16\x26\x62\x49\x74\xf4\xb0" |
| 22042 | "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81" |
| 22043 | "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81" |
| 22044 | "\x79\x99\x77\x01\x3b\xe9\xa2\xb6" |
| 22045 | "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e" |
| 22046 | "\x8f\x06\x55\x2c\x6c\xdc\x92\x87" |
| 22047 | "\x64\x3b\x4b\x19\xa1\x13\x64\x1d" |
| 22048 | "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b" |
| 22049 | "\x1a\x86\x6d\x37\x52\x02\xc2\xe0" |
| 22050 | "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9" |
| 22051 | "\xef\xa0\x54\xe4\x5e\x16\x53\x81" |
| 22052 | "\x70\x62\x10\xaf\xde\xb8\xb5\xd3" |
| 22053 | "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07" |
| 22054 | "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4" |
| 22055 | "\x26\xa7\xa3\x93\x86\xb2\x04\x1e" |
| 22056 | "\x53\x5d\x86\xd6\xde\x65\xca\xe3" |
| 22057 | "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83" |
| 22058 | "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6" |
| 22059 | "\x37\x7a\x93\x7a\x50\x11\x9f\x96" |
| 22060 | "\x86\x25\xfd\xac\xdc\xbe\x18\x93" |
| 22061 | "\x19\x6b\xec\x58\x4f\xb9\x75\xa7" |
| 22062 | "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab" |
| 22063 | "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6" |
| 22064 | "\x03\xfb\x03\x6a\xea\x66\xbf\xd4" |
| 22065 | "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c" |
| 22066 | "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80" |
| 22067 | "\x24\x6d\xa0\xef\x25\x7c\xb7\xea" |
| 22068 | "\xce\x4d\x5f\x18\x60\xce\x87\x22" |
| 22069 | "\x66\x2f\xd5\xdd\xdd\x02\x21\x75" |
| 22070 | "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7" |
| 22071 | "\x32\xd8\xaf\x1e\x07\x77\x51\x96" |
| 22072 | "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67" |
| 22073 | "\xea\x17\x0b\x10\xd2\x3f\x28\x25" |
| 22074 | "\x4f\x05\x77\x02\x14\x69\xf0\x2c" |
| 22075 | "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b" |
| 22076 | "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3" |
| 22077 | "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12" |
| 22078 | "\x4c\x21\x87\xcb\xc9\x1d\x16\x96" |
| 22079 | "\x07\x6f\x23\x54\xb9\x6f\x79\xe5" |
| 22080 | "\x64\xc0\x64\xda\xb1\xae\xdd\x60" |
| 22081 | "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0" |
| 22082 | "\x92\x61\xd0\x48\x81\xed\x5e\x1d" |
| 22083 | "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d" |
| 22084 | "\x7f\x83\x73\xb6\x70\x18\x65\x3e" |
| 22085 | "\x2f\x0e\x7a\x12\x39\x98\xab\xd8" |
| 22086 | "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd" |
| 22087 | "\xf0\x03\x01\x1c\x85\x35\x9f\xeb" |
| 22088 | "\x19\x63\xa1\xaf\xfe\x2d\x35\x50" |
| 22089 | "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe" |
| 22090 | "\xc1\xac\x07\x7c\x98\x4f\xbe\x57" |
| 22091 | "\xa7\x22\xec\xe2\x7e\x29\x09\x53" |
| 22092 | "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14" |
| 22093 | "\xce\x54\xf9\x18\x58\xb5\xff\x44" |
| 22094 | "\x05\x9d\xce\x1b\xb6\x82\x23\xc8" |
| 22095 | "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65" |
| 22096 | "\x94\xf0\x63\x06\x0e\xef\x8c\xbd" |
| 22097 | "\xff\xfd\xb0\x21\x6e\x57\x05\x75" |
| 22098 | "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50" |
| 22099 | "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b" |
| 22100 | "\x80\x8c\xc8\x78\x40\x24\x4b\x89" |
| 22101 | "\x30\xce\x7a\x97\x0e\xc4\xaf\xef" |
| 22102 | "\x9b\xb4\xcd\x66\x74\x14\x04\x2b" |
| 22103 | "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c" |
| 22104 | "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d" |
| 22105 | "\xa7\x20\xeb\x86\x52\xb7\x67\xd8" |
| 22106 | "\x0c\xd6\x04\x14\xde\x51\x74\x75" |
| 22107 | "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad" |
| 22108 | "\x4f\xef\xa0\x0f\x70\x00\x6d\x13" |
| 22109 | "\x19\x1d\x41\x50\xe9\xd8\xf0\x32" |
| 22110 | "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf" |
| 22111 | "\x75\x46\x65\x4e\x07\x34\x37\xa3" |
| 22112 | "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f" |
| 22113 | "\x69\x24\x0e\x38\x67\x43\x8c\xde" |
| 22114 | "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f" |
| 22115 | "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde" |
| 22116 | "\x64\xb1\xdb\xee\x00\x50\x77\xe1" |
| 22117 | "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3" |
| 22118 | "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b" |
| 22119 | "\x6d\x55\xf0\xfc\x88\x54\x4e\x89" |
| 22120 | "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8" |
| 22121 | "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05" |
| 22122 | "\x91\x7d\x62\x64\x96\x72\xde\xfc" |
| 22123 | "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b" |
| 22124 | "\x1d\x08\x57\xce\x09\xb8\xf6\xcd" |
| 22125 | "\x8d\x95\xf2\x20\xbf\x0f\x20\x57" |
| 22126 | "\x98\x81\x84\x4f\x15\x5c\x76\xe7" |
| 22127 | "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78" |
| 22128 | "\x74\x77\xc3\x09\x4b\x5d\x48\xe4" |
| 22129 | "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf" |
| 22130 | "\x31\x32\x44\xa4\xe5\x0e\x1a\x98" |
| 22131 | "\x94\xc4\xf0\xff\xae\x3e\x44\xe8" |
| 22132 | "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f" |
| 22133 | "\x28\xc1\x37\x5f\x31\xd2\xb9\x33" |
| 22134 | "\xb1\xb2\x52\x94\x75\x2c\x29\x59" |
| 22135 | "\x06\xc2\x25\xe8\x71\x65\x4e\xed" |
| 22136 | "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7" |
| 22137 | "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a" |
| 22138 | "\xe0\x50\x40\x96\x35\x63\xe4\x0b" |
| 22139 | "\x76\xbd\xa4\x65\x00\x1b\x57\x88" |
| 22140 | "\xae\xed\x39\x88\x42\x11\x3c\xed" |
| 22141 | "\x85\x67\x7d\xb9\x68\x82\xe9\x43" |
| 22142 | "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f" |
| 22143 | "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e" |
| 22144 | "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8" |
| 22145 | "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd" |
| 22146 | "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60" |
| 22147 | "\xce\x20\x56\x32\xc6\xc5\x99\x1f" |
| 22148 | "\x09\xe6\x4e\x18\x1a\x15\x13\xa8" |
| 22149 | "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26" |
| 22150 | "\x66\xf8\x3d\x18\x74\x70\x66\x7a" |
| 22151 | "\x34\x17\xde\xba\x47\xf1\x06\x18" |
| 22152 | "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77" |
| 22153 | "\xe0\x3b\x78\x62\x66\xc9\x10\xea" |
| 22154 | "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e" |
| 22155 | "\x1d\xe2\x65\x61\x50\x9c\xd7\x05" |
| 22156 | "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5" |
| 22157 | "\x63\x4f\x20\x0c\x07\x17\x33\x5e" |
| 22158 | "\x03\x9a\x53\x0f\x2e\x55\xfe\x50" |
| 22159 | "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae" |
| 22160 | "\x58\xef\x15\xa9\x83\xd9\x46\xb1" |
| 22161 | "\x42\xaa\xf5\x02\x6c\xce\x92\x06" |
| 22162 | "\x1b\xdb\x66\x45\x91\x79\xc2\x2d" |
| 22163 | "\xe6\x53\xd3\x14\xfd\xbb\x44\x63" |
| 22164 | "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d" |
| 22165 | "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b" |
| 22166 | "\xfe\xd3\xef\x60\x83\xf6\x8e\x70" |
| 22167 | "\xb6\x67\xc7\x77\xed\x23\xef\x4c" |
| 22168 | "\xf0\xed\x2d\x07\x59\x6f\xc1\x01" |
| 22169 | "\x34\x37\x08\xab\xd9\x1f\x09\xb1" |
| 22170 | "\xce\x5b\x17\xff\x74\xf8\x9c\xd5" |
| 22171 | "\x2c\x56\x39\x79\x0f\x69\x44\x75" |
| 22172 | "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d" |
| 22173 | "\x90\x17\x77\x86\x5a\x3f\xd9\xd1" |
| 22174 | "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f" |
| 22175 | "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7" |
| 22176 | "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41" |
| 22177 | "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d" |
| 22178 | "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90" |
| 22179 | "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06" |
| 22180 | "\x63\x9b\xce\x61\x24\x79\xc0\x70" |
| 22181 | "\x52\xd0\xb6\xd4\x28\x95\x24\x87" |
| 22182 | "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52" |
| 22183 | "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42" |
| 22184 | "\xf7\xd5\xfd\xad\x06\x32\x9f\xba" |
| 22185 | "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38" |
| 22186 | "\x74\x56\x58\x40\x02\x37\x52\x2c" |
| 22187 | "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38" |
| 22188 | "\x41\x5e\x0c\x35\xe2\x11\xd1\x13" |
| 22189 | "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0" |
| 22190 | "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3" |
| 22191 | "\x24\x90\xec\x58\xd2\x09\xc7\x2d" |
| 22192 | "\xed\x38\x80\x36\x72\x43\x27\x49" |
| 22193 | "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30" |
| 22194 | "\x7d\xb6\x82\x37\x86\x92\x86\x3e" |
| 22195 | "\x08\xb2\x28\x5a\x55\x44\x24\x7d" |
| 22196 | "\x40\x48\x8a\xb6\x89\x58\x08\xa0" |
| 22197 | "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2" |
| 22198 | "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b" |
| 22199 | "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3" |
| 22200 | "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81" |
| 22201 | "\x14\x32\x45\x05\xe0\xdb\x9f\x75" |
| 22202 | "\x85\xb4\x6a\xfc\x95\xe3\x54\x22" |
| 22203 | "\x12\xee\x30\xfe\xd8\x30\xef\x34" |
| 22204 | "\x50\xab\x46\x30\x98\x2f\xb7\xc0" |
| 22205 | "\x15\xa2\x83\xb6\xf2\x06\x21\xa2" |
| 22206 | "\xc3\x26\x37\x14\xd1\x4d\xb5\x10" |
| 22207 | "\x52\x76\x4d\x6a\xee\xb5\x2b\x15" |
| 22208 | "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa" |
| 22209 | "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e" |
| 22210 | "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f" |
| 22211 | "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3" |
| 22212 | "\x02\x9d\x27\x1f\xef\x85\x05\x8d" |
| 22213 | "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8" |
| 22214 | "\xa1\x75\xa0\xd8\x06\x47\x14\xef" |
| 22215 | "\xaa\x61\xcf\x26\x15\xad\xd8\xa3" |
| 22216 | "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf" |
| 22217 | "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e" |
| 22218 | "\x42\xee\xb4\x2f\x51\xff\x7b\x2e" |
| 22219 | "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc" |
| 22220 | "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16" |
| 22221 | "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0" |
| 22222 | "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02" |
| 22223 | "\xac\x82\x93\x6e\xb6\x1c\x28\xfc" |
| 22224 | "\x44\x12\xfb\x73\x77\xd4\x13\x39" |
| 22225 | "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0" |
| 22226 | "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b" |
| 22227 | "\x41\x01\x18\x5d\x5d\x07\x97\xa6" |
| 22228 | "\x4b\xef\x31\x18\xea\xac\xb1\x84" |
| 22229 | "\x21\xed\xda\x86", |
| 22230 | .rlen = 4100, |
| 22231 | .np = 2, |
| 22232 | .tap = { 4064, 36 }, |
| 22233 | }, |
| 22234 | }; |
| 22235 | |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 22236 | static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 22237 | { /* From RFC 3686 */ |
| 22238 | .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" |
| 22239 | "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" |
| 22240 | "\x00\x00\x00\x30", |
| 22241 | .klen = 20, |
| 22242 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 22243 | .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" |
| 22244 | "\x2d\x61\x75\xa3\x26\x13\x11\xb8", |
| 22245 | .ilen = 16, |
| 22246 | .result = "Single block msg", |
| 22247 | .rlen = 16, |
| 22248 | }, { |
| 22249 | .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" |
| 22250 | "\x43\xd6\xce\x1f\x32\x53\x91\x63" |
| 22251 | "\x00\x6c\xb6\xdb", |
| 22252 | .klen = 20, |
| 22253 | .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", |
| 22254 | .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" |
| 22255 | "\x79\x0d\x41\xee\x8e\xda\xd3\x88" |
| 22256 | "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" |
| 22257 | "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", |
| 22258 | .ilen = 32, |
| 22259 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 22260 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 22261 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 22262 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 22263 | .rlen = 32, |
| 22264 | }, { |
| 22265 | .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" |
| 22266 | "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" |
| 22267 | "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" |
| 22268 | "\x00\x00\x00\x48", |
| 22269 | .klen = 28, |
| 22270 | .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", |
| 22271 | .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" |
| 22272 | "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", |
| 22273 | .ilen = 16, |
| 22274 | .result = "Single block msg", |
| 22275 | .rlen = 16, |
| 22276 | }, { |
| 22277 | .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" |
| 22278 | "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" |
| 22279 | "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" |
| 22280 | "\x00\x96\xb0\x3b", |
| 22281 | .klen = 28, |
| 22282 | .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", |
| 22283 | .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32" |
| 22284 | "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" |
| 22285 | "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" |
| 22286 | "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", |
| 22287 | .ilen = 32, |
| 22288 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 22289 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 22290 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 22291 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 22292 | .rlen = 32, |
| 22293 | }, { |
| 22294 | .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" |
| 22295 | "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" |
| 22296 | "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" |
| 22297 | "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" |
| 22298 | "\x00\x00\x00\x60", |
| 22299 | .klen = 36, |
| 22300 | .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", |
| 22301 | .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" |
| 22302 | "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", |
| 22303 | .ilen = 16, |
| 22304 | .result = "Single block msg", |
| 22305 | .rlen = 16, |
| 22306 | }, { |
| 22307 | .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" |
| 22308 | "\x07\x96\x36\x58\x79\xef\xf8\x86" |
| 22309 | "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" |
| 22310 | "\x4b\x50\x59\x0c\x87\xa2\x38\x84" |
| 22311 | "\x00\xfa\xac\x24", |
| 22312 | .klen = 36, |
| 22313 | .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", |
| 22314 | .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" |
| 22315 | "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" |
| 22316 | "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" |
| 22317 | "\x55\x30\x83\x1d\x93\x44\xaf\x1c", |
| 22318 | .ilen = 32, |
| 22319 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 22320 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 22321 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 22322 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 22323 | .rlen = 32, |
| 22324 | }, |
| 22325 | }; |
| 22326 | |
Puneet Saxena | ba0e14a | 2011-05-04 15:04:10 +1000 | [diff] [blame] | 22327 | static struct cipher_testvec aes_ofb_enc_tv_template[] = { |
| 22328 | /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 22329 | { |
| 22330 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 22331 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 22332 | .klen = 16, |
| 22333 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" |
| 22334 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 22335 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 22336 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 22337 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 22338 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 22339 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 22340 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 22341 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 22342 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 22343 | .ilen = 64, |
| 22344 | .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" |
| 22345 | "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" |
| 22346 | "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" |
| 22347 | "\x3c\x52\xda\xc5\x4e\xd8\x25" |
| 22348 | "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" |
| 22349 | "\x44\xf7\xa8\x22\x60\xed\xcc" |
| 22350 | "\x30\x4c\x65\x28\xf6\x59\xc7\x78" |
| 22351 | "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", |
| 22352 | .rlen = 64, |
| 22353 | } |
| 22354 | }; |
| 22355 | |
| 22356 | static struct cipher_testvec aes_ofb_dec_tv_template[] = { |
| 22357 | /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 22358 | { |
| 22359 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 22360 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 22361 | .klen = 16, |
| 22362 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" |
| 22363 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 22364 | .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" |
| 22365 | "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" |
| 22366 | "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" |
| 22367 | "\x3c\x52\xda\xc5\x4e\xd8\x25" |
| 22368 | "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" |
| 22369 | "\x44\xf7\xa8\x22\x60\xed\xcc" |
| 22370 | "\x30\x4c\x65\x28\xf6\x59\xc7\x78" |
| 22371 | "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", |
| 22372 | .ilen = 64, |
| 22373 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 22374 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 22375 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 22376 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 22377 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 22378 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 22379 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 22380 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 22381 | .rlen = 64, |
| 22382 | } |
| 22383 | }; |
| 22384 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 22385 | static struct aead_testvec aes_gcm_enc_tv_template[] = { |
| 22386 | { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ |
| 22387 | .key = zeroed_string, |
| 22388 | .klen = 16, |
| 22389 | .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61" |
| 22390 | "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a", |
| 22391 | .rlen = 16, |
| 22392 | }, { |
| 22393 | .key = zeroed_string, |
| 22394 | .klen = 16, |
| 22395 | .input = zeroed_string, |
| 22396 | .ilen = 16, |
| 22397 | .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92" |
| 22398 | "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78" |
| 22399 | "\xab\x6e\x47\xd4\x2c\xec\x13\xbd" |
| 22400 | "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf", |
| 22401 | .rlen = 32, |
| 22402 | }, { |
| 22403 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22404 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 22405 | .klen = 16, |
| 22406 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22407 | "\xde\xca\xf8\x88", |
| 22408 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22409 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22410 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22411 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22412 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22413 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22414 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22415 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 22416 | .ilen = 64, |
| 22417 | .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 22418 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 22419 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 22420 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 22421 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 22422 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 22423 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 22424 | "\x3d\x58\xe0\x91\x47\x3f\x59\x85" |
| 22425 | "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" |
| 22426 | "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", |
| 22427 | .rlen = 80, |
| 22428 | }, { |
| 22429 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22430 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 22431 | .klen = 16, |
| 22432 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22433 | "\xde\xca\xf8\x88", |
| 22434 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22435 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22436 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22437 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22438 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22439 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22440 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22441 | "\xba\x63\x7b\x39", |
| 22442 | .ilen = 60, |
| 22443 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22444 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22445 | "\xab\xad\xda\xd2", |
| 22446 | .alen = 20, |
| 22447 | .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 22448 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 22449 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 22450 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 22451 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 22452 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 22453 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 22454 | "\x3d\x58\xe0\x91" |
| 22455 | "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" |
| 22456 | "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", |
| 22457 | .rlen = 76, |
| 22458 | }, { |
| 22459 | .key = zeroed_string, |
| 22460 | .klen = 24, |
| 22461 | .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b" |
| 22462 | "\xa0\x0e\xd1\xf3\x12\x57\x24\x35", |
| 22463 | .rlen = 16, |
| 22464 | }, { |
| 22465 | .key = zeroed_string, |
| 22466 | .klen = 24, |
| 22467 | .input = zeroed_string, |
| 22468 | .ilen = 16, |
| 22469 | .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" |
| 22470 | "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" |
| 22471 | "\x2f\xf5\x8d\x80\x03\x39\x27\xab" |
| 22472 | "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", |
| 22473 | .rlen = 32, |
| 22474 | }, { |
| 22475 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22476 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22477 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 22478 | .klen = 24, |
| 22479 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22480 | "\xde\xca\xf8\x88", |
| 22481 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22482 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22483 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22484 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22485 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22486 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22487 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22488 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 22489 | .ilen = 64, |
| 22490 | .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 22491 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 22492 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 22493 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 22494 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 22495 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 22496 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 22497 | "\xcc\xda\x27\x10\xac\xad\xe2\x56" |
| 22498 | "\x99\x24\xa7\xc8\x58\x73\x36\xbf" |
| 22499 | "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", |
| 22500 | .rlen = 80, |
| 22501 | }, { |
| 22502 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22503 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22504 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 22505 | .klen = 24, |
| 22506 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22507 | "\xde\xca\xf8\x88", |
| 22508 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22509 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22510 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22511 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22512 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22513 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22514 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22515 | "\xba\x63\x7b\x39", |
| 22516 | .ilen = 60, |
| 22517 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22518 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22519 | "\xab\xad\xda\xd2", |
| 22520 | .alen = 20, |
| 22521 | .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 22522 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 22523 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 22524 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 22525 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 22526 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 22527 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 22528 | "\xcc\xda\x27\x10" |
| 22529 | "\x25\x19\x49\x8e\x80\xf1\x47\x8f" |
| 22530 | "\x37\xba\x55\xbd\x6d\x27\x61\x8c", |
| 22531 | .rlen = 76, |
| 22532 | .np = 2, |
| 22533 | .tap = { 32, 28 }, |
| 22534 | .anp = 2, |
| 22535 | .atap = { 8, 12 } |
| 22536 | }, { |
| 22537 | .key = zeroed_string, |
| 22538 | .klen = 32, |
| 22539 | .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9" |
| 22540 | "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b", |
| 22541 | .rlen = 16, |
| 22542 | } |
| 22543 | }; |
| 22544 | |
| 22545 | static struct aead_testvec aes_gcm_dec_tv_template[] = { |
| 22546 | { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ |
| 22547 | .key = zeroed_string, |
| 22548 | .klen = 32, |
| 22549 | .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e" |
| 22550 | "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18" |
| 22551 | "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0" |
| 22552 | "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19", |
| 22553 | .ilen = 32, |
| 22554 | .result = zeroed_string, |
| 22555 | .rlen = 16, |
| 22556 | }, { |
| 22557 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22558 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22559 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22560 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 22561 | .klen = 32, |
| 22562 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22563 | "\xde\xca\xf8\x88", |
| 22564 | .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" |
| 22565 | "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" |
| 22566 | "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" |
| 22567 | "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" |
| 22568 | "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" |
| 22569 | "\xa7\xb0\x8b\x10\x56\x82\x88\x38" |
| 22570 | "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" |
| 22571 | "\xbc\xc9\xf6\x62\x89\x80\x15\xad" |
| 22572 | "\xb0\x94\xda\xc5\xd9\x34\x71\xbd" |
| 22573 | "\xec\x1a\x50\x22\x70\xe3\xcc\x6c", |
| 22574 | .ilen = 80, |
| 22575 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22576 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22577 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22578 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22579 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22580 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22581 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22582 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 22583 | .rlen = 64, |
| 22584 | }, { |
| 22585 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22586 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22587 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22588 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 22589 | .klen = 32, |
| 22590 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22591 | "\xde\xca\xf8\x88", |
| 22592 | .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" |
| 22593 | "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" |
| 22594 | "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" |
| 22595 | "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" |
| 22596 | "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" |
| 22597 | "\xa7\xb0\x8b\x10\x56\x82\x88\x38" |
| 22598 | "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" |
| 22599 | "\xbc\xc9\xf6\x62" |
| 22600 | "\x76\xfc\x6e\xce\x0f\x4e\x17\x68" |
| 22601 | "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b", |
| 22602 | .ilen = 76, |
| 22603 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22604 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22605 | "\xab\xad\xda\xd2", |
| 22606 | .alen = 20, |
| 22607 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22608 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22609 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22610 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22611 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22612 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22613 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22614 | "\xba\x63\x7b\x39", |
| 22615 | .rlen = 60, |
| 22616 | .np = 2, |
| 22617 | .tap = { 48, 28 }, |
| 22618 | .anp = 3, |
| 22619 | .atap = { 8, 8, 4 } |
| 22620 | }, { |
| 22621 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22622 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 22623 | .klen = 16, |
| 22624 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22625 | "\xde\xca\xf8\x88", |
| 22626 | .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 22627 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 22628 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 22629 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 22630 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 22631 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 22632 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 22633 | "\x3d\x58\xe0\x91\x47\x3f\x59\x85" |
| 22634 | "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" |
| 22635 | "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", |
| 22636 | .ilen = 80, |
| 22637 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22638 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22639 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22640 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22641 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22642 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22643 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22644 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 22645 | .rlen = 64, |
| 22646 | }, { |
| 22647 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22648 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 22649 | .klen = 16, |
| 22650 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22651 | "\xde\xca\xf8\x88", |
| 22652 | .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 22653 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 22654 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 22655 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 22656 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 22657 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 22658 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 22659 | "\x3d\x58\xe0\x91" |
| 22660 | "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" |
| 22661 | "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", |
| 22662 | .ilen = 76, |
| 22663 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22664 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22665 | "\xab\xad\xda\xd2", |
| 22666 | .alen = 20, |
| 22667 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22668 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22669 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22670 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22671 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22672 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22673 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22674 | "\xba\x63\x7b\x39", |
| 22675 | .rlen = 60, |
| 22676 | }, { |
| 22677 | .key = zeroed_string, |
| 22678 | .klen = 24, |
| 22679 | .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" |
| 22680 | "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" |
| 22681 | "\x2f\xf5\x8d\x80\x03\x39\x27\xab" |
| 22682 | "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", |
| 22683 | .ilen = 32, |
| 22684 | .result = zeroed_string, |
| 22685 | .rlen = 16, |
| 22686 | }, { |
| 22687 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22688 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22689 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 22690 | .klen = 24, |
| 22691 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22692 | "\xde\xca\xf8\x88", |
| 22693 | .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 22694 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 22695 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 22696 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 22697 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 22698 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 22699 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 22700 | "\xcc\xda\x27\x10\xac\xad\xe2\x56" |
| 22701 | "\x99\x24\xa7\xc8\x58\x73\x36\xbf" |
| 22702 | "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", |
| 22703 | .ilen = 80, |
| 22704 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22705 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22706 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22707 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22708 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22709 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22710 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22711 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 22712 | .rlen = 64, |
| 22713 | }, { |
| 22714 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22715 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22716 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 22717 | .klen = 24, |
| 22718 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 22719 | "\xde\xca\xf8\x88", |
| 22720 | .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 22721 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 22722 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 22723 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 22724 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 22725 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 22726 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 22727 | "\xcc\xda\x27\x10" |
| 22728 | "\x25\x19\x49\x8e\x80\xf1\x47\x8f" |
| 22729 | "\x37\xba\x55\xbd\x6d\x27\x61\x8c", |
| 22730 | .ilen = 76, |
| 22731 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22732 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 22733 | "\xab\xad\xda\xd2", |
| 22734 | .alen = 20, |
| 22735 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 22736 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 22737 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 22738 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 22739 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 22740 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 22741 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 22742 | "\xba\x63\x7b\x39", |
| 22743 | .rlen = 60, |
| 22744 | } |
| 22745 | }; |
| 22746 | |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22747 | static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = { |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22748 | { /* Generated using Crypto++ */ |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22749 | .key = zeroed_string, |
| 22750 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22751 | .iv = zeroed_string, |
| 22752 | .input = zeroed_string, |
| 22753 | .ilen = 16, |
| 22754 | .assoc = zeroed_string, |
| 22755 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22756 | .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22757 | "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" |
| 22758 | "\x97\xFE\x4C\x23\x37\x42\x01\xE0" |
| 22759 | "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22760 | .rlen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22761 | },{ |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22762 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22763 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22764 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22765 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22766 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22767 | .input = zeroed_string, |
| 22768 | .ilen = 16, |
| 22769 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 22770 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22771 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22772 | .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22773 | "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" |
| 22774 | "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" |
| 22775 | "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22776 | .rlen = 32, |
| 22777 | |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22778 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22779 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22780 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22781 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22782 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22783 | .iv = zeroed_string, |
| 22784 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22785 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22786 | .ilen = 16, |
| 22787 | .assoc = zeroed_string, |
| 22788 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22789 | .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22790 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 22791 | "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" |
| 22792 | "\xB1\x68\xFD\x14\x52\x64\x61\xB2", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22793 | .rlen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22794 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22795 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22796 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22797 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22798 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22799 | .iv = zeroed_string, |
| 22800 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22801 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22802 | .ilen = 16, |
| 22803 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22804 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 22805 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22806 | .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22807 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 22808 | "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" |
| 22809 | "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22810 | .rlen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22811 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22812 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22813 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22814 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22815 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22816 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22817 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22818 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22819 | .ilen = 16, |
| 22820 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22821 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22822 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22823 | .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22824 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 22825 | "\x64\x50\xF9\x32\x13\xFB\x74\x61" |
| 22826 | "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22827 | .rlen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22828 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22829 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22830 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22831 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22832 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22833 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22834 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22835 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22836 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22837 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22838 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22839 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22840 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22841 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22842 | .ilen = 64, |
| 22843 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22844 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22845 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22846 | .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22847 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 22848 | "\x98\x14\xA1\x42\x37\x80\xFD\x90" |
| 22849 | "\x68\x12\x01\xA8\x91\x89\xB9\x83" |
| 22850 | "\x5B\x11\x77\x12\x9B\xFF\x24\x89" |
| 22851 | "\x94\x5F\x18\x12\xBA\x27\x09\x39" |
| 22852 | "\x99\x96\x76\x42\x15\x1C\xCD\xCB" |
| 22853 | "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" |
| 22854 | "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" |
| 22855 | "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22856 | .rlen = 80, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22857 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22858 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 22859 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22860 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22861 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22862 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef", |
| 22863 | .input = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22864 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22865 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22866 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22867 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22868 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22869 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22870 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22871 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22872 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22873 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22874 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22875 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22876 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22877 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22878 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22879 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22880 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22881 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22882 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22883 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22884 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22885 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22886 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 22887 | .ilen = 192, |
| 22888 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 22889 | "\xaa\xaa\xaa\xaa\x00\x00\x45\x67" |
| 22890 | "\x89\xab\xcd\xef", |
| 22891 | .alen = 20, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 22892 | .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" |
| 22893 | "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" |
| 22894 | "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" |
| 22895 | "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" |
| 22896 | "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" |
| 22897 | "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" |
| 22898 | "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" |
| 22899 | "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" |
| 22900 | "\xCF\x07\x57\x41\x67\xD0\xC4\x42" |
| 22901 | "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" |
| 22902 | "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" |
| 22903 | "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" |
| 22904 | "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" |
| 22905 | "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" |
| 22906 | "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" |
| 22907 | "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" |
| 22908 | "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" |
| 22909 | "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" |
| 22910 | "\x7E\x13\x06\x82\x08\x17\xA4\x35" |
| 22911 | "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" |
| 22912 | "\xA3\x05\x38\x95\x20\x1A\x47\x04" |
| 22913 | "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" |
| 22914 | "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" |
| 22915 | "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" |
| 22916 | "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" |
| 22917 | "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", |
| 22918 | .rlen = 208, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 22919 | }, { /* From draft-mcgrew-gcm-test-01 */ |
| 22920 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 22921 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 22922 | "\x2E\x44\x3B\x68", |
| 22923 | .klen = 20, |
| 22924 | .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE", |
| 22925 | .input = "\x45\x00\x00\x48\x69\x9A\x00\x00" |
| 22926 | "\x80\x11\x4D\xB7\xC0\xA8\x01\x02" |
| 22927 | "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56" |
| 22928 | "\x38\xD3\x01\x00\x00\x01\x00\x00" |
| 22929 | "\x00\x00\x00\x00\x04\x5F\x73\x69" |
| 22930 | "\x70\x04\x5F\x75\x64\x70\x03\x73" |
| 22931 | "\x69\x70\x09\x63\x79\x62\x65\x72" |
| 22932 | "\x63\x69\x74\x79\x02\x64\x6B\x00" |
| 22933 | "\x00\x21\x00\x01\x01\x02\x02\x01", |
| 22934 | .ilen = 72, |
| 22935 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22936 | "\x00\x00\x00\x00\x49\x56\xED\x7E" |
| 22937 | "\x3B\x24\x4C\xFE", |
| 22938 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 22939 | .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07" |
| 22940 | "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76" |
| 22941 | "\x8D\x1B\x98\x73\x66\x96\xA6\xFD" |
| 22942 | "\x34\x85\x09\xFA\x13\xCE\xAC\x34" |
| 22943 | "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF" |
| 22944 | "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D" |
| 22945 | "\x15\xB2\x1E\x18\x84\xF5\xFF\x62" |
| 22946 | "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE" |
| 22947 | "\x61\xBC\x17\xD7\x68\xFD\x97\x32" |
| 22948 | "\x45\x90\x18\x14\x8F\x6C\xBE\x72" |
| 22949 | "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4", |
| 22950 | .rlen = 88, |
| 22951 | }, { |
| 22952 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 22953 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 22954 | "\xCA\xFE\xBA\xBE", |
| 22955 | .klen = 20, |
| 22956 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 22957 | .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00" |
| 22958 | "\x80\x11\x4D\xCC\xC0\xA8\x01\x02" |
| 22959 | "\xC0\xA8\x01\x01\x0A\x98\x00\x35" |
| 22960 | "\x00\x2A\x23\x43\xB2\xD0\x01\x00" |
| 22961 | "\x00\x01\x00\x00\x00\x00\x00\x00" |
| 22962 | "\x03\x73\x69\x70\x09\x63\x79\x62" |
| 22963 | "\x65\x72\x63\x69\x74\x79\x02\x64" |
| 22964 | "\x6B\x00\x00\x01\x00\x01\x00\x01", |
| 22965 | .ilen = 64, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22966 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 22967 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 22968 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 22969 | .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1" |
| 22970 | "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04" |
| 22971 | "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F" |
| 22972 | "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C" |
| 22973 | "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F" |
| 22974 | "\x51\x33\x0D\x0E\xEC\x41\x66\x42" |
| 22975 | "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4" |
| 22976 | "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1" |
| 22977 | "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4" |
| 22978 | "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A", |
| 22979 | .rlen = 80, |
| 22980 | }, { |
| 22981 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22982 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22983 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22984 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22985 | "\x11\x22\x33\x44", |
| 22986 | .klen = 36, |
| 22987 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 22988 | .input = "\x45\x00\x00\x30\x69\xA6\x40\x00" |
| 22989 | "\x80\x06\x26\x90\xC0\xA8\x01\x02" |
| 22990 | "\x93\x89\x15\x5E\x0A\x9E\x00\x8B" |
| 22991 | "\x2D\xC5\x7E\xE0\x00\x00\x00\x00" |
| 22992 | "\x70\x02\x40\x00\x20\xBF\x00\x00" |
| 22993 | "\x02\x04\x05\xB4\x01\x01\x04\x02" |
| 22994 | "\x01\x02\x02\x01", |
| 22995 | .ilen = 52, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 22996 | .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02" |
| 22997 | "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 22998 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 22999 | .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF" |
| 23000 | "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D" |
| 23001 | "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF" |
| 23002 | "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63" |
| 23003 | "\x74\x8A\x63\x79\x85\x77\x1D\x34" |
| 23004 | "\x7F\x05\x45\x65\x9F\x14\xE9\x9D" |
| 23005 | "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE" |
| 23006 | "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49" |
| 23007 | "\x15\x95\x6C\x96", |
| 23008 | .rlen = 68, |
| 23009 | }, { |
| 23010 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 23011 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 23012 | "\x00\x00\x00\x00", |
| 23013 | .klen = 20, |
| 23014 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23015 | .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00" |
| 23016 | "\x80\x01\xCB\x7A\x40\x67\x93\x18" |
| 23017 | "\x01\x01\x01\x01\x08\x00\x07\x5C" |
| 23018 | "\x02\x00\x44\x00\x61\x62\x63\x64" |
| 23019 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23020 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23021 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 23022 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 23023 | .ilen = 64, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23024 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 23025 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23026 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23027 | .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92" |
| 23028 | "\x73\x29\x09\xC3\x31\xD5\x6D\x60" |
| 23029 | "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F" |
| 23030 | "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84" |
| 23031 | "\x45\x64\x76\x49\x27\x19\xFF\xB6" |
| 23032 | "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94" |
| 23033 | "\xBC\x3B\xD5\x78\x73\xED\x4D\x18" |
| 23034 | "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3" |
| 23035 | "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9" |
| 23036 | "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D", |
| 23037 | .rlen = 80, |
| 23038 | }, { |
| 23039 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23040 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23041 | "\x57\x69\x0E\x43", |
| 23042 | .klen = 20, |
| 23043 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23044 | .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00" |
| 23045 | "\x80\x01\xCB\x7C\x40\x67\x93\x18" |
| 23046 | "\x01\x01\x01\x01\x08\x00\x08\x5C" |
| 23047 | "\x02\x00\x43\x00\x61\x62\x63\x64" |
| 23048 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23049 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23050 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 23051 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 23052 | .ilen = 64, |
| 23053 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23054 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23055 | "\xA2\xFC\xA1\xA3", |
| 23056 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23057 | .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0" |
| 23058 | "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0" |
| 23059 | "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0" |
| 23060 | "\x0D\x11\x38\xEC\x9C\x35\x79\x17" |
| 23061 | "\x65\xAC\xBD\x87\x01\xAD\x79\x84" |
| 23062 | "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9" |
| 23063 | "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D" |
| 23064 | "\x1F\x5E\x22\x73\x95\x30\x32\x0A" |
| 23065 | "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA" |
| 23066 | "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48", |
| 23067 | .rlen = 80, |
| 23068 | }, { |
| 23069 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23070 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23071 | "\x57\x69\x0E\x43", |
| 23072 | .klen = 20, |
| 23073 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23074 | .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00" |
| 23075 | "\x80\x01\x44\x1F\x40\x67\x93\xB6" |
| 23076 | "\xE0\x00\x00\x02\x0A\x00\xF5\xFF" |
| 23077 | "\x01\x02\x02\x01", |
| 23078 | .ilen = 28, |
| 23079 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23080 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23081 | "\xA2\xFC\xA1\xA3", |
| 23082 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23083 | .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0" |
| 23084 | "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E" |
| 23085 | "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13" |
| 23086 | "\x0E\x13\x79\xED\x36\x9F\x07\x1F" |
| 23087 | "\x35\xE0\x34\xBE\x95\xF1\x12\xE4" |
| 23088 | "\xE7\xD0\x5D\x35", |
| 23089 | .rlen = 44, |
| 23090 | }, { |
| 23091 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 23092 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 23093 | "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 23094 | "\xCA\xFE\xBA\xBE", |
| 23095 | .klen = 28, |
| 23096 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 23097 | .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00" |
| 23098 | "\x40\x06\x78\x80\x0A\x01\x03\x8F" |
| 23099 | "\x0A\x01\x06\x12\x80\x23\x06\xB8" |
| 23100 | "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E" |
| 23101 | "\x50\x10\x16\xD0\x75\x68\x00\x01", |
| 23102 | .ilen = 40, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23103 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 23104 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 23105 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23106 | .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4" |
| 23107 | "\x0E\x59\x8B\x81\x22\xDE\x02\x42" |
| 23108 | "\x09\x38\xB3\xAB\x33\xF8\x28\xE6" |
| 23109 | "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0" |
| 23110 | "\x31\x5B\x27\x45\x21\x44\xCC\x77" |
| 23111 | "\x95\x45\x7B\x96\x52\x03\x7F\x53" |
| 23112 | "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36", |
| 23113 | .rlen = 56, |
| 23114 | }, { |
| 23115 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23116 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23117 | "\xDE\xCA\xF8\x88", |
| 23118 | .klen = 20, |
| 23119 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 23120 | .input = "\x45\x00\x00\x49\x33\xBA\x00\x00" |
| 23121 | "\x7F\x11\x91\x06\xC3\xFB\x1D\x10" |
| 23122 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 23123 | "\x00\x35\xDD\x7B\x80\x03\x02\xD5" |
| 23124 | "\x00\x00\x4E\x20\x00\x1E\x8C\x18" |
| 23125 | "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47" |
| 23126 | "\x6B\x91\xB9\x24\xB2\x80\x38\x9D" |
| 23127 | "\x92\xC9\x63\xBA\xC0\x46\xEC\x95" |
| 23128 | "\x9B\x62\x66\xC0\x47\x22\xB1\x49" |
| 23129 | "\x23\x01\x01\x01", |
| 23130 | .ilen = 76, |
| 23131 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23132 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 23133 | "\xCE\xFA\xCE\x74", |
| 23134 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23135 | .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A" |
| 23136 | "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14" |
| 23137 | "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1" |
| 23138 | "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F" |
| 23139 | "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19" |
| 23140 | "\x84\xE6\x58\x63\x96\x5D\x74\x72" |
| 23141 | "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19" |
| 23142 | "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22" |
| 23143 | "\x6F\x21\x27\xB2\x7D\xB3\x57\x24" |
| 23144 | "\xE7\x84\x5D\x68\x65\x1F\x57\xE6" |
| 23145 | "\x5F\x35\x4F\x75\xFF\x17\x01\x57" |
| 23146 | "\x69\x62\x34\x36", |
| 23147 | .rlen = 92, |
| 23148 | }, { |
| 23149 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23150 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23151 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23152 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23153 | "\x73\x61\x6C\x74", |
| 23154 | .klen = 36, |
| 23155 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 23156 | .input = "\x45\x08\x00\x28\x73\x2C\x00\x00" |
| 23157 | "\x40\x06\xE9\xF9\x0A\x01\x06\x12" |
| 23158 | "\x0A\x01\x03\x8F\x06\xB8\x80\x23" |
| 23159 | "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02" |
| 23160 | "\x50\x10\x1F\x64\x6D\x54\x00\x01", |
| 23161 | .ilen = 40, |
| 23162 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23163 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 23164 | "\x69\x76\x65\x63", |
| 23165 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23166 | .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B" |
| 23167 | "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D" |
| 23168 | "\x1F\x27\x8F\xDE\x98\xEF\x67\x54" |
| 23169 | "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F" |
| 23170 | "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E" |
| 23171 | "\x45\x16\x26\xC2\x41\x57\x71\xE3" |
| 23172 | "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35", |
| 23173 | .rlen = 56, |
| 23174 | }, { |
| 23175 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23176 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23177 | "\x57\x69\x0E\x43", |
| 23178 | .klen = 20, |
| 23179 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23180 | .input = "\x45\x00\x00\x49\x33\x3E\x00\x00" |
| 23181 | "\x7F\x11\x91\x82\xC3\xFB\x1D\x10" |
| 23182 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 23183 | "\x00\x35\xCB\x45\x80\x03\x02\x5B" |
| 23184 | "\x00\x00\x01\xE0\x00\x1E\x8C\x18" |
| 23185 | "\xD6\x57\x59\xD5\x22\x84\xA0\x35" |
| 23186 | "\x2C\x71\x47\x5C\x88\x80\x39\x1C" |
| 23187 | "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32" |
| 23188 | "\x5A\xE2\x70\xC0\x38\x99\x49\x39" |
| 23189 | "\x15\x01\x01\x01", |
| 23190 | .ilen = 76, |
| 23191 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23192 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23193 | "\xA2\xFC\xA1\xA3", |
| 23194 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23195 | .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0" |
| 23196 | "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8" |
| 23197 | "\x3D\x77\x84\xB6\x07\x32\x3D\x22" |
| 23198 | "\x0F\x24\xB0\xA9\x7D\x54\x18\x28" |
| 23199 | "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0" |
| 23200 | "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88" |
| 23201 | "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74" |
| 23202 | "\x0F\x74\x24\x44\x74\x7B\x5B\x39" |
| 23203 | "\xAB\x53\x31\x63\xAA\xD4\x55\x0E" |
| 23204 | "\xE5\x16\x09\x75\xCD\xB6\x08\xC5" |
| 23205 | "\x76\x91\x89\x60\x97\x63\xB8\xE1" |
| 23206 | "\x8C\xAA\x81\xE2", |
| 23207 | .rlen = 92, |
| 23208 | }, { |
| 23209 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23210 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23211 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23212 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23213 | "\x73\x61\x6C\x74", |
| 23214 | .klen = 36, |
| 23215 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 23216 | .input = "\x63\x69\x73\x63\x6F\x01\x72\x75" |
| 23217 | "\x6C\x65\x73\x01\x74\x68\x65\x01" |
| 23218 | "\x6E\x65\x74\x77\x65\x01\x64\x65" |
| 23219 | "\x66\x69\x6E\x65\x01\x74\x68\x65" |
| 23220 | "\x74\x65\x63\x68\x6E\x6F\x6C\x6F" |
| 23221 | "\x67\x69\x65\x73\x01\x74\x68\x61" |
| 23222 | "\x74\x77\x69\x6C\x6C\x01\x64\x65" |
| 23223 | "\x66\x69\x6E\x65\x74\x6F\x6D\x6F" |
| 23224 | "\x72\x72\x6F\x77\x01\x02\x02\x01", |
| 23225 | .ilen = 72, |
| 23226 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23227 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 23228 | "\x69\x76\x65\x63", |
| 23229 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23230 | .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E" |
| 23231 | "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E" |
| 23232 | "\x7B\x43\xF8\x26\xFB\x56\x83\x12" |
| 23233 | "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18" |
| 23234 | "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0" |
| 23235 | "\x74\x11\x3E\x14\xC6\x41\x02\x4E" |
| 23236 | "\x3E\x67\x73\xD9\x1A\x62\xEE\x42" |
| 23237 | "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0" |
| 23238 | "\x12\xA4\x93\x63\x41\x23\x64\xF8" |
| 23239 | "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B" |
| 23240 | "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76", |
| 23241 | .rlen = 88, |
| 23242 | }, { |
| 23243 | .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" |
| 23244 | "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47" |
| 23245 | "\xD9\x66\x42\x67", |
| 23246 | .klen = 20, |
| 23247 | .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 23248 | .input = "\x01\x02\x02\x01", |
| 23249 | .ilen = 4, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23250 | .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF" |
| 23251 | "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 23252 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23253 | .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F" |
| 23254 | "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45" |
| 23255 | "\x04\xBE\xF2\x70", |
| 23256 | .rlen = 20, |
| 23257 | }, { |
| 23258 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23259 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23260 | "\xDE\xCA\xF8\x88", |
| 23261 | .klen = 20, |
| 23262 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 23263 | .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72" |
| 23264 | "\x01\x6E\x6F\x74\x01\x74\x6F\x01" |
| 23265 | "\x62\x65\x00\x01", |
| 23266 | .ilen = 20, |
| 23267 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23268 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 23269 | "\xCE\xFA\xCE\x74", |
| 23270 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23271 | .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38" |
| 23272 | "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05" |
| 23273 | "\x43\x33\x21\x64\x41\x25\x03\x52" |
| 23274 | "\x43\x03\xED\x3C\x6C\x5F\x28\x38" |
| 23275 | "\x43\xAF\x8C\x3E", |
| 23276 | .rlen = 36, |
| 23277 | }, { |
| 23278 | .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" |
| 23279 | "\x6D\x61\x72\x69\x6A\x75\x61\x6E" |
| 23280 | "\x61\x61\x6E\x64\x64\x6F\x69\x74" |
| 23281 | "\x62\x65\x66\x6F\x72\x65\x69\x61" |
| 23282 | "\x74\x75\x72\x6E", |
| 23283 | .klen = 36, |
| 23284 | .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D", |
| 23285 | .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 23286 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 23287 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 23288 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 23289 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23290 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23291 | "\x01\x02\x02\x01", |
| 23292 | .ilen = 52, |
| 23293 | .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23294 | "\xFF\xFF\xFF\xFF\x33\x30\x21\x69" |
| 23295 | "\x67\x65\x74\x6D", |
| 23296 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23297 | .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC" |
| 23298 | "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D" |
| 23299 | "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6" |
| 23300 | "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86" |
| 23301 | "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3" |
| 23302 | "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82" |
| 23303 | "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2" |
| 23304 | "\x94\x5F\x66\x93\x68\x66\x1A\x32" |
| 23305 | "\x9F\xB4\xC0\x53", |
| 23306 | .rlen = 68, |
| 23307 | }, { |
| 23308 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23309 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23310 | "\x57\x69\x0E\x43", |
| 23311 | .klen = 20, |
| 23312 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23313 | .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 23314 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 23315 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 23316 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 23317 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23318 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23319 | "\x01\x02\x02\x01", |
| 23320 | .ilen = 52, |
| 23321 | .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23322 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23323 | "\xA2\xFC\xA1\xA3", |
| 23324 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23325 | .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0" |
| 23326 | "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD" |
| 23327 | "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21" |
| 23328 | "\x0D\x11\x7C\xEC\x9C\x35\x79\x17" |
| 23329 | "\x65\xAC\xBD\x87\x01\xAD\x79\x84" |
| 23330 | "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9" |
| 23331 | "\x63\x21\x93\x06\x84\xEE\xCA\xDB" |
| 23332 | "\x56\x91\x25\x46\xE7\xA9\x5C\x97" |
| 23333 | "\x40\xD7\xCB\x05", |
| 23334 | .rlen = 68, |
| 23335 | }, { |
| 23336 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 23337 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 23338 | "\x22\x43\x3C\x64", |
| 23339 | .klen = 20, |
| 23340 | .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD", |
| 23341 | .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00" |
| 23342 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 23343 | "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70" |
| 23344 | "\x71\x72\x73\x74\x01\x02\x02\x01", |
| 23345 | .ilen = 32, |
| 23346 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23347 | "\x00\x00\x00\x07\x48\x55\xEC\x7D" |
| 23348 | "\x3A\x23\x4B\xFD", |
| 23349 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23350 | .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C" |
| 23351 | "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF" |
| 23352 | "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6" |
| 23353 | "\xAC\xDA\x68\x94\xBC\x61\x90\x69" |
| 23354 | "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7" |
| 23355 | "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0", |
| 23356 | .rlen = 48, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23357 | } |
| 23358 | }; |
| 23359 | |
| 23360 | static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = { |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23361 | { /* Generated using Crypto++ */ |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23362 | .key = zeroed_string, |
| 23363 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23364 | .iv = zeroed_string, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23365 | .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23366 | "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" |
| 23367 | "\x97\xFE\x4C\x23\x37\x42\x01\xE0" |
| 23368 | "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23369 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23370 | .assoc = zeroed_string, |
| 23371 | .alen = 16, |
| 23372 | .result = zeroed_string, |
| 23373 | .rlen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23374 | |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23375 | },{ |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23376 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 23377 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23378 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23379 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23380 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23381 | .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23382 | "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" |
| 23383 | "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" |
| 23384 | "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23385 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23386 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 23387 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 23388 | .alen = 16, |
| 23389 | .result = zeroed_string, |
| 23390 | .rlen = 16, |
| 23391 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23392 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 23393 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23394 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23395 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23396 | .iv = zeroed_string, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23397 | .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23398 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 23399 | "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" |
| 23400 | "\xB1\x68\xFD\x14\x52\x64\x61\xB2", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23401 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23402 | .assoc = zeroed_string, |
| 23403 | .alen = 16, |
| 23404 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23405 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 23406 | .rlen = 16, |
| 23407 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23408 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 23409 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23410 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23411 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23412 | .iv = zeroed_string, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23413 | .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23414 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 23415 | "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" |
| 23416 | "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23417 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23418 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23419 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23420 | .alen = 16, |
| 23421 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23422 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 23423 | .rlen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23424 | |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23425 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23426 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 23427 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23428 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23429 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23430 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23431 | .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23432 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 23433 | "\x64\x50\xF9\x32\x13\xFB\x74\x61" |
| 23434 | "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23435 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23436 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23437 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 23438 | .alen = 16, |
| 23439 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23440 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 23441 | .rlen = 16, |
| 23442 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23443 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 23444 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23445 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23446 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23447 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23448 | .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23449 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 23450 | "\x98\x14\xA1\x42\x37\x80\xFD\x90" |
| 23451 | "\x68\x12\x01\xA8\x91\x89\xB9\x83" |
| 23452 | "\x5B\x11\x77\x12\x9B\xFF\x24\x89" |
| 23453 | "\x94\x5F\x18\x12\xBA\x27\x09\x39" |
| 23454 | "\x99\x96\x76\x42\x15\x1C\xCD\xCB" |
| 23455 | "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" |
| 23456 | "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" |
| 23457 | "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23458 | .ilen = 80, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23459 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23460 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 23461 | .alen = 16, |
| 23462 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23463 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23464 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23465 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23466 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23467 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23468 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 23469 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 23470 | .rlen = 64, |
| 23471 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23472 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 23473 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23474 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23475 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23476 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23477 | .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" |
| 23478 | "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" |
| 23479 | "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" |
| 23480 | "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" |
| 23481 | "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" |
| 23482 | "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" |
| 23483 | "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" |
| 23484 | "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" |
| 23485 | "\xCF\x07\x57\x41\x67\xD0\xC4\x42" |
| 23486 | "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" |
| 23487 | "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" |
| 23488 | "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" |
| 23489 | "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" |
| 23490 | "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" |
| 23491 | "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" |
| 23492 | "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" |
| 23493 | "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" |
| 23494 | "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" |
| 23495 | "\x7E\x13\x06\x82\x08\x17\xA4\x35" |
| 23496 | "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" |
| 23497 | "\xA3\x05\x38\x95\x20\x1A\x47\x04" |
| 23498 | "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" |
| 23499 | "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" |
| 23500 | "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" |
| 23501 | "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" |
| 23502 | "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", |
| 23503 | .ilen = 208, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23504 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 23505 | "\xaa\xaa\xaa\xaa\x00\x00\x45\x67" |
| 23506 | "\x89\xab\xcd\xef", |
| 23507 | .alen = 20, |
| 23508 | .result = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23509 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23510 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23511 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23512 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23513 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23514 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23515 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23516 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23517 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23518 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23519 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23520 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23521 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23522 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23523 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23524 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23525 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23526 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23527 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23528 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23529 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23530 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 23531 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 23532 | .rlen = 192, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23533 | }, { |
| 23534 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 23535 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 23536 | "\x2E\x44\x3B\x68", |
| 23537 | .klen = 20, |
| 23538 | .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE", |
| 23539 | .result = "\x45\x00\x00\x48\x69\x9A\x00\x00" |
| 23540 | "\x80\x11\x4D\xB7\xC0\xA8\x01\x02" |
| 23541 | "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56" |
| 23542 | "\x38\xD3\x01\x00\x00\x01\x00\x00" |
| 23543 | "\x00\x00\x00\x00\x04\x5F\x73\x69" |
| 23544 | "\x70\x04\x5F\x75\x64\x70\x03\x73" |
| 23545 | "\x69\x70\x09\x63\x79\x62\x65\x72" |
| 23546 | "\x63\x69\x74\x79\x02\x64\x6B\x00" |
| 23547 | "\x00\x21\x00\x01\x01\x02\x02\x01", |
| 23548 | .rlen = 72, |
| 23549 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23550 | "\x00\x00\x00\x00\x49\x56\xED\x7E" |
| 23551 | "\x3B\x24\x4C\xFE", |
| 23552 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23553 | .input = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07" |
| 23554 | "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76" |
| 23555 | "\x8D\x1B\x98\x73\x66\x96\xA6\xFD" |
| 23556 | "\x34\x85\x09\xFA\x13\xCE\xAC\x34" |
| 23557 | "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF" |
| 23558 | "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D" |
| 23559 | "\x15\xB2\x1E\x18\x84\xF5\xFF\x62" |
| 23560 | "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE" |
| 23561 | "\x61\xBC\x17\xD7\x68\xFD\x97\x32" |
| 23562 | "\x45\x90\x18\x14\x8F\x6C\xBE\x72" |
| 23563 | "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4", |
| 23564 | .ilen = 88, |
| 23565 | }, { |
| 23566 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 23567 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 23568 | "\xCA\xFE\xBA\xBE", |
| 23569 | .klen = 20, |
| 23570 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 23571 | .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00" |
| 23572 | "\x80\x11\x4D\xCC\xC0\xA8\x01\x02" |
| 23573 | "\xC0\xA8\x01\x01\x0A\x98\x00\x35" |
| 23574 | "\x00\x2A\x23\x43\xB2\xD0\x01\x00" |
| 23575 | "\x00\x01\x00\x00\x00\x00\x00\x00" |
| 23576 | "\x03\x73\x69\x70\x09\x63\x79\x62" |
| 23577 | "\x65\x72\x63\x69\x74\x79\x02\x64" |
| 23578 | "\x6B\x00\x00\x01\x00\x01\x00\x01", |
| 23579 | .rlen = 64, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23580 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 23581 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 23582 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23583 | .input = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1" |
| 23584 | "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04" |
| 23585 | "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F" |
| 23586 | "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C" |
| 23587 | "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F" |
| 23588 | "\x51\x33\x0D\x0E\xEC\x41\x66\x42" |
| 23589 | "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4" |
| 23590 | "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1" |
| 23591 | "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4" |
| 23592 | "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A", |
| 23593 | .ilen = 80, |
| 23594 | }, { |
| 23595 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23596 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23597 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23598 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23599 | "\x11\x22\x33\x44", |
| 23600 | .klen = 36, |
| 23601 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 23602 | .result = "\x45\x00\x00\x30\x69\xA6\x40\x00" |
| 23603 | "\x80\x06\x26\x90\xC0\xA8\x01\x02" |
| 23604 | "\x93\x89\x15\x5E\x0A\x9E\x00\x8B" |
| 23605 | "\x2D\xC5\x7E\xE0\x00\x00\x00\x00" |
| 23606 | "\x70\x02\x40\x00\x20\xBF\x00\x00" |
| 23607 | "\x02\x04\x05\xB4\x01\x01\x04\x02" |
| 23608 | "\x01\x02\x02\x01", |
| 23609 | .rlen = 52, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23610 | .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02" |
| 23611 | "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 23612 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23613 | .input = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF" |
| 23614 | "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D" |
| 23615 | "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF" |
| 23616 | "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63" |
| 23617 | "\x74\x8A\x63\x79\x85\x77\x1D\x34" |
| 23618 | "\x7F\x05\x45\x65\x9F\x14\xE9\x9D" |
| 23619 | "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE" |
| 23620 | "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49" |
| 23621 | "\x15\x95\x6C\x96", |
| 23622 | .ilen = 68, |
| 23623 | }, { |
| 23624 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 23625 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 23626 | "\x00\x00\x00\x00", |
| 23627 | .klen = 20, |
| 23628 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23629 | .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00" |
| 23630 | "\x80\x01\xCB\x7A\x40\x67\x93\x18" |
| 23631 | "\x01\x01\x01\x01\x08\x00\x07\x5C" |
| 23632 | "\x02\x00\x44\x00\x61\x62\x63\x64" |
| 23633 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23634 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23635 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 23636 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 23637 | .rlen = 64, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23638 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 23639 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23640 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23641 | .input = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92" |
| 23642 | "\x73\x29\x09\xC3\x31\xD5\x6D\x60" |
| 23643 | "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F" |
| 23644 | "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84" |
| 23645 | "\x45\x64\x76\x49\x27\x19\xFF\xB6" |
| 23646 | "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94" |
| 23647 | "\xBC\x3B\xD5\x78\x73\xED\x4D\x18" |
| 23648 | "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3" |
| 23649 | "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9" |
| 23650 | "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D", |
| 23651 | .ilen = 80, |
| 23652 | }, { |
| 23653 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23654 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23655 | "\x57\x69\x0E\x43", |
| 23656 | .klen = 20, |
| 23657 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23658 | .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00" |
| 23659 | "\x80\x01\xCB\x7C\x40\x67\x93\x18" |
| 23660 | "\x01\x01\x01\x01\x08\x00\x08\x5C" |
| 23661 | "\x02\x00\x43\x00\x61\x62\x63\x64" |
| 23662 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23663 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23664 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 23665 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 23666 | .rlen = 64, |
| 23667 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23668 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23669 | "\xA2\xFC\xA1\xA3", |
| 23670 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23671 | .input = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0" |
| 23672 | "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0" |
| 23673 | "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0" |
| 23674 | "\x0D\x11\x38\xEC\x9C\x35\x79\x17" |
| 23675 | "\x65\xAC\xBD\x87\x01\xAD\x79\x84" |
| 23676 | "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9" |
| 23677 | "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D" |
| 23678 | "\x1F\x5E\x22\x73\x95\x30\x32\x0A" |
| 23679 | "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA" |
| 23680 | "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48", |
| 23681 | .ilen = 80, |
| 23682 | }, { |
| 23683 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23684 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23685 | "\x57\x69\x0E\x43", |
| 23686 | .klen = 20, |
| 23687 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23688 | .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00" |
| 23689 | "\x80\x01\x44\x1F\x40\x67\x93\xB6" |
| 23690 | "\xE0\x00\x00\x02\x0A\x00\xF5\xFF" |
| 23691 | "\x01\x02\x02\x01", |
| 23692 | .rlen = 28, |
| 23693 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23694 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23695 | "\xA2\xFC\xA1\xA3", |
| 23696 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23697 | .input = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0" |
| 23698 | "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E" |
| 23699 | "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13" |
| 23700 | "\x0E\x13\x79\xED\x36\x9F\x07\x1F" |
| 23701 | "\x35\xE0\x34\xBE\x95\xF1\x12\xE4" |
| 23702 | "\xE7\xD0\x5D\x35", |
| 23703 | .ilen = 44, |
| 23704 | }, { |
| 23705 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 23706 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 23707 | "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 23708 | "\xCA\xFE\xBA\xBE", |
| 23709 | .klen = 28, |
| 23710 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 23711 | .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00" |
| 23712 | "\x40\x06\x78\x80\x0A\x01\x03\x8F" |
| 23713 | "\x0A\x01\x06\x12\x80\x23\x06\xB8" |
| 23714 | "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E" |
| 23715 | "\x50\x10\x16\xD0\x75\x68\x00\x01", |
| 23716 | .rlen = 40, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23717 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 23718 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 23719 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23720 | .input = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4" |
| 23721 | "\x0E\x59\x8B\x81\x22\xDE\x02\x42" |
| 23722 | "\x09\x38\xB3\xAB\x33\xF8\x28\xE6" |
| 23723 | "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0" |
| 23724 | "\x31\x5B\x27\x45\x21\x44\xCC\x77" |
| 23725 | "\x95\x45\x7B\x96\x52\x03\x7F\x53" |
| 23726 | "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36", |
| 23727 | .ilen = 56, |
| 23728 | }, { |
| 23729 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23730 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23731 | "\xDE\xCA\xF8\x88", |
| 23732 | .klen = 20, |
| 23733 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 23734 | .result = "\x45\x00\x00\x49\x33\xBA\x00\x00" |
| 23735 | "\x7F\x11\x91\x06\xC3\xFB\x1D\x10" |
| 23736 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 23737 | "\x00\x35\xDD\x7B\x80\x03\x02\xD5" |
| 23738 | "\x00\x00\x4E\x20\x00\x1E\x8C\x18" |
| 23739 | "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47" |
| 23740 | "\x6B\x91\xB9\x24\xB2\x80\x38\x9D" |
| 23741 | "\x92\xC9\x63\xBA\xC0\x46\xEC\x95" |
| 23742 | "\x9B\x62\x66\xC0\x47\x22\xB1\x49" |
| 23743 | "\x23\x01\x01\x01", |
| 23744 | .rlen = 76, |
| 23745 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23746 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 23747 | "\xCE\xFA\xCE\x74", |
| 23748 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23749 | .input = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A" |
| 23750 | "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14" |
| 23751 | "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1" |
| 23752 | "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F" |
| 23753 | "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19" |
| 23754 | "\x84\xE6\x58\x63\x96\x5D\x74\x72" |
| 23755 | "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19" |
| 23756 | "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22" |
| 23757 | "\x6F\x21\x27\xB2\x7D\xB3\x57\x24" |
| 23758 | "\xE7\x84\x5D\x68\x65\x1F\x57\xE6" |
| 23759 | "\x5F\x35\x4F\x75\xFF\x17\x01\x57" |
| 23760 | "\x69\x62\x34\x36", |
| 23761 | .ilen = 92, |
| 23762 | }, { |
| 23763 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23764 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23765 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23766 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23767 | "\x73\x61\x6C\x74", |
| 23768 | .klen = 36, |
| 23769 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 23770 | .result = "\x45\x08\x00\x28\x73\x2C\x00\x00" |
| 23771 | "\x40\x06\xE9\xF9\x0A\x01\x06\x12" |
| 23772 | "\x0A\x01\x03\x8F\x06\xB8\x80\x23" |
| 23773 | "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02" |
| 23774 | "\x50\x10\x1F\x64\x6D\x54\x00\x01", |
| 23775 | .rlen = 40, |
| 23776 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23777 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 23778 | "\x69\x76\x65\x63", |
| 23779 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23780 | .input = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B" |
| 23781 | "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D" |
| 23782 | "\x1F\x27\x8F\xDE\x98\xEF\x67\x54" |
| 23783 | "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F" |
| 23784 | "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E" |
| 23785 | "\x45\x16\x26\xC2\x41\x57\x71\xE3" |
| 23786 | "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35", |
| 23787 | .ilen = 56, |
| 23788 | }, { |
| 23789 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23790 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23791 | "\x57\x69\x0E\x43", |
| 23792 | .klen = 20, |
| 23793 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23794 | .result = "\x45\x00\x00\x49\x33\x3E\x00\x00" |
| 23795 | "\x7F\x11\x91\x82\xC3\xFB\x1D\x10" |
| 23796 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 23797 | "\x00\x35\xCB\x45\x80\x03\x02\x5B" |
| 23798 | "\x00\x00\x01\xE0\x00\x1E\x8C\x18" |
| 23799 | "\xD6\x57\x59\xD5\x22\x84\xA0\x35" |
| 23800 | "\x2C\x71\x47\x5C\x88\x80\x39\x1C" |
| 23801 | "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32" |
| 23802 | "\x5A\xE2\x70\xC0\x38\x99\x49\x39" |
| 23803 | "\x15\x01\x01\x01", |
| 23804 | .rlen = 76, |
| 23805 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23806 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23807 | "\xA2\xFC\xA1\xA3", |
| 23808 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23809 | .input = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0" |
| 23810 | "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8" |
| 23811 | "\x3D\x77\x84\xB6\x07\x32\x3D\x22" |
| 23812 | "\x0F\x24\xB0\xA9\x7D\x54\x18\x28" |
| 23813 | "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0" |
| 23814 | "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88" |
| 23815 | "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74" |
| 23816 | "\x0F\x74\x24\x44\x74\x7B\x5B\x39" |
| 23817 | "\xAB\x53\x31\x63\xAA\xD4\x55\x0E" |
| 23818 | "\xE5\x16\x09\x75\xCD\xB6\x08\xC5" |
| 23819 | "\x76\x91\x89\x60\x97\x63\xB8\xE1" |
| 23820 | "\x8C\xAA\x81\xE2", |
| 23821 | .ilen = 92, |
| 23822 | }, { |
| 23823 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23824 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23825 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23826 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23827 | "\x73\x61\x6C\x74", |
| 23828 | .klen = 36, |
| 23829 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 23830 | .result = "\x63\x69\x73\x63\x6F\x01\x72\x75" |
| 23831 | "\x6C\x65\x73\x01\x74\x68\x65\x01" |
| 23832 | "\x6E\x65\x74\x77\x65\x01\x64\x65" |
| 23833 | "\x66\x69\x6E\x65\x01\x74\x68\x65" |
| 23834 | "\x74\x65\x63\x68\x6E\x6F\x6C\x6F" |
| 23835 | "\x67\x69\x65\x73\x01\x74\x68\x61" |
| 23836 | "\x74\x77\x69\x6C\x6C\x01\x64\x65" |
| 23837 | "\x66\x69\x6E\x65\x74\x6F\x6D\x6F" |
| 23838 | "\x72\x72\x6F\x77\x01\x02\x02\x01", |
| 23839 | .rlen = 72, |
| 23840 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23841 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 23842 | "\x69\x76\x65\x63", |
| 23843 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23844 | .input = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E" |
| 23845 | "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E" |
| 23846 | "\x7B\x43\xF8\x26\xFB\x56\x83\x12" |
| 23847 | "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18" |
| 23848 | "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0" |
| 23849 | "\x74\x11\x3E\x14\xC6\x41\x02\x4E" |
| 23850 | "\x3E\x67\x73\xD9\x1A\x62\xEE\x42" |
| 23851 | "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0" |
| 23852 | "\x12\xA4\x93\x63\x41\x23\x64\xF8" |
| 23853 | "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B" |
| 23854 | "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76", |
| 23855 | .ilen = 88, |
| 23856 | }, { |
| 23857 | .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" |
| 23858 | "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47" |
| 23859 | "\xD9\x66\x42\x67", |
| 23860 | .klen = 20, |
| 23861 | .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 23862 | .result = "\x01\x02\x02\x01", |
| 23863 | .rlen = 4, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23864 | .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF" |
| 23865 | "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 23866 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23867 | .input = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F" |
| 23868 | "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45" |
| 23869 | "\x04\xBE\xF2\x70", |
| 23870 | .ilen = 20, |
| 23871 | }, { |
| 23872 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23873 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23874 | "\xDE\xCA\xF8\x88", |
| 23875 | .klen = 20, |
| 23876 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 23877 | .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72" |
| 23878 | "\x01\x6E\x6F\x74\x01\x74\x6F\x01" |
| 23879 | "\x62\x65\x00\x01", |
| 23880 | .rlen = 20, |
| 23881 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23882 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 23883 | "\xCE\xFA\xCE\x74", |
| 23884 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23885 | .input = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38" |
| 23886 | "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05" |
| 23887 | "\x43\x33\x21\x64\x41\x25\x03\x52" |
| 23888 | "\x43\x03\xED\x3C\x6C\x5F\x28\x38" |
| 23889 | "\x43\xAF\x8C\x3E", |
| 23890 | .ilen = 36, |
| 23891 | }, { |
| 23892 | .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" |
| 23893 | "\x6D\x61\x72\x69\x6A\x75\x61\x6E" |
| 23894 | "\x61\x61\x6E\x64\x64\x6F\x69\x74" |
| 23895 | "\x62\x65\x66\x6F\x72\x65\x69\x61" |
| 23896 | "\x74\x75\x72\x6E", |
| 23897 | .klen = 36, |
| 23898 | .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D", |
| 23899 | .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 23900 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 23901 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 23902 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 23903 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23904 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23905 | "\x01\x02\x02\x01", |
| 23906 | .rlen = 52, |
| 23907 | .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23908 | "\xFF\xFF\xFF\xFF\x33\x30\x21\x69" |
| 23909 | "\x67\x65\x74\x6D", |
| 23910 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23911 | .input = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC" |
| 23912 | "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D" |
| 23913 | "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6" |
| 23914 | "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86" |
| 23915 | "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3" |
| 23916 | "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82" |
| 23917 | "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2" |
| 23918 | "\x94\x5F\x66\x93\x68\x66\x1A\x32" |
| 23919 | "\x9F\xB4\xC0\x53", |
| 23920 | .ilen = 68, |
| 23921 | }, { |
| 23922 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23923 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23924 | "\x57\x69\x0E\x43", |
| 23925 | .klen = 20, |
| 23926 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23927 | .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 23928 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 23929 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 23930 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 23931 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23932 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23933 | "\x01\x02\x02\x01", |
| 23934 | .rlen = 52, |
| 23935 | .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23936 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23937 | "\xA2\xFC\xA1\xA3", |
| 23938 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23939 | .input = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0" |
| 23940 | "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD" |
| 23941 | "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21" |
| 23942 | "\x0D\x11\x7C\xEC\x9C\x35\x79\x17" |
| 23943 | "\x65\xAC\xBD\x87\x01\xAD\x79\x84" |
| 23944 | "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9" |
| 23945 | "\x63\x21\x93\x06\x84\xEE\xCA\xDB" |
| 23946 | "\x56\x91\x25\x46\xE7\xA9\x5C\x97" |
| 23947 | "\x40\xD7\xCB\x05", |
| 23948 | .ilen = 68, |
| 23949 | }, { |
| 23950 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 23951 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 23952 | "\x22\x43\x3C\x64", |
| 23953 | .klen = 20, |
| 23954 | .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD", |
| 23955 | .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00" |
| 23956 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 23957 | "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70" |
| 23958 | "\x71\x72\x73\x74\x01\x02\x02\x01", |
| 23959 | .rlen = 32, |
| 23960 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 23961 | "\x00\x00\x00\x07\x48\x55\xEC\x7D" |
| 23962 | "\x3A\x23\x4B\xFD", |
| 23963 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 23964 | .input = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C" |
| 23965 | "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF" |
| 23966 | "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6" |
| 23967 | "\xAC\xDA\x68\x94\xBC\x61\x90\x69" |
| 23968 | "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7" |
| 23969 | "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0", |
| 23970 | .ilen = 48, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 23971 | } |
| 23972 | }; |
| 23973 | |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 23974 | static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = { |
| 23975 | { /* From draft-mcgrew-gcm-test-01 */ |
| 23976 | .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" |
| 23977 | "\x90\x6a\xc7\x3c\x36\x13\xa6\x34" |
| 23978 | "\x22\x43\x3c\x64", |
| 23979 | .klen = 20, |
| 23980 | .iv = zeroed_string, |
Herbert Xu | 0af8fbc | 2015-06-16 13:54:19 +0800 | [diff] [blame] | 23981 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07" |
| 23982 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23983 | .alen = 16, |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 23984 | .input = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 23985 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 23986 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 23987 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 23988 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 23989 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 23990 | "\x01\x02\x02\x01", |
| 23991 | .ilen = 52, |
| 23992 | .result = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 23993 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 23994 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 23995 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 23996 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 23997 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 23998 | "\x01\x02\x02\x01\xf2\xa9\xa8\x36" |
| 23999 | "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18" |
| 24000 | "\xe4\x09\x9a\xaa", |
| 24001 | .rlen = 68, |
| 24002 | } |
| 24003 | }; |
| 24004 | |
| 24005 | static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = { |
| 24006 | { /* From draft-mcgrew-gcm-test-01 */ |
| 24007 | .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" |
| 24008 | "\x90\x6a\xc7\x3c\x36\x13\xa6\x34" |
| 24009 | "\x22\x43\x3c\x64", |
| 24010 | .klen = 20, |
| 24011 | .iv = zeroed_string, |
Herbert Xu | 0af8fbc | 2015-06-16 13:54:19 +0800 | [diff] [blame] | 24012 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07" |
| 24013 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24014 | .alen = 16, |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 24015 | .input = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 24016 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 24017 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 24018 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 24019 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 24020 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 24021 | "\x01\x02\x02\x01\xf2\xa9\xa8\x36" |
| 24022 | "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18" |
| 24023 | "\xe4\x09\x9a\xaa", |
| 24024 | .ilen = 68, |
| 24025 | .result = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 24026 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 24027 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 24028 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 24029 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 24030 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 24031 | "\x01\x02\x02\x01", |
| 24032 | .rlen = 52, |
| 24033 | }, { /* nearly same as previous, but should fail */ |
| 24034 | .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" |
| 24035 | "\x90\x6a\xc7\x3c\x36\x13\xa6\x34" |
| 24036 | "\x22\x43\x3c\x64", |
| 24037 | .klen = 20, |
| 24038 | .iv = zeroed_string, |
Herbert Xu | 0af8fbc | 2015-06-16 13:54:19 +0800 | [diff] [blame] | 24039 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07" |
| 24040 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24041 | .alen = 16, |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 24042 | .input = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 24043 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 24044 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 24045 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 24046 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 24047 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 24048 | "\x01\x02\x02\x01\xf2\xa9\xa8\x36" |
| 24049 | "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18" |
| 24050 | "\x00\x00\x00\x00", |
| 24051 | .ilen = 68, |
| 24052 | .novrfy = 1, |
| 24053 | .result = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 24054 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 24055 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 24056 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 24057 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 24058 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 24059 | "\x01\x02\x02\x01", |
| 24060 | .rlen = 52, |
| 24061 | }, |
| 24062 | }; |
| 24063 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 24064 | static struct aead_testvec aes_ccm_enc_tv_template[] = { |
| 24065 | { /* From RFC 3610 */ |
| 24066 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 24067 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 24068 | .klen = 16, |
| 24069 | .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" |
| 24070 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 24071 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 24072 | .alen = 8, |
| 24073 | .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 24074 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 24075 | "\x18\x19\x1a\x1b\x1c\x1d\x1e", |
| 24076 | .ilen = 23, |
| 24077 | .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" |
| 24078 | "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" |
| 24079 | "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" |
| 24080 | "\xe8\xd1\x2c\xfd\xf9\x26\xe0", |
| 24081 | .rlen = 31, |
| 24082 | }, { |
| 24083 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 24084 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 24085 | .klen = 16, |
| 24086 | .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" |
| 24087 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 24088 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 24089 | "\x08\x09\x0a\x0b", |
| 24090 | .alen = 12, |
| 24091 | .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 24092 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 24093 | "\x1c\x1d\x1e\x1f", |
| 24094 | .ilen = 20, |
| 24095 | .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" |
| 24096 | "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" |
| 24097 | "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" |
| 24098 | "\x7d\x9c\x2d\x93", |
| 24099 | .rlen = 28, |
| 24100 | }, { |
| 24101 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 24102 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 24103 | .klen = 16, |
| 24104 | .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" |
| 24105 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 24106 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 24107 | .alen = 8, |
| 24108 | .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 24109 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 24110 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 24111 | "\x20", |
| 24112 | .ilen = 25, |
| 24113 | .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" |
| 24114 | "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" |
| 24115 | "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" |
| 24116 | "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" |
| 24117 | "\x7e\x5f\x4e", |
| 24118 | .rlen = 35, |
| 24119 | }, { |
| 24120 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 24121 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 24122 | .klen = 16, |
| 24123 | .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" |
| 24124 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 24125 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 24126 | "\x08\x09\x0a\x0b", |
| 24127 | .alen = 12, |
| 24128 | .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 24129 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 24130 | "\x1c\x1d\x1e", |
| 24131 | .ilen = 19, |
| 24132 | .result = "\x07\x34\x25\x94\x15\x77\x85\x15" |
| 24133 | "\x2b\x07\x40\x98\x33\x0a\xbb\x14" |
| 24134 | "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" |
| 24135 | "\x4d\x99\x99\x88\xdd", |
| 24136 | .rlen = 29, |
| 24137 | }, { |
| 24138 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 24139 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 24140 | .klen = 16, |
| 24141 | .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" |
| 24142 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 24143 | .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", |
| 24144 | .alen = 8, |
| 24145 | .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" |
| 24146 | "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" |
| 24147 | "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", |
| 24148 | .ilen = 24, |
| 24149 | .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" |
| 24150 | "\xa0\x72\x6c\x55\xd3\x78\x06\x12" |
| 24151 | "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" |
| 24152 | "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", |
| 24153 | .rlen = 32, |
| 24154 | }, { |
| 24155 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 24156 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 24157 | .klen = 16, |
| 24158 | .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" |
| 24159 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 24160 | .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" |
| 24161 | "\x20\xea\x60\xc0", |
| 24162 | .alen = 12, |
| 24163 | .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" |
| 24164 | "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" |
| 24165 | "\x3a\x80\x3b\xa8\x7f", |
| 24166 | .ilen = 21, |
| 24167 | .result = "\x00\x97\x69\xec\xab\xdf\x48\x62" |
| 24168 | "\x55\x94\xc5\x92\x51\xe6\x03\x57" |
| 24169 | "\x22\x67\x5e\x04\xc8\x47\x09\x9e" |
| 24170 | "\x5a\xe0\x70\x45\x51", |
| 24171 | .rlen = 29, |
| 24172 | }, { |
| 24173 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 24174 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 24175 | .klen = 16, |
| 24176 | .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" |
| 24177 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 24178 | .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", |
| 24179 | .alen = 8, |
| 24180 | .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" |
| 24181 | "\x8e\x5e\x67\x01\xc9\x17\x87\x65" |
| 24182 | "\x98\x09\xd6\x7d\xbe\xdd\x18", |
| 24183 | .ilen = 23, |
| 24184 | .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" |
| 24185 | "\xdb\x38\x6a\x99\xac\x1a\xef\x23" |
| 24186 | "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" |
| 24187 | "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" |
| 24188 | "\xba", |
| 24189 | .rlen = 33, |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 24190 | }, { |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24191 | /* This is taken from FIPS CAVS. */ |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 24192 | .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05" |
| 24193 | "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e", |
| 24194 | .klen = 16, |
| 24195 | .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0", |
| 24196 | .alen = 0, |
| 24197 | .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93" |
| 24198 | "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e" |
| 24199 | "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c" |
| 24200 | "\x35\x2e\xad\xe0\x62\xf9\x91\xa1", |
| 24201 | .ilen = 32, |
| 24202 | .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8" |
| 24203 | "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1" |
| 24204 | "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a" |
| 24205 | "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32" |
| 24206 | "\xda\x24\xea\xd9\xa1\x39\x98\xfd" |
| 24207 | "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8", |
| 24208 | .rlen = 48, |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24209 | }, { |
| 24210 | .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0" |
| 24211 | "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3", |
| 24212 | .klen = 16, |
| 24213 | .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8" |
| 24214 | "\x30\x60\x15\x56\x00\x00\x00\x00", |
| 24215 | .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63" |
| 24216 | "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7" |
| 24217 | "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1" |
| 24218 | "\x0a\x63\x09\x78\xbc\x2c\x55\xde", |
| 24219 | .alen = 32, |
| 24220 | .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78" |
| 24221 | "\xa9\x28\x63\xba\x12\xa3\x14\x85" |
| 24222 | "\x57\x1e\x06\xc9\x7b\x21\xef\x76" |
| 24223 | "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e", |
| 24224 | .ilen = 32, |
| 24225 | .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19" |
| 24226 | "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab" |
| 24227 | "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff" |
| 24228 | "\x3b\xb5\xce\x53\xef\xde\xbb\x02" |
| 24229 | "\xa9\x86\x15\x6c\x13\xfe\xda\x0a" |
| 24230 | "\x22\xb8\x29\x3d\xd8\x39\x9a\x23", |
| 24231 | .rlen = 48, |
| 24232 | }, { |
| 24233 | .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1" |
| 24234 | "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75" |
| 24235 | "\x53\x14\x73\x66\x8d\x88\xf6\x80", |
| 24236 | .klen = 24, |
| 24237 | .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d" |
| 24238 | "\x50\x20\xda\xe2\x00\x00\x00\x00", |
| 24239 | .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1" |
| 24240 | "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47" |
| 24241 | "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d" |
| 24242 | "\xd8\x9e\x2b\x56\x10\x23\x56\xe7", |
| 24243 | .alen = 32, |
| 24244 | .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc" |
| 24245 | "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b", |
| 24246 | .rlen = 16, |
| 24247 | }, { |
| 24248 | .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42" |
| 24249 | "\xef\x7a\xd3\xce\xfc\x84\x60\x62" |
| 24250 | "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01", |
| 24251 | .klen = 24, |
| 24252 | .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd" |
| 24253 | "\xef\x09\x2e\x94\x00\x00\x00\x00", |
| 24254 | .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91" |
| 24255 | "\xb1\xb9\xda\x76\x9a\x78\x6d\x95" |
| 24256 | "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c" |
| 24257 | "\xe3\x00\x73\x69\x84\x69\x87\x79", |
| 24258 | .alen = 32, |
| 24259 | .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c" |
| 24260 | "\x43\x69\x3a\x2d\x8e\x70\xad\x7e" |
| 24261 | "\xe0\xe5\x46\x09\x80\x89\x13\xb2" |
| 24262 | "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b", |
| 24263 | .ilen = 32, |
| 24264 | .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62" |
| 24265 | "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f" |
| 24266 | "\x9b\x6a\x09\x70\xc1\x51\x83\xc2" |
| 24267 | "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e" |
| 24268 | "\xc7\x79\x11\x58\xe5\x6b\x20\x40" |
| 24269 | "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1", |
| 24270 | .rlen = 48, |
| 24271 | }, { |
| 24272 | .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a" |
| 24273 | "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a" |
| 24274 | "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e" |
| 24275 | "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b", |
| 24276 | .klen = 32, |
| 24277 | .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53" |
| 24278 | "\x0a\xcf\x2d\xbe\x00\x00\x00\x00", |
| 24279 | .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b" |
| 24280 | "\x78\x2b\x94\x02\x29\x0f\x42\x27" |
| 24281 | "\x6b\x75\xcb\x98\x34\x08\x7e\x79" |
| 24282 | "\xe4\x3e\x49\x0d\x84\x8b\x22\x87", |
| 24283 | .alen = 32, |
| 24284 | .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f" |
| 24285 | "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66" |
| 24286 | "\xbf\x17\x99\x62\x4a\x39\x27\x1f" |
| 24287 | "\x1d\xdc\x24\xae\x19\x2f\x98\x4c", |
| 24288 | .ilen = 32, |
| 24289 | .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96" |
| 24290 | "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6" |
| 24291 | "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f" |
| 24292 | "\xf0\x62\x17\x34\xf2\x1e\x8d\x75" |
| 24293 | "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d", |
| 24294 | .rlen = 40, |
| 24295 | }, { |
| 24296 | .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c" |
| 24297 | "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32" |
| 24298 | "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c" |
| 24299 | "\x09\x75\x9a\x9b\x3c\x9b\x27\x39", |
| 24300 | .klen = 32, |
| 24301 | .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d" |
Laura Abbott | abf7446 | 2017-02-28 14:07:25 -0800 | [diff] [blame] | 24302 | "\x43\xf6\x1e\x50\0\0\0\0", |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24303 | .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b" |
| 24304 | "\x13\x02\x01\x0c\x83\x4c\x96\x35" |
| 24305 | "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94" |
| 24306 | "\xb0\x39\x36\xe6\x8f\x57\xe0\x13", |
| 24307 | .alen = 32, |
| 24308 | .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6" |
| 24309 | "\x83\x72\x07\x4f\xcf\xfa\x66\x89" |
| 24310 | "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27" |
| 24311 | "\x30\xdb\x75\x09\x93\xd4\x65\xe4", |
| 24312 | .ilen = 32, |
| 24313 | .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d" |
| 24314 | "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d" |
| 24315 | "\xcc\x63\x44\x25\x07\x78\x4f\x9e" |
| 24316 | "\x96\xb8\x88\xeb\xbc\x48\x1f\x06" |
| 24317 | "\x39\xaf\x39\xac\xd8\x4a\x80\x39" |
| 24318 | "\x7b\x72\x8a\xf7", |
| 24319 | .rlen = 44, |
| 24320 | }, { |
| 24321 | .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83" |
| 24322 | "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46" |
| 24323 | "\xf9\x8f\xad\xe3\x02\x13\x83\x77" |
| 24324 | "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b", |
| 24325 | .klen = 32, |
| 24326 | .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e" |
| 24327 | "\xe6\x33\xbf\xf5\x00\x00\x00\x00", |
| 24328 | .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f" |
| 24329 | "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d" |
| 24330 | "\xab\x90\x65\x8d\x8e\xca\x4d\x4f" |
| 24331 | "\x16\x0c\x40\x90\x4b\xc7\x36\x73", |
| 24332 | .alen = 32, |
| 24333 | .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92" |
| 24334 | "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d" |
| 24335 | "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2" |
| 24336 | "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a", |
| 24337 | .ilen = 32, |
| 24338 | .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13" |
| 24339 | "\xef\xbb\x80\x21\x04\x6c\x58\x09" |
| 24340 | "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7" |
| 24341 | "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf" |
| 24342 | "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d" |
| 24343 | "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8", |
| 24344 | .rlen = 48, |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 24345 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 24346 | }; |
| 24347 | |
| 24348 | static struct aead_testvec aes_ccm_dec_tv_template[] = { |
| 24349 | { /* From RFC 3610 */ |
| 24350 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 24351 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 24352 | .klen = 16, |
| 24353 | .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" |
| 24354 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 24355 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 24356 | .alen = 8, |
| 24357 | .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" |
| 24358 | "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" |
| 24359 | "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" |
| 24360 | "\xe8\xd1\x2c\xfd\xf9\x26\xe0", |
| 24361 | .ilen = 31, |
| 24362 | .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 24363 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 24364 | "\x18\x19\x1a\x1b\x1c\x1d\x1e", |
| 24365 | .rlen = 23, |
| 24366 | }, { |
| 24367 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 24368 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 24369 | .klen = 16, |
| 24370 | .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" |
| 24371 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 24372 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 24373 | "\x08\x09\x0a\x0b", |
| 24374 | .alen = 12, |
| 24375 | .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" |
| 24376 | "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" |
| 24377 | "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" |
| 24378 | "\x7d\x9c\x2d\x93", |
| 24379 | .ilen = 28, |
| 24380 | .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 24381 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 24382 | "\x1c\x1d\x1e\x1f", |
| 24383 | .rlen = 20, |
| 24384 | }, { |
| 24385 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 24386 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 24387 | .klen = 16, |
| 24388 | .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" |
| 24389 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 24390 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 24391 | .alen = 8, |
| 24392 | .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" |
| 24393 | "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" |
| 24394 | "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" |
| 24395 | "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" |
| 24396 | "\x7e\x5f\x4e", |
| 24397 | .ilen = 35, |
| 24398 | .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 24399 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 24400 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 24401 | "\x20", |
| 24402 | .rlen = 25, |
| 24403 | }, { |
| 24404 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 24405 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 24406 | .klen = 16, |
| 24407 | .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" |
| 24408 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 24409 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 24410 | "\x08\x09\x0a\x0b", |
| 24411 | .alen = 12, |
| 24412 | .input = "\x07\x34\x25\x94\x15\x77\x85\x15" |
| 24413 | "\x2b\x07\x40\x98\x33\x0a\xbb\x14" |
| 24414 | "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" |
| 24415 | "\x4d\x99\x99\x88\xdd", |
| 24416 | .ilen = 29, |
| 24417 | .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 24418 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 24419 | "\x1c\x1d\x1e", |
| 24420 | .rlen = 19, |
| 24421 | }, { |
| 24422 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 24423 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 24424 | .klen = 16, |
| 24425 | .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" |
| 24426 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 24427 | .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", |
| 24428 | .alen = 8, |
| 24429 | .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" |
| 24430 | "\xa0\x72\x6c\x55\xd3\x78\x06\x12" |
| 24431 | "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" |
| 24432 | "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", |
| 24433 | .ilen = 32, |
| 24434 | .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" |
| 24435 | "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" |
| 24436 | "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", |
| 24437 | .rlen = 24, |
| 24438 | }, { |
| 24439 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 24440 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 24441 | .klen = 16, |
| 24442 | .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" |
| 24443 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 24444 | .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" |
| 24445 | "\x20\xea\x60\xc0", |
| 24446 | .alen = 12, |
| 24447 | .input = "\x00\x97\x69\xec\xab\xdf\x48\x62" |
| 24448 | "\x55\x94\xc5\x92\x51\xe6\x03\x57" |
| 24449 | "\x22\x67\x5e\x04\xc8\x47\x09\x9e" |
| 24450 | "\x5a\xe0\x70\x45\x51", |
| 24451 | .ilen = 29, |
| 24452 | .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" |
| 24453 | "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" |
| 24454 | "\x3a\x80\x3b\xa8\x7f", |
| 24455 | .rlen = 21, |
| 24456 | }, { |
| 24457 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 24458 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 24459 | .klen = 16, |
| 24460 | .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" |
| 24461 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 24462 | .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", |
| 24463 | .alen = 8, |
| 24464 | .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" |
| 24465 | "\xdb\x38\x6a\x99\xac\x1a\xef\x23" |
| 24466 | "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" |
| 24467 | "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" |
| 24468 | "\xba", |
| 24469 | .ilen = 33, |
| 24470 | .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" |
| 24471 | "\x8e\x5e\x67\x01\xc9\x17\x87\x65" |
| 24472 | "\x98\x09\xd6\x7d\xbe\xdd\x18", |
| 24473 | .rlen = 23, |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24474 | }, { |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24475 | /* This is taken from FIPS CAVS. */ |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24476 | .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24477 | "\xff\x80\x2e\x48\x7d\x82\xf8\xb9", |
| 24478 | .klen = 16, |
| 24479 | .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab" |
| 24480 | "\xd8\xa6\xb2\xd8\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24481 | .alen = 0, |
| 24482 | .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b", |
| 24483 | .ilen = 8, |
| 24484 | .result = "\x00", |
| 24485 | .rlen = 0, |
| 24486 | .novrfy = 1, |
| 24487 | }, { |
| 24488 | .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24489 | "\xff\x80\x2e\x48\x7d\x82\xf8\xb9", |
| 24490 | .klen = 16, |
| 24491 | .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81" |
| 24492 | "\x7f\x88\x94\x68\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24493 | .alen = 0, |
| 24494 | .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3", |
| 24495 | .ilen = 8, |
| 24496 | .result = "\x00", |
| 24497 | .rlen = 0, |
| 24498 | }, { |
| 24499 | .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24500 | "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8", |
| 24501 | .klen = 16, |
| 24502 | .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab" |
| 24503 | "\xd8\xa6\xb2\xd8\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24504 | .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f" |
| 24505 | "\x88\x94\x68\xb1\x78\x6b\x2b\xd6" |
| 24506 | "\x04\x1f\x4e\xed\x78\xd5\x33\x66" |
| 24507 | "\xd8\x94\x99\x91\x81\x54\x62\x57", |
| 24508 | .alen = 32, |
| 24509 | .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55" |
| 24510 | "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a" |
| 24511 | "\x86\xb0\x87\x6b\x62\x33\x8c\x34" |
| 24512 | "\xce\xab\x57\xcc\x79\x0b\xe0\x6f" |
| 24513 | "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51" |
| 24514 | "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5", |
| 24515 | .ilen = 48, |
| 24516 | .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb" |
| 24517 | "\x33\xe4\x73\xce\xd2\xfb\x95\x79" |
| 24518 | "\xe8\xb4\xb5\x77\x11\x10\x62\x6f" |
| 24519 | "\x6a\x82\xd1\x13\xec\xf5\xd0\x48", |
| 24520 | .rlen = 32, |
| 24521 | .novrfy = 1, |
| 24522 | }, { |
| 24523 | .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24524 | "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8", |
| 24525 | .klen = 16, |
| 24526 | .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea" |
| 24527 | "\x97\xd4\x3b\xdf\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24528 | .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81" |
| 24529 | "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1" |
| 24530 | "\xd8\x5c\x42\x68\xe0\x6c\xda\x89" |
| 24531 | "\x05\xac\x56\xac\x1b\x2a\xd3\x86", |
| 24532 | .alen = 32, |
| 24533 | .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c" |
| 24534 | "\xad\x83\x52\x6d\x71\x03\x25\x1c" |
| 24535 | "\xed\x81\x3a\x9a\x16\x7d\x19\x80" |
| 24536 | "\x72\x04\x72\xd0\xf6\xff\x05\x0f" |
| 24537 | "\xb7\x14\x30\x00\x32\x9e\xa0\xa6" |
| 24538 | "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3", |
| 24539 | .ilen = 48, |
| 24540 | .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60" |
| 24541 | "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7" |
| 24542 | "\xf2\xae\x61\x05\x8f\x82\x24\x3f" |
| 24543 | "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c", |
| 24544 | .rlen = 32, |
| 24545 | }, { |
| 24546 | .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" |
| 24547 | "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24548 | "\xa4\x48\x93\x39\x26\x71\x4a\xc6", |
| 24549 | .klen = 24, |
| 24550 | .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9" |
| 24551 | "\x57\xba\xfd\x9e\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24552 | .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" |
| 24553 | "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" |
| 24554 | "\xa4\xf0\x13\x05\xd1\x77\x99\x67" |
| 24555 | "\x11\xc4\xc6\xdb\x00\x56\x36\x61", |
| 24556 | .alen = 32, |
| 24557 | .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b", |
| 24558 | .ilen = 8, |
| 24559 | .result = "\x00", |
| 24560 | .rlen = 0, |
| 24561 | }, { |
| 24562 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 24563 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24564 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba", |
| 24565 | .klen = 24, |
| 24566 | .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9" |
| 24567 | "\x57\xba\xfd\x9e\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24568 | .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" |
| 24569 | "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" |
| 24570 | "\xa4\xf0\x13\x05\xd1\x77\x99\x67" |
| 24571 | "\x11\xc4\xc6\xdb\x00\x56\x36\x61", |
| 24572 | .alen = 32, |
| 24573 | .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7" |
| 24574 | "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2" |
| 24575 | "\x66\xca\x61\x1e\x96\x7a\x61\xb3" |
| 24576 | "\x1c\x16\x45\x52\xba\x04\x9c\x9f" |
| 24577 | "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1", |
| 24578 | .ilen = 40, |
| 24579 | .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36" |
| 24580 | "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb" |
| 24581 | "\x0a\x85\xcc\x02\xad\x7a\x96\xe9" |
| 24582 | "\x65\x43\xa4\xc3\x0f\xdc\x55\x81", |
| 24583 | .rlen = 32, |
| 24584 | }, { |
| 24585 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 24586 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24587 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba", |
| 24588 | .klen = 24, |
| 24589 | .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c" |
| 24590 | "\xad\x71\xaa\x1f\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24591 | .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6" |
| 24592 | "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3" |
| 24593 | "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7" |
| 24594 | "\x3c\xa1\x52\x13\x03\x8a\x23\x3a", |
| 24595 | .alen = 32, |
| 24596 | .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00" |
| 24597 | "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37" |
| 24598 | "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa" |
| 24599 | "\x64\x19\xc0\x30\xd7\xfc\x14\x6b" |
| 24600 | "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f" |
| 24601 | "\xa9\xb4\x2d\x68\x03\xa3\x44\xef", |
| 24602 | .ilen = 48, |
| 24603 | .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed" |
| 24604 | "\x99\x2a\xa8\xca\x04\x25\x45\x90" |
| 24605 | "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c" |
| 24606 | "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b", |
| 24607 | .rlen = 32, |
| 24608 | .novrfy = 1, |
| 24609 | }, { |
| 24610 | .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01" |
| 24611 | "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c" |
| 24612 | "\x20\x2c\xad\x30\xc2\x2b\x41\xfb" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24613 | "\x0e\x85\xbc\x33\xad\x0f\x2b\xff", |
| 24614 | .klen = 32, |
| 24615 | .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9" |
| 24616 | "\x57\xba\xfd\x9e\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24617 | .alen = 0, |
| 24618 | .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2", |
| 24619 | .ilen = 8, |
| 24620 | .result = "\x00", |
| 24621 | .rlen = 0, |
| 24622 | }, { |
| 24623 | .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" |
| 24624 | "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" |
| 24625 | "\xa4\x48\x93\x39\x26\x71\x4a\xc6" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24626 | "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb", |
| 24627 | .klen = 32, |
| 24628 | .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f" |
| 24629 | "\x36\x58\xe0\x6b\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24630 | .alen = 0, |
| 24631 | .input = "\x48\x01\x5e\x02\x24\x04\x66\x47" |
| 24632 | "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd" |
| 24633 | "\xa5\xa9\x87\x8d\x84\xee\x2e\x77" |
| 24634 | "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6" |
| 24635 | "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07" |
| 24636 | "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a", |
| 24637 | .ilen = 48, |
| 24638 | .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c" |
| 24639 | "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99" |
| 24640 | "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39" |
| 24641 | "\x89\xd4\x75\x7a\x63\xb1\xda\x93", |
| 24642 | .rlen = 32, |
| 24643 | .novrfy = 1, |
| 24644 | }, { |
| 24645 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 24646 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
| 24647 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24648 | "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b", |
| 24649 | .klen = 32, |
| 24650 | .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f" |
| 24651 | "\x44\x89\x40\x7b\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 24652 | .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88" |
| 24653 | "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b" |
| 24654 | "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b" |
| 24655 | "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe", |
| 24656 | .alen = 32, |
| 24657 | .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf" |
| 24658 | "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4" |
| 24659 | "\x78\x5c\x4c\x67\x71\x89\x94\xbf" |
| 24660 | "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5" |
| 24661 | "\x7f\x44\x0a\x0c\x01\x18\x07\x92" |
| 24662 | "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b", |
| 24663 | .ilen = 48, |
| 24664 | .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40" |
| 24665 | "\x49\x71\xe4\xb7\xe7\xcb\x76\x61" |
| 24666 | "\x0a\x41\xb9\xe9\xc0\x76\x54\xab" |
| 24667 | "\x04\x49\x3b\x19\x93\x57\x25\x5d", |
| 24668 | .rlen = 32, |
| 24669 | }, |
| 24670 | }; |
| 24671 | |
Jarod Wilson | e08ca2d | 2009-05-04 19:46:29 +0800 | [diff] [blame] | 24672 | /* |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 24673 | * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all |
| 24674 | * use a 13-byte nonce, we only support an 11-byte nonce. Worse, |
| 24675 | * they use AD lengths which are not valid ESP header lengths. |
| 24676 | * |
| 24677 | * These vectors are copied/generated from the ones for rfc4106 with |
| 24678 | * the key truncated by one byte.. |
| 24679 | */ |
| 24680 | static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = { |
| 24681 | { /* Generated using Crypto++ */ |
| 24682 | .key = zeroed_string, |
| 24683 | .klen = 19, |
| 24684 | .iv = zeroed_string, |
| 24685 | .input = zeroed_string, |
| 24686 | .ilen = 16, |
| 24687 | .assoc = zeroed_string, |
| 24688 | .alen = 16, |
| 24689 | .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F" |
| 24690 | "\x12\x50\xE8\xDE\x81\x3C\x63\x08" |
| 24691 | "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5" |
| 24692 | "\x27\x50\x01\xAC\x03\x33\x39\xFB", |
| 24693 | .rlen = 32, |
| 24694 | },{ |
| 24695 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 24696 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 24697 | "\x00\x00\x00", |
| 24698 | .klen = 19, |
| 24699 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24700 | .input = zeroed_string, |
| 24701 | .ilen = 16, |
| 24702 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24703 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24704 | .alen = 16, |
| 24705 | .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F" |
| 24706 | "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17" |
| 24707 | "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA" |
| 24708 | "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0", |
| 24709 | .rlen = 32, |
| 24710 | |
| 24711 | }, { |
| 24712 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 24713 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 24714 | "\x00\x00\x00", |
| 24715 | .klen = 19, |
| 24716 | .iv = zeroed_string, |
| 24717 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24718 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 24719 | .ilen = 16, |
| 24720 | .assoc = zeroed_string, |
| 24721 | .alen = 16, |
| 24722 | .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6" |
| 24723 | "\x61\xF4\xF5\x41\x03\x4A\xE3\x86" |
| 24724 | "\xA1\xE2\xC2\x42\x2B\x81\x70\x40" |
| 24725 | "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C", |
| 24726 | .rlen = 32, |
| 24727 | }, { |
| 24728 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 24729 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 24730 | "\x00\x00\x00", |
| 24731 | .klen = 19, |
| 24732 | .iv = zeroed_string, |
| 24733 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24734 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 24735 | .ilen = 16, |
| 24736 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24737 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24738 | .alen = 16, |
| 24739 | .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6" |
| 24740 | "\x61\xF4\xF5\x41\x03\x4A\xE3\x86" |
| 24741 | "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9" |
| 24742 | "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E", |
| 24743 | .rlen = 32, |
| 24744 | }, { |
| 24745 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 24746 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 24747 | "\x00\x00\x00", |
| 24748 | .klen = 19, |
| 24749 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24750 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24751 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 24752 | .ilen = 16, |
| 24753 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24754 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24755 | .alen = 16, |
| 24756 | .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E" |
| 24757 | "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16" |
| 24758 | "\x43\x8E\x76\x57\x3B\xB4\x05\xE8" |
| 24759 | "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED", |
| 24760 | .rlen = 32, |
| 24761 | }, { |
| 24762 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 24763 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 24764 | "\x00\x00\x00", |
| 24765 | .klen = 19, |
| 24766 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24767 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24768 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24769 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24770 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24771 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24772 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24773 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24774 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 24775 | .ilen = 64, |
| 24776 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 24777 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 24778 | .alen = 16, |
| 24779 | .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E" |
| 24780 | "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16" |
| 24781 | "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4" |
| 24782 | "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02" |
| 24783 | "\x9B\xAB\x39\x18\xEB\x94\x34\x36" |
| 24784 | "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49" |
| 24785 | "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E" |
| 24786 | "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB" |
| 24787 | "\x02\x73\xDD\xE7\x30\x4A\x30\x54" |
| 24788 | "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F", |
| 24789 | .rlen = 80, |
| 24790 | }, { |
| 24791 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 24792 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 24793 | "\x00\x00\x00", |
| 24794 | .klen = 19, |
| 24795 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef", |
| 24796 | .input = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24797 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24798 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24799 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24800 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24801 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24802 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24803 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24804 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24805 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24806 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24807 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24808 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24809 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24810 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24811 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24812 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24813 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24814 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24815 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24816 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24817 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24818 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 24819 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 24820 | .ilen = 192, |
| 24821 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 24822 | "\xaa\xaa\xaa\xaa\x00\x00\x45\x67" |
| 24823 | "\x89\xab\xcd\xef", |
| 24824 | .alen = 20, |
| 24825 | .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E" |
| 24826 | "\x7C\x64\x6D\x33\x46\x77\xAC\xB1" |
| 24827 | "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95" |
| 24828 | "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C" |
| 24829 | "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB" |
| 24830 | "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01" |
| 24831 | "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04" |
| 24832 | "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B" |
| 24833 | "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09" |
| 24834 | "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79" |
| 24835 | "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D" |
| 24836 | "\x22\xEB\xD1\x09\x80\x3F\x5A\x70" |
| 24837 | "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B" |
| 24838 | "\x36\x12\x00\x89\xAA\x5D\x55\xDA" |
| 24839 | "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6" |
| 24840 | "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F" |
| 24841 | "\x2B\x50\x44\x52\xC2\x10\x7D\x38" |
| 24842 | "\x82\x64\x83\x0C\xAE\x49\xD0\xE5" |
| 24843 | "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43" |
| 24844 | "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC" |
| 24845 | "\x19\x6D\x60\x66\x61\xF9\x9A\x3F" |
| 24846 | "\x75\xFC\x38\x53\x5B\xB5\xCD\x52" |
| 24847 | "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98" |
| 24848 | "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E" |
| 24849 | "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC" |
| 24850 | "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A", |
| 24851 | .rlen = 208, |
| 24852 | }, { /* From draft-mcgrew-gcm-test-01 */ |
| 24853 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 24854 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 24855 | "\x2E\x44\x3B", |
| 24856 | .klen = 19, |
| 24857 | .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE", |
| 24858 | .input = "\x45\x00\x00\x48\x69\x9A\x00\x00" |
| 24859 | "\x80\x11\x4D\xB7\xC0\xA8\x01\x02" |
| 24860 | "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56" |
| 24861 | "\x38\xD3\x01\x00\x00\x01\x00\x00" |
| 24862 | "\x00\x00\x00\x00\x04\x5F\x73\x69" |
| 24863 | "\x70\x04\x5F\x75\x64\x70\x03\x73" |
| 24864 | "\x69\x70\x09\x63\x79\x62\x65\x72" |
| 24865 | "\x63\x69\x74\x79\x02\x64\x6B\x00" |
| 24866 | "\x00\x21\x00\x01\x01\x02\x02\x01", |
| 24867 | .ilen = 72, |
| 24868 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
| 24869 | "\x00\x00\x00\x00\x49\x56\xED\x7E" |
| 24870 | "\x3B\x24\x4C\xFE", |
| 24871 | .alen = 20, |
| 24872 | .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB" |
| 24873 | "\x83\x60\xF5\xBA\x3A\x56\x79\xE6" |
| 24874 | "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E" |
| 24875 | "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF" |
| 24876 | "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0" |
| 24877 | "\x39\xF8\x53\x6D\x31\x22\x2B\xBF" |
| 24878 | "\x98\x81\xFC\x34\xEE\x85\x36\xCD" |
| 24879 | "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35" |
| 24880 | "\x18\x85\x54\xB2\xBC\xDD\x3F\x43" |
| 24881 | "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC" |
| 24882 | "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF", |
| 24883 | .rlen = 88, |
| 24884 | }, { |
| 24885 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 24886 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 24887 | "\xCA\xFE\xBA", |
| 24888 | .klen = 19, |
| 24889 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 24890 | .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00" |
| 24891 | "\x80\x11\x4D\xCC\xC0\xA8\x01\x02" |
| 24892 | "\xC0\xA8\x01\x01\x0A\x98\x00\x35" |
| 24893 | "\x00\x2A\x23\x43\xB2\xD0\x01\x00" |
| 24894 | "\x00\x01\x00\x00\x00\x00\x00\x00" |
| 24895 | "\x03\x73\x69\x70\x09\x63\x79\x62" |
| 24896 | "\x65\x72\x63\x69\x74\x79\x02\x64" |
| 24897 | "\x6B\x00\x00\x01\x00\x01\x00\x01", |
| 24898 | .ilen = 64, |
| 24899 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 24900 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 24901 | .alen = 16, |
| 24902 | .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8" |
| 24903 | "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16" |
| 24904 | "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF" |
| 24905 | "\xF5\x71\xB6\x37\x84\xA7\xB1\x99" |
| 24906 | "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D" |
| 24907 | "\xEF\x25\x88\x1F\x1D\x77\x11\xFF" |
| 24908 | "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B" |
| 24909 | "\x00\x62\x1F\x68\x4E\x7C\xA0\x97" |
| 24910 | "\x10\x72\x7E\x53\x13\x3B\x68\xE4" |
| 24911 | "\x30\x99\x91\x79\x09\xEA\xFF\x6A", |
| 24912 | .rlen = 80, |
| 24913 | }, { |
| 24914 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 24915 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 24916 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 24917 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 24918 | "\x11\x22\x33", |
| 24919 | .klen = 35, |
| 24920 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 24921 | .input = "\x45\x00\x00\x30\x69\xA6\x40\x00" |
| 24922 | "\x80\x06\x26\x90\xC0\xA8\x01\x02" |
| 24923 | "\x93\x89\x15\x5E\x0A\x9E\x00\x8B" |
| 24924 | "\x2D\xC5\x7E\xE0\x00\x00\x00\x00" |
| 24925 | "\x70\x02\x40\x00\x20\xBF\x00\x00" |
| 24926 | "\x02\x04\x05\xB4\x01\x01\x04\x02" |
| 24927 | "\x01\x02\x02\x01", |
| 24928 | .ilen = 52, |
| 24929 | .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02" |
| 24930 | "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 24931 | .alen = 16, |
| 24932 | .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F" |
| 24933 | "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4" |
| 24934 | "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD" |
| 24935 | "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55" |
| 24936 | "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10" |
| 24937 | "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B" |
| 24938 | "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92" |
| 24939 | "\x23\xA6\x10\xB0\x26\xD6\xD9\x26" |
| 24940 | "\x5A\x48\x6A\x3E", |
| 24941 | .rlen = 68, |
| 24942 | }, { |
| 24943 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24944 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 24945 | "\x00\x00\x00", |
| 24946 | .klen = 19, |
| 24947 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24948 | .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00" |
| 24949 | "\x80\x01\xCB\x7A\x40\x67\x93\x18" |
| 24950 | "\x01\x01\x01\x01\x08\x00\x07\x5C" |
| 24951 | "\x02\x00\x44\x00\x61\x62\x63\x64" |
| 24952 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 24953 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 24954 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 24955 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 24956 | .ilen = 64, |
| 24957 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 24958 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 24959 | .alen = 16, |
| 24960 | .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F" |
| 24961 | "\x92\x51\x23\xA4\xC1\x5B\xF0\x10" |
| 24962 | "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC" |
| 24963 | "\x89\xC8\xF8\x42\x62\x95\xB7\xCB" |
| 24964 | "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7" |
| 24965 | "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C" |
| 24966 | "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9" |
| 24967 | "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE" |
| 24968 | "\x36\x25\xC1\x10\x12\x1C\xCA\x82" |
| 24969 | "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A", |
| 24970 | .rlen = 80, |
| 24971 | }, { |
| 24972 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 24973 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 24974 | "\x57\x69\x0E", |
| 24975 | .klen = 19, |
| 24976 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 24977 | .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00" |
| 24978 | "\x80\x01\xCB\x7C\x40\x67\x93\x18" |
| 24979 | "\x01\x01\x01\x01\x08\x00\x08\x5C" |
| 24980 | "\x02\x00\x43\x00\x61\x62\x63\x64" |
| 24981 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 24982 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 24983 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 24984 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 24985 | .ilen = 64, |
| 24986 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 24987 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 24988 | "\xA2\xFC\xA1\xA3", |
| 24989 | .alen = 20, |
| 24990 | .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6" |
| 24991 | "\x10\x60\x40\x62\x6B\x4F\x97\x8E" |
| 24992 | "\x0B\xB2\x22\x97\xCB\x21\xE0\x90" |
| 24993 | "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B" |
| 24994 | "\x79\x01\x58\x50\x01\x06\xE1\xE0" |
| 24995 | "\x2C\x83\x79\xD3\xDE\x46\x97\x1A" |
| 24996 | "\x30\xB8\xE5\xDF\xD7\x12\x56\x75" |
| 24997 | "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD" |
| 24998 | "\x97\x57\xCA\xC1\x20\xD0\x86\xB9" |
| 24999 | "\x66\x9D\xB4\x2B\x96\x22\xAC\x67", |
| 25000 | .rlen = 80, |
| 25001 | }, { |
| 25002 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 25003 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 25004 | "\x57\x69\x0E", |
| 25005 | .klen = 19, |
| 25006 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 25007 | .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00" |
| 25008 | "\x80\x01\x44\x1F\x40\x67\x93\xB6" |
| 25009 | "\xE0\x00\x00\x02\x0A\x00\xF5\xFF" |
| 25010 | "\x01\x02\x02\x01", |
| 25011 | .ilen = 28, |
| 25012 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 25013 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 25014 | "\xA2\xFC\xA1\xA3", |
| 25015 | .alen = 20, |
| 25016 | .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6" |
| 25017 | "\x10\x60\xCF\x01\x6B\x4F\x97\x20" |
| 25018 | "\xEA\xB3\x23\x94\xC9\x21\x1D\x33" |
| 25019 | "\xA1\xE5\x90\x40\x05\x37\x45\x70" |
| 25020 | "\xB5\xD6\x09\x0A\x23\x73\x33\xF9" |
| 25021 | "\x08\xB4\x22\xE4", |
| 25022 | .rlen = 44, |
| 25023 | }, { |
| 25024 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 25025 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 25026 | "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 25027 | "\xCA\xFE\xBA", |
| 25028 | .klen = 27, |
| 25029 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 25030 | .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00" |
| 25031 | "\x40\x06\x78\x80\x0A\x01\x03\x8F" |
| 25032 | "\x0A\x01\x06\x12\x80\x23\x06\xB8" |
| 25033 | "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E" |
| 25034 | "\x50\x10\x16\xD0\x75\x68\x00\x01", |
| 25035 | .ilen = 40, |
| 25036 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 25037 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 25038 | .alen = 16, |
| 25039 | .result = "\x05\x22\x15\xD1\x52\x56\x85\x04" |
| 25040 | "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA" |
| 25041 | "\xEA\x16\x37\x50\xF3\xDF\x84\x3B" |
| 25042 | "\x2F\x32\x18\x57\x34\x2A\x8C\x23" |
| 25043 | "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB" |
| 25044 | "\x34\xA5\x9F\x6C\x48\x30\x1E\x22" |
| 25045 | "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B", |
| 25046 | .rlen = 56, |
| 25047 | }, { |
| 25048 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25049 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25050 | "\xDE\xCA\xF8", |
| 25051 | .klen = 19, |
| 25052 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 25053 | .input = "\x45\x00\x00\x49\x33\xBA\x00\x00" |
| 25054 | "\x7F\x11\x91\x06\xC3\xFB\x1D\x10" |
| 25055 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 25056 | "\x00\x35\xDD\x7B\x80\x03\x02\xD5" |
| 25057 | "\x00\x00\x4E\x20\x00\x1E\x8C\x18" |
| 25058 | "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47" |
| 25059 | "\x6B\x91\xB9\x24\xB2\x80\x38\x9D" |
| 25060 | "\x92\xC9\x63\xBA\xC0\x46\xEC\x95" |
| 25061 | "\x9B\x62\x66\xC0\x47\x22\xB1\x49" |
| 25062 | "\x23\x01\x01\x01", |
| 25063 | .ilen = 76, |
| 25064 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
| 25065 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 25066 | "\xCE\xFA\xCE\x74", |
| 25067 | .alen = 20, |
| 25068 | .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3" |
| 25069 | "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90" |
| 25070 | "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76" |
| 25071 | "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00" |
| 25072 | "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA" |
| 25073 | "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7" |
| 25074 | "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6" |
| 25075 | "\x63\xC9\xDB\x05\x69\x51\x12\xAD" |
| 25076 | "\x3E\x00\x32\x73\x86\xF2\xEE\xF5" |
| 25077 | "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D" |
| 25078 | "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7" |
| 25079 | "\x12\x25\x0B\xF9", |
| 25080 | .rlen = 92, |
| 25081 | }, { |
| 25082 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25083 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25084 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25085 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25086 | "\x73\x61\x6C", |
| 25087 | .klen = 35, |
| 25088 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 25089 | .input = "\x45\x08\x00\x28\x73\x2C\x00\x00" |
| 25090 | "\x40\x06\xE9\xF9\x0A\x01\x06\x12" |
| 25091 | "\x0A\x01\x03\x8F\x06\xB8\x80\x23" |
| 25092 | "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02" |
| 25093 | "\x50\x10\x1F\x64\x6D\x54\x00\x01", |
| 25094 | .ilen = 40, |
| 25095 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
| 25096 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 25097 | "\x69\x76\x65\x63", |
| 25098 | .alen = 20, |
| 25099 | .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42" |
| 25100 | "\x2C\x64\x87\x46\x1E\x34\x10\x05" |
| 25101 | "\x29\x6B\xBB\x36\xE9\x69\xAD\x92" |
| 25102 | "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D" |
| 25103 | "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA" |
| 25104 | "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7" |
| 25105 | "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D", |
| 25106 | .rlen = 56, |
| 25107 | }, { |
| 25108 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 25109 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 25110 | "\x57\x69\x0E", |
| 25111 | .klen = 19, |
| 25112 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 25113 | .input = "\x45\x00\x00\x49\x33\x3E\x00\x00" |
| 25114 | "\x7F\x11\x91\x82\xC3\xFB\x1D\x10" |
| 25115 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 25116 | "\x00\x35\xCB\x45\x80\x03\x02\x5B" |
| 25117 | "\x00\x00\x01\xE0\x00\x1E\x8C\x18" |
| 25118 | "\xD6\x57\x59\xD5\x22\x84\xA0\x35" |
| 25119 | "\x2C\x71\x47\x5C\x88\x80\x39\x1C" |
| 25120 | "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32" |
| 25121 | "\x5A\xE2\x70\xC0\x38\x99\x49\x39" |
| 25122 | "\x15\x01\x01\x01", |
| 25123 | .ilen = 76, |
| 25124 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 25125 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 25126 | "\xA2\xFC\xA1\xA3", |
| 25127 | .alen = 20, |
| 25128 | .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6" |
| 25129 | "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86" |
| 25130 | "\xC8\x02\xF0\xB0\x03\x09\xD9\x02" |
| 25131 | "\xA0\xD2\x59\x04\xD1\x85\x2A\x24" |
| 25132 | "\x1C\x67\x3E\xD8\x68\x72\x06\x94" |
| 25133 | "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B" |
| 25134 | "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C" |
| 25135 | "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE" |
| 25136 | "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5" |
| 25137 | "\x23\xF4\x84\x40\x74\x14\x8A\x6B" |
| 25138 | "\xDB\xD7\x67\xED\xA4\x93\xF3\x47" |
| 25139 | "\xCC\xF7\x46\x6F", |
| 25140 | .rlen = 92, |
| 25141 | }, { |
| 25142 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25143 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25144 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25145 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25146 | "\x73\x61\x6C", |
| 25147 | .klen = 35, |
| 25148 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 25149 | .input = "\x63\x69\x73\x63\x6F\x01\x72\x75" |
| 25150 | "\x6C\x65\x73\x01\x74\x68\x65\x01" |
| 25151 | "\x6E\x65\x74\x77\x65\x01\x64\x65" |
| 25152 | "\x66\x69\x6E\x65\x01\x74\x68\x65" |
| 25153 | "\x74\x65\x63\x68\x6E\x6F\x6C\x6F" |
| 25154 | "\x67\x69\x65\x73\x01\x74\x68\x61" |
| 25155 | "\x74\x77\x69\x6C\x6C\x01\x64\x65" |
| 25156 | "\x66\x69\x6E\x65\x74\x6F\x6D\x6F" |
| 25157 | "\x72\x72\x6F\x77\x01\x02\x02\x01", |
| 25158 | .ilen = 72, |
| 25159 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
| 25160 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 25161 | "\x69\x76\x65\x63", |
| 25162 | .alen = 20, |
| 25163 | .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37" |
| 25164 | "\x00\x07\x1D\xBE\x60\x5D\x73\x16" |
| 25165 | "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4" |
| 25166 | "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A" |
| 25167 | "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4" |
| 25168 | "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5" |
| 25169 | "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6" |
| 25170 | "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C" |
| 25171 | "\x73\xF4\xE7\x12\x84\x4C\x37\x0A" |
| 25172 | "\x4A\x8F\x06\x37\x48\xF9\xF9\x05" |
| 25173 | "\x55\x13\x40\xC3\xD5\x55\x3A\x3D", |
| 25174 | .rlen = 88, |
| 25175 | }, { |
| 25176 | .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" |
| 25177 | "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47" |
| 25178 | "\xD9\x66\x42", |
| 25179 | .klen = 19, |
| 25180 | .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 25181 | .input = "\x01\x02\x02\x01", |
| 25182 | .ilen = 4, |
| 25183 | .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF" |
| 25184 | "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 25185 | .alen = 16, |
| 25186 | .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD" |
| 25187 | "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90" |
| 25188 | "\xF7\x61\x24\x62", |
| 25189 | .rlen = 20, |
| 25190 | }, { |
| 25191 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25192 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25193 | "\xDE\xCA\xF8", |
| 25194 | .klen = 19, |
| 25195 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 25196 | .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72" |
| 25197 | "\x01\x6E\x6F\x74\x01\x74\x6F\x01" |
| 25198 | "\x62\x65\x00\x01", |
| 25199 | .ilen = 20, |
| 25200 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
| 25201 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 25202 | "\xCE\xFA\xCE\x74", |
| 25203 | .alen = 20, |
| 25204 | .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81" |
| 25205 | "\x03\x9B\x84\xFC\x44\x8C\xBB\x81" |
| 25206 | "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0" |
| 25207 | "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC" |
| 25208 | "\x17\x17\x65\xAD", |
| 25209 | .rlen = 36, |
| 25210 | }, { |
| 25211 | .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" |
| 25212 | "\x6D\x61\x72\x69\x6A\x75\x61\x6E" |
| 25213 | "\x61\x61\x6E\x64\x64\x6F\x69\x74" |
| 25214 | "\x62\x65\x66\x6F\x72\x65\x69\x61" |
| 25215 | "\x74\x75\x72", |
| 25216 | .klen = 35, |
| 25217 | .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D", |
| 25218 | .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 25219 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 25220 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 25221 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 25222 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 25223 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 25224 | "\x01\x02\x02\x01", |
| 25225 | .ilen = 52, |
| 25226 | .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF" |
| 25227 | "\xFF\xFF\xFF\xFF\x33\x30\x21\x69" |
| 25228 | "\x67\x65\x74\x6D", |
| 25229 | .alen = 20, |
| 25230 | .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10" |
| 25231 | "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A" |
| 25232 | "\x48\x59\x80\x18\x1A\x18\x1A\x04" |
| 25233 | "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75" |
| 25234 | "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF" |
| 25235 | "\x16\xC3\x35\xA8\xE7\xCE\x84\x04" |
| 25236 | "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42" |
| 25237 | "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B" |
| 25238 | "\x39\xDB\xC8\xDC", |
| 25239 | .rlen = 68, |
| 25240 | }, { |
| 25241 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 25242 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 25243 | "\x57\x69\x0E", |
| 25244 | .klen = 19, |
| 25245 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 25246 | .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 25247 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 25248 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 25249 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 25250 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 25251 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 25252 | "\x01\x02\x02\x01", |
| 25253 | .ilen = 52, |
| 25254 | .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10" |
| 25255 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 25256 | "\xA2\xFC\xA1\xA3", |
| 25257 | .alen = 20, |
| 25258 | .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6" |
| 25259 | "\x10\x60\x54\x25\xEB\x80\x04\x93" |
| 25260 | "\xCA\x1B\x23\x97\xCB\x21\x2E\x01" |
| 25261 | "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B" |
| 25262 | "\x79\x01\x58\x50\x01\x06\xE1\xE0" |
| 25263 | "\x2C\x83\x79\xD3\xDE\x46\x97\x1A" |
| 25264 | "\x44\xCC\x90\xBF\x00\x94\x94\x92" |
| 25265 | "\x20\x17\x0C\x1B\x55\xDE\x7E\x68" |
| 25266 | "\xF4\x95\x5D\x4F", |
| 25267 | .rlen = 68, |
| 25268 | }, { |
| 25269 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 25270 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 25271 | "\x22\x43\x3C", |
| 25272 | .klen = 19, |
| 25273 | .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD", |
| 25274 | .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00" |
| 25275 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 25276 | "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70" |
| 25277 | "\x71\x72\x73\x74\x01\x02\x02\x01", |
| 25278 | .ilen = 32, |
| 25279 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
| 25280 | "\x00\x00\x00\x07\x48\x55\xEC\x7D" |
| 25281 | "\x3A\x23\x4B\xFD", |
| 25282 | .alen = 20, |
| 25283 | .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02" |
| 25284 | "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F" |
| 25285 | "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF" |
| 25286 | "\x58\x7D\xCF\x29\xA3\x41\x68\x6B" |
| 25287 | "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F" |
| 25288 | "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6", |
| 25289 | .rlen = 48, |
| 25290 | } |
| 25291 | }; |
| 25292 | |
| 25293 | static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = { |
| 25294 | { /* Generated using Crypto++ */ |
| 25295 | .key = zeroed_string, |
| 25296 | .klen = 19, |
| 25297 | .iv = zeroed_string, |
| 25298 | .result = zeroed_string, |
| 25299 | .rlen = 16, |
| 25300 | .assoc = zeroed_string, |
| 25301 | .alen = 16, |
| 25302 | .input = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F" |
| 25303 | "\x12\x50\xE8\xDE\x81\x3C\x63\x08" |
| 25304 | "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5" |
| 25305 | "\x27\x50\x01\xAC\x03\x33\x39\xFB", |
| 25306 | .ilen = 32, |
| 25307 | },{ |
| 25308 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 25309 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 25310 | "\x00\x00\x00", |
| 25311 | .klen = 19, |
| 25312 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 25313 | .result = zeroed_string, |
| 25314 | .rlen = 16, |
| 25315 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25316 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 25317 | .alen = 16, |
| 25318 | .input = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F" |
| 25319 | "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17" |
| 25320 | "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA" |
| 25321 | "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0", |
| 25322 | .ilen = 32, |
| 25323 | |
| 25324 | }, { |
| 25325 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 25326 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 25327 | "\x00\x00\x00", |
| 25328 | .klen = 19, |
| 25329 | .iv = zeroed_string, |
| 25330 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25331 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 25332 | .rlen = 16, |
| 25333 | .assoc = zeroed_string, |
| 25334 | .alen = 16, |
| 25335 | .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6" |
| 25336 | "\x61\xF4\xF5\x41\x03\x4A\xE3\x86" |
| 25337 | "\xA1\xE2\xC2\x42\x2B\x81\x70\x40" |
| 25338 | "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C", |
| 25339 | .ilen = 32, |
| 25340 | }, { |
| 25341 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 25342 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 25343 | "\x00\x00\x00", |
| 25344 | .klen = 19, |
| 25345 | .iv = zeroed_string, |
| 25346 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25347 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 25348 | .rlen = 16, |
| 25349 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25350 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25351 | .alen = 16, |
| 25352 | .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6" |
| 25353 | "\x61\xF4\xF5\x41\x03\x4A\xE3\x86" |
| 25354 | "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9" |
| 25355 | "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E", |
| 25356 | .ilen = 32, |
| 25357 | }, { |
| 25358 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 25359 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 25360 | "\x00\x00\x00", |
| 25361 | .klen = 19, |
| 25362 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 25363 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25364 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 25365 | .rlen = 16, |
| 25366 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25367 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 25368 | .alen = 16, |
| 25369 | .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E" |
| 25370 | "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16" |
| 25371 | "\x43\x8E\x76\x57\x3B\xB4\x05\xE8" |
| 25372 | "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED", |
| 25373 | .ilen = 32, |
| 25374 | }, { |
| 25375 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 25376 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 25377 | "\x00\x00\x00", |
| 25378 | .klen = 19, |
| 25379 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 25380 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25381 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25382 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25383 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25384 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25385 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25386 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25387 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 25388 | .rlen = 64, |
| 25389 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 25390 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 25391 | .alen = 16, |
| 25392 | .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E" |
| 25393 | "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16" |
| 25394 | "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4" |
| 25395 | "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02" |
| 25396 | "\x9B\xAB\x39\x18\xEB\x94\x34\x36" |
| 25397 | "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49" |
| 25398 | "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E" |
| 25399 | "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB" |
| 25400 | "\x02\x73\xDD\xE7\x30\x4A\x30\x54" |
| 25401 | "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F", |
| 25402 | .ilen = 80, |
| 25403 | }, { |
| 25404 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 25405 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 25406 | "\x00\x00\x00", |
| 25407 | .klen = 19, |
| 25408 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef", |
| 25409 | .result = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25410 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25411 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25412 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25413 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25414 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25415 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25416 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25417 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25418 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25419 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25420 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25421 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25422 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25423 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25424 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25425 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25426 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25427 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25428 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25429 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25430 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25431 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 25432 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 25433 | .rlen = 192, |
| 25434 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 25435 | "\xaa\xaa\xaa\xaa\x00\x00\x45\x67" |
| 25436 | "\x89\xab\xcd\xef", |
| 25437 | .alen = 20, |
| 25438 | .input = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E" |
| 25439 | "\x7C\x64\x6D\x33\x46\x77\xAC\xB1" |
| 25440 | "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95" |
| 25441 | "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C" |
| 25442 | "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB" |
| 25443 | "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01" |
| 25444 | "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04" |
| 25445 | "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B" |
| 25446 | "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09" |
| 25447 | "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79" |
| 25448 | "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D" |
| 25449 | "\x22\xEB\xD1\x09\x80\x3F\x5A\x70" |
| 25450 | "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B" |
| 25451 | "\x36\x12\x00\x89\xAA\x5D\x55\xDA" |
| 25452 | "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6" |
| 25453 | "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F" |
| 25454 | "\x2B\x50\x44\x52\xC2\x10\x7D\x38" |
| 25455 | "\x82\x64\x83\x0C\xAE\x49\xD0\xE5" |
| 25456 | "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43" |
| 25457 | "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC" |
| 25458 | "\x19\x6D\x60\x66\x61\xF9\x9A\x3F" |
| 25459 | "\x75\xFC\x38\x53\x5B\xB5\xCD\x52" |
| 25460 | "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98" |
| 25461 | "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E" |
| 25462 | "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC" |
| 25463 | "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A", |
| 25464 | .ilen = 208, |
| 25465 | }, { /* From draft-mcgrew-gcm-test-01 */ |
| 25466 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 25467 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 25468 | "\x2E\x44\x3B", |
| 25469 | .klen = 19, |
| 25470 | .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE", |
| 25471 | .result = "\x45\x00\x00\x48\x69\x9A\x00\x00" |
| 25472 | "\x80\x11\x4D\xB7\xC0\xA8\x01\x02" |
| 25473 | "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56" |
| 25474 | "\x38\xD3\x01\x00\x00\x01\x00\x00" |
| 25475 | "\x00\x00\x00\x00\x04\x5F\x73\x69" |
| 25476 | "\x70\x04\x5F\x75\x64\x70\x03\x73" |
| 25477 | "\x69\x70\x09\x63\x79\x62\x65\x72" |
| 25478 | "\x63\x69\x74\x79\x02\x64\x6B\x00" |
| 25479 | "\x00\x21\x00\x01\x01\x02\x02\x01", |
| 25480 | .rlen = 72, |
| 25481 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
| 25482 | "\x00\x00\x00\x00\x49\x56\xED\x7E" |
| 25483 | "\x3B\x24\x4C\xFE", |
| 25484 | .alen = 20, |
| 25485 | .input = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB" |
| 25486 | "\x83\x60\xF5\xBA\x3A\x56\x79\xE6" |
| 25487 | "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E" |
| 25488 | "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF" |
| 25489 | "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0" |
| 25490 | "\x39\xF8\x53\x6D\x31\x22\x2B\xBF" |
| 25491 | "\x98\x81\xFC\x34\xEE\x85\x36\xCD" |
| 25492 | "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35" |
| 25493 | "\x18\x85\x54\xB2\xBC\xDD\x3F\x43" |
| 25494 | "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC" |
| 25495 | "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF", |
| 25496 | .ilen = 88, |
| 25497 | }, { |
| 25498 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 25499 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 25500 | "\xCA\xFE\xBA", |
| 25501 | .klen = 19, |
| 25502 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 25503 | .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00" |
| 25504 | "\x80\x11\x4D\xCC\xC0\xA8\x01\x02" |
| 25505 | "\xC0\xA8\x01\x01\x0A\x98\x00\x35" |
| 25506 | "\x00\x2A\x23\x43\xB2\xD0\x01\x00" |
| 25507 | "\x00\x01\x00\x00\x00\x00\x00\x00" |
| 25508 | "\x03\x73\x69\x70\x09\x63\x79\x62" |
| 25509 | "\x65\x72\x63\x69\x74\x79\x02\x64" |
| 25510 | "\x6B\x00\x00\x01\x00\x01\x00\x01", |
| 25511 | .rlen = 64, |
| 25512 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 25513 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 25514 | .alen = 16, |
| 25515 | .input = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8" |
| 25516 | "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16" |
| 25517 | "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF" |
| 25518 | "\xF5\x71\xB6\x37\x84\xA7\xB1\x99" |
| 25519 | "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D" |
| 25520 | "\xEF\x25\x88\x1F\x1D\x77\x11\xFF" |
| 25521 | "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B" |
| 25522 | "\x00\x62\x1F\x68\x4E\x7C\xA0\x97" |
| 25523 | "\x10\x72\x7E\x53\x13\x3B\x68\xE4" |
| 25524 | "\x30\x99\x91\x79\x09\xEA\xFF\x6A", |
| 25525 | .ilen = 80, |
| 25526 | }, { |
| 25527 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25528 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25529 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25530 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25531 | "\x11\x22\x33", |
| 25532 | .klen = 35, |
| 25533 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 25534 | .result = "\x45\x00\x00\x30\x69\xA6\x40\x00" |
| 25535 | "\x80\x06\x26\x90\xC0\xA8\x01\x02" |
| 25536 | "\x93\x89\x15\x5E\x0A\x9E\x00\x8B" |
| 25537 | "\x2D\xC5\x7E\xE0\x00\x00\x00\x00" |
| 25538 | "\x70\x02\x40\x00\x20\xBF\x00\x00" |
| 25539 | "\x02\x04\x05\xB4\x01\x01\x04\x02" |
| 25540 | "\x01\x02\x02\x01", |
| 25541 | .rlen = 52, |
| 25542 | .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02" |
| 25543 | "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 25544 | .alen = 16, |
| 25545 | .input = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F" |
| 25546 | "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4" |
| 25547 | "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD" |
| 25548 | "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55" |
| 25549 | "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10" |
| 25550 | "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B" |
| 25551 | "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92" |
| 25552 | "\x23\xA6\x10\xB0\x26\xD6\xD9\x26" |
| 25553 | "\x5A\x48\x6A\x3E", |
| 25554 | .ilen = 68, |
| 25555 | }, { |
| 25556 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25557 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25558 | "\x00\x00\x00", |
| 25559 | .klen = 19, |
| 25560 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25561 | .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00" |
| 25562 | "\x80\x01\xCB\x7A\x40\x67\x93\x18" |
| 25563 | "\x01\x01\x01\x01\x08\x00\x07\x5C" |
| 25564 | "\x02\x00\x44\x00\x61\x62\x63\x64" |
| 25565 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 25566 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 25567 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 25568 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 25569 | .rlen = 64, |
| 25570 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 25571 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25572 | .alen = 16, |
| 25573 | .input = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F" |
| 25574 | "\x92\x51\x23\xA4\xC1\x5B\xF0\x10" |
| 25575 | "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC" |
| 25576 | "\x89\xC8\xF8\x42\x62\x95\xB7\xCB" |
| 25577 | "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7" |
| 25578 | "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C" |
| 25579 | "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9" |
| 25580 | "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE" |
| 25581 | "\x36\x25\xC1\x10\x12\x1C\xCA\x82" |
| 25582 | "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A", |
| 25583 | .ilen = 80, |
| 25584 | }, { |
| 25585 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 25586 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 25587 | "\x57\x69\x0E", |
| 25588 | .klen = 19, |
| 25589 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 25590 | .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00" |
| 25591 | "\x80\x01\xCB\x7C\x40\x67\x93\x18" |
| 25592 | "\x01\x01\x01\x01\x08\x00\x08\x5C" |
| 25593 | "\x02\x00\x43\x00\x61\x62\x63\x64" |
| 25594 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 25595 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 25596 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 25597 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 25598 | .rlen = 64, |
| 25599 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 25600 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 25601 | "\xA2\xFC\xA1\xA3", |
| 25602 | .alen = 20, |
| 25603 | .input = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6" |
| 25604 | "\x10\x60\x40\x62\x6B\x4F\x97\x8E" |
| 25605 | "\x0B\xB2\x22\x97\xCB\x21\xE0\x90" |
| 25606 | "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B" |
| 25607 | "\x79\x01\x58\x50\x01\x06\xE1\xE0" |
| 25608 | "\x2C\x83\x79\xD3\xDE\x46\x97\x1A" |
| 25609 | "\x30\xB8\xE5\xDF\xD7\x12\x56\x75" |
| 25610 | "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD" |
| 25611 | "\x97\x57\xCA\xC1\x20\xD0\x86\xB9" |
| 25612 | "\x66\x9D\xB4\x2B\x96\x22\xAC\x67", |
| 25613 | .ilen = 80, |
| 25614 | }, { |
| 25615 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 25616 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 25617 | "\x57\x69\x0E", |
| 25618 | .klen = 19, |
| 25619 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 25620 | .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00" |
| 25621 | "\x80\x01\x44\x1F\x40\x67\x93\xB6" |
| 25622 | "\xE0\x00\x00\x02\x0A\x00\xF5\xFF" |
| 25623 | "\x01\x02\x02\x01", |
| 25624 | .rlen = 28, |
| 25625 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 25626 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 25627 | "\xA2\xFC\xA1\xA3", |
| 25628 | .alen = 20, |
| 25629 | .input = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6" |
| 25630 | "\x10\x60\xCF\x01\x6B\x4F\x97\x20" |
| 25631 | "\xEA\xB3\x23\x94\xC9\x21\x1D\x33" |
| 25632 | "\xA1\xE5\x90\x40\x05\x37\x45\x70" |
| 25633 | "\xB5\xD6\x09\x0A\x23\x73\x33\xF9" |
| 25634 | "\x08\xB4\x22\xE4", |
| 25635 | .ilen = 44, |
| 25636 | }, { |
| 25637 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 25638 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 25639 | "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 25640 | "\xCA\xFE\xBA", |
| 25641 | .klen = 27, |
| 25642 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 25643 | .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00" |
| 25644 | "\x40\x06\x78\x80\x0A\x01\x03\x8F" |
| 25645 | "\x0A\x01\x06\x12\x80\x23\x06\xB8" |
| 25646 | "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E" |
| 25647 | "\x50\x10\x16\xD0\x75\x68\x00\x01", |
| 25648 | .rlen = 40, |
| 25649 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 25650 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 25651 | .alen = 16, |
| 25652 | .input = "\x05\x22\x15\xD1\x52\x56\x85\x04" |
| 25653 | "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA" |
| 25654 | "\xEA\x16\x37\x50\xF3\xDF\x84\x3B" |
| 25655 | "\x2F\x32\x18\x57\x34\x2A\x8C\x23" |
| 25656 | "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB" |
| 25657 | "\x34\xA5\x9F\x6C\x48\x30\x1E\x22" |
| 25658 | "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B", |
| 25659 | .ilen = 56, |
| 25660 | }, { |
| 25661 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25662 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25663 | "\xDE\xCA\xF8", |
| 25664 | .klen = 19, |
| 25665 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 25666 | .result = "\x45\x00\x00\x49\x33\xBA\x00\x00" |
| 25667 | "\x7F\x11\x91\x06\xC3\xFB\x1D\x10" |
| 25668 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 25669 | "\x00\x35\xDD\x7B\x80\x03\x02\xD5" |
| 25670 | "\x00\x00\x4E\x20\x00\x1E\x8C\x18" |
| 25671 | "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47" |
| 25672 | "\x6B\x91\xB9\x24\xB2\x80\x38\x9D" |
| 25673 | "\x92\xC9\x63\xBA\xC0\x46\xEC\x95" |
| 25674 | "\x9B\x62\x66\xC0\x47\x22\xB1\x49" |
| 25675 | "\x23\x01\x01\x01", |
| 25676 | .rlen = 76, |
| 25677 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
| 25678 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 25679 | "\xCE\xFA\xCE\x74", |
| 25680 | .alen = 20, |
| 25681 | .input = "\x92\xD0\x53\x79\x33\x38\xD5\xF3" |
| 25682 | "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90" |
| 25683 | "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76" |
| 25684 | "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00" |
| 25685 | "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA" |
| 25686 | "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7" |
| 25687 | "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6" |
| 25688 | "\x63\xC9\xDB\x05\x69\x51\x12\xAD" |
| 25689 | "\x3E\x00\x32\x73\x86\xF2\xEE\xF5" |
| 25690 | "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D" |
| 25691 | "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7" |
| 25692 | "\x12\x25\x0B\xF9", |
| 25693 | .ilen = 92, |
| 25694 | }, { |
| 25695 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25696 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25697 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25698 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25699 | "\x73\x61\x6C", |
| 25700 | .klen = 35, |
| 25701 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 25702 | .result = "\x45\x08\x00\x28\x73\x2C\x00\x00" |
| 25703 | "\x40\x06\xE9\xF9\x0A\x01\x06\x12" |
| 25704 | "\x0A\x01\x03\x8F\x06\xB8\x80\x23" |
| 25705 | "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02" |
| 25706 | "\x50\x10\x1F\x64\x6D\x54\x00\x01", |
| 25707 | .rlen = 40, |
| 25708 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
| 25709 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 25710 | "\x69\x76\x65\x63", |
| 25711 | .alen = 20, |
| 25712 | .input = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42" |
| 25713 | "\x2C\x64\x87\x46\x1E\x34\x10\x05" |
| 25714 | "\x29\x6B\xBB\x36\xE9\x69\xAD\x92" |
| 25715 | "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D" |
| 25716 | "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA" |
| 25717 | "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7" |
| 25718 | "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D", |
| 25719 | .ilen = 56, |
| 25720 | }, { |
| 25721 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 25722 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 25723 | "\x57\x69\x0E", |
| 25724 | .klen = 19, |
| 25725 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 25726 | .result = "\x45\x00\x00\x49\x33\x3E\x00\x00" |
| 25727 | "\x7F\x11\x91\x82\xC3\xFB\x1D\x10" |
| 25728 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 25729 | "\x00\x35\xCB\x45\x80\x03\x02\x5B" |
| 25730 | "\x00\x00\x01\xE0\x00\x1E\x8C\x18" |
| 25731 | "\xD6\x57\x59\xD5\x22\x84\xA0\x35" |
| 25732 | "\x2C\x71\x47\x5C\x88\x80\x39\x1C" |
| 25733 | "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32" |
| 25734 | "\x5A\xE2\x70\xC0\x38\x99\x49\x39" |
| 25735 | "\x15\x01\x01\x01", |
| 25736 | .rlen = 76, |
| 25737 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 25738 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 25739 | "\xA2\xFC\xA1\xA3", |
| 25740 | .alen = 20, |
| 25741 | .input = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6" |
| 25742 | "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86" |
| 25743 | "\xC8\x02\xF0\xB0\x03\x09\xD9\x02" |
| 25744 | "\xA0\xD2\x59\x04\xD1\x85\x2A\x24" |
| 25745 | "\x1C\x67\x3E\xD8\x68\x72\x06\x94" |
| 25746 | "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B" |
| 25747 | "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C" |
| 25748 | "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE" |
| 25749 | "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5" |
| 25750 | "\x23\xF4\x84\x40\x74\x14\x8A\x6B" |
| 25751 | "\xDB\xD7\x67\xED\xA4\x93\xF3\x47" |
| 25752 | "\xCC\xF7\x46\x6F", |
| 25753 | .ilen = 92, |
| 25754 | }, { |
| 25755 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25756 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25757 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25758 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25759 | "\x73\x61\x6C", |
| 25760 | .klen = 35, |
| 25761 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 25762 | .result = "\x63\x69\x73\x63\x6F\x01\x72\x75" |
| 25763 | "\x6C\x65\x73\x01\x74\x68\x65\x01" |
| 25764 | "\x6E\x65\x74\x77\x65\x01\x64\x65" |
| 25765 | "\x66\x69\x6E\x65\x01\x74\x68\x65" |
| 25766 | "\x74\x65\x63\x68\x6E\x6F\x6C\x6F" |
| 25767 | "\x67\x69\x65\x73\x01\x74\x68\x61" |
| 25768 | "\x74\x77\x69\x6C\x6C\x01\x64\x65" |
| 25769 | "\x66\x69\x6E\x65\x74\x6F\x6D\x6F" |
| 25770 | "\x72\x72\x6F\x77\x01\x02\x02\x01", |
| 25771 | .rlen = 72, |
| 25772 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
| 25773 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 25774 | "\x69\x76\x65\x63", |
| 25775 | .alen = 20, |
| 25776 | .input = "\xEA\x15\xC4\x98\xAC\x15\x22\x37" |
| 25777 | "\x00\x07\x1D\xBE\x60\x5D\x73\x16" |
| 25778 | "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4" |
| 25779 | "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A" |
| 25780 | "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4" |
| 25781 | "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5" |
| 25782 | "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6" |
| 25783 | "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C" |
| 25784 | "\x73\xF4\xE7\x12\x84\x4C\x37\x0A" |
| 25785 | "\x4A\x8F\x06\x37\x48\xF9\xF9\x05" |
| 25786 | "\x55\x13\x40\xC3\xD5\x55\x3A\x3D", |
| 25787 | .ilen = 88, |
| 25788 | }, { |
| 25789 | .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" |
| 25790 | "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47" |
| 25791 | "\xD9\x66\x42", |
| 25792 | .klen = 19, |
| 25793 | .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 25794 | .result = "\x01\x02\x02\x01", |
| 25795 | .rlen = 4, |
| 25796 | .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF" |
| 25797 | "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 25798 | .alen = 16, |
| 25799 | .input = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD" |
| 25800 | "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90" |
| 25801 | "\xF7\x61\x24\x62", |
| 25802 | .ilen = 20, |
| 25803 | }, { |
| 25804 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 25805 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 25806 | "\xDE\xCA\xF8", |
| 25807 | .klen = 19, |
| 25808 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 25809 | .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72" |
| 25810 | "\x01\x6E\x6F\x74\x01\x74\x6F\x01" |
| 25811 | "\x62\x65\x00\x01", |
| 25812 | .rlen = 20, |
| 25813 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
| 25814 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 25815 | "\xCE\xFA\xCE\x74", |
| 25816 | .alen = 20, |
| 25817 | .input = "\xA3\xBF\x52\x52\x65\x83\xBA\x81" |
| 25818 | "\x03\x9B\x84\xFC\x44\x8C\xBB\x81" |
| 25819 | "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0" |
| 25820 | "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC" |
| 25821 | "\x17\x17\x65\xAD", |
| 25822 | .ilen = 36, |
| 25823 | }, { |
| 25824 | .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" |
| 25825 | "\x6D\x61\x72\x69\x6A\x75\x61\x6E" |
| 25826 | "\x61\x61\x6E\x64\x64\x6F\x69\x74" |
| 25827 | "\x62\x65\x66\x6F\x72\x65\x69\x61" |
| 25828 | "\x74\x75\x72", |
| 25829 | .klen = 35, |
| 25830 | .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D", |
| 25831 | .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 25832 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 25833 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 25834 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 25835 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 25836 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 25837 | "\x01\x02\x02\x01", |
| 25838 | .rlen = 52, |
| 25839 | .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF" |
| 25840 | "\xFF\xFF\xFF\xFF\x33\x30\x21\x69" |
| 25841 | "\x67\x65\x74\x6D", |
| 25842 | .alen = 20, |
| 25843 | .input = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10" |
| 25844 | "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A" |
| 25845 | "\x48\x59\x80\x18\x1A\x18\x1A\x04" |
| 25846 | "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75" |
| 25847 | "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF" |
| 25848 | "\x16\xC3\x35\xA8\xE7\xCE\x84\x04" |
| 25849 | "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42" |
| 25850 | "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B" |
| 25851 | "\x39\xDB\xC8\xDC", |
| 25852 | .ilen = 68, |
| 25853 | }, { |
| 25854 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 25855 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 25856 | "\x57\x69\x0E", |
| 25857 | .klen = 19, |
| 25858 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 25859 | .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 25860 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 25861 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 25862 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 25863 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 25864 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 25865 | "\x01\x02\x02\x01", |
| 25866 | .rlen = 52, |
| 25867 | .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10" |
| 25868 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 25869 | "\xA2\xFC\xA1\xA3", |
| 25870 | .alen = 20, |
| 25871 | .input = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6" |
| 25872 | "\x10\x60\x54\x25\xEB\x80\x04\x93" |
| 25873 | "\xCA\x1B\x23\x97\xCB\x21\x2E\x01" |
| 25874 | "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B" |
| 25875 | "\x79\x01\x58\x50\x01\x06\xE1\xE0" |
| 25876 | "\x2C\x83\x79\xD3\xDE\x46\x97\x1A" |
| 25877 | "\x44\xCC\x90\xBF\x00\x94\x94\x92" |
| 25878 | "\x20\x17\x0C\x1B\x55\xDE\x7E\x68" |
| 25879 | "\xF4\x95\x5D\x4F", |
| 25880 | .ilen = 68, |
| 25881 | }, { |
| 25882 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 25883 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 25884 | "\x22\x43\x3C", |
| 25885 | .klen = 19, |
| 25886 | .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD", |
| 25887 | .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00" |
| 25888 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 25889 | "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70" |
| 25890 | "\x71\x72\x73\x74\x01\x02\x02\x01", |
| 25891 | .rlen = 32, |
| 25892 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
| 25893 | "\x00\x00\x00\x07\x48\x55\xEC\x7D" |
| 25894 | "\x3A\x23\x4B\xFD", |
| 25895 | .alen = 20, |
| 25896 | .input = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02" |
| 25897 | "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F" |
| 25898 | "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF" |
| 25899 | "\x58\x7D\xCF\x29\xA3\x41\x68\x6B" |
| 25900 | "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F" |
| 25901 | "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6", |
| 25902 | .ilen = 48, |
| 25903 | } |
| 25904 | }; |
| 25905 | |
| 25906 | /* |
Martin Willi | af2b76b | 2015-06-01 13:44:01 +0200 | [diff] [blame] | 25907 | * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5. |
| 25908 | */ |
| 25909 | #define RFC7539_ENC_TEST_VECTORS 2 |
| 25910 | #define RFC7539_DEC_TEST_VECTORS 2 |
| 25911 | static struct aead_testvec rfc7539_enc_tv_template[] = { |
| 25912 | { |
| 25913 | .key = "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 25914 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 25915 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 25916 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f", |
| 25917 | .klen = 32, |
| 25918 | .iv = "\x07\x00\x00\x00\x40\x41\x42\x43" |
| 25919 | "\x44\x45\x46\x47", |
| 25920 | .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3" |
| 25921 | "\xc4\xc5\xc6\xc7", |
| 25922 | .alen = 12, |
| 25923 | .input = "\x4c\x61\x64\x69\x65\x73\x20\x61" |
| 25924 | "\x6e\x64\x20\x47\x65\x6e\x74\x6c" |
| 25925 | "\x65\x6d\x65\x6e\x20\x6f\x66\x20" |
| 25926 | "\x74\x68\x65\x20\x63\x6c\x61\x73" |
| 25927 | "\x73\x20\x6f\x66\x20\x27\x39\x39" |
| 25928 | "\x3a\x20\x49\x66\x20\x49\x20\x63" |
| 25929 | "\x6f\x75\x6c\x64\x20\x6f\x66\x66" |
| 25930 | "\x65\x72\x20\x79\x6f\x75\x20\x6f" |
| 25931 | "\x6e\x6c\x79\x20\x6f\x6e\x65\x20" |
| 25932 | "\x74\x69\x70\x20\x66\x6f\x72\x20" |
| 25933 | "\x74\x68\x65\x20\x66\x75\x74\x75" |
| 25934 | "\x72\x65\x2c\x20\x73\x75\x6e\x73" |
| 25935 | "\x63\x72\x65\x65\x6e\x20\x77\x6f" |
| 25936 | "\x75\x6c\x64\x20\x62\x65\x20\x69" |
| 25937 | "\x74\x2e", |
| 25938 | .ilen = 114, |
| 25939 | .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb" |
| 25940 | "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2" |
| 25941 | "\xa4\xad\xed\x51\x29\x6e\x08\xfe" |
| 25942 | "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6" |
| 25943 | "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12" |
| 25944 | "\x82\xfa\xfb\x69\xda\x92\x72\x8b" |
| 25945 | "\x1a\x71\xde\x0a\x9e\x06\x0b\x29" |
| 25946 | "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36" |
| 25947 | "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c" |
| 25948 | "\x98\x03\xae\xe3\x28\x09\x1b\x58" |
| 25949 | "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94" |
| 25950 | "\x55\x85\x80\x8b\x48\x31\xd7\xbc" |
| 25951 | "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d" |
| 25952 | "\xe5\x76\xd2\x65\x86\xce\xc6\x4b" |
| 25953 | "\x61\x16\x1a\xe1\x0b\x59\x4f\x09" |
| 25954 | "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60" |
| 25955 | "\x06\x91", |
| 25956 | .rlen = 130, |
| 25957 | }, { |
| 25958 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 25959 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 25960 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 25961 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0", |
| 25962 | .klen = 32, |
| 25963 | .iv = "\x00\x00\x00\x00\x01\x02\x03\x04" |
| 25964 | "\x05\x06\x07\x08", |
| 25965 | .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00" |
| 25966 | "\x00\x00\x4e\x91", |
| 25967 | .alen = 12, |
| 25968 | .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74" |
| 25969 | "\x2d\x44\x72\x61\x66\x74\x73\x20" |
| 25970 | "\x61\x72\x65\x20\x64\x72\x61\x66" |
| 25971 | "\x74\x20\x64\x6f\x63\x75\x6d\x65" |
| 25972 | "\x6e\x74\x73\x20\x76\x61\x6c\x69" |
| 25973 | "\x64\x20\x66\x6f\x72\x20\x61\x20" |
| 25974 | "\x6d\x61\x78\x69\x6d\x75\x6d\x20" |
| 25975 | "\x6f\x66\x20\x73\x69\x78\x20\x6d" |
| 25976 | "\x6f\x6e\x74\x68\x73\x20\x61\x6e" |
| 25977 | "\x64\x20\x6d\x61\x79\x20\x62\x65" |
| 25978 | "\x20\x75\x70\x64\x61\x74\x65\x64" |
| 25979 | "\x2c\x20\x72\x65\x70\x6c\x61\x63" |
| 25980 | "\x65\x64\x2c\x20\x6f\x72\x20\x6f" |
| 25981 | "\x62\x73\x6f\x6c\x65\x74\x65\x64" |
| 25982 | "\x20\x62\x79\x20\x6f\x74\x68\x65" |
| 25983 | "\x72\x20\x64\x6f\x63\x75\x6d\x65" |
| 25984 | "\x6e\x74\x73\x20\x61\x74\x20\x61" |
| 25985 | "\x6e\x79\x20\x74\x69\x6d\x65\x2e" |
| 25986 | "\x20\x49\x74\x20\x69\x73\x20\x69" |
| 25987 | "\x6e\x61\x70\x70\x72\x6f\x70\x72" |
| 25988 | "\x69\x61\x74\x65\x20\x74\x6f\x20" |
| 25989 | "\x75\x73\x65\x20\x49\x6e\x74\x65" |
| 25990 | "\x72\x6e\x65\x74\x2d\x44\x72\x61" |
| 25991 | "\x66\x74\x73\x20\x61\x73\x20\x72" |
| 25992 | "\x65\x66\x65\x72\x65\x6e\x63\x65" |
| 25993 | "\x20\x6d\x61\x74\x65\x72\x69\x61" |
| 25994 | "\x6c\x20\x6f\x72\x20\x74\x6f\x20" |
| 25995 | "\x63\x69\x74\x65\x20\x74\x68\x65" |
| 25996 | "\x6d\x20\x6f\x74\x68\x65\x72\x20" |
| 25997 | "\x74\x68\x61\x6e\x20\x61\x73\x20" |
| 25998 | "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b" |
| 25999 | "\x20\x69\x6e\x20\x70\x72\x6f\x67" |
| 26000 | "\x72\x65\x73\x73\x2e\x2f\xe2\x80" |
| 26001 | "\x9d", |
| 26002 | .ilen = 265, |
| 26003 | .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4" |
| 26004 | "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd" |
| 26005 | "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89" |
| 26006 | "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2" |
| 26007 | "\x4c\x6c\xfc\x18\x75\x5d\x43\xee" |
| 26008 | "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0" |
| 26009 | "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00" |
| 26010 | "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf" |
| 26011 | "\x33\x2f\x83\x0e\x71\x0b\x97\xce" |
| 26012 | "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81" |
| 26013 | "\x14\xad\x17\x6e\x00\x8d\x33\xbd" |
| 26014 | "\x60\xf9\x82\xb1\xff\x37\xc8\x55" |
| 26015 | "\x97\x97\xa0\x6e\xf4\xf0\xef\x61" |
| 26016 | "\xc1\x86\x32\x4e\x2b\x35\x06\x38" |
| 26017 | "\x36\x06\x90\x7b\x6a\x7c\x02\xb0" |
| 26018 | "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4" |
| 26019 | "\xb9\x16\x6c\x76\x7b\x80\x4d\x46" |
| 26020 | "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9" |
| 26021 | "\x90\x40\xc5\xa4\x04\x33\x22\x5e" |
| 26022 | "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e" |
| 26023 | "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15" |
| 26024 | "\x5b\x00\x47\x71\x8c\xbc\x54\x6a" |
| 26025 | "\x0d\x07\x2b\x04\xb3\x56\x4e\xea" |
| 26026 | "\x1b\x42\x22\x73\xf5\x48\x27\x1a" |
| 26027 | "\x0b\xb2\x31\x60\x53\xfa\x76\x99" |
| 26028 | "\x19\x55\xeb\xd6\x31\x59\x43\x4e" |
| 26029 | "\xce\xbb\x4e\x46\x6d\xae\x5a\x10" |
| 26030 | "\x73\xa6\x72\x76\x27\x09\x7a\x10" |
| 26031 | "\x49\xe6\x17\xd9\x1d\x36\x10\x94" |
| 26032 | "\xfa\x68\xf0\xff\x77\x98\x71\x30" |
| 26033 | "\x30\x5b\xea\xba\x2e\xda\x04\xdf" |
| 26034 | "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29" |
| 26035 | "\xa6\xad\x5c\xb4\x02\x2b\x02\x70" |
| 26036 | "\x9b\xee\xad\x9d\x67\x89\x0c\xbb" |
| 26037 | "\x22\x39\x23\x36\xfe\xa1\x85\x1f" |
| 26038 | "\x38", |
| 26039 | .rlen = 281, |
| 26040 | }, |
| 26041 | }; |
| 26042 | |
| 26043 | static struct aead_testvec rfc7539_dec_tv_template[] = { |
| 26044 | { |
| 26045 | .key = "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 26046 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 26047 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 26048 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f", |
| 26049 | .klen = 32, |
| 26050 | .iv = "\x07\x00\x00\x00\x40\x41\x42\x43" |
| 26051 | "\x44\x45\x46\x47", |
| 26052 | .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3" |
| 26053 | "\xc4\xc5\xc6\xc7", |
| 26054 | .alen = 12, |
| 26055 | .input = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb" |
| 26056 | "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2" |
| 26057 | "\xa4\xad\xed\x51\x29\x6e\x08\xfe" |
| 26058 | "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6" |
| 26059 | "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12" |
| 26060 | "\x82\xfa\xfb\x69\xda\x92\x72\x8b" |
| 26061 | "\x1a\x71\xde\x0a\x9e\x06\x0b\x29" |
| 26062 | "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36" |
| 26063 | "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c" |
| 26064 | "\x98\x03\xae\xe3\x28\x09\x1b\x58" |
| 26065 | "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94" |
| 26066 | "\x55\x85\x80\x8b\x48\x31\xd7\xbc" |
| 26067 | "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d" |
| 26068 | "\xe5\x76\xd2\x65\x86\xce\xc6\x4b" |
| 26069 | "\x61\x16\x1a\xe1\x0b\x59\x4f\x09" |
| 26070 | "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60" |
| 26071 | "\x06\x91", |
| 26072 | .ilen = 130, |
| 26073 | .result = "\x4c\x61\x64\x69\x65\x73\x20\x61" |
| 26074 | "\x6e\x64\x20\x47\x65\x6e\x74\x6c" |
| 26075 | "\x65\x6d\x65\x6e\x20\x6f\x66\x20" |
| 26076 | "\x74\x68\x65\x20\x63\x6c\x61\x73" |
| 26077 | "\x73\x20\x6f\x66\x20\x27\x39\x39" |
| 26078 | "\x3a\x20\x49\x66\x20\x49\x20\x63" |
| 26079 | "\x6f\x75\x6c\x64\x20\x6f\x66\x66" |
| 26080 | "\x65\x72\x20\x79\x6f\x75\x20\x6f" |
| 26081 | "\x6e\x6c\x79\x20\x6f\x6e\x65\x20" |
| 26082 | "\x74\x69\x70\x20\x66\x6f\x72\x20" |
| 26083 | "\x74\x68\x65\x20\x66\x75\x74\x75" |
| 26084 | "\x72\x65\x2c\x20\x73\x75\x6e\x73" |
| 26085 | "\x63\x72\x65\x65\x6e\x20\x77\x6f" |
| 26086 | "\x75\x6c\x64\x20\x62\x65\x20\x69" |
| 26087 | "\x74\x2e", |
| 26088 | .rlen = 114, |
| 26089 | }, { |
| 26090 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 26091 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 26092 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 26093 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0", |
| 26094 | .klen = 32, |
| 26095 | .iv = "\x00\x00\x00\x00\x01\x02\x03\x04" |
| 26096 | "\x05\x06\x07\x08", |
| 26097 | .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00" |
| 26098 | "\x00\x00\x4e\x91", |
| 26099 | .alen = 12, |
| 26100 | .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4" |
| 26101 | "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd" |
| 26102 | "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89" |
| 26103 | "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2" |
| 26104 | "\x4c\x6c\xfc\x18\x75\x5d\x43\xee" |
| 26105 | "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0" |
| 26106 | "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00" |
| 26107 | "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf" |
| 26108 | "\x33\x2f\x83\x0e\x71\x0b\x97\xce" |
| 26109 | "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81" |
| 26110 | "\x14\xad\x17\x6e\x00\x8d\x33\xbd" |
| 26111 | "\x60\xf9\x82\xb1\xff\x37\xc8\x55" |
| 26112 | "\x97\x97\xa0\x6e\xf4\xf0\xef\x61" |
| 26113 | "\xc1\x86\x32\x4e\x2b\x35\x06\x38" |
| 26114 | "\x36\x06\x90\x7b\x6a\x7c\x02\xb0" |
| 26115 | "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4" |
| 26116 | "\xb9\x16\x6c\x76\x7b\x80\x4d\x46" |
| 26117 | "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9" |
| 26118 | "\x90\x40\xc5\xa4\x04\x33\x22\x5e" |
| 26119 | "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e" |
| 26120 | "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15" |
| 26121 | "\x5b\x00\x47\x71\x8c\xbc\x54\x6a" |
| 26122 | "\x0d\x07\x2b\x04\xb3\x56\x4e\xea" |
| 26123 | "\x1b\x42\x22\x73\xf5\x48\x27\x1a" |
| 26124 | "\x0b\xb2\x31\x60\x53\xfa\x76\x99" |
| 26125 | "\x19\x55\xeb\xd6\x31\x59\x43\x4e" |
| 26126 | "\xce\xbb\x4e\x46\x6d\xae\x5a\x10" |
| 26127 | "\x73\xa6\x72\x76\x27\x09\x7a\x10" |
| 26128 | "\x49\xe6\x17\xd9\x1d\x36\x10\x94" |
| 26129 | "\xfa\x68\xf0\xff\x77\x98\x71\x30" |
| 26130 | "\x30\x5b\xea\xba\x2e\xda\x04\xdf" |
| 26131 | "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29" |
| 26132 | "\xa6\xad\x5c\xb4\x02\x2b\x02\x70" |
| 26133 | "\x9b\xee\xad\x9d\x67\x89\x0c\xbb" |
| 26134 | "\x22\x39\x23\x36\xfe\xa1\x85\x1f" |
| 26135 | "\x38", |
| 26136 | .ilen = 281, |
| 26137 | .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74" |
| 26138 | "\x2d\x44\x72\x61\x66\x74\x73\x20" |
| 26139 | "\x61\x72\x65\x20\x64\x72\x61\x66" |
| 26140 | "\x74\x20\x64\x6f\x63\x75\x6d\x65" |
| 26141 | "\x6e\x74\x73\x20\x76\x61\x6c\x69" |
| 26142 | "\x64\x20\x66\x6f\x72\x20\x61\x20" |
| 26143 | "\x6d\x61\x78\x69\x6d\x75\x6d\x20" |
| 26144 | "\x6f\x66\x20\x73\x69\x78\x20\x6d" |
| 26145 | "\x6f\x6e\x74\x68\x73\x20\x61\x6e" |
| 26146 | "\x64\x20\x6d\x61\x79\x20\x62\x65" |
| 26147 | "\x20\x75\x70\x64\x61\x74\x65\x64" |
| 26148 | "\x2c\x20\x72\x65\x70\x6c\x61\x63" |
| 26149 | "\x65\x64\x2c\x20\x6f\x72\x20\x6f" |
| 26150 | "\x62\x73\x6f\x6c\x65\x74\x65\x64" |
| 26151 | "\x20\x62\x79\x20\x6f\x74\x68\x65" |
| 26152 | "\x72\x20\x64\x6f\x63\x75\x6d\x65" |
| 26153 | "\x6e\x74\x73\x20\x61\x74\x20\x61" |
| 26154 | "\x6e\x79\x20\x74\x69\x6d\x65\x2e" |
| 26155 | "\x20\x49\x74\x20\x69\x73\x20\x69" |
| 26156 | "\x6e\x61\x70\x70\x72\x6f\x70\x72" |
| 26157 | "\x69\x61\x74\x65\x20\x74\x6f\x20" |
| 26158 | "\x75\x73\x65\x20\x49\x6e\x74\x65" |
| 26159 | "\x72\x6e\x65\x74\x2d\x44\x72\x61" |
| 26160 | "\x66\x74\x73\x20\x61\x73\x20\x72" |
| 26161 | "\x65\x66\x65\x72\x65\x6e\x63\x65" |
| 26162 | "\x20\x6d\x61\x74\x65\x72\x69\x61" |
| 26163 | "\x6c\x20\x6f\x72\x20\x74\x6f\x20" |
| 26164 | "\x63\x69\x74\x65\x20\x74\x68\x65" |
| 26165 | "\x6d\x20\x6f\x74\x68\x65\x72\x20" |
| 26166 | "\x74\x68\x61\x6e\x20\x61\x73\x20" |
| 26167 | "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b" |
| 26168 | "\x20\x69\x6e\x20\x70\x72\x6f\x67" |
| 26169 | "\x72\x65\x73\x73\x2e\x2f\xe2\x80" |
| 26170 | "\x9d", |
| 26171 | .rlen = 265, |
| 26172 | }, |
| 26173 | }; |
| 26174 | |
| 26175 | /* |
Martin Willi | 5900758 | 2015-06-01 13:44:03 +0200 | [diff] [blame] | 26176 | * draft-irtf-cfrg-chacha20-poly1305 |
| 26177 | */ |
| 26178 | #define RFC7539ESP_DEC_TEST_VECTORS 1 |
| 26179 | #define RFC7539ESP_ENC_TEST_VECTORS 1 |
| 26180 | static struct aead_testvec rfc7539esp_enc_tv_template[] = { |
| 26181 | { |
| 26182 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 26183 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 26184 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 26185 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0" |
| 26186 | "\x00\x00\x00\x00", |
| 26187 | .klen = 36, |
| 26188 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 26189 | .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00" |
Herbert Xu | 7479092 | 2015-07-16 12:35:08 +0800 | [diff] [blame] | 26190 | "\x00\x00\x4e\x91\x01\x02\x03\x04" |
| 26191 | "\x05\x06\x07\x08", |
| 26192 | .alen = 20, |
Martin Willi | 5900758 | 2015-06-01 13:44:03 +0200 | [diff] [blame] | 26193 | .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74" |
| 26194 | "\x2d\x44\x72\x61\x66\x74\x73\x20" |
| 26195 | "\x61\x72\x65\x20\x64\x72\x61\x66" |
| 26196 | "\x74\x20\x64\x6f\x63\x75\x6d\x65" |
| 26197 | "\x6e\x74\x73\x20\x76\x61\x6c\x69" |
| 26198 | "\x64\x20\x66\x6f\x72\x20\x61\x20" |
| 26199 | "\x6d\x61\x78\x69\x6d\x75\x6d\x20" |
| 26200 | "\x6f\x66\x20\x73\x69\x78\x20\x6d" |
| 26201 | "\x6f\x6e\x74\x68\x73\x20\x61\x6e" |
| 26202 | "\x64\x20\x6d\x61\x79\x20\x62\x65" |
| 26203 | "\x20\x75\x70\x64\x61\x74\x65\x64" |
| 26204 | "\x2c\x20\x72\x65\x70\x6c\x61\x63" |
| 26205 | "\x65\x64\x2c\x20\x6f\x72\x20\x6f" |
| 26206 | "\x62\x73\x6f\x6c\x65\x74\x65\x64" |
| 26207 | "\x20\x62\x79\x20\x6f\x74\x68\x65" |
| 26208 | "\x72\x20\x64\x6f\x63\x75\x6d\x65" |
| 26209 | "\x6e\x74\x73\x20\x61\x74\x20\x61" |
| 26210 | "\x6e\x79\x20\x74\x69\x6d\x65\x2e" |
| 26211 | "\x20\x49\x74\x20\x69\x73\x20\x69" |
| 26212 | "\x6e\x61\x70\x70\x72\x6f\x70\x72" |
| 26213 | "\x69\x61\x74\x65\x20\x74\x6f\x20" |
| 26214 | "\x75\x73\x65\x20\x49\x6e\x74\x65" |
| 26215 | "\x72\x6e\x65\x74\x2d\x44\x72\x61" |
| 26216 | "\x66\x74\x73\x20\x61\x73\x20\x72" |
| 26217 | "\x65\x66\x65\x72\x65\x6e\x63\x65" |
| 26218 | "\x20\x6d\x61\x74\x65\x72\x69\x61" |
| 26219 | "\x6c\x20\x6f\x72\x20\x74\x6f\x20" |
| 26220 | "\x63\x69\x74\x65\x20\x74\x68\x65" |
| 26221 | "\x6d\x20\x6f\x74\x68\x65\x72\x20" |
| 26222 | "\x74\x68\x61\x6e\x20\x61\x73\x20" |
| 26223 | "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b" |
| 26224 | "\x20\x69\x6e\x20\x70\x72\x6f\x67" |
| 26225 | "\x72\x65\x73\x73\x2e\x2f\xe2\x80" |
| 26226 | "\x9d", |
| 26227 | .ilen = 265, |
| 26228 | .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4" |
| 26229 | "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd" |
| 26230 | "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89" |
| 26231 | "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2" |
| 26232 | "\x4c\x6c\xfc\x18\x75\x5d\x43\xee" |
| 26233 | "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0" |
| 26234 | "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00" |
| 26235 | "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf" |
| 26236 | "\x33\x2f\x83\x0e\x71\x0b\x97\xce" |
| 26237 | "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81" |
| 26238 | "\x14\xad\x17\x6e\x00\x8d\x33\xbd" |
| 26239 | "\x60\xf9\x82\xb1\xff\x37\xc8\x55" |
| 26240 | "\x97\x97\xa0\x6e\xf4\xf0\xef\x61" |
| 26241 | "\xc1\x86\x32\x4e\x2b\x35\x06\x38" |
| 26242 | "\x36\x06\x90\x7b\x6a\x7c\x02\xb0" |
| 26243 | "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4" |
| 26244 | "\xb9\x16\x6c\x76\x7b\x80\x4d\x46" |
| 26245 | "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9" |
| 26246 | "\x90\x40\xc5\xa4\x04\x33\x22\x5e" |
| 26247 | "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e" |
| 26248 | "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15" |
| 26249 | "\x5b\x00\x47\x71\x8c\xbc\x54\x6a" |
| 26250 | "\x0d\x07\x2b\x04\xb3\x56\x4e\xea" |
| 26251 | "\x1b\x42\x22\x73\xf5\x48\x27\x1a" |
| 26252 | "\x0b\xb2\x31\x60\x53\xfa\x76\x99" |
| 26253 | "\x19\x55\xeb\xd6\x31\x59\x43\x4e" |
| 26254 | "\xce\xbb\x4e\x46\x6d\xae\x5a\x10" |
| 26255 | "\x73\xa6\x72\x76\x27\x09\x7a\x10" |
| 26256 | "\x49\xe6\x17\xd9\x1d\x36\x10\x94" |
| 26257 | "\xfa\x68\xf0\xff\x77\x98\x71\x30" |
| 26258 | "\x30\x5b\xea\xba\x2e\xda\x04\xdf" |
| 26259 | "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29" |
| 26260 | "\xa6\xad\x5c\xb4\x02\x2b\x02\x70" |
| 26261 | "\x9b\xee\xad\x9d\x67\x89\x0c\xbb" |
| 26262 | "\x22\x39\x23\x36\xfe\xa1\x85\x1f" |
| 26263 | "\x38", |
| 26264 | .rlen = 281, |
| 26265 | }, |
| 26266 | }; |
| 26267 | |
| 26268 | static struct aead_testvec rfc7539esp_dec_tv_template[] = { |
| 26269 | { |
| 26270 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 26271 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 26272 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 26273 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0" |
| 26274 | "\x00\x00\x00\x00", |
| 26275 | .klen = 36, |
| 26276 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 26277 | .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00" |
Herbert Xu | 7479092 | 2015-07-16 12:35:08 +0800 | [diff] [blame] | 26278 | "\x00\x00\x4e\x91\x01\x02\x03\x04" |
| 26279 | "\x05\x06\x07\x08", |
| 26280 | .alen = 20, |
Martin Willi | 5900758 | 2015-06-01 13:44:03 +0200 | [diff] [blame] | 26281 | .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4" |
| 26282 | "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd" |
| 26283 | "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89" |
| 26284 | "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2" |
| 26285 | "\x4c\x6c\xfc\x18\x75\x5d\x43\xee" |
| 26286 | "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0" |
| 26287 | "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00" |
| 26288 | "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf" |
| 26289 | "\x33\x2f\x83\x0e\x71\x0b\x97\xce" |
| 26290 | "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81" |
| 26291 | "\x14\xad\x17\x6e\x00\x8d\x33\xbd" |
| 26292 | "\x60\xf9\x82\xb1\xff\x37\xc8\x55" |
| 26293 | "\x97\x97\xa0\x6e\xf4\xf0\xef\x61" |
| 26294 | "\xc1\x86\x32\x4e\x2b\x35\x06\x38" |
| 26295 | "\x36\x06\x90\x7b\x6a\x7c\x02\xb0" |
| 26296 | "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4" |
| 26297 | "\xb9\x16\x6c\x76\x7b\x80\x4d\x46" |
| 26298 | "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9" |
| 26299 | "\x90\x40\xc5\xa4\x04\x33\x22\x5e" |
| 26300 | "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e" |
| 26301 | "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15" |
| 26302 | "\x5b\x00\x47\x71\x8c\xbc\x54\x6a" |
| 26303 | "\x0d\x07\x2b\x04\xb3\x56\x4e\xea" |
| 26304 | "\x1b\x42\x22\x73\xf5\x48\x27\x1a" |
| 26305 | "\x0b\xb2\x31\x60\x53\xfa\x76\x99" |
| 26306 | "\x19\x55\xeb\xd6\x31\x59\x43\x4e" |
| 26307 | "\xce\xbb\x4e\x46\x6d\xae\x5a\x10" |
| 26308 | "\x73\xa6\x72\x76\x27\x09\x7a\x10" |
| 26309 | "\x49\xe6\x17\xd9\x1d\x36\x10\x94" |
| 26310 | "\xfa\x68\xf0\xff\x77\x98\x71\x30" |
| 26311 | "\x30\x5b\xea\xba\x2e\xda\x04\xdf" |
| 26312 | "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29" |
| 26313 | "\xa6\xad\x5c\xb4\x02\x2b\x02\x70" |
| 26314 | "\x9b\xee\xad\x9d\x67\x89\x0c\xbb" |
| 26315 | "\x22\x39\x23\x36\xfe\xa1\x85\x1f" |
| 26316 | "\x38", |
| 26317 | .ilen = 281, |
| 26318 | .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74" |
| 26319 | "\x2d\x44\x72\x61\x66\x74\x73\x20" |
| 26320 | "\x61\x72\x65\x20\x64\x72\x61\x66" |
| 26321 | "\x74\x20\x64\x6f\x63\x75\x6d\x65" |
| 26322 | "\x6e\x74\x73\x20\x76\x61\x6c\x69" |
| 26323 | "\x64\x20\x66\x6f\x72\x20\x61\x20" |
| 26324 | "\x6d\x61\x78\x69\x6d\x75\x6d\x20" |
| 26325 | "\x6f\x66\x20\x73\x69\x78\x20\x6d" |
| 26326 | "\x6f\x6e\x74\x68\x73\x20\x61\x6e" |
| 26327 | "\x64\x20\x6d\x61\x79\x20\x62\x65" |
| 26328 | "\x20\x75\x70\x64\x61\x74\x65\x64" |
| 26329 | "\x2c\x20\x72\x65\x70\x6c\x61\x63" |
| 26330 | "\x65\x64\x2c\x20\x6f\x72\x20\x6f" |
| 26331 | "\x62\x73\x6f\x6c\x65\x74\x65\x64" |
| 26332 | "\x20\x62\x79\x20\x6f\x74\x68\x65" |
| 26333 | "\x72\x20\x64\x6f\x63\x75\x6d\x65" |
| 26334 | "\x6e\x74\x73\x20\x61\x74\x20\x61" |
| 26335 | "\x6e\x79\x20\x74\x69\x6d\x65\x2e" |
| 26336 | "\x20\x49\x74\x20\x69\x73\x20\x69" |
| 26337 | "\x6e\x61\x70\x70\x72\x6f\x70\x72" |
| 26338 | "\x69\x61\x74\x65\x20\x74\x6f\x20" |
| 26339 | "\x75\x73\x65\x20\x49\x6e\x74\x65" |
| 26340 | "\x72\x6e\x65\x74\x2d\x44\x72\x61" |
| 26341 | "\x66\x74\x73\x20\x61\x73\x20\x72" |
| 26342 | "\x65\x66\x65\x72\x65\x6e\x63\x65" |
| 26343 | "\x20\x6d\x61\x74\x65\x72\x69\x61" |
| 26344 | "\x6c\x20\x6f\x72\x20\x74\x6f\x20" |
| 26345 | "\x63\x69\x74\x65\x20\x74\x68\x65" |
| 26346 | "\x6d\x20\x6f\x74\x68\x65\x72\x20" |
| 26347 | "\x74\x68\x61\x6e\x20\x61\x73\x20" |
| 26348 | "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b" |
| 26349 | "\x20\x69\x6e\x20\x70\x72\x6f\x67" |
| 26350 | "\x72\x65\x73\x73\x2e\x2f\xe2\x80" |
| 26351 | "\x9d", |
| 26352 | .rlen = 265, |
| 26353 | }, |
| 26354 | }; |
| 26355 | |
| 26356 | /* |
Stephan Mueller | 3535198 | 2015-09-21 20:59:56 +0200 | [diff] [blame] | 26357 | * All key wrapping test vectors taken from |
| 26358 | * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip |
| 26359 | * |
| 26360 | * Note: as documented in keywrap.c, the ivout for encryption is the first |
| 26361 | * semiblock of the ciphertext from the test vector. For decryption, iv is |
| 26362 | * the first semiblock of the ciphertext. |
| 26363 | */ |
| 26364 | static struct cipher_testvec aes_kw_enc_tv_template[] = { |
| 26365 | { |
| 26366 | .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2" |
| 26367 | "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6", |
| 26368 | .klen = 16, |
| 26369 | .input = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea" |
| 26370 | "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f", |
| 26371 | .ilen = 16, |
| 26372 | .result = "\xf6\x85\x94\x81\x6f\x64\xca\xa3" |
| 26373 | "\xf5\x6f\xab\xea\x25\x48\xf5\xfb", |
| 26374 | .rlen = 16, |
| 26375 | .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d", |
| 26376 | }, |
| 26377 | }; |
| 26378 | |
| 26379 | static struct cipher_testvec aes_kw_dec_tv_template[] = { |
| 26380 | { |
| 26381 | .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b" |
| 26382 | "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71" |
| 26383 | "\x03\x86\xf9\x32\x78\x6e\xf7\x96" |
| 26384 | "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f", |
| 26385 | .klen = 32, |
| 26386 | .input = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15" |
| 26387 | "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43", |
| 26388 | .ilen = 16, |
| 26389 | .result = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa" |
| 26390 | "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa", |
| 26391 | .rlen = 16, |
| 26392 | .iv = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1", |
| 26393 | }, |
| 26394 | }; |
| 26395 | |
| 26396 | /* |
Jarod Wilson | e08ca2d | 2009-05-04 19:46:29 +0800 | [diff] [blame] | 26397 | * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode) |
| 26398 | * test vectors, taken from Appendix B.2.9 and B.2.10: |
| 26399 | * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf |
| 26400 | * Only AES-128 is supported at this time. |
| 26401 | */ |
| 26402 | #define ANSI_CPRNG_AES_TEST_VECTORS 6 |
| 26403 | |
| 26404 | static struct cprng_testvec ansi_cprng_aes_tv_template[] = { |
| 26405 | { |
| 26406 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 26407 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 26408 | .klen = 16, |
| 26409 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 26410 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9", |
| 26411 | .dtlen = 16, |
| 26412 | .v = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 26413 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26414 | .vlen = 16, |
| 26415 | .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55" |
| 26416 | "\x84\x79\x66\x85\xc1\x2f\x76\x41", |
| 26417 | .rlen = 16, |
| 26418 | .loops = 1, |
| 26419 | }, { |
| 26420 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 26421 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 26422 | .klen = 16, |
| 26423 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 26424 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa", |
| 26425 | .dtlen = 16, |
| 26426 | .v = "\xc0\x00\x00\x00\x00\x00\x00\x00" |
| 26427 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26428 | .vlen = 16, |
| 26429 | .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c" |
| 26430 | "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d", |
| 26431 | .rlen = 16, |
| 26432 | .loops = 1, |
| 26433 | }, { |
| 26434 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 26435 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 26436 | .klen = 16, |
| 26437 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 26438 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb", |
| 26439 | .dtlen = 16, |
| 26440 | .v = "\xe0\x00\x00\x00\x00\x00\x00\x00" |
| 26441 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26442 | .vlen = 16, |
| 26443 | .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5" |
| 26444 | "\x29\x14\x28\x81\xa9\x4d\x4e\xc7", |
| 26445 | .rlen = 16, |
| 26446 | .loops = 1, |
| 26447 | }, { |
| 26448 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 26449 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 26450 | .klen = 16, |
| 26451 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 26452 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc", |
| 26453 | .dtlen = 16, |
| 26454 | .v = "\xf0\x00\x00\x00\x00\x00\x00\x00" |
| 26455 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26456 | .vlen = 16, |
| 26457 | .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5" |
| 26458 | "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a", |
| 26459 | .rlen = 16, |
| 26460 | .loops = 1, |
| 26461 | }, { |
| 26462 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 26463 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 26464 | .klen = 16, |
| 26465 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 26466 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd", |
| 26467 | .dtlen = 16, |
| 26468 | .v = "\xf8\x00\x00\x00\x00\x00\x00\x00" |
| 26469 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26470 | .vlen = 16, |
| 26471 | .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb" |
| 26472 | "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8", |
| 26473 | .rlen = 16, |
| 26474 | .loops = 1, |
| 26475 | }, { /* Monte Carlo Test */ |
| 26476 | .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5" |
| 26477 | "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48", |
| 26478 | .klen = 16, |
| 26479 | .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b" |
| 26480 | "\x67\xc9\x25\xfa\x70\x1f\x11\xac", |
| 26481 | .dtlen = 16, |
| 26482 | .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97" |
| 26483 | "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1", |
| 26484 | .vlen = 16, |
| 26485 | .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb" |
| 26486 | "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73", |
| 26487 | .rlen = 16, |
| 26488 | .loops = 10000, |
| 26489 | }, |
| 26490 | }; |
| 26491 | |
Stephan Mueller | 3332ee2 | 2014-05-31 17:24:38 +0200 | [diff] [blame] | 26492 | /* |
| 26493 | * SP800-90A DRBG Test vectors from |
| 26494 | * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip |
| 26495 | * |
| 26496 | * Test vectors for DRBG with prediction resistance. All types of DRBGs |
| 26497 | * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and |
| 26498 | * w/o personalization string, w/ and w/o additional input string). |
| 26499 | */ |
| 26500 | static struct drbg_testvec drbg_pr_sha256_tv_template[] = { |
| 26501 | { |
| 26502 | .entropy = (unsigned char *) |
| 26503 | "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86" |
| 26504 | "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf" |
| 26505 | "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6" |
| 26506 | "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e", |
| 26507 | .entropylen = 48, |
| 26508 | .entpra = (unsigned char *) |
| 26509 | "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62" |
| 26510 | "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f" |
| 26511 | "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62", |
| 26512 | .entprb = (unsigned char *) |
| 26513 | "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf" |
| 26514 | "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0" |
| 26515 | "\x8c\xee\xeb\x9c\xf5\x31\x98\x31", |
| 26516 | .entprlen = 32, |
| 26517 | .expected = (unsigned char *) |
| 26518 | "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7" |
| 26519 | "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49" |
| 26520 | "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d" |
| 26521 | "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe" |
| 26522 | "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1" |
| 26523 | "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5" |
| 26524 | "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf" |
| 26525 | "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6" |
| 26526 | "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5" |
| 26527 | "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce" |
| 26528 | "\x30\x81\xa6\x8f\x27\x14\xf8\x1c", |
| 26529 | .expectedlen = 128, |
| 26530 | .addtla = NULL, |
| 26531 | .addtlb = NULL, |
| 26532 | .addtllen = 0, |
| 26533 | .pers = NULL, |
| 26534 | .perslen = 0, |
| 26535 | }, { |
| 26536 | .entropy = (unsigned char *) |
| 26537 | "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d" |
| 26538 | "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0" |
| 26539 | "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1" |
| 26540 | "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6", |
| 26541 | .entropylen = 48, |
| 26542 | .entpra = (unsigned char *) |
| 26543 | "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb" |
| 26544 | "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13" |
| 26545 | "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15", |
| 26546 | .entprb = (unsigned char *) |
| 26547 | "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09" |
| 26548 | "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde" |
| 26549 | "\x76\xaa\x55\x04\x8b\x0a\x72\x95", |
| 26550 | .entprlen = 32, |
| 26551 | .expected = (unsigned char *) |
| 26552 | "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32" |
| 26553 | "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c" |
| 26554 | "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18" |
| 26555 | "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb" |
| 26556 | "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81" |
| 26557 | "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4" |
| 26558 | "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6" |
| 26559 | "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13" |
| 26560 | "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9" |
| 26561 | "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60" |
| 26562 | "\x50\x47\xa3\x63\x81\x16\xaf\x19", |
| 26563 | .expectedlen = 128, |
| 26564 | .addtla = (unsigned char *) |
| 26565 | "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d" |
| 26566 | "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad" |
| 26567 | "\xa9\xd0\x1d\x59\x02\xc4\xff\x70", |
| 26568 | .addtlb = (unsigned char *) |
| 26569 | "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31" |
| 26570 | "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41" |
| 26571 | "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd", |
| 26572 | .addtllen = 32, |
| 26573 | .pers = NULL, |
| 26574 | .perslen = 0, |
| 26575 | }, { |
| 26576 | .entropy = (unsigned char *) |
| 26577 | "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85" |
| 26578 | "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72" |
| 26579 | "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8" |
| 26580 | "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1", |
| 26581 | .entropylen = 48, |
| 26582 | .entpra = (unsigned char *) |
| 26583 | "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9" |
| 26584 | "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60" |
| 26585 | "\xba\x0a\xde\x57\x5b\x4b\x9f\x29", |
| 26586 | .entprb = (unsigned char *) |
| 26587 | "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd" |
| 26588 | "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4" |
| 26589 | "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26", |
| 26590 | .entprlen = 32, |
| 26591 | .expected = (unsigned char *) |
| 26592 | "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25" |
| 26593 | "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde" |
| 26594 | "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5" |
| 26595 | "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9" |
| 26596 | "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c" |
| 26597 | "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e" |
| 26598 | "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c" |
| 26599 | "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae" |
| 26600 | "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c" |
| 26601 | "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe" |
| 26602 | "\x90\x35\x0d\x4c\x4d\x85\xe7\x13", |
| 26603 | .expectedlen = 128, |
| 26604 | .addtla = NULL, |
| 26605 | .addtlb = NULL, |
| 26606 | .addtllen = 0, |
| 26607 | .pers = (unsigned char *) |
| 26608 | "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7" |
| 26609 | "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90" |
| 26610 | "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47", |
| 26611 | .perslen = 32, |
| 26612 | }, { |
| 26613 | .entropy = (unsigned char *) |
| 26614 | "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6" |
| 26615 | "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4" |
| 26616 | "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87" |
| 26617 | "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e", |
| 26618 | .entropylen = 48, |
| 26619 | .entpra = (unsigned char *) |
| 26620 | "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c" |
| 26621 | "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12" |
| 26622 | "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc", |
| 26623 | .entprb = (unsigned char *) |
| 26624 | "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73" |
| 26625 | "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6" |
| 26626 | "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb", |
| 26627 | .entprlen = 32, |
| 26628 | .expected = (unsigned char *) |
| 26629 | "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31" |
| 26630 | "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65" |
| 26631 | "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18" |
| 26632 | "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42" |
| 26633 | "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50" |
| 26634 | "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b" |
| 26635 | "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f" |
| 26636 | "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0" |
| 26637 | "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda" |
| 26638 | "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44" |
| 26639 | "\x63\x4a\x68\x72\xe9\xf5\x55\xfe", |
| 26640 | .expectedlen = 128, |
| 26641 | .addtla = (unsigned char *) |
| 26642 | "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c" |
| 26643 | "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff" |
| 26644 | "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0", |
| 26645 | .addtlb = (unsigned char *) |
| 26646 | "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2" |
| 26647 | "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89" |
| 26648 | "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e", |
| 26649 | .addtllen = 32, |
| 26650 | .pers = (unsigned char *) |
| 26651 | "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1" |
| 26652 | "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52" |
| 26653 | "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c", |
| 26654 | .perslen = 32, |
| 26655 | }, |
| 26656 | }; |
| 26657 | |
| 26658 | static struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = { |
| 26659 | { |
| 26660 | .entropy = (unsigned char *) |
| 26661 | "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a" |
| 26662 | "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96" |
| 26663 | "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46" |
| 26664 | "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab", |
| 26665 | .entropylen = 48, |
| 26666 | .entpra = (unsigned char *) |
| 26667 | "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92" |
| 26668 | "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46" |
| 26669 | "\xe2\x9a\x29\x51\x81\x56\x9f\x54", |
| 26670 | .entprb = (unsigned char *) |
| 26671 | "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc" |
| 26672 | "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65" |
| 26673 | "\x8a\x2a\x77\xa8\x69\x90\x89\xf4", |
| 26674 | .entprlen = 32, |
| 26675 | .expected = (unsigned char *) |
| 26676 | "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2" |
| 26677 | "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1" |
| 26678 | "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4" |
| 26679 | "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf" |
| 26680 | "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc" |
| 26681 | "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8" |
| 26682 | "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b" |
| 26683 | "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e" |
| 26684 | "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22" |
| 26685 | "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc" |
| 26686 | "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f", |
| 26687 | .expectedlen = 128, |
| 26688 | .addtla = NULL, |
| 26689 | .addtlb = NULL, |
| 26690 | .addtllen = 0, |
| 26691 | .pers = NULL, |
| 26692 | .perslen = 0, |
| 26693 | }, { |
| 26694 | .entropy = (unsigned char *) |
| 26695 | "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f" |
| 26696 | "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f" |
| 26697 | "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05" |
| 26698 | "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda", |
| 26699 | .entropylen = 48, |
| 26700 | .entpra = (unsigned char *) |
| 26701 | "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4" |
| 26702 | "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26" |
| 26703 | "\x46\xd9\x26\xa2\x19\xd4\x94\x43", |
| 26704 | .entprb = (unsigned char *) |
| 26705 | "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79" |
| 26706 | "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98" |
| 26707 | "\x51\x78\x72\xb2\x79\xfd\x2c\xff", |
| 26708 | .entprlen = 32, |
| 26709 | .expected = (unsigned char *) |
| 26710 | "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7" |
| 26711 | "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda" |
| 26712 | "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa" |
| 26713 | "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40" |
| 26714 | "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda" |
| 26715 | "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37" |
| 26716 | "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70" |
| 26717 | "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b" |
| 26718 | "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5" |
| 26719 | "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd" |
| 26720 | "\xcd\x66\xb5\x01\x69\x66\xa0\x3c", |
| 26721 | .expectedlen = 128, |
| 26722 | .addtla = (unsigned char *) |
| 26723 | "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3" |
| 26724 | "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56" |
| 26725 | "\x6d\x99\x3b\xc6\x58\xda\x03\xf6", |
| 26726 | .addtlb = (unsigned char *) |
| 26727 | "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c" |
| 26728 | "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44" |
| 26729 | "\xc6\x03\xa2\xfb\x13\x20\x19\xb7", |
| 26730 | .addtllen = 32, |
| 26731 | .pers = NULL, |
| 26732 | .perslen = 0, |
| 26733 | }, { |
| 26734 | .entropy = (unsigned char *) |
| 26735 | "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89" |
| 26736 | "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf" |
| 26737 | "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20" |
| 26738 | "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67", |
| 26739 | .entropylen = 48, |
| 26740 | .entpra = (unsigned char *) |
| 26741 | "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79" |
| 26742 | "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57" |
| 26743 | "\x20\x28\xad\xf2\x60\xd7\xcd\x45", |
| 26744 | .entprb = (unsigned char *) |
| 26745 | "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71" |
| 26746 | "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66" |
| 26747 | "\x1f\xfa\x74\xd3\xac\xa6\x74\x60", |
| 26748 | .entprlen = 32, |
| 26749 | .expected = (unsigned char *) |
| 26750 | "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99" |
| 26751 | "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3" |
| 26752 | "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75" |
| 26753 | "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61" |
| 26754 | "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88" |
| 26755 | "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e" |
| 26756 | "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c" |
| 26757 | "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce" |
| 26758 | "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc" |
| 26759 | "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc" |
| 26760 | "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3", |
| 26761 | .expectedlen = 128, |
| 26762 | .addtla = NULL, |
| 26763 | .addtlb = NULL, |
| 26764 | .addtllen = 0, |
| 26765 | .pers = (unsigned char *) |
| 26766 | "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f" |
| 26767 | "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce" |
| 26768 | "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa", |
| 26769 | .perslen = 32, |
| 26770 | }, { |
| 26771 | .entropy = (unsigned char *) |
| 26772 | "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd" |
| 26773 | "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01" |
| 26774 | "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15" |
| 26775 | "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb", |
| 26776 | .entropylen = 48, |
| 26777 | .entpra = (unsigned char *) |
| 26778 | "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a" |
| 26779 | "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96" |
| 26780 | "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6", |
| 26781 | .entprb = (unsigned char *) |
| 26782 | "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2" |
| 26783 | "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e" |
| 26784 | "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1", |
| 26785 | .entprlen = 32, |
| 26786 | .expected = (unsigned char *) |
| 26787 | "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14" |
| 26788 | "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6" |
| 26789 | "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7" |
| 26790 | "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77" |
| 26791 | "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5" |
| 26792 | "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6" |
| 26793 | "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1" |
| 26794 | "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40" |
| 26795 | "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8" |
| 26796 | "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72" |
| 26797 | "\xda\x3f\xad\x2b\xba\x00\x6b\xd1", |
| 26798 | .expectedlen = 128, |
| 26799 | .addtla = (unsigned char *) |
| 26800 | "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03" |
| 26801 | "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6" |
| 26802 | "\x86\x88\x55\x28\xc1\x69\xdd\x76", |
| 26803 | .addtlb = (unsigned char *) |
| 26804 | "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7" |
| 26805 | "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa" |
| 26806 | "\x00\x99\x2a\xdd\x0a\x00\x50\x82", |
| 26807 | .addtllen = 32, |
| 26808 | .pers = (unsigned char *) |
| 26809 | "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8" |
| 26810 | "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda" |
| 26811 | "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f", |
| 26812 | .perslen = 32, |
| 26813 | }, |
| 26814 | }; |
| 26815 | |
| 26816 | static struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = { |
| 26817 | { |
| 26818 | .entropy = (unsigned char *) |
| 26819 | "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42" |
| 26820 | "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2", |
| 26821 | .entropylen = 24, |
| 26822 | .entpra = (unsigned char *) |
| 26823 | "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15" |
| 26824 | "\xb4\xec\x80\xb1", |
| 26825 | .entprb = (unsigned char *) |
| 26826 | "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9" |
| 26827 | "\x28\x07\xeb\xc2", |
| 26828 | .entprlen = 16, |
| 26829 | .expected = (unsigned char *) |
| 26830 | "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe" |
| 26831 | "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc" |
| 26832 | "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18" |
| 26833 | "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce" |
| 26834 | "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b" |
| 26835 | "\x8a\xf1\x23\xa8", |
| 26836 | .expectedlen = 64, |
| 26837 | .addtla = NULL, |
| 26838 | .addtlb = NULL, |
| 26839 | .addtllen = 0, |
| 26840 | .pers = NULL, |
| 26841 | .perslen = 0, |
| 26842 | }, { |
| 26843 | .entropy = (unsigned char *) |
| 26844 | "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77" |
| 26845 | "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94", |
| 26846 | .entropylen = 24, |
| 26847 | .entpra = (unsigned char *) |
| 26848 | "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73" |
| 26849 | "\x67\xd1\x08\xf8", |
| 26850 | .entprb = (unsigned char *) |
| 26851 | "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc" |
| 26852 | "\xd4\xba\x04\x58", |
| 26853 | .entprlen = 16, |
| 26854 | .expected = (unsigned char *) |
| 26855 | "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d" |
| 26856 | "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc" |
| 26857 | "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7" |
| 26858 | "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc" |
| 26859 | "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c" |
| 26860 | "\xc1\x02\x41\x82", |
| 26861 | .expectedlen = 64, |
| 26862 | .addtla = (unsigned char *) |
| 26863 | "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8" |
| 26864 | "\xeb\xb3\x01\x76", |
| 26865 | .addtlb = (unsigned char *) |
| 26866 | "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25" |
| 26867 | "\xd0\x7f\xcc\x43", |
| 26868 | .addtllen = 16, |
| 26869 | .pers = NULL, |
| 26870 | .perslen = 0, |
| 26871 | }, { |
| 26872 | .entropy = (unsigned char *) |
| 26873 | "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b" |
| 26874 | "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8", |
| 26875 | .entropylen = 24, |
| 26876 | .entpra = (unsigned char *) |
| 26877 | "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66" |
| 26878 | "\xc3\x0f\xe3\xb0", |
| 26879 | .entprb = (unsigned char *) |
| 26880 | "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8" |
| 26881 | "\xd6\x9c\x9d\xe8", |
| 26882 | .entprlen = 16, |
| 26883 | .expected = (unsigned char *) |
| 26884 | "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b" |
| 26885 | "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10" |
| 26886 | "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69" |
| 26887 | "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc" |
| 26888 | "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f" |
| 26889 | "\x72\x82\x0c\xcf", |
| 26890 | .expectedlen = 64, |
| 26891 | .addtla = NULL, |
| 26892 | .addtlb = NULL, |
| 26893 | .addtllen = 0, |
| 26894 | .pers = (unsigned char *) |
| 26895 | "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed" |
| 26896 | "\x21\x52\xb3\xad", |
| 26897 | .perslen = 16, |
| 26898 | }, { |
| 26899 | .entropy = (unsigned char *) |
| 26900 | "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06" |
| 26901 | "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97", |
| 26902 | .entropylen = 24, |
| 26903 | .entpra = (unsigned char *) |
| 26904 | "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7" |
| 26905 | "\xc4\x2c\xe8\x10", |
| 26906 | .entprb = (unsigned char *) |
| 26907 | "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22" |
| 26908 | "\x08\xf7\xa5\x01", |
| 26909 | .entprlen = 16, |
| 26910 | .expected = (unsigned char *) |
| 26911 | "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71" |
| 26912 | "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28" |
| 26913 | "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45" |
| 26914 | "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08" |
| 26915 | "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4" |
| 26916 | "\x23\xc5\x1f\x68", |
| 26917 | .expectedlen = 64, |
| 26918 | .addtla = (unsigned char *) |
| 26919 | "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59" |
| 26920 | "\x23\x6d\xad\x1d", |
| 26921 | .addtlb = (unsigned char *) |
| 26922 | "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12" |
| 26923 | "\xbc\x59\x31\x8c", |
| 26924 | .addtllen = 16, |
| 26925 | .pers = (unsigned char *) |
| 26926 | "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4" |
| 26927 | "\x37\x3c\x5c\x0b", |
| 26928 | .perslen = 16, |
| 26929 | }, |
| 26930 | }; |
| 26931 | |
| 26932 | /* |
| 26933 | * SP800-90A DRBG Test vectors from |
| 26934 | * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip |
| 26935 | * |
| 26936 | * Test vectors for DRBG without prediction resistance. All types of DRBGs |
| 26937 | * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and |
| 26938 | * w/o personalization string, w/ and w/o additional input string). |
| 26939 | */ |
| 26940 | static struct drbg_testvec drbg_nopr_sha256_tv_template[] = { |
| 26941 | { |
| 26942 | .entropy = (unsigned char *) |
| 26943 | "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3" |
| 26944 | "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19" |
| 26945 | "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31" |
| 26946 | "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e", |
| 26947 | .entropylen = 48, |
| 26948 | .expected = (unsigned char *) |
| 26949 | "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64" |
| 26950 | "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5" |
| 26951 | "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3" |
| 26952 | "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11" |
| 26953 | "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81" |
| 26954 | "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63" |
| 26955 | "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7" |
| 26956 | "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c" |
| 26957 | "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91" |
| 26958 | "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d" |
| 26959 | "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf", |
| 26960 | .expectedlen = 128, |
| 26961 | .addtla = NULL, |
| 26962 | .addtlb = NULL, |
| 26963 | .addtllen = 0, |
| 26964 | .pers = NULL, |
| 26965 | .perslen = 0, |
| 26966 | }, { |
| 26967 | .entropy = (unsigned char *) |
| 26968 | "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c" |
| 26969 | "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d" |
| 26970 | "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff" |
| 26971 | "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56", |
| 26972 | .entropylen = 48, |
| 26973 | .expected = (unsigned char *) |
| 26974 | "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7" |
| 26975 | "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b" |
| 26976 | "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0" |
| 26977 | "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8" |
| 26978 | "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f" |
| 26979 | "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d" |
| 26980 | "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59" |
| 26981 | "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b" |
| 26982 | "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0" |
| 26983 | "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c" |
| 26984 | "\x70\xa8\x07\x59\x97\xeb\xf6\xbe", |
| 26985 | .expectedlen = 128, |
| 26986 | .addtla = (unsigned char *) |
| 26987 | "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73" |
| 26988 | "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10" |
| 26989 | "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd", |
| 26990 | .addtlb = (unsigned char *) |
| 26991 | "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0" |
| 26992 | "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d" |
| 26993 | "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40", |
| 26994 | .addtllen = 32, |
| 26995 | .pers = NULL, |
| 26996 | .perslen = 0, |
| 26997 | }, { |
| 26998 | .entropy = (unsigned char *) |
| 26999 | "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb" |
| 27000 | "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4" |
| 27001 | "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1" |
| 27002 | "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa", |
| 27003 | .entropylen = 48, |
| 27004 | .expected = (unsigned char *) |
| 27005 | "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28" |
| 27006 | "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b" |
| 27007 | "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46" |
| 27008 | "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6" |
| 27009 | "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72" |
| 27010 | "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1" |
| 27011 | "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77" |
| 27012 | "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9" |
| 27013 | "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e" |
| 27014 | "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16" |
| 27015 | "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6", |
| 27016 | .expectedlen = 128, |
| 27017 | .addtla = NULL, |
| 27018 | .addtlb = NULL, |
| 27019 | .addtllen = 0, |
| 27020 | .pers = (unsigned char *) |
| 27021 | "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1" |
| 27022 | "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda" |
| 27023 | "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc", |
| 27024 | .perslen = 32, |
| 27025 | }, { |
| 27026 | .entropy = (unsigned char *) |
| 27027 | "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a" |
| 27028 | "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74" |
| 27029 | "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc" |
| 27030 | "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a", |
| 27031 | .entropylen = 48, |
| 27032 | .expected = (unsigned char *) |
| 27033 | "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb" |
| 27034 | "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13" |
| 27035 | "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6" |
| 27036 | "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36" |
| 27037 | "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64" |
| 27038 | "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea" |
| 27039 | "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95" |
| 27040 | "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e" |
| 27041 | "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd" |
| 27042 | "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06" |
| 27043 | "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1", |
| 27044 | .expectedlen = 128, |
| 27045 | .addtla = (unsigned char *) |
| 27046 | "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2" |
| 27047 | "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e" |
| 27048 | "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78", |
| 27049 | .addtlb = (unsigned char *) |
| 27050 | "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a" |
| 27051 | "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b" |
| 27052 | "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21", |
| 27053 | .addtllen = 32, |
| 27054 | .pers = (unsigned char *) |
| 27055 | "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20" |
| 27056 | "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73" |
| 27057 | "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c", |
| 27058 | .perslen = 32, |
| 27059 | }, |
| 27060 | }; |
| 27061 | |
| 27062 | static struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = { |
| 27063 | { |
| 27064 | .entropy = (unsigned char *) |
| 27065 | "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c" |
| 27066 | "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e" |
| 27067 | "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c" |
| 27068 | "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8", |
| 27069 | .entropylen = 48, |
| 27070 | .expected = (unsigned char *) |
| 27071 | "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75" |
| 27072 | "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6" |
| 27073 | "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97" |
| 27074 | "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60" |
| 27075 | "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf" |
| 27076 | "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99" |
| 27077 | "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19" |
| 27078 | "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68" |
| 27079 | "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0" |
| 27080 | "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd" |
| 27081 | "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8", |
| 27082 | .expectedlen = 128, |
| 27083 | .addtla = NULL, |
| 27084 | .addtlb = NULL, |
| 27085 | .addtllen = 0, |
| 27086 | .pers = NULL, |
| 27087 | .perslen = 0, |
| 27088 | }, { |
| 27089 | .entropy = (unsigned char *) |
| 27090 | "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94" |
| 27091 | "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15" |
| 27092 | "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4" |
| 27093 | "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed", |
| 27094 | .entropylen = 48, |
| 27095 | .expected = (unsigned char *) |
| 27096 | "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5" |
| 27097 | "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf" |
| 27098 | "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d" |
| 27099 | "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6" |
| 27100 | "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16" |
| 27101 | "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62" |
| 27102 | "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d" |
| 27103 | "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4" |
| 27104 | "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec" |
| 27105 | "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f" |
| 27106 | "\x50\x9a\x8c\x85\x90\x87\x03\x9c", |
| 27107 | .expectedlen = 128, |
| 27108 | .addtla = (unsigned char *) |
| 27109 | "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d" |
| 27110 | "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf" |
| 27111 | "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b", |
| 27112 | .addtlb = (unsigned char *) |
| 27113 | "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9" |
| 27114 | "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14" |
| 27115 | "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0", |
| 27116 | .addtllen = 32, |
| 27117 | .pers = NULL, |
| 27118 | .perslen = 0, |
| 27119 | }, { |
| 27120 | .entropy = (unsigned char *) |
| 27121 | "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf" |
| 27122 | "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54" |
| 27123 | "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf" |
| 27124 | "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e", |
| 27125 | .entropylen = 48, |
| 27126 | .expected = (unsigned char *) |
| 27127 | "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81" |
| 27128 | "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37" |
| 27129 | "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10" |
| 27130 | "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61" |
| 27131 | "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28" |
| 27132 | "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f" |
| 27133 | "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07" |
| 27134 | "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66" |
| 27135 | "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2" |
| 27136 | "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29" |
| 27137 | "\x10\x37\x41\x03\x0c\xcc\x3a\x56", |
| 27138 | .expectedlen = 128, |
| 27139 | .addtla = NULL, |
| 27140 | .addtlb = NULL, |
| 27141 | .addtllen = 0, |
| 27142 | .pers = (unsigned char *) |
| 27143 | "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37" |
| 27144 | "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58" |
| 27145 | "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9", |
| 27146 | .perslen = 32, |
| 27147 | }, { |
| 27148 | .entropy = (unsigned char *) |
| 27149 | "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78" |
| 27150 | "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11" |
| 27151 | "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb" |
| 27152 | "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec", |
| 27153 | .entropylen = 48, |
| 27154 | .expected = (unsigned char *) |
| 27155 | "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0" |
| 27156 | "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37" |
| 27157 | "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae" |
| 27158 | "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0" |
| 27159 | "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad" |
| 27160 | "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82" |
| 27161 | "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7" |
| 27162 | "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4" |
| 27163 | "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49" |
| 27164 | "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30" |
| 27165 | "\x35\x24\xcc\x9c\xc5\xea\x54\xa1", |
| 27166 | .expectedlen = 128, |
| 27167 | .addtla = (unsigned char *) |
| 27168 | "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96" |
| 27169 | "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62" |
| 27170 | "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b", |
| 27171 | .addtlb = (unsigned char *) |
| 27172 | "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2" |
| 27173 | "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25" |
| 27174 | "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1", |
| 27175 | .addtllen = 32, |
| 27176 | .pers = (unsigned char *) |
| 27177 | "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8" |
| 27178 | "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15" |
| 27179 | "\x36\x60\x3b\xca\x37\xc9\xee\x29", |
| 27180 | .perslen = 32, |
| 27181 | }, |
| 27182 | }; |
| 27183 | |
| 27184 | static struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = { |
| 27185 | { |
| 27186 | .entropy = (unsigned char *) |
| 27187 | "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9" |
| 27188 | "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40" |
| 27189 | "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9" |
| 27190 | "\xac\x9b\xbb\x00", |
| 27191 | .entropylen = 40, |
| 27192 | .expected = (unsigned char *) |
| 27193 | "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17" |
| 27194 | "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33" |
| 27195 | "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48" |
| 27196 | "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79" |
| 27197 | "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf" |
| 27198 | "\x9a\x9d\xf1\x0d", |
| 27199 | .expectedlen = 64, |
| 27200 | .addtla = NULL, |
| 27201 | .addtlb = NULL, |
| 27202 | .addtllen = 0, |
| 27203 | .pers = NULL, |
| 27204 | .perslen = 0, |
| 27205 | }, |
| 27206 | }; |
| 27207 | |
| 27208 | static struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = { |
| 27209 | { |
| 27210 | .entropy = (unsigned char *) |
| 27211 | "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f" |
| 27212 | "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec" |
| 27213 | "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0" |
| 27214 | "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb", |
| 27215 | .entropylen = 48, |
| 27216 | .expected = (unsigned char *) |
| 27217 | "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6" |
| 27218 | "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3" |
| 27219 | "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf" |
| 27220 | "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16" |
| 27221 | "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f" |
| 27222 | "\xb4\xf0\x7e\x1d", |
| 27223 | .expectedlen = 64, |
| 27224 | .addtla = NULL, |
| 27225 | .addtlb = NULL, |
| 27226 | .addtllen = 0, |
| 27227 | .pers = NULL, |
| 27228 | .perslen = 0, |
| 27229 | }, |
| 27230 | }; |
| 27231 | |
| 27232 | static struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = { |
| 27233 | { |
| 27234 | .entropy = (unsigned char *) |
| 27235 | "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8" |
| 27236 | "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f", |
| 27237 | .entropylen = 24, |
| 27238 | .expected = (unsigned char *) |
| 27239 | "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1" |
| 27240 | "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a" |
| 27241 | "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3" |
| 27242 | "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e" |
| 27243 | "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8" |
| 27244 | "\xcb\x2d\xd6\xb0", |
| 27245 | .expectedlen = 64, |
| 27246 | .addtla = NULL, |
| 27247 | .addtlb = NULL, |
| 27248 | .addtllen = 0, |
| 27249 | .pers = NULL, |
| 27250 | .perslen = 0, |
| 27251 | }, { |
| 27252 | .entropy = (unsigned char *) |
| 27253 | "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74" |
| 27254 | "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd", |
| 27255 | .entropylen = 24, |
| 27256 | .expected = (unsigned char *) |
| 27257 | "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34" |
| 27258 | "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21" |
| 27259 | "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e" |
| 27260 | "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1" |
| 27261 | "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc" |
| 27262 | "\xc3\xdf\xb3\x81", |
| 27263 | .expectedlen = 64, |
| 27264 | .addtla = (unsigned char *) |
| 27265 | "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6" |
| 27266 | "\x91\x4d\x81\x56", |
| 27267 | .addtlb = (unsigned char *) |
| 27268 | "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb" |
| 27269 | "\x4a\x55\xd1\xc6", |
| 27270 | .addtllen = 16, |
| 27271 | .pers = NULL, |
| 27272 | .perslen = 0, |
| 27273 | }, { |
| 27274 | .entropy = (unsigned char *) |
| 27275 | "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9" |
| 27276 | "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9", |
| 27277 | .entropylen = 24, |
| 27278 | .expected = (unsigned char *) |
| 27279 | "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e" |
| 27280 | "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75" |
| 27281 | "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee" |
| 27282 | "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb" |
| 27283 | "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45" |
| 27284 | "\x34\x30\x0c\x3d", |
| 27285 | .expectedlen = 64, |
| 27286 | .addtla = NULL, |
| 27287 | .addtlb = NULL, |
| 27288 | .addtllen = 0, |
| 27289 | .pers = (unsigned char *) |
| 27290 | "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a" |
| 27291 | "\x0b\xc6\x97\x54", |
| 27292 | .perslen = 16, |
| 27293 | }, { |
| 27294 | .entropy = (unsigned char *) |
| 27295 | "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98" |
| 27296 | "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6", |
| 27297 | .entropylen = 24, |
| 27298 | .expected = (unsigned char *) |
| 27299 | "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a" |
| 27300 | "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95" |
| 27301 | "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f" |
| 27302 | "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a" |
| 27303 | "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a" |
| 27304 | "\x2b\x49\x1e\x5c", |
| 27305 | .expectedlen = 64, |
| 27306 | .addtla = (unsigned char *) |
| 27307 | "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2" |
| 27308 | "\x44\x85\xe7\xfe", |
| 27309 | .addtlb = (unsigned char *) |
| 27310 | "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4" |
| 27311 | "\x82\x16\x62\x7f", |
| 27312 | .addtllen = 16, |
| 27313 | .pers = (unsigned char *) |
| 27314 | "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f" |
| 27315 | "\x8e\xcf\xe0\x02", |
| 27316 | .perslen = 16, |
| 27317 | }, |
| 27318 | }; |
| 27319 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27320 | /* Cast5 test vectors from RFC 2144 */ |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 27321 | #define CAST5_ENC_TEST_VECTORS 4 |
| 27322 | #define CAST5_DEC_TEST_VECTORS 4 |
| 27323 | #define CAST5_CBC_ENC_TEST_VECTORS 1 |
| 27324 | #define CAST5_CBC_DEC_TEST_VECTORS 1 |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 27325 | #define CAST5_CTR_ENC_TEST_VECTORS 2 |
| 27326 | #define CAST5_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27327 | |
| 27328 | static struct cipher_testvec cast5_enc_tv_template[] = { |
| 27329 | { |
| 27330 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 27331 | "\x23\x45\x67\x89\x34\x56\x78\x9a", |
| 27332 | .klen = 16, |
| 27333 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 27334 | .ilen = 8, |
| 27335 | .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", |
| 27336 | .rlen = 8, |
| 27337 | }, { |
| 27338 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 27339 | "\x23\x45", |
| 27340 | .klen = 10, |
| 27341 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 27342 | .ilen = 8, |
| 27343 | .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", |
| 27344 | .rlen = 8, |
| 27345 | }, { |
| 27346 | .key = "\x01\x23\x45\x67\x12", |
| 27347 | .klen = 5, |
| 27348 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 27349 | .ilen = 8, |
| 27350 | .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", |
| 27351 | .rlen = 8, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 27352 | }, { /* Generated from TF test vectors */ |
| 27353 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27354 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 27355 | .klen = 16, |
| 27356 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 27357 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27358 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 27359 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27360 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27361 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 27362 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 27363 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27364 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27365 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27366 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27367 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27368 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27369 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27370 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27371 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27372 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27373 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27374 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27375 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27376 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27377 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27378 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27379 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27380 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27381 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27382 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27383 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27384 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27385 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27386 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27387 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27388 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27389 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27390 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27391 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27392 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27393 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27394 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27395 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27396 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27397 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27398 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27399 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27400 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27401 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27402 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27403 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27404 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27405 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27406 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27407 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27408 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27409 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27410 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27411 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 27412 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 27413 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 27414 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 27415 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 27416 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 27417 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 27418 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 27419 | .ilen = 496, |
| 27420 | .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C" |
| 27421 | "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA" |
| 27422 | "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E" |
| 27423 | "\xD1\x39\x34\x92\x8F\xFA\x14\xF1" |
| 27424 | "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2" |
| 27425 | "\x20\xD9\x42\x06\xC9\x0B\x10\x04" |
| 27426 | "\xF8\x79\xCD\x32\x86\x75\x4C\xB6" |
| 27427 | "\x7B\x1C\x52\xB1\x91\x64\x22\x4B" |
| 27428 | "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F" |
| 27429 | "\x3F\xF4\x43\x96\x73\x0D\xA2\x05" |
| 27430 | "\xDB\xFD\x28\x90\x2C\x56\xB9\x37" |
| 27431 | "\x5B\x69\x0C\xAD\x84\x67\xFF\x15" |
| 27432 | "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A" |
| 27433 | "\xED\x34\x35\x78\x6B\x91\xC9\x32" |
| 27434 | "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39" |
| 27435 | "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2" |
| 27436 | "\x1C\xFD\x0E\x05\x07\xF4\x10\xED" |
| 27437 | "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22" |
| 27438 | "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9" |
| 27439 | "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77" |
| 27440 | "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC" |
| 27441 | "\xBA\x5C\x80\xD1\x91\x65\x51\x1B" |
| 27442 | "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6" |
| 27443 | "\x78\x75\x37\x55\xC1\xF5\x90\x40" |
| 27444 | "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E" |
| 27445 | "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E" |
| 27446 | "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD" |
| 27447 | "\xE0\x69\x77\x50\xC7\x0C\x99\xCA" |
| 27448 | "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C" |
| 27449 | "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9" |
| 27450 | "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48" |
| 27451 | "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9" |
| 27452 | "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6" |
| 27453 | "\x55\xF4\x06\xBB\x49\x53\x8B\x1B" |
| 27454 | "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC" |
| 27455 | "\x93\x85\x90\x0F\x0A\x68\x40\x2A" |
| 27456 | "\x95\xED\x2D\x88\xBF\x71\xD0\xBB" |
| 27457 | "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05" |
| 27458 | "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2" |
| 27459 | "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8" |
| 27460 | "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF" |
| 27461 | "\xDD\x70\x37\x63\xAA\xA5\x83\x20" |
| 27462 | "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6" |
| 27463 | "\x79\x03\xA0\xDA\xA3\x79\x21\xBD" |
| 27464 | "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE" |
| 27465 | "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06" |
| 27466 | "\xBB\xE3\xAB\x06\x21\x82\xB8\x32" |
| 27467 | "\x31\x34\x2A\xA7\x1F\x64\x99\xBF" |
| 27468 | "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48" |
| 27469 | "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59" |
| 27470 | "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF" |
| 27471 | "\xF0\x40\x5F\xCF\xE3\x58\x52\x67" |
| 27472 | "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F" |
| 27473 | "\x58\x56\xDD\x94\x1F\x71\x8D\xF4" |
| 27474 | "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF" |
| 27475 | "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57" |
| 27476 | "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84" |
| 27477 | "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37" |
| 27478 | "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33" |
| 27479 | "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE" |
| 27480 | "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57" |
| 27481 | "\xF5\xBC\x25\xD6\x02\x56\x57\x1C", |
| 27482 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 27483 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 27484 | .np = 3, |
| 27485 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27486 | }, |
| 27487 | }; |
| 27488 | |
| 27489 | static struct cipher_testvec cast5_dec_tv_template[] = { |
| 27490 | { |
| 27491 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 27492 | "\x23\x45\x67\x89\x34\x56\x78\x9a", |
| 27493 | .klen = 16, |
| 27494 | .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", |
| 27495 | .ilen = 8, |
| 27496 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 27497 | .rlen = 8, |
| 27498 | }, { |
| 27499 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 27500 | "\x23\x45", |
| 27501 | .klen = 10, |
| 27502 | .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", |
| 27503 | .ilen = 8, |
| 27504 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 27505 | .rlen = 8, |
| 27506 | }, { |
| 27507 | .key = "\x01\x23\x45\x67\x12", |
| 27508 | .klen = 5, |
| 27509 | .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", |
| 27510 | .ilen = 8, |
| 27511 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 27512 | .rlen = 8, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 27513 | }, { /* Generated from TF test vectors */ |
| 27514 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27515 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 27516 | .klen = 16, |
| 27517 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 27518 | .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C" |
| 27519 | "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA" |
| 27520 | "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E" |
| 27521 | "\xD1\x39\x34\x92\x8F\xFA\x14\xF1" |
| 27522 | "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2" |
| 27523 | "\x20\xD9\x42\x06\xC9\x0B\x10\x04" |
| 27524 | "\xF8\x79\xCD\x32\x86\x75\x4C\xB6" |
| 27525 | "\x7B\x1C\x52\xB1\x91\x64\x22\x4B" |
| 27526 | "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F" |
| 27527 | "\x3F\xF4\x43\x96\x73\x0D\xA2\x05" |
| 27528 | "\xDB\xFD\x28\x90\x2C\x56\xB9\x37" |
| 27529 | "\x5B\x69\x0C\xAD\x84\x67\xFF\x15" |
| 27530 | "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A" |
| 27531 | "\xED\x34\x35\x78\x6B\x91\xC9\x32" |
| 27532 | "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39" |
| 27533 | "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2" |
| 27534 | "\x1C\xFD\x0E\x05\x07\xF4\x10\xED" |
| 27535 | "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22" |
| 27536 | "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9" |
| 27537 | "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77" |
| 27538 | "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC" |
| 27539 | "\xBA\x5C\x80\xD1\x91\x65\x51\x1B" |
| 27540 | "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6" |
| 27541 | "\x78\x75\x37\x55\xC1\xF5\x90\x40" |
| 27542 | "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E" |
| 27543 | "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E" |
| 27544 | "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD" |
| 27545 | "\xE0\x69\x77\x50\xC7\x0C\x99\xCA" |
| 27546 | "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C" |
| 27547 | "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9" |
| 27548 | "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48" |
| 27549 | "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9" |
| 27550 | "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6" |
| 27551 | "\x55\xF4\x06\xBB\x49\x53\x8B\x1B" |
| 27552 | "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC" |
| 27553 | "\x93\x85\x90\x0F\x0A\x68\x40\x2A" |
| 27554 | "\x95\xED\x2D\x88\xBF\x71\xD0\xBB" |
| 27555 | "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05" |
| 27556 | "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2" |
| 27557 | "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8" |
| 27558 | "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF" |
| 27559 | "\xDD\x70\x37\x63\xAA\xA5\x83\x20" |
| 27560 | "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6" |
| 27561 | "\x79\x03\xA0\xDA\xA3\x79\x21\xBD" |
| 27562 | "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE" |
| 27563 | "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06" |
| 27564 | "\xBB\xE3\xAB\x06\x21\x82\xB8\x32" |
| 27565 | "\x31\x34\x2A\xA7\x1F\x64\x99\xBF" |
| 27566 | "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48" |
| 27567 | "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59" |
| 27568 | "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF" |
| 27569 | "\xF0\x40\x5F\xCF\xE3\x58\x52\x67" |
| 27570 | "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F" |
| 27571 | "\x58\x56\xDD\x94\x1F\x71\x8D\xF4" |
| 27572 | "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF" |
| 27573 | "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57" |
| 27574 | "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84" |
| 27575 | "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37" |
| 27576 | "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33" |
| 27577 | "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE" |
| 27578 | "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57" |
| 27579 | "\xF5\xBC\x25\xD6\x02\x56\x57\x1C", |
| 27580 | .ilen = 496, |
| 27581 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27582 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 27583 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27584 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27585 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 27586 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 27587 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27588 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27589 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27590 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27591 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27592 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27593 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27594 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27595 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27596 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27597 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27598 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27599 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27600 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27601 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27602 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27603 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27604 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27605 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27606 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27607 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27608 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27609 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27610 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27611 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27612 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27613 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27614 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27615 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27616 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27617 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27618 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27619 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27620 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27621 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27622 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27623 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27624 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27625 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27626 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27627 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27628 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27629 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27630 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27631 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27632 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27633 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27634 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27635 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 27636 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 27637 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 27638 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 27639 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 27640 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 27641 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 27642 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 27643 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 27644 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 27645 | .np = 3, |
| 27646 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 27647 | }, |
| 27648 | }; |
| 27649 | |
| 27650 | static struct cipher_testvec cast5_cbc_enc_tv_template[] = { |
| 27651 | { /* Generated from TF test vectors */ |
| 27652 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27653 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 27654 | .klen = 16, |
| 27655 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 27656 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27657 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 27658 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27659 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27660 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 27661 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 27662 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27663 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27664 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27665 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27666 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27667 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27668 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27669 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27670 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27671 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27672 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27673 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27674 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27675 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27676 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27677 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27678 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27679 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27680 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27681 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27682 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27683 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27684 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27685 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27686 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27687 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27688 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27689 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27690 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27691 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27692 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27693 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27694 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27695 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27696 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27697 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27698 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27699 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27700 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27701 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27702 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27703 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27704 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27705 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27706 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27707 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27708 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27709 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27710 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 27711 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 27712 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 27713 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 27714 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 27715 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 27716 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 27717 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 27718 | .ilen = 496, |
| 27719 | .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78" |
| 27720 | "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A" |
| 27721 | "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB" |
| 27722 | "\xDA\xF0\x6E\x77\x14\x47\x82\xBA" |
| 27723 | "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F" |
| 27724 | "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39" |
| 27725 | "\xA7\xFB\x0D\x05\x00\xF3\x58\x67" |
| 27726 | "\x60\xEC\x73\x77\x46\x85\x9B\x6A" |
| 27727 | "\x08\x3E\xBE\x59\xFB\xE4\x96\x34" |
| 27728 | "\xB4\x05\x49\x1A\x97\x43\xAD\xA0" |
| 27729 | "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8" |
| 27730 | "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA" |
| 27731 | "\xA7\xF1\x33\x67\x90\x23\x0D\xEE" |
| 27732 | "\x81\xD5\x78\x4F\xD3\x63\xEA\x46" |
| 27733 | "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10" |
| 27734 | "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D" |
| 27735 | "\x36\x7C\x56\x14\x54\x83\xFA\xA1" |
| 27736 | "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6" |
| 27737 | "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8" |
| 27738 | "\xA7\xD9\x67\x92\x5C\x13\xB4\x71" |
| 27739 | "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C" |
| 27740 | "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37" |
| 27741 | "\xC8\x52\x60\xD9\xE7\xCA\x60\x98" |
| 27742 | "\xED\xCD\xE8\x60\x83\xAD\x34\x4D" |
| 27743 | "\x96\x4A\x99\x2B\xB7\x14\x75\x66" |
| 27744 | "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56" |
| 27745 | "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3" |
| 27746 | "\x18\x38\x09\x9C\x0E\x8B\x86\x07" |
| 27747 | "\x90\x12\x37\x49\x27\x98\x69\x18" |
| 27748 | "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85" |
| 27749 | "\x4B\x22\x97\x07\xB6\x97\xE9\x95" |
| 27750 | "\x0F\x88\x36\xA9\x44\x00\xC6\xE9" |
| 27751 | "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE" |
| 27752 | "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49" |
| 27753 | "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97" |
| 27754 | "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE" |
| 27755 | "\x03\x55\x0E\x02\x41\x4A\x45\x06" |
| 27756 | "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20" |
| 27757 | "\x94\x02\x30\xD2\xFC\x29\xFA\x8E" |
| 27758 | "\x34\xA0\x31\xB8\x34\xBA\xAE\x54" |
| 27759 | "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F" |
| 27760 | "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A" |
| 27761 | "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3" |
| 27762 | "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A" |
| 27763 | "\xB6\x37\x21\x19\x55\xC2\xBD\x99" |
| 27764 | "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2" |
| 27765 | "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2" |
| 27766 | "\x11\xB4\x18\x17\x1A\x65\x92\x56" |
| 27767 | "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1" |
| 27768 | "\x1A\x01\x22\x45\x17\x62\x52\x6C" |
| 27769 | "\x91\x44\xCF\x98\xC7\xC0\x79\x26" |
| 27770 | "\x32\x66\x6F\x23\x7F\x94\x36\x88" |
| 27771 | "\x3C\xC9\xD0\xB7\x45\x30\x31\x86" |
| 27772 | "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B" |
| 27773 | "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86" |
| 27774 | "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA" |
| 27775 | "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9" |
| 27776 | "\x7C\xEF\x53\xB7\x60\x72\x41\xBF" |
| 27777 | "\x29\x00\x87\x02\xAF\x44\x4C\xB7" |
| 27778 | "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7" |
| 27779 | "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6" |
| 27780 | "\x1D\x18\x66\x44\x5B\x8F\x14\xEB", |
| 27781 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 27782 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 27783 | .np = 3, |
| 27784 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 27785 | }, |
| 27786 | }; |
| 27787 | |
| 27788 | static struct cipher_testvec cast5_cbc_dec_tv_template[] = { |
| 27789 | { /* Generated from TF test vectors */ |
| 27790 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27791 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 27792 | .klen = 16, |
| 27793 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 27794 | .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78" |
| 27795 | "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A" |
| 27796 | "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB" |
| 27797 | "\xDA\xF0\x6E\x77\x14\x47\x82\xBA" |
| 27798 | "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F" |
| 27799 | "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39" |
| 27800 | "\xA7\xFB\x0D\x05\x00\xF3\x58\x67" |
| 27801 | "\x60\xEC\x73\x77\x46\x85\x9B\x6A" |
| 27802 | "\x08\x3E\xBE\x59\xFB\xE4\x96\x34" |
| 27803 | "\xB4\x05\x49\x1A\x97\x43\xAD\xA0" |
| 27804 | "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8" |
| 27805 | "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA" |
| 27806 | "\xA7\xF1\x33\x67\x90\x23\x0D\xEE" |
| 27807 | "\x81\xD5\x78\x4F\xD3\x63\xEA\x46" |
| 27808 | "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10" |
| 27809 | "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D" |
| 27810 | "\x36\x7C\x56\x14\x54\x83\xFA\xA1" |
| 27811 | "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6" |
| 27812 | "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8" |
| 27813 | "\xA7\xD9\x67\x92\x5C\x13\xB4\x71" |
| 27814 | "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C" |
| 27815 | "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37" |
| 27816 | "\xC8\x52\x60\xD9\xE7\xCA\x60\x98" |
| 27817 | "\xED\xCD\xE8\x60\x83\xAD\x34\x4D" |
| 27818 | "\x96\x4A\x99\x2B\xB7\x14\x75\x66" |
| 27819 | "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56" |
| 27820 | "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3" |
| 27821 | "\x18\x38\x09\x9C\x0E\x8B\x86\x07" |
| 27822 | "\x90\x12\x37\x49\x27\x98\x69\x18" |
| 27823 | "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85" |
| 27824 | "\x4B\x22\x97\x07\xB6\x97\xE9\x95" |
| 27825 | "\x0F\x88\x36\xA9\x44\x00\xC6\xE9" |
| 27826 | "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE" |
| 27827 | "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49" |
| 27828 | "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97" |
| 27829 | "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE" |
| 27830 | "\x03\x55\x0E\x02\x41\x4A\x45\x06" |
| 27831 | "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20" |
| 27832 | "\x94\x02\x30\xD2\xFC\x29\xFA\x8E" |
| 27833 | "\x34\xA0\x31\xB8\x34\xBA\xAE\x54" |
| 27834 | "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F" |
| 27835 | "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A" |
| 27836 | "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3" |
| 27837 | "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A" |
| 27838 | "\xB6\x37\x21\x19\x55\xC2\xBD\x99" |
| 27839 | "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2" |
| 27840 | "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2" |
| 27841 | "\x11\xB4\x18\x17\x1A\x65\x92\x56" |
| 27842 | "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1" |
| 27843 | "\x1A\x01\x22\x45\x17\x62\x52\x6C" |
| 27844 | "\x91\x44\xCF\x98\xC7\xC0\x79\x26" |
| 27845 | "\x32\x66\x6F\x23\x7F\x94\x36\x88" |
| 27846 | "\x3C\xC9\xD0\xB7\x45\x30\x31\x86" |
| 27847 | "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B" |
| 27848 | "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86" |
| 27849 | "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA" |
| 27850 | "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9" |
| 27851 | "\x7C\xEF\x53\xB7\x60\x72\x41\xBF" |
| 27852 | "\x29\x00\x87\x02\xAF\x44\x4C\xB7" |
| 27853 | "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7" |
| 27854 | "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6" |
| 27855 | "\x1D\x18\x66\x44\x5B\x8F\x14\xEB", |
| 27856 | .ilen = 496, |
| 27857 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27858 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 27859 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27860 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27861 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 27862 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 27863 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27864 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27865 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27866 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27867 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27868 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27869 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27870 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27871 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27872 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27873 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27874 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27875 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27876 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27877 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27878 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27879 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27880 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27881 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27882 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27883 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27884 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27885 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27886 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27887 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27888 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27889 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27890 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27891 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27892 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27893 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27894 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27895 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27896 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27897 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27898 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27899 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27900 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27901 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27902 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27903 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27904 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27905 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27906 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27907 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27908 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27909 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27910 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27911 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 27912 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 27913 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 27914 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 27915 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 27916 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 27917 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 27918 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 27919 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 27920 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 27921 | .np = 3, |
| 27922 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 27923 | }, |
| 27924 | }; |
| 27925 | |
| 27926 | static struct cipher_testvec cast5_ctr_enc_tv_template[] = { |
| 27927 | { /* Generated from TF test vectors */ |
| 27928 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27929 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 27930 | .klen = 16, |
| 27931 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 27932 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27933 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 27934 | "\x3A", |
| 27935 | .ilen = 17, |
| 27936 | .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 27937 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
| 27938 | "\x0C", |
| 27939 | .rlen = 17, |
| 27940 | }, { /* Generated from TF test vectors */ |
| 27941 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27942 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 27943 | .klen = 16, |
| 27944 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 27945 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27946 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 27947 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27948 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27949 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 27950 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 27951 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27952 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27953 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27954 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27955 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27956 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27957 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27958 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27959 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27960 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27961 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27962 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27963 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27964 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27965 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27966 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27967 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27968 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27969 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27970 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27971 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27972 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27973 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27974 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27975 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27976 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27977 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27978 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27979 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27980 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27981 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27982 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27983 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27984 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27985 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27986 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27987 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27988 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27989 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27990 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27991 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27992 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27993 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27994 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27995 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27996 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27997 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27998 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27999 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 28000 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 28001 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 28002 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 28003 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 28004 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 28005 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 28006 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 28007 | .ilen = 496, |
| 28008 | .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 28009 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
| 28010 | "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F" |
| 28011 | "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF" |
| 28012 | "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44" |
| 28013 | "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C" |
| 28014 | "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF" |
| 28015 | "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B" |
| 28016 | "\x64\xB0\x7B\x86\x29\x1D\x9F\x17" |
| 28017 | "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3" |
| 28018 | "\x88\x18\x52\x56\x48\x58\xD1\x6B" |
| 28019 | "\xE8\x74\x6E\x48\xB0\x2E\x69\x63" |
| 28020 | "\x32\xAA\xAC\x26\x55\x45\x94\xDE" |
| 28021 | "\x30\x26\x26\xE6\x08\x82\x2F\x5F" |
| 28022 | "\xA7\x15\x94\x07\x75\x2D\xC6\x3A" |
| 28023 | "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56" |
| 28024 | "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B" |
| 28025 | "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7" |
| 28026 | "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5" |
| 28027 | "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F" |
| 28028 | "\x3B\x29\xF9\xB4\x32\x62\x69\xBF" |
| 28029 | "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3" |
| 28030 | "\x44\x67\x90\x20\xAC\x41\xDF\x43" |
| 28031 | "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB" |
| 28032 | "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60" |
| 28033 | "\xC7\xC9\x71\x34\x44\xCE\x05\xFD" |
| 28034 | "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C" |
| 28035 | "\xAE\x59\x0F\x07\x88\x79\x53\x26" |
| 28036 | "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62" |
| 28037 | "\xD0\x82\x65\x66\xE4\x2A\x29\x1C" |
| 28038 | "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9" |
| 28039 | "\xED\xC4\x13\x52\x75\xDC\xE4\xF9" |
| 28040 | "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA" |
| 28041 | "\x49\xA1\x86\x86\x37\x5C\x6B\x3D" |
| 28042 | "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8" |
| 28043 | "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0" |
| 28044 | "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2" |
| 28045 | "\x23\xD3\xC7\x27\x15\x04\x2C\x27" |
| 28046 | "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D" |
| 28047 | "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14" |
| 28048 | "\x4B\x78\xC4\xDE\x07\x6A\x12\x02" |
| 28049 | "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02" |
| 28050 | "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18" |
| 28051 | "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06" |
| 28052 | "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E" |
| 28053 | "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66" |
| 28054 | "\x16\xB5\xC8\x45\x21\x37\xBD\x24" |
| 28055 | "\xA9\xD5\x36\x12\x9F\x6E\x67\x80" |
| 28056 | "\x87\x54\xD5\xAF\x97\xE1\x15\xA7" |
| 28057 | "\x11\xF0\x63\x7B\xE1\x44\x14\x1C" |
| 28058 | "\x06\x32\x05\x8C\x6C\xDB\x9B\x36" |
| 28059 | "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C" |
| 28060 | "\x76\x36\x43\xE8\x16\x60\xB5\xF3" |
| 28061 | "\xDF\x5A\xC6\xA5\x69\x78\x59\x51" |
| 28062 | "\x54\x68\x65\x06\x84\xDE\x3D\xAE" |
| 28063 | "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6" |
| 28064 | "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE" |
| 28065 | "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B" |
| 28066 | "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1" |
| 28067 | "\x91\x01\xD7\x21\x23\x28\x1E\xCC" |
| 28068 | "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA" |
| 28069 | "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13", |
| 28070 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 28071 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 28072 | .np = 3, |
| 28073 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 28074 | }, |
| 28075 | }; |
| 28076 | |
| 28077 | static struct cipher_testvec cast5_ctr_dec_tv_template[] = { |
| 28078 | { /* Generated from TF test vectors */ |
| 28079 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 28080 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 28081 | .klen = 16, |
| 28082 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 28083 | .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 28084 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 28085 | "\x0C", |
| 28086 | .ilen = 17, |
| 28087 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 28088 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 28089 | "\x3A", |
| 28090 | .rlen = 17, |
| 28091 | }, { /* Generated from TF test vectors */ |
| 28092 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 28093 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 28094 | .klen = 16, |
| 28095 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 28096 | .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 28097 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 28098 | "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F" |
| 28099 | "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF" |
| 28100 | "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44" |
| 28101 | "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C" |
| 28102 | "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF" |
| 28103 | "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B" |
| 28104 | "\x64\xB0\x7B\x86\x29\x1D\x9F\x17" |
| 28105 | "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3" |
| 28106 | "\x88\x18\x52\x56\x48\x58\xD1\x6B" |
| 28107 | "\xE8\x74\x6E\x48\xB0\x2E\x69\x63" |
| 28108 | "\x32\xAA\xAC\x26\x55\x45\x94\xDE" |
| 28109 | "\x30\x26\x26\xE6\x08\x82\x2F\x5F" |
| 28110 | "\xA7\x15\x94\x07\x75\x2D\xC6\x3A" |
| 28111 | "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56" |
| 28112 | "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B" |
| 28113 | "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7" |
| 28114 | "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5" |
| 28115 | "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F" |
| 28116 | "\x3B\x29\xF9\xB4\x32\x62\x69\xBF" |
| 28117 | "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3" |
| 28118 | "\x44\x67\x90\x20\xAC\x41\xDF\x43" |
| 28119 | "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB" |
| 28120 | "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60" |
| 28121 | "\xC7\xC9\x71\x34\x44\xCE\x05\xFD" |
| 28122 | "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C" |
| 28123 | "\xAE\x59\x0F\x07\x88\x79\x53\x26" |
| 28124 | "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62" |
| 28125 | "\xD0\x82\x65\x66\xE4\x2A\x29\x1C" |
| 28126 | "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9" |
| 28127 | "\xED\xC4\x13\x52\x75\xDC\xE4\xF9" |
| 28128 | "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA" |
| 28129 | "\x49\xA1\x86\x86\x37\x5C\x6B\x3D" |
| 28130 | "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8" |
| 28131 | "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0" |
| 28132 | "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2" |
| 28133 | "\x23\xD3\xC7\x27\x15\x04\x2C\x27" |
| 28134 | "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D" |
| 28135 | "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14" |
| 28136 | "\x4B\x78\xC4\xDE\x07\x6A\x12\x02" |
| 28137 | "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02" |
| 28138 | "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18" |
| 28139 | "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06" |
| 28140 | "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E" |
| 28141 | "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66" |
| 28142 | "\x16\xB5\xC8\x45\x21\x37\xBD\x24" |
| 28143 | "\xA9\xD5\x36\x12\x9F\x6E\x67\x80" |
| 28144 | "\x87\x54\xD5\xAF\x97\xE1\x15\xA7" |
| 28145 | "\x11\xF0\x63\x7B\xE1\x44\x14\x1C" |
| 28146 | "\x06\x32\x05\x8C\x6C\xDB\x9B\x36" |
| 28147 | "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C" |
| 28148 | "\x76\x36\x43\xE8\x16\x60\xB5\xF3" |
| 28149 | "\xDF\x5A\xC6\xA5\x69\x78\x59\x51" |
| 28150 | "\x54\x68\x65\x06\x84\xDE\x3D\xAE" |
| 28151 | "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6" |
| 28152 | "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE" |
| 28153 | "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B" |
| 28154 | "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1" |
| 28155 | "\x91\x01\xD7\x21\x23\x28\x1E\xCC" |
| 28156 | "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA" |
| 28157 | "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13", |
| 28158 | .ilen = 496, |
| 28159 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 28160 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 28161 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 28162 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 28163 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 28164 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 28165 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 28166 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 28167 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 28168 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 28169 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 28170 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 28171 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 28172 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 28173 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 28174 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 28175 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 28176 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 28177 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 28178 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 28179 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 28180 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 28181 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 28182 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 28183 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 28184 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 28185 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 28186 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 28187 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 28188 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 28189 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 28190 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 28191 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 28192 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 28193 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 28194 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 28195 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 28196 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 28197 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 28198 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 28199 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 28200 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 28201 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 28202 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 28203 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 28204 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 28205 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 28206 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 28207 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 28208 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 28209 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 28210 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 28211 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 28212 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 28213 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 28214 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 28215 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 28216 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 28217 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 28218 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 28219 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 28220 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 28221 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 28222 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 28223 | .np = 3, |
| 28224 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 28225 | }, |
| 28226 | }; |
| 28227 | |
| 28228 | /* |
| 28229 | * ARC4 test vectors from OpenSSL |
| 28230 | */ |
| 28231 | #define ARC4_ENC_TEST_VECTORS 7 |
| 28232 | #define ARC4_DEC_TEST_VECTORS 7 |
| 28233 | |
| 28234 | static struct cipher_testvec arc4_enc_tv_template[] = { |
| 28235 | { |
| 28236 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 28237 | .klen = 8, |
| 28238 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 28239 | .ilen = 8, |
| 28240 | .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", |
| 28241 | .rlen = 8, |
| 28242 | }, { |
| 28243 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 28244 | .klen = 8, |
| 28245 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28246 | .ilen = 8, |
| 28247 | .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", |
| 28248 | .rlen = 8, |
| 28249 | }, { |
| 28250 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28251 | .klen = 8, |
| 28252 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28253 | .ilen = 8, |
| 28254 | .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", |
| 28255 | .rlen = 8, |
| 28256 | }, { |
| 28257 | .key = "\xef\x01\x23\x45", |
| 28258 | .klen = 4, |
| 28259 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 28260 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 28261 | "\x00\x00\x00\x00", |
| 28262 | .ilen = 20, |
| 28263 | .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 28264 | "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" |
| 28265 | "\x36\xb6\x78\x58", |
| 28266 | .rlen = 20, |
| 28267 | }, { |
| 28268 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 28269 | .klen = 8, |
| 28270 | .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 28271 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 28272 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 28273 | "\x12\x34\x56\x78", |
| 28274 | .ilen = 28, |
| 28275 | .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" |
| 28276 | "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" |
| 28277 | "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" |
| 28278 | "\x40\x01\x1e\xcf", |
| 28279 | .rlen = 28, |
| 28280 | }, { |
| 28281 | .key = "\xef\x01\x23\x45", |
| 28282 | .klen = 4, |
| 28283 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 28284 | "\x00\x00", |
| 28285 | .ilen = 10, |
| 28286 | .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 28287 | "\xbd\x61", |
| 28288 | .rlen = 10, |
| 28289 | }, { |
| 28290 | .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" |
| 28291 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28292 | .klen = 16, |
| 28293 | .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", |
| 28294 | .ilen = 8, |
| 28295 | .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1", |
| 28296 | .rlen = 8, |
| 28297 | }, |
| 28298 | }; |
| 28299 | |
| 28300 | static struct cipher_testvec arc4_dec_tv_template[] = { |
| 28301 | { |
| 28302 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 28303 | .klen = 8, |
| 28304 | .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", |
| 28305 | .ilen = 8, |
| 28306 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 28307 | .rlen = 8, |
| 28308 | }, { |
| 28309 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 28310 | .klen = 8, |
| 28311 | .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", |
| 28312 | .ilen = 8, |
| 28313 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28314 | .rlen = 8, |
| 28315 | }, { |
| 28316 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28317 | .klen = 8, |
| 28318 | .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", |
| 28319 | .ilen = 8, |
| 28320 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28321 | .rlen = 8, |
| 28322 | }, { |
| 28323 | .key = "\xef\x01\x23\x45", |
| 28324 | .klen = 4, |
| 28325 | .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 28326 | "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" |
| 28327 | "\x36\xb6\x78\x58", |
| 28328 | .ilen = 20, |
| 28329 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 28330 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 28331 | "\x00\x00\x00\x00", |
| 28332 | .rlen = 20, |
| 28333 | }, { |
| 28334 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 28335 | .klen = 8, |
| 28336 | .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" |
| 28337 | "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" |
| 28338 | "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" |
| 28339 | "\x40\x01\x1e\xcf", |
| 28340 | .ilen = 28, |
| 28341 | .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 28342 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 28343 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 28344 | "\x12\x34\x56\x78", |
| 28345 | .rlen = 28, |
| 28346 | }, { |
| 28347 | .key = "\xef\x01\x23\x45", |
| 28348 | .klen = 4, |
| 28349 | .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 28350 | "\xbd\x61", |
| 28351 | .ilen = 10, |
| 28352 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 28353 | "\x00\x00", |
| 28354 | .rlen = 10, |
| 28355 | }, { |
| 28356 | .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" |
| 28357 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28358 | .klen = 16, |
| 28359 | .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1", |
| 28360 | .ilen = 8, |
| 28361 | .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", |
| 28362 | .rlen = 8, |
| 28363 | }, |
| 28364 | }; |
| 28365 | |
| 28366 | /* |
| 28367 | * TEA test vectors |
| 28368 | */ |
| 28369 | #define TEA_ENC_TEST_VECTORS 4 |
| 28370 | #define TEA_DEC_TEST_VECTORS 4 |
| 28371 | |
| 28372 | static struct cipher_testvec tea_enc_tv_template[] = { |
| 28373 | { |
| 28374 | .key = zeroed_string, |
| 28375 | .klen = 16, |
| 28376 | .input = zeroed_string, |
| 28377 | .ilen = 8, |
| 28378 | .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", |
| 28379 | .rlen = 8, |
| 28380 | }, { |
| 28381 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 28382 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 28383 | .klen = 16, |
| 28384 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 28385 | .ilen = 8, |
| 28386 | .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", |
| 28387 | .rlen = 8, |
| 28388 | }, { |
| 28389 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 28390 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 28391 | .klen = 16, |
| 28392 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 28393 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 28394 | .ilen = 16, |
| 28395 | .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" |
| 28396 | "\xdd\x89\xa1\x25\x04\x21\xdf\x95", |
| 28397 | .rlen = 16, |
| 28398 | }, { |
| 28399 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 28400 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 28401 | .klen = 16, |
| 28402 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 28403 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 28404 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 28405 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 28406 | .ilen = 32, |
| 28407 | .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" |
| 28408 | "\x94\x18\x95\x91\xa9\xfc\x49\xf8" |
| 28409 | "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" |
| 28410 | "\x07\x89\x73\xc2\x45\x92\xc6\x90", |
| 28411 | .rlen = 32, |
| 28412 | } |
| 28413 | }; |
| 28414 | |
| 28415 | static struct cipher_testvec tea_dec_tv_template[] = { |
| 28416 | { |
| 28417 | .key = zeroed_string, |
| 28418 | .klen = 16, |
| 28419 | .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", |
| 28420 | .ilen = 8, |
| 28421 | .result = zeroed_string, |
| 28422 | .rlen = 8, |
| 28423 | }, { |
| 28424 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 28425 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 28426 | .klen = 16, |
| 28427 | .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", |
| 28428 | .ilen = 8, |
| 28429 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 28430 | .rlen = 8, |
| 28431 | }, { |
| 28432 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 28433 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 28434 | .klen = 16, |
| 28435 | .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" |
| 28436 | "\xdd\x89\xa1\x25\x04\x21\xdf\x95", |
| 28437 | .ilen = 16, |
| 28438 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 28439 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 28440 | .rlen = 16, |
| 28441 | }, { |
| 28442 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 28443 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 28444 | .klen = 16, |
| 28445 | .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" |
| 28446 | "\x94\x18\x95\x91\xa9\xfc\x49\xf8" |
| 28447 | "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" |
| 28448 | "\x07\x89\x73\xc2\x45\x92\xc6\x90", |
| 28449 | .ilen = 32, |
| 28450 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 28451 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 28452 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 28453 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 28454 | .rlen = 32, |
| 28455 | } |
| 28456 | }; |
| 28457 | |
| 28458 | /* |
| 28459 | * XTEA test vectors |
| 28460 | */ |
| 28461 | #define XTEA_ENC_TEST_VECTORS 4 |
| 28462 | #define XTEA_DEC_TEST_VECTORS 4 |
| 28463 | |
| 28464 | static struct cipher_testvec xtea_enc_tv_template[] = { |
| 28465 | { |
| 28466 | .key = zeroed_string, |
| 28467 | .klen = 16, |
| 28468 | .input = zeroed_string, |
| 28469 | .ilen = 8, |
| 28470 | .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", |
| 28471 | .rlen = 8, |
| 28472 | }, { |
| 28473 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 28474 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 28475 | .klen = 16, |
| 28476 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 28477 | .ilen = 8, |
| 28478 | .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", |
| 28479 | .rlen = 8, |
| 28480 | }, { |
| 28481 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 28482 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 28483 | .klen = 16, |
| 28484 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 28485 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 28486 | .ilen = 16, |
| 28487 | .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" |
| 28488 | "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", |
| 28489 | .rlen = 16, |
| 28490 | }, { |
| 28491 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 28492 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 28493 | .klen = 16, |
| 28494 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 28495 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 28496 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 28497 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 28498 | .ilen = 32, |
| 28499 | .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" |
| 28500 | "\x86\xff\x6f\xd0\xe3\x87\x70\x07" |
| 28501 | "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" |
| 28502 | "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", |
| 28503 | .rlen = 32, |
| 28504 | } |
| 28505 | }; |
| 28506 | |
| 28507 | static struct cipher_testvec xtea_dec_tv_template[] = { |
| 28508 | { |
| 28509 | .key = zeroed_string, |
| 28510 | .klen = 16, |
| 28511 | .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", |
| 28512 | .ilen = 8, |
| 28513 | .result = zeroed_string, |
| 28514 | .rlen = 8, |
| 28515 | }, { |
| 28516 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 28517 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 28518 | .klen = 16, |
| 28519 | .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", |
| 28520 | .ilen = 8, |
| 28521 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 28522 | .rlen = 8, |
| 28523 | }, { |
| 28524 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 28525 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 28526 | .klen = 16, |
| 28527 | .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" |
| 28528 | "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", |
| 28529 | .ilen = 16, |
| 28530 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 28531 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 28532 | .rlen = 16, |
| 28533 | }, { |
| 28534 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 28535 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 28536 | .klen = 16, |
| 28537 | .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" |
| 28538 | "\x86\xff\x6f\xd0\xe3\x87\x70\x07" |
| 28539 | "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" |
| 28540 | "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", |
| 28541 | .ilen = 32, |
| 28542 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 28543 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 28544 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 28545 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 28546 | .rlen = 32, |
| 28547 | } |
| 28548 | }; |
| 28549 | |
| 28550 | /* |
| 28551 | * KHAZAD test vectors. |
| 28552 | */ |
| 28553 | #define KHAZAD_ENC_TEST_VECTORS 5 |
| 28554 | #define KHAZAD_DEC_TEST_VECTORS 5 |
| 28555 | |
| 28556 | static struct cipher_testvec khazad_enc_tv_template[] = { |
| 28557 | { |
| 28558 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 28559 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28560 | .klen = 16, |
| 28561 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28562 | .ilen = 8, |
| 28563 | .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", |
| 28564 | .rlen = 8, |
| 28565 | }, { |
| 28566 | .key = "\x38\x38\x38\x38\x38\x38\x38\x38" |
| 28567 | "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 28568 | .klen = 16, |
| 28569 | .input = "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 28570 | .ilen = 8, |
| 28571 | .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", |
| 28572 | .rlen = 8, |
| 28573 | }, { |
| 28574 | .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" |
| 28575 | "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 28576 | .klen = 16, |
| 28577 | .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 28578 | .ilen = 8, |
| 28579 | .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", |
| 28580 | .rlen = 8, |
| 28581 | }, { |
| 28582 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 28583 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 28584 | .klen = 16, |
| 28585 | .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 28586 | .ilen = 8, |
| 28587 | .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 28588 | .rlen = 8, |
| 28589 | }, { |
| 28590 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 28591 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 28592 | .klen = 16, |
| 28593 | .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 28594 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 28595 | .ilen = 16, |
| 28596 | .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" |
| 28597 | "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 28598 | .rlen = 16, |
| 28599 | }, |
| 28600 | }; |
| 28601 | |
| 28602 | static struct cipher_testvec khazad_dec_tv_template[] = { |
| 28603 | { |
| 28604 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 28605 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28606 | .klen = 16, |
| 28607 | .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", |
| 28608 | .ilen = 8, |
| 28609 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28610 | .rlen = 8, |
| 28611 | }, { |
| 28612 | .key = "\x38\x38\x38\x38\x38\x38\x38\x38" |
| 28613 | "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 28614 | .klen = 16, |
| 28615 | .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", |
| 28616 | .ilen = 8, |
| 28617 | .result = "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 28618 | .rlen = 8, |
| 28619 | }, { |
| 28620 | .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" |
| 28621 | "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 28622 | .klen = 16, |
| 28623 | .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", |
| 28624 | .ilen = 8, |
| 28625 | .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 28626 | .rlen = 8, |
| 28627 | }, { |
| 28628 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 28629 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 28630 | .klen = 16, |
| 28631 | .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 28632 | .ilen = 8, |
| 28633 | .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 28634 | .rlen = 8, |
| 28635 | }, { |
| 28636 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 28637 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 28638 | .klen = 16, |
| 28639 | .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" |
| 28640 | "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 28641 | .ilen = 16, |
| 28642 | .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 28643 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 28644 | .rlen = 16, |
| 28645 | }, |
| 28646 | }; |
| 28647 | |
| 28648 | /* |
| 28649 | * Anubis test vectors. |
| 28650 | */ |
| 28651 | |
| 28652 | #define ANUBIS_ENC_TEST_VECTORS 5 |
| 28653 | #define ANUBIS_DEC_TEST_VECTORS 5 |
| 28654 | #define ANUBIS_CBC_ENC_TEST_VECTORS 2 |
| 28655 | #define ANUBIS_CBC_DEC_TEST_VECTORS 2 |
| 28656 | |
| 28657 | static struct cipher_testvec anubis_enc_tv_template[] = { |
| 28658 | { |
| 28659 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28660 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 28661 | .klen = 16, |
| 28662 | .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28663 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 28664 | .ilen = 16, |
| 28665 | .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 28666 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", |
| 28667 | .rlen = 16, |
| 28668 | }, { |
| 28669 | |
| 28670 | .key = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 28671 | "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 28672 | "\x03\x03\x03\x03", |
| 28673 | .klen = 20, |
| 28674 | .input = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 28675 | "\x03\x03\x03\x03\x03\x03\x03\x03", |
| 28676 | .ilen = 16, |
| 28677 | .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" |
| 28678 | "\x87\x41\x6f\x82\x0a\x98\x64\xae", |
| 28679 | .rlen = 16, |
| 28680 | }, { |
| 28681 | .key = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 28682 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 28683 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 28684 | "\x24\x24\x24\x24", |
| 28685 | .klen = 28, |
| 28686 | .input = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 28687 | "\x24\x24\x24\x24\x24\x24\x24\x24", |
| 28688 | .ilen = 16, |
| 28689 | .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" |
| 28690 | "\x06\xd3\x61\x27\xfd\x13\x9e\xde", |
| 28691 | .rlen = 16, |
| 28692 | }, { |
| 28693 | .key = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 28694 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 28695 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 28696 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 28697 | .klen = 32, |
| 28698 | .input = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 28699 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 28700 | .ilen = 16, |
| 28701 | .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" |
| 28702 | "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", |
| 28703 | .rlen = 16, |
| 28704 | }, { |
| 28705 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28706 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28707 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28708 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28709 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 28710 | .klen = 40, |
| 28711 | .input = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28712 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 28713 | .ilen = 16, |
| 28714 | .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 28715 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee", |
| 28716 | .rlen = 16, |
| 28717 | }, |
| 28718 | }; |
| 28719 | |
| 28720 | static struct cipher_testvec anubis_dec_tv_template[] = { |
| 28721 | { |
| 28722 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28723 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 28724 | .klen = 16, |
| 28725 | .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 28726 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", |
| 28727 | .ilen = 16, |
| 28728 | .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28729 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 28730 | .rlen = 16, |
| 28731 | }, { |
| 28732 | |
| 28733 | .key = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 28734 | "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 28735 | "\x03\x03\x03\x03", |
| 28736 | .klen = 20, |
| 28737 | .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" |
| 28738 | "\x87\x41\x6f\x82\x0a\x98\x64\xae", |
| 28739 | .ilen = 16, |
| 28740 | .result = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 28741 | "\x03\x03\x03\x03\x03\x03\x03\x03", |
| 28742 | .rlen = 16, |
| 28743 | }, { |
| 28744 | .key = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 28745 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 28746 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 28747 | "\x24\x24\x24\x24", |
| 28748 | .klen = 28, |
| 28749 | .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" |
| 28750 | "\x06\xd3\x61\x27\xfd\x13\x9e\xde", |
| 28751 | .ilen = 16, |
| 28752 | .result = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 28753 | "\x24\x24\x24\x24\x24\x24\x24\x24", |
| 28754 | .rlen = 16, |
| 28755 | }, { |
| 28756 | .key = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 28757 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 28758 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 28759 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 28760 | .klen = 32, |
| 28761 | .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" |
| 28762 | "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", |
| 28763 | .ilen = 16, |
| 28764 | .result = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 28765 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 28766 | .rlen = 16, |
| 28767 | }, { |
| 28768 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28769 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28770 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28771 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28772 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 28773 | .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 28774 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee", |
| 28775 | .klen = 40, |
| 28776 | .ilen = 16, |
| 28777 | .result = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28778 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 28779 | .rlen = 16, |
| 28780 | }, |
| 28781 | }; |
| 28782 | |
| 28783 | static struct cipher_testvec anubis_cbc_enc_tv_template[] = { |
| 28784 | { |
| 28785 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28786 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 28787 | .klen = 16, |
| 28788 | .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28789 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28790 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28791 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 28792 | .ilen = 32, |
| 28793 | .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 28794 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" |
| 28795 | "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" |
| 28796 | "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", |
| 28797 | .rlen = 32, |
| 28798 | }, { |
| 28799 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28800 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28801 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28802 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28803 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 28804 | .klen = 40, |
| 28805 | .input = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28806 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28807 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28808 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 28809 | .ilen = 32, |
| 28810 | .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 28811 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee" |
| 28812 | "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" |
| 28813 | "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", |
| 28814 | .rlen = 32, |
| 28815 | }, |
| 28816 | }; |
| 28817 | |
| 28818 | static struct cipher_testvec anubis_cbc_dec_tv_template[] = { |
| 28819 | { |
| 28820 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28821 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 28822 | .klen = 16, |
| 28823 | .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 28824 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" |
| 28825 | "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" |
| 28826 | "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", |
| 28827 | .ilen = 32, |
| 28828 | .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28829 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28830 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 28831 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 28832 | .rlen = 32, |
| 28833 | }, { |
| 28834 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28835 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28836 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28837 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28838 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 28839 | .klen = 40, |
| 28840 | .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 28841 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee" |
| 28842 | "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" |
| 28843 | "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", |
| 28844 | .ilen = 32, |
| 28845 | .result = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28846 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28847 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 28848 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 28849 | .rlen = 32, |
| 28850 | }, |
| 28851 | }; |
| 28852 | |
| 28853 | /* |
| 28854 | * XETA test vectors |
| 28855 | */ |
| 28856 | #define XETA_ENC_TEST_VECTORS 4 |
| 28857 | #define XETA_DEC_TEST_VECTORS 4 |
| 28858 | |
| 28859 | static struct cipher_testvec xeta_enc_tv_template[] = { |
| 28860 | { |
| 28861 | .key = zeroed_string, |
| 28862 | .klen = 16, |
| 28863 | .input = zeroed_string, |
| 28864 | .ilen = 8, |
| 28865 | .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", |
| 28866 | .rlen = 8, |
| 28867 | }, { |
| 28868 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 28869 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 28870 | .klen = 16, |
| 28871 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 28872 | .ilen = 8, |
| 28873 | .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", |
| 28874 | .rlen = 8, |
| 28875 | }, { |
| 28876 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 28877 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 28878 | .klen = 16, |
| 28879 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 28880 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 28881 | .ilen = 16, |
| 28882 | .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" |
| 28883 | "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", |
| 28884 | .rlen = 16, |
| 28885 | }, { |
| 28886 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 28887 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 28888 | .klen = 16, |
| 28889 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 28890 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 28891 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 28892 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 28893 | .ilen = 32, |
| 28894 | .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" |
| 28895 | "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" |
| 28896 | "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" |
| 28897 | "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", |
| 28898 | .rlen = 32, |
| 28899 | } |
| 28900 | }; |
| 28901 | |
| 28902 | static struct cipher_testvec xeta_dec_tv_template[] = { |
| 28903 | { |
| 28904 | .key = zeroed_string, |
| 28905 | .klen = 16, |
| 28906 | .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", |
| 28907 | .ilen = 8, |
| 28908 | .result = zeroed_string, |
| 28909 | .rlen = 8, |
| 28910 | }, { |
| 28911 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 28912 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 28913 | .klen = 16, |
| 28914 | .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", |
| 28915 | .ilen = 8, |
| 28916 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 28917 | .rlen = 8, |
| 28918 | }, { |
| 28919 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 28920 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 28921 | .klen = 16, |
| 28922 | .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" |
| 28923 | "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", |
| 28924 | .ilen = 16, |
| 28925 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 28926 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 28927 | .rlen = 16, |
| 28928 | }, { |
| 28929 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 28930 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 28931 | .klen = 16, |
| 28932 | .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" |
| 28933 | "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" |
| 28934 | "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" |
| 28935 | "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", |
| 28936 | .ilen = 32, |
| 28937 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 28938 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 28939 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 28940 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 28941 | .rlen = 32, |
| 28942 | } |
| 28943 | }; |
| 28944 | |
| 28945 | /* |
| 28946 | * FCrypt test vectors |
| 28947 | */ |
| 28948 | #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template) |
| 28949 | #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template) |
| 28950 | |
| 28951 | static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = { |
| 28952 | { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ |
| 28953 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28954 | .klen = 8, |
| 28955 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28956 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28957 | .ilen = 8, |
| 28958 | .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", |
| 28959 | .rlen = 8, |
| 28960 | }, { |
| 28961 | .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", |
| 28962 | .klen = 8, |
| 28963 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 28964 | .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", |
| 28965 | .ilen = 8, |
| 28966 | .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80", |
| 28967 | .rlen = 8, |
| 28968 | }, { /* From Arla */ |
| 28969 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 28970 | .klen = 8, |
| 28971 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 28972 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 28973 | .ilen = 48, |
| 28974 | .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" |
| 28975 | "\xee\xac\x98\x62\x44\x51\xe4\x84" |
| 28976 | "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" |
| 28977 | "\xd2\xd9\x13\x79\x72\xa3\x45\x03" |
| 28978 | "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" |
| 28979 | "\xf8\x91\x3c\xac\x44\x22\x92\xef", |
| 28980 | .rlen = 48, |
| 28981 | }, { |
| 28982 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 28983 | .klen = 8, |
| 28984 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 28985 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 28986 | .ilen = 48, |
| 28987 | .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 28988 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 28989 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 28990 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 28991 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 28992 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 28993 | .rlen = 48, |
| 28994 | }, { /* split-page version */ |
| 28995 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 28996 | .klen = 8, |
| 28997 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 28998 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 28999 | .ilen = 48, |
| 29000 | .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 29001 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 29002 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 29003 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 29004 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 29005 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 29006 | .rlen = 48, |
| 29007 | .np = 2, |
| 29008 | .tap = { 20, 28 }, |
| 29009 | } |
| 29010 | }; |
| 29011 | |
| 29012 | static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = { |
| 29013 | { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ |
| 29014 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29015 | .klen = 8, |
| 29016 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29017 | .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", |
| 29018 | .ilen = 8, |
| 29019 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29020 | .rlen = 8, |
| 29021 | }, { |
| 29022 | .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", |
| 29023 | .klen = 8, |
| 29024 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29025 | .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80", |
| 29026 | .ilen = 8, |
| 29027 | .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", |
| 29028 | .rlen = 8, |
| 29029 | }, { /* From Arla */ |
| 29030 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 29031 | .klen = 8, |
| 29032 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29033 | .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" |
| 29034 | "\xee\xac\x98\x62\x44\x51\xe4\x84" |
| 29035 | "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" |
| 29036 | "\xd2\xd9\x13\x79\x72\xa3\x45\x03" |
| 29037 | "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" |
| 29038 | "\xf8\x91\x3c\xac\x44\x22\x92\xef", |
| 29039 | .ilen = 48, |
| 29040 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 29041 | .rlen = 48, |
| 29042 | }, { |
| 29043 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29044 | .klen = 8, |
| 29045 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 29046 | .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 29047 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 29048 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 29049 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 29050 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 29051 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 29052 | .ilen = 48, |
| 29053 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 29054 | .rlen = 48, |
| 29055 | }, { /* split-page version */ |
| 29056 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29057 | .klen = 8, |
| 29058 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 29059 | .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 29060 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 29061 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 29062 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 29063 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 29064 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 29065 | .ilen = 48, |
| 29066 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 29067 | .rlen = 48, |
| 29068 | .np = 2, |
| 29069 | .tap = { 20, 28 }, |
| 29070 | } |
| 29071 | }; |
| 29072 | |
| 29073 | /* |
| 29074 | * CAMELLIA test vectors. |
| 29075 | */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29076 | #define CAMELLIA_ENC_TEST_VECTORS 4 |
| 29077 | #define CAMELLIA_DEC_TEST_VECTORS 4 |
| 29078 | #define CAMELLIA_CBC_ENC_TEST_VECTORS 3 |
| 29079 | #define CAMELLIA_CBC_DEC_TEST_VECTORS 3 |
| 29080 | #define CAMELLIA_CTR_ENC_TEST_VECTORS 2 |
| 29081 | #define CAMELLIA_CTR_DEC_TEST_VECTORS 2 |
| 29082 | #define CAMELLIA_LRW_ENC_TEST_VECTORS 8 |
| 29083 | #define CAMELLIA_LRW_DEC_TEST_VECTORS 8 |
| 29084 | #define CAMELLIA_XTS_ENC_TEST_VECTORS 5 |
| 29085 | #define CAMELLIA_XTS_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 29086 | |
| 29087 | static struct cipher_testvec camellia_enc_tv_template[] = { |
| 29088 | { |
| 29089 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29090 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29091 | .klen = 16, |
| 29092 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29093 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29094 | .ilen = 16, |
| 29095 | .result = "\x67\x67\x31\x38\x54\x96\x69\x73" |
| 29096 | "\x08\x57\x06\x56\x48\xea\xbe\x43", |
| 29097 | .rlen = 16, |
| 29098 | }, { |
| 29099 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29100 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 29101 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 29102 | .klen = 24, |
| 29103 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29104 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29105 | .ilen = 16, |
| 29106 | .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" |
| 29107 | "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", |
| 29108 | .rlen = 16, |
| 29109 | }, { |
| 29110 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29111 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 29112 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 29113 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 29114 | .klen = 32, |
| 29115 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29116 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29117 | .ilen = 16, |
| 29118 | .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" |
| 29119 | "\x20\xef\x7c\x91\x9e\x3a\x75\x09", |
| 29120 | .rlen = 16, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 29121 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29122 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 29123 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 29124 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 29125 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 29126 | .klen = 32, |
| 29127 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 29128 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 29129 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 29130 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 29131 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 29132 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 29133 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 29134 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 29135 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 29136 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 29137 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 29138 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 29139 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 29140 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 29141 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 29142 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 29143 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 29144 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 29145 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 29146 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 29147 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 29148 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 29149 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 29150 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 29151 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 29152 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 29153 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 29154 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 29155 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 29156 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 29157 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 29158 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 29159 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 29160 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 29161 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 29162 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 29163 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 29164 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 29165 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 29166 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 29167 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 29168 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 29169 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 29170 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 29171 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 29172 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 29173 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 29174 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 29175 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 29176 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 29177 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 29178 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 29179 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 29180 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 29181 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 29182 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 29183 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 29184 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 29185 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 29186 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 29187 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 29188 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 29189 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 29190 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 29191 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 29192 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 29193 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 29194 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 29195 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 29196 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 29197 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 29198 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 29199 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 29200 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 29201 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 29202 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 29203 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 29204 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 29205 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 29206 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 29207 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 29208 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 29209 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 29210 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 29211 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 29212 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 29213 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 29214 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 29215 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 29216 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 29217 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 29218 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 29219 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 29220 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 29221 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 29222 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 29223 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 29224 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 29225 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 29226 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 29227 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 29228 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 29229 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 29230 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 29231 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 29232 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 29233 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 29234 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 29235 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 29236 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 29237 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 29238 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 29239 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 29240 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 29241 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 29242 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 29243 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 29244 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 29245 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 29246 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 29247 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 29248 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 29249 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 29250 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 29251 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 29252 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 29253 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29254 | .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA" |
| 29255 | "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7" |
| 29256 | "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04" |
| 29257 | "\xB3\xC2\xB9\x03\xAA\x91\x56\x29" |
| 29258 | "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 29259 | "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A" |
| 29260 | "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8" |
| 29261 | "\x01\x9B\x17\x0A\x29\xE7\x61\x28" |
| 29262 | "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B" |
| 29263 | "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B" |
| 29264 | "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E" |
| 29265 | "\x83\x54\xAE\x7C\x82\x46\x10\xC9" |
| 29266 | "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC" |
| 29267 | "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4" |
| 29268 | "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C" |
| 29269 | "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB" |
| 29270 | "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98" |
| 29271 | "\x9F\x32\xBA\xA2\x18\xCF\x55\x43" |
| 29272 | "\xFE\x80\x8F\x60\xCF\x05\x30\x9B" |
| 29273 | "\x70\x50\x1E\x9C\x08\x87\xE6\x20" |
| 29274 | "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2" |
| 29275 | "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6" |
| 29276 | "\xB8\x30\x86\x3B\x0F\x94\x1E\x79" |
| 29277 | "\x13\x94\x35\xA2\xB1\x35\x5B\x05" |
| 29278 | "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE" |
| 29279 | "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A" |
| 29280 | "\xF5\x33\xC8\x19\x45\x14\x44\x5D" |
| 29281 | "\xFE\x94\x7B\xBB\x63\x13\x57\xC3" |
| 29282 | "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A" |
| 29283 | "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF" |
| 29284 | "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8" |
| 29285 | "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C" |
| 29286 | "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB" |
| 29287 | "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74" |
| 29288 | "\x60\x64\x0D\x1C\x80\xD1\x20\x9E" |
| 29289 | "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96" |
| 29290 | "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B" |
| 29291 | "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01" |
| 29292 | "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E" |
| 29293 | "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B" |
| 29294 | "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D" |
| 29295 | "\x5B\x55\x23\xB7\x40\x31\xDE\xEE" |
| 29296 | "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42" |
| 29297 | "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3" |
| 29298 | "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF" |
| 29299 | "\x63\xA9\xF0\x6A\x08\x46\xBD\x48" |
| 29300 | "\x83\x06\xAB\x82\x99\x01\x16\x1A" |
| 29301 | "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F" |
| 29302 | "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC" |
| 29303 | "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B" |
| 29304 | "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0" |
| 29305 | "\xCD\xB6\x45\xB2\x29\x2E\x34\x23" |
| 29306 | "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F" |
| 29307 | "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA" |
| 29308 | "\x74\x83\x29\x05\xE8\xC4\x4D\x01" |
| 29309 | "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99" |
| 29310 | "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30" |
| 29311 | "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C" |
| 29312 | "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3" |
| 29313 | "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44" |
| 29314 | "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 29315 | "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB" |
| 29316 | "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD" |
| 29317 | "\xF7\x90\x68\xCF\xC9\x11\x52\x3E" |
| 29318 | "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A" |
| 29319 | "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E" |
| 29320 | "\xED\x28\x39\xE9\x63\xED\x41\x70" |
| 29321 | "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB" |
| 29322 | "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60" |
| 29323 | "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B" |
| 29324 | "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5" |
| 29325 | "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E" |
| 29326 | "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23" |
| 29327 | "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9" |
| 29328 | "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7" |
| 29329 | "\xCA\xA8\xA2\x9E\x13\x87\x57\x92" |
| 29330 | "\x64\x7C\x85\x0B\xB3\x29\x37\xD8" |
| 29331 | "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF" |
| 29332 | "\x2E\x45\x83\xB6\xD8\x54\x00\x89" |
| 29333 | "\xF6\xBC\x3A\x7A\x88\x58\x51\xED" |
| 29334 | "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42" |
| 29335 | "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC" |
| 29336 | "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1" |
| 29337 | "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91" |
| 29338 | "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E" |
| 29339 | "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15" |
| 29340 | "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86" |
| 29341 | "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4" |
| 29342 | "\x7F\x95\x10\xF7\xAB\x3F\x92\x23" |
| 29343 | "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43" |
| 29344 | "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2" |
| 29345 | "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56" |
| 29346 | "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4" |
| 29347 | "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F" |
| 29348 | "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4" |
| 29349 | "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2" |
| 29350 | "\x39\x25\x55\x20\x5A\xA6\x02\x9F" |
| 29351 | "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B" |
| 29352 | "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF" |
| 29353 | "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E" |
| 29354 | "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78" |
| 29355 | "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA" |
| 29356 | "\xED\x87\x98\xAC\xFE\x48\x97\x6D" |
| 29357 | "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14" |
| 29358 | "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C" |
| 29359 | "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55" |
| 29360 | "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55" |
| 29361 | "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C" |
| 29362 | "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC" |
| 29363 | "\xF0\x33\x52\x29\x70\xF9\x5C\xE9" |
| 29364 | "\xAC\x1F\xB5\x73\x56\x66\x54\xAF" |
| 29365 | "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3" |
| 29366 | "\xAE\x47\xB6\x69\x86\xE9\x01\x31" |
| 29367 | "\x83\x18\x3D\xF4\x74\x7B\xF9\x42" |
| 29368 | "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6" |
| 29369 | "\x2B\x20\x63\xDA\x49\x65\x5E\x8B" |
| 29370 | "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34" |
| 29371 | "\xD3\x52\xFC\x68\x00\x43\x1B\x37" |
| 29372 | "\x31\x93\x51\x1C\x63\x97\x70\xB0" |
| 29373 | "\x99\x78\x83\x13\xFD\xCF\x53\x81" |
| 29374 | "\x36\x46\xB5\x42\x52\x2F\x32\xEB" |
| 29375 | "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC" |
| 29376 | "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A" |
| 29377 | "\xAE\xEF\x3E\x82\x12\x0B\x74\x72" |
| 29378 | "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55" |
| 29379 | "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66", |
| 29380 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 29381 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 29382 | .np = 3, |
| 29383 | .tap = { 1008 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29384 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 29385 | }; |
| 29386 | |
| 29387 | static struct cipher_testvec camellia_dec_tv_template[] = { |
| 29388 | { |
| 29389 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29390 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29391 | .klen = 16, |
| 29392 | .input = "\x67\x67\x31\x38\x54\x96\x69\x73" |
| 29393 | "\x08\x57\x06\x56\x48\xea\xbe\x43", |
| 29394 | .ilen = 16, |
| 29395 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29396 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29397 | .rlen = 16, |
| 29398 | }, { |
| 29399 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29400 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 29401 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 29402 | .klen = 24, |
| 29403 | .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" |
| 29404 | "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", |
| 29405 | .ilen = 16, |
| 29406 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29407 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29408 | .rlen = 16, |
| 29409 | }, { |
| 29410 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29411 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 29412 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 29413 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 29414 | .klen = 32, |
| 29415 | .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" |
| 29416 | "\x20\xef\x7c\x91\x9e\x3a\x75\x09", |
| 29417 | .ilen = 16, |
| 29418 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 29419 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 29420 | .rlen = 16, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 29421 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29422 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 29423 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 29424 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 29425 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 29426 | .klen = 32, |
| 29427 | .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA" |
| 29428 | "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7" |
| 29429 | "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04" |
| 29430 | "\xB3\xC2\xB9\x03\xAA\x91\x56\x29" |
| 29431 | "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 29432 | "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A" |
| 29433 | "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8" |
| 29434 | "\x01\x9B\x17\x0A\x29\xE7\x61\x28" |
| 29435 | "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B" |
| 29436 | "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B" |
| 29437 | "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E" |
| 29438 | "\x83\x54\xAE\x7C\x82\x46\x10\xC9" |
| 29439 | "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC" |
| 29440 | "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4" |
| 29441 | "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C" |
| 29442 | "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB" |
| 29443 | "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98" |
| 29444 | "\x9F\x32\xBA\xA2\x18\xCF\x55\x43" |
| 29445 | "\xFE\x80\x8F\x60\xCF\x05\x30\x9B" |
| 29446 | "\x70\x50\x1E\x9C\x08\x87\xE6\x20" |
| 29447 | "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2" |
| 29448 | "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6" |
| 29449 | "\xB8\x30\x86\x3B\x0F\x94\x1E\x79" |
| 29450 | "\x13\x94\x35\xA2\xB1\x35\x5B\x05" |
| 29451 | "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE" |
| 29452 | "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A" |
| 29453 | "\xF5\x33\xC8\x19\x45\x14\x44\x5D" |
| 29454 | "\xFE\x94\x7B\xBB\x63\x13\x57\xC3" |
| 29455 | "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A" |
| 29456 | "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF" |
| 29457 | "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8" |
| 29458 | "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C" |
| 29459 | "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB" |
| 29460 | "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74" |
| 29461 | "\x60\x64\x0D\x1C\x80\xD1\x20\x9E" |
| 29462 | "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96" |
| 29463 | "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B" |
| 29464 | "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01" |
| 29465 | "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E" |
| 29466 | "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B" |
| 29467 | "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D" |
| 29468 | "\x5B\x55\x23\xB7\x40\x31\xDE\xEE" |
| 29469 | "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42" |
| 29470 | "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3" |
| 29471 | "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF" |
| 29472 | "\x63\xA9\xF0\x6A\x08\x46\xBD\x48" |
| 29473 | "\x83\x06\xAB\x82\x99\x01\x16\x1A" |
| 29474 | "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F" |
| 29475 | "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC" |
| 29476 | "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B" |
| 29477 | "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0" |
| 29478 | "\xCD\xB6\x45\xB2\x29\x2E\x34\x23" |
| 29479 | "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F" |
| 29480 | "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA" |
| 29481 | "\x74\x83\x29\x05\xE8\xC4\x4D\x01" |
| 29482 | "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99" |
| 29483 | "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30" |
| 29484 | "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C" |
| 29485 | "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3" |
| 29486 | "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44" |
| 29487 | "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 29488 | "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB" |
| 29489 | "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD" |
| 29490 | "\xF7\x90\x68\xCF\xC9\x11\x52\x3E" |
| 29491 | "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A" |
| 29492 | "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E" |
| 29493 | "\xED\x28\x39\xE9\x63\xED\x41\x70" |
| 29494 | "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB" |
| 29495 | "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60" |
| 29496 | "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B" |
| 29497 | "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5" |
| 29498 | "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E" |
| 29499 | "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23" |
| 29500 | "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9" |
| 29501 | "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7" |
| 29502 | "\xCA\xA8\xA2\x9E\x13\x87\x57\x92" |
| 29503 | "\x64\x7C\x85\x0B\xB3\x29\x37\xD8" |
| 29504 | "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF" |
| 29505 | "\x2E\x45\x83\xB6\xD8\x54\x00\x89" |
| 29506 | "\xF6\xBC\x3A\x7A\x88\x58\x51\xED" |
| 29507 | "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42" |
| 29508 | "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC" |
| 29509 | "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1" |
| 29510 | "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91" |
| 29511 | "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E" |
| 29512 | "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15" |
| 29513 | "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86" |
| 29514 | "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4" |
| 29515 | "\x7F\x95\x10\xF7\xAB\x3F\x92\x23" |
| 29516 | "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43" |
| 29517 | "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2" |
| 29518 | "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56" |
| 29519 | "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4" |
| 29520 | "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F" |
| 29521 | "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4" |
| 29522 | "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2" |
| 29523 | "\x39\x25\x55\x20\x5A\xA6\x02\x9F" |
| 29524 | "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B" |
| 29525 | "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF" |
| 29526 | "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E" |
| 29527 | "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78" |
| 29528 | "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA" |
| 29529 | "\xED\x87\x98\xAC\xFE\x48\x97\x6D" |
| 29530 | "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14" |
| 29531 | "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C" |
| 29532 | "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55" |
| 29533 | "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55" |
| 29534 | "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C" |
| 29535 | "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC" |
| 29536 | "\xF0\x33\x52\x29\x70\xF9\x5C\xE9" |
| 29537 | "\xAC\x1F\xB5\x73\x56\x66\x54\xAF" |
| 29538 | "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3" |
| 29539 | "\xAE\x47\xB6\x69\x86\xE9\x01\x31" |
| 29540 | "\x83\x18\x3D\xF4\x74\x7B\xF9\x42" |
| 29541 | "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6" |
| 29542 | "\x2B\x20\x63\xDA\x49\x65\x5E\x8B" |
| 29543 | "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34" |
| 29544 | "\xD3\x52\xFC\x68\x00\x43\x1B\x37" |
| 29545 | "\x31\x93\x51\x1C\x63\x97\x70\xB0" |
| 29546 | "\x99\x78\x83\x13\xFD\xCF\x53\x81" |
| 29547 | "\x36\x46\xB5\x42\x52\x2F\x32\xEB" |
| 29548 | "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC" |
| 29549 | "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A" |
| 29550 | "\xAE\xEF\x3E\x82\x12\x0B\x74\x72" |
| 29551 | "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55" |
| 29552 | "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66", |
| 29553 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29554 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 29555 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 29556 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 29557 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 29558 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 29559 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 29560 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 29561 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 29562 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 29563 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 29564 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 29565 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 29566 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 29567 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 29568 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 29569 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 29570 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 29571 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 29572 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 29573 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 29574 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 29575 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 29576 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 29577 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 29578 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 29579 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 29580 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 29581 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 29582 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 29583 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 29584 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 29585 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 29586 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 29587 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 29588 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 29589 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 29590 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 29591 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 29592 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 29593 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 29594 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 29595 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 29596 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 29597 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 29598 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 29599 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 29600 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 29601 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 29602 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 29603 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 29604 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 29605 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 29606 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 29607 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 29608 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 29609 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 29610 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 29611 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 29612 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 29613 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 29614 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 29615 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 29616 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 29617 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 29618 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 29619 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 29620 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 29621 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 29622 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 29623 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 29624 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 29625 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 29626 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 29627 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 29628 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 29629 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 29630 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 29631 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 29632 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 29633 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 29634 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 29635 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 29636 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 29637 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 29638 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 29639 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 29640 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 29641 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 29642 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 29643 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 29644 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 29645 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 29646 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 29647 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 29648 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 29649 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 29650 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 29651 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 29652 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 29653 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 29654 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 29655 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 29656 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 29657 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 29658 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 29659 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 29660 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 29661 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 29662 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 29663 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 29664 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 29665 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 29666 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 29667 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 29668 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 29669 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 29670 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 29671 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 29672 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 29673 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 29674 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 29675 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 29676 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 29677 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 29678 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 29679 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 29680 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 29681 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 29682 | .np = 3, |
| 29683 | .tap = { 1008 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29684 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 29685 | }; |
| 29686 | |
| 29687 | static struct cipher_testvec camellia_cbc_enc_tv_template[] = { |
| 29688 | { |
| 29689 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 29690 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 29691 | .klen = 16, |
| 29692 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 29693 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 29694 | .input = "Single block msg", |
| 29695 | .ilen = 16, |
| 29696 | .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7" |
| 29697 | "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", |
| 29698 | .rlen = 16, |
| 29699 | }, { |
| 29700 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 29701 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 29702 | .klen = 16, |
| 29703 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 29704 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 29705 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 29706 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 29707 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 29708 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 29709 | .ilen = 32, |
| 29710 | .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" |
| 29711 | "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" |
| 29712 | "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" |
| 29713 | "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", |
| 29714 | .rlen = 32, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 29715 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29716 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 29717 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 29718 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 29719 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 29720 | .klen = 32, |
| 29721 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 29722 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 29723 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 29724 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 29725 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 29726 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 29727 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 29728 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 29729 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 29730 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 29731 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 29732 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 29733 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 29734 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 29735 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 29736 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 29737 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 29738 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 29739 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 29740 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 29741 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 29742 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 29743 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 29744 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 29745 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 29746 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 29747 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 29748 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 29749 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 29750 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 29751 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 29752 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 29753 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 29754 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 29755 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 29756 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 29757 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 29758 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 29759 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 29760 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 29761 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 29762 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 29763 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 29764 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 29765 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 29766 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 29767 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 29768 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 29769 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 29770 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 29771 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 29772 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 29773 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 29774 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 29775 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 29776 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 29777 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 29778 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 29779 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 29780 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 29781 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 29782 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 29783 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 29784 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 29785 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 29786 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 29787 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 29788 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 29789 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 29790 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 29791 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 29792 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 29793 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 29794 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 29795 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 29796 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 29797 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 29798 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 29799 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 29800 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 29801 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 29802 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 29803 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 29804 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 29805 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 29806 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 29807 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 29808 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 29809 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 29810 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 29811 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 29812 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 29813 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 29814 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 29815 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 29816 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 29817 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 29818 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 29819 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 29820 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 29821 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 29822 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 29823 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 29824 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 29825 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 29826 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 29827 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 29828 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 29829 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 29830 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 29831 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 29832 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 29833 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 29834 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 29835 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 29836 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 29837 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 29838 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 29839 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 29840 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 29841 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 29842 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 29843 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 29844 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 29845 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 29846 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 29847 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 29848 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 29849 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29850 | .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77" |
| 29851 | "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40" |
| 29852 | "\x88\x39\xE3\xFD\x94\x4B\x25\x58" |
| 29853 | "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B" |
| 29854 | "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 29855 | "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01" |
| 29856 | "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83" |
| 29857 | "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E" |
| 29858 | "\x56\xC8\x18\x3D\x79\x86\x97\xEF" |
| 29859 | "\x57\x0E\x63\xA1\xC1\x41\x48\xB8" |
| 29860 | "\x98\xB7\x51\x6D\x18\xF6\x19\x82" |
| 29861 | "\x37\x49\x88\xA4\xEF\x91\x21\x47" |
| 29862 | "\x03\x28\xEA\x42\xF4\xFB\x7A\x58" |
| 29863 | "\x28\x90\x77\x46\xD8\xD2\x35\x16" |
| 29864 | "\x44\xA9\x9E\x49\x52\x2A\xE4\x16" |
| 29865 | "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6" |
| 29866 | "\xCF\x76\x91\x89\x8A\x94\x39\xFA" |
| 29867 | "\x6B\x5F\x63\x53\x74\x43\x91\xF5" |
| 29868 | "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F" |
| 29869 | "\x9D\x32\x84\xEB\x56\x28\xD6\x06" |
| 29870 | "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62" |
| 29871 | "\x32\xCC\x86\xC8\x36\x67\x5E\x7E" |
| 29872 | "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF" |
| 29873 | "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A" |
| 29874 | "\x9B\x78\x62\x3B\x02\x28\x60\xB3" |
| 29875 | "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47" |
| 29876 | "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28" |
| 29877 | "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70" |
| 29878 | "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94" |
| 29879 | "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C" |
| 29880 | "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0" |
| 29881 | "\x5D\x51\x54\x9A\x53\xA0\xF9\x32" |
| 29882 | "\xBD\x31\x54\x14\x7B\x33\xEE\x17" |
| 29883 | "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2" |
| 29884 | "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2" |
| 29885 | "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E" |
| 29886 | "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4" |
| 29887 | "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE" |
| 29888 | "\x40\x78\x91\x95\xC4\x2F\xA3\xE8" |
| 29889 | "\x18\xC7\x07\xA6\xC8\xC0\x66\x33" |
| 29890 | "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3" |
| 29891 | "\x40\xF5\x40\x54\xF1\x84\x8C\xEA" |
| 29892 | "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8" |
| 29893 | "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4" |
| 29894 | "\xF8\x17\x99\x8D\x58\x2D\x72\x44" |
| 29895 | "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82" |
| 29896 | "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7" |
| 29897 | "\x68\xA3\xB8\xA5\x93\x74\x2E\x85" |
| 29898 | "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF" |
| 29899 | "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B" |
| 29900 | "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18" |
| 29901 | "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B" |
| 29902 | "\x38\xB8\x48\x36\x66\x4E\x20\x43" |
| 29903 | "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52" |
| 29904 | "\xD7\xDC\xB2\x67\x63\x14\x25\xCD" |
| 29905 | "\xB1\x13\x4B\xDE\x8C\x59\x21\x84" |
| 29906 | "\x81\x8D\x97\x23\x45\x33\x7C\xF3" |
| 29907 | "\xC5\xBC\x79\x95\xAA\x84\x68\x31" |
| 29908 | "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA" |
| 29909 | "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97" |
| 29910 | "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 29911 | "\x5F\x74\x8C\x86\x5B\x71\xD0\x20" |
| 29912 | "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5" |
| 29913 | "\x21\x41\x56\x72\x13\xE1\x86\x07" |
| 29914 | "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18" |
| 29915 | "\xFE\x94\x2D\x9F\xE0\x72\x18\x65" |
| 29916 | "\xB2\xA5\x63\x48\xB4\x13\x22\xF7" |
| 29917 | "\x25\xF1\x80\xA8\x7F\x54\x86\x7B" |
| 29918 | "\x39\xAE\x95\x0C\x09\x32\x22\x2D" |
| 29919 | "\x4D\x73\x39\x0C\x09\x2C\x7C\x10" |
| 29920 | "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F" |
| 29921 | "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14" |
| 29922 | "\x65\xEE\x93\x54\xD0\x66\x15\x3C" |
| 29923 | "\x4C\x68\xFD\x64\x0F\xF9\x10\x39" |
| 29924 | "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2" |
| 29925 | "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F" |
| 29926 | "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97" |
| 29927 | "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9" |
| 29928 | "\xBE\x31\x31\x96\x8B\x40\x18\x75" |
| 29929 | "\x11\x75\x14\x32\xA5\x2D\x1B\x6B" |
| 29930 | "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4" |
| 29931 | "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6" |
| 29932 | "\x71\xB0\x12\x57\x89\x0D\xC0\x2B" |
| 29933 | "\x9F\x12\x6A\x04\x67\xF1\x95\x31" |
| 29934 | "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC" |
| 29935 | "\x09\xB0\x43\x96\x4A\x64\x80\x40" |
| 29936 | "\xB9\x72\x19\xDD\x70\x42\xFA\xB1" |
| 29937 | "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C" |
| 29938 | "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB" |
| 29939 | "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6" |
| 29940 | "\x33\x0B\xF3\xD5\x01\x38\x74\xA4" |
| 29941 | "\x67\x1E\x75\x68\xC3\xAD\x76\xE9" |
| 29942 | "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A" |
| 29943 | "\x5F\xC9\x18\x94\x4B\x86\x66\xFC" |
| 29944 | "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9" |
| 29945 | "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8" |
| 29946 | "\x43\xBC\x76\x75\xBF\x6C\x05\xB3" |
| 29947 | "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61" |
| 29948 | "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0" |
| 29949 | "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12" |
| 29950 | "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E" |
| 29951 | "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3" |
| 29952 | "\x7B\xDC\xCE\x15\x97\x27\xB2\x65" |
| 29953 | "\xBC\x0E\x47\xAB\x55\x13\x53\xAB" |
| 29954 | "\x0E\x34\x55\x02\x5F\x27\xC5\x89" |
| 29955 | "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE" |
| 29956 | "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C" |
| 29957 | "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8" |
| 29958 | "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2" |
| 29959 | "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6" |
| 29960 | "\x8D\x4D\x83\x9A\xED\x29\x4E\x14" |
| 29961 | "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A" |
| 29962 | "\x72\x22\xD5\x92\x38\xF1\xA1\x86" |
| 29963 | "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3" |
| 29964 | "\x80\x56\xC3\xD7\x65\xE1\xB3\x86" |
| 29965 | "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06" |
| 29966 | "\x01\xED\xF8\x29\x91\x19\x5C\x9A" |
| 29967 | "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F" |
| 29968 | "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72" |
| 29969 | "\x80\xE7\x29\xDC\x23\x55\x98\x54" |
| 29970 | "\xB1\xFF\x3E\x95\x56\xA8\x78\x78" |
| 29971 | "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93" |
| 29972 | "\x30\x6E\x7E\x51\xBB\x42\x5F\x03" |
| 29973 | "\x43\x94\x23\x7E\xEE\xF0\xA5\x79" |
| 29974 | "\x55\x01\xD4\x58\xB2\xF2\x85\x49" |
| 29975 | "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C", |
| 29976 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 29977 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 29978 | .np = 3, |
| 29979 | .tap = { 1008 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29980 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 29981 | }; |
| 29982 | |
| 29983 | static struct cipher_testvec camellia_cbc_dec_tv_template[] = { |
| 29984 | { |
| 29985 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 29986 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 29987 | .klen = 16, |
| 29988 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 29989 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 29990 | .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7" |
| 29991 | "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", |
| 29992 | .ilen = 16, |
| 29993 | .result = "Single block msg", |
| 29994 | .rlen = 16, |
| 29995 | }, { |
| 29996 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 29997 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 29998 | .klen = 16, |
| 29999 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 30000 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 30001 | .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" |
| 30002 | "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" |
| 30003 | "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" |
| 30004 | "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", |
| 30005 | .ilen = 32, |
| 30006 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30007 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 30008 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 30009 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 30010 | .rlen = 32, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 30011 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 30012 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 30013 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 30014 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 30015 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 30016 | .klen = 32, |
| 30017 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 30018 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 30019 | .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77" |
| 30020 | "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40" |
| 30021 | "\x88\x39\xE3\xFD\x94\x4B\x25\x58" |
| 30022 | "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B" |
| 30023 | "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 30024 | "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01" |
| 30025 | "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83" |
| 30026 | "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E" |
| 30027 | "\x56\xC8\x18\x3D\x79\x86\x97\xEF" |
| 30028 | "\x57\x0E\x63\xA1\xC1\x41\x48\xB8" |
| 30029 | "\x98\xB7\x51\x6D\x18\xF6\x19\x82" |
| 30030 | "\x37\x49\x88\xA4\xEF\x91\x21\x47" |
| 30031 | "\x03\x28\xEA\x42\xF4\xFB\x7A\x58" |
| 30032 | "\x28\x90\x77\x46\xD8\xD2\x35\x16" |
| 30033 | "\x44\xA9\x9E\x49\x52\x2A\xE4\x16" |
| 30034 | "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6" |
| 30035 | "\xCF\x76\x91\x89\x8A\x94\x39\xFA" |
| 30036 | "\x6B\x5F\x63\x53\x74\x43\x91\xF5" |
| 30037 | "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F" |
| 30038 | "\x9D\x32\x84\xEB\x56\x28\xD6\x06" |
| 30039 | "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62" |
| 30040 | "\x32\xCC\x86\xC8\x36\x67\x5E\x7E" |
| 30041 | "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF" |
| 30042 | "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A" |
| 30043 | "\x9B\x78\x62\x3B\x02\x28\x60\xB3" |
| 30044 | "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47" |
| 30045 | "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28" |
| 30046 | "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70" |
| 30047 | "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94" |
| 30048 | "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C" |
| 30049 | "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0" |
| 30050 | "\x5D\x51\x54\x9A\x53\xA0\xF9\x32" |
| 30051 | "\xBD\x31\x54\x14\x7B\x33\xEE\x17" |
| 30052 | "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2" |
| 30053 | "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2" |
| 30054 | "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E" |
| 30055 | "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4" |
| 30056 | "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE" |
| 30057 | "\x40\x78\x91\x95\xC4\x2F\xA3\xE8" |
| 30058 | "\x18\xC7\x07\xA6\xC8\xC0\x66\x33" |
| 30059 | "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3" |
| 30060 | "\x40\xF5\x40\x54\xF1\x84\x8C\xEA" |
| 30061 | "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8" |
| 30062 | "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4" |
| 30063 | "\xF8\x17\x99\x8D\x58\x2D\x72\x44" |
| 30064 | "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82" |
| 30065 | "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7" |
| 30066 | "\x68\xA3\xB8\xA5\x93\x74\x2E\x85" |
| 30067 | "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF" |
| 30068 | "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B" |
| 30069 | "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18" |
| 30070 | "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B" |
| 30071 | "\x38\xB8\x48\x36\x66\x4E\x20\x43" |
| 30072 | "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52" |
| 30073 | "\xD7\xDC\xB2\x67\x63\x14\x25\xCD" |
| 30074 | "\xB1\x13\x4B\xDE\x8C\x59\x21\x84" |
| 30075 | "\x81\x8D\x97\x23\x45\x33\x7C\xF3" |
| 30076 | "\xC5\xBC\x79\x95\xAA\x84\x68\x31" |
| 30077 | "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA" |
| 30078 | "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97" |
| 30079 | "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 30080 | "\x5F\x74\x8C\x86\x5B\x71\xD0\x20" |
| 30081 | "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5" |
| 30082 | "\x21\x41\x56\x72\x13\xE1\x86\x07" |
| 30083 | "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18" |
| 30084 | "\xFE\x94\x2D\x9F\xE0\x72\x18\x65" |
| 30085 | "\xB2\xA5\x63\x48\xB4\x13\x22\xF7" |
| 30086 | "\x25\xF1\x80\xA8\x7F\x54\x86\x7B" |
| 30087 | "\x39\xAE\x95\x0C\x09\x32\x22\x2D" |
| 30088 | "\x4D\x73\x39\x0C\x09\x2C\x7C\x10" |
| 30089 | "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F" |
| 30090 | "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14" |
| 30091 | "\x65\xEE\x93\x54\xD0\x66\x15\x3C" |
| 30092 | "\x4C\x68\xFD\x64\x0F\xF9\x10\x39" |
| 30093 | "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2" |
| 30094 | "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F" |
| 30095 | "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97" |
| 30096 | "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9" |
| 30097 | "\xBE\x31\x31\x96\x8B\x40\x18\x75" |
| 30098 | "\x11\x75\x14\x32\xA5\x2D\x1B\x6B" |
| 30099 | "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4" |
| 30100 | "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6" |
| 30101 | "\x71\xB0\x12\x57\x89\x0D\xC0\x2B" |
| 30102 | "\x9F\x12\x6A\x04\x67\xF1\x95\x31" |
| 30103 | "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC" |
| 30104 | "\x09\xB0\x43\x96\x4A\x64\x80\x40" |
| 30105 | "\xB9\x72\x19\xDD\x70\x42\xFA\xB1" |
| 30106 | "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C" |
| 30107 | "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB" |
| 30108 | "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6" |
| 30109 | "\x33\x0B\xF3\xD5\x01\x38\x74\xA4" |
| 30110 | "\x67\x1E\x75\x68\xC3\xAD\x76\xE9" |
| 30111 | "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A" |
| 30112 | "\x5F\xC9\x18\x94\x4B\x86\x66\xFC" |
| 30113 | "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9" |
| 30114 | "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8" |
| 30115 | "\x43\xBC\x76\x75\xBF\x6C\x05\xB3" |
| 30116 | "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61" |
| 30117 | "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0" |
| 30118 | "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12" |
| 30119 | "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E" |
| 30120 | "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3" |
| 30121 | "\x7B\xDC\xCE\x15\x97\x27\xB2\x65" |
| 30122 | "\xBC\x0E\x47\xAB\x55\x13\x53\xAB" |
| 30123 | "\x0E\x34\x55\x02\x5F\x27\xC5\x89" |
| 30124 | "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE" |
| 30125 | "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C" |
| 30126 | "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8" |
| 30127 | "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2" |
| 30128 | "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6" |
| 30129 | "\x8D\x4D\x83\x9A\xED\x29\x4E\x14" |
| 30130 | "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A" |
| 30131 | "\x72\x22\xD5\x92\x38\xF1\xA1\x86" |
| 30132 | "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3" |
| 30133 | "\x80\x56\xC3\xD7\x65\xE1\xB3\x86" |
| 30134 | "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06" |
| 30135 | "\x01\xED\xF8\x29\x91\x19\x5C\x9A" |
| 30136 | "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F" |
| 30137 | "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72" |
| 30138 | "\x80\xE7\x29\xDC\x23\x55\x98\x54" |
| 30139 | "\xB1\xFF\x3E\x95\x56\xA8\x78\x78" |
| 30140 | "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93" |
| 30141 | "\x30\x6E\x7E\x51\xBB\x42\x5F\x03" |
| 30142 | "\x43\x94\x23\x7E\xEE\xF0\xA5\x79" |
| 30143 | "\x55\x01\xD4\x58\xB2\xF2\x85\x49" |
| 30144 | "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C", |
| 30145 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 30146 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 30147 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 30148 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 30149 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 30150 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 30151 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 30152 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 30153 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 30154 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 30155 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 30156 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 30157 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 30158 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 30159 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 30160 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 30161 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 30162 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 30163 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 30164 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 30165 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 30166 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 30167 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 30168 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 30169 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 30170 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 30171 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 30172 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 30173 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 30174 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 30175 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 30176 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 30177 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 30178 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 30179 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 30180 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 30181 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 30182 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 30183 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 30184 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 30185 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 30186 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 30187 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 30188 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 30189 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 30190 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 30191 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 30192 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 30193 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 30194 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 30195 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 30196 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 30197 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 30198 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 30199 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 30200 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 30201 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 30202 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 30203 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 30204 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 30205 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 30206 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 30207 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 30208 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 30209 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 30210 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 30211 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 30212 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 30213 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 30214 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 30215 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 30216 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 30217 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 30218 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 30219 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 30220 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 30221 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 30222 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 30223 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 30224 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 30225 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 30226 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 30227 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 30228 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 30229 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 30230 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 30231 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 30232 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 30233 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 30234 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 30235 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 30236 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 30237 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 30238 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 30239 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 30240 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 30241 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 30242 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 30243 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 30244 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 30245 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 30246 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 30247 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 30248 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 30249 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 30250 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 30251 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 30252 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 30253 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 30254 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 30255 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 30256 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 30257 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 30258 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 30259 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 30260 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 30261 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 30262 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 30263 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 30264 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 30265 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 30266 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 30267 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 30268 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 30269 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 30270 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 30271 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 30272 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 30273 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 30274 | .np = 3, |
| 30275 | .tap = { 1008 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 30276 | }, |
| 30277 | }; |
| 30278 | |
| 30279 | static struct cipher_testvec camellia_ctr_enc_tv_template[] = { |
| 30280 | { /* Generated with Crypto++ */ |
| 30281 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 30282 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 30283 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 30284 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 30285 | .klen = 32, |
| 30286 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 30287 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 30288 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 30289 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 30290 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 30291 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 30292 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 30293 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 30294 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 30295 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 30296 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 30297 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 30298 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 30299 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 30300 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 30301 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 30302 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 30303 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 30304 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 30305 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 30306 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 30307 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 30308 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 30309 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 30310 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 30311 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 30312 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 30313 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 30314 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 30315 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 30316 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 30317 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 30318 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 30319 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 30320 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 30321 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 30322 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 30323 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 30324 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 30325 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 30326 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 30327 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 30328 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 30329 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 30330 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 30331 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 30332 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 30333 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 30334 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 30335 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 30336 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 30337 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 30338 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 30339 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 30340 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 30341 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 30342 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 30343 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 30344 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 30345 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 30346 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 30347 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 30348 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 30349 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 30350 | .ilen = 496, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 30351 | .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 30352 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 30353 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 30354 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 30355 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 30356 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
| 30357 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 30358 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 30359 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 30360 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 30361 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 30362 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 30363 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 30364 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 30365 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 30366 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 30367 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 30368 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 30369 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 30370 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 30371 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 30372 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 30373 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 30374 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 30375 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 30376 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 30377 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 30378 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 30379 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 30380 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 30381 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 30382 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 30383 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 30384 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 30385 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 30386 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 30387 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 30388 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 30389 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 30390 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 30391 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 30392 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 30393 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 30394 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 30395 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 30396 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 30397 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 30398 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 30399 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 30400 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 30401 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 30402 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 30403 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 30404 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 30405 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 30406 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 30407 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 30408 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 30409 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 30410 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 30411 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 30412 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D", |
| 30413 | .rlen = 496, |
| 30414 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 30415 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 30416 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 30417 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 30418 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 30419 | .klen = 32, |
| 30420 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 30421 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 30422 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 30423 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 30424 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 30425 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 30426 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 30427 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 30428 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 30429 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 30430 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 30431 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 30432 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 30433 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 30434 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 30435 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 30436 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 30437 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 30438 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 30439 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 30440 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 30441 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 30442 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 30443 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 30444 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 30445 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 30446 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 30447 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 30448 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 30449 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 30450 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 30451 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 30452 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 30453 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 30454 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 30455 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 30456 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 30457 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 30458 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 30459 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 30460 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 30461 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 30462 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 30463 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 30464 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 30465 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 30466 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 30467 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 30468 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 30469 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 30470 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 30471 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 30472 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 30473 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 30474 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 30475 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 30476 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 30477 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 30478 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 30479 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 30480 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 30481 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 30482 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 30483 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 30484 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 30485 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 30486 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 30487 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 30488 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 30489 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 30490 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 30491 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 30492 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 30493 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 30494 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 30495 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 30496 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 30497 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 30498 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 30499 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 30500 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 30501 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 30502 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 30503 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 30504 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 30505 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 30506 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 30507 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 30508 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 30509 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 30510 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 30511 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 30512 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 30513 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 30514 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 30515 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 30516 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 30517 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 30518 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 30519 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 30520 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 30521 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 30522 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 30523 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 30524 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 30525 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 30526 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 30527 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 30528 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 30529 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 30530 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 30531 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 30532 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 30533 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 30534 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 30535 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 30536 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 30537 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 30538 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 30539 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 30540 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 30541 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 30542 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 30543 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 30544 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 30545 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 30546 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 30547 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D" |
| 30548 | "\xE4\x7B\x12", |
| 30549 | .ilen = 1011, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 30550 | .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 30551 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 30552 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 30553 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 30554 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 30555 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 30556 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 30557 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 30558 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 30559 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 30560 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 30561 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 30562 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 30563 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 30564 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 30565 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 30566 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 30567 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 30568 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 30569 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 30570 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 30571 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 30572 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 30573 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 30574 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 30575 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 30576 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 30577 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 30578 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 30579 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 30580 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 30581 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 30582 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 30583 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 30584 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 30585 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 30586 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 30587 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 30588 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 30589 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 30590 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 30591 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 30592 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 30593 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 30594 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 30595 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 30596 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 30597 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 30598 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 30599 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 30600 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 30601 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 30602 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 30603 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 30604 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 30605 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 30606 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 30607 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 30608 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 30609 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 30610 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 30611 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 30612 | "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90" |
| 30613 | "\xE5\x41\x4A\xE2\x3C\x45\x29\x35" |
| 30614 | "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32" |
| 30615 | "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7" |
| 30616 | "\x1D\x8C\x02\x72\x68\x09\xE9\xB6" |
| 30617 | "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4" |
| 30618 | "\x93\x74\xA4\xCE\x20\x23\xBF\x48" |
| 30619 | "\xA5\xDE\x1B\xFA\x40\x69\x31\x98" |
| 30620 | "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5" |
| 30621 | "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA" |
| 30622 | "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4" |
| 30623 | "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F" |
| 30624 | "\xBA\x83\x34\x3C\x42\xCC\x7D\x28" |
| 30625 | "\x29\x63\x4F\xD8\x02\x17\xC5\x07" |
| 30626 | "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09" |
| 30627 | "\x81\x45\x18\xED\xE4\xCB\x42\x3B" |
| 30628 | "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD" |
| 30629 | "\x92\xE5\x02\x97\x96\xCE\xAD\xEC" |
| 30630 | "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC" |
| 30631 | "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E" |
| 30632 | "\xCC\xF8\x5F\xDD\x65\x50\x99\x69" |
| 30633 | "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F" |
| 30634 | "\x05\x93\xB2\xE6\x59\xC8\x28\xFE" |
| 30635 | "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F" |
| 30636 | "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09" |
| 30637 | "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C" |
| 30638 | "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74" |
| 30639 | "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8" |
| 30640 | "\x81\xF5\xD5\x8A\x04\x23\x51\xAC" |
| 30641 | "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B" |
| 30642 | "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA" |
| 30643 | "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB" |
| 30644 | "\x41\x1A\x67\xA6\x40\x82\x70\x8C" |
| 30645 | "\x19\x79\x08\xA4\x51\x20\x7D\xC9" |
| 30646 | "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D" |
| 30647 | "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08" |
| 30648 | "\x00\x70\x12\x56\x56\x50\xAD\x14" |
| 30649 | "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48" |
| 30650 | "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E" |
| 30651 | "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D" |
| 30652 | "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85" |
| 30653 | "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64" |
| 30654 | "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F" |
| 30655 | "\x91\x76\xE8\x15\x66\x34\x9F\xF6" |
| 30656 | "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1" |
| 30657 | "\x38\x46\x47\xC7\x9B\xCA\xE9\x42" |
| 30658 | "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3" |
| 30659 | "\x16\xA0\xED\x42\xBE\xB5\x06\x19" |
| 30660 | "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E" |
| 30661 | "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31" |
| 30662 | "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC" |
| 30663 | "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8" |
| 30664 | "\x94\x5C\x5E\x37\x18\xAD\xED\x8B" |
| 30665 | "\x44\x86\xCA\x5E\x07\xB7\x70\x8D" |
| 30666 | "\x40\x48\x19\x73\x7C\x78\x64\x0B" |
| 30667 | "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1" |
| 30668 | "\x6B\x2C\x84\x10\x45\x42\x2E\xC3" |
| 30669 | "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46" |
| 30670 | "\x74\x28\x9D\x05\x30\x20\x62\x41" |
| 30671 | "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26" |
| 30672 | "\xDF\x58\x51\xED\xFA\xDC\x87\x79" |
| 30673 | "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA" |
| 30674 | "\x45\xE3\x35\x0D\x69\x91\x54\x1C" |
| 30675 | "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C" |
| 30676 | "\xF1\x6B\xD9", |
| 30677 | .rlen = 1011, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 30678 | .also_non_np = 1, |
| 30679 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 30680 | .tap = { 1011 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 30681 | }, { /* Generated with Crypto++ */ |
| 30682 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 30683 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 30684 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 30685 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 30686 | .klen = 32, |
| 30687 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 30688 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 30689 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 30690 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 30691 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 30692 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 30693 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 30694 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 30695 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 30696 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 30697 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 30698 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 30699 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 30700 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 30701 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 30702 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 30703 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 30704 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 30705 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 30706 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 30707 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 30708 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 30709 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 30710 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 30711 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 30712 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 30713 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 30714 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 30715 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 30716 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 30717 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 30718 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 30719 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 30720 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 30721 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 30722 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 30723 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 30724 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 30725 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 30726 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 30727 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 30728 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 30729 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 30730 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 30731 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 30732 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 30733 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 30734 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 30735 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 30736 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 30737 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 30738 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 30739 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 30740 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 30741 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 30742 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 30743 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 30744 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 30745 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 30746 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 30747 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 30748 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 30749 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 30750 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 30751 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 30752 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 30753 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 30754 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 30755 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 30756 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 30757 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 30758 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 30759 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 30760 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 30761 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 30762 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 30763 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 30764 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 30765 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 30766 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 30767 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 30768 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 30769 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 30770 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 30771 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 30772 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 30773 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 30774 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 30775 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 30776 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 30777 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 30778 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 30779 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 30780 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 30781 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 30782 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 30783 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 30784 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 30785 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 30786 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 30787 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 30788 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 30789 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 30790 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 30791 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 30792 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 30793 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 30794 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 30795 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 30796 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 30797 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 30798 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 30799 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 30800 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 30801 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 30802 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 30803 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 30804 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 30805 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 30806 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 30807 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 30808 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 30809 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 30810 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 30811 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 30812 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 30813 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 30814 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 30815 | .ilen = 1008, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 30816 | .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9" |
| 30817 | "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E" |
| 30818 | "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB" |
| 30819 | "\xF7\xC4\x27\x04\x51\x87\xD7\x6F" |
| 30820 | "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4" |
| 30821 | "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48" |
| 30822 | "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A" |
| 30823 | "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B" |
| 30824 | "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07" |
| 30825 | "\x2C\x56\x07\x5E\x37\x30\x60\xA9" |
| 30826 | "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64" |
| 30827 | "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43" |
| 30828 | "\x23\x35\x95\x91\x80\x8A\xC7\xCF" |
| 30829 | "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B" |
| 30830 | "\x05\x19\x48\xE2\x62\xBA\x4F\xF2" |
| 30831 | "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10" |
| 30832 | "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD" |
| 30833 | "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96" |
| 30834 | "\xD9\x0F\x90\x5A\x78\x76\x4D\x77" |
| 30835 | "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD" |
| 30836 | "\xE4\xE8\x20\x2D\x15\x0A\x63\x49" |
| 30837 | "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78" |
| 30838 | "\x28\x07\x09\x1B\x03\x94\x1D\x4B" |
| 30839 | "\x82\x28\x1E\x1D\x95\xBA\xAC\x85" |
| 30840 | "\x71\x6E\x3C\x18\x4B\x77\x74\x79" |
| 30841 | "\xBF\x67\x0A\x53\x3C\x94\xD9\x60" |
| 30842 | "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D" |
| 30843 | "\x27\xD5\x47\xF9\xC3\x4B\x27\x29" |
| 30844 | "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC" |
| 30845 | "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B" |
| 30846 | "\x70\x1C\x84\x81\x72\x4D\xB4\x98" |
| 30847 | "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2" |
| 30848 | "\xFF\xF5\x71\x07\xCD\x90\x23\x13" |
| 30849 | "\x19\xD7\x79\x36\x6C\x9D\x55\x8B" |
| 30850 | "\x93\x78\x86\x05\x69\x46\xD0\xC5" |
| 30851 | "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE" |
| 30852 | "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C" |
| 30853 | "\x83\x4B\xD8\x75\x9C\x18\x04\x7B" |
| 30854 | "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B" |
| 30855 | "\xCC\x01\x45\x90\xA6\x43\x05\x0C" |
| 30856 | "\x6C\x4F\x62\x77\x57\x97\x9F\xEE" |
| 30857 | "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E" |
| 30858 | "\x2C\x43\x98\xFB\x13\x65\x73\xE4" |
| 30859 | "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99" |
| 30860 | "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32" |
| 30861 | "\x17\xC2\xCC\x20\xA1\x19\x26\xAA" |
| 30862 | "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF" |
| 30863 | "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56" |
| 30864 | "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24" |
| 30865 | "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54" |
| 30866 | "\x10\x7F\x50\xDE\x69\x77\xD5\x37" |
| 30867 | "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53" |
| 30868 | "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57" |
| 30869 | "\x3A\xE6\x75\xFE\x89\x00\x6E\x48" |
| 30870 | "\xFB\x99\x17\x2C\xF6\x64\x40\x95" |
| 30871 | "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD" |
| 30872 | "\x52\x05\x24\x34\xF9\x0E\xC8\x64" |
| 30873 | "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE" |
| 30874 | "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22" |
| 30875 | "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E" |
| 30876 | "\x12\xA8\x01\x64\x16\x0B\x26\x5A" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 30877 | "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C" |
| 30878 | "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6" |
| 30879 | "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3" |
| 30880 | "\x3F\x23\x69\x63\x56\x96\x45\xD6" |
| 30881 | "\x74\x23\x1D\x5C\x63\xCC\xD8\x78" |
| 30882 | "\x16\xE2\x9C\xD2\x80\x02\xF2\x28" |
| 30883 | "\x69\x2F\xC4\xA8\x15\x15\x24\x3B" |
| 30884 | "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1" |
| 30885 | "\x03\x58\x1B\x33\x77\x74\x1F\xB4" |
| 30886 | "\x07\x86\xF2\x21\xB7\x41\xAE\xBF" |
| 30887 | "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4" |
| 30888 | "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D" |
| 30889 | "\xF8\x04\xBB\x6D\x62\x33\x87\x26" |
| 30890 | "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09" |
| 30891 | "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E" |
| 30892 | "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A" |
| 30893 | "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF" |
| 30894 | "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C" |
| 30895 | "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11" |
| 30896 | "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD" |
| 30897 | "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB" |
| 30898 | "\xC3\x14\x84\x72\xFD\x41\xDC\xBD" |
| 30899 | "\x75\xBE\xA8\xE5\x16\x48\x64\x39" |
| 30900 | "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D" |
| 30901 | "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D" |
| 30902 | "\x0B\x29\x10\x15\x0E\x13\x3B\xAC" |
| 30903 | "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02" |
| 30904 | "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21" |
| 30905 | "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0" |
| 30906 | "\xF8\x09\xAF\xE4\x31\x26\x92\x2F" |
| 30907 | "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34" |
| 30908 | "\xBE\x50\xB1\x02\x22\x96\xE3\x40" |
| 30909 | "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0" |
| 30910 | "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B" |
| 30911 | "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36" |
| 30912 | "\xD2\x0A\x32\x06\x97\x34\xB9\xF4" |
| 30913 | "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A" |
| 30914 | "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D" |
| 30915 | "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E" |
| 30916 | "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7" |
| 30917 | "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E" |
| 30918 | "\x2C\x07\xD2\x43\x5F\x57\x93\xCA" |
| 30919 | "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1" |
| 30920 | "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E" |
| 30921 | "\x68\xC6\x47\xB9\x76\xCC\x65\x5F" |
| 30922 | "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37" |
| 30923 | "\x5F\x41\xED\x64\x6C\xAD\x5F\xED" |
| 30924 | "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F" |
| 30925 | "\xC2\xC7\xED\x18\x43\xE1\x20\x86" |
| 30926 | "\x5D\xBC\x30\x70\x22\xA1\xDC\x53" |
| 30927 | "\x10\x3A\x8D\x47\x82\xCD\x7F\x59" |
| 30928 | "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07" |
| 30929 | "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5" |
| 30930 | "\xED\x47\x83\xBC\x5F\x62\x84\xDA" |
| 30931 | "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8" |
| 30932 | "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A" |
| 30933 | "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6" |
| 30934 | "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE" |
| 30935 | "\x37\x9E\x29\xF9\x2A\x18\x73\x0D" |
| 30936 | "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA" |
| 30937 | "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56" |
| 30938 | "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C" |
| 30939 | "\xC5\x9B\x03\x70\x29\x2A\x49\x09" |
| 30940 | "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71" |
| 30941 | "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36", |
| 30942 | .rlen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 30943 | }, |
| 30944 | }; |
| 30945 | |
| 30946 | static struct cipher_testvec camellia_ctr_dec_tv_template[] = { |
| 30947 | { /* Generated with Crypto++ */ |
| 30948 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 30949 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 30950 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 30951 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 30952 | .klen = 32, |
| 30953 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 30954 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 30955 | .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 30956 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 30957 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 30958 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 30959 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 30960 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
| 30961 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 30962 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 30963 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 30964 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 30965 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 30966 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 30967 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 30968 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 30969 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 30970 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 30971 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 30972 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 30973 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 30974 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 30975 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 30976 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 30977 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 30978 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 30979 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 30980 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 30981 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 30982 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 30983 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 30984 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 30985 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 30986 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 30987 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 30988 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 30989 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 30990 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 30991 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 30992 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 30993 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 30994 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 30995 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 30996 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 30997 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 30998 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 30999 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 31000 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 31001 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 31002 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 31003 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 31004 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 31005 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 31006 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 31007 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 31008 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 31009 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 31010 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 31011 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 31012 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 31013 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 31014 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 31015 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 31016 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D", |
| 31017 | .ilen = 496, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 31018 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 31019 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 31020 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 31021 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 31022 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 31023 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 31024 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 31025 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 31026 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 31027 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 31028 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 31029 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 31030 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 31031 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 31032 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 31033 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 31034 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 31035 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 31036 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 31037 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 31038 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 31039 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 31040 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 31041 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 31042 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 31043 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 31044 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 31045 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 31046 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 31047 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 31048 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 31049 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 31050 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 31051 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 31052 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 31053 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 31054 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 31055 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 31056 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 31057 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 31058 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 31059 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 31060 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 31061 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 31062 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 31063 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 31064 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 31065 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 31066 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 31067 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 31068 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 31069 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 31070 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 31071 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 31072 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 31073 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 31074 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 31075 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 31076 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 31077 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 31078 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 31079 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 31080 | .rlen = 496, |
| 31081 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 31082 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 31083 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 31084 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 31085 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 31086 | .klen = 32, |
| 31087 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 31088 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 31089 | .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 31090 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 31091 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 31092 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 31093 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 31094 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 31095 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 31096 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 31097 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 31098 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 31099 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 31100 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 31101 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 31102 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 31103 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 31104 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 31105 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 31106 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 31107 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 31108 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 31109 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 31110 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 31111 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 31112 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 31113 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 31114 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 31115 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 31116 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 31117 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 31118 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 31119 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 31120 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 31121 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 31122 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 31123 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 31124 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 31125 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 31126 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 31127 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 31128 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 31129 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 31130 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 31131 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 31132 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 31133 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 31134 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 31135 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 31136 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 31137 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 31138 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 31139 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 31140 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 31141 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 31142 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 31143 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 31144 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 31145 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 31146 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 31147 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 31148 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 31149 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 31150 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 31151 | "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90" |
| 31152 | "\xE5\x41\x4A\xE2\x3C\x45\x29\x35" |
| 31153 | "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32" |
| 31154 | "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7" |
| 31155 | "\x1D\x8C\x02\x72\x68\x09\xE9\xB6" |
| 31156 | "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4" |
| 31157 | "\x93\x74\xA4\xCE\x20\x23\xBF\x48" |
| 31158 | "\xA5\xDE\x1B\xFA\x40\x69\x31\x98" |
| 31159 | "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5" |
| 31160 | "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA" |
| 31161 | "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4" |
| 31162 | "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F" |
| 31163 | "\xBA\x83\x34\x3C\x42\xCC\x7D\x28" |
| 31164 | "\x29\x63\x4F\xD8\x02\x17\xC5\x07" |
| 31165 | "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09" |
| 31166 | "\x81\x45\x18\xED\xE4\xCB\x42\x3B" |
| 31167 | "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD" |
| 31168 | "\x92\xE5\x02\x97\x96\xCE\xAD\xEC" |
| 31169 | "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC" |
| 31170 | "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E" |
| 31171 | "\xCC\xF8\x5F\xDD\x65\x50\x99\x69" |
| 31172 | "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F" |
| 31173 | "\x05\x93\xB2\xE6\x59\xC8\x28\xFE" |
| 31174 | "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F" |
| 31175 | "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09" |
| 31176 | "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C" |
| 31177 | "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74" |
| 31178 | "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8" |
| 31179 | "\x81\xF5\xD5\x8A\x04\x23\x51\xAC" |
| 31180 | "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B" |
| 31181 | "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA" |
| 31182 | "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB" |
| 31183 | "\x41\x1A\x67\xA6\x40\x82\x70\x8C" |
| 31184 | "\x19\x79\x08\xA4\x51\x20\x7D\xC9" |
| 31185 | "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D" |
| 31186 | "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08" |
| 31187 | "\x00\x70\x12\x56\x56\x50\xAD\x14" |
| 31188 | "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48" |
| 31189 | "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E" |
| 31190 | "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D" |
| 31191 | "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85" |
| 31192 | "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64" |
| 31193 | "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F" |
| 31194 | "\x91\x76\xE8\x15\x66\x34\x9F\xF6" |
| 31195 | "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1" |
| 31196 | "\x38\x46\x47\xC7\x9B\xCA\xE9\x42" |
| 31197 | "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3" |
| 31198 | "\x16\xA0\xED\x42\xBE\xB5\x06\x19" |
| 31199 | "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E" |
| 31200 | "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31" |
| 31201 | "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC" |
| 31202 | "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8" |
| 31203 | "\x94\x5C\x5E\x37\x18\xAD\xED\x8B" |
| 31204 | "\x44\x86\xCA\x5E\x07\xB7\x70\x8D" |
| 31205 | "\x40\x48\x19\x73\x7C\x78\x64\x0B" |
| 31206 | "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1" |
| 31207 | "\x6B\x2C\x84\x10\x45\x42\x2E\xC3" |
| 31208 | "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46" |
| 31209 | "\x74\x28\x9D\x05\x30\x20\x62\x41" |
| 31210 | "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26" |
| 31211 | "\xDF\x58\x51\xED\xFA\xDC\x87\x79" |
| 31212 | "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA" |
| 31213 | "\x45\xE3\x35\x0D\x69\x91\x54\x1C" |
| 31214 | "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C" |
| 31215 | "\xF1\x6B\xD9", |
| 31216 | .ilen = 1011, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 31217 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 31218 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 31219 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 31220 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 31221 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 31222 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 31223 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 31224 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 31225 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 31226 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 31227 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 31228 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 31229 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 31230 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 31231 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 31232 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 31233 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 31234 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 31235 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 31236 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 31237 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 31238 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 31239 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 31240 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 31241 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 31242 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 31243 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 31244 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 31245 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 31246 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 31247 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 31248 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 31249 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 31250 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 31251 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 31252 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 31253 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 31254 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 31255 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 31256 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 31257 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 31258 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 31259 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 31260 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 31261 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 31262 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 31263 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 31264 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 31265 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 31266 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 31267 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 31268 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 31269 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 31270 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 31271 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 31272 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 31273 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 31274 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 31275 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 31276 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 31277 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 31278 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 31279 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 31280 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 31281 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 31282 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 31283 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 31284 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 31285 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 31286 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 31287 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 31288 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 31289 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 31290 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 31291 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 31292 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 31293 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 31294 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 31295 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 31296 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 31297 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 31298 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 31299 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 31300 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 31301 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 31302 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 31303 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 31304 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 31305 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 31306 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 31307 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 31308 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 31309 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 31310 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 31311 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 31312 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 31313 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 31314 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 31315 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 31316 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 31317 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 31318 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 31319 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 31320 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 31321 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 31322 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 31323 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 31324 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 31325 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 31326 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 31327 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 31328 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 31329 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 31330 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 31331 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 31332 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 31333 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 31334 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 31335 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 31336 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 31337 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 31338 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 31339 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 31340 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 31341 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 31342 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D" |
| 31343 | "\xE4\x7B\x12", |
| 31344 | .rlen = 1011, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 31345 | .also_non_np = 1, |
| 31346 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 31347 | .tap = { 1011 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 31348 | }, { /* Generated with Crypto++ */ |
| 31349 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 31350 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 31351 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 31352 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 31353 | .klen = 32, |
| 31354 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 31355 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 31356 | .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9" |
| 31357 | "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E" |
| 31358 | "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB" |
| 31359 | "\xF7\xC4\x27\x04\x51\x87\xD7\x6F" |
| 31360 | "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4" |
| 31361 | "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48" |
| 31362 | "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A" |
| 31363 | "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B" |
| 31364 | "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07" |
| 31365 | "\x2C\x56\x07\x5E\x37\x30\x60\xA9" |
| 31366 | "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64" |
| 31367 | "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43" |
| 31368 | "\x23\x35\x95\x91\x80\x8A\xC7\xCF" |
| 31369 | "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B" |
| 31370 | "\x05\x19\x48\xE2\x62\xBA\x4F\xF2" |
| 31371 | "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10" |
| 31372 | "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD" |
| 31373 | "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96" |
| 31374 | "\xD9\x0F\x90\x5A\x78\x76\x4D\x77" |
| 31375 | "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD" |
| 31376 | "\xE4\xE8\x20\x2D\x15\x0A\x63\x49" |
| 31377 | "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78" |
| 31378 | "\x28\x07\x09\x1B\x03\x94\x1D\x4B" |
| 31379 | "\x82\x28\x1E\x1D\x95\xBA\xAC\x85" |
| 31380 | "\x71\x6E\x3C\x18\x4B\x77\x74\x79" |
| 31381 | "\xBF\x67\x0A\x53\x3C\x94\xD9\x60" |
| 31382 | "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D" |
| 31383 | "\x27\xD5\x47\xF9\xC3\x4B\x27\x29" |
| 31384 | "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC" |
| 31385 | "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B" |
| 31386 | "\x70\x1C\x84\x81\x72\x4D\xB4\x98" |
| 31387 | "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2" |
| 31388 | "\xFF\xF5\x71\x07\xCD\x90\x23\x13" |
| 31389 | "\x19\xD7\x79\x36\x6C\x9D\x55\x8B" |
| 31390 | "\x93\x78\x86\x05\x69\x46\xD0\xC5" |
| 31391 | "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE" |
| 31392 | "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C" |
| 31393 | "\x83\x4B\xD8\x75\x9C\x18\x04\x7B" |
| 31394 | "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B" |
| 31395 | "\xCC\x01\x45\x90\xA6\x43\x05\x0C" |
| 31396 | "\x6C\x4F\x62\x77\x57\x97\x9F\xEE" |
| 31397 | "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E" |
| 31398 | "\x2C\x43\x98\xFB\x13\x65\x73\xE4" |
| 31399 | "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99" |
| 31400 | "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32" |
| 31401 | "\x17\xC2\xCC\x20\xA1\x19\x26\xAA" |
| 31402 | "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF" |
| 31403 | "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56" |
| 31404 | "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24" |
| 31405 | "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54" |
| 31406 | "\x10\x7F\x50\xDE\x69\x77\xD5\x37" |
| 31407 | "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53" |
| 31408 | "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57" |
| 31409 | "\x3A\xE6\x75\xFE\x89\x00\x6E\x48" |
| 31410 | "\xFB\x99\x17\x2C\xF6\x64\x40\x95" |
| 31411 | "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD" |
| 31412 | "\x52\x05\x24\x34\xF9\x0E\xC8\x64" |
| 31413 | "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE" |
| 31414 | "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22" |
| 31415 | "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E" |
| 31416 | "\x12\xA8\x01\x64\x16\x0B\x26\x5A" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 31417 | "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C" |
| 31418 | "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6" |
| 31419 | "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3" |
| 31420 | "\x3F\x23\x69\x63\x56\x96\x45\xD6" |
| 31421 | "\x74\x23\x1D\x5C\x63\xCC\xD8\x78" |
| 31422 | "\x16\xE2\x9C\xD2\x80\x02\xF2\x28" |
| 31423 | "\x69\x2F\xC4\xA8\x15\x15\x24\x3B" |
| 31424 | "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1" |
| 31425 | "\x03\x58\x1B\x33\x77\x74\x1F\xB4" |
| 31426 | "\x07\x86\xF2\x21\xB7\x41\xAE\xBF" |
| 31427 | "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4" |
| 31428 | "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D" |
| 31429 | "\xF8\x04\xBB\x6D\x62\x33\x87\x26" |
| 31430 | "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09" |
| 31431 | "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E" |
| 31432 | "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A" |
| 31433 | "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF" |
| 31434 | "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C" |
| 31435 | "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11" |
| 31436 | "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD" |
| 31437 | "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB" |
| 31438 | "\xC3\x14\x84\x72\xFD\x41\xDC\xBD" |
| 31439 | "\x75\xBE\xA8\xE5\x16\x48\x64\x39" |
| 31440 | "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D" |
| 31441 | "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D" |
| 31442 | "\x0B\x29\x10\x15\x0E\x13\x3B\xAC" |
| 31443 | "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02" |
| 31444 | "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21" |
| 31445 | "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0" |
| 31446 | "\xF8\x09\xAF\xE4\x31\x26\x92\x2F" |
| 31447 | "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34" |
| 31448 | "\xBE\x50\xB1\x02\x22\x96\xE3\x40" |
| 31449 | "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0" |
| 31450 | "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B" |
| 31451 | "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36" |
| 31452 | "\xD2\x0A\x32\x06\x97\x34\xB9\xF4" |
| 31453 | "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A" |
| 31454 | "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D" |
| 31455 | "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E" |
| 31456 | "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7" |
| 31457 | "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E" |
| 31458 | "\x2C\x07\xD2\x43\x5F\x57\x93\xCA" |
| 31459 | "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1" |
| 31460 | "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E" |
| 31461 | "\x68\xC6\x47\xB9\x76\xCC\x65\x5F" |
| 31462 | "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37" |
| 31463 | "\x5F\x41\xED\x64\x6C\xAD\x5F\xED" |
| 31464 | "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F" |
| 31465 | "\xC2\xC7\xED\x18\x43\xE1\x20\x86" |
| 31466 | "\x5D\xBC\x30\x70\x22\xA1\xDC\x53" |
| 31467 | "\x10\x3A\x8D\x47\x82\xCD\x7F\x59" |
| 31468 | "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07" |
| 31469 | "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5" |
| 31470 | "\xED\x47\x83\xBC\x5F\x62\x84\xDA" |
| 31471 | "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8" |
| 31472 | "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A" |
| 31473 | "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6" |
| 31474 | "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE" |
| 31475 | "\x37\x9E\x29\xF9\x2A\x18\x73\x0D" |
| 31476 | "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA" |
| 31477 | "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56" |
| 31478 | "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C" |
| 31479 | "\xC5\x9B\x03\x70\x29\x2A\x49\x09" |
| 31480 | "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71" |
| 31481 | "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36", |
| 31482 | .ilen = 1008, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 31483 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 31484 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 31485 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 31486 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 31487 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 31488 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 31489 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 31490 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 31491 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 31492 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 31493 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 31494 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 31495 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 31496 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 31497 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 31498 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 31499 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 31500 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 31501 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 31502 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 31503 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 31504 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 31505 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 31506 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 31507 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 31508 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 31509 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 31510 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 31511 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 31512 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 31513 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 31514 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 31515 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 31516 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 31517 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 31518 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 31519 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 31520 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 31521 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 31522 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 31523 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 31524 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 31525 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 31526 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 31527 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 31528 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 31529 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 31530 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 31531 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 31532 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 31533 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 31534 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 31535 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 31536 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 31537 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 31538 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 31539 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 31540 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 31541 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 31542 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 31543 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 31544 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 31545 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 31546 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 31547 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 31548 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 31549 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 31550 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 31551 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 31552 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 31553 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 31554 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 31555 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 31556 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 31557 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 31558 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 31559 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 31560 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 31561 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 31562 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 31563 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 31564 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 31565 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 31566 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 31567 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 31568 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 31569 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 31570 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 31571 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 31572 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 31573 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 31574 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 31575 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 31576 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 31577 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 31578 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 31579 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 31580 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 31581 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 31582 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 31583 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 31584 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 31585 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 31586 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 31587 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 31588 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 31589 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 31590 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 31591 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 31592 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 31593 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 31594 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 31595 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 31596 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 31597 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 31598 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 31599 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 31600 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 31601 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 31602 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 31603 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 31604 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 31605 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 31606 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 31607 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 31608 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 31609 | .rlen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 31610 | }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 31611 | }; |
| 31612 | |
| 31613 | static struct cipher_testvec camellia_lrw_enc_tv_template[] = { |
| 31614 | /* Generated from AES-LRW test vectors */ |
| 31615 | { |
| 31616 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 31617 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 31618 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 31619 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 31620 | .klen = 32, |
| 31621 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31622 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31623 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31624 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31625 | .ilen = 16, |
| 31626 | .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31" |
| 31627 | "\x97\xcc\x72\xbe\x99\x17\xeb\x3e", |
| 31628 | .rlen = 16, |
| 31629 | }, { |
| 31630 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 31631 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 31632 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 31633 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 31634 | .klen = 32, |
| 31635 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31636 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 31637 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31638 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31639 | .ilen = 16, |
| 31640 | .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50" |
| 31641 | "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a", |
| 31642 | .rlen = 16, |
| 31643 | }, { |
| 31644 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 31645 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 31646 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 31647 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 31648 | .klen = 32, |
| 31649 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31650 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 31651 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31652 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31653 | .ilen = 16, |
| 31654 | .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91" |
| 31655 | "\xfa\xa9\xb7\x98\xe3\xed\x87\x01", |
| 31656 | .rlen = 16, |
| 31657 | }, { |
| 31658 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 31659 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 31660 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 31661 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 31662 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 31663 | .klen = 40, |
| 31664 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31665 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31666 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31667 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31668 | .ilen = 16, |
| 31669 | .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0" |
| 31670 | "\xd8\x83\xef\xd9\x07\x16\x5f\x35", |
| 31671 | .rlen = 16, |
| 31672 | }, { |
| 31673 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 31674 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 31675 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 31676 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 31677 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 31678 | .klen = 40, |
| 31679 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31680 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 31681 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31682 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31683 | .ilen = 16, |
| 31684 | .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e" |
| 31685 | "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15", |
| 31686 | .rlen = 16, |
| 31687 | }, { |
| 31688 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 31689 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 31690 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 31691 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 31692 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 31693 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 31694 | .klen = 48, |
| 31695 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31696 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31697 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31698 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31699 | .ilen = 16, |
| 31700 | .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9" |
| 31701 | "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d", |
| 31702 | .rlen = 16, |
| 31703 | }, { |
| 31704 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 31705 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 31706 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 31707 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 31708 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 31709 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 31710 | .klen = 48, |
| 31711 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31712 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 31713 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31714 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31715 | .ilen = 16, |
| 31716 | .result = "\x04\xab\x28\x37\x31\x7a\x26\xab" |
| 31717 | "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff", |
| 31718 | .rlen = 16, |
| 31719 | }, { |
| 31720 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 31721 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 31722 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 31723 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 31724 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 31725 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 31726 | .klen = 48, |
| 31727 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31728 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31729 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 31730 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 31731 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 31732 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 31733 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 31734 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 31735 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 31736 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 31737 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 31738 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 31739 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 31740 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 31741 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 31742 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 31743 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 31744 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 31745 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 31746 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 31747 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 31748 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 31749 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 31750 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 31751 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 31752 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 31753 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 31754 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 31755 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 31756 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 31757 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 31758 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 31759 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 31760 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 31761 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 31762 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 31763 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 31764 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 31765 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 31766 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 31767 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 31768 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 31769 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 31770 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 31771 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 31772 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 31773 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 31774 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 31775 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 31776 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 31777 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 31778 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 31779 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 31780 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 31781 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 31782 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 31783 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 31784 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 31785 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 31786 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 31787 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 31788 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 31789 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 31790 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 31791 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 31792 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 31793 | .ilen = 512, |
| 31794 | .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9" |
| 31795 | "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96" |
| 31796 | "\x67\x76\xac\x2c\xd2\x63\x18\x93" |
| 31797 | "\x13\xf8\xf1\xf6\x71\x77\xb3\xee" |
| 31798 | "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f" |
| 31799 | "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06" |
| 31800 | "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1" |
| 31801 | "\x62\xdd\x78\x81\xea\x1d\xef\x04" |
| 31802 | "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1" |
| 31803 | "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2" |
| 31804 | "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0" |
| 31805 | "\x40\x41\x69\xaa\x71\xc0\x37\xec" |
| 31806 | "\x39\xf3\xf2\xec\x82\xc3\x88\x79" |
| 31807 | "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80" |
| 31808 | "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c" |
| 31809 | "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1" |
| 31810 | "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12" |
| 31811 | "\x6f\x75\xc7\x80\x99\x50\x84\xcf" |
| 31812 | "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e" |
| 31813 | "\xb9\xb3\xde\x7a\x93\x14\x12\xa2" |
| 31814 | "\xf7\x43\xb3\x9d\x1a\x87\x65\x91" |
| 31815 | "\x42\x08\x40\x82\x06\x1c\x2d\x55" |
| 31816 | "\x6e\x48\xd5\x74\x07\x6e\x9d\x80" |
| 31817 | "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74" |
| 31818 | "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c" |
| 31819 | "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9" |
| 31820 | "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83" |
| 31821 | "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b" |
| 31822 | "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0" |
| 31823 | "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1" |
| 31824 | "\xed\x14\xa9\x57\x19\x63\x40\x04" |
| 31825 | "\x24\xeb\x6e\x19\xd1\x3d\x70\x78" |
| 31826 | "\xeb\xda\x55\x70\x2c\x4f\x41\x5b" |
| 31827 | "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3" |
| 31828 | "\x21\xec\xd7\xd2\x55\x32\x7c\x2e" |
| 31829 | "\x3c\x48\x8e\xb4\x85\x35\x47\xfe" |
| 31830 | "\xe2\x88\x79\x98\x6a\xc9\x8d\xff" |
| 31831 | "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd" |
| 31832 | "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99" |
| 31833 | "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75" |
| 31834 | "\x23\x52\x76\xc3\x50\x6e\x66\xf8" |
| 31835 | "\xa2\xe2\xce\xba\x40\x21\x3f\xc9" |
| 31836 | "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf" |
| 31837 | "\xd3\xdf\x57\x59\x83\xb8\xe1\x85" |
| 31838 | "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f" |
| 31839 | "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a" |
| 31840 | "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76" |
| 31841 | "\x2f\x1c\x1a\x30\xed\x95\x2a\x44" |
| 31842 | "\x35\xa5\x83\x04\x84\x01\x99\x56" |
| 31843 | "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd" |
| 31844 | "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c" |
| 31845 | "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d" |
| 31846 | "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77" |
| 31847 | "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b" |
| 31848 | "\x30\xed\x1a\x50\x19\xef\xc4\x2c" |
| 31849 | "\x02\xd9\xc5\xd3\x11\x33\x37\xe5" |
| 31850 | "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d" |
| 31851 | "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96" |
| 31852 | "\x91\xc3\x94\x24\xa5\x12\xa2\x37" |
| 31853 | "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe" |
| 31854 | "\x79\x92\x3e\xe6\x1b\x49\x57\x5d" |
| 31855 | "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1" |
| 31856 | "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9" |
| 31857 | "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95", |
| 31858 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 31859 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 31860 | .np = 3, |
| 31861 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 31862 | }, |
| 31863 | }; |
| 31864 | |
| 31865 | static struct cipher_testvec camellia_lrw_dec_tv_template[] = { |
| 31866 | /* Generated from AES-LRW test vectors */ |
| 31867 | /* same as enc vectors with input and result reversed */ |
| 31868 | { |
| 31869 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 31870 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 31871 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 31872 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 31873 | .klen = 32, |
| 31874 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31875 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31876 | .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31" |
| 31877 | "\x97\xcc\x72\xbe\x99\x17\xeb\x3e", |
| 31878 | .ilen = 16, |
| 31879 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31880 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31881 | .rlen = 16, |
| 31882 | }, { |
| 31883 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 31884 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 31885 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 31886 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 31887 | .klen = 32, |
| 31888 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31889 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 31890 | .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50" |
| 31891 | "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a", |
| 31892 | .ilen = 16, |
| 31893 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31894 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31895 | .rlen = 16, |
| 31896 | }, { |
| 31897 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 31898 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 31899 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 31900 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 31901 | .klen = 32, |
| 31902 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31903 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 31904 | .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91" |
| 31905 | "\xfa\xa9\xb7\x98\xe3\xed\x87\x01", |
| 31906 | .ilen = 16, |
| 31907 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31908 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31909 | .rlen = 16, |
| 31910 | }, { |
| 31911 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 31912 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 31913 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 31914 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 31915 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 31916 | .klen = 40, |
| 31917 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31918 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31919 | .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0" |
| 31920 | "\xd8\x83\xef\xd9\x07\x16\x5f\x35", |
| 31921 | .ilen = 16, |
| 31922 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31923 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31924 | .rlen = 16, |
| 31925 | }, { |
| 31926 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 31927 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 31928 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 31929 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 31930 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 31931 | .klen = 40, |
| 31932 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31933 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 31934 | .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e" |
| 31935 | "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15", |
| 31936 | .ilen = 16, |
| 31937 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31938 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31939 | .rlen = 16, |
| 31940 | }, { |
| 31941 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 31942 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 31943 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 31944 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 31945 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 31946 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 31947 | .klen = 48, |
| 31948 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31949 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31950 | .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9" |
| 31951 | "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d", |
| 31952 | .ilen = 16, |
| 31953 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31954 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31955 | .rlen = 16, |
| 31956 | }, { |
| 31957 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 31958 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 31959 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 31960 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 31961 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 31962 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 31963 | .klen = 48, |
| 31964 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31965 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 31966 | .input = "\x04\xab\x28\x37\x31\x7a\x26\xab" |
| 31967 | "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff", |
| 31968 | .ilen = 16, |
| 31969 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 31970 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 31971 | .rlen = 16, |
| 31972 | }, { |
| 31973 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 31974 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 31975 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 31976 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 31977 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 31978 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 31979 | .klen = 48, |
| 31980 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31981 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31982 | .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9" |
| 31983 | "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96" |
| 31984 | "\x67\x76\xac\x2c\xd2\x63\x18\x93" |
| 31985 | "\x13\xf8\xf1\xf6\x71\x77\xb3\xee" |
| 31986 | "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f" |
| 31987 | "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06" |
| 31988 | "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1" |
| 31989 | "\x62\xdd\x78\x81\xea\x1d\xef\x04" |
| 31990 | "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1" |
| 31991 | "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2" |
| 31992 | "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0" |
| 31993 | "\x40\x41\x69\xaa\x71\xc0\x37\xec" |
| 31994 | "\x39\xf3\xf2\xec\x82\xc3\x88\x79" |
| 31995 | "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80" |
| 31996 | "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c" |
| 31997 | "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1" |
| 31998 | "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12" |
| 31999 | "\x6f\x75\xc7\x80\x99\x50\x84\xcf" |
| 32000 | "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e" |
| 32001 | "\xb9\xb3\xde\x7a\x93\x14\x12\xa2" |
| 32002 | "\xf7\x43\xb3\x9d\x1a\x87\x65\x91" |
| 32003 | "\x42\x08\x40\x82\x06\x1c\x2d\x55" |
| 32004 | "\x6e\x48\xd5\x74\x07\x6e\x9d\x80" |
| 32005 | "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74" |
| 32006 | "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c" |
| 32007 | "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9" |
| 32008 | "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83" |
| 32009 | "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b" |
| 32010 | "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0" |
| 32011 | "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1" |
| 32012 | "\xed\x14\xa9\x57\x19\x63\x40\x04" |
| 32013 | "\x24\xeb\x6e\x19\xd1\x3d\x70\x78" |
| 32014 | "\xeb\xda\x55\x70\x2c\x4f\x41\x5b" |
| 32015 | "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3" |
| 32016 | "\x21\xec\xd7\xd2\x55\x32\x7c\x2e" |
| 32017 | "\x3c\x48\x8e\xb4\x85\x35\x47\xfe" |
| 32018 | "\xe2\x88\x79\x98\x6a\xc9\x8d\xff" |
| 32019 | "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd" |
| 32020 | "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99" |
| 32021 | "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75" |
| 32022 | "\x23\x52\x76\xc3\x50\x6e\x66\xf8" |
| 32023 | "\xa2\xe2\xce\xba\x40\x21\x3f\xc9" |
| 32024 | "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf" |
| 32025 | "\xd3\xdf\x57\x59\x83\xb8\xe1\x85" |
| 32026 | "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f" |
| 32027 | "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a" |
| 32028 | "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76" |
| 32029 | "\x2f\x1c\x1a\x30\xed\x95\x2a\x44" |
| 32030 | "\x35\xa5\x83\x04\x84\x01\x99\x56" |
| 32031 | "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd" |
| 32032 | "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c" |
| 32033 | "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d" |
| 32034 | "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77" |
| 32035 | "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b" |
| 32036 | "\x30\xed\x1a\x50\x19\xef\xc4\x2c" |
| 32037 | "\x02\xd9\xc5\xd3\x11\x33\x37\xe5" |
| 32038 | "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d" |
| 32039 | "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96" |
| 32040 | "\x91\xc3\x94\x24\xa5\x12\xa2\x37" |
| 32041 | "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe" |
| 32042 | "\x79\x92\x3e\xe6\x1b\x49\x57\x5d" |
| 32043 | "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1" |
| 32044 | "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9" |
| 32045 | "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95", |
| 32046 | .ilen = 512, |
| 32047 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 32048 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 32049 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 32050 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 32051 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 32052 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 32053 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 32054 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 32055 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 32056 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 32057 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 32058 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 32059 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 32060 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 32061 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 32062 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 32063 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 32064 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 32065 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 32066 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 32067 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 32068 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 32069 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 32070 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 32071 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 32072 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 32073 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 32074 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 32075 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 32076 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 32077 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 32078 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 32079 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 32080 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 32081 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 32082 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 32083 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 32084 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 32085 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 32086 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 32087 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 32088 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 32089 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 32090 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 32091 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 32092 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 32093 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 32094 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 32095 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 32096 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 32097 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 32098 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 32099 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 32100 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 32101 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 32102 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 32103 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 32104 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 32105 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 32106 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 32107 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 32108 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 32109 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 32110 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 32111 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 32112 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 32113 | .np = 3, |
| 32114 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 32115 | }, |
| 32116 | }; |
| 32117 | |
| 32118 | static struct cipher_testvec camellia_xts_enc_tv_template[] = { |
| 32119 | /* Generated from AES-XTS test vectors */ |
| 32120 | { |
| 32121 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32122 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32123 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32124 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32125 | .klen = 32, |
| 32126 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32127 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32128 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32129 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32130 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32131 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32132 | .ilen = 32, |
| 32133 | .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41" |
| 32134 | "\xdc\xca\xfa\x09\xba\x74\xb9\x05" |
| 32135 | "\x78\xba\xa4\xf8\x67\x4d\x7e\xad" |
| 32136 | "\x20\x18\xf5\x0c\x41\x16\x2a\x61", |
| 32137 | .rlen = 32, |
| 32138 | }, { |
| 32139 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 32140 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 32141 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 32142 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 32143 | .klen = 32, |
| 32144 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 32145 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32146 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32147 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32148 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32149 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 32150 | .ilen = 32, |
| 32151 | .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86" |
| 32152 | "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f" |
| 32153 | "\xb5\x37\x06\xff\xbd\xd4\x91\x70" |
| 32154 | "\x80\x1f\xb2\x39\x10\x89\x44\xf5", |
| 32155 | .rlen = 32, |
| 32156 | }, { |
| 32157 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 32158 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 32159 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 32160 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 32161 | .klen = 32, |
| 32162 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 32163 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32164 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32165 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32166 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32167 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 32168 | .ilen = 32, |
| 32169 | .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e" |
| 32170 | "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7" |
| 32171 | "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a" |
| 32172 | "\x35\x3c\x6b\xb5\x61\x1c\x79\x38", |
| 32173 | .rlen = 32, |
| 32174 | }, { |
| 32175 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 32176 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 32177 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 32178 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 32179 | .klen = 32, |
| 32180 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32181 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32182 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32183 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 32184 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 32185 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 32186 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 32187 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 32188 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 32189 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 32190 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 32191 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 32192 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 32193 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 32194 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 32195 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 32196 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 32197 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 32198 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 32199 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 32200 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 32201 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 32202 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 32203 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 32204 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 32205 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 32206 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 32207 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 32208 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 32209 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 32210 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 32211 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 32212 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 32213 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 32214 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32215 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 32216 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 32217 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 32218 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 32219 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 32220 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 32221 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 32222 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 32223 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 32224 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 32225 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 32226 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 32227 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 32228 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 32229 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 32230 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 32231 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 32232 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 32233 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 32234 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 32235 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 32236 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 32237 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 32238 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 32239 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 32240 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 32241 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 32242 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 32243 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 32244 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 32245 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 32246 | .ilen = 512, |
| 32247 | .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33" |
| 32248 | "\x60\xc3\xe9\x47\x90\xb7\x50\x57" |
| 32249 | "\xa3\xad\x81\x2f\xf5\x22\x96\x02" |
| 32250 | "\xaa\x7f\xea\xac\x29\x78\xca\x2a" |
| 32251 | "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73" |
| 32252 | "\x09\x66\xad\x72\x0e\x4d\x5d\x77" |
| 32253 | "\xbc\xb8\x76\x80\x37\x59\xa9\x01" |
| 32254 | "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d" |
| 32255 | "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01" |
| 32256 | "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8" |
| 32257 | "\x08\xda\x76\x00\x65\xcf\x7b\x31" |
| 32258 | "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e" |
| 32259 | "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5" |
| 32260 | "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04" |
| 32261 | "\xfb\x54\xdd\x29\x27\xc2\x65\x17" |
| 32262 | "\x36\x88\xb0\x85\x8d\x73\x7e\x4b" |
| 32263 | "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4" |
| 32264 | "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f" |
| 32265 | "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3" |
| 32266 | "\x6c\xee\xac\xdc\x45\x58\xca\x5b" |
| 32267 | "\x70\x0e\x6a\x12\x86\x82\x79\x9f" |
| 32268 | "\x16\xd4\x9d\x67\xcd\x70\x65\x26" |
| 32269 | "\x21\x72\x1e\xa1\x94\x8a\x83\x0c" |
| 32270 | "\x92\x42\x58\x5e\xa2\xc5\x31\xf3" |
| 32271 | "\x7b\xd1\x31\xd4\x15\x80\x31\x61" |
| 32272 | "\x5c\x53\x10\xdd\xea\xc8\x83\x5c" |
| 32273 | "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05" |
| 32274 | "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5" |
| 32275 | "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9" |
| 32276 | "\x16\x31\xb2\x47\x91\x67\xaa\x28" |
| 32277 | "\x2c\x29\x85\xa3\xf7\xf2\x24\x93" |
| 32278 | "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc" |
| 32279 | "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec" |
| 32280 | "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e" |
| 32281 | "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66" |
| 32282 | "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7" |
| 32283 | "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d" |
| 32284 | "\xf8\x89\xcd\x20\x27\x84\x5d\x5c" |
| 32285 | "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3" |
| 32286 | "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7" |
| 32287 | "\x3f\x43\xcc\x86\x71\x34\x6a\xd9" |
| 32288 | "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe" |
| 32289 | "\x18\x41\xdc\x9e\x2e\x75\x20\x3e" |
| 32290 | "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c" |
| 32291 | "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71" |
| 32292 | "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e" |
| 32293 | "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9" |
| 32294 | "\x34\xb8\x27\x74\x08\xda\xf2\x4a" |
| 32295 | "\x23\x5b\x9f\x55\x3a\x57\x82\x52" |
| 32296 | "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc" |
| 32297 | "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49" |
| 32298 | "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2" |
| 32299 | "\x96\x0b\x35\x84\x05\x0d\xd6\x2a" |
| 32300 | "\xea\x5a\xbf\x69\xde\xee\x4f\x8f" |
| 32301 | "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8" |
| 32302 | "\x96\xef\x0f\x0e\xec\xc7\xa6\x74" |
| 32303 | "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15" |
| 32304 | "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1" |
| 32305 | "\x5b\xb6\x71\xda\xb0\x0c\xba\x26" |
| 32306 | "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d" |
| 32307 | "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33" |
| 32308 | "\xcc\x06\xdb\xe7\x82\x29\x63\xd1" |
| 32309 | "\x52\x84\x4f\xee\x27\xe8\x02\xd4" |
| 32310 | "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a", |
| 32311 | .rlen = 512, |
| 32312 | }, { |
| 32313 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 32314 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 32315 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 32316 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 32317 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 32318 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 32319 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 32320 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 32321 | .klen = 64, |
| 32322 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 32323 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32324 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32325 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 32326 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 32327 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 32328 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 32329 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 32330 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 32331 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 32332 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 32333 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 32334 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 32335 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 32336 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 32337 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 32338 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 32339 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 32340 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 32341 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 32342 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 32343 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 32344 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 32345 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 32346 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 32347 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 32348 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 32349 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 32350 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 32351 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 32352 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 32353 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 32354 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 32355 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 32356 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32357 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 32358 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 32359 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 32360 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 32361 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 32362 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 32363 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 32364 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 32365 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 32366 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 32367 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 32368 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 32369 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 32370 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 32371 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 32372 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 32373 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 32374 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 32375 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 32376 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 32377 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 32378 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 32379 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 32380 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 32381 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 32382 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 32383 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 32384 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 32385 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 32386 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 32387 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 32388 | .ilen = 512, |
| 32389 | .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28" |
| 32390 | "\x9a\x7f\x6e\x57\x55\xb8\x07\x88" |
| 32391 | "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b" |
| 32392 | "\xf1\x74\xac\x96\x05\x7b\x32\xca" |
| 32393 | "\xd1\x4e\xf1\x58\x29\x16\x24\x6c" |
| 32394 | "\xf2\xb3\xe4\x88\x84\xac\x4d\xee" |
| 32395 | "\x97\x07\x82\xf0\x07\x12\x38\x0a" |
| 32396 | "\x67\x62\xaf\xfd\x85\x9f\x0a\x55" |
| 32397 | "\xa5\x20\xc5\x60\xe4\x68\x53\xa4" |
| 32398 | "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c" |
| 32399 | "\x1c\x01\x4f\x55\xa9\x13\xeb\x25" |
| 32400 | "\x21\x87\xbc\xd3\xe7\x67\x4f\x38" |
| 32401 | "\xa8\x14\x25\x71\xe9\x2e\x4c\x21" |
| 32402 | "\x41\x82\x0c\x45\x39\x35\xa8\x75" |
| 32403 | "\x03\x29\x01\x84\x8c\xab\x48\xbe" |
| 32404 | "\x11\x56\x22\x67\xb7\x67\x1a\x09" |
| 32405 | "\xa1\x72\x25\x41\x3c\x39\x65\x80" |
| 32406 | "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d" |
| 32407 | "\xdd\x16\x8b\x63\x70\x4e\xc5\x17" |
| 32408 | "\x21\xe0\x84\x51\x4b\x6f\x05\x52" |
| 32409 | "\xe3\x63\x34\xfa\xa4\xaf\x33\x20" |
| 32410 | "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76" |
| 32411 | "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b" |
| 32412 | "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0" |
| 32413 | "\xb8\x8a\x13\x88\x71\xf4\x11\xa5" |
| 32414 | "\xe9\xa9\x10\x33\xe0\xbe\x49\x89" |
| 32415 | "\x41\x22\xf5\x9d\x80\x3e\x3b\x76" |
| 32416 | "\x01\x16\x50\x6e\x7c\x6a\x81\xe9" |
| 32417 | "\x13\x2c\xde\xb2\x5f\x79\xba\xb2" |
| 32418 | "\xb1\x75\xae\xd2\x07\x98\x4b\x69" |
| 32419 | "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98" |
| 32420 | "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a" |
| 32421 | "\x0d\x23\xb1\x79\x25\x13\x4b\xe5" |
| 32422 | "\xaf\x93\x20\x5c\x7f\x06\x7a\x34" |
| 32423 | "\x0b\x78\xe3\x67\x26\xe0\xad\x95" |
| 32424 | "\xc5\x4e\x26\x22\xcf\x73\x77\x62" |
| 32425 | "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9" |
| 32426 | "\xef\x38\x52\x18\x0e\x29\x7e\xef" |
| 32427 | "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2" |
| 32428 | "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d" |
| 32429 | "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe" |
| 32430 | "\x96\xcd\x41\x10\x78\x4e\x0c\xc9" |
| 32431 | "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab" |
| 32432 | "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa" |
| 32433 | "\x9d\x70\xbe\x4c\xa8\x98\x89\x01" |
| 32434 | "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa" |
| 32435 | "\x89\xf5\x14\x79\x18\x8f\x3b\x0d" |
| 32436 | "\x21\x17\xf8\x59\x15\x24\x64\x22" |
| 32437 | "\x57\x48\x80\xd5\x3d\x92\x30\x07" |
| 32438 | "\xd9\xa1\x4a\x23\x16\x43\x48\x0e" |
| 32439 | "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa" |
| 32440 | "\x49\xbc\x7e\x68\x6e\xa8\x46\x95" |
| 32441 | "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d" |
| 32442 | "\x6b\x84\xf3\x00\xba\x52\x05\x02" |
| 32443 | "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3" |
| 32444 | "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d" |
| 32445 | "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0" |
| 32446 | "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66" |
| 32447 | "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89" |
| 32448 | "\xf5\x21\x0f\x02\x48\x83\x74\xbf" |
| 32449 | "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b" |
| 32450 | "\xb1\x02\x0a\x5c\x79\x19\x3b\x75" |
| 32451 | "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e" |
| 32452 | "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95", |
| 32453 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 32454 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 32455 | .np = 3, |
| 32456 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 32457 | }, |
| 32458 | }; |
| 32459 | |
| 32460 | static struct cipher_testvec camellia_xts_dec_tv_template[] = { |
| 32461 | /* Generated from AES-XTS test vectors */ |
| 32462 | /* same as enc vectors with input and result reversed */ |
| 32463 | { |
| 32464 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32465 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32466 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32467 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32468 | .klen = 32, |
| 32469 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32470 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32471 | .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41" |
| 32472 | "\xdc\xca\xfa\x09\xba\x74\xb9\x05" |
| 32473 | "\x78\xba\xa4\xf8\x67\x4d\x7e\xad" |
| 32474 | "\x20\x18\xf5\x0c\x41\x16\x2a\x61", |
| 32475 | .ilen = 32, |
| 32476 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32477 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32478 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32479 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32480 | .rlen = 32, |
| 32481 | }, { |
| 32482 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 32483 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 32484 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 32485 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 32486 | .klen = 32, |
| 32487 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 32488 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32489 | .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86" |
| 32490 | "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f" |
| 32491 | "\xb5\x37\x06\xff\xbd\xd4\x91\x70" |
| 32492 | "\x80\x1f\xb2\x39\x10\x89\x44\xf5", |
| 32493 | .ilen = 32, |
| 32494 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32495 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32496 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32497 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 32498 | .rlen = 32, |
| 32499 | }, { |
| 32500 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 32501 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 32502 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 32503 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 32504 | .klen = 32, |
| 32505 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 32506 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32507 | .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e" |
| 32508 | "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7" |
| 32509 | "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a" |
| 32510 | "\x35\x3c\x6b\xb5\x61\x1c\x79\x38", |
| 32511 | .ilen = 32, |
| 32512 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32513 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32514 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 32515 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 32516 | .rlen = 32, |
| 32517 | }, { |
| 32518 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 32519 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 32520 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 32521 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 32522 | .klen = 32, |
| 32523 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32524 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32525 | .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33" |
| 32526 | "\x60\xc3\xe9\x47\x90\xb7\x50\x57" |
| 32527 | "\xa3\xad\x81\x2f\xf5\x22\x96\x02" |
| 32528 | "\xaa\x7f\xea\xac\x29\x78\xca\x2a" |
| 32529 | "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73" |
| 32530 | "\x09\x66\xad\x72\x0e\x4d\x5d\x77" |
| 32531 | "\xbc\xb8\x76\x80\x37\x59\xa9\x01" |
| 32532 | "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d" |
| 32533 | "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01" |
| 32534 | "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8" |
| 32535 | "\x08\xda\x76\x00\x65\xcf\x7b\x31" |
| 32536 | "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e" |
| 32537 | "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5" |
| 32538 | "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04" |
| 32539 | "\xfb\x54\xdd\x29\x27\xc2\x65\x17" |
| 32540 | "\x36\x88\xb0\x85\x8d\x73\x7e\x4b" |
| 32541 | "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4" |
| 32542 | "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f" |
| 32543 | "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3" |
| 32544 | "\x6c\xee\xac\xdc\x45\x58\xca\x5b" |
| 32545 | "\x70\x0e\x6a\x12\x86\x82\x79\x9f" |
| 32546 | "\x16\xd4\x9d\x67\xcd\x70\x65\x26" |
| 32547 | "\x21\x72\x1e\xa1\x94\x8a\x83\x0c" |
| 32548 | "\x92\x42\x58\x5e\xa2\xc5\x31\xf3" |
| 32549 | "\x7b\xd1\x31\xd4\x15\x80\x31\x61" |
| 32550 | "\x5c\x53\x10\xdd\xea\xc8\x83\x5c" |
| 32551 | "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05" |
| 32552 | "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5" |
| 32553 | "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9" |
| 32554 | "\x16\x31\xb2\x47\x91\x67\xaa\x28" |
| 32555 | "\x2c\x29\x85\xa3\xf7\xf2\x24\x93" |
| 32556 | "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc" |
| 32557 | "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec" |
| 32558 | "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e" |
| 32559 | "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66" |
| 32560 | "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7" |
| 32561 | "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d" |
| 32562 | "\xf8\x89\xcd\x20\x27\x84\x5d\x5c" |
| 32563 | "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3" |
| 32564 | "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7" |
| 32565 | "\x3f\x43\xcc\x86\x71\x34\x6a\xd9" |
| 32566 | "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe" |
| 32567 | "\x18\x41\xdc\x9e\x2e\x75\x20\x3e" |
| 32568 | "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c" |
| 32569 | "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71" |
| 32570 | "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e" |
| 32571 | "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9" |
| 32572 | "\x34\xb8\x27\x74\x08\xda\xf2\x4a" |
| 32573 | "\x23\x5b\x9f\x55\x3a\x57\x82\x52" |
| 32574 | "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc" |
| 32575 | "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49" |
| 32576 | "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2" |
| 32577 | "\x96\x0b\x35\x84\x05\x0d\xd6\x2a" |
| 32578 | "\xea\x5a\xbf\x69\xde\xee\x4f\x8f" |
| 32579 | "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8" |
| 32580 | "\x96\xef\x0f\x0e\xec\xc7\xa6\x74" |
| 32581 | "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15" |
| 32582 | "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1" |
| 32583 | "\x5b\xb6\x71\xda\xb0\x0c\xba\x26" |
| 32584 | "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d" |
| 32585 | "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33" |
| 32586 | "\xcc\x06\xdb\xe7\x82\x29\x63\xd1" |
| 32587 | "\x52\x84\x4f\xee\x27\xe8\x02\xd4" |
| 32588 | "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a", |
| 32589 | .ilen = 512, |
| 32590 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32591 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 32592 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 32593 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 32594 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 32595 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 32596 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 32597 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 32598 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 32599 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 32600 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 32601 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 32602 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 32603 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 32604 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 32605 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 32606 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 32607 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 32608 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 32609 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 32610 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 32611 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 32612 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 32613 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 32614 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 32615 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 32616 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 32617 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 32618 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 32619 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 32620 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 32621 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 32622 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32623 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 32624 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 32625 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 32626 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 32627 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 32628 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 32629 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 32630 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 32631 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 32632 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 32633 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 32634 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 32635 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 32636 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 32637 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 32638 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 32639 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 32640 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 32641 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 32642 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 32643 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 32644 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 32645 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 32646 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 32647 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 32648 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 32649 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 32650 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 32651 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 32652 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 32653 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 32654 | .rlen = 512, |
| 32655 | }, { |
| 32656 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 32657 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 32658 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 32659 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 32660 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 32661 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 32662 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 32663 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 32664 | .klen = 64, |
| 32665 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 32666 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32667 | .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28" |
| 32668 | "\x9a\x7f\x6e\x57\x55\xb8\x07\x88" |
| 32669 | "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b" |
| 32670 | "\xf1\x74\xac\x96\x05\x7b\x32\xca" |
| 32671 | "\xd1\x4e\xf1\x58\x29\x16\x24\x6c" |
| 32672 | "\xf2\xb3\xe4\x88\x84\xac\x4d\xee" |
| 32673 | "\x97\x07\x82\xf0\x07\x12\x38\x0a" |
| 32674 | "\x67\x62\xaf\xfd\x85\x9f\x0a\x55" |
| 32675 | "\xa5\x20\xc5\x60\xe4\x68\x53\xa4" |
| 32676 | "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c" |
| 32677 | "\x1c\x01\x4f\x55\xa9\x13\xeb\x25" |
| 32678 | "\x21\x87\xbc\xd3\xe7\x67\x4f\x38" |
| 32679 | "\xa8\x14\x25\x71\xe9\x2e\x4c\x21" |
| 32680 | "\x41\x82\x0c\x45\x39\x35\xa8\x75" |
| 32681 | "\x03\x29\x01\x84\x8c\xab\x48\xbe" |
| 32682 | "\x11\x56\x22\x67\xb7\x67\x1a\x09" |
| 32683 | "\xa1\x72\x25\x41\x3c\x39\x65\x80" |
| 32684 | "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d" |
| 32685 | "\xdd\x16\x8b\x63\x70\x4e\xc5\x17" |
| 32686 | "\x21\xe0\x84\x51\x4b\x6f\x05\x52" |
| 32687 | "\xe3\x63\x34\xfa\xa4\xaf\x33\x20" |
| 32688 | "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76" |
| 32689 | "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b" |
| 32690 | "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0" |
| 32691 | "\xb8\x8a\x13\x88\x71\xf4\x11\xa5" |
| 32692 | "\xe9\xa9\x10\x33\xe0\xbe\x49\x89" |
| 32693 | "\x41\x22\xf5\x9d\x80\x3e\x3b\x76" |
| 32694 | "\x01\x16\x50\x6e\x7c\x6a\x81\xe9" |
| 32695 | "\x13\x2c\xde\xb2\x5f\x79\xba\xb2" |
| 32696 | "\xb1\x75\xae\xd2\x07\x98\x4b\x69" |
| 32697 | "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98" |
| 32698 | "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a" |
| 32699 | "\x0d\x23\xb1\x79\x25\x13\x4b\xe5" |
| 32700 | "\xaf\x93\x20\x5c\x7f\x06\x7a\x34" |
| 32701 | "\x0b\x78\xe3\x67\x26\xe0\xad\x95" |
| 32702 | "\xc5\x4e\x26\x22\xcf\x73\x77\x62" |
| 32703 | "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9" |
| 32704 | "\xef\x38\x52\x18\x0e\x29\x7e\xef" |
| 32705 | "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2" |
| 32706 | "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d" |
| 32707 | "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe" |
| 32708 | "\x96\xcd\x41\x10\x78\x4e\x0c\xc9" |
| 32709 | "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab" |
| 32710 | "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa" |
| 32711 | "\x9d\x70\xbe\x4c\xa8\x98\x89\x01" |
| 32712 | "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa" |
| 32713 | "\x89\xf5\x14\x79\x18\x8f\x3b\x0d" |
| 32714 | "\x21\x17\xf8\x59\x15\x24\x64\x22" |
| 32715 | "\x57\x48\x80\xd5\x3d\x92\x30\x07" |
| 32716 | "\xd9\xa1\x4a\x23\x16\x43\x48\x0e" |
| 32717 | "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa" |
| 32718 | "\x49\xbc\x7e\x68\x6e\xa8\x46\x95" |
| 32719 | "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d" |
| 32720 | "\x6b\x84\xf3\x00\xba\x52\x05\x02" |
| 32721 | "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3" |
| 32722 | "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d" |
| 32723 | "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0" |
| 32724 | "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66" |
| 32725 | "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89" |
| 32726 | "\xf5\x21\x0f\x02\x48\x83\x74\xbf" |
| 32727 | "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b" |
| 32728 | "\xb1\x02\x0a\x5c\x79\x19\x3b\x75" |
| 32729 | "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e" |
| 32730 | "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95", |
| 32731 | .ilen = 512, |
| 32732 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32733 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 32734 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 32735 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 32736 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 32737 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 32738 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 32739 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 32740 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 32741 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 32742 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 32743 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 32744 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 32745 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 32746 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 32747 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 32748 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 32749 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 32750 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 32751 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 32752 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 32753 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 32754 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 32755 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 32756 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 32757 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 32758 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 32759 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 32760 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 32761 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 32762 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 32763 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 32764 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32765 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 32766 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 32767 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 32768 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 32769 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 32770 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 32771 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 32772 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 32773 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 32774 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 32775 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 32776 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 32777 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 32778 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 32779 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 32780 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 32781 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 32782 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 32783 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 32784 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 32785 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 32786 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 32787 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 32788 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 32789 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 32790 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 32791 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 32792 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 32793 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 32794 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 32795 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 32796 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 32797 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 32798 | .np = 3, |
| 32799 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 32800 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32801 | }; |
| 32802 | |
| 32803 | /* |
| 32804 | * SEED test vectors |
| 32805 | */ |
| 32806 | #define SEED_ENC_TEST_VECTORS 4 |
| 32807 | #define SEED_DEC_TEST_VECTORS 4 |
| 32808 | |
| 32809 | static struct cipher_testvec seed_enc_tv_template[] = { |
| 32810 | { |
| 32811 | .key = zeroed_string, |
| 32812 | .klen = 16, |
| 32813 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32814 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 32815 | .ilen = 16, |
| 32816 | .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" |
| 32817 | "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", |
| 32818 | .rlen = 16, |
| 32819 | }, { |
| 32820 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32821 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 32822 | .klen = 16, |
| 32823 | .input = zeroed_string, |
| 32824 | .ilen = 16, |
| 32825 | .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" |
| 32826 | "\x84\x48\x35\x97\xe4\x37\x0f\x43", |
| 32827 | .rlen = 16, |
| 32828 | }, { |
| 32829 | .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" |
| 32830 | "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", |
| 32831 | .klen = 16, |
| 32832 | .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" |
| 32833 | "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", |
| 32834 | .ilen = 16, |
| 32835 | .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" |
| 32836 | "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", |
| 32837 | .rlen = 16, |
| 32838 | }, { |
| 32839 | .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" |
| 32840 | "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", |
| 32841 | .klen = 16, |
| 32842 | .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" |
| 32843 | "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", |
| 32844 | .ilen = 16, |
| 32845 | .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" |
| 32846 | "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", |
| 32847 | .rlen = 16, |
| 32848 | } |
| 32849 | }; |
| 32850 | |
| 32851 | static struct cipher_testvec seed_dec_tv_template[] = { |
| 32852 | { |
| 32853 | .key = zeroed_string, |
| 32854 | .klen = 16, |
| 32855 | .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" |
| 32856 | "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", |
| 32857 | .ilen = 16, |
| 32858 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32859 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 32860 | .rlen = 16, |
| 32861 | }, { |
| 32862 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32863 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 32864 | .klen = 16, |
| 32865 | .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" |
| 32866 | "\x84\x48\x35\x97\xe4\x37\x0f\x43", |
| 32867 | .ilen = 16, |
| 32868 | .result = zeroed_string, |
| 32869 | .rlen = 16, |
| 32870 | }, { |
| 32871 | .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" |
| 32872 | "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", |
| 32873 | .klen = 16, |
| 32874 | .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" |
| 32875 | "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", |
| 32876 | .ilen = 16, |
| 32877 | .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" |
| 32878 | "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", |
| 32879 | .rlen = 16, |
| 32880 | }, { |
| 32881 | .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" |
| 32882 | "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", |
| 32883 | .klen = 16, |
| 32884 | .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" |
| 32885 | "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", |
| 32886 | .ilen = 16, |
| 32887 | .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" |
| 32888 | "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", |
| 32889 | .rlen = 16, |
| 32890 | } |
| 32891 | }; |
| 32892 | |
| 32893 | #define SALSA20_STREAM_ENC_TEST_VECTORS 5 |
| 32894 | static struct cipher_testvec salsa20_stream_enc_tv_template[] = { |
| 32895 | /* |
| 32896 | * Testvectors from verified.test-vectors submitted to ECRYPT. |
| 32897 | * They are truncated to size 39, 64, 111, 129 to test a variety |
| 32898 | * of input length. |
| 32899 | */ |
| 32900 | { /* Set 3, vector 0 */ |
| 32901 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 32902 | "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F", |
| 32903 | .klen = 16, |
| 32904 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32905 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32906 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32907 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32908 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32909 | "\x00\x00\x00\x00\x00\x00\x00", |
| 32910 | .ilen = 39, |
| 32911 | .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7" |
| 32912 | "\x68\x02\x41\x0C\x68\x86\x88\x89" |
| 32913 | "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1" |
| 32914 | "\x40\xFB\x9B\x90\xE2\x10\x49\xBF" |
| 32915 | "\x58\x3F\x52\x79\x70\xEB\xC1", |
| 32916 | .rlen = 39, |
| 32917 | }, { /* Set 5, vector 0 */ |
| 32918 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32919 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32920 | .klen = 16, |
| 32921 | .iv = "\x80\x00\x00\x00\x00\x00\x00\x00", |
| 32922 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32923 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32924 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32925 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32926 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32927 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32928 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32929 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32930 | .ilen = 64, |
| 32931 | .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57" |
| 32932 | "\xE5\x78\xE2\x23\xB0\xB7\x68\x01" |
| 32933 | "\x7B\x23\xB2\x67\xBB\x02\x34\xAE" |
| 32934 | "\x46\x26\xBF\x44\x3F\x21\x97\x76" |
| 32935 | "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F" |
| 32936 | "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09" |
| 32937 | "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9" |
| 32938 | "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9", |
| 32939 | .rlen = 64, |
| 32940 | }, { /* Set 3, vector 27 */ |
| 32941 | .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22" |
| 32942 | "\x23\x24\x25\x26\x27\x28\x29\x2A" |
| 32943 | "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32" |
| 32944 | "\x33\x34\x35\x36\x37\x38\x39\x3A", |
| 32945 | .klen = 32, |
| 32946 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32947 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32948 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32949 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32950 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32951 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32952 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32953 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32954 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32955 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32956 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32957 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32958 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32959 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32960 | "\x00\x00\x00\x00\x00\x00\x00", |
| 32961 | .ilen = 111, |
| 32962 | .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7" |
| 32963 | "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F" |
| 32964 | "\x87\xD9\x47\xF8\x28\x91\x35\x98" |
| 32965 | "\xDB\x72\xCC\x23\x29\x48\x56\x5E" |
| 32966 | "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B" |
| 32967 | "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23" |
| 32968 | "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B" |
| 32969 | "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59" |
| 32970 | "\x15\x14\xB4\x0E\x40\xE6\x53\xD1" |
| 32971 | "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E" |
| 32972 | "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92" |
| 32973 | "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6" |
| 32974 | "\x95\x46\x45\x54\xE9\x75\x03\x08" |
| 32975 | "\x44\xAF\xE5\x8A\x81\x12\x09", |
| 32976 | .rlen = 111, |
| 32977 | }, { /* Set 5, vector 27 */ |
| 32978 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32979 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32980 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32981 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32982 | .klen = 32, |
| 32983 | .iv = "\x00\x00\x00\x10\x00\x00\x00\x00", |
| 32984 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32985 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32986 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32987 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32988 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32989 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32990 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32991 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32992 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32993 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32994 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32995 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32996 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32997 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32998 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 32999 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 33000 | "\x00", |
| 33001 | .ilen = 129, |
| 33002 | .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB" |
| 33003 | "\xE8\x1A\x7A\x43\x40\xEF\x53\x43" |
| 33004 | "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D" |
| 33005 | "\x28\x3D\xCF\x85\x1D\x69\x6E\x60" |
| 33006 | "\xF2\xDE\x74\x56\x18\x1B\x84\x10" |
| 33007 | "\xD4\x62\xBA\x60\x50\xF0\x61\xF2" |
| 33008 | "\x1C\x78\x7F\xC1\x24\x34\xAF\x58" |
| 33009 | "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0" |
| 33010 | "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC" |
| 33011 | "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75" |
| 33012 | "\xA0\x95\x71\xA1\x29\x39\x94\xCA" |
| 33013 | "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F" |
| 33014 | "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7" |
| 33015 | "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD" |
| 33016 | "\x2E\x40\x48\x75\xE9\xE2\x21\x45" |
| 33017 | "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59" |
| 33018 | "\x5A", |
| 33019 | .rlen = 129, |
| 33020 | }, { /* large test vector generated using Crypto++ */ |
| 33021 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 33022 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 33023 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 33024 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 33025 | .klen = 32, |
| 33026 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 33027 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 33028 | .input = |
| 33029 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 33030 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 33031 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 33032 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 33033 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 33034 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 33035 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 33036 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 33037 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 33038 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 33039 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 33040 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 33041 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 33042 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 33043 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 33044 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 33045 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 33046 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 33047 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 33048 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 33049 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 33050 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 33051 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 33052 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 33053 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 33054 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 33055 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 33056 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 33057 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 33058 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 33059 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 33060 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 33061 | "\x00\x03\x06\x09\x0c\x0f\x12\x15" |
| 33062 | "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" |
| 33063 | "\x30\x33\x36\x39\x3c\x3f\x42\x45" |
| 33064 | "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" |
| 33065 | "\x60\x63\x66\x69\x6c\x6f\x72\x75" |
| 33066 | "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" |
| 33067 | "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" |
| 33068 | "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" |
| 33069 | "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" |
| 33070 | "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" |
| 33071 | "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" |
| 33072 | "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" |
| 33073 | "\x20\x23\x26\x29\x2c\x2f\x32\x35" |
| 33074 | "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" |
| 33075 | "\x50\x53\x56\x59\x5c\x5f\x62\x65" |
| 33076 | "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" |
| 33077 | "\x80\x83\x86\x89\x8c\x8f\x92\x95" |
| 33078 | "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" |
| 33079 | "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" |
| 33080 | "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" |
| 33081 | "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" |
| 33082 | "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" |
| 33083 | "\x10\x13\x16\x19\x1c\x1f\x22\x25" |
| 33084 | "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" |
| 33085 | "\x40\x43\x46\x49\x4c\x4f\x52\x55" |
| 33086 | "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" |
| 33087 | "\x70\x73\x76\x79\x7c\x7f\x82\x85" |
| 33088 | "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" |
| 33089 | "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" |
| 33090 | "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" |
| 33091 | "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" |
| 33092 | "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" |
| 33093 | "\x00\x05\x0a\x0f\x14\x19\x1e\x23" |
| 33094 | "\x28\x2d\x32\x37\x3c\x41\x46\x4b" |
| 33095 | "\x50\x55\x5a\x5f\x64\x69\x6e\x73" |
| 33096 | "\x78\x7d\x82\x87\x8c\x91\x96\x9b" |
| 33097 | "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" |
| 33098 | "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" |
| 33099 | "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" |
| 33100 | "\x18\x1d\x22\x27\x2c\x31\x36\x3b" |
| 33101 | "\x40\x45\x4a\x4f\x54\x59\x5e\x63" |
| 33102 | "\x68\x6d\x72\x77\x7c\x81\x86\x8b" |
| 33103 | "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" |
| 33104 | "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" |
| 33105 | "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" |
| 33106 | "\x08\x0d\x12\x17\x1c\x21\x26\x2b" |
| 33107 | "\x30\x35\x3a\x3f\x44\x49\x4e\x53" |
| 33108 | "\x58\x5d\x62\x67\x6c\x71\x76\x7b" |
| 33109 | "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" |
| 33110 | "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" |
| 33111 | "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" |
| 33112 | "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" |
| 33113 | "\x20\x25\x2a\x2f\x34\x39\x3e\x43" |
| 33114 | "\x48\x4d\x52\x57\x5c\x61\x66\x6b" |
| 33115 | "\x70\x75\x7a\x7f\x84\x89\x8e\x93" |
| 33116 | "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" |
| 33117 | "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" |
| 33118 | "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" |
| 33119 | "\x10\x15\x1a\x1f\x24\x29\x2e\x33" |
| 33120 | "\x38\x3d\x42\x47\x4c\x51\x56\x5b" |
| 33121 | "\x60\x65\x6a\x6f\x74\x79\x7e\x83" |
| 33122 | "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" |
| 33123 | "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" |
| 33124 | "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" |
| 33125 | "\x00\x07\x0e\x15\x1c\x23\x2a\x31" |
| 33126 | "\x38\x3f\x46\x4d\x54\x5b\x62\x69" |
| 33127 | "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" |
| 33128 | "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" |
| 33129 | "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" |
| 33130 | "\x18\x1f\x26\x2d\x34\x3b\x42\x49" |
| 33131 | "\x50\x57\x5e\x65\x6c\x73\x7a\x81" |
| 33132 | "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" |
| 33133 | "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" |
| 33134 | "\xf8\xff\x06\x0d\x14\x1b\x22\x29" |
| 33135 | "\x30\x37\x3e\x45\x4c\x53\x5a\x61" |
| 33136 | "\x68\x6f\x76\x7d\x84\x8b\x92\x99" |
| 33137 | "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" |
| 33138 | "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" |
| 33139 | "\x10\x17\x1e\x25\x2c\x33\x3a\x41" |
| 33140 | "\x48\x4f\x56\x5d\x64\x6b\x72\x79" |
| 33141 | "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" |
| 33142 | "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" |
| 33143 | "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" |
| 33144 | "\x28\x2f\x36\x3d\x44\x4b\x52\x59" |
| 33145 | "\x60\x67\x6e\x75\x7c\x83\x8a\x91" |
| 33146 | "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" |
| 33147 | "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" |
| 33148 | "\x08\x0f\x16\x1d\x24\x2b\x32\x39" |
| 33149 | "\x40\x47\x4e\x55\x5c\x63\x6a\x71" |
| 33150 | "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" |
| 33151 | "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" |
| 33152 | "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" |
| 33153 | "\x20\x27\x2e\x35\x3c\x43\x4a\x51" |
| 33154 | "\x58\x5f\x66\x6d\x74\x7b\x82\x89" |
| 33155 | "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" |
| 33156 | "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" |
| 33157 | "\x00\x09\x12\x1b\x24\x2d\x36\x3f" |
| 33158 | "\x48\x51\x5a\x63\x6c\x75\x7e\x87" |
| 33159 | "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" |
| 33160 | "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" |
| 33161 | "\x20\x29\x32\x3b\x44\x4d\x56\x5f" |
| 33162 | "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" |
| 33163 | "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" |
| 33164 | "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" |
| 33165 | "\x40\x49\x52\x5b\x64\x6d\x76\x7f" |
| 33166 | "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" |
| 33167 | "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" |
| 33168 | "\x18\x21\x2a\x33\x3c\x45\x4e\x57" |
| 33169 | "\x60\x69\x72\x7b\x84\x8d\x96\x9f" |
| 33170 | "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" |
| 33171 | "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" |
| 33172 | "\x38\x41\x4a\x53\x5c\x65\x6e\x77" |
| 33173 | "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" |
| 33174 | "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" |
| 33175 | "\x10\x19\x22\x2b\x34\x3d\x46\x4f" |
| 33176 | "\x58\x61\x6a\x73\x7c\x85\x8e\x97" |
| 33177 | "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" |
| 33178 | "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" |
| 33179 | "\x30\x39\x42\x4b\x54\x5d\x66\x6f" |
| 33180 | "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" |
| 33181 | "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" |
| 33182 | "\x08\x11\x1a\x23\x2c\x35\x3e\x47" |
| 33183 | "\x50\x59\x62\x6b\x74\x7d\x86\x8f" |
| 33184 | "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" |
| 33185 | "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" |
| 33186 | "\x28\x31\x3a\x43\x4c\x55\x5e\x67" |
| 33187 | "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" |
| 33188 | "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" |
| 33189 | "\x00\x0b\x16\x21\x2c\x37\x42\x4d" |
| 33190 | "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" |
| 33191 | "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" |
| 33192 | "\x08\x13\x1e\x29\x34\x3f\x4a\x55" |
| 33193 | "\x60\x6b\x76\x81\x8c\x97\xa2\xad" |
| 33194 | "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" |
| 33195 | "\x10\x1b\x26\x31\x3c\x47\x52\x5d" |
| 33196 | "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" |
| 33197 | "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" |
| 33198 | "\x18\x23\x2e\x39\x44\x4f\x5a\x65" |
| 33199 | "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" |
| 33200 | "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" |
| 33201 | "\x20\x2b\x36\x41\x4c\x57\x62\x6d" |
| 33202 | "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" |
| 33203 | "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" |
| 33204 | "\x28\x33\x3e\x49\x54\x5f\x6a\x75" |
| 33205 | "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" |
| 33206 | "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" |
| 33207 | "\x30\x3b\x46\x51\x5c\x67\x72\x7d" |
| 33208 | "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" |
| 33209 | "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" |
| 33210 | "\x38\x43\x4e\x59\x64\x6f\x7a\x85" |
| 33211 | "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" |
| 33212 | "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" |
| 33213 | "\x40\x4b\x56\x61\x6c\x77\x82\x8d" |
| 33214 | "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" |
| 33215 | "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" |
| 33216 | "\x48\x53\x5e\x69\x74\x7f\x8a\x95" |
| 33217 | "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" |
| 33218 | "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" |
| 33219 | "\x50\x5b\x66\x71\x7c\x87\x92\x9d" |
| 33220 | "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" |
| 33221 | "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" |
| 33222 | "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" |
| 33223 | "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" |
| 33224 | "\x38\x45\x52\x5f\x6c\x79\x86\x93" |
| 33225 | "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" |
| 33226 | "\x08\x15\x22\x2f\x3c\x49\x56\x63" |
| 33227 | "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" |
| 33228 | "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" |
| 33229 | "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" |
| 33230 | "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" |
| 33231 | "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" |
| 33232 | "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" |
| 33233 | "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" |
| 33234 | "\x48\x55\x62\x6f\x7c\x89\x96\xa3" |
| 33235 | "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" |
| 33236 | "\x18\x25\x32\x3f\x4c\x59\x66\x73" |
| 33237 | "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" |
| 33238 | "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" |
| 33239 | "\x50\x5d\x6a\x77\x84\x91\x9e\xab" |
| 33240 | "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" |
| 33241 | "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" |
| 33242 | "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" |
| 33243 | "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" |
| 33244 | "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" |
| 33245 | "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" |
| 33246 | "\x28\x35\x42\x4f\x5c\x69\x76\x83" |
| 33247 | "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" |
| 33248 | "\xf8\x05\x12\x1f\x2c\x39\x46\x53" |
| 33249 | "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" |
| 33250 | "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" |
| 33251 | "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" |
| 33252 | "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" |
| 33253 | "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" |
| 33254 | "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" |
| 33255 | "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" |
| 33256 | "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" |
| 33257 | "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" |
| 33258 | "\x58\x67\x76\x85\x94\xa3\xb2\xc1" |
| 33259 | "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" |
| 33260 | "\x48\x57\x66\x75\x84\x93\xa2\xb1" |
| 33261 | "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" |
| 33262 | "\x38\x47\x56\x65\x74\x83\x92\xa1" |
| 33263 | "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" |
| 33264 | "\x28\x37\x46\x55\x64\x73\x82\x91" |
| 33265 | "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" |
| 33266 | "\x18\x27\x36\x45\x54\x63\x72\x81" |
| 33267 | "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" |
| 33268 | "\x08\x17\x26\x35\x44\x53\x62\x71" |
| 33269 | "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" |
| 33270 | "\xf8\x07\x16\x25\x34\x43\x52\x61" |
| 33271 | "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" |
| 33272 | "\xe8\xf7\x06\x15\x24\x33\x42\x51" |
| 33273 | "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" |
| 33274 | "\xd8\xe7\xf6\x05\x14\x23\x32\x41" |
| 33275 | "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" |
| 33276 | "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" |
| 33277 | "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" |
| 33278 | "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" |
| 33279 | "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" |
| 33280 | "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" |
| 33281 | "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" |
| 33282 | "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" |
| 33283 | "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" |
| 33284 | "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" |
| 33285 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 33286 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" |
| 33287 | "\x10\x21\x32\x43\x54\x65\x76\x87" |
| 33288 | "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" |
| 33289 | "\x20\x31\x42\x53\x64\x75\x86\x97" |
| 33290 | "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" |
| 33291 | "\x30\x41\x52\x63\x74\x85\x96\xa7" |
| 33292 | "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" |
| 33293 | "\x40\x51\x62\x73\x84\x95\xa6\xb7" |
| 33294 | "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" |
| 33295 | "\x50\x61\x72\x83\x94\xa5\xb6\xc7" |
| 33296 | "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" |
| 33297 | "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" |
| 33298 | "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" |
| 33299 | "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" |
| 33300 | "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" |
| 33301 | "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" |
| 33302 | "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" |
| 33303 | "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" |
| 33304 | "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" |
| 33305 | "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" |
| 33306 | "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" |
| 33307 | "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" |
| 33308 | "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" |
| 33309 | "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" |
| 33310 | "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" |
| 33311 | "\xd0\xe1\xf2\x03\x14\x25\x36\x47" |
| 33312 | "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" |
| 33313 | "\xe0\xf1\x02\x13\x24\x35\x46\x57" |
| 33314 | "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" |
| 33315 | "\xf0\x01\x12\x23\x34\x45\x56\x67" |
| 33316 | "\x78\x89\x9a\xab\xbc\xcd\xde\xef" |
| 33317 | "\x00\x13\x26\x39\x4c\x5f\x72\x85" |
| 33318 | "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" |
| 33319 | "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" |
| 33320 | "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" |
| 33321 | "\x60\x73\x86\x99\xac\xbf\xd2\xe5" |
| 33322 | "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" |
| 33323 | "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" |
| 33324 | "\x28\x3b\x4e\x61\x74\x87\x9a\xad" |
| 33325 | "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" |
| 33326 | "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" |
| 33327 | "\xf0\x03\x16\x29\x3c\x4f\x62\x75" |
| 33328 | "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" |
| 33329 | "\x20\x33\x46\x59\x6c\x7f\x92\xa5" |
| 33330 | "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" |
| 33331 | "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" |
| 33332 | "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" |
| 33333 | "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" |
| 33334 | "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" |
| 33335 | "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" |
| 33336 | "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" |
| 33337 | "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" |
| 33338 | "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" |
| 33339 | "\x10\x23\x36\x49\x5c\x6f\x82\x95" |
| 33340 | "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" |
| 33341 | "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" |
| 33342 | "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" |
| 33343 | "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" |
| 33344 | "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" |
| 33345 | "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" |
| 33346 | "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" |
| 33347 | "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" |
| 33348 | "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" |
| 33349 | "\x00\x15\x2a\x3f\x54\x69\x7e\x93" |
| 33350 | "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" |
| 33351 | "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" |
| 33352 | "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" |
| 33353 | "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" |
| 33354 | "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" |
| 33355 | "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" |
| 33356 | "\x98\xad\xc2\xd7\xec\x01\x16\x2b" |
| 33357 | "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" |
| 33358 | "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" |
| 33359 | "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" |
| 33360 | "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" |
| 33361 | "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" |
| 33362 | "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" |
| 33363 | "\x30\x45\x5a\x6f\x84\x99\xae\xc3" |
| 33364 | "\xd8\xed\x02\x17\x2c\x41\x56\x6b" |
| 33365 | "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" |
| 33366 | "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" |
| 33367 | "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" |
| 33368 | "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" |
| 33369 | "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" |
| 33370 | "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" |
| 33371 | "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" |
| 33372 | "\x18\x2d\x42\x57\x6c\x81\x96\xab" |
| 33373 | "\xc0\xd5\xea\xff\x14\x29\x3e\x53" |
| 33374 | "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" |
| 33375 | "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" |
| 33376 | "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" |
| 33377 | "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" |
| 33378 | "\x08\x1d\x32\x47\x5c\x71\x86\x9b" |
| 33379 | "\xb0\xc5\xda\xef\x04\x19\x2e\x43" |
| 33380 | "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" |
| 33381 | "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" |
| 33382 | "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" |
| 33383 | "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" |
| 33384 | "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" |
| 33385 | "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" |
| 33386 | "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" |
| 33387 | "\x50\x67\x7e\x95\xac\xc3\xda\xf1" |
| 33388 | "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" |
| 33389 | "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" |
| 33390 | "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" |
| 33391 | "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" |
| 33392 | "\xe8\xff\x16\x2d\x44\x5b\x72\x89" |
| 33393 | "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" |
| 33394 | "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" |
| 33395 | "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" |
| 33396 | "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" |
| 33397 | "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" |
| 33398 | "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" |
| 33399 | "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" |
| 33400 | "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" |
| 33401 | "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" |
| 33402 | "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" |
| 33403 | "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" |
| 33404 | "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" |
| 33405 | "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" |
| 33406 | "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" |
| 33407 | "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" |
| 33408 | "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" |
| 33409 | "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" |
| 33410 | "\xd8\xef\x06\x1d\x34\x4b\x62\x79" |
| 33411 | "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" |
| 33412 | "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" |
| 33413 | "\x00\x19\x32\x4b\x64\x7d\x96\xaf" |
| 33414 | "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" |
| 33415 | "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" |
| 33416 | "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" |
| 33417 | "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" |
| 33418 | "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" |
| 33419 | "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" |
| 33420 | "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" |
| 33421 | "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" |
| 33422 | "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" |
| 33423 | "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" |
| 33424 | "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" |
| 33425 | "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" |
| 33426 | "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" |
| 33427 | "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" |
| 33428 | "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" |
| 33429 | "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" |
| 33430 | "\x48\x61\x7a\x93\xac\xc5\xde\xf7" |
| 33431 | "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" |
| 33432 | "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" |
| 33433 | "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" |
| 33434 | "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" |
| 33435 | "\x30\x49\x62\x7b\x94\xad\xc6\xdf" |
| 33436 | "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" |
| 33437 | "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" |
| 33438 | "\x88\xa1\xba\xd3\xec\x05\x1e\x37" |
| 33439 | "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" |
| 33440 | "\x18\x31\x4a\x63\x7c\x95\xae\xc7" |
| 33441 | "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" |
| 33442 | "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" |
| 33443 | "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" |
| 33444 | "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" |
| 33445 | "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" |
| 33446 | "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" |
| 33447 | "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" |
| 33448 | "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" |
| 33449 | "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" |
| 33450 | "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" |
| 33451 | "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" |
| 33452 | "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" |
| 33453 | "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" |
| 33454 | "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" |
| 33455 | "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" |
| 33456 | "\x48\x63\x7e\x99\xb4\xcf\xea\x05" |
| 33457 | "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" |
| 33458 | "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" |
| 33459 | "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" |
| 33460 | "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" |
| 33461 | "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" |
| 33462 | "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" |
| 33463 | "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" |
| 33464 | "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" |
| 33465 | "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" |
| 33466 | "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" |
| 33467 | "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" |
| 33468 | "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" |
| 33469 | "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" |
| 33470 | "\x18\x33\x4e\x69\x84\x9f\xba\xd5" |
| 33471 | "\xf0\x0b\x26\x41\x5c\x77\x92\xad" |
| 33472 | "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" |
| 33473 | "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" |
| 33474 | "\x78\x93\xae\xc9\xe4\xff\x1a\x35" |
| 33475 | "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" |
| 33476 | "\x28\x43\x5e\x79\x94\xaf\xca\xe5" |
| 33477 | "\x00\x1d\x3a\x57\x74\x91\xae\xcb" |
| 33478 | "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" |
| 33479 | "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" |
| 33480 | "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" |
| 33481 | "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" |
| 33482 | "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" |
| 33483 | "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" |
| 33484 | "\x58\x75\x92\xaf\xcc\xe9\x06\x23" |
| 33485 | "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" |
| 33486 | "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" |
| 33487 | "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" |
| 33488 | "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" |
| 33489 | "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" |
| 33490 | "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" |
| 33491 | "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" |
| 33492 | "\x98\xb5\xd2\xef\x0c\x29\x46\x63" |
| 33493 | "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" |
| 33494 | "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" |
| 33495 | "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" |
| 33496 | "\x38\x55\x72\x8f\xac\xc9\xe6\x03" |
| 33497 | "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" |
| 33498 | "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" |
| 33499 | "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" |
| 33500 | "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" |
| 33501 | "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" |
| 33502 | "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" |
| 33503 | "\x90\xad\xca\xe7\x04\x21\x3e\x5b" |
| 33504 | "\x78\x95\xb2\xcf\xec\x09\x26\x43" |
| 33505 | "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" |
| 33506 | "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" |
| 33507 | "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" |
| 33508 | "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" |
| 33509 | "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" |
| 33510 | "\xf8\x17\x36\x55\x74\x93\xb2\xd1" |
| 33511 | "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" |
| 33512 | "\xe8\x07\x26\x45\x64\x83\xa2\xc1" |
| 33513 | "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" |
| 33514 | "\xd8\xf7\x16\x35\x54\x73\x92\xb1" |
| 33515 | "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" |
| 33516 | "\xc8\xe7\x06\x25\x44\x63\x82\xa1" |
| 33517 | "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" |
| 33518 | "\xb8\xd7\xf6\x15\x34\x53\x72\x91" |
| 33519 | "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" |
| 33520 | "\xa8\xc7\xe6\x05\x24\x43\x62\x81" |
| 33521 | "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" |
| 33522 | "\x98\xb7\xd6\xf5\x14\x33\x52\x71" |
| 33523 | "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" |
| 33524 | "\x88\xa7\xc6\xe5\x04\x23\x42\x61" |
| 33525 | "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" |
| 33526 | "\x78\x97\xb6\xd5\xf4\x13\x32\x51" |
| 33527 | "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" |
| 33528 | "\x68\x87\xa6\xc5\xe4\x03\x22\x41" |
| 33529 | "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" |
| 33530 | "\x58\x77\x96\xb5\xd4\xf3\x12\x31" |
| 33531 | "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" |
| 33532 | "\x48\x67\x86\xa5\xc4\xe3\x02\x21" |
| 33533 | "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" |
| 33534 | "\x38\x57\x76\x95\xb4\xd3\xf2\x11" |
| 33535 | "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" |
| 33536 | "\x28\x47\x66\x85\xa4\xc3\xe2\x01" |
| 33537 | "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" |
| 33538 | "\x18\x37\x56\x75\x94\xb3\xd2\xf1" |
| 33539 | "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" |
| 33540 | "\x08\x27\x46\x65\x84\xa3\xc2\xe1" |
| 33541 | "\x00\x21\x42\x63", |
| 33542 | .ilen = 4100, |
| 33543 | .result = |
| 33544 | "\xb5\x81\xf5\x64\x18\x73\xe3\xf0" |
| 33545 | "\x4c\x13\xf2\x77\x18\x60\x65\x5e" |
| 33546 | "\x29\x01\xce\x98\x55\x53\xf9\x0c" |
| 33547 | "\x2a\x08\xd5\x09\xb3\x57\x55\x56" |
| 33548 | "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0" |
| 33549 | "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4" |
| 33550 | "\x43\xd1\xfe\x94\x7b\x88\x06\x5a" |
| 33551 | "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90" |
| 33552 | "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2" |
| 33553 | "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01" |
| 33554 | "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91" |
| 33555 | "\xbb\xde\x56\x86\xab\x65\x21\x30" |
| 33556 | "\x00\x84\x65\x24\xa5\x7d\x85\xb4" |
| 33557 | "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b" |
| 33558 | "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c" |
| 33559 | "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7" |
| 33560 | "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75" |
| 33561 | "\x77\x89\x30\x8b\x59\xdb\xa2\xb2" |
| 33562 | "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f" |
| 33563 | "\x4f\xd9\xd3\x56\x28\x97\x44\xdc" |
| 33564 | "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5" |
| 33565 | "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d" |
| 33566 | "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1" |
| 33567 | "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4" |
| 33568 | "\x5b\x9a\x96\xc5\x53\xbc\xae\x20" |
| 33569 | "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1" |
| 33570 | "\x5e\x76\x9e\x46\x99\xf6\x2a\x15" |
| 33571 | "\xc6\x97\x02\xa0\x66\x43\xd1\xa6" |
| 33572 | "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5" |
| 33573 | "\xcd\x76\x95\xb8\x7a\x82\x7f\x21" |
| 33574 | "\x45\xff\x3f\xce\x55\xf6\x95\x10" |
| 33575 | "\x08\x77\x10\x43\xc6\xf3\x09\xe5" |
| 33576 | "\x68\xe7\x3c\xad\x00\x52\x45\x0d" |
| 33577 | "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d" |
| 33578 | "\xe6\x25\xae\x98\x12\x8e\x19\x9c" |
| 33579 | "\x81\x68\xb1\x11\xf6\x69\xda\xe3" |
| 33580 | "\x62\x08\x18\x7a\x25\x49\x28\xac" |
| 33581 | "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7" |
| 33582 | "\x5d\x8e\xec\x49\x40\x21\xbf\x5a" |
| 33583 | "\x98\xf3\x02\x68\x55\x03\x7f\x8a" |
| 33584 | "\xe5\x94\x0c\x32\x5c\x07\x82\x63" |
| 33585 | "\xaf\x6f\x91\x40\x84\x8e\x52\x25" |
| 33586 | "\xd0\xb0\x29\x53\x05\xe2\x50\x7a" |
| 33587 | "\x34\xeb\xc9\x46\x20\xa8\x3d\xde" |
| 33588 | "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1" |
| 33589 | "\x15\x47\xc7\x50\x40\x6d\x91\xc5" |
| 33590 | "\xe7\x93\x95\x1a\xd3\x57\xbc\x52" |
| 33591 | "\x33\xee\x14\x19\x22\x52\x89\xa7" |
| 33592 | "\x4a\x25\x56\x77\x4b\xca\xcf\x0a" |
| 33593 | "\xe1\xf5\x35\x85\x30\x7e\x59\x4a" |
| 33594 | "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac" |
| 33595 | "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99" |
| 33596 | "\xca\x88\x63\x3d\x02\x58\x6b\xa9" |
| 33597 | "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74" |
| 33598 | "\x1c\xbf\x46\xab\x97\xcc\xf8\x54" |
| 33599 | "\x04\x07\x08\x52\xe6\xc0\xda\x93" |
| 33600 | "\x74\x7d\x93\x99\x5d\x78\x68\xa6" |
| 33601 | "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b" |
| 33602 | "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04" |
| 33603 | "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1" |
| 33604 | "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4" |
| 33605 | "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4" |
| 33606 | "\x54\x26\x72\x9e\x61\xfa\x86\xcf" |
| 33607 | "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae" |
| 33608 | "\x5a\x90\xae\x75\x0a\x74\x18\x89" |
| 33609 | "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6" |
| 33610 | "\x62\x07\x25\x01\xc7\xc2\x4f\xf9" |
| 33611 | "\xe8\xfe\x63\x95\x80\x07\xb4\x26" |
| 33612 | "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb" |
| 33613 | "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a" |
| 33614 | "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f" |
| 33615 | "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec" |
| 33616 | "\x33\xe6\x69\xf4\x45\x25\x86\x3a" |
| 33617 | "\x22\x94\x4f\x00\x23\x6a\x44\xc2" |
| 33618 | "\x49\x97\x33\xab\x36\x14\x0a\x70" |
| 33619 | "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9" |
| 33620 | "\xb8\xe7\x76\x29\x22\x83\xd7\xf2" |
| 33621 | "\x94\xf4\x41\x49\xba\x5f\x7b\x07" |
| 33622 | "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c" |
| 33623 | "\xc2\x2e\x37\x40\x49\xc3\x38\x16" |
| 33624 | "\xe2\x4f\x77\x82\xb0\x68\x4c\x71" |
| 33625 | "\x1d\x57\x61\x9c\xd9\x4e\x54\x99" |
| 33626 | "\x47\x13\x28\x73\x3c\xbb\x00\x90" |
| 33627 | "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71" |
| 33628 | "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd" |
| 33629 | "\xad\x6c\x50\x69\x6c\x3e\x6d\x80" |
| 33630 | "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d" |
| 33631 | "\xad\x04\x07\xae\x22\x90\x4a\x93" |
| 33632 | "\x32\x0e\x36\x9b\x1b\x46\xba\x3b" |
| 33633 | "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b" |
| 33634 | "\x2a\x3d\x45\xfe\x03\x61\x10\x85" |
| 33635 | "\x17\x69\xa6\x78\xcc\x6c\x87\x49" |
| 33636 | "\x53\xf9\x80\x10\xde\x80\xa2\x41" |
| 33637 | "\x6a\xc3\x32\x02\xad\x6d\x3c\x56" |
| 33638 | "\x00\x71\x51\x06\xa7\xbd\xfb\xef" |
| 33639 | "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c" |
| 33640 | "\x66\xb0\x49\x23\xc4\x47\x10\x0e" |
| 33641 | "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa" |
| 33642 | "\xde\xff\x07\x44\xdd\x56\x1b\xad" |
| 33643 | "\x09\x77\xfb\x5b\x12\xb8\x0d\x38" |
| 33644 | "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4" |
| 33645 | "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22" |
| 33646 | "\xa7\x31\xa1\x20\x86\xc7\x1b\x99" |
| 33647 | "\xdb\xd1\x89\xf4\x94\xa3\x53\x69" |
| 33648 | "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6" |
| 33649 | "\x07\x37\x91\x9f\xfd\x67\x50\x3a" |
| 33650 | "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1" |
| 33651 | "\xf9\xe5\x39\xa3\x31\xac\x07\x36" |
| 33652 | "\x23\xf8\x66\x18\x14\x28\x34\x0f" |
| 33653 | "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55" |
| 33654 | "\x01\x41\xb2\x75\x8d\xcb\x96\x85" |
| 33655 | "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20" |
| 33656 | "\x44\x1f\xc0\x14\x22\x75\x61\xe8" |
| 33657 | "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7" |
| 33658 | "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a" |
| 33659 | "\x57\x50\xdb\x17\x41\x65\x4d\xa3" |
| 33660 | "\x02\xc9\x9c\x9c\x53\xfb\x39\x39" |
| 33661 | "\x9b\x1d\x72\x24\xda\xb7\x39\xbe" |
| 33662 | "\x13\x3b\xfa\x29\xda\x9e\x54\x64" |
| 33663 | "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa" |
| 33664 | "\xcb\x47\x85\xe9\x61\x38\xbc\xbe" |
| 33665 | "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9" |
| 33666 | "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f" |
| 33667 | "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d" |
| 33668 | "\xca\x8e\x61\x87\xde\xad\x80\xd2" |
| 33669 | "\xf5\xf9\x80\xef\x15\x75\xaf\xf5" |
| 33670 | "\x80\xfb\xff\x6d\x1e\x25\xb7\x40" |
| 33671 | "\x61\x6a\x39\x5a\x6a\xb5\x31\xab" |
| 33672 | "\x97\x8a\x19\x89\x44\x40\xc0\xa6" |
| 33673 | "\xb4\x4e\x30\x32\x7b\x13\xe7\x67" |
| 33674 | "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4" |
| 33675 | "\x28\x99\xad\x2c\x76\xa3\x78\xc2" |
| 33676 | "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0" |
| 33677 | "\x62\x4b\x10\x8e\x7c\x17\x43\xb3" |
| 33678 | "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a" |
| 33679 | "\x71\xf5\x97\xdc\xd1\x45\xdd\x28" |
| 33680 | "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc" |
| 33681 | "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d" |
| 33682 | "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2" |
| 33683 | "\x13\x36\x79\x80\x53\xe8\xd3\xa6" |
| 33684 | "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e" |
| 33685 | "\x45\xce\xf8\xb0\x9e\x5c\x33\x82" |
| 33686 | "\xb0\x44\x56\xfc\x05\x09\xe9\x2a" |
| 33687 | "\xac\x26\x80\x14\x1d\xc8\x3a\x35" |
| 33688 | "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a" |
| 33689 | "\x35\x58\x79\x8e\x0f\x66\xea\xaf" |
| 33690 | "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a" |
| 33691 | "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a" |
| 33692 | "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a" |
| 33693 | "\x54\xda\x24\x6a\xc4\x41\x65\x46" |
| 33694 | "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0" |
| 33695 | "\x2c\x91\xa7\xee\xc4\x81\x07\x86" |
| 33696 | "\x75\x5e\x33\x69\x97\xe4\x2c\xa8" |
| 33697 | "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda" |
| 33698 | "\x6d\x94\x41\xda\x2c\x1e\x89\xc4" |
| 33699 | "\xc2\xaf\x1e\x00\x05\x0b\x83\x60" |
| 33700 | "\xbd\x43\xea\x15\x23\x7f\xb9\xac" |
| 33701 | "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0" |
| 33702 | "\xf3\x19\x31\xbb\x4a\x74\x84\x17" |
| 33703 | "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb" |
| 33704 | "\x80\x38\x15\x52\xcb\x6f\xea\xe5" |
| 33705 | "\x73\x9c\xd9\x24\x69\xc6\x95\x32" |
| 33706 | "\x21\xc8\x11\xe4\xdc\x36\xd7\x93" |
| 33707 | "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf" |
| 33708 | "\x31\xdd\x93\x75\x78\x8a\x2c\x94" |
| 33709 | "\x87\x1a\x58\xec\x9e\x7d\x4d\xba" |
| 33710 | "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14" |
| 33711 | "\xef\xcc\xa7\xec\xab\x43\x09\x18" |
| 33712 | "\xd3\xab\x68\xd1\x07\x99\x44\x47" |
| 33713 | "\xd6\x83\x85\x3b\x30\xea\xa9\x6b" |
| 33714 | "\x63\xea\xc4\x07\xfb\x43\x2f\xa4" |
| 33715 | "\xaa\xb0\xab\x03\x89\xce\x3f\x8c" |
| 33716 | "\x02\x7c\x86\x54\xbc\x88\xaf\x75" |
| 33717 | "\xd2\xdc\x63\x17\xd3\x26\xf6\x96" |
| 33718 | "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc" |
| 33719 | "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2" |
| 33720 | "\xe5\x35\x90\x1f\x85\x4c\x76\x5b" |
| 33721 | "\x66\xce\x44\xa4\x32\x9f\xe6\x7b" |
| 33722 | "\x71\x6e\x9f\x58\x15\x67\x72\x87" |
| 33723 | "\x64\x8e\x3a\x44\x45\xd4\x76\xfa" |
| 33724 | "\xc2\xf6\xef\x85\x05\x18\x7a\x9b" |
| 33725 | "\xba\x41\x54\xac\xf0\xfc\x59\x12" |
| 33726 | "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a" |
| 33727 | "\x62\x8d\x83\x2c\x03\xbe\x05\x76" |
| 33728 | "\x2e\x53\x49\x97\x94\x33\xae\x40" |
| 33729 | "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b" |
| 33730 | "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb" |
| 33731 | "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3" |
| 33732 | "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d" |
| 33733 | "\xce\x87\xad\xcc\x72\x05\x00\x29" |
| 33734 | "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2" |
| 33735 | "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef" |
| 33736 | "\x5c\x50\x79\x2a\x56\x56\x71\x8c" |
| 33737 | "\xac\xc0\x79\x50\x69\xca\x59\x32" |
| 33738 | "\x65\xf2\x54\xe4\x52\x38\x76\xd1" |
| 33739 | "\x5e\xde\x26\x9e\xfb\x75\x2e\x11" |
| 33740 | "\xb5\x10\xf4\x17\x73\xf5\x89\xc7" |
| 33741 | "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52" |
| 33742 | "\x24\x40\x99\xfe\x9b\x85\x0b\x6c" |
| 33743 | "\x22\x3e\x8b\xae\x86\xa1\xd2\x79" |
| 33744 | "\x05\x68\x6b\xab\xe3\x41\x49\xed" |
| 33745 | "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a" |
| 33746 | "\x59\xc9\x26\x8b\xef\x30\x4c\x88" |
| 33747 | "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b" |
| 33748 | "\xf3\xc4\x53\x0b\x89\x5d\x28\x92" |
| 33749 | "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc" |
| 33750 | "\xc0\x12\x23\x5f\x5a\x78\x86\x43" |
| 33751 | "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19" |
| 33752 | "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89" |
| 33753 | "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f" |
| 33754 | "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba" |
| 33755 | "\xec\x8b\x62\x8e\xcb\x4a\x70\x43" |
| 33756 | "\xc7\xc2\xc4\xca\x82\x03\x73\xe9" |
| 33757 | "\x11\xdf\xcf\x54\xea\xc9\xb0\x95" |
| 33758 | "\x51\xc0\x13\x3d\x92\x05\xfa\xf4" |
| 33759 | "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc" |
| 33760 | "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2" |
| 33761 | "\xaf\xf1\x85\x75\x7d\x03\x61\x68" |
| 33762 | "\x4e\x78\xc6\x92\x7d\x86\x7d\x77" |
| 33763 | "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb" |
| 33764 | "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a" |
| 33765 | "\xe2\xba\x6c\x64\x9a\x13\x28\xdf" |
| 33766 | "\x85\x75\xe6\x43\xf6\x87\x08\x68" |
| 33767 | "\x6e\xba\x6e\x79\x9f\x04\xbc\x23" |
| 33768 | "\x50\xf6\x33\x5c\x1f\x24\x25\xbe" |
| 33769 | "\x33\x47\x80\x45\x56\xa3\xa7\xd7" |
| 33770 | "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad" |
| 33771 | "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93" |
| 33772 | "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3" |
| 33773 | "\xd6\x2e\xff\x24\xd8\x71\x6c\xed" |
| 33774 | "\xaf\x55\xeb\x22\xac\x93\x68\x32" |
| 33775 | "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7" |
| 33776 | "\x10\xe1\x3c\x92\x1a\xf3\x23\x78" |
| 33777 | "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20" |
| 33778 | "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e" |
| 33779 | "\x78\xf1\x2d\x50\x12\x77\xa8\x60" |
| 33780 | "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a" |
| 33781 | "\xc0\x96\x80\x4e\x0a\xb4\x93\x35" |
| 33782 | "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90" |
| 33783 | "\x11\x16\x8f\xa2\xec\x47\xbe\xac" |
| 33784 | "\x56\x01\x26\x56\xb1\x8c\xb2\x10" |
| 33785 | "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20" |
| 33786 | "\x63\xf1\x69\x20\x4f\x13\x12\x1f" |
| 33787 | "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe" |
| 33788 | "\xf7\x26\x4d\x2b\x84\x7b\x42\xad" |
| 33789 | "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1" |
| 33790 | "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46" |
| 33791 | "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a" |
| 33792 | "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3" |
| 33793 | "\xab\xd4\x45\x43\x8c\xb6\x02\xb0" |
| 33794 | "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e" |
| 33795 | "\x44\x21\x2a\x8d\x88\x9d\x57\xf4" |
| 33796 | "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75" |
| 33797 | "\x5c\x82\x65\x3e\x03\x5c\x29\x8f" |
| 33798 | "\x38\x55\xab\x33\x26\xef\x9f\x43" |
| 33799 | "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a" |
| 33800 | "\x58\x09\x09\x1b\xc3\x65\x46\x46" |
| 33801 | "\x1d\xa7\x94\x18\x23\x50\x2c\xca" |
| 33802 | "\x2c\x55\x19\x97\x01\x9d\x93\x3b" |
| 33803 | "\x63\x86\xf2\x03\x67\x45\xd2\x72" |
| 33804 | "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11" |
| 33805 | "\x13\xf1\xeb\x21\xc7\xd9\x56\x82" |
| 33806 | "\x2b\x82\x39\xbd\x69\x54\xed\x62" |
| 33807 | "\xc3\xe2\xde\x73\xd4\x6a\x12\xae" |
| 33808 | "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8" |
| 33809 | "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1" |
| 33810 | "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac" |
| 33811 | "\x98\x65\x85\xd1\x93\x53\xd3\x7b" |
| 33812 | "\x09\xdd\x4b\x10\x6d\x84\xb0\x13" |
| 33813 | "\x65\xbd\xcf\x52\x09\xc4\x85\xe2" |
| 33814 | "\x84\x74\x15\x65\xb7\xf7\x51\xaf" |
| 33815 | "\x55\xad\xa4\xd1\x22\x54\x70\x94" |
| 33816 | "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a" |
| 33817 | "\x31\xef\xaa\x25\xd0\x7f\x4f\xea" |
| 33818 | "\x1d\x55\x42\xe5\x49\xb0\xd0\x46" |
| 33819 | "\x62\x36\x43\xb2\x82\x15\x75\x50" |
| 33820 | "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4" |
| 33821 | "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1" |
| 33822 | "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7" |
| 33823 | "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15" |
| 33824 | "\x83\xcb\x72\xd0\x33\x79\x00\x2d" |
| 33825 | "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45" |
| 33826 | "\xc0\x75\x3a\x39\xea\x68\xf7\x5d" |
| 33827 | "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47" |
| 33828 | "\xae\x35\x0a\x31\x7a\x14\x4d\x4a" |
| 33829 | "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b" |
| 33830 | "\x26\x47\xf9\xc3\xf9\xde\x70\xf5" |
| 33831 | "\x61\xab\xa9\x27\x9f\x82\xe4\x9c" |
| 33832 | "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49" |
| 33833 | "\xe9\xfd\x59\x14\x36\x49\x40\x6d" |
| 33834 | "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c" |
| 33835 | "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2" |
| 33836 | "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35" |
| 33837 | "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf" |
| 33838 | "\x9c\xcb\x94\xf3\x21\xa0\x77\x50" |
| 33839 | "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b" |
| 33840 | "\x92\x90\xd8\xe1\xd1\xed\x4b\x42" |
| 33841 | "\xd7\x37\xaf\x65\x3d\x11\x39\xb6" |
| 33842 | "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e" |
| 33843 | "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e" |
| 33844 | "\x29\x06\x9d\xa4\x51\x3a\x10\x63" |
| 33845 | "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28" |
| 33846 | "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c" |
| 33847 | "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e" |
| 33848 | "\x94\x29\x1a\xa7\x80\xfa\x0e\x33" |
| 33849 | "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18" |
| 33850 | "\x37\xa9\x64\x08\x4d\x94\x5a\x88" |
| 33851 | "\xca\x35\xce\x81\x02\xe3\x1f\x1b" |
| 33852 | "\x89\x1a\x77\x85\xe3\x41\x6d\x32" |
| 33853 | "\x42\x19\x23\x7d\xc8\x73\xee\x25" |
| 33854 | "\x85\x0d\xf8\x31\x25\x79\x1b\x6f" |
| 33855 | "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7" |
| 33856 | "\x82\x36\x6a\x0c\x46\x22\x15\xe9" |
| 33857 | "\xff\x72\x41\x91\x91\x7d\x3a\xb7" |
| 33858 | "\xdd\x65\x99\x70\xf6\x8d\x84\xf8" |
| 33859 | "\x67\x15\x20\x11\xd6\xb2\x55\x7b" |
| 33860 | "\xdb\x87\xee\xef\x55\x89\x2a\x59" |
| 33861 | "\x2b\x07\x8f\x43\x8a\x59\x3c\x01" |
| 33862 | "\x8b\x65\x54\xa1\x66\xd5\x38\xbd" |
| 33863 | "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b" |
| 33864 | "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff" |
| 33865 | "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25" |
| 33866 | "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d" |
| 33867 | "\x5c\xfd\x4b\x27\x18\xf9\x61\x76" |
| 33868 | "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5" |
| 33869 | "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a" |
| 33870 | "\xae\xab\x86\x09\x89\xc9\xc2\x40" |
| 33871 | "\x39\x2c\x81\xb3\xb8\x17\x67\xc2" |
| 33872 | "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a" |
| 33873 | "\x34\x52\xc5\xdb\x0a\xf5\x63\x39" |
| 33874 | "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35" |
| 33875 | "\xe3\xb1\x18\x45\x67\xf9\x22\x38" |
| 33876 | "\x95\xd9\x34\x34\x86\xc6\x41\x94" |
| 33877 | "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8" |
| 33878 | "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10" |
| 33879 | "\xff\xe6\xae\x69\x76\xbc\x0d\xb4" |
| 33880 | "\x09\x90\x0c\xa2\x65\x0c\xad\x74" |
| 33881 | "\xf5\xd7\xff\xda\xc1\xce\x85\xbe" |
| 33882 | "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c" |
| 33883 | "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b" |
| 33884 | "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96" |
| 33885 | "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9" |
| 33886 | "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d" |
| 33887 | "\xc9\x92\xae\xf2\xa5\x7b\x05\x49" |
| 33888 | "\xa7\x33\x34\x86\xca\xe4\x96\x23" |
| 33889 | "\x76\x5b\xf2\xc6\xf1\x51\x28\x42" |
| 33890 | "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31" |
| 33891 | "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4" |
| 33892 | "\x3f\x50\x59\xe1\x5c\x05\xb7\x27" |
| 33893 | "\x48\xbf\x07\xec\x1b\x13\xbe\x2b" |
| 33894 | "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c" |
| 33895 | "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3" |
| 33896 | "\xde\x59\xec\x71\xeb\x89\xbb\xd0" |
| 33897 | "\x09\x50\xe1\x16\x3f\xfd\x1c\x34" |
| 33898 | "\xc3\x1c\xa1\x10\x77\x53\x98\xef" |
| 33899 | "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26" |
| 33900 | "\xc7\x42\xd9\x49\xda\x58\x2b\x6e" |
| 33901 | "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e" |
| 33902 | "\x68\xc8\x7f\x51\x22\x42\xef\x49" |
| 33903 | "\xa4\x55\xb6\x36\xac\x09\xc7\x31" |
| 33904 | "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7" |
| 33905 | "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45" |
| 33906 | "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e" |
| 33907 | "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3" |
| 33908 | "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c" |
| 33909 | "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87" |
| 33910 | "\x73\x2e\x71\x79\x16\x06\x63\x28" |
| 33911 | "\x09\x15\xd8\x89\x38\x38\x3d\xb5" |
| 33912 | "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d" |
| 33913 | "\xc8\xca\xef\xf9\x27\xd8\x07\x86" |
| 33914 | "\xf7\x43\x0b\x55\x15\x3f\x9f\x83" |
| 33915 | "\xef\xdc\x49\x9d\x2a\xc1\x54\x62" |
| 33916 | "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3" |
| 33917 | "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75" |
| 33918 | "\x87\x26\xec\x61\x2c\xb4\x0f\x89" |
| 33919 | "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d" |
| 33920 | "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25" |
| 33921 | "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc" |
| 33922 | "\x2b\xa8\x67\x96\x12\x1f\x5b\x96" |
| 33923 | "\xc6\x14\x53\xaf\x44\xea\xd6\xe2" |
| 33924 | "\x94\x98\xe4\x12\x93\x4c\x92\xe0" |
| 33925 | "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47" |
| 33926 | "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf" |
| 33927 | "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03" |
| 33928 | "\x19\x07\xaf\x90\x62\x5c\x68\x98" |
| 33929 | "\x48\x16\x11\x02\x9d\xee\xb4\x9b" |
| 33930 | "\xe5\x42\x7f\x08\xfd\x16\x32\x0b" |
| 33931 | "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29" |
| 33932 | "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2" |
| 33933 | "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74" |
| 33934 | "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd" |
| 33935 | "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67" |
| 33936 | "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f" |
| 33937 | "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e" |
| 33938 | "\x14\x32\xbb\x1b\x38\x77\xd6\x7f" |
| 33939 | "\x54\x4c\xdf\x75\xf3\x07\x2d\x33" |
| 33940 | "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3" |
| 33941 | "\xef\x2f\xce\x72\xe5\x24\x60\xc1" |
| 33942 | "\x30\xe2\xab\xa1\x8e\x11\x09\xa8" |
| 33943 | "\x21\x33\x44\xfe\x7f\x35\x32\x93" |
| 33944 | "\x39\xa7\xad\x8b\x79\x06\xb2\xcb" |
| 33945 | "\x4e\xa9\x5f\xc7\xba\x74\x29\xec" |
| 33946 | "\x93\xa0\x4e\x54\x93\xc0\xbc\x55" |
| 33947 | "\x64\xf0\x48\xe5\x57\x99\xee\x75" |
| 33948 | "\xd6\x79\x0f\x66\xb7\xc6\x57\x76" |
| 33949 | "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f" |
| 33950 | "\x83\x76\xd6\x0e\xaa\xe6\x90\x39" |
| 33951 | "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8" |
| 33952 | "\x58\xa0\x58\x7d\x33\xe0\x22\x39" |
| 33953 | "\x44\x64\x87\x86\x5a\x2f\xa7\x7e" |
| 33954 | "\x0f\x38\xea\xb0\x30\xcc\x61\xa5" |
| 33955 | "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9" |
| 33956 | "\x0c\x32\x4b\xb5\x49\x28\xab\x85" |
| 33957 | "\x2f\x8e\x01\x36\x38\x52\xd0\xba" |
| 33958 | "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b" |
| 33959 | "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1" |
| 33960 | "\x5c\x94\x04\xe1\xf5\x18\x6d\x51" |
| 33961 | "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42" |
| 33962 | "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03" |
| 33963 | "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f" |
| 33964 | "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11" |
| 33965 | "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54" |
| 33966 | "\xea\xa4\x98\x66\xd4\x22\x3b\xd3" |
| 33967 | "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b" |
| 33968 | "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a" |
| 33969 | "\x81\xe1\x86\x89\x3e\x56\x10\x3c" |
| 33970 | "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2" |
| 33971 | "\x53\xec\xa7\x89\xee\xc8\x56\xb5" |
| 33972 | "\x36\x2c\xb2\x03\xba\x99\xdd\x7c" |
| 33973 | "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8" |
| 33974 | "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2" |
| 33975 | "\x56\xf5\x4e\x01\x35\x27\x45\x77" |
| 33976 | "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97" |
| 33977 | "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad" |
| 33978 | "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5" |
| 33979 | "\x99\x20\x43\x85\x9d\xa5\xe2\x8b" |
| 33980 | "\xb8\xae\xeb\xd0\x32\x0d\x52\x78" |
| 33981 | "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc" |
| 33982 | "\x37\xfb\x6f\x04\xfc\xfa\x92\x10" |
| 33983 | "\xac\xf8\x3e\x21\xdc\x8c\x21\x16" |
| 33984 | "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98" |
| 33985 | "\x23\xab\x23\x3c\xb2\x10\xa0\x53" |
| 33986 | "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4" |
| 33987 | "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e" |
| 33988 | "\x0f\xd2\x98\x88\x81\x8b\x45\x67" |
| 33989 | "\xea\x33\xf1\xeb\xe9\x97\x55\x2e" |
| 33990 | "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68" |
| 33991 | "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62" |
| 33992 | "\x87\x8f\x03\x21\x28\x95\x0c\x89" |
| 33993 | "\x25\x22\x4a\xb0\x93\xa9\x50\xa2" |
| 33994 | "\x2f\x57\x6e\x18\x42\x19\x54\x0c" |
| 33995 | "\x55\x67\xc6\x11\x49\xf4\x5c\xd2" |
| 33996 | "\xe9\x3d\xdd\x8b\x48\x71\x21\x00" |
| 33997 | "\xc3\x9a\x6c\x85\x74\x28\x83\x4a" |
| 33998 | "\x1b\x31\x05\xe1\x06\x92\xe7\xda" |
| 33999 | "\x85\x73\x78\x45\x20\x7f\xae\x13" |
| 34000 | "\x7c\x33\x06\x22\xf4\x83\xf9\x35" |
| 34001 | "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b" |
| 34002 | "\xce\x8a\xba\xda\xbe\x28\x08\xf7" |
| 34003 | "\xe2\x14\x8c\x71\xea\x72\xf9\x33" |
| 34004 | "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29" |
| 34005 | "\x19\xdc\x84\xce\x1f\x12\x4f\xc8" |
| 34006 | "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9" |
| 34007 | "\x14\x1f\x6c\x68\x98\x39\x89\x7a" |
| 34008 | "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25" |
| 34009 | "\xe2\xfb\x33\xf4\x59\x78\xe1\x68" |
| 34010 | "\x85\xcf\xfe\x59\x20\xd4\x05\x1d" |
| 34011 | "\x80\x99\xae\xbc\xca\xae\x0f\x2f" |
| 34012 | "\x65\x43\x34\x8e\x7e\xac\xd3\x93" |
| 34013 | "\x2f\xac\x6d\x14\x3d\x02\x07\x70" |
| 34014 | "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01" |
| 34015 | "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd" |
| 34016 | "\x3f\xdf\xee\xf5\xd9\xba\x56\xef" |
| 34017 | "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d" |
| 34018 | "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b" |
| 34019 | "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70" |
| 34020 | "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d" |
| 34021 | "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3" |
| 34022 | "\x14\x89\x5e\x70\x5a\x99\x92\xcd" |
| 34023 | "\x01\x84\xc8\xd2\xab\xe5\x4f\x58" |
| 34024 | "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd" |
| 34025 | "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8" |
| 34026 | "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f" |
| 34027 | "\xe1\x9e\x49\x20\x23\x24\x4d\x7e" |
| 34028 | "\x29\x65\xff\xf4\xb6\xfd\x1a\x85" |
| 34029 | "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c" |
| 34030 | "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd" |
| 34031 | "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c" |
| 34032 | "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30" |
| 34033 | "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff" |
| 34034 | "\x30\xbc\x22\x81\x7d\x93\x12\xe4" |
| 34035 | "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e" |
| 34036 | "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb" |
| 34037 | "\x37\x09\x4b\x91\x6f\x92\x4f\xaf" |
| 34038 | "\x52\xee\xdf\xef\x09\x6f\xf7\x5c" |
| 34039 | "\x6e\x12\x17\x72\x63\x57\xc7\xba" |
| 34040 | "\x3b\x6b\x38\x32\x73\x1b\x9c\x80" |
| 34041 | "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b" |
| 34042 | "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f" |
| 34043 | "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2" |
| 34044 | "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd" |
| 34045 | "\x13\x3d\x64\xfd\x06\xce\xe6\xdc" |
| 34046 | "\x0c\x24\x43\x31\x40\x57\xf1\x72" |
| 34047 | "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d" |
| 34048 | "\x97\x40\x59\xdd\xf7\x3c\x02\xf7" |
| 34049 | "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1" |
| 34050 | "\x8e\xc0\x30\xa9\x53\x24\xc9\x89" |
| 34051 | "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d" |
| 34052 | "\x91\xb0\x89\xe2\xbf\x83\x44\xaa" |
| 34053 | "\x28\x72\x23\xa0\xc2\xad\xad\x1c" |
| 34054 | "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b" |
| 34055 | "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8" |
| 34056 | "\xaf\xdf\x11\x95", |
| 34057 | .rlen = 4100, |
| 34058 | .np = 2, |
| 34059 | .tap = { 4064, 36 }, |
| 34060 | }, |
| 34061 | }; |
| 34062 | |
Martin Willi | 6692cbc2 | 2015-07-16 19:14:04 +0200 | [diff] [blame] | 34063 | #define CHACHA20_ENC_TEST_VECTORS 4 |
Martin Willi | 3590ebf | 2015-06-01 13:43:57 +0200 | [diff] [blame] | 34064 | static struct cipher_testvec chacha20_enc_tv_template[] = { |
| 34065 | { /* RFC7539 A.2. Test Vector #1 */ |
| 34066 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34067 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34068 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34069 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 34070 | .klen = 32, |
| 34071 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34072 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 34073 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34074 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34075 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34076 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34077 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34078 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34079 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34080 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 34081 | .ilen = 64, |
| 34082 | .result = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90" |
| 34083 | "\x40\x5d\x6a\xe5\x53\x86\xbd\x28" |
| 34084 | "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a" |
| 34085 | "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7" |
| 34086 | "\xda\x41\x59\x7c\x51\x57\x48\x8d" |
| 34087 | "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37" |
| 34088 | "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c" |
| 34089 | "\xc3\x87\xb6\x69\xb2\xee\x65\x86", |
| 34090 | .rlen = 64, |
| 34091 | }, { /* RFC7539 A.2. Test Vector #2 */ |
| 34092 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34093 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34094 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 34095 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 34096 | .klen = 32, |
| 34097 | .iv = "\x01\x00\x00\x00\x00\x00\x00\x00" |
| 34098 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 34099 | .input = "\x41\x6e\x79\x20\x73\x75\x62\x6d" |
| 34100 | "\x69\x73\x73\x69\x6f\x6e\x20\x74" |
| 34101 | "\x6f\x20\x74\x68\x65\x20\x49\x45" |
| 34102 | "\x54\x46\x20\x69\x6e\x74\x65\x6e" |
| 34103 | "\x64\x65\x64\x20\x62\x79\x20\x74" |
| 34104 | "\x68\x65\x20\x43\x6f\x6e\x74\x72" |
| 34105 | "\x69\x62\x75\x74\x6f\x72\x20\x66" |
| 34106 | "\x6f\x72\x20\x70\x75\x62\x6c\x69" |
| 34107 | "\x63\x61\x74\x69\x6f\x6e\x20\x61" |
| 34108 | "\x73\x20\x61\x6c\x6c\x20\x6f\x72" |
| 34109 | "\x20\x70\x61\x72\x74\x20\x6f\x66" |
| 34110 | "\x20\x61\x6e\x20\x49\x45\x54\x46" |
| 34111 | "\x20\x49\x6e\x74\x65\x72\x6e\x65" |
| 34112 | "\x74\x2d\x44\x72\x61\x66\x74\x20" |
| 34113 | "\x6f\x72\x20\x52\x46\x43\x20\x61" |
| 34114 | "\x6e\x64\x20\x61\x6e\x79\x20\x73" |
| 34115 | "\x74\x61\x74\x65\x6d\x65\x6e\x74" |
| 34116 | "\x20\x6d\x61\x64\x65\x20\x77\x69" |
| 34117 | "\x74\x68\x69\x6e\x20\x74\x68\x65" |
| 34118 | "\x20\x63\x6f\x6e\x74\x65\x78\x74" |
| 34119 | "\x20\x6f\x66\x20\x61\x6e\x20\x49" |
| 34120 | "\x45\x54\x46\x20\x61\x63\x74\x69" |
| 34121 | "\x76\x69\x74\x79\x20\x69\x73\x20" |
| 34122 | "\x63\x6f\x6e\x73\x69\x64\x65\x72" |
| 34123 | "\x65\x64\x20\x61\x6e\x20\x22\x49" |
| 34124 | "\x45\x54\x46\x20\x43\x6f\x6e\x74" |
| 34125 | "\x72\x69\x62\x75\x74\x69\x6f\x6e" |
| 34126 | "\x22\x2e\x20\x53\x75\x63\x68\x20" |
| 34127 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 34128 | "\x74\x73\x20\x69\x6e\x63\x6c\x75" |
| 34129 | "\x64\x65\x20\x6f\x72\x61\x6c\x20" |
| 34130 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 34131 | "\x74\x73\x20\x69\x6e\x20\x49\x45" |
| 34132 | "\x54\x46\x20\x73\x65\x73\x73\x69" |
| 34133 | "\x6f\x6e\x73\x2c\x20\x61\x73\x20" |
| 34134 | "\x77\x65\x6c\x6c\x20\x61\x73\x20" |
| 34135 | "\x77\x72\x69\x74\x74\x65\x6e\x20" |
| 34136 | "\x61\x6e\x64\x20\x65\x6c\x65\x63" |
| 34137 | "\x74\x72\x6f\x6e\x69\x63\x20\x63" |
| 34138 | "\x6f\x6d\x6d\x75\x6e\x69\x63\x61" |
| 34139 | "\x74\x69\x6f\x6e\x73\x20\x6d\x61" |
| 34140 | "\x64\x65\x20\x61\x74\x20\x61\x6e" |
| 34141 | "\x79\x20\x74\x69\x6d\x65\x20\x6f" |
| 34142 | "\x72\x20\x70\x6c\x61\x63\x65\x2c" |
| 34143 | "\x20\x77\x68\x69\x63\x68\x20\x61" |
| 34144 | "\x72\x65\x20\x61\x64\x64\x72\x65" |
| 34145 | "\x73\x73\x65\x64\x20\x74\x6f", |
| 34146 | .ilen = 375, |
| 34147 | .result = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde" |
| 34148 | "\x4f\x37\x6c\xa2\x3e\x82\x73\x70" |
| 34149 | "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd" |
| 34150 | "\x8c\xff\x2c\x1d\x4b\x79\x55\xec" |
| 34151 | "\x2a\x97\x94\x8b\xd3\x72\x29\x15" |
| 34152 | "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05" |
| 34153 | "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f" |
| 34154 | "\x56\xe0\x31\xca\x5e\xb6\x25\x0d" |
| 34155 | "\x40\x42\xe0\x27\x85\xec\xec\xfa" |
| 34156 | "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e" |
| 34157 | "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7" |
| 34158 | "\xc6\x13\x2f\x42\x0e\x52\x79\x50" |
| 34159 | "\x42\xbd\xfa\x77\x73\xd8\xa9\x05" |
| 34160 | "\x14\x47\xb3\x29\x1c\xe1\x41\x1c" |
| 34161 | "\x68\x04\x65\x55\x2a\xa6\xc4\x05" |
| 34162 | "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a" |
| 34163 | "\xd0\x0f\x84\x49\xed\x8f\x72\xd0" |
| 34164 | "\xd6\x62\xab\x05\x26\x91\xca\x66" |
| 34165 | "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4" |
| 34166 | "\x1f\x43\xab\xf9\x37\xd3\x25\x9d" |
| 34167 | "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91" |
| 34168 | "\x39\xdd\xd7\xf7\x69\x66\xe9\x28" |
| 34169 | "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87" |
| 34170 | "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b" |
| 34171 | "\x08\x71\xcd\xac\x63\x89\x39\xe2" |
| 34172 | "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f" |
| 34173 | "\xa8\xca\x32\x8b\x35\x1c\x3c\x76" |
| 34174 | "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c" |
| 34175 | "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b" |
| 34176 | "\x37\x20\xfc\x88\xdc\x95\xed\x84" |
| 34177 | "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd" |
| 34178 | "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b" |
| 34179 | "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe" |
| 34180 | "\x55\x69\x75\x3f\x88\x12\x8c\xc0" |
| 34181 | "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80" |
| 34182 | "\xef\x25\x54\xd7\x18\x9c\x41\x1f" |
| 34183 | "\x58\x69\xca\x52\xc5\xb8\x3f\xa3" |
| 34184 | "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62" |
| 34185 | "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91" |
| 34186 | "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6" |
| 34187 | "\x98\xce\xd7\x59\xc3\xff\x9b\x64" |
| 34188 | "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85" |
| 34189 | "\x14\xea\x99\x82\xcc\xaf\xb3\x41" |
| 34190 | "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab" |
| 34191 | "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba" |
| 34192 | "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd" |
| 34193 | "\xc4\xfd\x80\x6c\x22\xf2\x21", |
| 34194 | .rlen = 375, |
| 34195 | }, { /* RFC7539 A.2. Test Vector #3 */ |
| 34196 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 34197 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 34198 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 34199 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0", |
| 34200 | .klen = 32, |
| 34201 | .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00" |
| 34202 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 34203 | .input = "\x27\x54\x77\x61\x73\x20\x62\x72" |
| 34204 | "\x69\x6c\x6c\x69\x67\x2c\x20\x61" |
| 34205 | "\x6e\x64\x20\x74\x68\x65\x20\x73" |
| 34206 | "\x6c\x69\x74\x68\x79\x20\x74\x6f" |
| 34207 | "\x76\x65\x73\x0a\x44\x69\x64\x20" |
| 34208 | "\x67\x79\x72\x65\x20\x61\x6e\x64" |
| 34209 | "\x20\x67\x69\x6d\x62\x6c\x65\x20" |
| 34210 | "\x69\x6e\x20\x74\x68\x65\x20\x77" |
| 34211 | "\x61\x62\x65\x3a\x0a\x41\x6c\x6c" |
| 34212 | "\x20\x6d\x69\x6d\x73\x79\x20\x77" |
| 34213 | "\x65\x72\x65\x20\x74\x68\x65\x20" |
| 34214 | "\x62\x6f\x72\x6f\x67\x6f\x76\x65" |
| 34215 | "\x73\x2c\x0a\x41\x6e\x64\x20\x74" |
| 34216 | "\x68\x65\x20\x6d\x6f\x6d\x65\x20" |
| 34217 | "\x72\x61\x74\x68\x73\x20\x6f\x75" |
| 34218 | "\x74\x67\x72\x61\x62\x65\x2e", |
| 34219 | .ilen = 127, |
| 34220 | .result = "\x62\xe6\x34\x7f\x95\xed\x87\xa4" |
| 34221 | "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf" |
| 34222 | "\x5f\xb6\x91\x10\x04\x4c\x0d\x73" |
| 34223 | "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf" |
| 34224 | "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9" |
| 34225 | "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71" |
| 34226 | "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83" |
| 34227 | "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb" |
| 34228 | "\xf3\x9c\x64\x02\xc4\x22\x34\xe3" |
| 34229 | "\x2a\x35\x6b\x3e\x76\x43\x12\xa6" |
| 34230 | "\x1a\x55\x32\x05\x57\x16\xea\xd6" |
| 34231 | "\x96\x25\x68\xf8\x7d\x3f\x3f\x77" |
| 34232 | "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d" |
| 34233 | "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1" |
| 34234 | "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36" |
| 34235 | "\x75\x7a\x79\x7a\xc1\x88\xd1", |
| 34236 | .rlen = 127, |
Martin Willi | 6692cbc2 | 2015-07-16 19:14:04 +0200 | [diff] [blame] | 34237 | }, { /* Self-made test vector for long data */ |
| 34238 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 34239 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 34240 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 34241 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0", |
| 34242 | .klen = 32, |
| 34243 | .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00" |
| 34244 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 34245 | .input = "\x49\xee\xe0\xdc\x24\x90\x40\xcd" |
| 34246 | "\xc5\x40\x8f\x47\x05\xbc\xdd\x81" |
| 34247 | "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb" |
| 34248 | "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8" |
| 34249 | "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4" |
| 34250 | "\x19\x4b\x01\x0f\x4e\xa4\x43\xce" |
| 34251 | "\x01\xc6\x67\xda\x03\x91\x18\x90" |
| 34252 | "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac" |
| 34253 | "\x74\x92\xd3\x53\x47\xc8\xdd\x25" |
| 34254 | "\x53\x6c\x02\x03\x87\x0d\x11\x0c" |
| 34255 | "\x58\xe3\x12\x18\xfd\x2a\x5b\x40" |
| 34256 | "\x0c\x30\xf0\xb8\x3f\x43\xce\xae" |
| 34257 | "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc" |
| 34258 | "\x33\x97\xc3\x77\xba\xc5\x70\xde" |
| 34259 | "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f" |
| 34260 | "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c" |
| 34261 | "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c" |
| 34262 | "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe" |
| 34263 | "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6" |
| 34264 | "\x79\x49\x41\xf4\x58\x18\xcb\x86" |
| 34265 | "\x7f\x30\x0e\xf8\x7d\x44\x36\xea" |
| 34266 | "\x75\xeb\x88\x84\x40\x3c\xad\x4f" |
| 34267 | "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5" |
| 34268 | "\x21\x66\xe9\xa7\xe3\xb2\x15\x88" |
| 34269 | "\x78\xf6\x79\xa1\x59\x47\x12\x4e" |
| 34270 | "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08" |
| 34271 | "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b" |
| 34272 | "\xdd\x60\x71\xf7\x47\x8c\x61\xc3" |
| 34273 | "\xda\x8a\x78\x1e\x16\xfa\x1e\x86" |
| 34274 | "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7" |
| 34275 | "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4" |
| 34276 | "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6" |
| 34277 | "\xf4\xe6\x33\x43\x84\x93\xa5\x67" |
| 34278 | "\x9b\x16\x58\x58\x80\x0f\x2b\x5c" |
| 34279 | "\x24\x74\x75\x7f\x95\x81\xb7\x30" |
| 34280 | "\x7a\x33\xa7\xf7\x94\x87\x32\x27" |
| 34281 | "\x10\x5d\x14\x4c\x43\x29\xdd\x26" |
| 34282 | "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10" |
| 34283 | "\xea\x6b\x64\xfd\x73\xc6\xed\xec" |
| 34284 | "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07" |
| 34285 | "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5" |
| 34286 | "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1" |
| 34287 | "\xec\xca\x60\x09\x4c\x6a\xd5\x09" |
| 34288 | "\x49\x46\x00\x88\x22\x8d\xce\xea" |
| 34289 | "\xb1\x17\x11\xde\x42\xd2\x23\xc1" |
| 34290 | "\x72\x11\xf5\x50\x73\x04\x40\x47" |
| 34291 | "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0" |
| 34292 | "\x3f\x58\xc1\x52\xab\x12\x67\x9d" |
| 34293 | "\x3f\x43\x4b\x68\xd4\x9c\x68\x38" |
| 34294 | "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b" |
| 34295 | "\xf9\xe5\x31\x69\x22\xf9\xa6\x69" |
| 34296 | "\xc6\x9c\x96\x9a\x12\x35\x95\x1d" |
| 34297 | "\x95\xd5\xdd\xbe\xbf\x93\x53\x24" |
| 34298 | "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00" |
| 34299 | "\x6f\x88\xc4\x37\x18\x69\x7c\xd7" |
| 34300 | "\x41\x92\x55\x4c\x03\xa1\x9a\x4b" |
| 34301 | "\x15\xe5\xdf\x7f\x37\x33\x72\xc1" |
| 34302 | "\x8b\x10\x67\xa3\x01\x57\x94\x25" |
| 34303 | "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73" |
| 34304 | "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda" |
| 34305 | "\x58\xb1\x47\x90\xfe\x42\x21\x72" |
| 34306 | "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd" |
| 34307 | "\xc6\x84\x6e\xca\xae\xe3\x68\xb4" |
| 34308 | "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b" |
| 34309 | "\x03\xa1\x31\xd9\xde\x8d\xf5\x22" |
| 34310 | "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76" |
| 34311 | "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe" |
| 34312 | "\x54\xf7\x27\x1b\xf4\xde\x02\xf5" |
| 34313 | "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e" |
| 34314 | "\x4b\x6e\xed\x46\x23\xdc\x65\xb2" |
| 34315 | "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7" |
| 34316 | "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8" |
| 34317 | "\x65\x69\x8a\x45\x29\xef\x74\x85" |
| 34318 | "\xde\x79\xc7\x08\xae\x30\xb0\xf4" |
| 34319 | "\xa3\x1d\x51\x41\xab\xce\xcb\xf6" |
| 34320 | "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3" |
| 34321 | "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7" |
| 34322 | "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9" |
| 34323 | "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a" |
| 34324 | "\x9f\xd7\xb9\x6c\x65\x14\x22\x45" |
| 34325 | "\x6e\x45\x32\x3e\x7e\x60\x1a\x12" |
| 34326 | "\x97\x82\x14\xfb\xaa\x04\x22\xfa" |
| 34327 | "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d" |
| 34328 | "\x78\x33\x5a\x7c\xad\xdb\x29\xce" |
| 34329 | "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac" |
| 34330 | "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21" |
| 34331 | "\x83\x35\x7e\xad\x73\xc2\xb5\x6c" |
| 34332 | "\x10\x26\x38\x07\xe5\xc7\x36\x80" |
| 34333 | "\xe2\x23\x12\x61\xf5\x48\x4b\x2b" |
| 34334 | "\xc5\xdf\x15\xd9\x87\x01\xaa\xac" |
| 34335 | "\x1e\x7c\xad\x73\x78\x18\x63\xe0" |
| 34336 | "\x8b\x9f\x81\xd8\x12\x6a\x28\x10" |
| 34337 | "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c" |
| 34338 | "\x83\x66\x80\x47\x80\xe8\xfd\x35" |
| 34339 | "\x1c\x97\x6f\xae\x49\x10\x66\xcc" |
| 34340 | "\xc6\xd8\xcc\x3a\x84\x91\x20\x77" |
| 34341 | "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9" |
| 34342 | "\x25\x94\x10\x5f\x40\x00\x64\x99" |
| 34343 | "\xdc\xae\xd7\x21\x09\x78\x50\x15" |
| 34344 | "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39" |
| 34345 | "\x87\x6e\x6d\xab\xde\x08\x51\x16" |
| 34346 | "\xc7\x13\xe9\xea\xed\x06\x8e\x2c" |
| 34347 | "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43" |
| 34348 | "\xb6\x98\x37\xb2\x43\xed\xde\xdf" |
| 34349 | "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b" |
| 34350 | "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9" |
| 34351 | "\x80\x55\xc9\x34\x91\xd1\x59\xe8" |
| 34352 | "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06" |
| 34353 | "\x20\xa8\x5d\xfa\xd1\xde\x70\x56" |
| 34354 | "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8" |
| 34355 | "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5" |
| 34356 | "\x44\x4b\x9f\xc2\x93\x03\xea\x2b" |
| 34357 | "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23" |
| 34358 | "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee" |
| 34359 | "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab" |
| 34360 | "\x82\x6b\x37\x04\xeb\x74\xbe\x79" |
| 34361 | "\xb9\x83\x90\xef\x20\x59\x46\xff" |
| 34362 | "\xe9\x97\x3e\x2f\xee\xb6\x64\x18" |
| 34363 | "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a" |
| 34364 | "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4" |
| 34365 | "\xce\xd3\x91\x49\x88\xc7\xb8\x4d" |
| 34366 | "\xb1\xb9\x07\x6d\x16\x72\xae\x46" |
| 34367 | "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8" |
| 34368 | "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62" |
| 34369 | "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9" |
| 34370 | "\x94\x97\xea\xdd\x58\x9e\xae\x76" |
| 34371 | "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde" |
| 34372 | "\xf7\x32\x87\xcd\x93\xbf\x11\x56" |
| 34373 | "\x11\xbe\x08\x74\xe1\x69\xad\xe2" |
| 34374 | "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe" |
| 34375 | "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76" |
| 34376 | "\x35\xea\x5d\x85\x81\xaf\x85\xeb" |
| 34377 | "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc" |
| 34378 | "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a" |
| 34379 | "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9" |
| 34380 | "\x37\x1c\xeb\x46\x54\x3f\xa5\x91" |
| 34381 | "\xc2\xb5\x8c\xfe\x53\x08\x97\x32" |
| 34382 | "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc" |
| 34383 | "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1" |
| 34384 | "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c" |
| 34385 | "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd" |
| 34386 | "\x20\x4e\x7c\x51\xb0\x60\x73\xb8" |
| 34387 | "\x9c\xac\x91\x90\x7e\x01\xb0\xe1" |
| 34388 | "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a" |
| 34389 | "\x06\x52\x95\x52\xb2\xe9\x25\x2e" |
| 34390 | "\x4c\xe2\x5a\x00\xb2\x13\x81\x03" |
| 34391 | "\x77\x66\x0d\xa5\x99\xda\x4e\x8c" |
| 34392 | "\xac\xf3\x13\x53\x27\x45\xaf\x64" |
| 34393 | "\x46\xdc\xea\x23\xda\x97\xd1\xab" |
| 34394 | "\x7d\x6c\x30\x96\x1f\xbc\x06\x34" |
| 34395 | "\x18\x0b\x5e\x21\x35\x11\x8d\x4c" |
| 34396 | "\xe0\x2d\xe9\x50\x16\x74\x81\xa8" |
| 34397 | "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc" |
| 34398 | "\xca\x34\x83\x27\x10\x5b\x68\x45" |
| 34399 | "\x8f\x52\x22\x0c\x55\x3d\x29\x7c" |
| 34400 | "\xe3\xc0\x66\x05\x42\x91\x5f\x58" |
| 34401 | "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19" |
| 34402 | "\x04\xa9\x08\x4b\x57\xfc\x67\x53" |
| 34403 | "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f" |
| 34404 | "\x92\xd6\x41\x7c\x5b\x2a\x00\x79" |
| 34405 | "\x72", |
| 34406 | .ilen = 1281, |
| 34407 | .result = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87" |
| 34408 | "\xe8\x1d\x37\x96\x8a\xe3\x40\x35" |
| 34409 | "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69" |
| 34410 | "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec" |
| 34411 | "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9" |
| 34412 | "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d" |
| 34413 | "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce" |
| 34414 | "\x92\x2c\xf7\xbb\x93\x57\xcc\xee" |
| 34415 | "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf" |
| 34416 | "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd" |
| 34417 | "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11" |
| 34418 | "\x92\xfd\x39\x5c\x51\xd0\x2f\x66" |
| 34419 | "\x33\x4a\x71\x15\xfe\xee\x12\x54" |
| 34420 | "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6" |
| 34421 | "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25" |
| 34422 | "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5" |
| 34423 | "\x57\x0e\x94\x17\x26\x39\xbb\x54" |
| 34424 | "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f" |
| 34425 | "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3" |
| 34426 | "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a" |
| 34427 | "\x70\x5a\xa7\xf1\x31\x64\x19\xca" |
| 34428 | "\x45\x79\xd8\x58\x23\x61\xaf\xc2" |
| 34429 | "\x52\x05\xc3\x0b\xc1\x64\x7c\x81" |
| 34430 | "\xd9\x11\xcf\xff\x02\x3d\x51\x84" |
| 34431 | "\x01\xac\xc6\x2e\x34\x2b\x09\x3a" |
| 34432 | "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f" |
| 34433 | "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d" |
| 34434 | "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9" |
| 34435 | "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd" |
| 34436 | "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c" |
| 34437 | "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b" |
| 34438 | "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b" |
| 34439 | "\xe2\x03\x06\xc5\x71\xb6\x48\xa5" |
| 34440 | "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f" |
| 34441 | "\x01\xa7\x59\x80\x5f\x11\x6c\x40" |
| 34442 | "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c" |
| 34443 | "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e" |
| 34444 | "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9" |
| 34445 | "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03" |
| 34446 | "\xae\xe7\x61\x32\xef\x41\x6c\x75" |
| 34447 | "\x84\x9b\x8c\xce\x1d\x6b\x93\x21" |
| 34448 | "\x41\xec\xc6\xad\x8e\x0c\x48\xa8" |
| 34449 | "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a" |
| 34450 | "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85" |
| 34451 | "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2" |
| 34452 | "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6" |
| 34453 | "\x37\xbd\xbe\x24\x36\x77\x9f\x1b" |
| 34454 | "\xc1\x22\xf3\x79\xae\x95\x78\x66" |
| 34455 | "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38" |
| 34456 | "\x09\xc2\xee\xb7\xd3\x46\x7b\x59" |
| 34457 | "\x77\x23\xe8\xb4\x92\x3d\x78\xbe" |
| 34458 | "\xe2\x25\x63\xa5\x2a\x06\x70\x92" |
| 34459 | "\x32\x63\xf9\x19\x21\x68\xe1\x0b" |
| 34460 | "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde" |
| 34461 | "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9" |
| 34462 | "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75" |
| 34463 | "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f" |
| 34464 | "\x71\x2a\x3a\x60\xed\x06\x0d\x17" |
| 34465 | "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb" |
| 34466 | "\x94\x04\xd8\x58\xfc\xc4\x04\x4e" |
| 34467 | "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d" |
| 34468 | "\x02\x3e\x02\x67\xe5\xd8\xbb\x79" |
| 34469 | "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46" |
| 34470 | "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6" |
| 34471 | "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb" |
| 34472 | "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6" |
| 34473 | "\x0d\x96\x09\xbb\x19\xba\xe0\x3c" |
| 34474 | "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62" |
| 34475 | "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1" |
| 34476 | "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa" |
| 34477 | "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42" |
| 34478 | "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69" |
| 34479 | "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb" |
| 34480 | "\xfd\xb5\x08\x47\x42\x84\x9a\xfa" |
| 34481 | "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32" |
| 34482 | "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5" |
| 34483 | "\x94\x16\xad\xf0\x10\x2e\x2d\xb4" |
| 34484 | "\x8b\xab\xe5\x89\xc7\x39\x12\xf3" |
| 34485 | "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c" |
| 34486 | "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc" |
| 34487 | "\x54\x1c\x34\x72\xde\x0c\x68\x39" |
| 34488 | "\x9d\x32\xa5\x75\x92\x13\x32\xea" |
| 34489 | "\x90\x27\xbd\x5b\x1d\xb9\x21\x02" |
| 34490 | "\x1c\xcc\xba\x97\x5e\x49\x58\xe8" |
| 34491 | "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9" |
| 34492 | "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd" |
| 34493 | "\x55\x25\x89\x9e\x90\xf3\x6b\x8f" |
| 34494 | "\xb7\xd6\x47\x98\x26\x2f\x31\x2f" |
| 34495 | "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7" |
| 34496 | "\xac\xc3\x08\xc2\xa6\x32\xf1\x24" |
| 34497 | "\x76\x7c\x4f\x78\x53\x55\xfb\x00" |
| 34498 | "\x8a\xd6\x52\x53\x25\x45\xfb\x0a" |
| 34499 | "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a" |
| 34500 | "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb" |
| 34501 | "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64" |
| 34502 | "\x28\x3d\x0f\xee\x80\xba\x0c\xf8" |
| 34503 | "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e" |
| 34504 | "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee" |
| 34505 | "\x40\x0d\xde\x07\xa7\x14\xb4\x90" |
| 34506 | "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7" |
| 34507 | "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5" |
| 34508 | "\x79\x61\x23\xe0\xa2\x99\x73\x55" |
| 34509 | "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f" |
| 34510 | "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64" |
| 34511 | "\xa3\x60\x18\x9f\x80\xaf\x52\x74" |
| 34512 | "\x1a\xfe\x22\xc2\x92\x67\x40\x02" |
| 34513 | "\x08\xee\x67\x5b\x67\xe0\x3d\xde" |
| 34514 | "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4" |
| 34515 | "\x48\x56\xaa\x85\x22\xd8\x36\xed" |
| 34516 | "\x3b\x3d\x68\x69\x30\xbc\x71\x23" |
| 34517 | "\xb1\x6e\x61\x03\x89\x44\x03\xf4" |
| 34518 | "\x32\xaa\x4c\x40\x9f\x69\xfb\x70" |
| 34519 | "\x91\xcc\x1f\x11\xbd\x76\x67\xe6" |
| 34520 | "\x10\x8b\x29\x39\x68\xea\x4e\x6d" |
| 34521 | "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d" |
| 34522 | "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e" |
| 34523 | "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d" |
| 34524 | "\x13\xbe\x21\xea\x16\xe7\x5c\xee" |
| 34525 | "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b" |
| 34526 | "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a" |
| 34527 | "\xec\x83\x92\x99\x87\x47\xe0\x7c" |
| 34528 | "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03" |
| 34529 | "\x98\xb0\x87\xb6\x86\x13\x64\x33" |
| 34530 | "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa" |
| 34531 | "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83" |
| 34532 | "\xd4\xba\x7a\x84\x9d\x91\x71\xcd" |
| 34533 | "\x60\x2d\x56\xfd\x26\x35\xcb\xeb" |
| 34534 | "\xac\xe9\xee\xa4\xfc\x18\x5b\x91" |
| 34535 | "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11" |
| 34536 | "\xe9\x00\xb6\x54\xdf\xe1\x94\xde" |
| 34537 | "\x2b\x70\x9f\x94\x7f\x15\x0e\x83" |
| 34538 | "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1" |
| 34539 | "\xa5\xfc\x17\x19\x68\x9a\xbc\x17" |
| 34540 | "\x30\x43\x0a\x1a\x33\x92\xd4\x2a" |
| 34541 | "\x2e\x68\x99\xbc\x49\xf0\x68\xe3" |
| 34542 | "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56" |
| 34543 | "\x46\x84\x8b\x69\x83\x64\xc5\xe0" |
| 34544 | "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf" |
| 34545 | "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76" |
| 34546 | "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c" |
| 34547 | "\x5f\xae\x25\x84\x22\x90\x5f\x26" |
| 34548 | "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05" |
| 34549 | "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24" |
| 34550 | "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3" |
| 34551 | "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f" |
| 34552 | "\xc7\x2b\xde\x3a\xfd\xad\x93\x04" |
| 34553 | "\x74\x06\x89\x0e\x90\xeb\x85\xff" |
| 34554 | "\xe6\x3c\x12\x42\xf4\xfa\x80\x75" |
| 34555 | "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41" |
| 34556 | "\x02\x85\x68\xd0\x03\x12\xde\x92" |
| 34557 | "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb" |
| 34558 | "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37" |
| 34559 | "\x25\xee\xa7\x6e\xd9\x89\x86\x50" |
| 34560 | "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e" |
| 34561 | "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f" |
| 34562 | "\x71\xbe\x8f\x9d\x26\xef\xd9\x89" |
| 34563 | "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa" |
| 34564 | "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08" |
| 34565 | "\x23\x45\x89\x42\xa0\x30\xeb\xbf" |
| 34566 | "\xa1\xed\xad\xd5\x76\xfa\x24\x8f" |
| 34567 | "\x98", |
| 34568 | .rlen = 1281, |
Martin Willi | 3590ebf | 2015-06-01 13:43:57 +0200 | [diff] [blame] | 34569 | }, |
| 34570 | }; |
| 34571 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 34572 | /* |
| 34573 | * CTS (Cipher Text Stealing) mode tests |
| 34574 | */ |
| 34575 | #define CTS_MODE_ENC_TEST_VECTORS 6 |
| 34576 | #define CTS_MODE_DEC_TEST_VECTORS 6 |
| 34577 | static struct cipher_testvec cts_mode_enc_tv_template[] = { |
| 34578 | { /* from rfc3962 */ |
| 34579 | .klen = 16, |
| 34580 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34581 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34582 | .ilen = 17, |
| 34583 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34584 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34585 | "\x20", |
| 34586 | .rlen = 17, |
| 34587 | .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" |
| 34588 | "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" |
| 34589 | "\x97", |
| 34590 | }, { |
| 34591 | .klen = 16, |
| 34592 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34593 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34594 | .ilen = 31, |
| 34595 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34596 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34597 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34598 | "\x20\x47\x61\x75\x27\x73\x20", |
| 34599 | .rlen = 31, |
| 34600 | .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" |
| 34601 | "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" |
| 34602 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34603 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5", |
| 34604 | }, { |
| 34605 | .klen = 16, |
| 34606 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34607 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34608 | .ilen = 32, |
| 34609 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34610 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34611 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34612 | "\x20\x47\x61\x75\x27\x73\x20\x43", |
| 34613 | .rlen = 32, |
| 34614 | .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 34615 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 34616 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34617 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", |
| 34618 | }, { |
| 34619 | .klen = 16, |
| 34620 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34621 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34622 | .ilen = 47, |
| 34623 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34624 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34625 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34626 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 34627 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 34628 | "\x70\x6c\x65\x61\x73\x65\x2c", |
| 34629 | .rlen = 47, |
| 34630 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34631 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 34632 | "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" |
| 34633 | "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" |
| 34634 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 34635 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5", |
| 34636 | }, { |
| 34637 | .klen = 16, |
| 34638 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34639 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34640 | .ilen = 48, |
| 34641 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34642 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34643 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34644 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 34645 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 34646 | "\x70\x6c\x65\x61\x73\x65\x2c\x20", |
| 34647 | .rlen = 48, |
| 34648 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34649 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 34650 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 34651 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" |
| 34652 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 34653 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", |
| 34654 | }, { |
| 34655 | .klen = 16, |
| 34656 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34657 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34658 | .ilen = 64, |
| 34659 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34660 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34661 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34662 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 34663 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 34664 | "\x70\x6c\x65\x61\x73\x65\x2c\x20" |
| 34665 | "\x61\x6e\x64\x20\x77\x6f\x6e\x74" |
| 34666 | "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", |
| 34667 | .rlen = 64, |
| 34668 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34669 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 34670 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 34671 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 34672 | "\x48\x07\xef\xe8\x36\xee\x89\xa5" |
| 34673 | "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" |
| 34674 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 34675 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", |
| 34676 | } |
| 34677 | }; |
| 34678 | |
| 34679 | static struct cipher_testvec cts_mode_dec_tv_template[] = { |
| 34680 | { /* from rfc3962 */ |
| 34681 | .klen = 16, |
| 34682 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34683 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34684 | .rlen = 17, |
| 34685 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34686 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34687 | "\x20", |
| 34688 | .ilen = 17, |
| 34689 | .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" |
| 34690 | "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" |
| 34691 | "\x97", |
| 34692 | }, { |
| 34693 | .klen = 16, |
| 34694 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34695 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34696 | .rlen = 31, |
| 34697 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34698 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34699 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34700 | "\x20\x47\x61\x75\x27\x73\x20", |
| 34701 | .ilen = 31, |
| 34702 | .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" |
| 34703 | "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" |
| 34704 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34705 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5", |
| 34706 | }, { |
| 34707 | .klen = 16, |
| 34708 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34709 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34710 | .rlen = 32, |
| 34711 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34712 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34713 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34714 | "\x20\x47\x61\x75\x27\x73\x20\x43", |
| 34715 | .ilen = 32, |
| 34716 | .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 34717 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 34718 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34719 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", |
| 34720 | }, { |
| 34721 | .klen = 16, |
| 34722 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34723 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34724 | .rlen = 47, |
| 34725 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34726 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34727 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34728 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 34729 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 34730 | "\x70\x6c\x65\x61\x73\x65\x2c", |
| 34731 | .ilen = 47, |
| 34732 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34733 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 34734 | "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" |
| 34735 | "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" |
| 34736 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 34737 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5", |
| 34738 | }, { |
| 34739 | .klen = 16, |
| 34740 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34741 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34742 | .rlen = 48, |
| 34743 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34744 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34745 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34746 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 34747 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 34748 | "\x70\x6c\x65\x61\x73\x65\x2c\x20", |
| 34749 | .ilen = 48, |
| 34750 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34751 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 34752 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 34753 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" |
| 34754 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 34755 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", |
| 34756 | }, { |
| 34757 | .klen = 16, |
| 34758 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 34759 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 34760 | .rlen = 64, |
| 34761 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 34762 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 34763 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 34764 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 34765 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 34766 | "\x70\x6c\x65\x61\x73\x65\x2c\x20" |
| 34767 | "\x61\x6e\x64\x20\x77\x6f\x6e\x74" |
| 34768 | "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", |
| 34769 | .ilen = 64, |
| 34770 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 34771 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 34772 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 34773 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 34774 | "\x48\x07\xef\xe8\x36\xee\x89\xa5" |
| 34775 | "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" |
| 34776 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 34777 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", |
| 34778 | } |
| 34779 | }; |
| 34780 | |
| 34781 | /* |
| 34782 | * Compression stuff. |
| 34783 | */ |
| 34784 | #define COMP_BUF_SIZE 512 |
| 34785 | |
| 34786 | struct comp_testvec { |
| 34787 | int inlen, outlen; |
| 34788 | char input[COMP_BUF_SIZE]; |
| 34789 | char output[COMP_BUF_SIZE]; |
| 34790 | }; |
| 34791 | |
| 34792 | /* |
| 34793 | * Deflate test vectors (null-terminated strings). |
Geert Uytterhoeven | bcf84a3 | 2008-12-18 17:17:46 +1100 | [diff] [blame] | 34794 | * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL. |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 34795 | */ |
Geert Uytterhoeven | 0c01aed | 2009-03-04 15:42:15 +0800 | [diff] [blame] | 34796 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 34797 | #define DEFLATE_COMP_TEST_VECTORS 2 |
| 34798 | #define DEFLATE_DECOMP_TEST_VECTORS 2 |
| 34799 | |
| 34800 | static struct comp_testvec deflate_comp_tv_template[] = { |
| 34801 | { |
| 34802 | .inlen = 70, |
| 34803 | .outlen = 38, |
| 34804 | .input = "Join us now and share the software " |
| 34805 | "Join us now and share the software ", |
| 34806 | .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 34807 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 34808 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 34809 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 34810 | "\x71\xbc\x08\x2b\x01\x00", |
| 34811 | }, { |
| 34812 | .inlen = 191, |
| 34813 | .outlen = 122, |
| 34814 | .input = "This document describes a compression method based on the DEFLATE" |
| 34815 | "compression algorithm. This document defines the application of " |
| 34816 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 34817 | .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 34818 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 34819 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 34820 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 34821 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 34822 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 34823 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 34824 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 34825 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 34826 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 34827 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 34828 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 34829 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 34830 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 34831 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 34832 | "\xfa\x02", |
| 34833 | }, |
| 34834 | }; |
| 34835 | |
| 34836 | static struct comp_testvec deflate_decomp_tv_template[] = { |
| 34837 | { |
| 34838 | .inlen = 122, |
| 34839 | .outlen = 191, |
| 34840 | .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 34841 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 34842 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 34843 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 34844 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 34845 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 34846 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 34847 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 34848 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 34849 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 34850 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 34851 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 34852 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 34853 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 34854 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 34855 | "\xfa\x02", |
| 34856 | .output = "This document describes a compression method based on the DEFLATE" |
| 34857 | "compression algorithm. This document defines the application of " |
| 34858 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 34859 | }, { |
| 34860 | .inlen = 38, |
| 34861 | .outlen = 70, |
| 34862 | .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 34863 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 34864 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 34865 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 34866 | "\x71\xbc\x08\x2b\x01\x00", |
| 34867 | .output = "Join us now and share the software " |
| 34868 | "Join us now and share the software ", |
| 34869 | }, |
| 34870 | }; |
| 34871 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 34872 | /* |
| 34873 | * LZO test vectors (null-terminated strings). |
| 34874 | */ |
| 34875 | #define LZO_COMP_TEST_VECTORS 2 |
| 34876 | #define LZO_DECOMP_TEST_VECTORS 2 |
| 34877 | |
| 34878 | static struct comp_testvec lzo_comp_tv_template[] = { |
| 34879 | { |
| 34880 | .inlen = 70, |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 34881 | .outlen = 57, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 34882 | .input = "Join us now and share the software " |
| 34883 | "Join us now and share the software ", |
| 34884 | .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 34885 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 34886 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 34887 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 34888 | "\x77\x70\x01\x32\x88\x00\x0c\x65" |
| 34889 | "\x20\x74\x68\x65\x20\x73\x6f\x66" |
| 34890 | "\x74\x77\x61\x72\x65\x20\x11\x00" |
| 34891 | "\x00", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 34892 | }, { |
| 34893 | .inlen = 159, |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 34894 | .outlen = 131, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 34895 | .input = "This document describes a compression method based on the LZO " |
| 34896 | "compression algorithm. This document defines the application of " |
| 34897 | "the LZO algorithm used in UBIFS.", |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 34898 | .output = "\x00\x2c\x54\x68\x69\x73\x20\x64" |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 34899 | "\x6f\x63\x75\x6d\x65\x6e\x74\x20" |
| 34900 | "\x64\x65\x73\x63\x72\x69\x62\x65" |
| 34901 | "\x73\x20\x61\x20\x63\x6f\x6d\x70" |
| 34902 | "\x72\x65\x73\x73\x69\x6f\x6e\x20" |
| 34903 | "\x6d\x65\x74\x68\x6f\x64\x20\x62" |
| 34904 | "\x61\x73\x65\x64\x20\x6f\x6e\x20" |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 34905 | "\x74\x68\x65\x20\x4c\x5a\x4f\x20" |
| 34906 | "\x2a\x8c\x00\x09\x61\x6c\x67\x6f" |
| 34907 | "\x72\x69\x74\x68\x6d\x2e\x20\x20" |
| 34908 | "\x2e\x54\x01\x03\x66\x69\x6e\x65" |
| 34909 | "\x73\x20\x74\x06\x05\x61\x70\x70" |
| 34910 | "\x6c\x69\x63\x61\x74\x76\x0a\x6f" |
| 34911 | "\x66\x88\x02\x60\x09\x27\xf0\x00" |
| 34912 | "\x0c\x20\x75\x73\x65\x64\x20\x69" |
| 34913 | "\x6e\x20\x55\x42\x49\x46\x53\x2e" |
| 34914 | "\x11\x00\x00", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 34915 | }, |
| 34916 | }; |
| 34917 | |
| 34918 | static struct comp_testvec lzo_decomp_tv_template[] = { |
| 34919 | { |
| 34920 | .inlen = 133, |
| 34921 | .outlen = 159, |
| 34922 | .input = "\x00\x2b\x54\x68\x69\x73\x20\x64" |
| 34923 | "\x6f\x63\x75\x6d\x65\x6e\x74\x20" |
| 34924 | "\x64\x65\x73\x63\x72\x69\x62\x65" |
| 34925 | "\x73\x20\x61\x20\x63\x6f\x6d\x70" |
| 34926 | "\x72\x65\x73\x73\x69\x6f\x6e\x20" |
| 34927 | "\x6d\x65\x74\x68\x6f\x64\x20\x62" |
| 34928 | "\x61\x73\x65\x64\x20\x6f\x6e\x20" |
| 34929 | "\x74\x68\x65\x20\x4c\x5a\x4f\x2b" |
| 34930 | "\x8c\x00\x0d\x61\x6c\x67\x6f\x72" |
| 34931 | "\x69\x74\x68\x6d\x2e\x20\x20\x54" |
| 34932 | "\x68\x69\x73\x2a\x54\x01\x02\x66" |
| 34933 | "\x69\x6e\x65\x73\x94\x06\x05\x61" |
| 34934 | "\x70\x70\x6c\x69\x63\x61\x74\x76" |
| 34935 | "\x0a\x6f\x66\x88\x02\x60\x09\x27" |
| 34936 | "\xf0\x00\x0c\x20\x75\x73\x65\x64" |
| 34937 | "\x20\x69\x6e\x20\x55\x42\x49\x46" |
| 34938 | "\x53\x2e\x11\x00\x00", |
| 34939 | .output = "This document describes a compression method based on the LZO " |
| 34940 | "compression algorithm. This document defines the application of " |
| 34941 | "the LZO algorithm used in UBIFS.", |
| 34942 | }, { |
| 34943 | .inlen = 46, |
| 34944 | .outlen = 70, |
| 34945 | .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" |
| 34946 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 34947 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 34948 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 34949 | "\x77\x70\x01\x01\x4a\x6f\x69\x6e" |
| 34950 | "\x3d\x88\x00\x11\x00\x00", |
| 34951 | .output = "Join us now and share the software " |
| 34952 | "Join us now and share the software ", |
| 34953 | }, |
| 34954 | }; |
| 34955 | |
| 34956 | /* |
| 34957 | * Michael MIC test vectors from IEEE 802.11i |
| 34958 | */ |
| 34959 | #define MICHAEL_MIC_TEST_VECTORS 6 |
| 34960 | |
| 34961 | static struct hash_testvec michael_mic_tv_template[] = { |
| 34962 | { |
| 34963 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 34964 | .ksize = 8, |
| 34965 | .plaintext = zeroed_string, |
| 34966 | .psize = 0, |
| 34967 | .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", |
| 34968 | }, |
| 34969 | { |
| 34970 | .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", |
| 34971 | .ksize = 8, |
| 34972 | .plaintext = "M", |
| 34973 | .psize = 1, |
| 34974 | .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f", |
| 34975 | }, |
| 34976 | { |
| 34977 | .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f", |
| 34978 | .ksize = 8, |
| 34979 | .plaintext = "Mi", |
| 34980 | .psize = 2, |
| 34981 | .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", |
| 34982 | }, |
| 34983 | { |
| 34984 | .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", |
| 34985 | .ksize = 8, |
| 34986 | .plaintext = "Mic", |
| 34987 | .psize = 3, |
| 34988 | .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", |
| 34989 | }, |
| 34990 | { |
| 34991 | .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", |
| 34992 | .ksize = 8, |
| 34993 | .plaintext = "Mich", |
| 34994 | .psize = 4, |
| 34995 | .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86", |
| 34996 | }, |
| 34997 | { |
| 34998 | .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86", |
| 34999 | .ksize = 8, |
| 35000 | .plaintext = "Michael", |
| 35001 | .psize = 7, |
| 35002 | .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46", |
| 35003 | } |
| 35004 | }; |
| 35005 | |
| 35006 | /* |
Ard Biesheuvel | ebb3472 | 2015-05-04 11:00:17 +0200 | [diff] [blame] | 35007 | * CRC32 test vectors |
| 35008 | */ |
| 35009 | #define CRC32_TEST_VECTORS 14 |
| 35010 | |
| 35011 | static struct hash_testvec crc32_tv_template[] = { |
| 35012 | { |
| 35013 | .key = "\x87\xa9\xcb\xed", |
| 35014 | .ksize = 4, |
| 35015 | .psize = 0, |
| 35016 | .digest = "\x87\xa9\xcb\xed", |
| 35017 | }, |
| 35018 | { |
| 35019 | .key = "\xff\xff\xff\xff", |
| 35020 | .ksize = 4, |
| 35021 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 35022 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 35023 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 35024 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 35025 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 35026 | .psize = 40, |
| 35027 | .digest = "\x3a\xdf\x4b\xb0", |
| 35028 | }, |
| 35029 | { |
| 35030 | .key = "\xff\xff\xff\xff", |
| 35031 | .ksize = 4, |
| 35032 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 35033 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 35034 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 35035 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 35036 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 35037 | .psize = 40, |
| 35038 | .digest = "\xa9\x7a\x7f\x7b", |
| 35039 | }, |
| 35040 | { |
| 35041 | .key = "\xff\xff\xff\xff", |
| 35042 | .ksize = 4, |
| 35043 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 35044 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 35045 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 35046 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 35047 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 35048 | .psize = 40, |
| 35049 | .digest = "\xba\xd3\xf8\x1c", |
| 35050 | }, |
| 35051 | { |
| 35052 | .key = "\xff\xff\xff\xff", |
| 35053 | .ksize = 4, |
| 35054 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 35055 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 35056 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 35057 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 35058 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 35059 | .psize = 40, |
| 35060 | .digest = "\xa8\xa9\xc2\x02", |
| 35061 | }, |
| 35062 | { |
| 35063 | .key = "\xff\xff\xff\xff", |
| 35064 | .ksize = 4, |
| 35065 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 35066 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 35067 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 35068 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 35069 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 35070 | .psize = 40, |
| 35071 | .digest = "\x27\xf0\x57\xe2", |
| 35072 | }, |
| 35073 | { |
| 35074 | .key = "\xff\xff\xff\xff", |
| 35075 | .ksize = 4, |
| 35076 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 35077 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 35078 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 35079 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 35080 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 35081 | .psize = 40, |
| 35082 | .digest = "\x49\x78\x10\x08", |
| 35083 | }, |
| 35084 | { |
| 35085 | .key = "\x80\xea\xd3\xf1", |
| 35086 | .ksize = 4, |
| 35087 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 35088 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 35089 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 35090 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 35091 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 35092 | .psize = 40, |
| 35093 | .digest = "\x9a\xb1\xdc\xf0", |
| 35094 | }, |
| 35095 | { |
| 35096 | .key = "\xf3\x4a\x1d\x5d", |
| 35097 | .ksize = 4, |
| 35098 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 35099 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 35100 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 35101 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 35102 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 35103 | .psize = 40, |
| 35104 | .digest = "\xb4\x97\xcc\xd4", |
| 35105 | }, |
| 35106 | { |
| 35107 | .key = "\x2e\x80\x04\x59", |
| 35108 | .ksize = 4, |
| 35109 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 35110 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 35111 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 35112 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 35113 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 35114 | .psize = 40, |
| 35115 | .digest = "\x67\x9b\xfa\x79", |
| 35116 | }, |
| 35117 | { |
| 35118 | .key = "\xa6\xcc\x19\x85", |
| 35119 | .ksize = 4, |
| 35120 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 35121 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 35122 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 35123 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 35124 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 35125 | .psize = 40, |
| 35126 | .digest = "\x24\xb5\x16\xef", |
| 35127 | }, |
| 35128 | { |
| 35129 | .key = "\x41\xfc\xfe\x2d", |
| 35130 | .ksize = 4, |
| 35131 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 35132 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 35133 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 35134 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 35135 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 35136 | .psize = 40, |
| 35137 | .digest = "\x15\x94\x80\x39", |
| 35138 | }, |
| 35139 | { |
| 35140 | .key = "\xff\xff\xff\xff", |
| 35141 | .ksize = 4, |
| 35142 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 35143 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 35144 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 35145 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 35146 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 35147 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 35148 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 35149 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 35150 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 35151 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 35152 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 35153 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 35154 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 35155 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 35156 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 35157 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 35158 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 35159 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 35160 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 35161 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 35162 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 35163 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 35164 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 35165 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 35166 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 35167 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 35168 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 35169 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 35170 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 35171 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 35172 | .psize = 240, |
| 35173 | .digest = "\x6c\xc6\x56\xde", |
| 35174 | .np = 2, |
| 35175 | .tap = { 31, 209 } |
| 35176 | }, { |
| 35177 | .key = "\xff\xff\xff\xff", |
| 35178 | .ksize = 4, |
| 35179 | .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49" |
| 35180 | "\xe0\x54\xeb\x82\x19\x8d\x24\xbb" |
| 35181 | "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a" |
| 35182 | "\xa1\x38\xcf\x43\xda\x71\x08\x7c" |
| 35183 | "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee" |
| 35184 | "\x85\x1c\x90\x27\xbe\x32\xc9\x60" |
| 35185 | "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2" |
| 35186 | "\x46\xdd\x74\x0b\x7f\x16\xad\x21" |
| 35187 | "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93" |
| 35188 | "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05" |
| 35189 | "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77" |
| 35190 | "\x0e\x82\x19\xb0\x24\xbb\x52\xe9" |
| 35191 | "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38" |
| 35192 | "\xcf\x66\xfd\x71\x08\x9f\x13\xaa" |
| 35193 | "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c" |
| 35194 | "\xb3\x27\xbe\x55\xec\x60\xf7\x8e" |
| 35195 | "\x02\x99\x30\xc7\x3b\xd2\x69\x00" |
| 35196 | "\x74\x0b\xa2\x16\xad\x44\xdb\x4f" |
| 35197 | "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1" |
| 35198 | "\x58\xef\x63\xfa\x91\x05\x9c\x33" |
| 35199 | "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5" |
| 35200 | "\x19\xb0\x47\xde\x52\xe9\x80\x17" |
| 35201 | "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66" |
| 35202 | "\xfd\x94\x08\x9f\x36\xcd\x41\xd8" |
| 35203 | "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a" |
| 35204 | "\xe1\x55\xec\x83\x1a\x8e\x25\xbc" |
| 35205 | "\x30\xc7\x5e\xf5\x69\x00\x97\x0b" |
| 35206 | "\xa2\x39\xd0\x44\xdb\x72\x09\x7d" |
| 35207 | "\x14\xab\x1f\xb6\x4d\xe4\x58\xef" |
| 35208 | "\x86\x1d\x91\x28\xbf\x33\xca\x61" |
| 35209 | "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3" |
| 35210 | "\x47\xde\x75\x0c\x80\x17\xae\x22" |
| 35211 | "\xb9\x50\xe7\x5b\xf2\x89\x20\x94" |
| 35212 | "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06" |
| 35213 | "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78" |
| 35214 | "\x0f\x83\x1a\xb1\x25\xbc\x53\xea" |
| 35215 | "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39" |
| 35216 | "\xd0\x67\xfe\x72\x09\xa0\x14\xab" |
| 35217 | "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d" |
| 35218 | "\xb4\x28\xbf\x56\xed\x61\xf8\x8f" |
| 35219 | "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01" |
| 35220 | "\x75\x0c\xa3\x17\xae\x45\xdc\x50" |
| 35221 | "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2" |
| 35222 | "\x59\xf0\x64\xfb\x92\x06\x9d\x34" |
| 35223 | "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6" |
| 35224 | "\x1a\xb1\x48\xdf\x53\xea\x81\x18" |
| 35225 | "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67" |
| 35226 | "\xfe\x95\x09\xa0\x37\xce\x42\xd9" |
| 35227 | "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b" |
| 35228 | "\xe2\x56\xed\x84\x1b\x8f\x26\xbd" |
| 35229 | "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c" |
| 35230 | "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e" |
| 35231 | "\x15\xac\x20\xb7\x4e\xe5\x59\xf0" |
| 35232 | "\x87\x1e\x92\x29\xc0\x34\xcb\x62" |
| 35233 | "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4" |
| 35234 | "\x48\xdf\x76\x0d\x81\x18\xaf\x23" |
| 35235 | "\xba\x51\xe8\x5c\xf3\x8a\x21\x95" |
| 35236 | "\x2c\xc3\x37\xce\x65\xfc\x70\x07" |
| 35237 | "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79" |
| 35238 | "\x10\x84\x1b\xb2\x26\xbd\x54\xeb" |
| 35239 | "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a" |
| 35240 | "\xd1\x68\xff\x73\x0a\xa1\x15\xac" |
| 35241 | "\x43\xda\x4e\xe5\x7c\x13\x87\x1e" |
| 35242 | "\xb5\x29\xc0\x57\xee\x62\xf9\x90" |
| 35243 | "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02" |
| 35244 | "\x76\x0d\xa4\x18\xaf\x46\xdd\x51" |
| 35245 | "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3" |
| 35246 | "\x5a\xf1\x65\xfc\x93\x07\x9e\x35" |
| 35247 | "\xcc\x40\xd7\x6e\x05\x79\x10\xa7" |
| 35248 | "\x1b\xb2\x49\xe0\x54\xeb\x82\x19" |
| 35249 | "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68" |
| 35250 | "\xff\x96\x0a\xa1\x38\xcf\x43\xda" |
| 35251 | "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c" |
| 35252 | "\xe3\x57\xee\x85\x1c\x90\x27\xbe" |
| 35253 | "\x32\xc9\x60\xf7\x6b\x02\x99\x0d" |
| 35254 | "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f" |
| 35255 | "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1" |
| 35256 | "\x88\x1f\x93\x2a\xc1\x35\xcc\x63" |
| 35257 | "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5" |
| 35258 | "\x49\xe0\x77\x0e\x82\x19\xb0\x24" |
| 35259 | "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96" |
| 35260 | "\x2d\xc4\x38\xcf\x66\xfd\x71\x08" |
| 35261 | "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a" |
| 35262 | "\x11\x85\x1c\xb3\x27\xbe\x55\xec" |
| 35263 | "\x60\xf7\x8e\x02\x99\x30\xc7\x3b" |
| 35264 | "\xd2\x69\x00\x74\x0b\xa2\x16\xad" |
| 35265 | "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f" |
| 35266 | "\xb6\x2a\xc1\x58\xef\x63\xfa\x91" |
| 35267 | "\x05\x9c\x33\xca\x3e\xd5\x6c\x03" |
| 35268 | "\x77\x0e\xa5\x19\xb0\x47\xde\x52" |
| 35269 | "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4" |
| 35270 | "\x5b\xf2\x66\xfd\x94\x08\x9f\x36" |
| 35271 | "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8" |
| 35272 | "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a" |
| 35273 | "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69" |
| 35274 | "\x00\x97\x0b\xa2\x39\xd0\x44\xdb" |
| 35275 | "\x72\x09\x7d\x14\xab\x1f\xb6\x4d" |
| 35276 | "\xe4\x58\xef\x86\x1d\x91\x28\xbf" |
| 35277 | "\x33\xca\x61\xf8\x6c\x03\x9a\x0e" |
| 35278 | "\xa5\x3c\xd3\x47\xde\x75\x0c\x80" |
| 35279 | "\x17\xae\x22\xb9\x50\xe7\x5b\xf2" |
| 35280 | "\x89\x20\x94\x2b\xc2\x36\xcd\x64" |
| 35281 | "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6" |
| 35282 | "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25" |
| 35283 | "\xbc\x53\xea\x5e\xf5\x8c\x00\x97" |
| 35284 | "\x2e\xc5\x39\xd0\x67\xfe\x72\x09" |
| 35285 | "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b" |
| 35286 | "\x12\x86\x1d\xb4\x28\xbf\x56\xed" |
| 35287 | "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c" |
| 35288 | "\xd3\x6a\x01\x75\x0c\xa3\x17\xae" |
| 35289 | "\x45\xdc\x50\xe7\x7e\x15\x89\x20" |
| 35290 | "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92" |
| 35291 | "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04" |
| 35292 | "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53" |
| 35293 | "\xea\x81\x18\x8c\x23\xba\x2e\xc5" |
| 35294 | "\x5c\xf3\x67\xfe\x95\x09\xa0\x37" |
| 35295 | "\xce\x42\xd9\x70\x07\x7b\x12\xa9" |
| 35296 | "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b" |
| 35297 | "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a" |
| 35298 | "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc" |
| 35299 | "\x73\x0a\x7e\x15\xac\x20\xb7\x4e" |
| 35300 | "\xe5\x59\xf0\x87\x1e\x92\x29\xc0" |
| 35301 | "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f" |
| 35302 | "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81" |
| 35303 | "\x18\xaf\x23\xba\x51\xe8\x5c\xf3" |
| 35304 | "\x8a\x21\x95\x2c\xc3\x37\xce\x65" |
| 35305 | "\xfc\x70\x07\x9e\x12\xa9\x40\xd7" |
| 35306 | "\x4b\xe2\x79\x10\x84\x1b\xb2\x26" |
| 35307 | "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98" |
| 35308 | "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a" |
| 35309 | "\xa1\x15\xac\x43\xda\x4e\xe5\x7c" |
| 35310 | "\x13\x87\x1e\xb5\x29\xc0\x57\xee" |
| 35311 | "\x62\xf9\x90\x04\x9b\x32\xc9\x3d" |
| 35312 | "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf" |
| 35313 | "\x46\xdd\x51\xe8\x7f\x16\x8a\x21" |
| 35314 | "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93" |
| 35315 | "\x07\x9e\x35\xcc\x40\xd7\x6e\x05" |
| 35316 | "\x79\x10\xa7\x1b\xb2\x49\xe0\x54" |
| 35317 | "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6" |
| 35318 | "\x5d\xf4\x68\xff\x96\x0a\xa1\x38" |
| 35319 | "\xcf\x43\xda\x71\x08\x7c\x13\xaa" |
| 35320 | "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c" |
| 35321 | "\x90\x27\xbe\x32\xc9\x60\xf7\x6b" |
| 35322 | "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd" |
| 35323 | "\x74\x0b\x7f\x16\xad\x21\xb8\x4f" |
| 35324 | "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1" |
| 35325 | "\x35\xcc\x63\xfa\x6e\x05\x9c\x10" |
| 35326 | "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82" |
| 35327 | "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4" |
| 35328 | "\x8b\x22\x96\x2d\xc4\x38\xcf\x66" |
| 35329 | "\xfd\x71\x08\x9f\x13\xaa\x41\xd8" |
| 35330 | "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27" |
| 35331 | "\xbe\x55\xec\x60\xf7\x8e\x02\x99" |
| 35332 | "\x30\xc7\x3b\xd2\x69\x00\x74\x0b" |
| 35333 | "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d" |
| 35334 | "\x14\x88\x1f\xb6\x2a\xc1\x58\xef" |
| 35335 | "\x63\xfa\x91\x05\x9c\x33\xca\x3e" |
| 35336 | "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0" |
| 35337 | "\x47\xde\x52\xe9\x80\x17\x8b\x22" |
| 35338 | "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94" |
| 35339 | "\x08\x9f\x36\xcd\x41\xd8\x6f\x06" |
| 35340 | "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55" |
| 35341 | "\xec\x83\x1a\x8e\x25\xbc\x30\xc7" |
| 35342 | "\x5e\xf5\x69\x00\x97\x0b\xa2\x39" |
| 35343 | "\xd0\x44\xdb\x72\x09\x7d\x14\xab" |
| 35344 | "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d" |
| 35345 | "\x91\x28\xbf\x33\xca\x61\xf8\x6c" |
| 35346 | "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde" |
| 35347 | "\x75\x0c\x80\x17\xae\x22\xb9\x50" |
| 35348 | "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2" |
| 35349 | "\x36\xcd\x64\xfb\x6f\x06\x9d\x11" |
| 35350 | "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83" |
| 35351 | "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5" |
| 35352 | "\x8c\x00\x97\x2e\xc5\x39\xd0\x67" |
| 35353 | "\xfe\x72\x09\xa0\x14\xab\x42\xd9" |
| 35354 | "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28" |
| 35355 | "\xbf\x56\xed\x61\xf8\x8f\x03\x9a" |
| 35356 | "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c" |
| 35357 | "\xa3\x17\xae\x45\xdc\x50\xe7\x7e" |
| 35358 | "\x15\x89\x20\xb7\x2b\xc2\x59\xf0" |
| 35359 | "\x64\xfb\x92\x06\x9d\x34\xcb\x3f" |
| 35360 | "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1" |
| 35361 | "\x48\xdf\x53\xea\x81\x18\x8c\x23" |
| 35362 | "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95" |
| 35363 | "\x09\xa0\x37\xce\x42\xd9\x70\x07" |
| 35364 | "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56" |
| 35365 | "\xed\x84\x1b\x8f\x26\xbd\x31\xc8" |
| 35366 | "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a" |
| 35367 | "\xd1\x45\xdc\x73\x0a\x7e\x15\xac" |
| 35368 | "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e" |
| 35369 | "\x92\x29\xc0\x34\xcb\x62\xf9\x6d" |
| 35370 | "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf" |
| 35371 | "\x76\x0d\x81\x18\xaf\x23\xba\x51" |
| 35372 | "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3" |
| 35373 | "\x37\xce\x65\xfc\x70\x07\x9e\x12" |
| 35374 | "\xa9\x40\xd7\x4b\xe2\x79\x10\x84" |
| 35375 | "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6" |
| 35376 | "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68" |
| 35377 | "\xff\x73\x0a\xa1\x15\xac\x43\xda" |
| 35378 | "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29" |
| 35379 | "\xc0\x57\xee\x62\xf9\x90\x04\x9b" |
| 35380 | "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d" |
| 35381 | "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f" |
| 35382 | "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1" |
| 35383 | "\x65\xfc\x93\x07\x9e\x35\xcc\x40" |
| 35384 | "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2" |
| 35385 | "\x49\xe0\x54\xeb\x82\x19\x8d\x24" |
| 35386 | "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96" |
| 35387 | "\x0a\xa1\x38\xcf\x43\xda\x71\x08" |
| 35388 | "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57" |
| 35389 | "\xee\x85\x1c\x90\x27\xbe\x32\xc9" |
| 35390 | "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b" |
| 35391 | "\xd2\x46\xdd\x74\x0b\x7f\x16\xad" |
| 35392 | "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f" |
| 35393 | "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e" |
| 35394 | "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0" |
| 35395 | "\x77\x0e\x82\x19\xb0\x24\xbb\x52" |
| 35396 | "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4" |
| 35397 | "\x38\xcf\x66\xfd\x71\x08\x9f\x13" |
| 35398 | "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85" |
| 35399 | "\x1c\xb3\x27\xbe\x55\xec\x60\xf7" |
| 35400 | "\x8e\x02\x99\x30\xc7\x3b\xd2\x69" |
| 35401 | "\x00\x74\x0b\xa2\x16\xad\x44\xdb" |
| 35402 | "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a" |
| 35403 | "\xc1\x58\xef\x63\xfa\x91\x05\x9c" |
| 35404 | "\x33\xca\x3e\xd5\x6c\x03\x77\x0e" |
| 35405 | "\xa5\x19\xb0\x47\xde\x52\xe9\x80" |
| 35406 | "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2" |
| 35407 | "\x66\xfd\x94\x08\x9f\x36\xcd\x41" |
| 35408 | "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3" |
| 35409 | "\x4a\xe1\x55\xec\x83\x1a\x8e\x25" |
| 35410 | "\xbc\x30\xc7\x5e\xf5\x69\x00\x97" |
| 35411 | "\x0b\xa2\x39\xd0\x44\xdb\x72\x09" |
| 35412 | "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58" |
| 35413 | "\xef\x86\x1d\x91\x28\xbf\x33\xca" |
| 35414 | "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c" |
| 35415 | "\xd3\x47\xde\x75\x0c\x80\x17\xae" |
| 35416 | "\x22\xb9\x50\xe7\x5b\xf2\x89\x20" |
| 35417 | "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f" |
| 35418 | "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1" |
| 35419 | "\x78\x0f\x83\x1a\xb1\x25\xbc\x53" |
| 35420 | "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5" |
| 35421 | "\x39\xd0\x67\xfe\x72\x09\xa0\x14" |
| 35422 | "\xab\x42\xd9\x4d\xe4\x7b\x12\x86" |
| 35423 | "\x1d\xb4\x28\xbf\x56\xed\x61\xf8" |
| 35424 | "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a" |
| 35425 | "\x01\x75\x0c\xa3\x17\xae\x45\xdc" |
| 35426 | "\x50\xe7\x7e\x15\x89\x20\xb7\x2b" |
| 35427 | "\xc2\x59\xf0\x64\xfb\x92\x06\x9d" |
| 35428 | "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f" |
| 35429 | "\xa6\x1a\xb1\x48\xdf\x53\xea\x81" |
| 35430 | "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3" |
| 35431 | "\x67\xfe\x95\x09\xa0\x37\xce\x42" |
| 35432 | "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4" |
| 35433 | "\x4b\xe2\x56\xed\x84\x1b\x8f\x26" |
| 35434 | "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98", |
| 35435 | .psize = 2048, |
| 35436 | .digest = "\xfb\x3a\x7a\xda", |
| 35437 | } |
| 35438 | }; |
| 35439 | |
| 35440 | /* |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 35441 | * CRC32C test vectors |
| 35442 | */ |
Jussi Kivilinna | 6726ec4 | 2012-11-13 12:02:30 +0200 | [diff] [blame] | 35443 | #define CRC32C_TEST_VECTORS 15 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 35444 | |
| 35445 | static struct hash_testvec crc32c_tv_template[] = { |
| 35446 | { |
| 35447 | .psize = 0, |
| 35448 | .digest = "\x00\x00\x00\x00", |
| 35449 | }, |
| 35450 | { |
| 35451 | .key = "\x87\xa9\xcb\xed", |
| 35452 | .ksize = 4, |
| 35453 | .psize = 0, |
| 35454 | .digest = "\x78\x56\x34\x12", |
| 35455 | }, |
| 35456 | { |
| 35457 | .key = "\xff\xff\xff\xff", |
| 35458 | .ksize = 4, |
| 35459 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 35460 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 35461 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 35462 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 35463 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 35464 | .psize = 40, |
| 35465 | .digest = "\x7f\x15\x2c\x0e", |
| 35466 | }, |
| 35467 | { |
| 35468 | .key = "\xff\xff\xff\xff", |
| 35469 | .ksize = 4, |
| 35470 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 35471 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 35472 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 35473 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 35474 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 35475 | .psize = 40, |
| 35476 | .digest = "\xf6\xeb\x80\xe9", |
| 35477 | }, |
| 35478 | { |
| 35479 | .key = "\xff\xff\xff\xff", |
| 35480 | .ksize = 4, |
| 35481 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 35482 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 35483 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 35484 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 35485 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 35486 | .psize = 40, |
| 35487 | .digest = "\xed\xbd\x74\xde", |
| 35488 | }, |
| 35489 | { |
| 35490 | .key = "\xff\xff\xff\xff", |
| 35491 | .ksize = 4, |
| 35492 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 35493 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 35494 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 35495 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 35496 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 35497 | .psize = 40, |
| 35498 | .digest = "\x62\xc8\x79\xd5", |
| 35499 | }, |
| 35500 | { |
| 35501 | .key = "\xff\xff\xff\xff", |
| 35502 | .ksize = 4, |
| 35503 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 35504 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 35505 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 35506 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 35507 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 35508 | .psize = 40, |
| 35509 | .digest = "\xd0\x9a\x97\xba", |
| 35510 | }, |
| 35511 | { |
| 35512 | .key = "\xff\xff\xff\xff", |
| 35513 | .ksize = 4, |
| 35514 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 35515 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 35516 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 35517 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 35518 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 35519 | .psize = 40, |
| 35520 | .digest = "\x13\xd9\x29\x2b", |
| 35521 | }, |
| 35522 | { |
| 35523 | .key = "\x80\xea\xd3\xf1", |
| 35524 | .ksize = 4, |
| 35525 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 35526 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 35527 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 35528 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 35529 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 35530 | .psize = 40, |
| 35531 | .digest = "\x0c\xb5\xe2\xa2", |
| 35532 | }, |
| 35533 | { |
| 35534 | .key = "\xf3\x4a\x1d\x5d", |
| 35535 | .ksize = 4, |
| 35536 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 35537 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 35538 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 35539 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 35540 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 35541 | .psize = 40, |
| 35542 | .digest = "\xd1\x7f\xfb\xa6", |
| 35543 | }, |
| 35544 | { |
| 35545 | .key = "\x2e\x80\x04\x59", |
| 35546 | .ksize = 4, |
| 35547 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 35548 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 35549 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 35550 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 35551 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 35552 | .psize = 40, |
| 35553 | .digest = "\x59\x33\xe6\x7a", |
| 35554 | }, |
| 35555 | { |
| 35556 | .key = "\xa6\xcc\x19\x85", |
| 35557 | .ksize = 4, |
| 35558 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 35559 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 35560 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 35561 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 35562 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 35563 | .psize = 40, |
| 35564 | .digest = "\xbe\x03\x01\xd2", |
| 35565 | }, |
| 35566 | { |
| 35567 | .key = "\x41\xfc\xfe\x2d", |
| 35568 | .ksize = 4, |
| 35569 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 35570 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 35571 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 35572 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 35573 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 35574 | .psize = 40, |
| 35575 | .digest = "\x75\xd3\xc5\x24", |
| 35576 | }, |
| 35577 | { |
| 35578 | .key = "\xff\xff\xff\xff", |
| 35579 | .ksize = 4, |
| 35580 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 35581 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 35582 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 35583 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 35584 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 35585 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 35586 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 35587 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 35588 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 35589 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 35590 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 35591 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 35592 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 35593 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 35594 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 35595 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 35596 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 35597 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 35598 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 35599 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 35600 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 35601 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 35602 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 35603 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 35604 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 35605 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 35606 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 35607 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 35608 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 35609 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 35610 | .psize = 240, |
| 35611 | .digest = "\x75\xd3\xc5\x24", |
| 35612 | .np = 2, |
| 35613 | .tap = { 31, 209 } |
Jussi Kivilinna | 6726ec4 | 2012-11-13 12:02:30 +0200 | [diff] [blame] | 35614 | }, { |
| 35615 | .key = "\xff\xff\xff\xff", |
| 35616 | .ksize = 4, |
| 35617 | .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49" |
| 35618 | "\xe0\x54\xeb\x82\x19\x8d\x24\xbb" |
| 35619 | "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a" |
| 35620 | "\xa1\x38\xcf\x43\xda\x71\x08\x7c" |
| 35621 | "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee" |
| 35622 | "\x85\x1c\x90\x27\xbe\x32\xc9\x60" |
| 35623 | "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2" |
| 35624 | "\x46\xdd\x74\x0b\x7f\x16\xad\x21" |
| 35625 | "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93" |
| 35626 | "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05" |
| 35627 | "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77" |
| 35628 | "\x0e\x82\x19\xb0\x24\xbb\x52\xe9" |
| 35629 | "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38" |
| 35630 | "\xcf\x66\xfd\x71\x08\x9f\x13\xaa" |
| 35631 | "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c" |
| 35632 | "\xb3\x27\xbe\x55\xec\x60\xf7\x8e" |
| 35633 | "\x02\x99\x30\xc7\x3b\xd2\x69\x00" |
| 35634 | "\x74\x0b\xa2\x16\xad\x44\xdb\x4f" |
| 35635 | "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1" |
| 35636 | "\x58\xef\x63\xfa\x91\x05\x9c\x33" |
| 35637 | "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5" |
| 35638 | "\x19\xb0\x47\xde\x52\xe9\x80\x17" |
| 35639 | "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66" |
| 35640 | "\xfd\x94\x08\x9f\x36\xcd\x41\xd8" |
| 35641 | "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a" |
| 35642 | "\xe1\x55\xec\x83\x1a\x8e\x25\xbc" |
| 35643 | "\x30\xc7\x5e\xf5\x69\x00\x97\x0b" |
| 35644 | "\xa2\x39\xd0\x44\xdb\x72\x09\x7d" |
| 35645 | "\x14\xab\x1f\xb6\x4d\xe4\x58\xef" |
| 35646 | "\x86\x1d\x91\x28\xbf\x33\xca\x61" |
| 35647 | "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3" |
| 35648 | "\x47\xde\x75\x0c\x80\x17\xae\x22" |
| 35649 | "\xb9\x50\xe7\x5b\xf2\x89\x20\x94" |
| 35650 | "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06" |
| 35651 | "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78" |
| 35652 | "\x0f\x83\x1a\xb1\x25\xbc\x53\xea" |
| 35653 | "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39" |
| 35654 | "\xd0\x67\xfe\x72\x09\xa0\x14\xab" |
| 35655 | "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d" |
| 35656 | "\xb4\x28\xbf\x56\xed\x61\xf8\x8f" |
| 35657 | "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01" |
| 35658 | "\x75\x0c\xa3\x17\xae\x45\xdc\x50" |
| 35659 | "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2" |
| 35660 | "\x59\xf0\x64\xfb\x92\x06\x9d\x34" |
| 35661 | "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6" |
| 35662 | "\x1a\xb1\x48\xdf\x53\xea\x81\x18" |
| 35663 | "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67" |
| 35664 | "\xfe\x95\x09\xa0\x37\xce\x42\xd9" |
| 35665 | "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b" |
| 35666 | "\xe2\x56\xed\x84\x1b\x8f\x26\xbd" |
| 35667 | "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c" |
| 35668 | "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e" |
| 35669 | "\x15\xac\x20\xb7\x4e\xe5\x59\xf0" |
| 35670 | "\x87\x1e\x92\x29\xc0\x34\xcb\x62" |
| 35671 | "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4" |
| 35672 | "\x48\xdf\x76\x0d\x81\x18\xaf\x23" |
| 35673 | "\xba\x51\xe8\x5c\xf3\x8a\x21\x95" |
| 35674 | "\x2c\xc3\x37\xce\x65\xfc\x70\x07" |
| 35675 | "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79" |
| 35676 | "\x10\x84\x1b\xb2\x26\xbd\x54\xeb" |
| 35677 | "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a" |
| 35678 | "\xd1\x68\xff\x73\x0a\xa1\x15\xac" |
| 35679 | "\x43\xda\x4e\xe5\x7c\x13\x87\x1e" |
| 35680 | "\xb5\x29\xc0\x57\xee\x62\xf9\x90" |
| 35681 | "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02" |
| 35682 | "\x76\x0d\xa4\x18\xaf\x46\xdd\x51" |
| 35683 | "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3" |
| 35684 | "\x5a\xf1\x65\xfc\x93\x07\x9e\x35" |
| 35685 | "\xcc\x40\xd7\x6e\x05\x79\x10\xa7" |
| 35686 | "\x1b\xb2\x49\xe0\x54\xeb\x82\x19" |
| 35687 | "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68" |
| 35688 | "\xff\x96\x0a\xa1\x38\xcf\x43\xda" |
| 35689 | "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c" |
| 35690 | "\xe3\x57\xee\x85\x1c\x90\x27\xbe" |
| 35691 | "\x32\xc9\x60\xf7\x6b\x02\x99\x0d" |
| 35692 | "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f" |
| 35693 | "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1" |
| 35694 | "\x88\x1f\x93\x2a\xc1\x35\xcc\x63" |
| 35695 | "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5" |
| 35696 | "\x49\xe0\x77\x0e\x82\x19\xb0\x24" |
| 35697 | "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96" |
| 35698 | "\x2d\xc4\x38\xcf\x66\xfd\x71\x08" |
| 35699 | "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a" |
| 35700 | "\x11\x85\x1c\xb3\x27\xbe\x55\xec" |
| 35701 | "\x60\xf7\x8e\x02\x99\x30\xc7\x3b" |
| 35702 | "\xd2\x69\x00\x74\x0b\xa2\x16\xad" |
| 35703 | "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f" |
| 35704 | "\xb6\x2a\xc1\x58\xef\x63\xfa\x91" |
| 35705 | "\x05\x9c\x33\xca\x3e\xd5\x6c\x03" |
| 35706 | "\x77\x0e\xa5\x19\xb0\x47\xde\x52" |
| 35707 | "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4" |
| 35708 | "\x5b\xf2\x66\xfd\x94\x08\x9f\x36" |
| 35709 | "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8" |
| 35710 | "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a" |
| 35711 | "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69" |
| 35712 | "\x00\x97\x0b\xa2\x39\xd0\x44\xdb" |
| 35713 | "\x72\x09\x7d\x14\xab\x1f\xb6\x4d" |
| 35714 | "\xe4\x58\xef\x86\x1d\x91\x28\xbf" |
| 35715 | "\x33\xca\x61\xf8\x6c\x03\x9a\x0e" |
| 35716 | "\xa5\x3c\xd3\x47\xde\x75\x0c\x80" |
| 35717 | "\x17\xae\x22\xb9\x50\xe7\x5b\xf2" |
| 35718 | "\x89\x20\x94\x2b\xc2\x36\xcd\x64" |
| 35719 | "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6" |
| 35720 | "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25" |
| 35721 | "\xbc\x53\xea\x5e\xf5\x8c\x00\x97" |
| 35722 | "\x2e\xc5\x39\xd0\x67\xfe\x72\x09" |
| 35723 | "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b" |
| 35724 | "\x12\x86\x1d\xb4\x28\xbf\x56\xed" |
| 35725 | "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c" |
| 35726 | "\xd3\x6a\x01\x75\x0c\xa3\x17\xae" |
| 35727 | "\x45\xdc\x50\xe7\x7e\x15\x89\x20" |
| 35728 | "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92" |
| 35729 | "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04" |
| 35730 | "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53" |
| 35731 | "\xea\x81\x18\x8c\x23\xba\x2e\xc5" |
| 35732 | "\x5c\xf3\x67\xfe\x95\x09\xa0\x37" |
| 35733 | "\xce\x42\xd9\x70\x07\x7b\x12\xa9" |
| 35734 | "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b" |
| 35735 | "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a" |
| 35736 | "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc" |
| 35737 | "\x73\x0a\x7e\x15\xac\x20\xb7\x4e" |
| 35738 | "\xe5\x59\xf0\x87\x1e\x92\x29\xc0" |
| 35739 | "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f" |
| 35740 | "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81" |
| 35741 | "\x18\xaf\x23\xba\x51\xe8\x5c\xf3" |
| 35742 | "\x8a\x21\x95\x2c\xc3\x37\xce\x65" |
| 35743 | "\xfc\x70\x07\x9e\x12\xa9\x40\xd7" |
| 35744 | "\x4b\xe2\x79\x10\x84\x1b\xb2\x26" |
| 35745 | "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98" |
| 35746 | "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a" |
| 35747 | "\xa1\x15\xac\x43\xda\x4e\xe5\x7c" |
| 35748 | "\x13\x87\x1e\xb5\x29\xc0\x57\xee" |
| 35749 | "\x62\xf9\x90\x04\x9b\x32\xc9\x3d" |
| 35750 | "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf" |
| 35751 | "\x46\xdd\x51\xe8\x7f\x16\x8a\x21" |
| 35752 | "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93" |
| 35753 | "\x07\x9e\x35\xcc\x40\xd7\x6e\x05" |
| 35754 | "\x79\x10\xa7\x1b\xb2\x49\xe0\x54" |
| 35755 | "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6" |
| 35756 | "\x5d\xf4\x68\xff\x96\x0a\xa1\x38" |
| 35757 | "\xcf\x43\xda\x71\x08\x7c\x13\xaa" |
| 35758 | "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c" |
| 35759 | "\x90\x27\xbe\x32\xc9\x60\xf7\x6b" |
| 35760 | "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd" |
| 35761 | "\x74\x0b\x7f\x16\xad\x21\xb8\x4f" |
| 35762 | "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1" |
| 35763 | "\x35\xcc\x63\xfa\x6e\x05\x9c\x10" |
| 35764 | "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82" |
| 35765 | "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4" |
| 35766 | "\x8b\x22\x96\x2d\xc4\x38\xcf\x66" |
| 35767 | "\xfd\x71\x08\x9f\x13\xaa\x41\xd8" |
| 35768 | "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27" |
| 35769 | "\xbe\x55\xec\x60\xf7\x8e\x02\x99" |
| 35770 | "\x30\xc7\x3b\xd2\x69\x00\x74\x0b" |
| 35771 | "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d" |
| 35772 | "\x14\x88\x1f\xb6\x2a\xc1\x58\xef" |
| 35773 | "\x63\xfa\x91\x05\x9c\x33\xca\x3e" |
| 35774 | "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0" |
| 35775 | "\x47\xde\x52\xe9\x80\x17\x8b\x22" |
| 35776 | "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94" |
| 35777 | "\x08\x9f\x36\xcd\x41\xd8\x6f\x06" |
| 35778 | "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55" |
| 35779 | "\xec\x83\x1a\x8e\x25\xbc\x30\xc7" |
| 35780 | "\x5e\xf5\x69\x00\x97\x0b\xa2\x39" |
| 35781 | "\xd0\x44\xdb\x72\x09\x7d\x14\xab" |
| 35782 | "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d" |
| 35783 | "\x91\x28\xbf\x33\xca\x61\xf8\x6c" |
| 35784 | "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde" |
| 35785 | "\x75\x0c\x80\x17\xae\x22\xb9\x50" |
| 35786 | "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2" |
| 35787 | "\x36\xcd\x64\xfb\x6f\x06\x9d\x11" |
| 35788 | "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83" |
| 35789 | "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5" |
| 35790 | "\x8c\x00\x97\x2e\xc5\x39\xd0\x67" |
| 35791 | "\xfe\x72\x09\xa0\x14\xab\x42\xd9" |
| 35792 | "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28" |
| 35793 | "\xbf\x56\xed\x61\xf8\x8f\x03\x9a" |
| 35794 | "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c" |
| 35795 | "\xa3\x17\xae\x45\xdc\x50\xe7\x7e" |
| 35796 | "\x15\x89\x20\xb7\x2b\xc2\x59\xf0" |
| 35797 | "\x64\xfb\x92\x06\x9d\x34\xcb\x3f" |
| 35798 | "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1" |
| 35799 | "\x48\xdf\x53\xea\x81\x18\x8c\x23" |
| 35800 | "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95" |
| 35801 | "\x09\xa0\x37\xce\x42\xd9\x70\x07" |
| 35802 | "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56" |
| 35803 | "\xed\x84\x1b\x8f\x26\xbd\x31\xc8" |
| 35804 | "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a" |
| 35805 | "\xd1\x45\xdc\x73\x0a\x7e\x15\xac" |
| 35806 | "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e" |
| 35807 | "\x92\x29\xc0\x34\xcb\x62\xf9\x6d" |
| 35808 | "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf" |
| 35809 | "\x76\x0d\x81\x18\xaf\x23\xba\x51" |
| 35810 | "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3" |
| 35811 | "\x37\xce\x65\xfc\x70\x07\x9e\x12" |
| 35812 | "\xa9\x40\xd7\x4b\xe2\x79\x10\x84" |
| 35813 | "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6" |
| 35814 | "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68" |
| 35815 | "\xff\x73\x0a\xa1\x15\xac\x43\xda" |
| 35816 | "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29" |
| 35817 | "\xc0\x57\xee\x62\xf9\x90\x04\x9b" |
| 35818 | "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d" |
| 35819 | "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f" |
| 35820 | "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1" |
| 35821 | "\x65\xfc\x93\x07\x9e\x35\xcc\x40" |
| 35822 | "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2" |
| 35823 | "\x49\xe0\x54\xeb\x82\x19\x8d\x24" |
| 35824 | "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96" |
| 35825 | "\x0a\xa1\x38\xcf\x43\xda\x71\x08" |
| 35826 | "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57" |
| 35827 | "\xee\x85\x1c\x90\x27\xbe\x32\xc9" |
| 35828 | "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b" |
| 35829 | "\xd2\x46\xdd\x74\x0b\x7f\x16\xad" |
| 35830 | "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f" |
| 35831 | "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e" |
| 35832 | "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0" |
| 35833 | "\x77\x0e\x82\x19\xb0\x24\xbb\x52" |
| 35834 | "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4" |
| 35835 | "\x38\xcf\x66\xfd\x71\x08\x9f\x13" |
| 35836 | "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85" |
| 35837 | "\x1c\xb3\x27\xbe\x55\xec\x60\xf7" |
| 35838 | "\x8e\x02\x99\x30\xc7\x3b\xd2\x69" |
| 35839 | "\x00\x74\x0b\xa2\x16\xad\x44\xdb" |
| 35840 | "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a" |
| 35841 | "\xc1\x58\xef\x63\xfa\x91\x05\x9c" |
| 35842 | "\x33\xca\x3e\xd5\x6c\x03\x77\x0e" |
| 35843 | "\xa5\x19\xb0\x47\xde\x52\xe9\x80" |
| 35844 | "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2" |
| 35845 | "\x66\xfd\x94\x08\x9f\x36\xcd\x41" |
| 35846 | "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3" |
| 35847 | "\x4a\xe1\x55\xec\x83\x1a\x8e\x25" |
| 35848 | "\xbc\x30\xc7\x5e\xf5\x69\x00\x97" |
| 35849 | "\x0b\xa2\x39\xd0\x44\xdb\x72\x09" |
| 35850 | "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58" |
| 35851 | "\xef\x86\x1d\x91\x28\xbf\x33\xca" |
| 35852 | "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c" |
| 35853 | "\xd3\x47\xde\x75\x0c\x80\x17\xae" |
| 35854 | "\x22\xb9\x50\xe7\x5b\xf2\x89\x20" |
| 35855 | "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f" |
| 35856 | "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1" |
| 35857 | "\x78\x0f\x83\x1a\xb1\x25\xbc\x53" |
| 35858 | "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5" |
| 35859 | "\x39\xd0\x67\xfe\x72\x09\xa0\x14" |
| 35860 | "\xab\x42\xd9\x4d\xe4\x7b\x12\x86" |
| 35861 | "\x1d\xb4\x28\xbf\x56\xed\x61\xf8" |
| 35862 | "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a" |
| 35863 | "\x01\x75\x0c\xa3\x17\xae\x45\xdc" |
| 35864 | "\x50\xe7\x7e\x15\x89\x20\xb7\x2b" |
| 35865 | "\xc2\x59\xf0\x64\xfb\x92\x06\x9d" |
| 35866 | "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f" |
| 35867 | "\xa6\x1a\xb1\x48\xdf\x53\xea\x81" |
| 35868 | "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3" |
| 35869 | "\x67\xfe\x95\x09\xa0\x37\xce\x42" |
| 35870 | "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4" |
| 35871 | "\x4b\xe2\x56\xed\x84\x1b\x8f\x26" |
| 35872 | "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98", |
| 35873 | .psize = 2048, |
| 35874 | .digest = "\xec\x26\x4d\x95", |
| 35875 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 35876 | }; |
| 35877 | |
Sonic Zhang | a482b08 | 2012-05-25 17:54:13 +0800 | [diff] [blame] | 35878 | /* |
| 35879 | * Blakcifn CRC test vectors |
| 35880 | */ |
| 35881 | #define BFIN_CRC_TEST_VECTORS 6 |
| 35882 | |
| 35883 | static struct hash_testvec bfin_crc_tv_template[] = { |
| 35884 | { |
| 35885 | .psize = 0, |
| 35886 | .digest = "\x00\x00\x00\x00", |
| 35887 | }, |
| 35888 | { |
| 35889 | .key = "\x87\xa9\xcb\xed", |
| 35890 | .ksize = 4, |
| 35891 | .psize = 0, |
| 35892 | .digest = "\x87\xa9\xcb\xed", |
| 35893 | }, |
| 35894 | { |
| 35895 | .key = "\xff\xff\xff\xff", |
| 35896 | .ksize = 4, |
| 35897 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 35898 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 35899 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 35900 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 35901 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 35902 | .psize = 40, |
| 35903 | .digest = "\x84\x0c\x8d\xa2", |
| 35904 | }, |
| 35905 | { |
| 35906 | .key = "\xff\xff\xff\xff", |
| 35907 | .ksize = 4, |
| 35908 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 35909 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 35910 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 35911 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 35912 | "\x21\x22\x23\x24\x25\x26", |
| 35913 | .psize = 38, |
| 35914 | .digest = "\x8c\x58\xec\xb7", |
| 35915 | }, |
| 35916 | { |
| 35917 | .key = "\xff\xff\xff\xff", |
| 35918 | .ksize = 4, |
| 35919 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 35920 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 35921 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 35922 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 35923 | "\x21\x22\x23\x24\x25\x26\x27", |
| 35924 | .psize = 39, |
| 35925 | .digest = "\xdc\x50\x28\x7b", |
| 35926 | }, |
| 35927 | { |
| 35928 | .key = "\xff\xff\xff\xff", |
| 35929 | .ksize = 4, |
| 35930 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 35931 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 35932 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 35933 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 35934 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 35935 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 35936 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 35937 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 35938 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 35939 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 35940 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 35941 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 35942 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 35943 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 35944 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 35945 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 35946 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 35947 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 35948 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 35949 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 35950 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 35951 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 35952 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 35953 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 35954 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 35955 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 35956 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 35957 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 35958 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 35959 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 35960 | .psize = 240, |
| 35961 | .digest = "\x10\x19\x4a\x5c", |
| 35962 | .np = 2, |
| 35963 | .tap = { 31, 209 } |
| 35964 | }, |
| 35965 | |
| 35966 | }; |
| 35967 | |
KOVACS Krisztian | 1443cc9 | 2014-08-22 10:44:36 +0200 | [diff] [blame] | 35968 | #define LZ4_COMP_TEST_VECTORS 1 |
| 35969 | #define LZ4_DECOMP_TEST_VECTORS 1 |
| 35970 | |
| 35971 | static struct comp_testvec lz4_comp_tv_template[] = { |
| 35972 | { |
| 35973 | .inlen = 70, |
| 35974 | .outlen = 45, |
| 35975 | .input = "Join us now and share the software " |
| 35976 | "Join us now and share the software ", |
| 35977 | .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75" |
| 35978 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 35979 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 35980 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 35981 | "\x77\x0d\x00\x0f\x23\x00\x0b\x50" |
| 35982 | "\x77\x61\x72\x65\x20", |
| 35983 | }, |
| 35984 | }; |
| 35985 | |
| 35986 | static struct comp_testvec lz4_decomp_tv_template[] = { |
| 35987 | { |
| 35988 | .inlen = 45, |
| 35989 | .outlen = 70, |
| 35990 | .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75" |
| 35991 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 35992 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 35993 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 35994 | "\x77\x0d\x00\x0f\x23\x00\x0b\x50" |
| 35995 | "\x77\x61\x72\x65\x20", |
| 35996 | .output = "Join us now and share the software " |
| 35997 | "Join us now and share the software ", |
| 35998 | }, |
| 35999 | }; |
| 36000 | |
| 36001 | #define LZ4HC_COMP_TEST_VECTORS 1 |
| 36002 | #define LZ4HC_DECOMP_TEST_VECTORS 1 |
| 36003 | |
| 36004 | static struct comp_testvec lz4hc_comp_tv_template[] = { |
| 36005 | { |
| 36006 | .inlen = 70, |
| 36007 | .outlen = 45, |
| 36008 | .input = "Join us now and share the software " |
| 36009 | "Join us now and share the software ", |
| 36010 | .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75" |
| 36011 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 36012 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 36013 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 36014 | "\x77\x0d\x00\x0f\x23\x00\x0b\x50" |
| 36015 | "\x77\x61\x72\x65\x20", |
| 36016 | }, |
| 36017 | }; |
| 36018 | |
| 36019 | static struct comp_testvec lz4hc_decomp_tv_template[] = { |
| 36020 | { |
| 36021 | .inlen = 45, |
| 36022 | .outlen = 70, |
| 36023 | .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75" |
| 36024 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 36025 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 36026 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 36027 | "\x77\x0d\x00\x0f\x23\x00\x0b\x50" |
| 36028 | "\x77\x61\x72\x65\x20", |
| 36029 | .output = "Join us now and share the software " |
| 36030 | "Join us now and share the software ", |
| 36031 | }, |
| 36032 | }; |
| 36033 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 36034 | #endif /* _CRYPTO_TESTMGR_H */ |