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> |
| 28 | #include <linux/zlib.h> |
| 29 | |
Geert Uytterhoeven | 8064efb | 2009-03-04 15:08:03 +0800 | [diff] [blame] | 30 | #include <crypto/compress.h> |
| 31 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32 | #define MAX_DIGEST_SIZE 64 |
| 33 | #define MAX_TAP 8 |
| 34 | |
Horia Geanta | 29b77e5 | 2014-07-23 11:59:38 +0300 | [diff] [blame] | 35 | #define MAX_KEYLEN 160 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 36 | #define MAX_IVLEN 32 |
| 37 | |
| 38 | struct hash_testvec { |
| 39 | /* only used with keyed hash algorithms */ |
| 40 | char *key; |
| 41 | char *plaintext; |
| 42 | char *digest; |
| 43 | unsigned char tap[MAX_TAP]; |
Jussi Kivilinna | 6726ec4 | 2012-11-13 12:02:30 +0200 | [diff] [blame] | 44 | unsigned short psize; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 45 | unsigned char np; |
| 46 | unsigned char ksize; |
| 47 | }; |
| 48 | |
LABBE Corentin | a7eed15 | 2015-06-05 11:39:22 +0200 | [diff] [blame] | 49 | /* |
| 50 | * cipher_testvec: structure to describe a cipher test |
| 51 | * @key: A pointer to a key used by the test |
| 52 | * @klen: The length of @key |
| 53 | * @iv: A pointer to the IV used by the test |
| 54 | * @input: A pointer to data used as input |
| 55 | * @ilen The length of data in @input |
| 56 | * @result: A pointer to what the test need to produce |
| 57 | * @rlen: The length of data in @result |
| 58 | * @fail: If set to one, the test need to fail |
| 59 | * @wk: Does the test need CRYPTO_TFM_REQ_WEAK_KEY |
| 60 | * ( e.g. test needs to fail due to a weak key ) |
| 61 | * @np: numbers of SG to distribute data in (from 1 to MAX_TAP) |
| 62 | * @tap: How to distribute data in @np SGs |
| 63 | * @also_non_np: if set to 1, the test will be also done without |
| 64 | * splitting data in @np SGs |
| 65 | */ |
| 66 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 67 | struct cipher_testvec { |
| 68 | char *key; |
| 69 | char *iv; |
Boris BREZILLON | 8a826a3 | 2015-06-16 11:46:46 +0200 | [diff] [blame] | 70 | char *iv_out; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 71 | char *input; |
| 72 | char *result; |
| 73 | unsigned short tap[MAX_TAP]; |
| 74 | int np; |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 75 | unsigned char also_non_np; |
David Howells | 09e2178 | 2015-04-28 15:36:36 +0100 | [diff] [blame] | 76 | bool fail; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 77 | unsigned char wk; /* weak key flag */ |
| 78 | unsigned char klen; |
| 79 | unsigned short ilen; |
| 80 | unsigned short rlen; |
| 81 | }; |
| 82 | |
| 83 | struct aead_testvec { |
| 84 | char *key; |
| 85 | char *iv; |
| 86 | char *input; |
| 87 | char *assoc; |
| 88 | char *result; |
| 89 | unsigned char tap[MAX_TAP]; |
| 90 | unsigned char atap[MAX_TAP]; |
| 91 | int np; |
| 92 | int anp; |
David Howells | 09e2178 | 2015-04-28 15:36:36 +0100 | [diff] [blame] | 93 | bool fail; |
Jarod Wilson | e44a1b4 | 2009-05-04 19:22:11 +0800 | [diff] [blame] | 94 | unsigned char novrfy; /* ccm dec verification failure expected */ |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 95 | unsigned char wk; /* weak key flag */ |
| 96 | unsigned char klen; |
| 97 | unsigned short ilen; |
| 98 | unsigned short alen; |
| 99 | unsigned short rlen; |
| 100 | }; |
| 101 | |
Jarod Wilson | 7647d6c | 2009-05-04 19:44:50 +0800 | [diff] [blame] | 102 | struct cprng_testvec { |
| 103 | char *key; |
| 104 | char *dt; |
| 105 | char *v; |
| 106 | char *result; |
| 107 | unsigned char klen; |
| 108 | unsigned short dtlen; |
| 109 | unsigned short vlen; |
| 110 | unsigned short rlen; |
| 111 | unsigned short loops; |
| 112 | }; |
| 113 | |
Stephan Mueller | 3332ee2 | 2014-05-31 17:24:38 +0200 | [diff] [blame] | 114 | struct drbg_testvec { |
| 115 | unsigned char *entropy; |
| 116 | size_t entropylen; |
| 117 | unsigned char *entpra; |
| 118 | unsigned char *entprb; |
| 119 | size_t entprlen; |
| 120 | unsigned char *addtla; |
| 121 | unsigned char *addtlb; |
| 122 | size_t addtllen; |
| 123 | unsigned char *pers; |
| 124 | size_t perslen; |
| 125 | unsigned char *expected; |
| 126 | size_t expectedlen; |
| 127 | }; |
| 128 | |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 129 | struct akcipher_testvec { |
| 130 | unsigned char *key; |
| 131 | unsigned char *m; |
| 132 | unsigned char *c; |
| 133 | unsigned int key_len; |
| 134 | unsigned int m_size; |
| 135 | unsigned int c_size; |
| 136 | bool public_key_vec; |
| 137 | }; |
| 138 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 139 | static char zeroed_string[48]; |
| 140 | |
| 141 | /* |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 142 | * RSA test vectors. Borrowed from openSSL. |
| 143 | */ |
| 144 | #ifdef CONFIG_CRYPTO_FIPS |
| 145 | #define RSA_TEST_VECTORS 2 |
| 146 | #else |
| 147 | #define RSA_TEST_VECTORS 4 |
| 148 | #endif |
| 149 | static struct akcipher_testvec rsa_tv_template[] = { |
| 150 | { |
| 151 | #ifndef CONFIG_CRYPTO_FIPS |
| 152 | .key = |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 153 | "\x30\x81\x9A" /* sequence of 154 bytes */ |
| 154 | "\x02\x01\x01" /* version - integer of 1 byte */ |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 155 | "\x02\x41" /* modulus - integer of 65 bytes */ |
| 156 | "\x00\xAA\x36\xAB\xCE\x88\xAC\xFD\xFF\x55\x52\x3C\x7F\xC4\x52\x3F" |
| 157 | "\x90\xEF\xA0\x0D\xF3\x77\x4A\x25\x9F\x2E\x62\xB4\xC5\xD9\x9C\xB5" |
| 158 | "\xAD\xB3\x00\xA0\x28\x5E\x53\x01\x93\x0E\x0C\x70\xFB\x68\x76\x93" |
| 159 | "\x9C\xE6\x16\xCE\x62\x4A\x11\xE0\x08\x6D\x34\x1E\xBC\xAC\xA0\xA1" |
| 160 | "\xF5" |
| 161 | "\x02\x01\x11" /* public key - integer of 1 byte */ |
| 162 | "\x02\x40" /* private key - integer of 64 bytes */ |
| 163 | "\x0A\x03\x37\x48\x62\x64\x87\x69\x5F\x5F\x30\xBC\x38\xB9\x8B\x44" |
| 164 | "\xC2\xCD\x2D\xFF\x43\x40\x98\xCD\x20\xD8\xA1\x38\xD0\x90\xBF\x64" |
| 165 | "\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] | 166 | "\xDF\x8E\x8A\xE5\x9D\x73\x3D\x9F\x33\xB3\x01\x62\x4A\xFD\x1D\x51" |
| 167 | "\x02\x01\x00" /* prime1 - integer of 1 byte */ |
| 168 | "\x02\x01\x00" /* prime2 - integer of 1 byte */ |
| 169 | "\x02\x01\x00" /* exponent1 - integer of 1 byte */ |
| 170 | "\x02\x01\x00" /* exponent2 - integer of 1 byte */ |
| 171 | "\x02\x01\x00", /* coefficient - integer of 1 byte */ |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 172 | .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a", |
| 173 | .c = |
| 174 | "\x63\x1c\xcd\x7b\xe1\x7e\xe4\xde\xc9\xa8\x89\xa1\x74\xcb\x3c\x63" |
| 175 | "\x7d\x24\xec\x83\xc3\x15\xe4\x7f\x73\x05\x34\xd1\xec\x22\xbb\x8a" |
| 176 | "\x5e\x32\x39\x6d\xc1\x1d\x7d\x50\x3b\x9f\x7a\xad\xf0\x2e\x25\x53" |
| 177 | "\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] | 178 | .key_len = 157, |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 179 | .m_size = 8, |
| 180 | .c_size = 64, |
| 181 | }, { |
| 182 | .key = |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 183 | "\x30\x82\x01\x1D" /* sequence of 285 bytes */ |
| 184 | "\x02\x01\x01" /* version - integer of 1 byte */ |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 185 | "\x02\x81\x81" /* modulus - integer of 129 bytes */ |
| 186 | "\x00\xBB\xF8\x2F\x09\x06\x82\xCE\x9C\x23\x38\xAC\x2B\x9D\xA8\x71" |
| 187 | "\xF7\x36\x8D\x07\xEE\xD4\x10\x43\xA4\x40\xD6\xB6\xF0\x74\x54\xF5" |
| 188 | "\x1F\xB8\xDF\xBA\xAF\x03\x5C\x02\xAB\x61\xEA\x48\xCE\xEB\x6F\xCD" |
| 189 | "\x48\x76\xED\x52\x0D\x60\xE1\xEC\x46\x19\x71\x9D\x8A\x5B\x8B\x80" |
| 190 | "\x7F\xAF\xB8\xE0\xA3\xDF\xC7\x37\x72\x3E\xE6\xB4\xB7\xD9\x3A\x25" |
| 191 | "\x84\xEE\x6A\x64\x9D\x06\x09\x53\x74\x88\x34\xB2\x45\x45\x98\x39" |
| 192 | "\x4E\xE0\xAA\xB1\x2D\x7B\x61\xA5\x1F\x52\x7A\x9A\x41\xF6\xC1\x68" |
| 193 | "\x7F\xE2\x53\x72\x98\xCA\x2A\x8F\x59\x46\xF8\xE5\xFD\x09\x1D\xBD" |
| 194 | "\xCB" |
| 195 | "\x02\x01\x11" /* public key - integer of 1 byte */ |
| 196 | "\x02\x81\x81" /* private key - integer of 129 bytes */ |
| 197 | "\x00\xA5\xDA\xFC\x53\x41\xFA\xF2\x89\xC4\xB9\x88\xDB\x30\xC1\xCD" |
| 198 | "\xF8\x3F\x31\x25\x1E\x06\x68\xB4\x27\x84\x81\x38\x01\x57\x96\x41" |
| 199 | "\xB2\x94\x10\xB3\xC7\x99\x8D\x6B\xC4\x65\x74\x5E\x5C\x39\x26\x69" |
| 200 | "\xD6\x87\x0D\xA2\xC0\x82\xA9\x39\xE3\x7F\xDC\xB8\x2E\xC9\x3E\xDA" |
| 201 | "\xC9\x7F\xF3\xAD\x59\x50\xAC\xCF\xBC\x11\x1C\x76\xF1\xA9\x52\x94" |
| 202 | "\x44\xE5\x6A\xAF\x68\xC5\x6C\x09\x2C\xD3\x8D\xC3\xBE\xF5\xD2\x0A" |
| 203 | "\x93\x99\x26\xED\x4F\x74\xA1\x3E\xDD\xFB\xE1\xA1\xCE\xCC\x48\x94" |
| 204 | "\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] | 205 | "\xC1" |
| 206 | "\x02\x01\x00" /* prime1 - integer of 1 byte */ |
| 207 | "\x02\x01\x00" /* prime2 - integer of 1 byte */ |
| 208 | "\x02\x01\x00" /* exponent1 - integer of 1 byte */ |
| 209 | "\x02\x01\x00" /* exponent2 - integer of 1 byte */ |
| 210 | "\x02\x01\x00", /* coefficient - integer of 1 byte */ |
| 211 | .key_len = 289, |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 212 | .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a", |
| 213 | .c = |
| 214 | "\x74\x1b\x55\xac\x47\xb5\x08\x0a\x6e\x2b\x2d\xf7\x94\xb8\x8a\x95" |
| 215 | "\xed\xa3\x6b\xc9\x29\xee\xb2\x2c\x80\xc3\x39\x3b\x8c\x62\x45\x72" |
| 216 | "\xc2\x7f\x74\x81\x91\x68\x44\x48\x5a\xdc\xa0\x7e\xa7\x0b\x05\x7f" |
| 217 | "\x0e\xa0\x6c\xe5\x8f\x19\x4d\xce\x98\x47\x5f\xbd\x5f\xfe\xe5\x34" |
| 218 | "\x59\x89\xaf\xf0\xba\x44\xd7\xf1\x1a\x50\x72\xef\x5e\x4a\xb6\xb7" |
| 219 | "\x54\x34\xd1\xc4\x83\x09\xdf\x0f\x91\x5f\x7d\x91\x70\x2f\xd4\x13" |
| 220 | "\xcc\x5e\xa4\x6c\xc3\x4d\x28\xef\xda\xaf\xec\x14\x92\xfc\xa3\x75" |
| 221 | "\x13\xb4\xc1\xa1\x11\xfc\x40\x2f\x4c\x9d\xdf\x16\x76\x11\x20\x6b", |
| 222 | .m_size = 8, |
| 223 | .c_size = 128, |
| 224 | }, { |
| 225 | #endif |
| 226 | .key = |
Tadeusz Struk | 22287b0 | 2015-10-08 09:26:55 -0700 | [diff] [blame] | 227 | "\x30\x82\x02\x1F" /* sequence of 543 bytes */ |
| 228 | "\x02\x01\x01" /* version - integer of 1 byte */ |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 229 | "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */ |
| 230 | "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D" |
| 231 | "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA" |
| 232 | "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D" |
| 233 | "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77" |
| 234 | "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA" |
| 235 | "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1" |
| 236 | "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48" |
| 237 | "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F" |
| 238 | "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77" |
| 239 | "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA" |
| 240 | "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A" |
| 241 | "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC" |
| 242 | "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD" |
| 243 | "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB" |
| 244 | "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E" |
| 245 | "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB" |
| 246 | "\x02\x03\x01\x00\x01" /* public key - integer of 3 bytes */ |
| 247 | "\x02\x82\x01\x00" /* private key - integer of 256 bytes */ |
| 248 | "\x52\x41\xF4\xDA\x7B\xB7\x59\x55\xCA\xD4\x2F\x0F\x3A\xCB\xA4\x0D" |
| 249 | "\x93\x6C\xCC\x9D\xC1\xB2\xFB\xFD\xAE\x40\x31\xAC\x69\x52\x21\x92" |
| 250 | "\xB3\x27\xDF\xEA\xEE\x2C\x82\xBB\xF7\x40\x32\xD5\x14\xC4\x94\x12" |
| 251 | "\xEC\xB8\x1F\xCA\x59\xE3\xC1\x78\xF3\x85\xD8\x47\xA5\xD7\x02\x1A" |
| 252 | "\x65\x79\x97\x0D\x24\xF4\xF0\x67\x6E\x75\x2D\xBF\x10\x3D\xA8\x7D" |
| 253 | "\xEF\x7F\x60\xE4\xE6\x05\x82\x89\x5D\xDF\xC6\xD2\x6C\x07\x91\x33" |
| 254 | "\x98\x42\xF0\x02\x00\x25\x38\xC5\x85\x69\x8A\x7D\x2F\x95\x6C\x43" |
| 255 | "\x9A\xB8\x81\xE2\xD0\x07\x35\xAA\x05\x41\xC9\x1E\xAF\xE4\x04\x3B" |
| 256 | "\x19\xB8\x73\xA2\xAC\x4B\x1E\x66\x48\xD8\x72\x1F\xAC\xF6\xCB\xBC" |
| 257 | "\x90\x09\xCA\xEC\x0C\xDC\xF9\x2C\xD7\xEB\xAE\xA3\xA4\x47\xD7\x33" |
| 258 | "\x2F\x8A\xCA\xBC\x5E\xF0\x77\xE4\x97\x98\x97\xC7\x10\x91\x7D\x2A" |
| 259 | "\xA6\xFF\x46\x83\x97\xDE\xE9\xE2\x17\x03\x06\x14\xE2\xD7\xB1\x1D" |
| 260 | "\x77\xAF\x51\x27\x5B\x5E\x69\xB8\x81\xE6\x11\xC5\x43\x23\x81\x04" |
| 261 | "\x62\xFF\xE9\x46\xB8\xD8\x44\xDB\xA5\xCC\x31\x54\x34\xCE\x3E\x82" |
| 262 | "\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] | 263 | "\xA7\x1D\xD9\x1E\x06\xCD\xE8\xBA\x2C\x8C\x69\x32\xEA\xBE\x60\x71" |
| 264 | "\x02\x01\x00" /* prime1 - integer of 1 byte */ |
| 265 | "\x02\x01\x00" /* prime2 - integer of 1 byte */ |
| 266 | "\x02\x01\x00" /* exponent1 - integer of 1 byte */ |
| 267 | "\x02\x01\x00" /* exponent2 - integer of 1 byte */ |
| 268 | "\x02\x01\x00", /* coefficient - integer of 1 byte */ |
| 269 | .key_len = 547, |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 270 | .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a", |
| 271 | .c = |
| 272 | "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe" |
| 273 | "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36" |
| 274 | "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd" |
| 275 | "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3" |
| 276 | "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69" |
| 277 | "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41" |
| 278 | "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30" |
| 279 | "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5" |
| 280 | "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73" |
| 281 | "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d" |
| 282 | "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b" |
| 283 | "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0" |
| 284 | "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d" |
| 285 | "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6" |
| 286 | "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21" |
| 287 | "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98", |
| 288 | .m_size = 8, |
| 289 | .c_size = 256, |
| 290 | }, { |
| 291 | .key = |
| 292 | "\x30\x82\x01\x09" /* sequence of 265 bytes */ |
| 293 | "\x02\x82\x01\x00" /* modulus - integer of 256 bytes */ |
| 294 | "\xDB\x10\x1A\xC2\xA3\xF1\xDC\xFF\x13\x6B\xED\x44\xDF\xF0\x02\x6D" |
| 295 | "\x13\xC7\x88\xDA\x70\x6B\x54\xF1\xE8\x27\xDC\xC3\x0F\x99\x6A\xFA" |
| 296 | "\xC6\x67\xFF\x1D\x1E\x3C\x1D\xC1\xB5\x5F\x6C\xC0\xB2\x07\x3A\x6D" |
| 297 | "\x41\xE4\x25\x99\xAC\xFC\xD2\x0F\x02\xD3\xD1\x54\x06\x1A\x51\x77" |
| 298 | "\xBD\xB6\xBF\xEA\xA7\x5C\x06\xA9\x5D\x69\x84\x45\xD7\xF5\x05\xBA" |
| 299 | "\x47\xF0\x1B\xD7\x2B\x24\xEC\xCB\x9B\x1B\x10\x8D\x81\xA0\xBE\xB1" |
| 300 | "\x8C\x33\xE4\x36\xB8\x43\xEB\x19\x2A\x81\x8D\xDE\x81\x0A\x99\x48" |
| 301 | "\xB6\xF6\xBC\xCD\x49\x34\x3A\x8F\x26\x94\xE3\x28\x82\x1A\x7C\x8F" |
| 302 | "\x59\x9F\x45\xE8\x5D\x1A\x45\x76\x04\x56\x05\xA1\xD0\x1B\x8C\x77" |
| 303 | "\x6D\xAF\x53\xFA\x71\xE2\x67\xE0\x9A\xFE\x03\xA9\x85\xD2\xC9\xAA" |
| 304 | "\xBA\x2A\xBC\xF4\xA0\x08\xF5\x13\x98\x13\x5D\xF0\xD9\x33\x34\x2A" |
| 305 | "\x61\xC3\x89\x55\xF0\xAE\x1A\x9C\x22\xEE\x19\x05\x8D\x32\xFE\xEC" |
| 306 | "\x9C\x84\xBA\xB7\xF9\x6C\x3A\x4F\x07\xFC\x45\xEB\x12\xE5\x7B\xFD" |
| 307 | "\x55\xE6\x29\x69\xD1\xC2\xE8\xB9\x78\x59\xF6\x79\x10\xC6\x4E\xEB" |
| 308 | "\x6A\x5E\xB9\x9A\xC7\xC4\x5B\x63\xDA\xA3\x3F\x5E\x92\x7A\x81\x5E" |
| 309 | "\xD6\xB0\xE2\x62\x8F\x74\x26\xC2\x0C\xD3\x9A\x17\x47\xE6\x8E\xAB" |
| 310 | "\x02\x03\x01\x00\x01", /* public key - integer of 3 bytes */ |
| 311 | .key_len = 269, |
| 312 | .m = "\x54\x85\x9b\x34\x2c\x49\xea\x2a", |
| 313 | .c = |
| 314 | "\xb2\x97\x76\xb4\xae\x3e\x38\x3c\x7e\x64\x1f\xcc\xa2\x7f\xf6\xbe" |
| 315 | "\xcf\x49\xbc\x48\xd3\x6c\x8f\x0a\x0e\xc1\x73\xbd\x7b\x55\x79\x36" |
| 316 | "\x0e\xa1\x87\x88\xb9\x2c\x90\xa6\x53\x5e\xe9\xef\xc4\xe2\x4d\xdd" |
| 317 | "\xf7\xa6\x69\x82\x3f\x56\xa4\x7b\xfb\x62\xe0\xae\xb8\xd3\x04\xb3" |
| 318 | "\xac\x5a\x15\x2a\xe3\x19\x9b\x03\x9a\x0b\x41\xda\x64\xec\x0a\x69" |
| 319 | "\xfc\xf2\x10\x92\xf3\xc1\xbf\x84\x7f\xfd\x2c\xae\xc8\xb5\xf6\x41" |
| 320 | "\x70\xc5\x47\x03\x8a\xf8\xff\x6f\x3f\xd2\x6f\x09\xb4\x22\xf3\x30" |
| 321 | "\xbe\xa9\x85\xcb\x9c\x8d\xf9\x8f\xeb\x32\x91\xa2\x25\x84\x8f\xf5" |
| 322 | "\xdc\xc7\x06\x9c\x2d\xe5\x11\x2c\x09\x09\x87\x09\xa9\xf6\x33\x73" |
| 323 | "\x90\xf1\x60\xf2\x65\xdd\x30\xa5\x66\xce\x62\x7b\xd0\xf8\x2d\x3d" |
| 324 | "\x19\x82\x77\xe3\x0a\x5f\x75\x2f\x8e\xb1\xe5\xe8\x91\x35\x1b\x3b" |
| 325 | "\x33\xb7\x66\x92\xd1\xf2\x8e\x6f\xe5\x75\x0c\xad\x36\xfb\x4e\xd0" |
| 326 | "\x66\x61\xbd\x49\xfe\xf4\x1a\xa2\x2b\x49\xfe\x03\x4c\x74\x47\x8d" |
| 327 | "\x9a\x66\xb2\x49\x46\x4d\x77\xea\x33\x4d\x6b\x3c\xb4\x49\x4a\xc6" |
| 328 | "\x7d\x3d\xb5\xb9\x56\x41\x15\x67\x0f\x94\x3c\x93\x65\x27\xe0\x21" |
| 329 | "\x5d\x59\xc3\x62\xd5\xa6\xda\x38\x26\x22\x5e\x34\x1c\x94\xaf\x98", |
| 330 | .m_size = 8, |
| 331 | .c_size = 256, |
| 332 | .public_key_vec = true, |
| 333 | } |
| 334 | }; |
| 335 | |
| 336 | /* |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 337 | * MD4 test vectors from RFC1320 |
| 338 | */ |
| 339 | #define MD4_TEST_VECTORS 7 |
| 340 | |
| 341 | static struct hash_testvec md4_tv_template [] = { |
| 342 | { |
| 343 | .plaintext = "", |
| 344 | .digest = "\x31\xd6\xcf\xe0\xd1\x6a\xe9\x31" |
| 345 | "\xb7\x3c\x59\xd7\xe0\xc0\x89\xc0", |
| 346 | }, { |
| 347 | .plaintext = "a", |
| 348 | .psize = 1, |
| 349 | .digest = "\xbd\xe5\x2c\xb3\x1d\xe3\x3e\x46" |
| 350 | "\x24\x5e\x05\xfb\xdb\xd6\xfb\x24", |
| 351 | }, { |
| 352 | .plaintext = "abc", |
| 353 | .psize = 3, |
| 354 | .digest = "\xa4\x48\x01\x7a\xaf\x21\xd8\x52" |
| 355 | "\x5f\xc1\x0a\xe8\x7a\xa6\x72\x9d", |
| 356 | }, { |
| 357 | .plaintext = "message digest", |
| 358 | .psize = 14, |
| 359 | .digest = "\xd9\x13\x0a\x81\x64\x54\x9f\xe8" |
| 360 | "\x18\x87\x48\x06\xe1\xc7\x01\x4b", |
| 361 | }, { |
| 362 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 363 | .psize = 26, |
| 364 | .digest = "\xd7\x9e\x1c\x30\x8a\xa5\xbb\xcd" |
| 365 | "\xee\xa8\xed\x63\xdf\x41\x2d\xa9", |
| 366 | .np = 2, |
| 367 | .tap = { 13, 13 }, |
| 368 | }, { |
| 369 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", |
| 370 | .psize = 62, |
| 371 | .digest = "\x04\x3f\x85\x82\xf2\x41\xdb\x35" |
| 372 | "\x1c\xe6\x27\xe1\x53\xe7\xf0\xe4", |
| 373 | }, { |
| 374 | .plaintext = "123456789012345678901234567890123456789012345678901234567890123" |
| 375 | "45678901234567890", |
| 376 | .psize = 80, |
| 377 | .digest = "\xe3\x3b\x4d\xdc\x9c\x38\xf2\x19" |
| 378 | "\x9c\x3e\x7b\x16\x4f\xcc\x05\x36", |
| 379 | }, |
| 380 | }; |
| 381 | |
| 382 | /* |
| 383 | * MD5 test vectors from RFC1321 |
| 384 | */ |
| 385 | #define MD5_TEST_VECTORS 7 |
| 386 | |
| 387 | static struct hash_testvec md5_tv_template[] = { |
| 388 | { |
| 389 | .digest = "\xd4\x1d\x8c\xd9\x8f\x00\xb2\x04" |
| 390 | "\xe9\x80\x09\x98\xec\xf8\x42\x7e", |
| 391 | }, { |
| 392 | .plaintext = "a", |
| 393 | .psize = 1, |
| 394 | .digest = "\x0c\xc1\x75\xb9\xc0\xf1\xb6\xa8" |
| 395 | "\x31\xc3\x99\xe2\x69\x77\x26\x61", |
| 396 | }, { |
| 397 | .plaintext = "abc", |
| 398 | .psize = 3, |
| 399 | .digest = "\x90\x01\x50\x98\x3c\xd2\x4f\xb0" |
| 400 | "\xd6\x96\x3f\x7d\x28\xe1\x7f\x72", |
| 401 | }, { |
| 402 | .plaintext = "message digest", |
| 403 | .psize = 14, |
| 404 | .digest = "\xf9\x6b\x69\x7d\x7c\xb7\x93\x8d" |
| 405 | "\x52\x5a\x2f\x31\xaa\xf1\x61\xd0", |
| 406 | }, { |
| 407 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 408 | .psize = 26, |
| 409 | .digest = "\xc3\xfc\xd3\xd7\x61\x92\xe4\x00" |
| 410 | "\x7d\xfb\x49\x6c\xca\x67\xe1\x3b", |
| 411 | .np = 2, |
| 412 | .tap = {13, 13} |
| 413 | }, { |
| 414 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789", |
| 415 | .psize = 62, |
| 416 | .digest = "\xd1\x74\xab\x98\xd2\x77\xd9\xf5" |
| 417 | "\xa5\x61\x1c\x2c\x9f\x41\x9d\x9f", |
| 418 | }, { |
| 419 | .plaintext = "12345678901234567890123456789012345678901234567890123456789012" |
| 420 | "345678901234567890", |
| 421 | .psize = 80, |
| 422 | .digest = "\x57\xed\xf4\xa2\x2b\xe3\xc9\x55" |
| 423 | "\xac\x49\xda\x2e\x21\x07\xb6\x7a", |
| 424 | } |
| 425 | |
| 426 | }; |
| 427 | |
| 428 | /* |
| 429 | * RIPEMD-128 test vectors from ISO/IEC 10118-3:2004(E) |
| 430 | */ |
| 431 | #define RMD128_TEST_VECTORS 10 |
| 432 | |
| 433 | static struct hash_testvec rmd128_tv_template[] = { |
| 434 | { |
| 435 | .digest = "\xcd\xf2\x62\x13\xa1\x50\xdc\x3e" |
| 436 | "\xcb\x61\x0f\x18\xf6\xb3\x8b\x46", |
| 437 | }, { |
| 438 | .plaintext = "a", |
| 439 | .psize = 1, |
| 440 | .digest = "\x86\xbe\x7a\xfa\x33\x9d\x0f\xc7" |
| 441 | "\xcf\xc7\x85\xe7\x2f\x57\x8d\x33", |
| 442 | }, { |
| 443 | .plaintext = "abc", |
| 444 | .psize = 3, |
| 445 | .digest = "\xc1\x4a\x12\x19\x9c\x66\xe4\xba" |
| 446 | "\x84\x63\x6b\x0f\x69\x14\x4c\x77", |
| 447 | }, { |
| 448 | .plaintext = "message digest", |
| 449 | .psize = 14, |
| 450 | .digest = "\x9e\x32\x7b\x3d\x6e\x52\x30\x62" |
| 451 | "\xaf\xc1\x13\x2d\x7d\xf9\xd1\xb8", |
| 452 | }, { |
| 453 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 454 | .psize = 26, |
| 455 | .digest = "\xfd\x2a\xa6\x07\xf7\x1d\xc8\xf5" |
| 456 | "\x10\x71\x49\x22\xb3\x71\x83\x4e", |
| 457 | }, { |
| 458 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 459 | "fghijklmnopqrstuvwxyz0123456789", |
| 460 | .psize = 62, |
| 461 | .digest = "\xd1\xe9\x59\xeb\x17\x9c\x91\x1f" |
| 462 | "\xae\xa4\x62\x4c\x60\xc5\xc7\x02", |
| 463 | }, { |
| 464 | .plaintext = "1234567890123456789012345678901234567890" |
| 465 | "1234567890123456789012345678901234567890", |
| 466 | .psize = 80, |
| 467 | .digest = "\x3f\x45\xef\x19\x47\x32\xc2\xdb" |
| 468 | "\xb2\xc4\xa2\xc7\x69\x79\x5f\xa3", |
| 469 | }, { |
| 470 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 471 | "hijkijkljklmklmnlmnomnopnopq", |
| 472 | .psize = 56, |
| 473 | .digest = "\xa1\xaa\x06\x89\xd0\xfa\xfa\x2d" |
| 474 | "\xdc\x22\xe8\x8b\x49\x13\x3a\x06", |
| 475 | .np = 2, |
| 476 | .tap = { 28, 28 }, |
| 477 | }, { |
| 478 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi" |
| 479 | "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr" |
| 480 | "lmnopqrsmnopqrstnopqrstu", |
| 481 | .psize = 112, |
| 482 | .digest = "\xd4\xec\xc9\x13\xe1\xdf\x77\x6b" |
| 483 | "\xf4\x8d\xe9\xd5\x5b\x1f\x25\x46", |
| 484 | }, { |
| 485 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 486 | .psize = 32, |
| 487 | .digest = "\x13\xfc\x13\xe8\xef\xff\x34\x7d" |
| 488 | "\xe1\x93\xff\x46\xdb\xac\xcf\xd4", |
| 489 | } |
| 490 | }; |
| 491 | |
| 492 | /* |
| 493 | * RIPEMD-160 test vectors from ISO/IEC 10118-3:2004(E) |
| 494 | */ |
| 495 | #define RMD160_TEST_VECTORS 10 |
| 496 | |
| 497 | static struct hash_testvec rmd160_tv_template[] = { |
| 498 | { |
| 499 | .digest = "\x9c\x11\x85\xa5\xc5\xe9\xfc\x54\x61\x28" |
| 500 | "\x08\x97\x7e\xe8\xf5\x48\xb2\x25\x8d\x31", |
| 501 | }, { |
| 502 | .plaintext = "a", |
| 503 | .psize = 1, |
| 504 | .digest = "\x0b\xdc\x9d\x2d\x25\x6b\x3e\xe9\xda\xae" |
| 505 | "\x34\x7b\xe6\xf4\xdc\x83\x5a\x46\x7f\xfe", |
| 506 | }, { |
| 507 | .plaintext = "abc", |
| 508 | .psize = 3, |
| 509 | .digest = "\x8e\xb2\x08\xf7\xe0\x5d\x98\x7a\x9b\x04" |
| 510 | "\x4a\x8e\x98\xc6\xb0\x87\xf1\x5a\x0b\xfc", |
| 511 | }, { |
| 512 | .plaintext = "message digest", |
| 513 | .psize = 14, |
| 514 | .digest = "\x5d\x06\x89\xef\x49\xd2\xfa\xe5\x72\xb8" |
| 515 | "\x81\xb1\x23\xa8\x5f\xfa\x21\x59\x5f\x36", |
| 516 | }, { |
| 517 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 518 | .psize = 26, |
| 519 | .digest = "\xf7\x1c\x27\x10\x9c\x69\x2c\x1b\x56\xbb" |
| 520 | "\xdc\xeb\x5b\x9d\x28\x65\xb3\x70\x8d\xbc", |
| 521 | }, { |
| 522 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 523 | "fghijklmnopqrstuvwxyz0123456789", |
| 524 | .psize = 62, |
| 525 | .digest = "\xb0\xe2\x0b\x6e\x31\x16\x64\x02\x86\xed" |
| 526 | "\x3a\x87\xa5\x71\x30\x79\xb2\x1f\x51\x89", |
| 527 | }, { |
| 528 | .plaintext = "1234567890123456789012345678901234567890" |
| 529 | "1234567890123456789012345678901234567890", |
| 530 | .psize = 80, |
| 531 | .digest = "\x9b\x75\x2e\x45\x57\x3d\x4b\x39\xf4\xdb" |
| 532 | "\xd3\x32\x3c\xab\x82\xbf\x63\x32\x6b\xfb", |
| 533 | }, { |
| 534 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 535 | "hijkijkljklmklmnlmnomnopnopq", |
| 536 | .psize = 56, |
| 537 | .digest = "\x12\xa0\x53\x38\x4a\x9c\x0c\x88\xe4\x05" |
| 538 | "\xa0\x6c\x27\xdc\xf4\x9a\xda\x62\xeb\x2b", |
| 539 | .np = 2, |
| 540 | .tap = { 28, 28 }, |
| 541 | }, { |
| 542 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghi" |
| 543 | "jklmghijklmnhijklmnoijklmnopjklmnopqklmnopqr" |
| 544 | "lmnopqrsmnopqrstnopqrstu", |
| 545 | .psize = 112, |
| 546 | .digest = "\x6f\x3f\xa3\x9b\x6b\x50\x3c\x38\x4f\x91" |
| 547 | "\x9a\x49\xa7\xaa\x5c\x2c\x08\xbd\xfb\x45", |
| 548 | }, { |
| 549 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 550 | .psize = 32, |
| 551 | .digest = "\x94\xc2\x64\x11\x54\x04\xe6\x33\x79\x0d" |
| 552 | "\xfc\xc8\x7b\x58\x7d\x36\x77\x06\x7d\x9f", |
| 553 | } |
| 554 | }; |
| 555 | |
| 556 | /* |
| 557 | * RIPEMD-256 test vectors |
| 558 | */ |
| 559 | #define RMD256_TEST_VECTORS 8 |
| 560 | |
| 561 | static struct hash_testvec rmd256_tv_template[] = { |
| 562 | { |
| 563 | .digest = "\x02\xba\x4c\x4e\x5f\x8e\xcd\x18" |
| 564 | "\x77\xfc\x52\xd6\x4d\x30\xe3\x7a" |
| 565 | "\x2d\x97\x74\xfb\x1e\x5d\x02\x63" |
| 566 | "\x80\xae\x01\x68\xe3\xc5\x52\x2d", |
| 567 | }, { |
| 568 | .plaintext = "a", |
| 569 | .psize = 1, |
| 570 | .digest = "\xf9\x33\x3e\x45\xd8\x57\xf5\xd9" |
| 571 | "\x0a\x91\xba\xb7\x0a\x1e\xba\x0c" |
| 572 | "\xfb\x1b\xe4\xb0\x78\x3c\x9a\xcf" |
| 573 | "\xcd\x88\x3a\x91\x34\x69\x29\x25", |
| 574 | }, { |
| 575 | .plaintext = "abc", |
| 576 | .psize = 3, |
| 577 | .digest = "\xaf\xbd\x6e\x22\x8b\x9d\x8c\xbb" |
| 578 | "\xce\xf5\xca\x2d\x03\xe6\xdb\xa1" |
| 579 | "\x0a\xc0\xbc\x7d\xcb\xe4\x68\x0e" |
| 580 | "\x1e\x42\xd2\xe9\x75\x45\x9b\x65", |
| 581 | }, { |
| 582 | .plaintext = "message digest", |
| 583 | .psize = 14, |
| 584 | .digest = "\x87\xe9\x71\x75\x9a\x1c\xe4\x7a" |
| 585 | "\x51\x4d\x5c\x91\x4c\x39\x2c\x90" |
| 586 | "\x18\xc7\xc4\x6b\xc1\x44\x65\x55" |
| 587 | "\x4a\xfc\xdf\x54\xa5\x07\x0c\x0e", |
| 588 | }, { |
| 589 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 590 | .psize = 26, |
| 591 | .digest = "\x64\x9d\x30\x34\x75\x1e\xa2\x16" |
| 592 | "\x77\x6b\xf9\xa1\x8a\xcc\x81\xbc" |
| 593 | "\x78\x96\x11\x8a\x51\x97\x96\x87" |
| 594 | "\x82\xdd\x1f\xd9\x7d\x8d\x51\x33", |
| 595 | }, { |
| 596 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 597 | "fghijklmnopqrstuvwxyz0123456789", |
| 598 | .psize = 62, |
| 599 | .digest = "\x57\x40\xa4\x08\xac\x16\xb7\x20" |
| 600 | "\xb8\x44\x24\xae\x93\x1c\xbb\x1f" |
| 601 | "\xe3\x63\xd1\xd0\xbf\x40\x17\xf1" |
| 602 | "\xa8\x9f\x7e\xa6\xde\x77\xa0\xb8", |
| 603 | }, { |
| 604 | .plaintext = "1234567890123456789012345678901234567890" |
| 605 | "1234567890123456789012345678901234567890", |
| 606 | .psize = 80, |
| 607 | .digest = "\x06\xfd\xcc\x7a\x40\x95\x48\xaa" |
| 608 | "\xf9\x13\x68\xc0\x6a\x62\x75\xb5" |
| 609 | "\x53\xe3\xf0\x99\xbf\x0e\xa4\xed" |
| 610 | "\xfd\x67\x78\xdf\x89\xa8\x90\xdd", |
| 611 | }, { |
| 612 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 613 | "hijkijkljklmklmnlmnomnopnopq", |
| 614 | .psize = 56, |
| 615 | .digest = "\x38\x43\x04\x55\x83\xaa\xc6\xc8" |
| 616 | "\xc8\xd9\x12\x85\x73\xe7\xa9\x80" |
| 617 | "\x9a\xfb\x2a\x0f\x34\xcc\xc3\x6e" |
| 618 | "\xa9\xe7\x2f\x16\xf6\x36\x8e\x3f", |
| 619 | .np = 2, |
| 620 | .tap = { 28, 28 }, |
| 621 | } |
| 622 | }; |
| 623 | |
| 624 | /* |
| 625 | * RIPEMD-320 test vectors |
| 626 | */ |
| 627 | #define RMD320_TEST_VECTORS 8 |
| 628 | |
| 629 | static struct hash_testvec rmd320_tv_template[] = { |
| 630 | { |
| 631 | .digest = "\x22\xd6\x5d\x56\x61\x53\x6c\xdc\x75\xc1" |
| 632 | "\xfd\xf5\xc6\xde\x7b\x41\xb9\xf2\x73\x25" |
| 633 | "\xeb\xc6\x1e\x85\x57\x17\x7d\x70\x5a\x0e" |
| 634 | "\xc8\x80\x15\x1c\x3a\x32\xa0\x08\x99\xb8", |
| 635 | }, { |
| 636 | .plaintext = "a", |
| 637 | .psize = 1, |
| 638 | .digest = "\xce\x78\x85\x06\x38\xf9\x26\x58\xa5\xa5" |
| 639 | "\x85\x09\x75\x79\x92\x6d\xda\x66\x7a\x57" |
| 640 | "\x16\x56\x2c\xfc\xf6\xfb\xe7\x7f\x63\x54" |
| 641 | "\x2f\x99\xb0\x47\x05\xd6\x97\x0d\xff\x5d", |
| 642 | }, { |
| 643 | .plaintext = "abc", |
| 644 | .psize = 3, |
| 645 | .digest = "\xde\x4c\x01\xb3\x05\x4f\x89\x30\xa7\x9d" |
| 646 | "\x09\xae\x73\x8e\x92\x30\x1e\x5a\x17\x08" |
| 647 | "\x5b\xef\xfd\xc1\xb8\xd1\x16\x71\x3e\x74" |
| 648 | "\xf8\x2f\xa9\x42\xd6\x4c\xdb\xc4\x68\x2d", |
| 649 | }, { |
| 650 | .plaintext = "message digest", |
| 651 | .psize = 14, |
| 652 | .digest = "\x3a\x8e\x28\x50\x2e\xd4\x5d\x42\x2f\x68" |
| 653 | "\x84\x4f\x9d\xd3\x16\xe7\xb9\x85\x33\xfa" |
| 654 | "\x3f\x2a\x91\xd2\x9f\x84\xd4\x25\xc8\x8d" |
| 655 | "\x6b\x4e\xff\x72\x7d\xf6\x6a\x7c\x01\x97", |
| 656 | }, { |
| 657 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 658 | .psize = 26, |
| 659 | .digest = "\xca\xbd\xb1\x81\x0b\x92\x47\x0a\x20\x93" |
| 660 | "\xaa\x6b\xce\x05\x95\x2c\x28\x34\x8c\xf4" |
| 661 | "\x3f\xf6\x08\x41\x97\x51\x66\xbb\x40\xed" |
| 662 | "\x23\x40\x04\xb8\x82\x44\x63\xe6\xb0\x09", |
| 663 | }, { |
| 664 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcde" |
| 665 | "fghijklmnopqrstuvwxyz0123456789", |
| 666 | .psize = 62, |
| 667 | .digest = "\xed\x54\x49\x40\xc8\x6d\x67\xf2\x50\xd2" |
| 668 | "\x32\xc3\x0b\x7b\x3e\x57\x70\xe0\xc6\x0c" |
| 669 | "\x8c\xb9\xa4\xca\xfe\x3b\x11\x38\x8a\xf9" |
| 670 | "\x92\x0e\x1b\x99\x23\x0b\x84\x3c\x86\xa4", |
| 671 | }, { |
| 672 | .plaintext = "1234567890123456789012345678901234567890" |
| 673 | "1234567890123456789012345678901234567890", |
| 674 | .psize = 80, |
| 675 | .digest = "\x55\x78\x88\xaf\x5f\x6d\x8e\xd6\x2a\xb6" |
| 676 | "\x69\x45\xc6\xd2\xa0\xa4\x7e\xcd\x53\x41" |
| 677 | "\xe9\x15\xeb\x8f\xea\x1d\x05\x24\x95\x5f" |
| 678 | "\x82\x5d\xc7\x17\xe4\xa0\x08\xab\x2d\x42", |
| 679 | }, { |
| 680 | .plaintext = "abcdbcdecdefdefgefghfghighij" |
| 681 | "hijkijkljklmklmnlmnomnopnopq", |
| 682 | .psize = 56, |
| 683 | .digest = "\xd0\x34\xa7\x95\x0c\xf7\x22\x02\x1b\xa4" |
| 684 | "\xb8\x4d\xf7\x69\xa5\xde\x20\x60\xe2\x59" |
| 685 | "\xdf\x4c\x9b\xb4\xa4\x26\x8c\x0e\x93\x5b" |
| 686 | "\xbc\x74\x70\xa9\x69\xc9\xd0\x72\xa1\xac", |
| 687 | .np = 2, |
| 688 | .tap = { 28, 28 }, |
| 689 | } |
| 690 | }; |
| 691 | |
Herbert Xu | 68411521 | 2013-09-07 12:56:26 +1000 | [diff] [blame] | 692 | #define CRCT10DIF_TEST_VECTORS 3 |
| 693 | static struct hash_testvec crct10dif_tv_template[] = { |
| 694 | { |
| 695 | .plaintext = "abc", |
| 696 | .psize = 3, |
| 697 | #ifdef __LITTLE_ENDIAN |
| 698 | .digest = "\x3b\x44", |
| 699 | #else |
| 700 | .digest = "\x44\x3b", |
| 701 | #endif |
| 702 | }, { |
| 703 | .plaintext = "1234567890123456789012345678901234567890" |
| 704 | "123456789012345678901234567890123456789", |
| 705 | .psize = 79, |
| 706 | #ifdef __LITTLE_ENDIAN |
| 707 | .digest = "\x70\x4b", |
| 708 | #else |
| 709 | .digest = "\x4b\x70", |
| 710 | #endif |
| 711 | }, { |
| 712 | .plaintext = |
| 713 | "abcddddddddddddddddddddddddddddddddddddddddddddddddddddd", |
| 714 | .psize = 56, |
| 715 | #ifdef __LITTLE_ENDIAN |
| 716 | .digest = "\xe3\x9c", |
| 717 | #else |
| 718 | .digest = "\x9c\xe3", |
| 719 | #endif |
| 720 | .np = 2, |
| 721 | .tap = { 28, 28 } |
| 722 | } |
| 723 | }; |
| 724 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 725 | /* |
| 726 | * SHA1 test vectors from from FIPS PUB 180-1 |
Herbert Xu | bd1f299 | 2011-02-17 14:24:45 +1100 | [diff] [blame] | 727 | * Long vector from CAVS 5.0 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 728 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 729 | #define SHA1_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 730 | |
| 731 | static struct hash_testvec sha1_tv_template[] = { |
| 732 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 733 | .plaintext = "", |
| 734 | .psize = 0, |
| 735 | .digest = "\xda\x39\xa3\xee\x5e\x6b\x4b\x0d\x32\x55" |
| 736 | "\xbf\xef\x95\x60\x18\x90\xaf\xd8\x07\x09", |
| 737 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 738 | .plaintext = "abc", |
| 739 | .psize = 3, |
| 740 | .digest = "\xa9\x99\x3e\x36\x47\x06\x81\x6a\xba\x3e" |
| 741 | "\x25\x71\x78\x50\xc2\x6c\x9c\xd0\xd8\x9d", |
| 742 | }, { |
| 743 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 744 | .psize = 56, |
| 745 | .digest = "\x84\x98\x3e\x44\x1c\x3b\xd2\x6e\xba\xae" |
| 746 | "\x4a\xa1\xf9\x51\x29\xe5\xe5\x46\x70\xf1", |
| 747 | .np = 2, |
| 748 | .tap = { 28, 28 } |
Herbert Xu | bd1f299 | 2011-02-17 14:24:45 +1100 | [diff] [blame] | 749 | }, { |
| 750 | .plaintext = "\xec\x29\x56\x12\x44\xed\xe7\x06" |
| 751 | "\xb6\xeb\x30\xa1\xc3\x71\xd7\x44" |
| 752 | "\x50\xa1\x05\xc3\xf9\x73\x5f\x7f" |
| 753 | "\xa9\xfe\x38\xcf\x67\xf3\x04\xa5" |
| 754 | "\x73\x6a\x10\x6e\x92\xe1\x71\x39" |
| 755 | "\xa6\x81\x3b\x1c\x81\xa4\xf3\xd3" |
| 756 | "\xfb\x95\x46\xab\x42\x96\xfa\x9f" |
| 757 | "\x72\x28\x26\xc0\x66\x86\x9e\xda" |
| 758 | "\xcd\x73\xb2\x54\x80\x35\x18\x58" |
| 759 | "\x13\xe2\x26\x34\xa9\xda\x44\x00" |
| 760 | "\x0d\x95\xa2\x81\xff\x9f\x26\x4e" |
| 761 | "\xcc\xe0\xa9\x31\x22\x21\x62\xd0" |
| 762 | "\x21\xcc\xa2\x8d\xb5\xf3\xc2\xaa" |
| 763 | "\x24\x94\x5a\xb1\xe3\x1c\xb4\x13" |
| 764 | "\xae\x29\x81\x0f\xd7\x94\xca\xd5" |
| 765 | "\xdf\xaf\x29\xec\x43\xcb\x38\xd1" |
| 766 | "\x98\xfe\x4a\xe1\xda\x23\x59\x78" |
| 767 | "\x02\x21\x40\x5b\xd6\x71\x2a\x53" |
| 768 | "\x05\xda\x4b\x1b\x73\x7f\xce\x7c" |
| 769 | "\xd2\x1c\x0e\xb7\x72\x8d\x08\x23" |
| 770 | "\x5a\x90\x11", |
| 771 | .psize = 163, |
| 772 | .digest = "\x97\x01\x11\xc4\xe7\x7b\xcc\x88\xcc\x20" |
| 773 | "\x45\x9c\x02\xb6\x9b\x4a\xa8\xf5\x82\x17", |
| 774 | .np = 4, |
| 775 | .tap = { 63, 64, 31, 5 } |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 776 | }, { |
| 777 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 778 | .psize = 64, |
| 779 | .digest = "\xc8\x71\xf6\x9a\x63\xcc\xa9\x84\x84\x82" |
| 780 | "\x64\xe7\x79\x95\x5d\xd7\x19\x41\x7c\x91", |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 781 | }, { |
| 782 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 783 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 784 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 785 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 786 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 787 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 788 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 789 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 790 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 791 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 792 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 793 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 794 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 795 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 796 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 797 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 798 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 799 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 800 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 801 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 802 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 803 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 804 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 805 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 806 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 807 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 808 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 809 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 810 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 811 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 812 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 813 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 814 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 815 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 816 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 817 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 818 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 819 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 820 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 821 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 822 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 823 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 824 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 825 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 826 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 827 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 828 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 829 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 830 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 831 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 832 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 833 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 834 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 835 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 836 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 837 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 838 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 839 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 840 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 841 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 842 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 843 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 844 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 845 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 846 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 847 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 848 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 849 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 850 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 851 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 852 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 853 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 854 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 855 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 856 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 857 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 858 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 859 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 860 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 861 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 862 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 863 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 864 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 865 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 866 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 867 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 868 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 869 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 870 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 871 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 872 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 873 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 874 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 875 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 876 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 877 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 878 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 879 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 880 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 881 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 882 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 883 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 884 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 885 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 886 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 887 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 888 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 889 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 890 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 891 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 892 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 893 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 894 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 895 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 896 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 897 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 898 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 899 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 900 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 901 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 902 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 903 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 904 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 905 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 906 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 907 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 908 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 909 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 910 | .psize = 1023, |
| 911 | .digest = "\xb8\xe3\x54\xed\xc5\xfc\xef\xa4" |
| 912 | "\x55\x73\x4a\x81\x99\xe4\x47\x2a" |
| 913 | "\x30\xd6\xc9\x85", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 914 | } |
| 915 | }; |
| 916 | |
| 917 | |
| 918 | /* |
| 919 | * SHA224 test vectors from from FIPS PUB 180-2 |
| 920 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 921 | #define SHA224_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 922 | |
| 923 | static struct hash_testvec sha224_tv_template[] = { |
| 924 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 925 | .plaintext = "", |
| 926 | .psize = 0, |
| 927 | .digest = "\xd1\x4a\x02\x8c\x2a\x3a\x2b\xc9" |
| 928 | "\x47\x61\x02\xbb\x28\x82\x34\xc4" |
| 929 | "\x15\xa2\xb0\x1f\x82\x8e\xa6\x2a" |
| 930 | "\xc5\xb3\xe4\x2f", |
| 931 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 932 | .plaintext = "abc", |
| 933 | .psize = 3, |
| 934 | .digest = "\x23\x09\x7D\x22\x34\x05\xD8\x22" |
| 935 | "\x86\x42\xA4\x77\xBD\xA2\x55\xB3" |
| 936 | "\x2A\xAD\xBC\xE4\xBD\xA0\xB3\xF7" |
| 937 | "\xE3\x6C\x9D\xA7", |
| 938 | }, { |
| 939 | .plaintext = |
| 940 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 941 | .psize = 56, |
| 942 | .digest = "\x75\x38\x8B\x16\x51\x27\x76\xCC" |
| 943 | "\x5D\xBA\x5D\xA1\xFD\x89\x01\x50" |
| 944 | "\xB0\xC6\x45\x5C\xB4\xF5\x8B\x19" |
| 945 | "\x52\x52\x25\x25", |
| 946 | .np = 2, |
| 947 | .tap = { 28, 28 } |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 948 | }, { |
| 949 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 950 | .psize = 64, |
| 951 | .digest = "\xc4\xdb\x2b\x3a\x58\xc3\x99\x01" |
| 952 | "\x42\xfd\x10\x92\xaa\x4e\x04\x08" |
| 953 | "\x58\xbb\xbb\xe8\xf8\x14\xa7\x0c" |
| 954 | "\xef\x3b\xcb\x0e", |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 955 | }, { |
| 956 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 957 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 958 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 959 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 960 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 961 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 962 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 963 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 964 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 965 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 966 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 967 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 968 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 969 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 970 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 971 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 972 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 973 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 974 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 975 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 976 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 977 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 978 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 979 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 980 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 981 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 982 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 983 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 984 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 985 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 986 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 987 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 988 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 989 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 990 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 991 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 992 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 993 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 994 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 995 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 996 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 997 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 998 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 999 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 1000 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 1001 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 1002 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 1003 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 1004 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 1005 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 1006 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 1007 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 1008 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 1009 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 1010 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 1011 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 1012 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 1013 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 1014 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 1015 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 1016 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 1017 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 1018 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 1019 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 1020 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 1021 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 1022 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 1023 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 1024 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 1025 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 1026 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 1027 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 1028 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 1029 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 1030 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 1031 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 1032 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 1033 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 1034 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 1035 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 1036 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 1037 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 1038 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 1039 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 1040 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 1041 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 1042 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 1043 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 1044 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 1045 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 1046 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 1047 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 1048 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 1049 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 1050 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 1051 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 1052 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 1053 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 1054 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 1055 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 1056 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 1057 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 1058 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 1059 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 1060 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 1061 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 1062 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 1063 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 1064 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 1065 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1066 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1067 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1068 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1069 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1070 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1071 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1072 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1073 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1074 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1075 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1076 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1077 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1078 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1079 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1080 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1081 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1082 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1083 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1084 | .psize = 1023, |
| 1085 | .digest = "\x98\x43\x07\x63\x75\xe0\xa7\x1c" |
| 1086 | "\x78\xb1\x8b\xfd\x04\xf5\x2d\x91" |
| 1087 | "\x20\x48\xa4\x28\xff\x55\xb1\xd3" |
| 1088 | "\xe6\xf9\x4f\xcc", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1089 | } |
| 1090 | }; |
| 1091 | |
| 1092 | /* |
| 1093 | * SHA256 test vectors from from NIST |
| 1094 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1095 | #define SHA256_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1096 | |
| 1097 | static struct hash_testvec sha256_tv_template[] = { |
| 1098 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1099 | .plaintext = "", |
| 1100 | .psize = 0, |
| 1101 | .digest = "\xe3\xb0\xc4\x42\x98\xfc\x1c\x14" |
| 1102 | "\x9a\xfb\xf4\xc8\x99\x6f\xb9\x24" |
| 1103 | "\x27\xae\x41\xe4\x64\x9b\x93\x4c" |
| 1104 | "\xa4\x95\x99\x1b\x78\x52\xb8\x55", |
| 1105 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1106 | .plaintext = "abc", |
| 1107 | .psize = 3, |
| 1108 | .digest = "\xba\x78\x16\xbf\x8f\x01\xcf\xea" |
| 1109 | "\x41\x41\x40\xde\x5d\xae\x22\x23" |
| 1110 | "\xb0\x03\x61\xa3\x96\x17\x7a\x9c" |
| 1111 | "\xb4\x10\xff\x61\xf2\x00\x15\xad", |
| 1112 | }, { |
| 1113 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1114 | .psize = 56, |
| 1115 | .digest = "\x24\x8d\x6a\x61\xd2\x06\x38\xb8" |
| 1116 | "\xe5\xc0\x26\x93\x0c\x3e\x60\x39" |
| 1117 | "\xa3\x3c\xe4\x59\x64\xff\x21\x67" |
| 1118 | "\xf6\xec\xed\xd4\x19\xdb\x06\xc1", |
| 1119 | .np = 2, |
| 1120 | .tap = { 28, 28 } |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 1121 | }, { |
| 1122 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1123 | .psize = 64, |
| 1124 | .digest = "\xb5\xfe\xad\x56\x7d\xff\xcb\xa4" |
| 1125 | "\x2c\x32\x29\x32\x19\xbb\xfb\xfa" |
| 1126 | "\xd6\xff\x94\xa3\x72\x91\x85\x66" |
| 1127 | "\x3b\xa7\x87\x77\x58\xa3\x40\x3a", |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1128 | }, { |
| 1129 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 1130 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 1131 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 1132 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 1133 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 1134 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 1135 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 1136 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 1137 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 1138 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 1139 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 1140 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 1141 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 1142 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 1143 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 1144 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 1145 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 1146 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 1147 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 1148 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 1149 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 1150 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 1151 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 1152 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 1153 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 1154 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 1155 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 1156 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 1157 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 1158 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 1159 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 1160 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 1161 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 1162 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 1163 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 1164 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 1165 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 1166 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 1167 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 1168 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 1169 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 1170 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 1171 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 1172 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 1173 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 1174 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 1175 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 1176 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 1177 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 1178 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 1179 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 1180 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 1181 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 1182 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 1183 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 1184 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 1185 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 1186 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 1187 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 1188 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 1189 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 1190 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 1191 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 1192 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 1193 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 1194 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 1195 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 1196 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 1197 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 1198 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 1199 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 1200 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 1201 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 1202 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 1203 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 1204 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 1205 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 1206 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 1207 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 1208 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 1209 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 1210 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 1211 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 1212 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 1213 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 1214 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 1215 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 1216 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 1217 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 1218 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 1219 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 1220 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 1221 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 1222 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 1223 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 1224 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 1225 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 1226 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 1227 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 1228 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 1229 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 1230 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 1231 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 1232 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 1233 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 1234 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 1235 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 1236 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 1237 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 1238 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1239 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1240 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1241 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1242 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1243 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1244 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1245 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1246 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1247 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1248 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1249 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1250 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1251 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1252 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1253 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1254 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1255 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1256 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1257 | .psize = 1023, |
| 1258 | .digest = "\xc5\xce\x0c\xca\x01\x4f\x53\x3a" |
| 1259 | "\x32\x32\x17\xcc\xd4\x6a\x71\xa9" |
| 1260 | "\xf3\xed\x50\x10\x64\x8e\x06\xbe" |
| 1261 | "\x9b\x4a\xa6\xbb\x05\x89\x59\x51", |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 1262 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1263 | }; |
| 1264 | |
| 1265 | /* |
| 1266 | * SHA384 test vectors from from NIST and kerneli |
| 1267 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1268 | #define SHA384_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1269 | |
| 1270 | static struct hash_testvec sha384_tv_template[] = { |
| 1271 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1272 | .plaintext = "", |
| 1273 | .psize = 0, |
| 1274 | .digest = "\x38\xb0\x60\xa7\x51\xac\x96\x38" |
| 1275 | "\x4c\xd9\x32\x7e\xb1\xb1\xe3\x6a" |
| 1276 | "\x21\xfd\xb7\x11\x14\xbe\x07\x43" |
| 1277 | "\x4c\x0c\xc7\xbf\x63\xf6\xe1\xda" |
| 1278 | "\x27\x4e\xde\xbf\xe7\x6f\x65\xfb" |
| 1279 | "\xd5\x1a\xd2\xf1\x48\x98\xb9\x5b", |
| 1280 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1281 | .plaintext= "abc", |
| 1282 | .psize = 3, |
| 1283 | .digest = "\xcb\x00\x75\x3f\x45\xa3\x5e\x8b" |
| 1284 | "\xb5\xa0\x3d\x69\x9a\xc6\x50\x07" |
| 1285 | "\x27\x2c\x32\xab\x0e\xde\xd1\x63" |
| 1286 | "\x1a\x8b\x60\x5a\x43\xff\x5b\xed" |
| 1287 | "\x80\x86\x07\x2b\xa1\xe7\xcc\x23" |
| 1288 | "\x58\xba\xec\xa1\x34\xc8\x25\xa7", |
| 1289 | }, { |
| 1290 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1291 | .psize = 56, |
| 1292 | .digest = "\x33\x91\xfd\xdd\xfc\x8d\xc7\x39" |
| 1293 | "\x37\x07\xa6\x5b\x1b\x47\x09\x39" |
| 1294 | "\x7c\xf8\xb1\xd1\x62\xaf\x05\xab" |
| 1295 | "\xfe\x8f\x45\x0d\xe5\xf3\x6b\xc6" |
| 1296 | "\xb0\x45\x5a\x85\x20\xbc\x4e\x6f" |
| 1297 | "\x5f\xe9\x5b\x1f\xe3\xc8\x45\x2b", |
| 1298 | }, { |
| 1299 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" |
| 1300 | "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", |
| 1301 | .psize = 112, |
| 1302 | .digest = "\x09\x33\x0c\x33\xf7\x11\x47\xe8" |
| 1303 | "\x3d\x19\x2f\xc7\x82\xcd\x1b\x47" |
| 1304 | "\x53\x11\x1b\x17\x3b\x3b\x05\xd2" |
| 1305 | "\x2f\xa0\x80\x86\xe3\xb0\xf7\x12" |
| 1306 | "\xfc\xc7\xc7\x1a\x55\x7e\x2d\xb9" |
| 1307 | "\x66\xc3\xe9\xfa\x91\x74\x60\x39", |
| 1308 | }, { |
| 1309 | .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd" |
| 1310 | "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", |
| 1311 | .psize = 104, |
| 1312 | .digest = "\x3d\x20\x89\x73\xab\x35\x08\xdb" |
| 1313 | "\xbd\x7e\x2c\x28\x62\xba\x29\x0a" |
| 1314 | "\xd3\x01\x0e\x49\x78\xc1\x98\xdc" |
| 1315 | "\x4d\x8f\xd0\x14\xe5\x82\x82\x3a" |
| 1316 | "\x89\xe1\x6f\x9b\x2a\x7b\xbc\x1a" |
| 1317 | "\xc9\x38\xe2\xd1\x99\xe8\xbe\xa4", |
| 1318 | .np = 4, |
| 1319 | .tap = { 26, 26, 26, 26 } |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1320 | }, { |
| 1321 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 1322 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 1323 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 1324 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 1325 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 1326 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 1327 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 1328 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 1329 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 1330 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 1331 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 1332 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 1333 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 1334 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 1335 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 1336 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 1337 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 1338 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 1339 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 1340 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 1341 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 1342 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 1343 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 1344 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 1345 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 1346 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 1347 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 1348 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 1349 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 1350 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 1351 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 1352 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 1353 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 1354 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 1355 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 1356 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 1357 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 1358 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 1359 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 1360 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 1361 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 1362 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 1363 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 1364 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 1365 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 1366 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 1367 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 1368 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 1369 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 1370 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 1371 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 1372 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 1373 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 1374 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 1375 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 1376 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 1377 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 1378 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 1379 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 1380 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 1381 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 1382 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 1383 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 1384 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 1385 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 1386 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 1387 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 1388 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 1389 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 1390 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 1391 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 1392 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 1393 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 1394 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 1395 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 1396 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 1397 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 1398 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 1399 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 1400 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 1401 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 1402 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 1403 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 1404 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 1405 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 1406 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 1407 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 1408 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 1409 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 1410 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 1411 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 1412 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 1413 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 1414 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 1415 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 1416 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 1417 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 1418 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 1419 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 1420 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 1421 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 1422 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 1423 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 1424 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 1425 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 1426 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 1427 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 1428 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 1429 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 1430 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1431 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1432 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1433 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1434 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1435 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1436 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1437 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1438 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1439 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1440 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1441 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1442 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1443 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1444 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1445 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1446 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1447 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1448 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1449 | .psize = 1023, |
| 1450 | .digest = "\x4d\x97\x23\xc8\xea\x7a\x7c\x15" |
| 1451 | "\xb8\xff\x97\x9c\xf5\x13\x4f\x31" |
| 1452 | "\xde\x67\xf7\x24\x73\xcd\x70\x1c" |
| 1453 | "\x03\x4a\xba\x8a\x87\x49\xfe\xdc" |
| 1454 | "\x75\x29\x62\x83\xae\x3f\x17\xab" |
| 1455 | "\xfd\x10\x4d\x8e\x17\x1c\x1f\xca", |
| 1456 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1457 | }; |
| 1458 | |
| 1459 | /* |
| 1460 | * SHA512 test vectors from from NIST and kerneli |
| 1461 | */ |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1462 | #define SHA512_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1463 | |
| 1464 | static struct hash_testvec sha512_tv_template[] = { |
| 1465 | { |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1466 | .plaintext = "", |
| 1467 | .psize = 0, |
| 1468 | .digest = "\xcf\x83\xe1\x35\x7e\xef\xb8\xbd" |
| 1469 | "\xf1\x54\x28\x50\xd6\x6d\x80\x07" |
| 1470 | "\xd6\x20\xe4\x05\x0b\x57\x15\xdc" |
| 1471 | "\x83\xf4\xa9\x21\xd3\x6c\xe9\xce" |
| 1472 | "\x47\xd0\xd1\x3c\x5d\x85\xf2\xb0" |
| 1473 | "\xff\x83\x18\xd2\x87\x7e\xec\x2f" |
| 1474 | "\x63\xb9\x31\xbd\x47\x41\x7a\x81" |
| 1475 | "\xa5\x38\x32\x7a\xf9\x27\xda\x3e", |
| 1476 | }, { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1477 | .plaintext = "abc", |
| 1478 | .psize = 3, |
| 1479 | .digest = "\xdd\xaf\x35\xa1\x93\x61\x7a\xba" |
| 1480 | "\xcc\x41\x73\x49\xae\x20\x41\x31" |
| 1481 | "\x12\xe6\xfa\x4e\x89\xa9\x7e\xa2" |
| 1482 | "\x0a\x9e\xee\xe6\x4b\x55\xd3\x9a" |
| 1483 | "\x21\x92\x99\x2a\x27\x4f\xc1\xa8" |
| 1484 | "\x36\xba\x3c\x23\xa3\xfe\xeb\xbd" |
| 1485 | "\x45\x4d\x44\x23\x64\x3c\xe8\x0e" |
| 1486 | "\x2a\x9a\xc9\x4f\xa5\x4c\xa4\x9f", |
| 1487 | }, { |
| 1488 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 1489 | .psize = 56, |
| 1490 | .digest = "\x20\x4a\x8f\xc6\xdd\xa8\x2f\x0a" |
| 1491 | "\x0c\xed\x7b\xeb\x8e\x08\xa4\x16" |
| 1492 | "\x57\xc1\x6e\xf4\x68\xb2\x28\xa8" |
| 1493 | "\x27\x9b\xe3\x31\xa7\x03\xc3\x35" |
| 1494 | "\x96\xfd\x15\xc1\x3b\x1b\x07\xf9" |
| 1495 | "\xaa\x1d\x3b\xea\x57\x78\x9c\xa0" |
| 1496 | "\x31\xad\x85\xc7\xa7\x1d\xd7\x03" |
| 1497 | "\x54\xec\x63\x12\x38\xca\x34\x45", |
| 1498 | }, { |
| 1499 | .plaintext = "abcdefghbcdefghicdefghijdefghijkefghijklfghijklmghijklmn" |
| 1500 | "hijklmnoijklmnopjklmnopqklmnopqrlmnopqrsmnopqrstnopqrstu", |
| 1501 | .psize = 112, |
| 1502 | .digest = "\x8e\x95\x9b\x75\xda\xe3\x13\xda" |
| 1503 | "\x8c\xf4\xf7\x28\x14\xfc\x14\x3f" |
| 1504 | "\x8f\x77\x79\xc6\xeb\x9f\x7f\xa1" |
| 1505 | "\x72\x99\xae\xad\xb6\x88\x90\x18" |
| 1506 | "\x50\x1d\x28\x9e\x49\x00\xf7\xe4" |
| 1507 | "\x33\x1b\x99\xde\xc4\xb5\x43\x3a" |
| 1508 | "\xc7\xd3\x29\xee\xb6\xdd\x26\x54" |
| 1509 | "\x5e\x96\xe5\x5b\x87\x4b\xe9\x09", |
| 1510 | }, { |
| 1511 | .plaintext = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcd" |
| 1512 | "efghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz", |
| 1513 | .psize = 104, |
| 1514 | .digest = "\x93\x0d\x0c\xef\xcb\x30\xff\x11" |
| 1515 | "\x33\xb6\x89\x81\x21\xf1\xcf\x3d" |
| 1516 | "\x27\x57\x8a\xfc\xaf\xe8\x67\x7c" |
| 1517 | "\x52\x57\xcf\x06\x99\x11\xf7\x5d" |
| 1518 | "\x8f\x58\x31\xb5\x6e\xbf\xda\x67" |
| 1519 | "\xb2\x78\xe6\x6d\xff\x8b\x84\xfe" |
| 1520 | "\x2b\x28\x70\xf7\x42\xa5\x80\xd8" |
| 1521 | "\xed\xb4\x19\x87\x23\x28\x50\xc9", |
| 1522 | .np = 4, |
| 1523 | .tap = { 26, 26, 26, 26 } |
Jussi Kivilinna | 950e4e1 | 2014-04-12 15:35:29 +0300 | [diff] [blame] | 1524 | }, { |
| 1525 | .plaintext = "\x08\x9f\x13\xaa\x41\xd8\x4c\xe3" |
| 1526 | "\x7a\x11\x85\x1c\xb3\x27\xbe\x55" |
| 1527 | "\xec\x60\xf7\x8e\x02\x99\x30\xc7" |
| 1528 | "\x3b\xd2\x69\x00\x74\x0b\xa2\x16" |
| 1529 | "\xad\x44\xdb\x4f\xe6\x7d\x14\x88" |
| 1530 | "\x1f\xb6\x2a\xc1\x58\xef\x63\xfa" |
| 1531 | "\x91\x05\x9c\x33\xca\x3e\xd5\x6c" |
| 1532 | "\x03\x77\x0e\xa5\x19\xb0\x47\xde" |
| 1533 | "\x52\xe9\x80\x17\x8b\x22\xb9\x2d" |
| 1534 | "\xc4\x5b\xf2\x66\xfd\x94\x08\x9f" |
| 1535 | "\x36\xcd\x41\xd8\x6f\x06\x7a\x11" |
| 1536 | "\xa8\x1c\xb3\x4a\xe1\x55\xec\x83" |
| 1537 | "\x1a\x8e\x25\xbc\x30\xc7\x5e\xf5" |
| 1538 | "\x69\x00\x97\x0b\xa2\x39\xd0\x44" |
| 1539 | "\xdb\x72\x09\x7d\x14\xab\x1f\xb6" |
| 1540 | "\x4d\xe4\x58\xef\x86\x1d\x91\x28" |
| 1541 | "\xbf\x33\xca\x61\xf8\x6c\x03\x9a" |
| 1542 | "\x0e\xa5\x3c\xd3\x47\xde\x75\x0c" |
| 1543 | "\x80\x17\xae\x22\xb9\x50\xe7\x5b" |
| 1544 | "\xf2\x89\x20\x94\x2b\xc2\x36\xcd" |
| 1545 | "\x64\xfb\x6f\x06\x9d\x11\xa8\x3f" |
| 1546 | "\xd6\x4a\xe1\x78\x0f\x83\x1a\xb1" |
| 1547 | "\x25\xbc\x53\xea\x5e\xf5\x8c\x00" |
| 1548 | "\x97\x2e\xc5\x39\xd0\x67\xfe\x72" |
| 1549 | "\x09\xa0\x14\xab\x42\xd9\x4d\xe4" |
| 1550 | "\x7b\x12\x86\x1d\xb4\x28\xbf\x56" |
| 1551 | "\xed\x61\xf8\x8f\x03\x9a\x31\xc8" |
| 1552 | "\x3c\xd3\x6a\x01\x75\x0c\xa3\x17" |
| 1553 | "\xae\x45\xdc\x50\xe7\x7e\x15\x89" |
| 1554 | "\x20\xb7\x2b\xc2\x59\xf0\x64\xfb" |
| 1555 | "\x92\x06\x9d\x34\xcb\x3f\xd6\x6d" |
| 1556 | "\x04\x78\x0f\xa6\x1a\xb1\x48\xdf" |
| 1557 | "\x53\xea\x81\x18\x8c\x23\xba\x2e" |
| 1558 | "\xc5\x5c\xf3\x67\xfe\x95\x09\xa0" |
| 1559 | "\x37\xce\x42\xd9\x70\x07\x7b\x12" |
| 1560 | "\xa9\x1d\xb4\x4b\xe2\x56\xed\x84" |
| 1561 | "\x1b\x8f\x26\xbd\x31\xc8\x5f\xf6" |
| 1562 | "\x6a\x01\x98\x0c\xa3\x3a\xd1\x45" |
| 1563 | "\xdc\x73\x0a\x7e\x15\xac\x20\xb7" |
| 1564 | "\x4e\xe5\x59\xf0\x87\x1e\x92\x29" |
| 1565 | "\xc0\x34\xcb\x62\xf9\x6d\x04\x9b" |
| 1566 | "\x0f\xa6\x3d\xd4\x48\xdf\x76\x0d" |
| 1567 | "\x81\x18\xaf\x23\xba\x51\xe8\x5c" |
| 1568 | "\xf3\x8a\x21\x95\x2c\xc3\x37\xce" |
| 1569 | "\x65\xfc\x70\x07\x9e\x12\xa9\x40" |
| 1570 | "\xd7\x4b\xe2\x79\x10\x84\x1b\xb2" |
| 1571 | "\x26\xbd\x54\xeb\x5f\xf6\x8d\x01" |
| 1572 | "\x98\x2f\xc6\x3a\xd1\x68\xff\x73" |
| 1573 | "\x0a\xa1\x15\xac\x43\xda\x4e\xe5" |
| 1574 | "\x7c\x13\x87\x1e\xb5\x29\xc0\x57" |
| 1575 | "\xee\x62\xf9\x90\x04\x9b\x32\xc9" |
| 1576 | "\x3d\xd4\x6b\x02\x76\x0d\xa4\x18" |
| 1577 | "\xaf\x46\xdd\x51\xe8\x7f\x16\x8a" |
| 1578 | "\x21\xb8\x2c\xc3\x5a\xf1\x65\xfc" |
| 1579 | "\x93\x07\x9e\x35\xcc\x40\xd7\x6e" |
| 1580 | "\x05\x79\x10\xa7\x1b\xb2\x49\xe0" |
| 1581 | "\x54\xeb\x82\x19\x8d\x24\xbb\x2f" |
| 1582 | "\xc6\x5d\xf4\x68\xff\x96\x0a\xa1" |
| 1583 | "\x38\xcf\x43\xda\x71\x08\x7c\x13" |
| 1584 | "\xaa\x1e\xb5\x4c\xe3\x57\xee\x85" |
| 1585 | "\x1c\x90\x27\xbe\x32\xc9\x60\xf7" |
| 1586 | "\x6b\x02\x99\x0d\xa4\x3b\xd2\x46" |
| 1587 | "\xdd\x74\x0b\x7f\x16\xad\x21\xb8" |
| 1588 | "\x4f\xe6\x5a\xf1\x88\x1f\x93\x2a" |
| 1589 | "\xc1\x35\xcc\x63\xfa\x6e\x05\x9c" |
| 1590 | "\x10\xa7\x3e\xd5\x49\xe0\x77\x0e" |
| 1591 | "\x82\x19\xb0\x24\xbb\x52\xe9\x5d" |
| 1592 | "\xf4\x8b\x22\x96\x2d\xc4\x38\xcf" |
| 1593 | "\x66\xfd\x71\x08\x9f\x13\xaa\x41" |
| 1594 | "\xd8\x4c\xe3\x7a\x11\x85\x1c\xb3" |
| 1595 | "\x27\xbe\x55\xec\x60\xf7\x8e\x02" |
| 1596 | "\x99\x30\xc7\x3b\xd2\x69\x00\x74" |
| 1597 | "\x0b\xa2\x16\xad\x44\xdb\x4f\xe6" |
| 1598 | "\x7d\x14\x88\x1f\xb6\x2a\xc1\x58" |
| 1599 | "\xef\x63\xfa\x91\x05\x9c\x33\xca" |
| 1600 | "\x3e\xd5\x6c\x03\x77\x0e\xa5\x19" |
| 1601 | "\xb0\x47\xde\x52\xe9\x80\x17\x8b" |
| 1602 | "\x22\xb9\x2d\xc4\x5b\xf2\x66\xfd" |
| 1603 | "\x94\x08\x9f\x36\xcd\x41\xd8\x6f" |
| 1604 | "\x06\x7a\x11\xa8\x1c\xb3\x4a\xe1" |
| 1605 | "\x55\xec\x83\x1a\x8e\x25\xbc\x30" |
| 1606 | "\xc7\x5e\xf5\x69\x00\x97\x0b\xa2" |
| 1607 | "\x39\xd0\x44\xdb\x72\x09\x7d\x14" |
| 1608 | "\xab\x1f\xb6\x4d\xe4\x58\xef\x86" |
| 1609 | "\x1d\x91\x28\xbf\x33\xca\x61\xf8" |
| 1610 | "\x6c\x03\x9a\x0e\xa5\x3c\xd3\x47" |
| 1611 | "\xde\x75\x0c\x80\x17\xae\x22\xb9" |
| 1612 | "\x50\xe7\x5b\xf2\x89\x20\x94\x2b" |
| 1613 | "\xc2\x36\xcd\x64\xfb\x6f\x06\x9d" |
| 1614 | "\x11\xa8\x3f\xd6\x4a\xe1\x78\x0f" |
| 1615 | "\x83\x1a\xb1\x25\xbc\x53\xea\x5e" |
| 1616 | "\xf5\x8c\x00\x97\x2e\xc5\x39\xd0" |
| 1617 | "\x67\xfe\x72\x09\xa0\x14\xab\x42" |
| 1618 | "\xd9\x4d\xe4\x7b\x12\x86\x1d\xb4" |
| 1619 | "\x28\xbf\x56\xed\x61\xf8\x8f\x03" |
| 1620 | "\x9a\x31\xc8\x3c\xd3\x6a\x01\x75" |
| 1621 | "\x0c\xa3\x17\xae\x45\xdc\x50\xe7" |
| 1622 | "\x7e\x15\x89\x20\xb7\x2b\xc2\x59" |
| 1623 | "\xf0\x64\xfb\x92\x06\x9d\x34\xcb" |
| 1624 | "\x3f\xd6\x6d\x04\x78\x0f\xa6\x1a" |
| 1625 | "\xb1\x48\xdf\x53\xea\x81\x18\x8c" |
| 1626 | "\x23\xba\x2e\xc5\x5c\xf3\x67\xfe" |
| 1627 | "\x95\x09\xa0\x37\xce\x42\xd9\x70" |
| 1628 | "\x07\x7b\x12\xa9\x1d\xb4\x4b\xe2" |
| 1629 | "\x56\xed\x84\x1b\x8f\x26\xbd\x31" |
| 1630 | "\xc8\x5f\xf6\x6a\x01\x98\x0c\xa3" |
| 1631 | "\x3a\xd1\x45\xdc\x73\x0a\x7e\x15" |
| 1632 | "\xac\x20\xb7\x4e\xe5\x59\xf0\x87" |
| 1633 | "\x1e\x92\x29\xc0\x34\xcb\x62\xf9" |
| 1634 | "\x6d\x04\x9b\x0f\xa6\x3d\xd4\x48" |
| 1635 | "\xdf\x76\x0d\x81\x18\xaf\x23\xba" |
| 1636 | "\x51\xe8\x5c\xf3\x8a\x21\x95\x2c" |
| 1637 | "\xc3\x37\xce\x65\xfc\x70\x07\x9e" |
| 1638 | "\x12\xa9\x40\xd7\x4b\xe2\x79\x10" |
| 1639 | "\x84\x1b\xb2\x26\xbd\x54\xeb\x5f" |
| 1640 | "\xf6\x8d\x01\x98\x2f\xc6\x3a\xd1" |
| 1641 | "\x68\xff\x73\x0a\xa1\x15\xac\x43" |
| 1642 | "\xda\x4e\xe5\x7c\x13\x87\x1e\xb5" |
| 1643 | "\x29\xc0\x57\xee\x62\xf9\x90\x04" |
| 1644 | "\x9b\x32\xc9\x3d\xd4\x6b\x02\x76" |
| 1645 | "\x0d\xa4\x18\xaf\x46\xdd\x51\xe8" |
| 1646 | "\x7f\x16\x8a\x21\xb8\x2c\xc3\x5a" |
| 1647 | "\xf1\x65\xfc\x93\x07\x9e\x35\xcc" |
| 1648 | "\x40\xd7\x6e\x05\x79\x10\xa7\x1b" |
| 1649 | "\xb2\x49\xe0\x54\xeb\x82\x19\x8d" |
| 1650 | "\x24\xbb\x2f\xc6\x5d\xf4\x68\xff" |
| 1651 | "\x96\x0a\xa1\x38\xcf\x43\xda\x71" |
| 1652 | "\x08\x7c\x13\xaa\x1e\xb5\x4c", |
| 1653 | .psize = 1023, |
| 1654 | .digest = "\x76\xc9\xd4\x91\x7a\x5f\x0f\xaa" |
| 1655 | "\x13\x39\xf3\x01\x7a\xfa\xe5\x41" |
| 1656 | "\x5f\x0b\xf8\xeb\x32\xfc\xbf\xb0" |
| 1657 | "\xfa\x8c\xcd\x17\x83\xe2\xfa\xeb" |
| 1658 | "\x1c\x19\xde\xe2\x75\xdc\x34\x64" |
| 1659 | "\x5f\x35\x9c\x61\x2f\x10\xf9\xec" |
| 1660 | "\x59\xca\x9d\xcc\x25\x0c\x43\xba" |
| 1661 | "\x85\xa8\xf8\xfe\xb5\x24\xb2\xee", |
| 1662 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 1663 | }; |
| 1664 | |
| 1665 | |
| 1666 | /* |
| 1667 | * WHIRLPOOL test vectors from Whirlpool package |
| 1668 | * by Vincent Rijmen and Paulo S. L. M. Barreto as part of the NESSIE |
| 1669 | * submission |
| 1670 | */ |
| 1671 | #define WP512_TEST_VECTORS 8 |
| 1672 | |
| 1673 | static struct hash_testvec wp512_tv_template[] = { |
| 1674 | { |
| 1675 | .plaintext = "", |
| 1676 | .psize = 0, |
| 1677 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 1678 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 1679 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 1680 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7" |
| 1681 | "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB" |
| 1682 | "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57" |
| 1683 | "\xEA\x89\x64\xE5\x9B\x63\xD9\x37" |
| 1684 | "\x08\xB1\x38\xCC\x42\xA6\x6E\xB3", |
| 1685 | |
| 1686 | |
| 1687 | }, { |
| 1688 | .plaintext = "a", |
| 1689 | .psize = 1, |
| 1690 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 1691 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 1692 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 1693 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42" |
| 1694 | "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6" |
| 1695 | "\x3A\x42\x39\x1A\x39\x14\x5A\x59" |
| 1696 | "\x1A\x92\x20\x0D\x56\x01\x95\xE5" |
| 1697 | "\x3B\x47\x85\x84\xFD\xAE\x23\x1A", |
| 1698 | }, { |
| 1699 | .plaintext = "abc", |
| 1700 | .psize = 3, |
| 1701 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 1702 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 1703 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 1704 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C" |
| 1705 | "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27" |
| 1706 | "\x7D\x0E\x34\x95\x71\x14\xCB\xD6" |
| 1707 | "\xC7\x97\xFC\x9D\x95\xD8\xB5\x82" |
| 1708 | "\xD2\x25\x29\x20\x76\xD4\xEE\xF5", |
| 1709 | }, { |
| 1710 | .plaintext = "message digest", |
| 1711 | .psize = 14, |
| 1712 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 1713 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 1714 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 1715 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B" |
| 1716 | "\x84\x21\x55\x76\x59\xEF\x55\xC1" |
| 1717 | "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6" |
| 1718 | "\x92\xED\x92\x00\x52\x83\x8F\x33" |
| 1719 | "\x62\xE8\x6D\xBD\x37\xA8\x90\x3E", |
| 1720 | }, { |
| 1721 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1722 | .psize = 26, |
| 1723 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 1724 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 1725 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 1726 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B" |
| 1727 | "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A" |
| 1728 | "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6" |
| 1729 | "\xF6\x8F\x67\x3E\x72\x07\x86\x5D" |
| 1730 | "\x5D\x98\x19\xA3\xDB\xA4\xEB\x3B", |
| 1731 | }, { |
| 1732 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 1733 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 1734 | .psize = 62, |
| 1735 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 1736 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 1737 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 1738 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E" |
| 1739 | "\x08\xEB\xA2\x66\x29\x12\x9D\x8F" |
| 1740 | "\xB7\xCB\x57\x21\x1B\x92\x81\xA6" |
| 1741 | "\x55\x17\xCC\x87\x9D\x7B\x96\x21" |
| 1742 | "\x42\xC6\x5F\x5A\x7A\xF0\x14\x67", |
| 1743 | }, { |
| 1744 | .plaintext = "1234567890123456789012345678901234567890" |
| 1745 | "1234567890123456789012345678901234567890", |
| 1746 | .psize = 80, |
| 1747 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 1748 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 1749 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 1750 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29" |
| 1751 | "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5" |
| 1752 | "\x38\xCD\x04\x7B\x26\x81\xA5\x1A" |
| 1753 | "\x2C\x60\x48\x1E\x88\xC5\xA2\x0B" |
| 1754 | "\x2C\x2A\x80\xCF\x3A\x9A\x08\x3B", |
| 1755 | }, { |
| 1756 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 1757 | .psize = 32, |
| 1758 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 1759 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 1760 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 1761 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69" |
| 1762 | "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B" |
| 1763 | "\x7B\x94\x76\x39\xFE\x05\x0B\x56" |
| 1764 | "\x93\x9B\xAA\xA0\xAD\xFF\x9A\xE6" |
| 1765 | "\x74\x5B\x7B\x18\x1C\x3B\xE3\xFD", |
| 1766 | }, |
| 1767 | }; |
| 1768 | |
| 1769 | #define WP384_TEST_VECTORS 8 |
| 1770 | |
| 1771 | static struct hash_testvec wp384_tv_template[] = { |
| 1772 | { |
| 1773 | .plaintext = "", |
| 1774 | .psize = 0, |
| 1775 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 1776 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 1777 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 1778 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7" |
| 1779 | "\x3E\x83\xBE\x69\x8B\x28\x8F\xEB" |
| 1780 | "\xCF\x88\xE3\xE0\x3C\x4F\x07\x57", |
| 1781 | |
| 1782 | |
| 1783 | }, { |
| 1784 | .plaintext = "a", |
| 1785 | .psize = 1, |
| 1786 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 1787 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 1788 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 1789 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42" |
| 1790 | "\xD1\x1B\xC6\x45\x41\x3A\xEF\xF6" |
| 1791 | "\x3A\x42\x39\x1A\x39\x14\x5A\x59", |
| 1792 | }, { |
| 1793 | .plaintext = "abc", |
| 1794 | .psize = 3, |
| 1795 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 1796 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 1797 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 1798 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C" |
| 1799 | "\x71\x81\xEE\xBD\xB6\xC5\x7E\x27" |
| 1800 | "\x7D\x0E\x34\x95\x71\x14\xCB\xD6", |
| 1801 | }, { |
| 1802 | .plaintext = "message digest", |
| 1803 | .psize = 14, |
| 1804 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 1805 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 1806 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 1807 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B" |
| 1808 | "\x84\x21\x55\x76\x59\xEF\x55\xC1" |
| 1809 | "\x06\xB4\xB5\x2A\xC5\xA4\xAA\xA6", |
| 1810 | }, { |
| 1811 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1812 | .psize = 26, |
| 1813 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 1814 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 1815 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 1816 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B" |
| 1817 | "\x08\xBF\x2A\x92\x51\xC3\x0B\x6A" |
| 1818 | "\x0B\x8A\xAE\x86\x17\x7A\xB4\xA6", |
| 1819 | }, { |
| 1820 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 1821 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 1822 | .psize = 62, |
| 1823 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 1824 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 1825 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 1826 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E" |
| 1827 | "\x08\xEB\xA2\x66\x29\x12\x9D\x8F" |
| 1828 | "\xB7\xCB\x57\x21\x1B\x92\x81\xA6", |
| 1829 | }, { |
| 1830 | .plaintext = "1234567890123456789012345678901234567890" |
| 1831 | "1234567890123456789012345678901234567890", |
| 1832 | .psize = 80, |
| 1833 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 1834 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 1835 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 1836 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29" |
| 1837 | "\x4D\x5B\xD8\xDF\x2A\x6C\x44\xE5" |
| 1838 | "\x38\xCD\x04\x7B\x26\x81\xA5\x1A", |
| 1839 | }, { |
| 1840 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 1841 | .psize = 32, |
| 1842 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 1843 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 1844 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 1845 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69" |
| 1846 | "\x16\xBD\xC8\x03\x1B\xC5\xBE\x1B" |
| 1847 | "\x7B\x94\x76\x39\xFE\x05\x0B\x56", |
| 1848 | }, |
| 1849 | }; |
| 1850 | |
| 1851 | #define WP256_TEST_VECTORS 8 |
| 1852 | |
| 1853 | static struct hash_testvec wp256_tv_template[] = { |
| 1854 | { |
| 1855 | .plaintext = "", |
| 1856 | .psize = 0, |
| 1857 | .digest = "\x19\xFA\x61\xD7\x55\x22\xA4\x66" |
| 1858 | "\x9B\x44\xE3\x9C\x1D\x2E\x17\x26" |
| 1859 | "\xC5\x30\x23\x21\x30\xD4\x07\xF8" |
| 1860 | "\x9A\xFE\xE0\x96\x49\x97\xF7\xA7", |
| 1861 | |
| 1862 | |
| 1863 | }, { |
| 1864 | .plaintext = "a", |
| 1865 | .psize = 1, |
| 1866 | .digest = "\x8A\xCA\x26\x02\x79\x2A\xEC\x6F" |
| 1867 | "\x11\xA6\x72\x06\x53\x1F\xB7\xD7" |
| 1868 | "\xF0\xDF\xF5\x94\x13\x14\x5E\x69" |
| 1869 | "\x73\xC4\x50\x01\xD0\x08\x7B\x42", |
| 1870 | }, { |
| 1871 | .plaintext = "abc", |
| 1872 | .psize = 3, |
| 1873 | .digest = "\x4E\x24\x48\xA4\xC6\xF4\x86\xBB" |
| 1874 | "\x16\xB6\x56\x2C\x73\xB4\x02\x0B" |
| 1875 | "\xF3\x04\x3E\x3A\x73\x1B\xCE\x72" |
| 1876 | "\x1A\xE1\xB3\x03\xD9\x7E\x6D\x4C", |
| 1877 | }, { |
| 1878 | .plaintext = "message digest", |
| 1879 | .psize = 14, |
| 1880 | .digest = "\x37\x8C\x84\xA4\x12\x6E\x2D\xC6" |
| 1881 | "\xE5\x6D\xCC\x74\x58\x37\x7A\xAC" |
| 1882 | "\x83\x8D\x00\x03\x22\x30\xF5\x3C" |
| 1883 | "\xE1\xF5\x70\x0C\x0F\xFB\x4D\x3B", |
| 1884 | }, { |
| 1885 | .plaintext = "abcdefghijklmnopqrstuvwxyz", |
| 1886 | .psize = 26, |
| 1887 | .digest = "\xF1\xD7\x54\x66\x26\x36\xFF\xE9" |
| 1888 | "\x2C\x82\xEB\xB9\x21\x2A\x48\x4A" |
| 1889 | "\x8D\x38\x63\x1E\xAD\x42\x38\xF5" |
| 1890 | "\x44\x2E\xE1\x3B\x80\x54\xE4\x1B", |
| 1891 | }, { |
| 1892 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" |
| 1893 | "abcdefghijklmnopqrstuvwxyz0123456789", |
| 1894 | .psize = 62, |
| 1895 | .digest = "\xDC\x37\xE0\x08\xCF\x9E\xE6\x9B" |
| 1896 | "\xF1\x1F\x00\xED\x9A\xBA\x26\x90" |
| 1897 | "\x1D\xD7\xC2\x8C\xDE\xC0\x66\xCC" |
| 1898 | "\x6A\xF4\x2E\x40\xF8\x2F\x3A\x1E", |
| 1899 | }, { |
| 1900 | .plaintext = "1234567890123456789012345678901234567890" |
| 1901 | "1234567890123456789012345678901234567890", |
| 1902 | .psize = 80, |
| 1903 | .digest = "\x46\x6E\xF1\x8B\xAB\xB0\x15\x4D" |
| 1904 | "\x25\xB9\xD3\x8A\x64\x14\xF5\xC0" |
| 1905 | "\x87\x84\x37\x2B\xCC\xB2\x04\xD6" |
| 1906 | "\x54\x9C\x4A\xFA\xDB\x60\x14\x29", |
| 1907 | }, { |
| 1908 | .plaintext = "abcdbcdecdefdefgefghfghighijhijk", |
| 1909 | .psize = 32, |
| 1910 | .digest = "\x2A\x98\x7E\xA4\x0F\x91\x70\x61" |
| 1911 | "\xF5\xD6\xF0\xA0\xE4\x64\x4F\x48" |
| 1912 | "\x8A\x7A\x5A\x52\xDE\xEE\x65\x62" |
| 1913 | "\x07\xC5\x62\xF9\x88\xE9\x5C\x69", |
| 1914 | }, |
| 1915 | }; |
| 1916 | |
| 1917 | /* |
| 1918 | * TIGER test vectors from Tiger website |
| 1919 | */ |
| 1920 | #define TGR192_TEST_VECTORS 6 |
| 1921 | |
| 1922 | static struct hash_testvec tgr192_tv_template[] = { |
| 1923 | { |
| 1924 | .plaintext = "", |
| 1925 | .psize = 0, |
| 1926 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 1927 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f" |
| 1928 | "\xf3\x73\xde\x2d\x49\x58\x4e\x7a", |
| 1929 | }, { |
| 1930 | .plaintext = "abc", |
| 1931 | .psize = 3, |
| 1932 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 1933 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf" |
| 1934 | "\x93\x5f\x7b\x95\x1c\x13\x29\x51", |
| 1935 | }, { |
| 1936 | .plaintext = "Tiger", |
| 1937 | .psize = 5, |
| 1938 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 1939 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec" |
| 1940 | "\x37\x79\x0c\x11\x6f\x9d\x2b\xdf", |
| 1941 | }, { |
| 1942 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1943 | .psize = 64, |
| 1944 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 1945 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e" |
| 1946 | "\xb5\x86\x44\x50\x34\xa5\xa3\x86", |
| 1947 | }, { |
| 1948 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 1949 | .psize = 64, |
| 1950 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 1951 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9" |
| 1952 | "\x57\x89\x65\x65\x97\x5f\x91\x97", |
| 1953 | }, { |
| 1954 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 1955 | "by Ross Anderson and Eli Biham, " |
| 1956 | "proceedings of Fast Software Encryption 3, " |
| 1957 | "Cambridge, 1996.", |
| 1958 | .psize = 125, |
| 1959 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 1960 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24" |
| 1961 | "\xdd\x68\x15\x1d\x50\x39\x74\xfc", |
| 1962 | }, |
| 1963 | }; |
| 1964 | |
| 1965 | #define TGR160_TEST_VECTORS 6 |
| 1966 | |
| 1967 | static struct hash_testvec tgr160_tv_template[] = { |
| 1968 | { |
| 1969 | .plaintext = "", |
| 1970 | .psize = 0, |
| 1971 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 1972 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f" |
| 1973 | "\xf3\x73\xde\x2d", |
| 1974 | }, { |
| 1975 | .plaintext = "abc", |
| 1976 | .psize = 3, |
| 1977 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 1978 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf" |
| 1979 | "\x93\x5f\x7b\x95", |
| 1980 | }, { |
| 1981 | .plaintext = "Tiger", |
| 1982 | .psize = 5, |
| 1983 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 1984 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec" |
| 1985 | "\x37\x79\x0c\x11", |
| 1986 | }, { |
| 1987 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 1988 | .psize = 64, |
| 1989 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 1990 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e" |
| 1991 | "\xb5\x86\x44\x50", |
| 1992 | }, { |
| 1993 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 1994 | .psize = 64, |
| 1995 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 1996 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9" |
| 1997 | "\x57\x89\x65\x65", |
| 1998 | }, { |
| 1999 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 2000 | "by Ross Anderson and Eli Biham, " |
| 2001 | "proceedings of Fast Software Encryption 3, " |
| 2002 | "Cambridge, 1996.", |
| 2003 | .psize = 125, |
| 2004 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 2005 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24" |
| 2006 | "\xdd\x68\x15\x1d", |
| 2007 | }, |
| 2008 | }; |
| 2009 | |
| 2010 | #define TGR128_TEST_VECTORS 6 |
| 2011 | |
| 2012 | static struct hash_testvec tgr128_tv_template[] = { |
| 2013 | { |
| 2014 | .plaintext = "", |
| 2015 | .psize = 0, |
| 2016 | .digest = "\x24\xf0\x13\x0c\x63\xac\x93\x32" |
| 2017 | "\x16\x16\x6e\x76\xb1\xbb\x92\x5f", |
| 2018 | }, { |
| 2019 | .plaintext = "abc", |
| 2020 | .psize = 3, |
| 2021 | .digest = "\xf2\x58\xc1\xe8\x84\x14\xab\x2a" |
| 2022 | "\x52\x7a\xb5\x41\xff\xc5\xb8\xbf", |
| 2023 | }, { |
| 2024 | .plaintext = "Tiger", |
| 2025 | .psize = 5, |
| 2026 | .digest = "\x9f\x00\xf5\x99\x07\x23\x00\xdd" |
| 2027 | "\x27\x6a\xbb\x38\xc8\xeb\x6d\xec", |
| 2028 | }, { |
| 2029 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-", |
| 2030 | .psize = 64, |
| 2031 | .digest = "\x87\xfb\x2a\x90\x83\x85\x1c\xf7" |
| 2032 | "\x47\x0d\x2c\xf8\x10\xe6\xdf\x9e", |
| 2033 | }, { |
| 2034 | .plaintext = "ABCDEFGHIJKLMNOPQRSTUVWXYZ=abcdefghijklmnopqrstuvwxyz+0123456789", |
| 2035 | .psize = 64, |
| 2036 | .digest = "\x46\x7d\xb8\x08\x63\xeb\xce\x48" |
| 2037 | "\x8d\xf1\xcd\x12\x61\x65\x5d\xe9", |
| 2038 | }, { |
| 2039 | .plaintext = "Tiger - A Fast New Hash Function, " |
| 2040 | "by Ross Anderson and Eli Biham, " |
| 2041 | "proceedings of Fast Software Encryption 3, " |
| 2042 | "Cambridge, 1996.", |
| 2043 | .psize = 125, |
| 2044 | .digest = "\x3d\x9a\xeb\x03\xd1\xbd\x1a\x63" |
| 2045 | "\x57\xb2\x77\x4d\xfd\x6d\x5b\x24", |
| 2046 | }, |
| 2047 | }; |
| 2048 | |
Harald Freudenberger | 445a8e0 | 2015-05-21 17:34:31 +0200 | [diff] [blame] | 2049 | #define GHASH_TEST_VECTORS 6 |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 2050 | |
| 2051 | static struct hash_testvec ghash_tv_template[] = |
| 2052 | { |
| 2053 | { |
Ard Biesheuvel | 6c9e3dc | 2014-06-12 17:01:50 +0200 | [diff] [blame] | 2054 | .key = "\xdf\xa6\xbf\x4d\xed\x81\xdb\x03" |
| 2055 | "\xff\xca\xff\x95\xf8\x30\xf0\x61", |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 2056 | .ksize = 16, |
Ard Biesheuvel | 6c9e3dc | 2014-06-12 17:01:50 +0200 | [diff] [blame] | 2057 | .plaintext = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0" |
| 2058 | "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6", |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 2059 | .psize = 16, |
| 2060 | .digest = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6" |
| 2061 | "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60", |
Ard Biesheuvel | 6c9e3dc | 2014-06-12 17:01:50 +0200 | [diff] [blame] | 2062 | }, { |
| 2063 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2064 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2065 | .ksize = 16, |
| 2066 | .plaintext = "what do ya want for nothing?", |
| 2067 | .psize = 28, |
| 2068 | .digest = "\x3e\x1f\x5c\x4d\x65\xf0\xef\xce" |
| 2069 | "\x0d\x61\x06\x27\x66\x51\xd5\xe2", |
| 2070 | .np = 2, |
| 2071 | .tap = {14, 14} |
| 2072 | }, { |
| 2073 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2074 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2075 | .ksize = 16, |
| 2076 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2077 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2078 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2079 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2080 | .psize = 50, |
| 2081 | .digest = "\xfb\x49\x8a\x36\xe1\x96\xe1\x96" |
| 2082 | "\xe1\x96\xe1\x96\xe1\x96\xe1\x96", |
| 2083 | }, { |
| 2084 | .key = "\xda\x53\xeb\x0a\xd2\xc5\x5b\xb6" |
| 2085 | "\x4f\xc4\x80\x2c\xc3\xfe\xda\x60", |
| 2086 | .ksize = 16, |
| 2087 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2088 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2089 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2090 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2091 | .psize = 50, |
| 2092 | .digest = "\x2b\x5c\x0c\x7f\x52\xd1\x60\xc2" |
| 2093 | "\x49\xed\x6e\x32\x7a\xa9\xbe\x08", |
| 2094 | }, { |
| 2095 | .key = "\x95\x2b\x2a\x56\xa5\x60\x04a\xc0" |
| 2096 | "\xb3\x2b\x66\x56\xa0\x5b\x40\xb6", |
| 2097 | .ksize = 16, |
| 2098 | .plaintext = "Test With Truncation", |
| 2099 | .psize = 20, |
| 2100 | .digest = "\xf8\x94\x87\x2a\x4b\x63\x99\x28" |
| 2101 | "\x23\xf7\x93\xf7\x19\xf5\x96\xd9", |
Harald Freudenberger | 445a8e0 | 2015-05-21 17:34:31 +0200 | [diff] [blame] | 2102 | }, { |
| 2103 | .key = "\x0a\x1b\x2c\x3d\x4e\x5f\x64\x71" |
| 2104 | "\x82\x93\xa4\xb5\xc6\xd7\xe8\xf9", |
| 2105 | .ksize = 16, |
| 2106 | .plaintext = "\x56\x6f\x72\x20\x6c\x61\x75\x74" |
| 2107 | "\x65\x72\x20\x4c\x61\x75\x73\x63" |
| 2108 | "\x68\x65\x6e\x20\x75\x6e\x64\x20" |
| 2109 | "\x53\x74\x61\x75\x6e\x65\x6e\x20" |
| 2110 | "\x73\x65\x69\x20\x73\x74\x69\x6c" |
| 2111 | "\x6c\x2c\x0a\x64\x75\x20\x6d\x65" |
| 2112 | "\x69\x6e\x20\x74\x69\x65\x66\x74" |
| 2113 | "\x69\x65\x66\x65\x73\x20\x4c\x65" |
| 2114 | "\x62\x65\x6e\x3b\x0a\x64\x61\x73" |
| 2115 | "\x73\x20\x64\x75\x20\x77\x65\x69" |
| 2116 | "\xc3\x9f\x74\x20\x77\x61\x73\x20" |
| 2117 | "\x64\x65\x72\x20\x57\x69\x6e\x64" |
| 2118 | "\x20\x64\x69\x72\x20\x77\x69\x6c" |
| 2119 | "\x6c\x2c\x0a\x65\x68\x20\x6e\x6f" |
| 2120 | "\x63\x68\x20\x64\x69\x65\x20\x42" |
| 2121 | "\x69\x72\x6b\x65\x6e\x20\x62\x65" |
| 2122 | "\x62\x65\x6e\x2e\x0a\x0a\x55\x6e" |
| 2123 | "\x64\x20\x77\x65\x6e\x6e\x20\x64" |
| 2124 | "\x69\x72\x20\x65\x69\x6e\x6d\x61" |
| 2125 | "\x6c\x20\x64\x61\x73\x20\x53\x63" |
| 2126 | "\x68\x77\x65\x69\x67\x65\x6e\x20" |
| 2127 | "\x73\x70\x72\x61\x63\x68\x2c\x0a" |
| 2128 | "\x6c\x61\x73\x73\x20\x64\x65\x69" |
| 2129 | "\x6e\x65\x20\x53\x69\x6e\x6e\x65" |
| 2130 | "\x20\x62\x65\x73\x69\x65\x67\x65" |
| 2131 | "\x6e\x2e\x0a\x4a\x65\x64\x65\x6d" |
| 2132 | "\x20\x48\x61\x75\x63\x68\x65\x20" |
| 2133 | "\x67\x69\x62\x74\x20\x64\x69\x63" |
| 2134 | "\x68\x2c\x20\x67\x69\x62\x20\x6e" |
| 2135 | "\x61\x63\x68\x2c\x0a\x65\x72\x20" |
| 2136 | "\x77\x69\x72\x64\x20\x64\x69\x63" |
| 2137 | "\x68\x20\x6c\x69\x65\x62\x65\x6e" |
| 2138 | "\x20\x75\x6e\x64\x20\x77\x69\x65" |
| 2139 | "\x67\x65\x6e\x2e\x0a\x0a\x55\x6e" |
| 2140 | "\x64\x20\x64\x61\x6e\x6e\x20\x6d" |
| 2141 | "\x65\x69\x6e\x65\x20\x53\x65\x65" |
| 2142 | "\x6c\x65\x20\x73\x65\x69\x74\x20" |
| 2143 | "\x77\x65\x69\x74\x2c\x20\x73\x65" |
| 2144 | "\x69\x20\x77\x65\x69\x74\x2c\x0a" |
| 2145 | "\x64\x61\x73\x73\x20\x64\x69\x72" |
| 2146 | "\x20\x64\x61\x73\x20\x4c\x65\x62" |
| 2147 | "\x65\x6e\x20\x67\x65\x6c\x69\x6e" |
| 2148 | "\x67\x65\x2c\x0a\x62\x72\x65\x69" |
| 2149 | "\x74\x65\x20\x64\x69\x63\x68\x20" |
| 2150 | "\x77\x69\x65\x20\x65\x69\x6e\x20" |
| 2151 | "\x46\x65\x69\x65\x72\x6b\x6c\x65" |
| 2152 | "\x69\x64\x0a\xc3\xbc\x62\x65\x72" |
| 2153 | "\x20\x64\x69\x65\x20\x73\x69\x6e" |
| 2154 | "\x6e\x65\x6e\x64\x65\x6e\x20\x44" |
| 2155 | "\x69\x6e\x67\x65\x2e\x2e\x2e\x0a", |
| 2156 | .psize = 400, |
| 2157 | .digest = "\xad\xb1\xc1\xe9\x56\x70\x31\x1d" |
| 2158 | "\xbb\x5b\xdf\x5e\x70\x72\x1a\x57", |
Youquan, Song | 507069c | 2009-11-23 20:23:04 +0800 | [diff] [blame] | 2159 | }, |
| 2160 | }; |
| 2161 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2162 | /* |
| 2163 | * HMAC-MD5 test vectors from RFC2202 |
| 2164 | * (These need to be fixed to not use strlen). |
| 2165 | */ |
| 2166 | #define HMAC_MD5_TEST_VECTORS 7 |
| 2167 | |
| 2168 | static struct hash_testvec hmac_md5_tv_template[] = |
| 2169 | { |
| 2170 | { |
| 2171 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2172 | .ksize = 16, |
| 2173 | .plaintext = "Hi There", |
| 2174 | .psize = 8, |
| 2175 | .digest = "\x92\x94\x72\x7a\x36\x38\xbb\x1c" |
| 2176 | "\x13\xf4\x8e\xf8\x15\x8b\xfc\x9d", |
| 2177 | }, { |
| 2178 | .key = "Jefe", |
| 2179 | .ksize = 4, |
| 2180 | .plaintext = "what do ya want for nothing?", |
| 2181 | .psize = 28, |
| 2182 | .digest = "\x75\x0c\x78\x3e\x6a\xb0\xb5\x03" |
| 2183 | "\xea\xa8\x6e\x31\x0a\x5d\xb7\x38", |
| 2184 | .np = 2, |
| 2185 | .tap = {14, 14} |
| 2186 | }, { |
| 2187 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2188 | .ksize = 16, |
| 2189 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2190 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2191 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2192 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2193 | .psize = 50, |
| 2194 | .digest = "\x56\xbe\x34\x52\x1d\x14\x4c\x88" |
| 2195 | "\xdb\xb8\xc7\x33\xf0\xe8\xb3\xf6", |
| 2196 | }, { |
| 2197 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2198 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2199 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 2200 | .ksize = 25, |
| 2201 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2202 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2203 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2204 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2205 | .psize = 50, |
| 2206 | .digest = "\x69\x7e\xaf\x0a\xca\x3a\x3a\xea" |
| 2207 | "\x3a\x75\x16\x47\x46\xff\xaa\x79", |
| 2208 | }, { |
| 2209 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2210 | .ksize = 16, |
| 2211 | .plaintext = "Test With Truncation", |
| 2212 | .psize = 20, |
| 2213 | .digest = "\x56\x46\x1e\xf2\x34\x2e\xdc\x00" |
| 2214 | "\xf9\xba\xb9\x95\x69\x0e\xfd\x4c", |
| 2215 | }, { |
| 2216 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2217 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2218 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2219 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2220 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2221 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2222 | "\xaa\xaa", |
| 2223 | .ksize = 80, |
| 2224 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2225 | .psize = 54, |
| 2226 | .digest = "\x6b\x1a\xb7\xfe\x4b\xd7\xbf\x8f" |
| 2227 | "\x0b\x62\xe6\xce\x61\xb9\xd0\xcd", |
| 2228 | }, { |
| 2229 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2230 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2231 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2232 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2233 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2234 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2235 | "\xaa\xaa", |
| 2236 | .ksize = 80, |
| 2237 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 2238 | "Block-Size Data", |
| 2239 | .psize = 73, |
| 2240 | .digest = "\x6f\x63\x0f\xad\x67\xcd\xa0\xee" |
| 2241 | "\x1f\xb1\xf5\x62\xdb\x3a\xa5\x3e", |
| 2242 | }, |
| 2243 | }; |
| 2244 | |
| 2245 | /* |
| 2246 | * HMAC-RIPEMD128 test vectors from RFC2286 |
| 2247 | */ |
| 2248 | #define HMAC_RMD128_TEST_VECTORS 7 |
| 2249 | |
| 2250 | static struct hash_testvec hmac_rmd128_tv_template[] = { |
| 2251 | { |
| 2252 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2253 | .ksize = 16, |
| 2254 | .plaintext = "Hi There", |
| 2255 | .psize = 8, |
| 2256 | .digest = "\xfb\xf6\x1f\x94\x92\xaa\x4b\xbf" |
| 2257 | "\x81\xc1\x72\xe8\x4e\x07\x34\xdb", |
| 2258 | }, { |
| 2259 | .key = "Jefe", |
| 2260 | .ksize = 4, |
| 2261 | .plaintext = "what do ya want for nothing?", |
| 2262 | .psize = 28, |
| 2263 | .digest = "\x87\x5f\x82\x88\x62\xb6\xb3\x34" |
| 2264 | "\xb4\x27\xc5\x5f\x9f\x7f\xf0\x9b", |
| 2265 | .np = 2, |
| 2266 | .tap = { 14, 14 }, |
| 2267 | }, { |
| 2268 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2269 | .ksize = 16, |
| 2270 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2271 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2272 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2273 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2274 | .psize = 50, |
| 2275 | .digest = "\x09\xf0\xb2\x84\x6d\x2f\x54\x3d" |
| 2276 | "\xa3\x63\xcb\xec\x8d\x62\xa3\x8d", |
| 2277 | }, { |
| 2278 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2279 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2280 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 2281 | .ksize = 25, |
| 2282 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2283 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2284 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2285 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2286 | .psize = 50, |
| 2287 | .digest = "\xbd\xbb\xd7\xcf\x03\xe4\x4b\x5a" |
| 2288 | "\xa6\x0a\xf8\x15\xbe\x4d\x22\x94", |
| 2289 | }, { |
| 2290 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2291 | .ksize = 16, |
| 2292 | .plaintext = "Test With Truncation", |
| 2293 | .psize = 20, |
| 2294 | .digest = "\xe7\x98\x08\xf2\x4b\x25\xfd\x03" |
| 2295 | "\x1c\x15\x5f\x0d\x55\x1d\x9a\x3a", |
| 2296 | }, { |
| 2297 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2298 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2299 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2300 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2301 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2302 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2303 | "\xaa\xaa", |
| 2304 | .ksize = 80, |
| 2305 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2306 | .psize = 54, |
| 2307 | .digest = "\xdc\x73\x29\x28\xde\x98\x10\x4a" |
| 2308 | "\x1f\x59\xd3\x73\xc1\x50\xac\xbb", |
| 2309 | }, { |
| 2310 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2311 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2312 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2313 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2314 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2315 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2316 | "\xaa\xaa", |
| 2317 | .ksize = 80, |
| 2318 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 2319 | "Block-Size Data", |
| 2320 | .psize = 73, |
| 2321 | .digest = "\x5c\x6b\xec\x96\x79\x3e\x16\xd4" |
| 2322 | "\x06\x90\xc2\x37\x63\x5f\x30\xc5", |
| 2323 | }, |
| 2324 | }; |
| 2325 | |
| 2326 | /* |
| 2327 | * HMAC-RIPEMD160 test vectors from RFC2286 |
| 2328 | */ |
| 2329 | #define HMAC_RMD160_TEST_VECTORS 7 |
| 2330 | |
| 2331 | static struct hash_testvec hmac_rmd160_tv_template[] = { |
| 2332 | { |
| 2333 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2334 | .ksize = 20, |
| 2335 | .plaintext = "Hi There", |
| 2336 | .psize = 8, |
| 2337 | .digest = "\x24\xcb\x4b\xd6\x7d\x20\xfc\x1a\x5d\x2e" |
| 2338 | "\xd7\x73\x2d\xcc\x39\x37\x7f\x0a\x56\x68", |
| 2339 | }, { |
| 2340 | .key = "Jefe", |
| 2341 | .ksize = 4, |
| 2342 | .plaintext = "what do ya want for nothing?", |
| 2343 | .psize = 28, |
| 2344 | .digest = "\xdd\xa6\xc0\x21\x3a\x48\x5a\x9e\x24\xf4" |
| 2345 | "\x74\x20\x64\xa7\xf0\x33\xb4\x3c\x40\x69", |
| 2346 | .np = 2, |
| 2347 | .tap = { 14, 14 }, |
| 2348 | }, { |
| 2349 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2350 | .ksize = 20, |
| 2351 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2352 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2353 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2354 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2355 | .psize = 50, |
| 2356 | .digest = "\xb0\xb1\x05\x36\x0d\xe7\x59\x96\x0a\xb4" |
| 2357 | "\xf3\x52\x98\xe1\x16\xe2\x95\xd8\xe7\xc1", |
| 2358 | }, { |
| 2359 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2360 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2361 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 2362 | .ksize = 25, |
| 2363 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2364 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2365 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2366 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2367 | .psize = 50, |
| 2368 | .digest = "\xd5\xca\x86\x2f\x4d\x21\xd5\xe6\x10\xe1" |
| 2369 | "\x8b\x4c\xf1\xbe\xb9\x7a\x43\x65\xec\xf4", |
| 2370 | }, { |
| 2371 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2372 | .ksize = 20, |
| 2373 | .plaintext = "Test With Truncation", |
| 2374 | .psize = 20, |
| 2375 | .digest = "\x76\x19\x69\x39\x78\xf9\x1d\x90\x53\x9a" |
| 2376 | "\xe7\x86\x50\x0f\xf3\xd8\xe0\x51\x8e\x39", |
| 2377 | }, { |
| 2378 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2379 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2380 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2381 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2382 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2383 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2384 | "\xaa\xaa", |
| 2385 | .ksize = 80, |
| 2386 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2387 | .psize = 54, |
| 2388 | .digest = "\x64\x66\xca\x07\xac\x5e\xac\x29\xe1\xbd" |
| 2389 | "\x52\x3e\x5a\xda\x76\x05\xb7\x91\xfd\x8b", |
| 2390 | }, { |
| 2391 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2392 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2393 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2394 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2395 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2396 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2397 | "\xaa\xaa", |
| 2398 | .ksize = 80, |
| 2399 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 2400 | "Block-Size Data", |
| 2401 | .psize = 73, |
| 2402 | .digest = "\x69\xea\x60\x79\x8d\x71\x61\x6c\xce\x5f" |
| 2403 | "\xd0\x87\x1e\x23\x75\x4c\xd7\x5d\x5a\x0a", |
| 2404 | }, |
| 2405 | }; |
| 2406 | |
| 2407 | /* |
| 2408 | * HMAC-SHA1 test vectors from RFC2202 |
| 2409 | */ |
| 2410 | #define HMAC_SHA1_TEST_VECTORS 7 |
| 2411 | |
| 2412 | static struct hash_testvec hmac_sha1_tv_template[] = { |
| 2413 | { |
| 2414 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2415 | .ksize = 20, |
| 2416 | .plaintext = "Hi There", |
| 2417 | .psize = 8, |
| 2418 | .digest = "\xb6\x17\x31\x86\x55\x05\x72\x64" |
| 2419 | "\xe2\x8b\xc0\xb6\xfb\x37\x8c\x8e\xf1" |
| 2420 | "\x46\xbe", |
| 2421 | }, { |
| 2422 | .key = "Jefe", |
| 2423 | .ksize = 4, |
| 2424 | .plaintext = "what do ya want for nothing?", |
| 2425 | .psize = 28, |
| 2426 | .digest = "\xef\xfc\xdf\x6a\xe5\xeb\x2f\xa2\xd2\x74" |
| 2427 | "\x16\xd5\xf1\x84\xdf\x9c\x25\x9a\x7c\x79", |
| 2428 | .np = 2, |
| 2429 | .tap = { 14, 14 } |
| 2430 | }, { |
| 2431 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2432 | .ksize = 20, |
| 2433 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2434 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2435 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2436 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2437 | .psize = 50, |
| 2438 | .digest = "\x12\x5d\x73\x42\xb9\xac\x11\xcd\x91\xa3" |
| 2439 | "\x9a\xf4\x8a\xa1\x7b\x4f\x63\xf1\x75\xd3", |
| 2440 | }, { |
| 2441 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2442 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2443 | "\x11\x12\x13\x14\x15\x16\x17\x18\x19", |
| 2444 | .ksize = 25, |
| 2445 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2446 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2447 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2448 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2449 | .psize = 50, |
| 2450 | .digest = "\x4c\x90\x07\xf4\x02\x62\x50\xc6\xbc\x84" |
| 2451 | "\x14\xf9\xbf\x50\xc8\x6c\x2d\x72\x35\xda", |
| 2452 | }, { |
| 2453 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2454 | .ksize = 20, |
| 2455 | .plaintext = "Test With Truncation", |
| 2456 | .psize = 20, |
| 2457 | .digest = "\x4c\x1a\x03\x42\x4b\x55\xe0\x7f\xe7\xf2" |
| 2458 | "\x7b\xe1\xd5\x8b\xb9\x32\x4a\x9a\x5a\x04", |
| 2459 | }, { |
| 2460 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2461 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2462 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2463 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2464 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2465 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2466 | "\xaa\xaa", |
| 2467 | .ksize = 80, |
| 2468 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2469 | .psize = 54, |
| 2470 | .digest = "\xaa\x4a\xe5\xe1\x52\x72\xd0\x0e\x95\x70" |
| 2471 | "\x56\x37\xce\x8a\x3b\x55\xed\x40\x21\x12", |
| 2472 | }, { |
| 2473 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2474 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2475 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2476 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2477 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2478 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2479 | "\xaa\xaa", |
| 2480 | .ksize = 80, |
| 2481 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than One " |
| 2482 | "Block-Size Data", |
| 2483 | .psize = 73, |
| 2484 | .digest = "\xe8\xe9\x9d\x0f\x45\x23\x7d\x78\x6d\x6b" |
| 2485 | "\xba\xa7\x96\x5c\x78\x08\xbb\xff\x1a\x91", |
| 2486 | }, |
| 2487 | }; |
| 2488 | |
| 2489 | |
| 2490 | /* |
| 2491 | * SHA224 HMAC test vectors from RFC4231 |
| 2492 | */ |
| 2493 | #define HMAC_SHA224_TEST_VECTORS 4 |
| 2494 | |
| 2495 | static struct hash_testvec hmac_sha224_tv_template[] = { |
| 2496 | { |
| 2497 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2498 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2499 | "\x0b\x0b\x0b\x0b", |
| 2500 | .ksize = 20, |
| 2501 | /* ("Hi There") */ |
| 2502 | .plaintext = "\x48\x69\x20\x54\x68\x65\x72\x65", |
| 2503 | .psize = 8, |
| 2504 | .digest = "\x89\x6f\xb1\x12\x8a\xbb\xdf\x19" |
| 2505 | "\x68\x32\x10\x7c\xd4\x9d\xf3\x3f" |
| 2506 | "\x47\xb4\xb1\x16\x99\x12\xba\x4f" |
| 2507 | "\x53\x68\x4b\x22", |
| 2508 | }, { |
| 2509 | .key = "Jefe", |
| 2510 | .ksize = 4, |
| 2511 | /* ("what do ya want for nothing?") */ |
| 2512 | .plaintext = "\x77\x68\x61\x74\x20\x64\x6f\x20" |
| 2513 | "\x79\x61\x20\x77\x61\x6e\x74\x20" |
| 2514 | "\x66\x6f\x72\x20\x6e\x6f\x74\x68" |
| 2515 | "\x69\x6e\x67\x3f", |
| 2516 | .psize = 28, |
| 2517 | .digest = "\xa3\x0e\x01\x09\x8b\xc6\xdb\xbf" |
| 2518 | "\x45\x69\x0f\x3a\x7e\x9e\x6d\x0f" |
| 2519 | "\x8b\xbe\xa2\xa3\x9e\x61\x48\x00" |
| 2520 | "\x8f\xd0\x5e\x44", |
| 2521 | .np = 4, |
| 2522 | .tap = { 7, 7, 7, 7 } |
| 2523 | }, { |
| 2524 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2525 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2526 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2527 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2528 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2529 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2530 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2531 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2532 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2533 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2534 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2535 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2536 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2537 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2538 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2539 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2540 | "\xaa\xaa\xaa", |
| 2541 | .ksize = 131, |
| 2542 | /* ("Test Using Larger Than Block-Size Key - Hash Key First") */ |
| 2543 | .plaintext = "\x54\x65\x73\x74\x20\x55\x73\x69" |
| 2544 | "\x6e\x67\x20\x4c\x61\x72\x67\x65" |
| 2545 | "\x72\x20\x54\x68\x61\x6e\x20\x42" |
| 2546 | "\x6c\x6f\x63\x6b\x2d\x53\x69\x7a" |
| 2547 | "\x65\x20\x4b\x65\x79\x20\x2d\x20" |
| 2548 | "\x48\x61\x73\x68\x20\x4b\x65\x79" |
| 2549 | "\x20\x46\x69\x72\x73\x74", |
| 2550 | .psize = 54, |
| 2551 | .digest = "\x95\xe9\xa0\xdb\x96\x20\x95\xad" |
| 2552 | "\xae\xbe\x9b\x2d\x6f\x0d\xbc\xe2" |
| 2553 | "\xd4\x99\xf1\x12\xf2\xd2\xb7\x27" |
| 2554 | "\x3f\xa6\x87\x0e", |
| 2555 | }, { |
| 2556 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2557 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2558 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2559 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2560 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2561 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2562 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2563 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2564 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2565 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2566 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2567 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2568 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2569 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2570 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2571 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2572 | "\xaa\xaa\xaa", |
| 2573 | .ksize = 131, |
| 2574 | /* ("This is a test using a larger than block-size key and a") |
| 2575 | (" larger than block-size data. The key needs to be") |
| 2576 | (" hashed before being used by the HMAC algorithm.") */ |
| 2577 | .plaintext = "\x54\x68\x69\x73\x20\x69\x73\x20" |
| 2578 | "\x61\x20\x74\x65\x73\x74\x20\x75" |
| 2579 | "\x73\x69\x6e\x67\x20\x61\x20\x6c" |
| 2580 | "\x61\x72\x67\x65\x72\x20\x74\x68" |
| 2581 | "\x61\x6e\x20\x62\x6c\x6f\x63\x6b" |
| 2582 | "\x2d\x73\x69\x7a\x65\x20\x6b\x65" |
| 2583 | "\x79\x20\x61\x6e\x64\x20\x61\x20" |
| 2584 | "\x6c\x61\x72\x67\x65\x72\x20\x74" |
| 2585 | "\x68\x61\x6e\x20\x62\x6c\x6f\x63" |
| 2586 | "\x6b\x2d\x73\x69\x7a\x65\x20\x64" |
| 2587 | "\x61\x74\x61\x2e\x20\x54\x68\x65" |
| 2588 | "\x20\x6b\x65\x79\x20\x6e\x65\x65" |
| 2589 | "\x64\x73\x20\x74\x6f\x20\x62\x65" |
| 2590 | "\x20\x68\x61\x73\x68\x65\x64\x20" |
| 2591 | "\x62\x65\x66\x6f\x72\x65\x20\x62" |
| 2592 | "\x65\x69\x6e\x67\x20\x75\x73\x65" |
| 2593 | "\x64\x20\x62\x79\x20\x74\x68\x65" |
| 2594 | "\x20\x48\x4d\x41\x43\x20\x61\x6c" |
| 2595 | "\x67\x6f\x72\x69\x74\x68\x6d\x2e", |
| 2596 | .psize = 152, |
| 2597 | .digest = "\x3a\x85\x41\x66\xac\x5d\x9f\x02" |
| 2598 | "\x3f\x54\xd5\x17\xd0\xb3\x9d\xbd" |
| 2599 | "\x94\x67\x70\xdb\x9c\x2b\x95\xc9" |
| 2600 | "\xf6\xf5\x65\xd1", |
| 2601 | }, |
| 2602 | }; |
| 2603 | |
| 2604 | /* |
| 2605 | * HMAC-SHA256 test vectors from |
| 2606 | * draft-ietf-ipsec-ciph-sha-256-01.txt |
| 2607 | */ |
| 2608 | #define HMAC_SHA256_TEST_VECTORS 10 |
| 2609 | |
| 2610 | static struct hash_testvec hmac_sha256_tv_template[] = { |
| 2611 | { |
| 2612 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2613 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2614 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 2615 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 2616 | .ksize = 32, |
| 2617 | .plaintext = "abc", |
| 2618 | .psize = 3, |
| 2619 | .digest = "\xa2\x1b\x1f\x5d\x4c\xf4\xf7\x3a" |
| 2620 | "\x4d\xd9\x39\x75\x0f\x7a\x06\x6a" |
| 2621 | "\x7f\x98\xcc\x13\x1c\xb1\x6a\x66" |
| 2622 | "\x92\x75\x90\x21\xcf\xab\x81\x81", |
| 2623 | }, { |
| 2624 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2625 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2626 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 2627 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 2628 | .ksize = 32, |
| 2629 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 2630 | .psize = 56, |
| 2631 | .digest = "\x10\x4f\xdc\x12\x57\x32\x8f\x08" |
| 2632 | "\x18\x4b\xa7\x31\x31\xc5\x3c\xae" |
| 2633 | "\xe6\x98\xe3\x61\x19\x42\x11\x49" |
| 2634 | "\xea\x8c\x71\x24\x56\x69\x7d\x30", |
| 2635 | }, { |
| 2636 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2637 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2638 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 2639 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20", |
| 2640 | .ksize = 32, |
| 2641 | .plaintext = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq" |
| 2642 | "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq", |
| 2643 | .psize = 112, |
| 2644 | .digest = "\x47\x03\x05\xfc\x7e\x40\xfe\x34" |
| 2645 | "\xd3\xee\xb3\xe7\x73\xd9\x5a\xab" |
| 2646 | "\x73\xac\xf0\xfd\x06\x04\x47\xa5" |
| 2647 | "\xeb\x45\x95\xbf\x33\xa9\xd1\xa3", |
| 2648 | }, { |
| 2649 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2650 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 2651 | "\x0b\x0b\x0b\x0b\x0b\x0b", |
| 2652 | .ksize = 32, |
| 2653 | .plaintext = "Hi There", |
| 2654 | .psize = 8, |
| 2655 | .digest = "\x19\x8a\x60\x7e\xb4\x4b\xfb\xc6" |
| 2656 | "\x99\x03\xa0\xf1\xcf\x2b\xbd\xc5" |
| 2657 | "\xba\x0a\xa3\xf3\xd9\xae\x3c\x1c" |
| 2658 | "\x7a\x3b\x16\x96\xa0\xb6\x8c\xf7", |
| 2659 | }, { |
| 2660 | .key = "Jefe", |
| 2661 | .ksize = 4, |
| 2662 | .plaintext = "what do ya want for nothing?", |
| 2663 | .psize = 28, |
| 2664 | .digest = "\x5b\xdc\xc1\x46\xbf\x60\x75\x4e" |
| 2665 | "\x6a\x04\x24\x26\x08\x95\x75\xc7" |
| 2666 | "\x5a\x00\x3f\x08\x9d\x27\x39\x83" |
| 2667 | "\x9d\xec\x58\xb9\x64\xec\x38\x43", |
| 2668 | .np = 2, |
| 2669 | .tap = { 14, 14 } |
| 2670 | }, { |
| 2671 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2672 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2673 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa", |
| 2674 | .ksize = 32, |
| 2675 | .plaintext = "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2676 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2677 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd" |
| 2678 | "\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd\xdd", |
| 2679 | .psize = 50, |
| 2680 | .digest = "\xcd\xcb\x12\x20\xd1\xec\xcc\xea" |
| 2681 | "\x91\xe5\x3a\xba\x30\x92\xf9\x62" |
| 2682 | "\xe5\x49\xfe\x6c\xe9\xed\x7f\xdc" |
| 2683 | "\x43\x19\x1f\xbd\xe4\x5c\x30\xb0", |
| 2684 | }, { |
| 2685 | .key = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 2686 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 2687 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 2688 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 2689 | "\x21\x22\x23\x24\x25", |
| 2690 | .ksize = 37, |
| 2691 | .plaintext = "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2692 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2693 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd" |
| 2694 | "\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd\xcd", |
| 2695 | .psize = 50, |
| 2696 | .digest = "\xd4\x63\x3c\x17\xf6\xfb\x8d\x74" |
| 2697 | "\x4c\x66\xde\xe0\xf8\xf0\x74\x55" |
| 2698 | "\x6e\xc4\xaf\x55\xef\x07\x99\x85" |
| 2699 | "\x41\x46\x8e\xb4\x9b\xd2\xe9\x17", |
| 2700 | }, { |
| 2701 | .key = "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c" |
| 2702 | "\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c\x0c" |
| 2703 | "\x0c\x0c\x0c\x0c\x0c\x0c", |
| 2704 | .ksize = 32, |
| 2705 | .plaintext = "Test With Truncation", |
| 2706 | .psize = 20, |
| 2707 | .digest = "\x75\x46\xaf\x01\x84\x1f\xc0\x9b" |
| 2708 | "\x1a\xb9\xc3\x74\x9a\x5f\x1c\x17" |
| 2709 | "\xd4\xf5\x89\x66\x8a\x58\x7b\x27" |
| 2710 | "\x00\xa9\xc9\x7c\x11\x93\xcf\x42", |
| 2711 | }, { |
| 2712 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2713 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2714 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2715 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2716 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2717 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2718 | "\xaa\xaa", |
| 2719 | .ksize = 80, |
| 2720 | .plaintext = "Test Using Larger Than Block-Size Key - Hash Key First", |
| 2721 | .psize = 54, |
| 2722 | .digest = "\x69\x53\x02\x5e\xd9\x6f\x0c\x09" |
| 2723 | "\xf8\x0a\x96\xf7\x8e\x65\x38\xdb" |
| 2724 | "\xe2\xe7\xb8\x20\xe3\xdd\x97\x0e" |
| 2725 | "\x7d\xdd\x39\x09\x1b\x32\x35\x2f", |
| 2726 | }, { |
| 2727 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2728 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2729 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2730 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2731 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2732 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 2733 | "\xaa\xaa", |
| 2734 | .ksize = 80, |
| 2735 | .plaintext = "Test Using Larger Than Block-Size Key and Larger Than " |
| 2736 | "One Block-Size Data", |
| 2737 | .psize = 73, |
| 2738 | .digest = "\x63\x55\xac\x22\xe8\x90\xd0\xa3" |
| 2739 | "\xc8\x48\x1a\x5c\xa4\x82\x5b\xc8" |
| 2740 | "\x84\xd3\xe7\xa1\xff\x98\xa2\xfc" |
| 2741 | "\x2a\xc7\xd8\xe0\x64\xc3\xb2\xe6", |
| 2742 | }, |
| 2743 | }; |
| 2744 | |
Jussi Kivilinna | 93b5e86 | 2013-04-08 10:48:44 +0300 | [diff] [blame] | 2745 | #define CMAC_AES_TEST_VECTORS 6 |
| 2746 | |
| 2747 | static struct hash_testvec aes_cmac128_tv_template[] = { |
| 2748 | { /* From NIST Special Publication 800-38B, AES-128 */ |
| 2749 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 2750 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 2751 | .plaintext = zeroed_string, |
| 2752 | .digest = "\xbb\x1d\x69\x29\xe9\x59\x37\x28" |
| 2753 | "\x7f\xa3\x7d\x12\x9b\x75\x67\x46", |
| 2754 | .psize = 0, |
| 2755 | .ksize = 16, |
| 2756 | }, { |
| 2757 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 2758 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 2759 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2760 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a", |
| 2761 | .digest = "\x07\x0a\x16\xb4\x6b\x4d\x41\x44" |
| 2762 | "\xf7\x9b\xdd\x9d\xd0\x4a\x28\x7c", |
| 2763 | .psize = 16, |
| 2764 | .ksize = 16, |
| 2765 | }, { |
| 2766 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 2767 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 2768 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2769 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2770 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 2771 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 2772 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11", |
| 2773 | .digest = "\xdf\xa6\x67\x47\xde\x9a\xe6\x30" |
| 2774 | "\x30\xca\x32\x61\x14\x97\xc8\x27", |
| 2775 | .psize = 40, |
| 2776 | .ksize = 16, |
| 2777 | }, { |
| 2778 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 2779 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 2780 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2781 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2782 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 2783 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 2784 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 2785 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 2786 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 2787 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 2788 | .digest = "\x51\xf0\xbe\xbf\x7e\x3b\x9d\x92" |
| 2789 | "\xfc\x49\x74\x17\x79\x36\x3c\xfe", |
| 2790 | .psize = 64, |
| 2791 | .ksize = 16, |
| 2792 | }, { /* From NIST Special Publication 800-38B, AES-256 */ |
| 2793 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 2794 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 2795 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 2796 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 2797 | .plaintext = zeroed_string, |
| 2798 | .digest = "\x02\x89\x62\xf6\x1b\x7b\xf8\x9e" |
| 2799 | "\xfc\x6b\x55\x1f\x46\x67\xd9\x83", |
| 2800 | .psize = 0, |
| 2801 | .ksize = 32, |
| 2802 | }, { |
| 2803 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 2804 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 2805 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 2806 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 2807 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2808 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2809 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 2810 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 2811 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 2812 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 2813 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 2814 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 2815 | .digest = "\xe1\x99\x21\x90\x54\x9f\x6e\xd5" |
| 2816 | "\x69\x6a\x2c\x05\x6c\x31\x54\x10", |
| 2817 | .psize = 64, |
| 2818 | .ksize = 32, |
| 2819 | } |
| 2820 | }; |
| 2821 | |
| 2822 | #define CMAC_DES3_EDE_TEST_VECTORS 4 |
| 2823 | |
| 2824 | static struct hash_testvec des3_ede_cmac64_tv_template[] = { |
| 2825 | /* |
| 2826 | * From NIST Special Publication 800-38B, Three Key TDEA |
| 2827 | * Corrected test vectors from: |
| 2828 | * http://csrc.nist.gov/publications/nistpubs/800-38B/Updated_CMAC_Examples.pdf |
| 2829 | */ |
| 2830 | { |
| 2831 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 2832 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 2833 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 2834 | .plaintext = zeroed_string, |
| 2835 | .digest = "\xb7\xa6\x88\xe1\x22\xff\xaf\x95", |
| 2836 | .psize = 0, |
| 2837 | .ksize = 24, |
| 2838 | }, { |
| 2839 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 2840 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 2841 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 2842 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96", |
| 2843 | .digest = "\x8e\x8f\x29\x31\x36\x28\x37\x97", |
| 2844 | .psize = 8, |
| 2845 | .ksize = 24, |
| 2846 | }, { |
| 2847 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 2848 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 2849 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 2850 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2851 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2852 | "\xae\x2d\x8a\x57", |
| 2853 | .digest = "\x74\x3d\xdb\xe0\xce\x2d\xc2\xed", |
| 2854 | .psize = 20, |
| 2855 | .ksize = 24, |
| 2856 | }, { |
| 2857 | .key = "\x8a\xa8\x3b\xf8\xcb\xda\x10\x62" |
| 2858 | "\x0b\xc1\xbf\x19\xfb\xb6\xcd\x58" |
| 2859 | "\xbc\x31\x3d\x4a\x37\x1c\xa8\xb5", |
| 2860 | .plaintext = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 2861 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 2862 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 2863 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51", |
| 2864 | .digest = "\x33\xe6\xb1\x09\x24\x00\xea\xe5", |
| 2865 | .psize = 32, |
| 2866 | .ksize = 24, |
| 2867 | } |
| 2868 | }; |
| 2869 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 2870 | #define XCBC_AES_TEST_VECTORS 6 |
| 2871 | |
| 2872 | static struct hash_testvec aes_xcbc128_tv_template[] = { |
| 2873 | { |
| 2874 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2875 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2876 | .plaintext = zeroed_string, |
| 2877 | .digest = "\x75\xf0\x25\x1d\x52\x8a\xc0\x1c" |
| 2878 | "\x45\x73\xdf\xd5\x84\xd7\x9f\x29", |
| 2879 | .psize = 0, |
| 2880 | .ksize = 16, |
| 2881 | }, { |
| 2882 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2883 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2884 | .plaintext = "\x00\x01\x02", |
| 2885 | .digest = "\x5b\x37\x65\x80\xae\x2f\x19\xaf" |
| 2886 | "\xe7\x21\x9c\xee\xf1\x72\x75\x6f", |
| 2887 | .psize = 3, |
| 2888 | .ksize = 16, |
| 2889 | } , { |
| 2890 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2891 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2892 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2893 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2894 | .digest = "\xd2\xa2\x46\xfa\x34\x9b\x68\xa7" |
| 2895 | "\x99\x98\xa4\x39\x4f\xf7\xa2\x63", |
| 2896 | .psize = 16, |
| 2897 | .ksize = 16, |
| 2898 | }, { |
| 2899 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2900 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2901 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2902 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 2903 | "\x10\x11\x12\x13", |
| 2904 | .digest = "\x47\xf5\x1b\x45\x64\x96\x62\x15" |
| 2905 | "\xb8\x98\x5c\x63\x05\x5e\xd3\x08", |
| 2906 | .tap = { 10, 10 }, |
| 2907 | .psize = 20, |
| 2908 | .np = 2, |
| 2909 | .ksize = 16, |
| 2910 | }, { |
| 2911 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2912 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2913 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2914 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 2915 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 2916 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 2917 | .digest = "\xf5\x4f\x0e\xc8\xd2\xb9\xf3\xd3" |
| 2918 | "\x68\x07\x73\x4b\xd5\x28\x3f\xd4", |
| 2919 | .psize = 32, |
| 2920 | .ksize = 16, |
| 2921 | }, { |
| 2922 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2923 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2924 | .plaintext = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2925 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 2926 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 2927 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 2928 | "\x20\x21", |
| 2929 | .digest = "\xbe\xcb\xb3\xbc\xcd\xb5\x18\xa3" |
| 2930 | "\x06\x77\xd5\x48\x1f\xb6\xb4\xd8", |
| 2931 | .tap = { 17, 17 }, |
| 2932 | .psize = 34, |
| 2933 | .np = 2, |
| 2934 | .ksize = 16, |
| 2935 | } |
| 2936 | }; |
| 2937 | |
Salman Qazi | ba1ee07 | 2012-10-05 14:24:14 -0700 | [diff] [blame] | 2938 | #define VMAC_AES_TEST_VECTORS 11 |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 2939 | static char vmac_string1[128] = {'\x01', '\x01', '\x01', '\x01', |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 2940 | '\x02', '\x03', '\x02', '\x02', |
| 2941 | '\x02', '\x04', '\x01', '\x07', |
| 2942 | '\x04', '\x01', '\x04', '\x03',}; |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 2943 | static char vmac_string2[128] = {'a', 'b', 'c',}; |
| 2944 | static char vmac_string3[128] = {'a', 'b', 'c', 'a', 'b', 'c', |
| 2945 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2946 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2947 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2948 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2949 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2950 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2951 | 'a', 'b', 'c', 'a', 'b', 'c', |
| 2952 | }; |
| 2953 | |
Salman Qazi | ba1ee07 | 2012-10-05 14:24:14 -0700 | [diff] [blame] | 2954 | static char vmac_string4[17] = {'b', 'c', 'e', 'f', |
| 2955 | 'i', 'j', 'l', 'm', |
| 2956 | 'o', 'p', 'r', 's', |
| 2957 | 't', 'u', 'w', 'x', 'z'}; |
| 2958 | |
| 2959 | static char vmac_string5[127] = {'r', 'm', 'b', 't', 'c', |
| 2960 | 'o', 'l', 'k', ']', '%', |
| 2961 | '9', '2', '7', '!', 'A'}; |
| 2962 | |
| 2963 | static char vmac_string6[129] = {'p', 't', '*', '7', 'l', |
| 2964 | 'i', '!', '#', 'w', '0', |
| 2965 | 'z', '/', '4', 'A', 'n'}; |
| 2966 | |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 2967 | static struct hash_testvec aes_vmac128_tv_template[] = { |
| 2968 | { |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 2969 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2970 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2971 | .plaintext = NULL, |
| 2972 | .digest = "\x07\x58\x80\x35\x77\xa4\x7b\x54", |
| 2973 | .psize = 0, |
| 2974 | .ksize = 16, |
| 2975 | }, { |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 2976 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2977 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Shane Wang | 304a204 | 2010-03-18 20:22:55 +0800 | [diff] [blame] | 2978 | .plaintext = vmac_string1, |
| 2979 | .digest = "\xce\xf5\x3c\xd3\xae\x68\x8c\xa1", |
| 2980 | .psize = 128, |
| 2981 | .ksize = 16, |
| 2982 | }, { |
| 2983 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2984 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2985 | .plaintext = vmac_string2, |
| 2986 | .digest = "\xc9\x27\xb0\x73\x81\xbd\x14\x2d", |
| 2987 | .psize = 128, |
| 2988 | .ksize = 16, |
| 2989 | }, { |
| 2990 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 2991 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 2992 | .plaintext = vmac_string3, |
| 2993 | .digest = "\x8d\x1a\x95\x8c\x98\x47\x0b\x19", |
| 2994 | .psize = 128, |
| 2995 | .ksize = 16, |
| 2996 | }, { |
| 2997 | .key = "abcdefghijklmnop", |
| 2998 | .plaintext = NULL, |
| 2999 | .digest = "\x3b\x89\xa1\x26\x9e\x55\x8f\x84", |
| 3000 | .psize = 0, |
| 3001 | .ksize = 16, |
| 3002 | }, { |
| 3003 | .key = "abcdefghijklmnop", |
| 3004 | .plaintext = vmac_string1, |
| 3005 | .digest = "\xab\x5e\xab\xb0\xf6\x8d\x74\xc2", |
| 3006 | .psize = 128, |
| 3007 | .ksize = 16, |
| 3008 | }, { |
| 3009 | .key = "abcdefghijklmnop", |
| 3010 | .plaintext = vmac_string2, |
| 3011 | .digest = "\x11\x15\x68\x42\x3d\x7b\x09\xdf", |
| 3012 | .psize = 128, |
| 3013 | .ksize = 16, |
| 3014 | }, { |
| 3015 | .key = "abcdefghijklmnop", |
| 3016 | .plaintext = vmac_string3, |
| 3017 | .digest = "\x8b\x32\x8f\xe1\xed\x8f\xfa\xd4", |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 3018 | .psize = 128, |
| 3019 | .ksize = 16, |
Salman Qazi | ba1ee07 | 2012-10-05 14:24:14 -0700 | [diff] [blame] | 3020 | }, { |
| 3021 | .key = "a09b5cd!f#07K\x00\x00\x00", |
| 3022 | .plaintext = vmac_string4, |
| 3023 | .digest = "\xab\xa5\x0f\xea\x42\x4e\xa1\x5f", |
| 3024 | .psize = sizeof(vmac_string4), |
| 3025 | .ksize = 16, |
| 3026 | }, { |
| 3027 | .key = "a09b5cd!f#07K\x00\x00\x00", |
| 3028 | .plaintext = vmac_string5, |
| 3029 | .digest = "\x25\x31\x98\xbc\x1d\xe8\x67\x60", |
| 3030 | .psize = sizeof(vmac_string5), |
| 3031 | .ksize = 16, |
| 3032 | }, { |
| 3033 | .key = "a09b5cd!f#07K\x00\x00\x00", |
| 3034 | .plaintext = vmac_string6, |
| 3035 | .digest = "\xc4\xae\x9b\x47\x95\x65\xeb\x41", |
| 3036 | .psize = sizeof(vmac_string6), |
| 3037 | .ksize = 16, |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 3038 | }, |
| 3039 | }; |
| 3040 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3041 | /* |
| 3042 | * SHA384 HMAC test vectors from RFC4231 |
| 3043 | */ |
| 3044 | |
| 3045 | #define HMAC_SHA384_TEST_VECTORS 4 |
| 3046 | |
| 3047 | static struct hash_testvec hmac_sha384_tv_template[] = { |
| 3048 | { |
| 3049 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3050 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3051 | "\x0b\x0b\x0b\x0b", |
| 3052 | .ksize = 20, |
| 3053 | .plaintext = "Hi There", |
| 3054 | .psize = 8, |
| 3055 | .digest = "\xaf\xd0\x39\x44\xd8\x48\x95\x62" |
| 3056 | "\x6b\x08\x25\xf4\xab\x46\x90\x7f" |
| 3057 | "\x15\xf9\xda\xdb\xe4\x10\x1e\xc6" |
| 3058 | "\x82\xaa\x03\x4c\x7c\xeb\xc5\x9c" |
| 3059 | "\xfa\xea\x9e\xa9\x07\x6e\xde\x7f" |
| 3060 | "\x4a\xf1\x52\xe8\xb2\xfa\x9c\xb6", |
| 3061 | }, { |
| 3062 | .key = "Jefe", |
| 3063 | .ksize = 4, |
| 3064 | .plaintext = "what do ya want for nothing?", |
| 3065 | .psize = 28, |
| 3066 | .digest = "\xaf\x45\xd2\xe3\x76\x48\x40\x31" |
| 3067 | "\x61\x7f\x78\xd2\xb5\x8a\x6b\x1b" |
| 3068 | "\x9c\x7e\xf4\x64\xf5\xa0\x1b\x47" |
| 3069 | "\xe4\x2e\xc3\x73\x63\x22\x44\x5e" |
| 3070 | "\x8e\x22\x40\xca\x5e\x69\xe2\xc7" |
| 3071 | "\x8b\x32\x39\xec\xfa\xb2\x16\x49", |
| 3072 | .np = 4, |
| 3073 | .tap = { 7, 7, 7, 7 } |
| 3074 | }, { |
| 3075 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3076 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3077 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3078 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3079 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3080 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3081 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3082 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3083 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3084 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3085 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3086 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3087 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3088 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3089 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3090 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3091 | "\xaa\xaa\xaa", |
| 3092 | .ksize = 131, |
| 3093 | .plaintext = "Test Using Larger Than Block-Siz" |
| 3094 | "e Key - Hash Key First", |
| 3095 | .psize = 54, |
| 3096 | .digest = "\x4e\xce\x08\x44\x85\x81\x3e\x90" |
| 3097 | "\x88\xd2\xc6\x3a\x04\x1b\xc5\xb4" |
| 3098 | "\x4f\x9e\xf1\x01\x2a\x2b\x58\x8f" |
| 3099 | "\x3c\xd1\x1f\x05\x03\x3a\xc4\xc6" |
| 3100 | "\x0c\x2e\xf6\xab\x40\x30\xfe\x82" |
| 3101 | "\x96\x24\x8d\xf1\x63\xf4\x49\x52", |
| 3102 | }, { |
| 3103 | .key = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3104 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3105 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3106 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3107 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3108 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3109 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3110 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3111 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3112 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3113 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3114 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3115 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3116 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3117 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3118 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3119 | "\xaa\xaa\xaa", |
| 3120 | .ksize = 131, |
| 3121 | .plaintext = "This is a test u" |
| 3122 | "sing a larger th" |
| 3123 | "an block-size ke" |
| 3124 | "y and a larger t" |
| 3125 | "han block-size d" |
| 3126 | "ata. The key nee" |
| 3127 | "ds to be hashed " |
| 3128 | "before being use" |
| 3129 | "d by the HMAC al" |
| 3130 | "gorithm.", |
| 3131 | .psize = 152, |
| 3132 | .digest = "\x66\x17\x17\x8e\x94\x1f\x02\x0d" |
| 3133 | "\x35\x1e\x2f\x25\x4e\x8f\xd3\x2c" |
| 3134 | "\x60\x24\x20\xfe\xb0\xb8\xfb\x9a" |
| 3135 | "\xdc\xce\xbb\x82\x46\x1e\x99\xc5" |
| 3136 | "\xa6\x78\xcc\x31\xe7\x99\x17\x6d" |
| 3137 | "\x38\x60\xe6\x11\x0c\x46\x52\x3e", |
| 3138 | }, |
| 3139 | }; |
| 3140 | |
| 3141 | /* |
| 3142 | * SHA512 HMAC test vectors from RFC4231 |
| 3143 | */ |
| 3144 | |
| 3145 | #define HMAC_SHA512_TEST_VECTORS 4 |
| 3146 | |
| 3147 | static struct hash_testvec hmac_sha512_tv_template[] = { |
| 3148 | { |
| 3149 | .key = "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3150 | "\x0b\x0b\x0b\x0b\x0b\x0b\x0b\x0b" |
| 3151 | "\x0b\x0b\x0b\x0b", |
| 3152 | .ksize = 20, |
| 3153 | .plaintext = "Hi There", |
| 3154 | .psize = 8, |
| 3155 | .digest = "\x87\xaa\x7c\xde\xa5\xef\x61\x9d" |
| 3156 | "\x4f\xf0\xb4\x24\x1a\x1d\x6c\xb0" |
| 3157 | "\x23\x79\xf4\xe2\xce\x4e\xc2\x78" |
| 3158 | "\x7a\xd0\xb3\x05\x45\xe1\x7c\xde" |
| 3159 | "\xda\xa8\x33\xb7\xd6\xb8\xa7\x02" |
| 3160 | "\x03\x8b\x27\x4e\xae\xa3\xf4\xe4" |
| 3161 | "\xbe\x9d\x91\x4e\xeb\x61\xf1\x70" |
| 3162 | "\x2e\x69\x6c\x20\x3a\x12\x68\x54", |
| 3163 | }, { |
| 3164 | .key = "Jefe", |
| 3165 | .ksize = 4, |
| 3166 | .plaintext = "what do ya want for nothing?", |
| 3167 | .psize = 28, |
| 3168 | .digest = "\x16\x4b\x7a\x7b\xfc\xf8\x19\xe2" |
| 3169 | "\xe3\x95\xfb\xe7\x3b\x56\xe0\xa3" |
| 3170 | "\x87\xbd\x64\x22\x2e\x83\x1f\xd6" |
| 3171 | "\x10\x27\x0c\xd7\xea\x25\x05\x54" |
| 3172 | "\x97\x58\xbf\x75\xc0\x5a\x99\x4a" |
| 3173 | "\x6d\x03\x4f\x65\xf8\xf0\xe6\xfd" |
| 3174 | "\xca\xea\xb1\xa3\x4d\x4a\x6b\x4b" |
| 3175 | "\x63\x6e\x07\x0a\x38\xbc\xe7\x37", |
| 3176 | .np = 4, |
| 3177 | .tap = { 7, 7, 7, 7 } |
| 3178 | }, { |
| 3179 | .key = "\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\xaa\xaa\xaa\xaa\xaa" |
| 3186 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3187 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3188 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3189 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3190 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3191 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3192 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3193 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3194 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3195 | "\xaa\xaa\xaa", |
| 3196 | .ksize = 131, |
| 3197 | .plaintext = "Test Using Large" |
| 3198 | "r Than Block-Siz" |
| 3199 | "e Key - Hash Key" |
| 3200 | " First", |
| 3201 | .psize = 54, |
| 3202 | .digest = "\x80\xb2\x42\x63\xc7\xc1\xa3\xeb" |
| 3203 | "\xb7\x14\x93\xc1\xdd\x7b\xe8\xb4" |
| 3204 | "\x9b\x46\xd1\xf4\x1b\x4a\xee\xc1" |
| 3205 | "\x12\x1b\x01\x37\x83\xf8\xf3\x52" |
| 3206 | "\x6b\x56\xd0\x37\xe0\x5f\x25\x98" |
| 3207 | "\xbd\x0f\xd2\x21\x5d\x6a\x1e\x52" |
| 3208 | "\x95\xe6\x4f\x73\xf6\x3f\x0a\xec" |
| 3209 | "\x8b\x91\x5a\x98\x5d\x78\x65\x98", |
| 3210 | }, { |
| 3211 | .key = "\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\xaa\xaa\xaa\xaa\xaa" |
| 3218 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3219 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3220 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3221 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3222 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3223 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3224 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3225 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3226 | "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 3227 | "\xaa\xaa\xaa", |
| 3228 | .ksize = 131, |
| 3229 | .plaintext = |
| 3230 | "This is a test u" |
| 3231 | "sing a larger th" |
| 3232 | "an block-size ke" |
| 3233 | "y and a larger t" |
| 3234 | "han block-size d" |
| 3235 | "ata. The key nee" |
| 3236 | "ds to be hashed " |
| 3237 | "before being use" |
| 3238 | "d by the HMAC al" |
| 3239 | "gorithm.", |
| 3240 | .psize = 152, |
| 3241 | .digest = "\xe3\x7b\x6a\x77\x5d\xc8\x7d\xba" |
| 3242 | "\xa4\xdf\xa9\xf9\x6e\x5e\x3f\xfd" |
| 3243 | "\xde\xbd\x71\xf8\x86\x72\x89\x86" |
| 3244 | "\x5d\xf5\xa3\x2d\x20\xcd\xc9\x44" |
| 3245 | "\xb6\x02\x2c\xac\x3c\x49\x82\xb1" |
| 3246 | "\x0d\x5e\xeb\x55\xc3\xe4\xde\x15" |
| 3247 | "\x13\x46\x76\xfb\x6d\xe0\x44\x60" |
| 3248 | "\x65\xc9\x74\x40\xfa\x8c\x6a\x58", |
| 3249 | }, |
| 3250 | }; |
| 3251 | |
| 3252 | /* |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3253 | * Poly1305 test vectors from RFC7539 A.3. |
| 3254 | */ |
| 3255 | |
| 3256 | #define POLY1305_TEST_VECTORS 11 |
| 3257 | |
| 3258 | static struct hash_testvec poly1305_tv_template[] = { |
| 3259 | { /* Test Vector #1 */ |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3260 | .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3261 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3262 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3263 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3264 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3265 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3266 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3267 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3268 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3269 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3270 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3271 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3272 | .psize = 96, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3273 | .digest = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3274 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 3275 | }, { /* Test Vector #2 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3276 | .plaintext = "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3277 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3278 | "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3279 | "\xf0\xef\xca\x96\x22\x7a\x86\x3e" |
| 3280 | "\x41\x6e\x79\x20\x73\x75\x62\x6d" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3281 | "\x69\x73\x73\x69\x6f\x6e\x20\x74" |
| 3282 | "\x6f\x20\x74\x68\x65\x20\x49\x45" |
| 3283 | "\x54\x46\x20\x69\x6e\x74\x65\x6e" |
| 3284 | "\x64\x65\x64\x20\x62\x79\x20\x74" |
| 3285 | "\x68\x65\x20\x43\x6f\x6e\x74\x72" |
| 3286 | "\x69\x62\x75\x74\x6f\x72\x20\x66" |
| 3287 | "\x6f\x72\x20\x70\x75\x62\x6c\x69" |
| 3288 | "\x63\x61\x74\x69\x6f\x6e\x20\x61" |
| 3289 | "\x73\x20\x61\x6c\x6c\x20\x6f\x72" |
| 3290 | "\x20\x70\x61\x72\x74\x20\x6f\x66" |
| 3291 | "\x20\x61\x6e\x20\x49\x45\x54\x46" |
| 3292 | "\x20\x49\x6e\x74\x65\x72\x6e\x65" |
| 3293 | "\x74\x2d\x44\x72\x61\x66\x74\x20" |
| 3294 | "\x6f\x72\x20\x52\x46\x43\x20\x61" |
| 3295 | "\x6e\x64\x20\x61\x6e\x79\x20\x73" |
| 3296 | "\x74\x61\x74\x65\x6d\x65\x6e\x74" |
| 3297 | "\x20\x6d\x61\x64\x65\x20\x77\x69" |
| 3298 | "\x74\x68\x69\x6e\x20\x74\x68\x65" |
| 3299 | "\x20\x63\x6f\x6e\x74\x65\x78\x74" |
| 3300 | "\x20\x6f\x66\x20\x61\x6e\x20\x49" |
| 3301 | "\x45\x54\x46\x20\x61\x63\x74\x69" |
| 3302 | "\x76\x69\x74\x79\x20\x69\x73\x20" |
| 3303 | "\x63\x6f\x6e\x73\x69\x64\x65\x72" |
| 3304 | "\x65\x64\x20\x61\x6e\x20\x22\x49" |
| 3305 | "\x45\x54\x46\x20\x43\x6f\x6e\x74" |
| 3306 | "\x72\x69\x62\x75\x74\x69\x6f\x6e" |
| 3307 | "\x22\x2e\x20\x53\x75\x63\x68\x20" |
| 3308 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 3309 | "\x74\x73\x20\x69\x6e\x63\x6c\x75" |
| 3310 | "\x64\x65\x20\x6f\x72\x61\x6c\x20" |
| 3311 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 3312 | "\x74\x73\x20\x69\x6e\x20\x49\x45" |
| 3313 | "\x54\x46\x20\x73\x65\x73\x73\x69" |
| 3314 | "\x6f\x6e\x73\x2c\x20\x61\x73\x20" |
| 3315 | "\x77\x65\x6c\x6c\x20\x61\x73\x20" |
| 3316 | "\x77\x72\x69\x74\x74\x65\x6e\x20" |
| 3317 | "\x61\x6e\x64\x20\x65\x6c\x65\x63" |
| 3318 | "\x74\x72\x6f\x6e\x69\x63\x20\x63" |
| 3319 | "\x6f\x6d\x6d\x75\x6e\x69\x63\x61" |
| 3320 | "\x74\x69\x6f\x6e\x73\x20\x6d\x61" |
| 3321 | "\x64\x65\x20\x61\x74\x20\x61\x6e" |
| 3322 | "\x79\x20\x74\x69\x6d\x65\x20\x6f" |
| 3323 | "\x72\x20\x70\x6c\x61\x63\x65\x2c" |
| 3324 | "\x20\x77\x68\x69\x63\x68\x20\x61" |
| 3325 | "\x72\x65\x20\x61\x64\x64\x72\x65" |
| 3326 | "\x73\x73\x65\x64\x20\x74\x6f", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3327 | .psize = 407, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3328 | .digest = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70" |
| 3329 | "\xf0\xef\xca\x96\x22\x7a\x86\x3e", |
| 3330 | }, { /* Test Vector #3 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3331 | .plaintext = "\x36\xe5\xf6\xb5\xc5\xe0\x60\x70" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3332 | "\xf0\xef\xca\x96\x22\x7a\x86\x3e" |
| 3333 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3334 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3335 | "\x41\x6e\x79\x20\x73\x75\x62\x6d" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3336 | "\x69\x73\x73\x69\x6f\x6e\x20\x74" |
| 3337 | "\x6f\x20\x74\x68\x65\x20\x49\x45" |
| 3338 | "\x54\x46\x20\x69\x6e\x74\x65\x6e" |
| 3339 | "\x64\x65\x64\x20\x62\x79\x20\x74" |
| 3340 | "\x68\x65\x20\x43\x6f\x6e\x74\x72" |
| 3341 | "\x69\x62\x75\x74\x6f\x72\x20\x66" |
| 3342 | "\x6f\x72\x20\x70\x75\x62\x6c\x69" |
| 3343 | "\x63\x61\x74\x69\x6f\x6e\x20\x61" |
| 3344 | "\x73\x20\x61\x6c\x6c\x20\x6f\x72" |
| 3345 | "\x20\x70\x61\x72\x74\x20\x6f\x66" |
| 3346 | "\x20\x61\x6e\x20\x49\x45\x54\x46" |
| 3347 | "\x20\x49\x6e\x74\x65\x72\x6e\x65" |
| 3348 | "\x74\x2d\x44\x72\x61\x66\x74\x20" |
| 3349 | "\x6f\x72\x20\x52\x46\x43\x20\x61" |
| 3350 | "\x6e\x64\x20\x61\x6e\x79\x20\x73" |
| 3351 | "\x74\x61\x74\x65\x6d\x65\x6e\x74" |
| 3352 | "\x20\x6d\x61\x64\x65\x20\x77\x69" |
| 3353 | "\x74\x68\x69\x6e\x20\x74\x68\x65" |
| 3354 | "\x20\x63\x6f\x6e\x74\x65\x78\x74" |
| 3355 | "\x20\x6f\x66\x20\x61\x6e\x20\x49" |
| 3356 | "\x45\x54\x46\x20\x61\x63\x74\x69" |
| 3357 | "\x76\x69\x74\x79\x20\x69\x73\x20" |
| 3358 | "\x63\x6f\x6e\x73\x69\x64\x65\x72" |
| 3359 | "\x65\x64\x20\x61\x6e\x20\x22\x49" |
| 3360 | "\x45\x54\x46\x20\x43\x6f\x6e\x74" |
| 3361 | "\x72\x69\x62\x75\x74\x69\x6f\x6e" |
| 3362 | "\x22\x2e\x20\x53\x75\x63\x68\x20" |
| 3363 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 3364 | "\x74\x73\x20\x69\x6e\x63\x6c\x75" |
| 3365 | "\x64\x65\x20\x6f\x72\x61\x6c\x20" |
| 3366 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 3367 | "\x74\x73\x20\x69\x6e\x20\x49\x45" |
| 3368 | "\x54\x46\x20\x73\x65\x73\x73\x69" |
| 3369 | "\x6f\x6e\x73\x2c\x20\x61\x73\x20" |
| 3370 | "\x77\x65\x6c\x6c\x20\x61\x73\x20" |
| 3371 | "\x77\x72\x69\x74\x74\x65\x6e\x20" |
| 3372 | "\x61\x6e\x64\x20\x65\x6c\x65\x63" |
| 3373 | "\x74\x72\x6f\x6e\x69\x63\x20\x63" |
| 3374 | "\x6f\x6d\x6d\x75\x6e\x69\x63\x61" |
| 3375 | "\x74\x69\x6f\x6e\x73\x20\x6d\x61" |
| 3376 | "\x64\x65\x20\x61\x74\x20\x61\x6e" |
| 3377 | "\x79\x20\x74\x69\x6d\x65\x20\x6f" |
| 3378 | "\x72\x20\x70\x6c\x61\x63\x65\x2c" |
| 3379 | "\x20\x77\x68\x69\x63\x68\x20\x61" |
| 3380 | "\x72\x65\x20\x61\x64\x64\x72\x65" |
| 3381 | "\x73\x73\x65\x64\x20\x74\x6f", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3382 | .psize = 407, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3383 | .digest = "\xf3\x47\x7e\x7c\xd9\x54\x17\xaf" |
| 3384 | "\x89\xa6\xb8\x79\x4c\x31\x0c\xf0", |
| 3385 | }, { /* Test Vector #4 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3386 | .plaintext = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3387 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 3388 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3389 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0" |
| 3390 | "\x27\x54\x77\x61\x73\x20\x62\x72" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3391 | "\x69\x6c\x6c\x69\x67\x2c\x20\x61" |
| 3392 | "\x6e\x64\x20\x74\x68\x65\x20\x73" |
| 3393 | "\x6c\x69\x74\x68\x79\x20\x74\x6f" |
| 3394 | "\x76\x65\x73\x0a\x44\x69\x64\x20" |
| 3395 | "\x67\x79\x72\x65\x20\x61\x6e\x64" |
| 3396 | "\x20\x67\x69\x6d\x62\x6c\x65\x20" |
| 3397 | "\x69\x6e\x20\x74\x68\x65\x20\x77" |
| 3398 | "\x61\x62\x65\x3a\x0a\x41\x6c\x6c" |
| 3399 | "\x20\x6d\x69\x6d\x73\x79\x20\x77" |
| 3400 | "\x65\x72\x65\x20\x74\x68\x65\x20" |
| 3401 | "\x62\x6f\x72\x6f\x67\x6f\x76\x65" |
| 3402 | "\x73\x2c\x0a\x41\x6e\x64\x20\x74" |
| 3403 | "\x68\x65\x20\x6d\x6f\x6d\x65\x20" |
| 3404 | "\x72\x61\x74\x68\x73\x20\x6f\x75" |
| 3405 | "\x74\x67\x72\x61\x62\x65\x2e", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3406 | .psize = 159, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3407 | .digest = "\x45\x41\x66\x9a\x7e\xaa\xee\x61" |
| 3408 | "\xe7\x08\xdc\x7c\xbc\xc5\xeb\x62", |
| 3409 | }, { /* Test Vector #5 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3410 | .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3411 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3412 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3413 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3414 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 3415 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3416 | .psize = 48, |
| 3417 | .digest = "\x03\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3418 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3419 | }, { /* Test Vector #6 */ |
| 3420 | .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00" |
| 3421 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3422 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 3423 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 3424 | "\x02\x00\x00\x00\x00\x00\x00\x00" |
| 3425 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 3426 | .psize = 48, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3427 | .digest = "\x03\x00\x00\x00\x00\x00\x00\x00" |
| 3428 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 3429 | }, { /* Test Vector #7 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3430 | .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3431 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3432 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3433 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3434 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3435 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 3436 | "\xf0\xff\xff\xff\xff\xff\xff\xff" |
| 3437 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 3438 | "\x11\x00\x00\x00\x00\x00\x00\x00" |
| 3439 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3440 | .psize = 80, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3441 | .digest = "\x05\x00\x00\x00\x00\x00\x00\x00" |
| 3442 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 3443 | }, { /* Test Vector #8 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3444 | .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3445 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3446 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3447 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3448 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3449 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 3450 | "\xfb\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 3451 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 3452 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 3453 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3454 | .psize = 80, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3455 | .digest = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3456 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 3457 | }, { /* Test Vector #9 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3458 | .plaintext = "\x02\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3459 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3460 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3461 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3462 | "\xfd\xff\xff\xff\xff\xff\xff\xff" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3463 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3464 | .psize = 48, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3465 | .digest = "\xfa\xff\xff\xff\xff\xff\xff\xff" |
| 3466 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 3467 | }, { /* Test Vector #10 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3468 | .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3469 | "\x04\x00\x00\x00\x00\x00\x00\x00" |
| 3470 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3471 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3472 | "\xe3\x35\x94\xd7\x50\x5e\x43\xb9" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3473 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3474 | "\x33\x94\xd7\x50\x5e\x43\x79\xcd" |
| 3475 | "\x01\x00\x00\x00\x00\x00\x00\x00" |
| 3476 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3477 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3478 | "\x01\x00\x00\x00\x00\x00\x00\x00" |
| 3479 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3480 | .psize = 96, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3481 | .digest = "\x14\x00\x00\x00\x00\x00\x00\x00" |
| 3482 | "\x55\x00\x00\x00\x00\x00\x00\x00", |
| 3483 | }, { /* Test Vector #11 */ |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3484 | .plaintext = "\x01\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3485 | "\x04\x00\x00\x00\x00\x00\x00\x00" |
| 3486 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3487 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3488 | "\xe3\x35\x94\xd7\x50\x5e\x43\xb9" |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3489 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3490 | "\x33\x94\xd7\x50\x5e\x43\x79\xcd" |
| 3491 | "\x01\x00\x00\x00\x00\x00\x00\x00" |
| 3492 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 3493 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Martin Willi | c2b7b20a | 2015-06-16 11:34:16 +0200 | [diff] [blame] | 3494 | .psize = 80, |
Martin Willi | eee9dc6 | 2015-06-01 13:43:59 +0200 | [diff] [blame] | 3495 | .digest = "\x13\x00\x00\x00\x00\x00\x00\x00" |
| 3496 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 3497 | }, |
| 3498 | }; |
| 3499 | |
| 3500 | /* |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3501 | * DES test vectors. |
| 3502 | */ |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 3503 | #define DES_ENC_TEST_VECTORS 11 |
| 3504 | #define DES_DEC_TEST_VECTORS 5 |
| 3505 | #define DES_CBC_ENC_TEST_VECTORS 6 |
| 3506 | #define DES_CBC_DEC_TEST_VECTORS 5 |
| 3507 | #define DES_CTR_ENC_TEST_VECTORS 2 |
| 3508 | #define DES_CTR_DEC_TEST_VECTORS 2 |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 3509 | #define DES3_EDE_ENC_TEST_VECTORS 4 |
| 3510 | #define DES3_EDE_DEC_TEST_VECTORS 4 |
| 3511 | #define DES3_EDE_CBC_ENC_TEST_VECTORS 2 |
| 3512 | #define DES3_EDE_CBC_DEC_TEST_VECTORS 2 |
| 3513 | #define DES3_EDE_CTR_ENC_TEST_VECTORS 2 |
| 3514 | #define DES3_EDE_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3515 | |
| 3516 | static struct cipher_testvec des_enc_tv_template[] = { |
| 3517 | { /* From Applied Cryptography */ |
| 3518 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3519 | .klen = 8, |
| 3520 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 3521 | .ilen = 8, |
| 3522 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 3523 | .rlen = 8, |
| 3524 | }, { /* Same key, different plaintext block */ |
| 3525 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3526 | .klen = 8, |
| 3527 | .input = "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 3528 | .ilen = 8, |
| 3529 | .result = "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 3530 | .rlen = 8, |
| 3531 | }, { /* Sbox test from NBS */ |
| 3532 | .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57", |
| 3533 | .klen = 8, |
| 3534 | .input = "\x01\xa1\xd6\xd0\x39\x77\x67\x42", |
| 3535 | .ilen = 8, |
| 3536 | .result = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 3537 | .rlen = 8, |
| 3538 | }, { /* Three blocks */ |
| 3539 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3540 | .klen = 8, |
| 3541 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3542 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 3543 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef", |
| 3544 | .ilen = 24, |
| 3545 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3546 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 3547 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90", |
| 3548 | .rlen = 24, |
| 3549 | }, { /* Weak key */ |
David Howells | 09e2178 | 2015-04-28 15:36:36 +0100 | [diff] [blame] | 3550 | .fail = true, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3551 | .wk = 1, |
| 3552 | .key = "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 3553 | .klen = 8, |
| 3554 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 3555 | .ilen = 8, |
| 3556 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 3557 | .rlen = 8, |
| 3558 | }, { /* Two blocks -- for testing encryption across pages */ |
| 3559 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3560 | .klen = 8, |
| 3561 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3562 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 3563 | .ilen = 16, |
| 3564 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3565 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 3566 | .rlen = 16, |
| 3567 | .np = 2, |
| 3568 | .tap = { 8, 8 } |
| 3569 | }, { /* Four blocks -- for testing encryption with chunking */ |
| 3570 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3571 | .klen = 8, |
| 3572 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3573 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 3574 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef" |
| 3575 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 3576 | .ilen = 32, |
| 3577 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3578 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 3579 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90" |
| 3580 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 3581 | .rlen = 32, |
| 3582 | .np = 3, |
| 3583 | .tap = { 14, 10, 8 } |
| 3584 | }, { |
| 3585 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3586 | .klen = 8, |
| 3587 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3588 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 3589 | "\xca\xfe\xba\xbe\xfe\xed\xbe\xef", |
| 3590 | .ilen = 24, |
| 3591 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3592 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b" |
| 3593 | "\xb4\x99\x26\xf7\x1f\xe1\xd4\x90", |
| 3594 | .rlen = 24, |
| 3595 | .np = 4, |
| 3596 | .tap = { 2, 1, 3, 18 } |
| 3597 | }, { |
| 3598 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3599 | .klen = 8, |
| 3600 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3601 | "\x22\x33\x44\x55\x66\x77\x88\x99", |
| 3602 | .ilen = 16, |
| 3603 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3604 | "\xf7\x9c\x89\x2a\x33\x8f\x4a\x8b", |
| 3605 | .rlen = 16, |
| 3606 | .np = 5, |
| 3607 | .tap = { 2, 2, 2, 2, 8 } |
| 3608 | }, { |
| 3609 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3610 | .klen = 8, |
| 3611 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 3612 | .ilen = 8, |
| 3613 | .result = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 3614 | .rlen = 8, |
| 3615 | .np = 8, |
| 3616 | .tap = { 1, 1, 1, 1, 1, 1, 1, 1 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 3617 | }, { /* Generated with Crypto++ */ |
| 3618 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3619 | .klen = 8, |
| 3620 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3621 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3622 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3623 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3624 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3625 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3626 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3627 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3628 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3629 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3630 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3631 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3632 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3633 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3634 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3635 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3636 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3637 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3638 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3639 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3640 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3641 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3642 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3643 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3644 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3645 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3646 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3647 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3648 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3649 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3650 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 3651 | .ilen = 248, |
| 3652 | .result = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57" |
| 3653 | "\x92\xB9\x77\xFF\x2F\x47\x58\xDD" |
| 3654 | "\xD7\x8A\x91\x95\x26\x33\x78\xB2" |
| 3655 | "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF" |
| 3656 | "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3" |
| 3657 | "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55" |
| 3658 | "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD" |
| 3659 | "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8" |
| 3660 | "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9" |
| 3661 | "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94" |
| 3662 | "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4" |
| 3663 | "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC" |
| 3664 | "\x73\x58\x11\x1F\x81\xD7\x21\x1A" |
| 3665 | "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5" |
| 3666 | "\x2E\x51\x16\xCA\x09\x89\x54\x62" |
| 3667 | "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4" |
| 3668 | "\x62\xF0\x02\x58\x83\xAF\x30\x87" |
| 3669 | "\x85\x3F\x01\xCD\x8E\x58\x42\xC4" |
| 3670 | "\x41\x73\xE0\x15\x0A\xE6\x2E\x80" |
| 3671 | "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2" |
| 3672 | "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E" |
| 3673 | "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F" |
| 3674 | "\x14\xA0\x66\xAB\x79\x39\xD0\x8E" |
| 3675 | "\xE9\x95\x61\x74\x12\xED\x07\xD7" |
| 3676 | "\xDD\x95\xDC\x7B\x57\x25\x27\x9C" |
| 3677 | "\x51\x96\x16\xF7\x94\x61\xB8\x87" |
| 3678 | "\xF0\x21\x1B\x32\xFB\x07\x0F\x29" |
| 3679 | "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9" |
| 3680 | "\x46\x31\x4C\x5E\x2E\x95\x61\xEF" |
| 3681 | "\xE1\x58\x39\x09\xB4\x8B\x40\xAC" |
| 3682 | "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A", |
| 3683 | .rlen = 248, |
| 3684 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 3685 | .np = 3, |
| 3686 | .tap = { 248 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3687 | }, |
| 3688 | }; |
| 3689 | |
| 3690 | static struct cipher_testvec des_dec_tv_template[] = { |
| 3691 | { /* From Applied Cryptography */ |
| 3692 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3693 | .klen = 8, |
| 3694 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d", |
| 3695 | .ilen = 8, |
| 3696 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7", |
| 3697 | .rlen = 8, |
| 3698 | }, { /* Sbox test from NBS */ |
| 3699 | .key = "\x7c\xa1\x10\x45\x4a\x1a\x6e\x57", |
| 3700 | .klen = 8, |
| 3701 | .input = "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 3702 | .ilen = 8, |
| 3703 | .result = "\x01\xa1\xd6\xd0\x39\x77\x67\x42", |
| 3704 | .rlen = 8, |
| 3705 | }, { /* Two blocks, for chunking test */ |
| 3706 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3707 | .klen = 8, |
| 3708 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3709 | "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 3710 | .ilen = 16, |
| 3711 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3712 | "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5", |
| 3713 | .rlen = 16, |
| 3714 | .np = 2, |
| 3715 | .tap = { 8, 8 } |
| 3716 | }, { |
| 3717 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3718 | .klen = 8, |
| 3719 | .input = "\xc9\x57\x44\x25\x6a\x5e\xd3\x1d" |
| 3720 | "\x69\x0f\x5b\x0d\x9a\x26\x93\x9b", |
| 3721 | .ilen = 16, |
| 3722 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xe7" |
| 3723 | "\xa3\x99\x7b\xca\xaf\x69\xa0\xf5", |
| 3724 | .rlen = 16, |
| 3725 | .np = 3, |
| 3726 | .tap = { 3, 12, 1 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 3727 | }, { /* Generated with Crypto++ */ |
| 3728 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3729 | .klen = 8, |
| 3730 | .input = "\x88\xCB\x1F\xAB\x2F\x2A\x49\x57" |
| 3731 | "\x92\xB9\x77\xFF\x2F\x47\x58\xDD" |
| 3732 | "\xD7\x8A\x91\x95\x26\x33\x78\xB2" |
| 3733 | "\x33\xBA\xB2\x3E\x02\xF5\x1F\xEF" |
| 3734 | "\x98\xC5\xA6\xD2\x7D\x79\xEC\xB3" |
| 3735 | "\x45\xF3\x4C\x61\xAC\x6C\xC2\x55" |
| 3736 | "\xE5\xD3\x06\x58\x8A\x42\x3E\xDD" |
| 3737 | "\x3D\x20\x45\xE9\x6F\x0D\x25\xA8" |
| 3738 | "\xA5\xC7\x69\xCE\xD5\x3B\x7B\xC9" |
| 3739 | "\x9E\x65\xE7\xA3\xF2\xE4\x18\x94" |
| 3740 | "\xD2\x81\xE9\x33\x2B\x2D\x49\xC4" |
| 3741 | "\xFE\xDA\x7F\xE2\xF2\x8C\x9C\xDC" |
| 3742 | "\x73\x58\x11\x1F\x81\xD7\x21\x1A" |
| 3743 | "\x80\xD0\x0D\xE8\x45\xD6\xD8\xD5" |
| 3744 | "\x2E\x51\x16\xCA\x09\x89\x54\x62" |
| 3745 | "\xF7\x04\x3D\x75\xB9\xA3\x84\xF4" |
| 3746 | "\x62\xF0\x02\x58\x83\xAF\x30\x87" |
| 3747 | "\x85\x3F\x01\xCD\x8E\x58\x42\xC4" |
| 3748 | "\x41\x73\xE0\x15\x0A\xE6\x2E\x80" |
| 3749 | "\x94\xF8\x5B\x3A\x4E\xDF\x51\xB2" |
| 3750 | "\x9D\xE4\xC4\x9D\xF7\x3F\xF8\x8E" |
| 3751 | "\x37\x22\x4D\x00\x2A\xEF\xC1\x0F" |
| 3752 | "\x14\xA0\x66\xAB\x79\x39\xD0\x8E" |
| 3753 | "\xE9\x95\x61\x74\x12\xED\x07\xD7" |
| 3754 | "\xDD\x95\xDC\x7B\x57\x25\x27\x9C" |
| 3755 | "\x51\x96\x16\xF7\x94\x61\xB8\x87" |
| 3756 | "\xF0\x21\x1B\x32\xFB\x07\x0F\x29" |
| 3757 | "\x56\xBD\x9D\x22\xA2\x9F\xA2\xB9" |
| 3758 | "\x46\x31\x4C\x5E\x2E\x95\x61\xEF" |
| 3759 | "\xE1\x58\x39\x09\xB4\x8B\x40\xAC" |
| 3760 | "\x5F\x62\xC7\x72\xD9\xFC\xCB\x9A", |
| 3761 | .ilen = 248, |
| 3762 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3763 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3764 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3765 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3766 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3767 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3768 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3769 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3770 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3771 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3772 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3773 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3774 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3775 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3776 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3777 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3778 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3779 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3780 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3781 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3782 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3783 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3784 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3785 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3786 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3787 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3788 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3789 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3790 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3791 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3792 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 3793 | .rlen = 248, |
| 3794 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 3795 | .np = 3, |
| 3796 | .tap = { 248 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3797 | }, |
| 3798 | }; |
| 3799 | |
| 3800 | static struct cipher_testvec des_cbc_enc_tv_template[] = { |
| 3801 | { /* From OpenSSL */ |
| 3802 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3803 | .klen = 8, |
| 3804 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 3805 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 3806 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 3807 | "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 3808 | .ilen = 24, |
| 3809 | .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4" |
| 3810 | "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb" |
| 3811 | "\x46\x8e\x91\x15\x78\x88\xba\x68", |
| 3812 | .rlen = 24, |
| 3813 | }, { /* FIPS Pub 81 */ |
| 3814 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3815 | .klen = 8, |
| 3816 | .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef", |
| 3817 | .input = "\x4e\x6f\x77\x20\x69\x73\x20\x74", |
| 3818 | .ilen = 8, |
| 3819 | .result = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 3820 | .rlen = 8, |
| 3821 | }, { |
| 3822 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3823 | .klen = 8, |
| 3824 | .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 3825 | .input = "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 3826 | .ilen = 8, |
| 3827 | .result = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3828 | .rlen = 8, |
| 3829 | }, { |
| 3830 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3831 | .klen = 8, |
| 3832 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3833 | .input = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 3834 | .ilen = 8, |
| 3835 | .result = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 3836 | .rlen = 8, |
| 3837 | }, { /* Copy of openssl vector for chunk testing */ |
| 3838 | /* From OpenSSL */ |
| 3839 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3840 | .klen = 8, |
| 3841 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 3842 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 3843 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 3844 | "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 3845 | .ilen = 24, |
| 3846 | .result = "\xcc\xd1\x73\xff\xab\x20\x39\xf4" |
| 3847 | "\xac\xd8\xae\xfd\xdf\xd8\xa1\xeb" |
| 3848 | "\x46\x8e\x91\x15\x78\x88\xba\x68", |
| 3849 | .rlen = 24, |
| 3850 | .np = 2, |
| 3851 | .tap = { 13, 11 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 3852 | }, { /* Generated with Crypto++ */ |
| 3853 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3854 | .klen = 8, |
| 3855 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 3856 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3857 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3858 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 3859 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 3860 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 3861 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 3862 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 3863 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 3864 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 3865 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 3866 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 3867 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 3868 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 3869 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 3870 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 3871 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 3872 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 3873 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 3874 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 3875 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 3876 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 3877 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 3878 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 3879 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 3880 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 3881 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 3882 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 3883 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 3884 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 3885 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 3886 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 3887 | .ilen = 248, |
| 3888 | .result = "\x71\xCC\x56\x1C\x87\x2C\x43\x20" |
| 3889 | "\x1C\x20\x13\x09\xF9\x2B\x40\x47" |
| 3890 | "\x99\x10\xD1\x1B\x65\x33\x33\xBA" |
| 3891 | "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4" |
| 3892 | "\x5A\x0C\x12\x96\x32\x57\xAA\x26" |
| 3893 | "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E" |
| 3894 | "\x81\x72\x74\xDE\x30\x19\x69\x49" |
| 3895 | "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1" |
| 3896 | "\xE8\x6D\x0D\x05\x83\xA5\x12\x08" |
| 3897 | "\x47\xF8\x88\x03\x86\x51\x3C\xEF" |
| 3898 | "\xE7\x11\x73\x4D\x44\x2B\xE2\x16" |
| 3899 | "\xE8\xA5\x06\x50\x66\x70\x0E\x14" |
| 3900 | "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F" |
| 3901 | "\x56\xB6\xA7\x44\xDB\x86\xAB\x69" |
| 3902 | "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE" |
| 3903 | "\x49\x90\x88\x6A\x09\x8F\x76\x59" |
| 3904 | "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A" |
| 3905 | "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B" |
| 3906 | "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63" |
| 3907 | "\x80\x02\x61\x2F\xE3\x46\xB6\xB5" |
| 3908 | "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F" |
| 3909 | "\x20\xCF\xD2\x47\x4E\x39\x65\xB3" |
| 3910 | "\x11\x87\xA2\x6C\x49\x7E\x36\xC7" |
| 3911 | "\x62\x8B\x48\x0D\x6A\x64\x00\xBD" |
| 3912 | "\x71\x91\x8C\xE9\x70\x19\x01\x4F" |
| 3913 | "\x4E\x68\x23\xBA\xDA\x24\x2E\x45" |
| 3914 | "\x02\x14\x33\x21\xAE\x58\x4B\xCF" |
| 3915 | "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93" |
| 3916 | "\xD7\x07\x8A\xD7\x18\x92\x36\x8C" |
| 3917 | "\x82\xA9\xBD\x6A\x31\x91\x39\x11" |
| 3918 | "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63", |
| 3919 | .rlen = 248, |
| 3920 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 3921 | .np = 3, |
| 3922 | .tap = { 248 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 3923 | }, |
| 3924 | }; |
| 3925 | |
| 3926 | static struct cipher_testvec des_cbc_dec_tv_template[] = { |
| 3927 | { /* FIPS Pub 81 */ |
| 3928 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3929 | .klen = 8, |
| 3930 | .iv = "\x12\x34\x56\x78\x90\xab\xcd\xef", |
| 3931 | .input = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 3932 | .ilen = 8, |
| 3933 | .result = "\x4e\x6f\x77\x20\x69\x73\x20\x74", |
| 3934 | .rlen = 8, |
| 3935 | }, { |
| 3936 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3937 | .klen = 8, |
| 3938 | .iv = "\xe5\xc7\xcd\xde\x87\x2b\xf2\x7c", |
| 3939 | .input = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3940 | .ilen = 8, |
| 3941 | .result = "\x68\x65\x20\x74\x69\x6d\x65\x20", |
| 3942 | .rlen = 8, |
| 3943 | }, { |
| 3944 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3945 | .klen = 8, |
| 3946 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3947 | .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 3948 | .ilen = 8, |
| 3949 | .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 3950 | .rlen = 8, |
| 3951 | }, { /* Copy of above, for chunk testing */ |
| 3952 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 3953 | .klen = 8, |
| 3954 | .iv = "\x43\xe9\x34\x00\x8c\x38\x9c\x0f", |
| 3955 | .input = "\x68\x37\x88\x49\x9a\x7c\x05\xf6", |
| 3956 | .ilen = 8, |
| 3957 | .result = "\x66\x6f\x72\x20\x61\x6c\x6c\x20", |
| 3958 | .rlen = 8, |
| 3959 | .np = 2, |
| 3960 | .tap = { 4, 4 } |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 3961 | }, { /* Generated with Crypto++ */ |
| 3962 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 3963 | .klen = 8, |
| 3964 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 3965 | .input = "\x71\xCC\x56\x1C\x87\x2C\x43\x20" |
| 3966 | "\x1C\x20\x13\x09\xF9\x2B\x40\x47" |
| 3967 | "\x99\x10\xD1\x1B\x65\x33\x33\xBA" |
| 3968 | "\x88\x0D\xA2\xD1\x86\xFF\x4D\xF4" |
| 3969 | "\x5A\x0C\x12\x96\x32\x57\xAA\x26" |
| 3970 | "\xA7\xF4\x32\x8D\xBC\x10\x31\x9E" |
| 3971 | "\x81\x72\x74\xDE\x30\x19\x69\x49" |
| 3972 | "\x54\x9C\xC3\xEB\x0B\x97\xDD\xD1" |
| 3973 | "\xE8\x6D\x0D\x05\x83\xA5\x12\x08" |
| 3974 | "\x47\xF8\x88\x03\x86\x51\x3C\xEF" |
| 3975 | "\xE7\x11\x73\x4D\x44\x2B\xE2\x16" |
| 3976 | "\xE8\xA5\x06\x50\x66\x70\x0E\x14" |
| 3977 | "\xBA\x21\x3B\xD5\x23\x5B\xA7\x8F" |
| 3978 | "\x56\xB6\xA7\x44\xDB\x86\xAB\x69" |
| 3979 | "\x33\x3C\xBE\x64\xC4\x22\xD3\xFE" |
| 3980 | "\x49\x90\x88\x6A\x09\x8F\x76\x59" |
| 3981 | "\xCB\xB7\xA0\x2D\x79\x75\x92\x8A" |
| 3982 | "\x82\x1D\xC2\xFE\x09\x1F\x78\x6B" |
| 3983 | "\x2F\xD6\xA4\x87\x1E\xC4\x53\x63" |
| 3984 | "\x80\x02\x61\x2F\xE3\x46\xB6\xB5" |
| 3985 | "\xAA\x95\xF4\xEE\xA7\x64\x2B\x4F" |
| 3986 | "\x20\xCF\xD2\x47\x4E\x39\x65\xB3" |
| 3987 | "\x11\x87\xA2\x6C\x49\x7E\x36\xC7" |
| 3988 | "\x62\x8B\x48\x0D\x6A\x64\x00\xBD" |
| 3989 | "\x71\x91\x8C\xE9\x70\x19\x01\x4F" |
| 3990 | "\x4E\x68\x23\xBA\xDA\x24\x2E\x45" |
| 3991 | "\x02\x14\x33\x21\xAE\x58\x4B\xCF" |
| 3992 | "\x3B\x4B\xE8\xF8\xF6\x4F\x34\x93" |
| 3993 | "\xD7\x07\x8A\xD7\x18\x92\x36\x8C" |
| 3994 | "\x82\xA9\xBD\x6A\x31\x91\x39\x11" |
| 3995 | "\xC6\x4A\xF3\x55\xC7\x29\x2E\x63", |
| 3996 | .ilen = 248, |
| 3997 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 3998 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 3999 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 4000 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 4001 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 4002 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 4003 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 4004 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 4005 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 4006 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 4007 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 4008 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 4009 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 4010 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 4011 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 4012 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 4013 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 4014 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 4015 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 4016 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 4017 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 4018 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 4019 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 4020 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 4021 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 4022 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 4023 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 4024 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 4025 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 4026 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 4027 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 4028 | .rlen = 248, |
| 4029 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 4030 | .np = 3, |
| 4031 | .tap = { 248 - 10, 2, 8 }, |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 4032 | }, |
| 4033 | }; |
| 4034 | |
| 4035 | static struct cipher_testvec des_ctr_enc_tv_template[] = { |
| 4036 | { /* Generated with Crypto++ */ |
| 4037 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 4038 | .klen = 8, |
| 4039 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 4040 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 4041 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 4042 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 4043 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 4044 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 4045 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 4046 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 4047 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 4048 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 4049 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 4050 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 4051 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 4052 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 4053 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 4054 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 4055 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 4056 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 4057 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 4058 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 4059 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 4060 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 4061 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 4062 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 4063 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 4064 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 4065 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 4066 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 4067 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 4068 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 4069 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 4070 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 4071 | .ilen = 248, |
| 4072 | .result = "\x2F\x96\x06\x0F\x50\xC9\x68\x03" |
| 4073 | "\x0F\x31\xD4\x64\xA5\x29\x77\x35" |
| 4074 | "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E" |
| 4075 | "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02" |
| 4076 | "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C" |
| 4077 | "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47" |
| 4078 | "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B" |
| 4079 | "\xC8\x0F\x85\xDC\x03\x13\xA9\x04" |
| 4080 | "\x19\x40\xBE\xBE\x5C\x49\x4A\x69" |
| 4081 | "\xED\xE8\xE1\x9E\x14\x43\x74\xDE" |
| 4082 | "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB" |
| 4083 | "\xBE\x4C\x91\x43\x22\x65\x72\x48" |
| 4084 | "\xE2\x12\xED\x88\xAC\xA7\xC9\x91" |
| 4085 | "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F" |
| 4086 | "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA" |
| 4087 | "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C" |
| 4088 | "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31" |
| 4089 | "\xB7\x30\x1C\x21\x38\xFB\x68\x8C" |
| 4090 | "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12" |
| 4091 | "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86" |
| 4092 | "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B" |
| 4093 | "\x96\x28\x72\x6B\xF3\x30\xA9\xEB" |
| 4094 | "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7" |
| 4095 | "\xC0\xEF\x07\xB7\x77\x2C\x00\x05" |
| 4096 | "\x46\xBD\xFE\x53\x81\x8B\xA4\x03" |
| 4097 | "\x20\x0F\xDB\x78\x0B\x1F\x53\x04" |
| 4098 | "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E" |
| 4099 | "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2" |
| 4100 | "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD" |
| 4101 | "\x19\x7F\x99\x19\x53\xCE\x1D\x14" |
| 4102 | "\x69\x74\xA1\x06\x46\x0F\x4E\x75", |
| 4103 | .rlen = 248, |
| 4104 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 4105 | .np = 3, |
| 4106 | .tap = { 248 - 10, 2, 8 }, |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 4107 | }, { /* Generated with Crypto++ */ |
| 4108 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 4109 | .klen = 8, |
| 4110 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 4111 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 4112 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 4113 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 4114 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 4115 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 4116 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 4117 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 4118 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 4119 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 4120 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 4121 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 4122 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 4123 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 4124 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 4125 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 4126 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 4127 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 4128 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 4129 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 4130 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 4131 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 4132 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 4133 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 4134 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 4135 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 4136 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 4137 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 4138 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 4139 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 4140 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 4141 | "\xC6\x2F\xBB\x24\x8D\x19\x82", |
| 4142 | .ilen = 247, |
| 4143 | .result = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3" |
| 4144 | "\xF4\x10\xCC\x21\x99\xEB\xDC\x15" |
| 4145 | "\x19\x13\x93\x27\x9D\xB6\x6F\x45" |
| 4146 | "\x17\x55\x61\x72\xC8\xD3\x7F\xA5" |
| 4147 | "\x32\xD0\xD3\x02\x15\xA4\x05\x23" |
| 4148 | "\x9C\x23\x61\x60\x77\x7B\x6C\x95" |
| 4149 | "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D" |
| 4150 | "\xC8\x47\xD5\x94\xE7\x53\xC8\x23" |
| 4151 | "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12" |
| 4152 | "\xA4\x42\x15\x34\xF7\x5F\xDC\x58" |
| 4153 | "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6" |
| 4154 | "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8" |
| 4155 | "\x02\x82\xBB\x16\xB8\xDC\xB5\x58" |
| 4156 | "\xC3\x2D\x79\xE4\x25\x79\x43\xF9" |
| 4157 | "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E" |
| 4158 | "\x04\x25\x79\xFD\x27\xFB\xC4\xEA" |
| 4159 | "\x32\x94\x48\x92\xF3\x68\x1A\x7F" |
| 4160 | "\x36\x33\x43\x79\xF7\xCA\xC2\x38" |
| 4161 | "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C" |
| 4162 | "\x40\x57\x3E\xED\x00\x9F\x22\x6E" |
| 4163 | "\x80\x99\x0B\xCC\x40\x63\x46\x8A" |
| 4164 | "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9" |
| 4165 | "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D" |
| 4166 | "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C" |
| 4167 | "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A" |
| 4168 | "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E" |
| 4169 | "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0" |
| 4170 | "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7" |
| 4171 | "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94" |
| 4172 | "\xA5\xA6\xE7\xB0\x51\x36\x52\x37" |
| 4173 | "\x91\x45\x05\x3E\x58\xBF\x32", |
| 4174 | .rlen = 247, |
| 4175 | .also_non_np = 1, |
| 4176 | .np = 2, |
| 4177 | .tap = { 247 - 8, 8 }, |
| 4178 | }, |
| 4179 | }; |
| 4180 | |
| 4181 | static struct cipher_testvec des_ctr_dec_tv_template[] = { |
| 4182 | { /* Generated with Crypto++ */ |
| 4183 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 4184 | .klen = 8, |
| 4185 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 4186 | .input = "\x2F\x96\x06\x0F\x50\xC9\x68\x03" |
| 4187 | "\x0F\x31\xD4\x64\xA5\x29\x77\x35" |
| 4188 | "\xBC\x7A\x9F\x19\xE7\x0D\x33\x3E" |
| 4189 | "\x12\x0B\x8C\xAE\x48\xAE\xD9\x02" |
| 4190 | "\x0A\xD4\xB0\xD6\x37\xB2\x65\x1C" |
| 4191 | "\x4B\x65\xEB\x24\xB5\x8E\xAD\x47" |
| 4192 | "\x0D\xDA\x79\x77\xA0\x29\xA0\x2B" |
| 4193 | "\xC8\x0F\x85\xDC\x03\x13\xA9\x04" |
| 4194 | "\x19\x40\xBE\xBE\x5C\x49\x4A\x69" |
| 4195 | "\xED\xE8\xE1\x9E\x14\x43\x74\xDE" |
| 4196 | "\xEC\x6E\x11\x3F\x36\xEF\x7B\xFB" |
| 4197 | "\xBE\x4C\x91\x43\x22\x65\x72\x48" |
| 4198 | "\xE2\x12\xED\x88\xAC\xA7\xC9\x91" |
| 4199 | "\x14\xA2\x36\x1C\x29\xFF\xC8\x4F" |
| 4200 | "\x72\x5C\x4B\xB0\x1E\x93\xC2\xFA" |
| 4201 | "\x9D\x53\x86\xA0\xAE\xC6\xB7\x3C" |
| 4202 | "\x59\x0C\xD0\x8F\xA6\xD8\xA4\x31" |
| 4203 | "\xB7\x30\x1C\x21\x38\xFB\x68\x8C" |
| 4204 | "\x2E\xF5\x6E\x73\xC3\x16\x5F\x12" |
| 4205 | "\x0C\x33\xB9\x1E\x7B\x70\xDE\x86" |
| 4206 | "\x32\xB3\xC1\x16\xAB\xD9\x49\x0B" |
| 4207 | "\x96\x28\x72\x6B\xF3\x30\xA9\xEB" |
| 4208 | "\x69\xE2\x1E\x58\x46\xA2\x8E\xC7" |
| 4209 | "\xC0\xEF\x07\xB7\x77\x2C\x00\x05" |
| 4210 | "\x46\xBD\xFE\x53\x81\x8B\xA4\x03" |
| 4211 | "\x20\x0F\xDB\x78\x0B\x1F\x53\x04" |
| 4212 | "\x4C\x60\x4C\xC3\x2A\x86\x86\x7E" |
| 4213 | "\x13\xD2\x26\xED\x5D\x3E\x9C\xF2" |
| 4214 | "\x5C\xC4\x15\xC9\x9A\x21\xC5\xCD" |
| 4215 | "\x19\x7F\x99\x19\x53\xCE\x1D\x14" |
| 4216 | "\x69\x74\xA1\x06\x46\x0F\x4E\x75", |
| 4217 | .ilen = 248, |
| 4218 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 4219 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 4220 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 4221 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 4222 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 4223 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 4224 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 4225 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 4226 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 4227 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 4228 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 4229 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 4230 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 4231 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 4232 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 4233 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 4234 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 4235 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 4236 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 4237 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 4238 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 4239 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 4240 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 4241 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 4242 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 4243 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 4244 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 4245 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 4246 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 4247 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 4248 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB", |
| 4249 | .rlen = 248, |
| 4250 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 4251 | .np = 3, |
| 4252 | .tap = { 248 - 10, 2, 8 }, |
Jussi Kivilinna | 8163fc3 | 2012-10-20 14:53:07 +0300 | [diff] [blame] | 4253 | }, { /* Generated with Crypto++ */ |
| 4254 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55", |
| 4255 | .klen = 8, |
| 4256 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47", |
| 4257 | .input = "\x62\xE5\xF4\xDC\x99\xE7\x89\xE3" |
| 4258 | "\xF4\x10\xCC\x21\x99\xEB\xDC\x15" |
| 4259 | "\x19\x13\x93\x27\x9D\xB6\x6F\x45" |
| 4260 | "\x17\x55\x61\x72\xC8\xD3\x7F\xA5" |
| 4261 | "\x32\xD0\xD3\x02\x15\xA4\x05\x23" |
| 4262 | "\x9C\x23\x61\x60\x77\x7B\x6C\x95" |
| 4263 | "\x26\x49\x42\x2E\xF3\xC1\x8C\x6D" |
| 4264 | "\xC8\x47\xD5\x94\xE7\x53\xC8\x23" |
| 4265 | "\x1B\xA5\x0B\xCB\x12\xD3\x7A\x12" |
| 4266 | "\xA4\x42\x15\x34\xF7\x5F\xDC\x58" |
| 4267 | "\x5B\x58\x4C\xAD\xD1\x33\x8E\xE6" |
| 4268 | "\xE5\xA0\xDA\x4D\x94\x3D\x63\xA8" |
| 4269 | "\x02\x82\xBB\x16\xB8\xDC\xB5\x58" |
| 4270 | "\xC3\x2D\x79\xE4\x25\x79\x43\xF9" |
| 4271 | "\x6D\xD3\xCA\xC0\xE8\x12\xD4\x7E" |
| 4272 | "\x04\x25\x79\xFD\x27\xFB\xC4\xEA" |
| 4273 | "\x32\x94\x48\x92\xF3\x68\x1A\x7F" |
| 4274 | "\x36\x33\x43\x79\xF7\xCA\xC2\x38" |
| 4275 | "\xC0\x68\xD4\x53\xA9\xCC\x43\x0C" |
| 4276 | "\x40\x57\x3E\xED\x00\x9F\x22\x6E" |
| 4277 | "\x80\x99\x0B\xCC\x40\x63\x46\x8A" |
| 4278 | "\xE8\xC4\x9B\x6D\x7A\x08\x6E\xA9" |
| 4279 | "\x6F\x84\xBC\xB3\xF4\x95\x0B\x2D" |
| 4280 | "\x6A\xBA\x37\x50\xC3\xCF\x9F\x7C" |
| 4281 | "\x59\x5E\xDE\x0B\x30\xFA\x34\x8A" |
| 4282 | "\xF8\xD1\xA2\xF8\x4E\xBD\x5D\x5E" |
| 4283 | "\x7D\x71\x99\xE0\xF6\xE5\x7C\xE0" |
| 4284 | "\x6D\xEE\x82\x89\x92\xD4\xF5\xD7" |
| 4285 | "\xDF\x85\x2D\xE1\xB2\xD6\xAB\x94" |
| 4286 | "\xA5\xA6\xE7\xB0\x51\x36\x52\x37" |
| 4287 | "\x91\x45\x05\x3E\x58\xBF\x32", |
| 4288 | .ilen = 247, |
| 4289 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 4290 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 4291 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 4292 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 4293 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 4294 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 4295 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 4296 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 4297 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 4298 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 4299 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 4300 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 4301 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 4302 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 4303 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 4304 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 4305 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 4306 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 4307 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 4308 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 4309 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 4310 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 4311 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 4312 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 4313 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 4314 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 4315 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 4316 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 4317 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 4318 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 4319 | "\xC6\x2F\xBB\x24\x8D\x19\x82", |
| 4320 | .rlen = 247, |
| 4321 | .also_non_np = 1, |
| 4322 | .np = 2, |
| 4323 | .tap = { 247 - 8, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4324 | }, |
| 4325 | }; |
| 4326 | |
| 4327 | static struct cipher_testvec des3_ede_enc_tv_template[] = { |
| 4328 | { /* These are from openssl */ |
| 4329 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 4330 | "\x55\x55\x55\x55\x55\x55\x55\x55" |
| 4331 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 4332 | .klen = 24, |
| 4333 | .input = "\x73\x6f\x6d\x65\x64\x61\x74\x61", |
| 4334 | .ilen = 8, |
| 4335 | .result = "\x18\xd7\x48\xe5\x63\x62\x05\x72", |
| 4336 | .rlen = 8, |
| 4337 | }, { |
| 4338 | .key = "\x03\x52\x02\x07\x67\x20\x82\x17" |
| 4339 | "\x86\x02\x87\x66\x59\x08\x21\x98" |
| 4340 | "\x64\x05\x6a\xbd\xfe\xa9\x34\x57", |
| 4341 | .klen = 24, |
| 4342 | .input = "\x73\x71\x75\x69\x67\x67\x6c\x65", |
| 4343 | .ilen = 8, |
| 4344 | .result = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30", |
| 4345 | .rlen = 8, |
| 4346 | }, { |
| 4347 | .key = "\x10\x46\x10\x34\x89\x98\x80\x20" |
| 4348 | "\x91\x07\xd0\x15\x89\x19\x01\x01" |
| 4349 | "\x19\x07\x92\x10\x98\x1a\x01\x01", |
| 4350 | .klen = 24, |
| 4351 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4352 | .ilen = 8, |
| 4353 | .result = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b", |
| 4354 | .rlen = 8, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 4355 | }, { /* Generated with Crypto++ */ |
| 4356 | .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67" |
| 4357 | "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D" |
| 4358 | "\xCE\xEB\xB4\x51\x72\xB4\x51\x72", |
| 4359 | .klen = 24, |
| 4360 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4361 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4362 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4363 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4364 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4365 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4366 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4367 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4368 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4369 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4370 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4371 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4372 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4373 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4374 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4375 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4376 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4377 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4378 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4379 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4380 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4381 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4382 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4383 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4384 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4385 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4386 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4387 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4388 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4389 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4390 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4391 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4392 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4393 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4394 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4395 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4396 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4397 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4398 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4399 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4400 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4401 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4402 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4403 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4404 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4405 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4406 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4407 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4408 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4409 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4410 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4411 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4412 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4413 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4414 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4415 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4416 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4417 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4418 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4419 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4420 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4421 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 4422 | .ilen = 496, |
| 4423 | .result = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA" |
| 4424 | "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4" |
| 4425 | "\x81\x01\x04\x00\x76\xFA\xED\xD3" |
| 4426 | "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64" |
| 4427 | "\xCA\x4E\x90\xE0\xC0\x63\x28\x92" |
| 4428 | "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77" |
| 4429 | "\x69\x56\xD0\x19\xAD\x00\x2D\x97" |
| 4430 | "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2" |
| 4431 | "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B" |
| 4432 | "\xEA\x32\x56\xE4\x0B\xAF\x27\x36" |
| 4433 | "\xAF\x08\xB9\x61\xB7\x48\x23\x27" |
| 4434 | "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7" |
| 4435 | "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6" |
| 4436 | "\x9D\xDA\x04\x59\xE2\x09\x48\x7E" |
| 4437 | "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E" |
| 4438 | "\x0D\x19\xFA\x33\x0F\xEE\x36\x68" |
| 4439 | "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA" |
| 4440 | "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16" |
| 4441 | "\x45\x86\x50\x01\x70\x35\x99\x92" |
| 4442 | "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B" |
| 4443 | "\xD2\x04\x84\x90\xC4\x27\xDF\x0A" |
| 4444 | "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA" |
| 4445 | "\xB3\x18\x5C\xC3\x93\x63\x5A\x68" |
| 4446 | "\x77\x02\xBA\xED\x62\x71\xB1\xD9" |
| 4447 | "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E" |
| 4448 | "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4" |
| 4449 | "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70" |
| 4450 | "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD" |
| 4451 | "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1" |
| 4452 | "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2" |
| 4453 | "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52" |
| 4454 | "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3" |
| 4455 | "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F" |
| 4456 | "\xDB\xEA\x84\x13\x26\x6C\x85\x4E" |
| 4457 | "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06" |
| 4458 | "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2" |
| 4459 | "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C" |
| 4460 | "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5" |
| 4461 | "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7" |
| 4462 | "\xD1\x17\x25\x08\xF9\xA9\xA6\x67" |
| 4463 | "\x38\x80\xD1\x22\xAB\x1A\xD7\x26" |
| 4464 | "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57" |
| 4465 | "\x31\xEC\xC9\xED\xDB\x79\xC0\x48" |
| 4466 | "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E" |
| 4467 | "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC" |
| 4468 | "\x58\xC8\xDE\x51\x4E\x17\x15\x11" |
| 4469 | "\x66\x58\xB6\x90\xDC\xDF\xA1\x49" |
| 4470 | "\xCA\x79\xE9\x31\x31\x42\xDC\x56" |
| 4471 | "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19" |
| 4472 | "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90" |
| 4473 | "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B" |
| 4474 | "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46" |
| 4475 | "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84" |
| 4476 | "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA" |
| 4477 | "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F" |
| 4478 | "\xE4\x82\x77\xCE\x87\xC0\x09\xF0" |
| 4479 | "\xD6\x10\x9E\x34\xE1\x0C\x67\x55" |
| 4480 | "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA" |
| 4481 | "\xF2\x7B\xBE\x75\x07\x42\x9D\x99" |
| 4482 | "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6" |
| 4483 | "\x93\x03\xD7\x51\x09\xFA\xBE\x68" |
| 4484 | "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63", |
| 4485 | .rlen = 496, |
| 4486 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 4487 | .np = 3, |
| 4488 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4489 | }, |
| 4490 | }; |
| 4491 | |
| 4492 | static struct cipher_testvec des3_ede_dec_tv_template[] = { |
| 4493 | { /* These are from openssl */ |
| 4494 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 4495 | "\x55\x55\x55\x55\x55\x55\x55\x55" |
| 4496 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 4497 | .klen = 24, |
| 4498 | .input = "\x18\xd7\x48\xe5\x63\x62\x05\x72", |
| 4499 | .ilen = 8, |
| 4500 | .result = "\x73\x6f\x6d\x65\x64\x61\x74\x61", |
| 4501 | .rlen = 8, |
| 4502 | }, { |
| 4503 | .key = "\x03\x52\x02\x07\x67\x20\x82\x17" |
| 4504 | "\x86\x02\x87\x66\x59\x08\x21\x98" |
| 4505 | "\x64\x05\x6a\xbd\xfe\xa9\x34\x57", |
| 4506 | .klen = 24, |
| 4507 | .input = "\xc0\x7d\x2a\x0f\xa5\x66\xfa\x30", |
| 4508 | .ilen = 8, |
| 4509 | .result = "\x73\x71\x75\x69\x67\x67\x6c\x65", |
| 4510 | .rlen = 8, |
| 4511 | }, { |
| 4512 | .key = "\x10\x46\x10\x34\x89\x98\x80\x20" |
| 4513 | "\x91\x07\xd0\x15\x89\x19\x01\x01" |
| 4514 | "\x19\x07\x92\x10\x98\x1a\x01\x01", |
| 4515 | .klen = 24, |
| 4516 | .input = "\xe1\xef\x62\xc3\x32\xfe\x82\x5b", |
| 4517 | .ilen = 8, |
| 4518 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 4519 | .rlen = 8, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 4520 | }, { /* Generated with Crypto++ */ |
| 4521 | .key = "\xF3\x9C\xD6\xF3\x9C\xB9\x5A\x67" |
| 4522 | "\x00\x5A\x67\x00\x2D\xCE\xEB\x2D" |
| 4523 | "\xCE\xEB\xB4\x51\x72\xB4\x51\x72", |
| 4524 | .klen = 24, |
| 4525 | .input = "\x4E\x9A\x40\x3D\x61\x7D\x17\xFA" |
| 4526 | "\x16\x86\x88\x0B\xD8\xAE\xF8\xE4" |
| 4527 | "\x81\x01\x04\x00\x76\xFA\xED\xD3" |
| 4528 | "\x44\x7E\x21\x9D\xF0\xFB\x2B\x64" |
| 4529 | "\xCA\x4E\x90\xE0\xC0\x63\x28\x92" |
| 4530 | "\xF3\x1F\xA4\x53\x2C\x77\xCC\x77" |
| 4531 | "\x69\x56\xD0\x19\xAD\x00\x2D\x97" |
| 4532 | "\xBC\xDE\x49\x6A\x82\xBC\x16\xE2" |
| 4533 | "\x2F\x3E\x72\xEE\xD1\xCE\xFC\x1B" |
| 4534 | "\xEA\x32\x56\xE4\x0B\xAF\x27\x36" |
| 4535 | "\xAF\x08\xB9\x61\xB7\x48\x23\x27" |
| 4536 | "\xEE\x4D\xC8\x79\x56\x06\xEB\xC7" |
| 4537 | "\x5B\xCA\x0A\xC6\x5E\x5C\xCB\xB6" |
| 4538 | "\x9D\xDA\x04\x59\xE2\x09\x48\x7E" |
| 4539 | "\x6B\x37\xC6\xFE\x92\xA9\x1E\x6E" |
| 4540 | "\x0D\x19\xFA\x33\x0F\xEE\x36\x68" |
| 4541 | "\x11\xBB\xF9\x5A\x73\xAB\x3A\xEA" |
| 4542 | "\xAC\x28\xD8\xD5\x27\xE8\x6B\x16" |
| 4543 | "\x45\x86\x50\x01\x70\x35\x99\x92" |
| 4544 | "\xDF\x0C\x07\x88\x8B\x7F\x9E\x4B" |
| 4545 | "\xD2\x04\x84\x90\xC4\x27\xDF\x0A" |
| 4546 | "\x49\xA8\xA7\x1A\x6D\x78\x16\xCA" |
| 4547 | "\xB3\x18\x5C\xC3\x93\x63\x5A\x68" |
| 4548 | "\x77\x02\xBA\xED\x62\x71\xB1\xD9" |
| 4549 | "\x5E\xE5\x6F\x1A\xCC\x1D\xBE\x2E" |
| 4550 | "\x11\xF3\xA6\x97\xCA\x8E\xBF\xB4" |
| 4551 | "\x56\xA1\x36\x6B\xB1\x0A\x3E\x70" |
| 4552 | "\xEA\xD7\xCD\x72\x7B\x79\xC8\xAD" |
| 4553 | "\x6B\xFE\xFB\xBA\x64\xAE\x19\xC1" |
| 4554 | "\x82\xCF\x8A\xA1\x50\x17\x7F\xB2" |
| 4555 | "\x6F\x7B\x0F\x52\xC5\x3E\x4A\x52" |
| 4556 | "\x3F\xD9\x3F\x01\xA6\x41\x1A\xB3" |
| 4557 | "\xB3\x7A\x0E\x8E\x75\xB2\xB1\x5F" |
| 4558 | "\xDB\xEA\x84\x13\x26\x6C\x85\x4E" |
| 4559 | "\xAE\x6B\xDC\xE7\xE7\xAD\xB0\x06" |
| 4560 | "\x5C\xBA\x92\xD0\x30\xBB\x8D\xD2" |
| 4561 | "\xAE\x4C\x70\x85\xA0\x07\xE3\x2C" |
| 4562 | "\xD1\x27\x9C\xCF\xDB\x13\xB7\xE5" |
| 4563 | "\xF9\x6A\x02\xD0\x39\x9D\xB6\xE7" |
| 4564 | "\xD1\x17\x25\x08\xF9\xA9\xA6\x67" |
| 4565 | "\x38\x80\xD1\x22\xAB\x1A\xD7\x26" |
| 4566 | "\xAD\xCA\x19\x1B\xFA\x18\xA7\x57" |
| 4567 | "\x31\xEC\xC9\xED\xDB\x79\xC0\x48" |
| 4568 | "\xAC\x31\x9F\x03\x8B\x62\x5B\x7E" |
| 4569 | "\x0E\xA6\xD0\x64\xEE\xEA\x00\xFC" |
| 4570 | "\x58\xC8\xDE\x51\x4E\x17\x15\x11" |
| 4571 | "\x66\x58\xB6\x90\xDC\xDF\xA1\x49" |
| 4572 | "\xCA\x79\xE9\x31\x31\x42\xDC\x56" |
| 4573 | "\x0B\xCD\xB6\x0D\xC7\x64\xF7\x19" |
| 4574 | "\xD9\x42\x05\x7F\xBC\x2F\xFC\x90" |
| 4575 | "\xAE\x29\x86\xAA\x43\x7A\x4F\x6B" |
| 4576 | "\xCE\xEA\xBC\x31\x8D\x65\x9D\x46" |
| 4577 | "\xEA\x77\xB4\xF9\x58\xEA\x5D\x84" |
| 4578 | "\xE4\xDC\x14\xBB\xBD\x15\x0E\xDA" |
| 4579 | "\xD8\xE4\xA4\x5D\x61\xF9\x58\x0F" |
| 4580 | "\xE4\x82\x77\xCE\x87\xC0\x09\xF0" |
| 4581 | "\xD6\x10\x9E\x34\xE1\x0C\x67\x55" |
| 4582 | "\x7B\x6D\xD5\x51\x4B\x00\xEE\xBA" |
| 4583 | "\xF2\x7B\xBE\x75\x07\x42\x9D\x99" |
| 4584 | "\x12\xE1\x71\x4A\xF9\x2A\xF5\xF6" |
| 4585 | "\x93\x03\xD7\x51\x09\xFA\xBE\x68" |
| 4586 | "\xD8\x45\xFF\x33\xBA\xBB\x2B\x63", |
| 4587 | .ilen = 496, |
| 4588 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4589 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4590 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4591 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4592 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4593 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4594 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4595 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4596 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4597 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4598 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4599 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4600 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4601 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4602 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4603 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4604 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4605 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4606 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4607 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4608 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4609 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4610 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4611 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4612 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4613 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4614 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4615 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4616 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4617 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4618 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4619 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4620 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4621 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4622 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4623 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4624 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4625 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4626 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4627 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4628 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4629 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4630 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4631 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4632 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4633 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4634 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4635 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4636 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4637 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4638 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4639 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4640 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4641 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4642 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4643 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4644 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4645 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4646 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4647 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4648 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4649 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 4650 | .rlen = 496, |
| 4651 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 4652 | .np = 3, |
| 4653 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4654 | }, |
| 4655 | }; |
| 4656 | |
| 4657 | static struct cipher_testvec des3_ede_cbc_enc_tv_template[] = { |
| 4658 | { /* Generated from openssl */ |
| 4659 | .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 4660 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 4661 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 4662 | .klen = 24, |
| 4663 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 4664 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 4665 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 4666 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 4667 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 4668 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 4669 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 4670 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 4671 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 4672 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 4673 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 4674 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 4675 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 4676 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 4677 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 4678 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 4679 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 4680 | .ilen = 128, |
| 4681 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 4682 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 4683 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 4684 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 4685 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 4686 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 4687 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 4688 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 4689 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 4690 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 4691 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 4692 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 4693 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 4694 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 4695 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 4696 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19", |
| 4697 | .rlen = 128, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 4698 | }, { /* Generated with Crypto++ */ |
| 4699 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 4700 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 4701 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 4702 | .klen = 24, |
| 4703 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 4704 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 4705 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4706 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4707 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4708 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4709 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4710 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4711 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4712 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4713 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4714 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4715 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4716 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4717 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4718 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4719 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4720 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4721 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4722 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4723 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4724 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4725 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4726 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4727 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4728 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4729 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4730 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4731 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4732 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4733 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4734 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4735 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4736 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4737 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4738 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4739 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4740 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4741 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4742 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4743 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4744 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4745 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4746 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4747 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4748 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4749 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4750 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4751 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4752 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4753 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4754 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4755 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4756 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 4757 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 4758 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 4759 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 4760 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 4761 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 4762 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 4763 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 4764 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 4765 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 4766 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 4767 | .ilen = 496, |
| 4768 | .result = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84" |
| 4769 | "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5" |
| 4770 | "\x1E\x68\x8E\x85\x12\x86\x1D\x38" |
| 4771 | "\x1C\x91\x40\xCC\x69\x6A\xD5\x35" |
| 4772 | "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF" |
| 4773 | "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C" |
| 4774 | "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37" |
| 4775 | "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90" |
| 4776 | "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B" |
| 4777 | "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B" |
| 4778 | "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9" |
| 4779 | "\xE6\xA5\xAD\x25\xE6\x17\x69\x63" |
| 4780 | "\x11\x35\x61\x94\x88\x7B\x1C\x48" |
| 4781 | "\xF1\x24\x20\x29\x6B\x93\x1A\x8E" |
| 4782 | "\x43\x03\x89\xD8\xB1\xDA\x47\x7B" |
| 4783 | "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB" |
| 4784 | "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8" |
| 4785 | "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73" |
| 4786 | "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6" |
| 4787 | "\x67\x88\xA5\x20\x6F\x5F\x97\xC7" |
| 4788 | "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7" |
| 4789 | "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7" |
| 4790 | "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E" |
| 4791 | "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6" |
| 4792 | "\xEE\xFE\x55\xA3\x29\x65\xE0\x12" |
| 4793 | "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96" |
| 4794 | "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF" |
| 4795 | "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE" |
| 4796 | "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99" |
| 4797 | "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D" |
| 4798 | "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6" |
| 4799 | "\x2B\x1C\xD5\xFB\x96\x24\x60\x60" |
| 4800 | "\x54\x40\xB8\x62\xA4\xF8\x46\x95" |
| 4801 | "\x73\x28\xA3\xA6\x16\x2B\x17\xE7" |
| 4802 | "\x7A\xF8\x62\x54\x3B\x64\x69\xE1" |
| 4803 | "\x71\x34\x29\x5B\x4E\x05\x9B\xFA" |
| 4804 | "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59" |
| 4805 | "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2" |
| 4806 | "\x3B\x8E\x71\x69\x6A\x91\xB6\x65" |
| 4807 | "\x32\x09\xB8\xE4\x09\x1F\xEA\x39" |
| 4808 | "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0" |
| 4809 | "\x73\x50\x08\x56\x20\x9B\x94\x23" |
| 4810 | "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F" |
| 4811 | "\x41\x5B\xCC\xE2\x18\xAE\x62\x89" |
| 4812 | "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5" |
| 4813 | "\x25\xC9\x48\x97\xB5\xD3\x17\xD5" |
| 4814 | "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B" |
| 4815 | "\x57\x08\xAE\x91\xF2\xB7\x57\x89" |
| 4816 | "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF" |
| 4817 | "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02" |
| 4818 | "\xD4\x56\x42\x79\x79\x7F\x2A\x77" |
| 4819 | "\x25\xE9\x7D\xC1\x88\x19\x2B\x49" |
| 4820 | "\x6F\x46\x59\xAB\x56\x1F\x61\xE0" |
| 4821 | "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12" |
| 4822 | "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8" |
| 4823 | "\x21\x85\x1A\x62\x7E\x34\xBB\xEB" |
| 4824 | "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5" |
| 4825 | "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38" |
| 4826 | "\x02\x80\xA3\x28\x22\x75\xE1\xE9" |
| 4827 | "\x90\xE9\xFA\x4B\x00\x10\xAC\x58" |
| 4828 | "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F" |
| 4829 | "\x95\x63\x73\xA2\x44\xAC\xF8\xA5", |
| 4830 | .rlen = 496, |
| 4831 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 4832 | .np = 3, |
| 4833 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 4834 | }, |
| 4835 | }; |
| 4836 | |
| 4837 | static struct cipher_testvec des3_ede_cbc_dec_tv_template[] = { |
| 4838 | { /* Generated from openssl */ |
| 4839 | .key = "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 4840 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 4841 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 4842 | .klen = 24, |
| 4843 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 4844 | .input = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 4845 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 4846 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 4847 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 4848 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 4849 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 4850 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 4851 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 4852 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 4853 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 4854 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 4855 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 4856 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 4857 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 4858 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 4859 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19", |
| 4860 | .ilen = 128, |
| 4861 | .result = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 4862 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 4863 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 4864 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 4865 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 4866 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 4867 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 4868 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 4869 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 4870 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 4871 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 4872 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 4873 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 4874 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 4875 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 4876 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 4877 | .rlen = 128, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 4878 | }, { /* Generated with Crypto++ */ |
| 4879 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 4880 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 4881 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 4882 | .klen = 24, |
| 4883 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 4884 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 4885 | .input = "\xF8\xF6\xB5\x60\x5C\x5A\x75\x84" |
| 4886 | "\x87\x81\x53\xBA\xC9\x6F\xEC\xD5" |
| 4887 | "\x1E\x68\x8E\x85\x12\x86\x1D\x38" |
| 4888 | "\x1C\x91\x40\xCC\x69\x6A\xD5\x35" |
| 4889 | "\x0D\x7C\xB5\x07\x7C\x7B\x2A\xAF" |
| 4890 | "\x32\xBC\xA1\xB3\x84\x31\x1B\x3C" |
| 4891 | "\x0A\x2B\xFA\xD3\x9F\xB0\x8C\x37" |
| 4892 | "\x8F\x9D\xA7\x6D\x6C\xFA\xD7\x90" |
| 4893 | "\xE3\x69\x54\xED\x3A\xC4\xF1\x6B" |
| 4894 | "\xB1\xCC\xFB\x7D\xD8\x8E\x17\x0B" |
| 4895 | "\x9C\xF6\x4C\xD6\xFF\x03\x4E\xD9" |
| 4896 | "\xE6\xA5\xAD\x25\xE6\x17\x69\x63" |
| 4897 | "\x11\x35\x61\x94\x88\x7B\x1C\x48" |
| 4898 | "\xF1\x24\x20\x29\x6B\x93\x1A\x8E" |
| 4899 | "\x43\x03\x89\xD8\xB1\xDA\x47\x7B" |
| 4900 | "\x79\x3A\x83\x76\xDA\xAE\xC6\xBB" |
| 4901 | "\x22\xF8\xE8\x3D\x9A\x65\x54\xD8" |
| 4902 | "\x4C\xE9\xE7\xE4\x63\x2F\x5C\x73" |
| 4903 | "\x5A\xC3\xAE\x46\xA8\xCD\x57\xE6" |
| 4904 | "\x67\x88\xA5\x20\x6F\x5F\x97\xC7" |
| 4905 | "\xCC\x15\xA2\x0A\x93\xEA\x33\xE7" |
| 4906 | "\x03\x5F\xEC\x64\x30\x6F\xEE\xD7" |
| 4907 | "\x7E\xDF\xD6\xE9\x6F\x3F\xD6\x1E" |
| 4908 | "\xBE\x67\x6C\x5B\x97\xA0\x09\xE6" |
| 4909 | "\xEE\xFE\x55\xA3\x29\x65\xE0\x12" |
| 4910 | "\xA1\x6A\x8A\x6F\xF2\xE6\xF1\x96" |
| 4911 | "\x87\xFB\x9C\x05\xDD\x80\xEC\xFF" |
| 4912 | "\xC5\xED\x50\xFE\xFC\x91\xCD\xCE" |
| 4913 | "\x25\x2C\x5F\xD9\xAD\x95\x7D\x99" |
| 4914 | "\xF0\x05\xC4\x71\x46\x5F\xF9\x0D" |
| 4915 | "\xD2\x63\xDF\x9B\x96\x2E\x2B\xA6" |
| 4916 | "\x2B\x1C\xD5\xFB\x96\x24\x60\x60" |
| 4917 | "\x54\x40\xB8\x62\xA4\xF8\x46\x95" |
| 4918 | "\x73\x28\xA3\xA6\x16\x2B\x17\xE7" |
| 4919 | "\x7A\xF8\x62\x54\x3B\x64\x69\xE1" |
| 4920 | "\x71\x34\x29\x5B\x4E\x05\x9B\xFA" |
| 4921 | "\x5E\xF1\x96\xB7\xCE\x16\x9B\x59" |
| 4922 | "\xF1\x1A\x4C\x51\x26\xFD\x79\xE2" |
| 4923 | "\x3B\x8E\x71\x69\x6A\x91\xB6\x65" |
| 4924 | "\x32\x09\xB8\xE4\x09\x1F\xEA\x39" |
| 4925 | "\xCE\x20\x65\x9F\xD6\xD1\xC7\xF0" |
| 4926 | "\x73\x50\x08\x56\x20\x9B\x94\x23" |
| 4927 | "\x14\x39\xB7\x2B\xB1\x2D\x6D\x6F" |
| 4928 | "\x41\x5B\xCC\xE2\x18\xAE\x62\x89" |
| 4929 | "\x78\x8E\x67\x23\xD0\xFB\x2B\xE5" |
| 4930 | "\x25\xC9\x48\x97\xB5\xD3\x17\xD5" |
| 4931 | "\x6A\x9F\xA7\x48\x0C\x2B\x73\x3B" |
| 4932 | "\x57\x08\xAE\x91\xF2\xB7\x57\x89" |
| 4933 | "\xF4\xD0\xB0\x07\xB0\x42\x6C\xAF" |
| 4934 | "\x98\x1A\xE7\xD1\xAC\x1E\xB5\x02" |
| 4935 | "\xD4\x56\x42\x79\x79\x7F\x2A\x77" |
| 4936 | "\x25\xE9\x7D\xC1\x88\x19\x2B\x49" |
| 4937 | "\x6F\x46\x59\xAB\x56\x1F\x61\xE0" |
| 4938 | "\x0C\x24\x9C\xC9\x5B\x63\xA9\x12" |
| 4939 | "\xCF\x88\x96\xB6\xA8\x24\xC6\xA8" |
| 4940 | "\x21\x85\x1A\x62\x7E\x34\xBB\xEB" |
| 4941 | "\xBD\x02\x2A\xC7\xD8\x89\x80\xC5" |
| 4942 | "\xB1\xBB\x60\xA5\x22\xFC\x6F\x38" |
| 4943 | "\x02\x80\xA3\x28\x22\x75\xE1\xE9" |
| 4944 | "\x90\xE9\xFA\x4B\x00\x10\xAC\x58" |
| 4945 | "\x83\x70\xFF\x86\xE6\xAA\x0F\x1F" |
| 4946 | "\x95\x63\x73\xA2\x44\xAC\xF8\xA5", |
| 4947 | .ilen = 496, |
| 4948 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 4949 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 4950 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 4951 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 4952 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 4953 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 4954 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 4955 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 4956 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 4957 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 4958 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 4959 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 4960 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 4961 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 4962 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 4963 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 4964 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 4965 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 4966 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 4967 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 4968 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 4969 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 4970 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 4971 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 4972 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 4973 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 4974 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 4975 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 4976 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 4977 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 4978 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 4979 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 4980 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 4981 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 4982 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 4983 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 4984 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 4985 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 4986 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 4987 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 4988 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 4989 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 4990 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 4991 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 4992 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 4993 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 4994 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 4995 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 4996 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 4997 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 4998 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 4999 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 5000 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 5001 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 5002 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 5003 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 5004 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 5005 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 5006 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 5007 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 5008 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 5009 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 5010 | .rlen = 496, |
| 5011 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5012 | .np = 3, |
| 5013 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 5014 | }, |
| 5015 | }; |
| 5016 | |
| 5017 | static struct cipher_testvec des3_ede_ctr_enc_tv_template[] = { |
| 5018 | { /* Generated with Crypto++ */ |
| 5019 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 5020 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 5021 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 5022 | .klen = 24, |
| 5023 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 5024 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 5025 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 5026 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 5027 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 5028 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 5029 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 5030 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 5031 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 5032 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 5033 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 5034 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 5035 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 5036 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 5037 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 5038 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 5039 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 5040 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 5041 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 5042 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 5043 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 5044 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 5045 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 5046 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 5047 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 5048 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 5049 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 5050 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 5051 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 5052 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 5053 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 5054 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 5055 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 5056 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 5057 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 5058 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 5059 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 5060 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 5061 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 5062 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 5063 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 5064 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 5065 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 5066 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 5067 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 5068 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 5069 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 5070 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 5071 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 5072 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 5073 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 5074 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 5075 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 5076 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 5077 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 5078 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 5079 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 5080 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 5081 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 5082 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 5083 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 5084 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 5085 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 5086 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 5087 | .ilen = 496, |
| 5088 | .result = "\x07\xC2\x08\x20\x72\x1F\x49\xEF" |
| 5089 | "\x19\xCD\x6F\x32\x53\x05\x22\x15" |
| 5090 | "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9" |
| 5091 | "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4" |
| 5092 | "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE" |
| 5093 | "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E" |
| 5094 | "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C" |
| 5095 | "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA" |
| 5096 | "\x13\x78\xDC\x89\x12\x12\x43\xFA" |
| 5097 | "\xF6\x12\xEF\x8D\x87\x62\x78\x83" |
| 5098 | "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B" |
| 5099 | "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03" |
| 5100 | "\xBF\x45\x73\xD4\xE5\x59\x95\xD1" |
| 5101 | "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F" |
| 5102 | "\xA4\xD2\x39\x80\xAA\x50\x23\xF0" |
| 5103 | "\x74\x88\x3D\xA8\x6A\x18\x79\x3B" |
| 5104 | "\xC4\x96\x6C\x8D\x22\x40\x92\x6E" |
| 5105 | "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7" |
| 5106 | "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC" |
| 5107 | "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA" |
| 5108 | "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B" |
| 5109 | "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B" |
| 5110 | "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D" |
| 5111 | "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01" |
| 5112 | "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0" |
| 5113 | "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA" |
| 5114 | "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA" |
| 5115 | "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2" |
| 5116 | "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F" |
| 5117 | "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9" |
| 5118 | "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C" |
| 5119 | "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4" |
| 5120 | "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08" |
| 5121 | "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D" |
| 5122 | "\x14\x28\x0C\xCF\x99\x13\x7A\xF1" |
| 5123 | "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1" |
| 5124 | "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E" |
| 5125 | "\x83\x37\x4F\x1F\x48\x30\xED\x04" |
| 5126 | "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C" |
| 5127 | "\x41\x8F\x63\x37\x78\x2F\x86\xA6" |
| 5128 | "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67" |
| 5129 | "\x52\x71\xC3\x8E\xF8\x26\x93\x72" |
| 5130 | "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A" |
| 5131 | "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C" |
| 5132 | "\x52\xBC\x8B\x05\x56\xB2\xBC\x31" |
| 5133 | "\x9B\x74\xB9\x29\x29\x96\x9A\x50" |
| 5134 | "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4" |
| 5135 | "\xD3\x05\x7E\x59\x55\xC3\xF4\x90" |
| 5136 | "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1" |
| 5137 | "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC" |
| 5138 | "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA" |
| 5139 | "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65" |
| 5140 | "\x32\xDC\x48\xC4\xF2\x00\x6B\x77" |
| 5141 | "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A" |
| 5142 | "\xA5\x3A\x62\xC8\x91\xB1\x03\x65" |
| 5143 | "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC" |
| 5144 | "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0" |
| 5145 | "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0" |
| 5146 | "\x40\x77\x72\xC2\xEA\x0E\x3A\x78" |
| 5147 | "\x46\xB9\x91\xB6\xE7\x3D\x51\x42" |
| 5148 | "\xFD\x51\xB0\xC6\x2C\x63\x13\x78" |
| 5149 | "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34", |
| 5150 | .rlen = 496, |
| 5151 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5152 | .np = 3, |
| 5153 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 5154 | }, { /* Generated with Crypto++ */ |
| 5155 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 5156 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 5157 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 5158 | .klen = 24, |
| 5159 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 5160 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 5161 | .input = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 5162 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 5163 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 5164 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 5165 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 5166 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 5167 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 5168 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 5169 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 5170 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 5171 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 5172 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 5173 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 5174 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 5175 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 5176 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 5177 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 5178 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 5179 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 5180 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 5181 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 5182 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 5183 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 5184 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 5185 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 5186 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 5187 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 5188 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 5189 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 5190 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 5191 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 5192 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 5193 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 5194 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 5195 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 5196 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 5197 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 5198 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 5199 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 5200 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 5201 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 5202 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 5203 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 5204 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 5205 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 5206 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 5207 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 5208 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 5209 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 5210 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 5211 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 5212 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 5213 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 5214 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 5215 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 5216 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 5217 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 5218 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 5219 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 5220 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 5221 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 5222 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47" |
| 5223 | "\x2E\xB1\x18", |
| 5224 | .ilen = 499, |
| 5225 | .result = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4" |
| 5226 | "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7" |
| 5227 | "\x94\x9D\x1B\xFF\x8E\x95\x57\x89" |
| 5228 | "\x8C\x2E\x33\x70\x43\x61\xE6\xD2" |
| 5229 | "\x82\x33\x63\xB6\xC4\x34\x5E\xF8" |
| 5230 | "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA" |
| 5231 | "\x7C\xA0\x55\x89\x2E\xE1\x85\x25" |
| 5232 | "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF" |
| 5233 | "\x08\x2E\x69\xD4\x54\xDE\x22\x84" |
| 5234 | "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05" |
| 5235 | "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F" |
| 5236 | "\x58\x5C\x46\xEA\x07\x40\xDA\xE1" |
| 5237 | "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54" |
| 5238 | "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5" |
| 5239 | "\x97\x5D\x61\x78\x2E\x46\xEC\x6A" |
| 5240 | "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29" |
| 5241 | "\x9F\x17\x33\x24\xD8\xB9\xB2\x05" |
| 5242 | "\x93\x88\xEA\xF7\xA0\x70\x69\x49" |
| 5243 | "\x88\x6B\x73\x40\x41\x8D\xD9\xD9" |
| 5244 | "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A" |
| 5245 | "\x66\xE1\xDA\xED\x10\xFF\x69\x1D" |
| 5246 | "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2" |
| 5247 | "\x45\x54\x8B\xA3\x70\x23\xB4\x5E" |
| 5248 | "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2" |
| 5249 | "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2" |
| 5250 | "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8" |
| 5251 | "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0" |
| 5252 | "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E" |
| 5253 | "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71" |
| 5254 | "\xCE\x05\x49\x89\xBA\xD6\x72\xE7" |
| 5255 | "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02" |
| 5256 | "\xD6\x43\x22\xAF\xA2\xE4\x80\x85" |
| 5257 | "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF" |
| 5258 | "\x5C\x82\x2E\x98\x0D\x30\x41\x6B" |
| 5259 | "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D" |
| 5260 | "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58" |
| 5261 | "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40" |
| 5262 | "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC" |
| 5263 | "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B" |
| 5264 | "\xC6\x12\x13\x4F\xCB\x35\xBA\x35" |
| 5265 | "\xDD\x7A\x36\x9C\x12\x57\x55\x83" |
| 5266 | "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C" |
| 5267 | "\x38\xCF\xBD\x79\x5B\x13\x4D\x97" |
| 5268 | "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4" |
| 5269 | "\x98\xE2\xBD\x77\x6B\x53\x39\x1A" |
| 5270 | "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69" |
| 5271 | "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15" |
| 5272 | "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F" |
| 5273 | "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F" |
| 5274 | "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA" |
| 5275 | "\x8A\x19\x08\xE1\x08\x48\x59\x51" |
| 5276 | "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F" |
| 5277 | "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA" |
| 5278 | "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4" |
| 5279 | "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED" |
| 5280 | "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75" |
| 5281 | "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4" |
| 5282 | "\x97\x73\x28\xDE\xCF\xAF\x82\xBD" |
| 5283 | "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42" |
| 5284 | "\x42\x39\x7C\x53\xA4\xD4\xDD\x40" |
| 5285 | "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7" |
| 5286 | "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B" |
| 5287 | "\xF2\x79\xD9", |
| 5288 | .rlen = 499, |
| 5289 | .also_non_np = 1, |
| 5290 | .np = 2, |
| 5291 | .tap = { 499 - 16, 16 }, |
| 5292 | }, |
| 5293 | }; |
| 5294 | |
| 5295 | static struct cipher_testvec des3_ede_ctr_dec_tv_template[] = { |
| 5296 | { /* Generated with Crypto++ */ |
| 5297 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 5298 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 5299 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 5300 | .klen = 24, |
| 5301 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 5302 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 5303 | .input = "\x07\xC2\x08\x20\x72\x1F\x49\xEF" |
| 5304 | "\x19\xCD\x6F\x32\x53\x05\x22\x15" |
| 5305 | "\xA2\x85\x2B\xDB\x85\xD2\xD8\xB9" |
| 5306 | "\xDD\x0D\x1B\x45\xCB\x69\x11\xD4" |
| 5307 | "\xEA\xBE\xB2\x45\x5D\x0C\xAE\xBE" |
| 5308 | "\xA0\xC1\x27\xAC\x65\x9F\x53\x7E" |
| 5309 | "\xAF\xC2\x1B\xB5\xB8\x6D\x36\x0C" |
| 5310 | "\x25\xC0\xF8\x6D\x0B\x29\x01\xDA" |
| 5311 | "\x13\x78\xDC\x89\x12\x12\x43\xFA" |
| 5312 | "\xF6\x12\xEF\x8D\x87\x62\x78\x83" |
| 5313 | "\xE2\xBE\x41\x20\x4C\x6D\x35\x1B" |
| 5314 | "\xD1\x0C\x30\xCF\xE2\xDE\x2B\x03" |
| 5315 | "\xBF\x45\x73\xD4\xE5\x59\x95\xD1" |
| 5316 | "\xB3\x9B\x27\x62\x97\xBD\xDE\x7F" |
| 5317 | "\xA4\xD2\x39\x80\xAA\x50\x23\xF0" |
| 5318 | "\x74\x88\x3D\xA8\x6A\x18\x79\x3B" |
| 5319 | "\xC4\x96\x6C\x8D\x22\x40\x92\x6E" |
| 5320 | "\xD6\xAD\x2A\x1F\xDE\x63\xC0\xE7" |
| 5321 | "\x07\xF7\x2D\xF7\xB5\xF3\xF0\xCC" |
| 5322 | "\x01\x7C\x2A\x9B\xC2\x10\xCA\xAA" |
| 5323 | "\xFD\x2B\x3F\xC5\xF3\xF6\xFC\x9B" |
| 5324 | "\x45\xDB\x53\xE4\x5B\xF3\xC9\x7B" |
| 5325 | "\x8E\x52\xFF\xC8\x02\xB8\xAC\x9D" |
| 5326 | "\xA1\x00\x39\xDA\x3D\x2D\x0E\x01" |
| 5327 | "\x09\x7D\x8D\x5E\xBE\x53\xB9\xB0" |
| 5328 | "\x8E\xE7\xE2\x96\x6A\xB2\x78\xEA" |
| 5329 | "\xDE\x23\x8B\xA5\xFA\x5C\xE3\xDA" |
| 5330 | "\xBF\x8E\x31\x6A\x55\xD1\x6A\xB2" |
| 5331 | "\xB5\x46\x6F\xA5\xF0\xEE\xBA\x1F" |
| 5332 | "\x9F\x98\xB0\x66\x4F\xD0\x3F\xA9" |
| 5333 | "\xDF\x5F\x58\xC4\xF4\xFF\x75\x5C" |
| 5334 | "\x40\x3A\x09\x7E\x6E\x1C\x97\xD4" |
| 5335 | "\xCC\xE7\xE7\x71\xCF\x0B\x15\x08" |
| 5336 | "\x71\xFA\x07\x97\xCD\xE6\xCA\x1D" |
| 5337 | "\x14\x28\x0C\xCF\x99\x13\x7A\xF1" |
| 5338 | "\xEB\xFA\xFA\x92\x07\xDE\x1D\xA1" |
| 5339 | "\xD3\x36\x69\xFE\x51\x4D\x9F\x2E" |
| 5340 | "\x83\x37\x4F\x1F\x48\x30\xED\x04" |
| 5341 | "\x4D\xA4\xEF\x3A\xCA\x76\xF4\x1C" |
| 5342 | "\x41\x8F\x63\x37\x78\x2F\x86\xA6" |
| 5343 | "\xEF\x41\x7E\xD2\xAF\x88\xAB\x67" |
| 5344 | "\x52\x71\xC3\x8E\xF8\x26\x93\x72" |
| 5345 | "\xAA\xD6\x0E\xE7\x0B\x46\xB1\x3A" |
| 5346 | "\xB4\x08\xA9\xA8\xA0\xCF\x20\x0C" |
| 5347 | "\x52\xBC\x8B\x05\x56\xB2\xBC\x31" |
| 5348 | "\x9B\x74\xB9\x29\x29\x96\x9A\x50" |
| 5349 | "\xDC\x45\xDC\x1A\xEB\x0C\x64\xD4" |
| 5350 | "\xD3\x05\x7E\x59\x55\xC3\xF4\x90" |
| 5351 | "\xC2\xAB\xF8\x9B\x8A\xDA\xCE\xA1" |
| 5352 | "\xC3\xF4\xAD\x77\xDD\x44\xC8\xAC" |
| 5353 | "\xA3\xF1\xC9\xD2\x19\x5C\xB0\xCA" |
| 5354 | "\xA2\x34\xC1\xF7\x6C\xFD\xAC\x65" |
| 5355 | "\x32\xDC\x48\xC4\xF2\x00\x6B\x77" |
| 5356 | "\xF1\x7D\x76\xAC\xC0\x31\x63\x2A" |
| 5357 | "\xA5\x3A\x62\xC8\x91\xB1\x03\x65" |
| 5358 | "\xCB\x43\xD1\x06\xDF\xC3\x67\xBC" |
| 5359 | "\xDC\xE0\xCD\x35\xCE\x49\x65\xA0" |
| 5360 | "\x52\x7B\xA7\x0D\x07\xA9\x1B\xB0" |
| 5361 | "\x40\x77\x72\xC2\xEA\x0E\x3A\x78" |
| 5362 | "\x46\xB9\x91\xB6\xE7\x3D\x51\x42" |
| 5363 | "\xFD\x51\xB0\xC6\x2C\x63\x13\x78" |
| 5364 | "\x5C\xEE\xFC\xCF\xC4\x70\x00\x34", |
| 5365 | .ilen = 496, |
| 5366 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 5367 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 5368 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 5369 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 5370 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 5371 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 5372 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 5373 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 5374 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 5375 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 5376 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 5377 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 5378 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 5379 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 5380 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 5381 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 5382 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 5383 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 5384 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 5385 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 5386 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 5387 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 5388 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 5389 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 5390 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 5391 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 5392 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 5393 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 5394 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 5395 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 5396 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 5397 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 5398 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 5399 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 5400 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 5401 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 5402 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 5403 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 5404 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 5405 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 5406 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 5407 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 5408 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 5409 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 5410 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 5411 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 5412 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 5413 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 5414 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 5415 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 5416 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 5417 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 5418 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 5419 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 5420 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 5421 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 5422 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 5423 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 5424 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 5425 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 5426 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 5427 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47", |
| 5428 | .rlen = 496, |
| 5429 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5430 | .np = 3, |
| 5431 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | e080b17 | 2012-10-20 14:53:12 +0300 | [diff] [blame] | 5432 | }, { /* Generated with Crypto++ */ |
| 5433 | .key = "\x9C\xD6\xF3\x9C\xB9\x5A\x67\x00" |
| 5434 | "\x5A\x67\x00\x2D\xCE\xEB\x2D\xCE" |
| 5435 | "\xEB\xB4\x51\x72\xB4\x51\x72\x1F", |
| 5436 | .klen = 24, |
| 5437 | .iv = "\xB2\xD7\x48\xED\x06\x44\xF9\x12" |
| 5438 | "\xB7\x28\x4D\x83\x24\x59\xF2\x17", |
| 5439 | .input = "\x23\xFF\x5C\x99\x75\xBB\x1F\xD4" |
| 5440 | "\xBC\x27\x9D\x36\x60\xA9\xC9\xF7" |
| 5441 | "\x94\x9D\x1B\xFF\x8E\x95\x57\x89" |
| 5442 | "\x8C\x2E\x33\x70\x43\x61\xE6\xD2" |
| 5443 | "\x82\x33\x63\xB6\xC4\x34\x5E\xF8" |
| 5444 | "\x96\x07\xA7\xD2\x3B\x8E\xC9\xAA" |
| 5445 | "\x7C\xA0\x55\x89\x2E\xE1\x85\x25" |
| 5446 | "\x14\x04\xDA\x6B\xE0\xEE\x56\xCF" |
| 5447 | "\x08\x2E\x69\xD4\x54\xDE\x22\x84" |
| 5448 | "\x69\xA6\xA7\xD3\x3A\x9A\xE8\x05" |
| 5449 | "\x63\xDB\xBF\x46\x3A\x26\x2E\x0F" |
| 5450 | "\x58\x5C\x46\xEA\x07\x40\xDA\xE1" |
| 5451 | "\x14\x1D\xCD\x4F\x06\xC0\xCA\x54" |
| 5452 | "\x1E\xC9\x45\x85\x67\x7C\xC2\xB5" |
| 5453 | "\x97\x5D\x61\x78\x2E\x46\xEC\x6A" |
| 5454 | "\x53\xF4\xD0\xAE\xFA\xB4\x86\x29" |
| 5455 | "\x9F\x17\x33\x24\xD8\xB9\xB2\x05" |
| 5456 | "\x93\x88\xEA\xF7\xA0\x70\x69\x49" |
| 5457 | "\x88\x6B\x73\x40\x41\x8D\xD9\xD9" |
| 5458 | "\x7E\x78\xE9\xBE\x6C\x14\x22\x7A" |
| 5459 | "\x66\xE1\xDA\xED\x10\xFF\x69\x1D" |
| 5460 | "\xB9\xAA\xF2\x56\x72\x1B\x23\xE2" |
| 5461 | "\x45\x54\x8B\xA3\x70\x23\xB4\x5E" |
| 5462 | "\x8E\x96\xC9\x05\x00\xB3\xB6\xC2" |
| 5463 | "\x2A\x02\x43\x7A\x62\xD5\xC8\xD2" |
| 5464 | "\xC2\xD0\xE4\x78\xA1\x7B\x3E\xE8" |
| 5465 | "\x9F\x7F\x7D\x40\x54\x30\x3B\xC0" |
| 5466 | "\xA5\x54\xFD\xCA\x25\xEC\x44\x3E" |
| 5467 | "\x1A\x54\x7F\x88\xD0\xE1\xFE\x71" |
| 5468 | "\xCE\x05\x49\x89\xBA\xD6\x72\xE7" |
| 5469 | "\xD6\x5D\x3F\xA2\xD9\xAB\xC5\x02" |
| 5470 | "\xD6\x43\x22\xAF\xA2\xE4\x80\x85" |
| 5471 | "\xD7\x87\xB9\xEA\x43\xDB\xC8\xEF" |
| 5472 | "\x5C\x82\x2E\x98\x0D\x30\x41\x6B" |
| 5473 | "\x08\x48\x8D\xF0\xF8\x60\xD7\x9D" |
| 5474 | "\xE9\xDE\x40\xAD\x0D\xAD\x0D\x58" |
| 5475 | "\x2A\x98\x35\xFE\xF7\xDD\x4B\x40" |
| 5476 | "\xDE\xB0\x05\xD9\x7B\x09\x4D\xBC" |
| 5477 | "\x42\xC0\xF1\x15\x0B\xFA\x26\x6B" |
| 5478 | "\xC6\x12\x13\x4F\xCB\x35\xBA\x35" |
| 5479 | "\xDD\x7A\x36\x9C\x12\x57\x55\x83" |
| 5480 | "\x78\x58\x09\xD0\xB0\xCF\x7C\x5C" |
| 5481 | "\x38\xCF\xBD\x79\x5B\x13\x4D\x97" |
| 5482 | "\xC1\x85\x6F\x97\xC9\xE8\xC2\xA4" |
| 5483 | "\x98\xE2\xBD\x77\x6B\x53\x39\x1A" |
| 5484 | "\x28\x10\xE7\xE0\xE7\xDE\x9D\x69" |
| 5485 | "\x78\x6F\x8E\xD2\xD9\x5D\xD2\x15" |
| 5486 | "\x9E\xB5\x4D\x8C\xC0\x78\x22\x2F" |
| 5487 | "\x17\x11\x2E\x99\xD7\xE3\xA4\x4F" |
| 5488 | "\x65\xA5\x6B\x03\x2C\x35\x6F\xDA" |
| 5489 | "\x8A\x19\x08\xE1\x08\x48\x59\x51" |
| 5490 | "\x53\x4B\xD1\xDF\xDA\x14\x50\x5F" |
| 5491 | "\xDF\xB5\x8C\xDF\xC6\xFD\x85\xFA" |
| 5492 | "\xD4\xF9\x64\x45\x65\x0D\x7D\xF4" |
| 5493 | "\xC8\xCD\x3F\x32\xAF\xDD\x30\xED" |
| 5494 | "\x7B\xAA\xAC\xF0\xDA\x7F\xDF\x75" |
| 5495 | "\x1C\xA4\xF1\xCB\x5E\x4F\x0B\xB4" |
| 5496 | "\x97\x73\x28\xDE\xCF\xAF\x82\xBD" |
| 5497 | "\xC4\xBA\xB4\x9C\x0D\x16\x77\x42" |
| 5498 | "\x42\x39\x7C\x53\xA4\xD4\xDD\x40" |
| 5499 | "\x5C\x60\x1F\x6E\xA7\xE2\xDC\xE7" |
| 5500 | "\x32\x0F\x05\x2F\xF2\x4C\x95\x3B" |
| 5501 | "\xF2\x79\xD9", |
| 5502 | .ilen = 499, |
| 5503 | .result = "\x05\xEC\x77\xFB\x42\xD5\x59\x20" |
| 5504 | "\x8B\x12\x86\x69\xF0\x5B\xCF\x56" |
| 5505 | "\x39\xAD\x34\x9F\x66\xEA\x7D\xC4" |
| 5506 | "\x48\xD3\xBA\x0D\xB1\x18\xE3\x4A" |
| 5507 | "\xFE\x41\x28\x5C\x27\x8E\x11\x85" |
| 5508 | "\x6C\xF7\x5E\xC2\x55\x3C\xA0\x0B" |
| 5509 | "\x92\x65\xE9\x70\xDB\x4F\xD6\xB9" |
| 5510 | "\x00\xB4\x1F\xE6\x49\xFD\x44\x2F" |
| 5511 | "\x53\x3A\x8D\x14\x98\x63\xCA\x5D" |
| 5512 | "\xC1\xA8\x33\xA7\x0E\x91\x78\xEC" |
| 5513 | "\x77\xDE\x42\xD5\xBC\x07\x8B\x12" |
| 5514 | "\xE5\x4C\xF0\x5B\x22\x56\x39\x80" |
| 5515 | "\x6B\x9F\x66\xC9\x50\xC4\xAF\x36" |
| 5516 | "\xBA\x0D\x94\x7F\xE3\x4A\xDD\x41" |
| 5517 | "\x28\xB3\x1A\x8E\x11\xF8\x43\xF7" |
| 5518 | "\x5E\x21\x55\x3C\x87\x6E\x92\x65" |
| 5519 | "\xCC\x57\xDB\xA2\x35\xB9\x00\xEB" |
| 5520 | "\x72\xE6\x49\xD0\x44\x2F\xB6\x19" |
| 5521 | "\x8D\x14\xFF\x46\xCA\x5D\x24\xA8" |
| 5522 | "\x33\x9A\x6D\x91\x78\xC3\x77\xDE" |
| 5523 | "\xA1\x08\xBC\x07\xEE\x71\xE5\x4C" |
| 5524 | "\xD7\x5B\x22\xB5\x1C\x80\x6B\xF2" |
| 5525 | "\x45\xC9\x50\x3B\xAF\x36\x99\x60" |
| 5526 | "\x94\x7F\xC6\x4A\xDD\xA4\x0F\xB3" |
| 5527 | "\x1A\xED\x74\xF8\x43\x2A\x5E\x21" |
| 5528 | "\x88\x13\x87\x6E\xF1\x58\xCC\x57" |
| 5529 | "\x3E\xA2\x35\x9C\x67\xEB\x72\xC5" |
| 5530 | "\x49\xD0\xBB\x02\xB6\x19\xE0\x4B" |
| 5531 | "\xFF\x46\x29\x5D\x24\x8F\x16\x9A" |
| 5532 | "\x6D\xF4\x5F\xC3\xAA\x3D\xA1\x08" |
| 5533 | "\x93\x7A\xEE\x71\xD8\x4C\xD7\xBE" |
| 5534 | "\x01\xB5\x1C\xE7\x4E\xF2\x45\x2C" |
| 5535 | "\x50\x3B\x82\x15\x99\x60\xCB\x52" |
| 5536 | "\xC6\xA9\x30\xA4\x0F\x96\x79\xED" |
| 5537 | "\x74\xDF\x43\x2A\xBD\x04\x88\x13" |
| 5538 | "\xFA\x4D\xF1\x58\x23\x57\x3E\x81" |
| 5539 | "\x68\x9C\x67\xCE\x51\xC5\xAC\x37" |
| 5540 | "\xBB\x02\x95\x7C\xE0\x4B\xD2\x46" |
| 5541 | "\x29\xB0\x1B\x8F\x16\xF9\x40\xF4" |
| 5542 | "\x5F\x26\xAA\x3D\x84\x6F\x93\x7A" |
| 5543 | "\xCD\x54\xD8\xA3\x0A\xBE\x01\xE8" |
| 5544 | "\x73\xE7\x4E\xD1\x45\x2C\xB7\x1E" |
| 5545 | "\x82\x15\xFC\x47\xCB\x52\x25\xA9" |
| 5546 | "\x30\x9B\x62\x96\x79\xC0\x74\xDF" |
| 5547 | "\xA6\x09\xBD\x04\xEF\x76\xFA\x4D" |
| 5548 | "\xD4\x58\x23\x8A\x1D\x81\x68\xF3" |
| 5549 | "\x5A\xCE\x51\x38\xAC\x37\x9E\x61" |
| 5550 | "\x95\x7C\xC7\x4B\xD2\xA5\x0C\xB0" |
| 5551 | "\x1B\xE2\x75\xF9\x40\x2B\x5F\x26" |
| 5552 | "\x89\x10\x84\x6F\xF6\x59\xCD\x54" |
| 5553 | "\x3F\xA3\x0A\x9D\x64\xE8\x73\xDA" |
| 5554 | "\x4E\xD1\xB8\x03\xB7\x1E\xE1\x48" |
| 5555 | "\xFC\x47\x2E\x52\x25\x8C\x17\x9B" |
| 5556 | "\x62\xF5\x5C\xC0\xAB\x32\xA6\x09" |
| 5557 | "\x90\x7B\xEF\x76\xD9\x4D\xD4\xBF" |
| 5558 | "\x06\x8A\x1D\xE4\x4F\xF3\x5A\x2D" |
| 5559 | "\x51\x38\x83\x6A\x9E\x61\xC8\x53" |
| 5560 | "\xC7\xAE\x31\xA5\x0C\x97\x7E\xE2" |
| 5561 | "\x75\xDC\x40\x2B\xB2\x05\x89\x10" |
| 5562 | "\xFB\x42\xF6\x59\x20\x54\x3F\x86" |
| 5563 | "\x69\x9D\x64\xCF\x56\xDA\xAD\x34" |
| 5564 | "\xB8\x03\xEA\x7D\xE1\x48\xD3\x47" |
| 5565 | "\x2E\xB1\x18", |
| 5566 | .rlen = 499, |
| 5567 | .also_non_np = 1, |
| 5568 | .np = 2, |
| 5569 | .tap = { 499 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5570 | }, |
| 5571 | }; |
| 5572 | |
| 5573 | /* |
| 5574 | * Blowfish test vectors. |
| 5575 | */ |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5576 | #define BF_ENC_TEST_VECTORS 7 |
| 5577 | #define BF_DEC_TEST_VECTORS 7 |
| 5578 | #define BF_CBC_ENC_TEST_VECTORS 2 |
| 5579 | #define BF_CBC_DEC_TEST_VECTORS 2 |
| 5580 | #define BF_CTR_ENC_TEST_VECTORS 2 |
| 5581 | #define BF_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5582 | |
| 5583 | static struct cipher_testvec bf_enc_tv_template[] = { |
| 5584 | { /* DES test vectors from OpenSSL */ |
| 5585 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5586 | .klen = 8, |
| 5587 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5588 | .ilen = 8, |
| 5589 | .result = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", |
| 5590 | .rlen = 8, |
| 5591 | }, { |
| 5592 | .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", |
| 5593 | .klen = 8, |
| 5594 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 5595 | .ilen = 8, |
| 5596 | .result = "\xa7\x90\x79\x51\x08\xea\x3c\xae", |
| 5597 | .rlen = 8, |
| 5598 | }, { |
| 5599 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 5600 | .klen = 8, |
| 5601 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5602 | .ilen = 8, |
| 5603 | .result = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", |
| 5604 | .rlen = 8, |
| 5605 | }, { /* Vary the keylength... */ |
| 5606 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5607 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", |
| 5608 | .klen = 16, |
| 5609 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5610 | .ilen = 8, |
| 5611 | .result = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", |
| 5612 | .rlen = 8, |
| 5613 | }, { |
| 5614 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5615 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 5616 | "\x00\x11\x22\x33\x44", |
| 5617 | .klen = 21, |
| 5618 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5619 | .ilen = 8, |
| 5620 | .result = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", |
| 5621 | .rlen = 8, |
| 5622 | }, { /* Generated with bf488 */ |
| 5623 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5624 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 5625 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 5626 | "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" |
| 5627 | "\x58\x40\x23\x64\x1a\xba\x61\x76" |
| 5628 | "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" |
| 5629 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 5630 | .klen = 56, |
| 5631 | .input = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5632 | .ilen = 8, |
| 5633 | .result = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", |
| 5634 | .rlen = 8, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5635 | }, { /* Generated with Crypto++ */ |
| 5636 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5637 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5638 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5639 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5640 | .klen = 32, |
| 5641 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5642 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5643 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5644 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5645 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5646 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5647 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5648 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5649 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5650 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5651 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5652 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5653 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5654 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5655 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5656 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5657 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5658 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5659 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 5660 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 5661 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 5662 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 5663 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 5664 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 5665 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 5666 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 5667 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 5668 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 5669 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 5670 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 5671 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 5672 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 5673 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 5674 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 5675 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 5676 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 5677 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 5678 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 5679 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 5680 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 5681 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 5682 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 5683 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 5684 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 5685 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 5686 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 5687 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 5688 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 5689 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 5690 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 5691 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 5692 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 5693 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 5694 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 5695 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 5696 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 5697 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 5698 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 5699 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 5700 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 5701 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 5702 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 5703 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 5704 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5705 | .result = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F" |
| 5706 | "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D" |
| 5707 | "\xD7\x87\xA1\xF2\xDF\x51\x71\x26" |
| 5708 | "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5709 | "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B" |
| 5710 | "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9" |
| 5711 | "\xCD\xF3\x88\x39\x39\x7A\xDF\x19" |
| 5712 | "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86" |
| 5713 | "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5" |
| 5714 | "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D" |
| 5715 | "\x6E\x66\xAF\x38\x6C\xD3\x13\xED" |
| 5716 | "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A" |
| 5717 | "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B" |
| 5718 | "\x9D\x5B\x54\x65\x4F\x16\x8A\x97" |
| 5719 | "\xF3\xF6\xD4\xAA\x87\x36\x77\x72" |
| 5720 | "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D" |
| 5721 | "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F" |
| 5722 | "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8" |
| 5723 | "\x47\x82\x98\x23\x33\x36\xBC\x1B" |
| 5724 | "\x36\xE7\xF6\xCF\x97\x37\x16\xC0" |
| 5725 | "\x87\x31\x8B\xB0\xDB\x19\x42\xA5" |
| 5726 | "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9" |
| 5727 | "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71" |
| 5728 | "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B" |
| 5729 | "\x60\x00\x55\x57\x06\x8B\xD5\xB3" |
| 5730 | "\x86\x30\x78\xDA\x33\x9A\x9D\xCC" |
| 5731 | "\xBA\x0B\x81\x06\x77\x43\xC7\xC9" |
| 5732 | "\xDB\x37\x60\x11\x45\x59\x6D\x2D" |
| 5733 | "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C" |
| 5734 | "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B" |
| 5735 | "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9" |
| 5736 | "\x98\xE4\x7F\xC3\x6E\x51\x24\x70" |
| 5737 | "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3" |
| 5738 | "\xE0\x8A\x44\xA2\x5C\x94\x74\x34" |
| 5739 | "\x37\x52\x7C\x03\xE8\x8E\x97\xE1" |
| 5740 | "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F" |
| 5741 | "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45" |
| 5742 | "\x55\xC5\xA7\xA3\x19\x80\x28\x51" |
| 5743 | "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB" |
| 5744 | "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC" |
| 5745 | "\x3E\x42\x14\x49\x88\x51\xBF\x68" |
| 5746 | "\x45\x75\x27\x1B\x0A\x72\xED\xAF" |
| 5747 | "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3" |
| 5748 | "\x34\xDD\x91\x19\x42\x3A\xCB\xDA" |
| 5749 | "\x38\xFA\x3C\x93\x62\xF2\xE3\x81" |
| 5750 | "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09" |
| 5751 | "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2" |
| 5752 | "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E" |
| 5753 | "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC" |
| 5754 | "\x36\x56\x6E\x85\x73\xD7\x52\xBA" |
| 5755 | "\x35\x5E\x32\x89\x5D\x42\xF5\x36" |
| 5756 | "\x52\x8D\x46\x7D\xC8\x71\xAD\x33" |
| 5757 | "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC" |
| 5758 | "\xFE\x88\xE6\x16\xE4\xC8\x13\x00" |
| 5759 | "\x3C\xDA\x59\x32\x38\x19\xD5\xEB" |
| 5760 | "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C" |
| 5761 | "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B" |
| 5762 | "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29" |
| 5763 | "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D" |
| 5764 | "\xC9\x0D\x59\x82\x27\x57\x9D\x42" |
| 5765 | "\x54\x59\x09\xA5\x3D\xC5\x84\x68" |
| 5766 | "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5" |
| 5767 | "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4", |
| 5768 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 5769 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5770 | .np = 3, |
| 5771 | .tap = { 504 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5772 | }, |
| 5773 | }; |
| 5774 | |
| 5775 | static struct cipher_testvec bf_dec_tv_template[] = { |
| 5776 | { /* DES test vectors from OpenSSL */ |
| 5777 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5778 | .klen = 8, |
| 5779 | .input = "\x4e\xf9\x97\x45\x61\x98\xdd\x78", |
| 5780 | .ilen = 8, |
| 5781 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 5782 | .rlen = 8, |
| 5783 | }, { |
| 5784 | .key = "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e", |
| 5785 | .klen = 8, |
| 5786 | .input = "\xa7\x90\x79\x51\x08\xea\x3c\xae", |
| 5787 | .ilen = 8, |
| 5788 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 5789 | .rlen = 8, |
| 5790 | }, { |
| 5791 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 5792 | .klen = 8, |
| 5793 | .input = "\xe8\x7a\x24\x4e\x2c\xc8\x5e\x82", |
| 5794 | .ilen = 8, |
| 5795 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5796 | .rlen = 8, |
| 5797 | }, { /* Vary the keylength... */ |
| 5798 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5799 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f", |
| 5800 | .klen = 16, |
| 5801 | .input = "\x93\x14\x28\x87\xee\x3b\xe1\x5c", |
| 5802 | .ilen = 8, |
| 5803 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5804 | .rlen = 8, |
| 5805 | }, { |
| 5806 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5807 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 5808 | "\x00\x11\x22\x33\x44", |
| 5809 | .klen = 21, |
| 5810 | .input = "\xe6\xf5\x1e\xd7\x9b\x9d\xb2\x1f", |
| 5811 | .ilen = 8, |
| 5812 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5813 | .rlen = 8, |
| 5814 | }, { /* Generated with bf488, using OpenSSL, Libgcrypt and Nettle */ |
| 5815 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87" |
| 5816 | "\x78\x69\x5a\x4b\x3c\x2d\x1e\x0f" |
| 5817 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 5818 | "\x04\x68\x91\x04\xc2\xfd\x3b\x2f" |
| 5819 | "\x58\x40\x23\x64\x1a\xba\x61\x76" |
| 5820 | "\x1f\x1f\x1f\x1f\x0e\x0e\x0e\x0e" |
| 5821 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 5822 | .klen = 56, |
| 5823 | .input = "\xc0\x45\x04\x01\x2e\x4e\x1f\x53", |
| 5824 | .ilen = 8, |
| 5825 | .result = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5826 | .rlen = 8, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5827 | }, { /* Generated with Crypto++ */ |
| 5828 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5829 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5830 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5831 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5832 | .klen = 32, |
| 5833 | .input = "\x96\x87\x3D\x0C\x7B\xFB\xBD\x1F" |
| 5834 | "\xE3\xC1\x99\x6D\x39\xD4\xC2\x7D" |
| 5835 | "\xD7\x87\xA1\xF2\xDF\x51\x71\x26" |
| 5836 | "\xC2\xF4\x6D\xFF\xF6\xCD\x6B\x40" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5837 | "\xE1\xB3\xBF\xD4\x38\x2B\xC8\x3B" |
| 5838 | "\xD3\xB2\xD4\x61\xC7\x9F\x06\xE9" |
| 5839 | "\xCD\xF3\x88\x39\x39\x7A\xDF\x19" |
| 5840 | "\xE8\x03\x2A\x0B\x9E\xA0\x2B\x86" |
| 5841 | "\x31\xF8\x9D\xB1\xEE\x78\x9D\xB5" |
| 5842 | "\xCD\x8B\x7C\x2E\xF5\xA2\x2D\x5D" |
| 5843 | "\x6E\x66\xAF\x38\x6C\xD3\x13\xED" |
| 5844 | "\x14\xEA\x5D\xD0\x17\x77\x0F\x4A" |
| 5845 | "\x50\xF2\xD0\x0F\xC8\xF7\x1E\x7B" |
| 5846 | "\x9D\x5B\x54\x65\x4F\x16\x8A\x97" |
| 5847 | "\xF3\xF6\xD4\xAA\x87\x36\x77\x72" |
| 5848 | "\x99\x4A\xB5\x5E\x88\xC3\xCD\x7D" |
| 5849 | "\x1D\x97\xF9\x11\xBD\xE0\x1F\x1F" |
| 5850 | "\x96\x3E\x4B\x22\xF4\xC0\xE6\xB8" |
| 5851 | "\x47\x82\x98\x23\x33\x36\xBC\x1B" |
| 5852 | "\x36\xE7\xF6\xCF\x97\x37\x16\xC0" |
| 5853 | "\x87\x31\x8B\xB0\xDB\x19\x42\xA5" |
| 5854 | "\x1F\x90\x7E\x66\x34\xDD\x5E\xE9" |
| 5855 | "\x4F\xB2\x2B\x9A\xDE\xB3\x5D\x71" |
| 5856 | "\x4D\x68\xF0\xDC\xA6\xEA\xE3\x9B" |
| 5857 | "\x60\x00\x55\x57\x06\x8B\xD5\xB3" |
| 5858 | "\x86\x30\x78\xDA\x33\x9A\x9D\xCC" |
| 5859 | "\xBA\x0B\x81\x06\x77\x43\xC7\xC9" |
| 5860 | "\xDB\x37\x60\x11\x45\x59\x6D\x2D" |
| 5861 | "\x90\x3D\x65\x3E\xD0\x13\xC6\x3C" |
| 5862 | "\x0E\x78\x7D\x9A\x00\xD6\x2F\x0B" |
| 5863 | "\x3B\x53\x19\x1E\xA8\x9B\x11\xD9" |
| 5864 | "\x98\xE4\x7F\xC3\x6E\x51\x24\x70" |
| 5865 | "\x9F\x04\x9C\xC2\x9E\x44\x84\xE3" |
| 5866 | "\xE0\x8A\x44\xA2\x5C\x94\x74\x34" |
| 5867 | "\x37\x52\x7C\x03\xE8\x8E\x97\xE1" |
| 5868 | "\x5B\x5C\x0E\xB0\x70\xFE\x54\x3F" |
| 5869 | "\xD8\x65\xA9\xC5\xCD\xEC\xF4\x45" |
| 5870 | "\x55\xC5\xA7\xA3\x19\x80\x28\x51" |
| 5871 | "\xBE\x64\x4A\xC1\xD4\xE1\xBE\xEB" |
| 5872 | "\x73\x4C\xB6\xF9\x5F\x6D\x82\xBC" |
| 5873 | "\x3E\x42\x14\x49\x88\x51\xBF\x68" |
| 5874 | "\x45\x75\x27\x1B\x0A\x72\xED\xAF" |
| 5875 | "\xDA\xC4\x4D\x67\x0D\xEE\x75\xE3" |
| 5876 | "\x34\xDD\x91\x19\x42\x3A\xCB\xDA" |
| 5877 | "\x38\xFA\x3C\x93\x62\xF2\xE3\x81" |
| 5878 | "\xB3\xE4\xBB\xF6\x0D\x0B\x1D\x09" |
| 5879 | "\x9C\x52\x0D\x50\x63\xA4\xB2\xD2" |
| 5880 | "\x82\xA0\x23\x3F\x1F\xB6\xED\x6E" |
| 5881 | "\xC2\x9C\x1C\xD0\x9A\x40\xB6\xFC" |
| 5882 | "\x36\x56\x6E\x85\x73\xD7\x52\xBA" |
| 5883 | "\x35\x5E\x32\x89\x5D\x42\xF5\x36" |
| 5884 | "\x52\x8D\x46\x7D\xC8\x71\xAD\x33" |
| 5885 | "\xE1\xAF\x6A\xA8\xEC\xBA\x1C\xDC" |
| 5886 | "\xFE\x88\xE6\x16\xE4\xC8\x13\x00" |
| 5887 | "\x3C\xDA\x59\x32\x38\x19\xD5\xEB" |
| 5888 | "\xB6\x7F\x78\x45\x1B\x8E\x07\x8C" |
| 5889 | "\x66\x52\x75\xFF\xAF\xCE\x2D\x2B" |
| 5890 | "\x22\x29\xCA\xB3\x5F\x7F\xE3\x29" |
| 5891 | "\xB2\xB8\x9D\xEB\x16\xC8\xC5\x1D" |
| 5892 | "\xC9\x0D\x59\x82\x27\x57\x9D\x42" |
| 5893 | "\x54\x59\x09\xA5\x3D\xC5\x84\x68" |
| 5894 | "\x56\xEB\x36\x77\x3D\xAA\xB8\xF5" |
| 5895 | "\xC9\x1A\xFB\x5D\xDE\xBB\x43\xF4", |
| 5896 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5897 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5898 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5899 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5900 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5901 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5902 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5903 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5904 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5905 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5906 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 5907 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 5908 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 5909 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 5910 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 5911 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 5912 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 5913 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 5914 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 5915 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 5916 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 5917 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 5918 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 5919 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 5920 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 5921 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 5922 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 5923 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 5924 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 5925 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 5926 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 5927 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 5928 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 5929 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 5930 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 5931 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 5932 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 5933 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 5934 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 5935 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 5936 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 5937 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 5938 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 5939 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 5940 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 5941 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 5942 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 5943 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 5944 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 5945 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 5946 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 5947 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 5948 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 5949 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 5950 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 5951 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 5952 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 5953 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 5954 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 5955 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 5956 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 5957 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 5958 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 5959 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 5960 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 5961 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 5962 | .np = 3, |
| 5963 | .tap = { 504 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 5964 | }, |
| 5965 | }; |
| 5966 | |
| 5967 | static struct cipher_testvec bf_cbc_enc_tv_template[] = { |
| 5968 | { /* From OpenSSL */ |
| 5969 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 5970 | "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 5971 | .klen = 16, |
| 5972 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 5973 | .input = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 5974 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 5975 | "\x68\x65\x20\x74\x69\x6d\x65\x20" |
| 5976 | "\x66\x6f\x72\x20\x00\x00\x00\x00", |
| 5977 | .ilen = 32, |
| 5978 | .result = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" |
| 5979 | "\x05\xb1\x56\xe2\x74\x03\x97\x93" |
| 5980 | "\x58\xde\xb9\xe7\x15\x46\x16\xd9" |
| 5981 | "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", |
| 5982 | .rlen = 32, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 5983 | }, { /* Generated with Crypto++ */ |
| 5984 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 5985 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 5986 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 5987 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 5988 | .klen = 32, |
| 5989 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 5990 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 5991 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 5992 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 5993 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 5994 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 5995 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 5996 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 5997 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 5998 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 5999 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6000 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6001 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6002 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6003 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6004 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6005 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6006 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6007 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6008 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6009 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6010 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6011 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6012 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6013 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6014 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6015 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6016 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6017 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6018 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6019 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6020 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6021 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6022 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6023 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6024 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6025 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6026 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6027 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6028 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6029 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6030 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6031 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6032 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6033 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6034 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6035 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6036 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6037 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6038 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6039 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6040 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6041 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6042 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6043 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6044 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6045 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6046 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6047 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6048 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6049 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6050 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6051 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6052 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6053 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6054 | .result = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06" |
| 6055 | "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62" |
| 6056 | "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E" |
| 6057 | "\x1B\xD9\x02\xB6\x48\xB0\x87\x25" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6058 | "\x01\x9C\x93\x63\x51\x60\x82\xD2" |
| 6059 | "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD" |
| 6060 | "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F" |
| 6061 | "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69" |
| 6062 | "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5" |
| 6063 | "\x43\x29\x9D\x94\xF4\x2F\x0A\x65" |
| 6064 | "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A" |
| 6065 | "\x60\xD3\x52\xA8\xED\x91\xDF\xE1" |
| 6066 | "\x91\x73\x7C\x28\xA1\x14\xC3\x4C" |
| 6067 | "\x82\x72\x4B\x7D\x7D\x32\xD5\x19" |
| 6068 | "\xE8\xB8\x6B\x30\x21\x09\x0E\x27" |
| 6069 | "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6" |
| 6070 | "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13" |
| 6071 | "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69" |
| 6072 | "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C" |
| 6073 | "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40" |
| 6074 | "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43" |
| 6075 | "\x65\xFE\x15\x40\xD0\x62\x41\x02" |
| 6076 | "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE" |
| 6077 | "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C" |
| 6078 | "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B" |
| 6079 | "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A" |
| 6080 | "\xC2\x6D\xBD\x5E\x89\x95\x86\x43" |
| 6081 | "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24" |
| 6082 | "\x04\xF0\x86\x08\x78\x18\x42\xE0" |
| 6083 | "\x39\x1B\x22\x9E\x89\x4C\x04\x6B" |
| 6084 | "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7" |
| 6085 | "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC" |
| 6086 | "\xF0\x51\xCC\x93\x68\xFC\xE9\x19" |
| 6087 | "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC" |
| 6088 | "\x97\x18\x92\xFF\x15\x11\xCE\xED" |
| 6089 | "\x04\x41\x05\xA3\x92\xFF\x3B\xE6" |
| 6090 | "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04" |
| 6091 | "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68" |
| 6092 | "\xEF\xB3\x61\x18\xDB\x83\x9B\x39" |
| 6093 | "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02" |
| 6094 | "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35" |
| 6095 | "\x75\x6F\x06\x81\x0A\x97\x4D\xF0" |
| 6096 | "\x43\x12\x73\x77\xDB\x91\x83\x5B" |
| 6097 | "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50" |
| 6098 | "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F" |
| 6099 | "\x7E\x12\x40\xB2\x3E\x19\x23\xF1" |
| 6100 | "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87" |
| 6101 | "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88" |
| 6102 | "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A" |
| 6103 | "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76" |
| 6104 | "\x14\x48\x2E\xDE\x2A\x44\x5E\x45" |
| 6105 | "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A" |
| 6106 | "\xED\x73\xD3\x79\xF7\x38\x1D\xD0" |
| 6107 | "\xC5\xF8\x69\x83\x28\x84\x87\x56" |
| 6108 | "\x3F\xAE\x81\x04\x79\x1F\xD1\x09" |
| 6109 | "\xC5\xE5\x05\x0D\x64\x16\xCE\x42" |
| 6110 | "\xC5\xF8\xDB\x57\x89\x33\x22\xFC" |
| 6111 | "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90" |
| 6112 | "\x02\xBA\x55\x1E\x24\x3E\x02\x1D" |
| 6113 | "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51" |
| 6114 | "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9" |
| 6115 | "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0" |
| 6116 | "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4", |
| 6117 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 6118 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 6119 | .np = 3, |
| 6120 | .tap = { 504 - 10, 2, 8 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 6121 | }, |
| 6122 | }; |
| 6123 | |
| 6124 | static struct cipher_testvec bf_cbc_dec_tv_template[] = { |
| 6125 | { /* From OpenSSL */ |
| 6126 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 6127 | "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 6128 | .klen = 16, |
| 6129 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 6130 | .input = "\x6b\x77\xb4\xd6\x30\x06\xde\xe6" |
| 6131 | "\x05\xb1\x56\xe2\x74\x03\x97\x93" |
| 6132 | "\x58\xde\xb9\xe7\x15\x46\x16\xd9" |
| 6133 | "\x59\xf1\x65\x2b\xd5\xff\x92\xcc", |
| 6134 | .ilen = 32, |
| 6135 | .result = "\x37\x36\x35\x34\x33\x32\x31\x20" |
| 6136 | "\x4e\x6f\x77\x20\x69\x73\x20\x74" |
| 6137 | "\x68\x65\x20\x74\x69\x6d\x65\x20" |
| 6138 | "\x66\x6f\x72\x20\x00\x00\x00\x00", |
| 6139 | .rlen = 32, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6140 | }, { /* Generated with Crypto++ */ |
| 6141 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6142 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6143 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6144 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6145 | .klen = 32, |
| 6146 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 6147 | .input = "\xB4\xFE\xA5\xBB\x3D\x2C\x27\x06" |
| 6148 | "\x06\x2B\x3A\x92\xB2\xF5\x5E\x62" |
| 6149 | "\x84\xCD\xF7\x66\x7E\x41\x6C\x8E" |
| 6150 | "\x1B\xD9\x02\xB6\x48\xB0\x87\x25" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6151 | "\x01\x9C\x93\x63\x51\x60\x82\xD2" |
| 6152 | "\x4D\xE5\xC2\xB7\xAE\x60\xD8\xAD" |
| 6153 | "\x9F\xAB\x6C\xFA\x20\x05\xDA\x6F" |
| 6154 | "\x1F\xD1\xD8\x36\x0F\xB5\x16\x69" |
| 6155 | "\x3C\xAF\xB3\x30\x18\x33\xE6\xB5" |
| 6156 | "\x43\x29\x9D\x94\xF4\x2F\x0A\x65" |
| 6157 | "\x40\xB2\xB2\xB2\x42\x89\xEE\x8A" |
| 6158 | "\x60\xD3\x52\xA8\xED\x91\xDF\xE1" |
| 6159 | "\x91\x73\x7C\x28\xA1\x14\xC3\x4C" |
| 6160 | "\x82\x72\x4B\x7D\x7D\x32\xD5\x19" |
| 6161 | "\xE8\xB8\x6B\x30\x21\x09\x0E\x27" |
| 6162 | "\x10\x9D\x2D\x3A\x6A\x4B\x7B\xE6" |
| 6163 | "\x8D\x4E\x02\x32\xFF\x7F\x8E\x13" |
| 6164 | "\xB0\x96\xF4\xC2\xA1\x60\x8A\x69" |
| 6165 | "\xEF\x0F\x86\xD0\x25\x13\x1A\x7C" |
| 6166 | "\x6E\xF0\x41\xA3\xFB\xB3\xAB\x40" |
| 6167 | "\x7D\x19\xA0\x11\x4F\x3E\x1D\x43" |
| 6168 | "\x65\xFE\x15\x40\xD0\x62\x41\x02" |
| 6169 | "\xEA\x0C\x7A\xC3\x84\xEE\xB0\xBE" |
| 6170 | "\xBE\xC8\x57\x51\xCD\x4F\xAD\x5C" |
| 6171 | "\xCC\x79\xBA\x0D\x85\x3A\xED\x6B" |
| 6172 | "\xAC\x6B\xA3\x4D\xBC\xE8\x02\x6A" |
| 6173 | "\xC2\x6D\xBD\x5E\x89\x95\x86\x43" |
| 6174 | "\x2C\x17\x4B\xC6\x40\xA2\xBD\x24" |
| 6175 | "\x04\xF0\x86\x08\x78\x18\x42\xE0" |
| 6176 | "\x39\x1B\x22\x9E\x89\x4C\x04\x6B" |
| 6177 | "\x65\xC5\xB6\x0E\xF6\x63\xFC\xD7" |
| 6178 | "\xAE\x9E\x87\x13\xCC\xD3\x1A\xEC" |
| 6179 | "\xF0\x51\xCC\x93\x68\xFC\xE9\x19" |
| 6180 | "\x7C\x4E\x9B\xCC\x17\xAD\xD2\xFC" |
| 6181 | "\x97\x18\x92\xFF\x15\x11\xCE\xED" |
| 6182 | "\x04\x41\x05\xA3\x92\xFF\x3B\xE6" |
| 6183 | "\xB6\x8C\x90\xC6\xCD\x15\xA0\x04" |
| 6184 | "\x25\x8B\x5D\x5B\x5F\xDB\xAE\x68" |
| 6185 | "\xEF\xB3\x61\x18\xDB\x83\x9B\x39" |
| 6186 | "\xCA\x82\xD1\x88\xF0\xA2\x5C\x02" |
| 6187 | "\x87\xBD\x8D\x8F\xBB\x62\xF0\x35" |
| 6188 | "\x75\x6F\x06\x81\x0A\x97\x4D\xF0" |
| 6189 | "\x43\x12\x73\x77\xDB\x91\x83\x5B" |
| 6190 | "\xE7\x3A\xA6\x07\x7B\xBF\x2C\x50" |
| 6191 | "\x94\xDE\x7B\x65\xDA\x1C\xF1\x9F" |
| 6192 | "\x7E\x12\x40\xB2\x3E\x19\x23\xF1" |
| 6193 | "\x7C\x1B\x5F\xA8\xF3\xAC\x63\x87" |
| 6194 | "\xEB\x3E\x0C\xBE\xA3\x63\x97\x88" |
| 6195 | "\x8D\x27\xC6\x2A\xF8\xF2\x67\x9A" |
| 6196 | "\x0D\x14\x16\x2B\x6F\xCB\xD4\x76" |
| 6197 | "\x14\x48\x2E\xDE\x2A\x44\x5E\x45" |
| 6198 | "\xF1\x97\x82\xEF\xB7\xAE\xED\x3A" |
| 6199 | "\xED\x73\xD3\x79\xF7\x38\x1D\xD0" |
| 6200 | "\xC5\xF8\x69\x83\x28\x84\x87\x56" |
| 6201 | "\x3F\xAE\x81\x04\x79\x1F\xD1\x09" |
| 6202 | "\xC5\xE5\x05\x0D\x64\x16\xCE\x42" |
| 6203 | "\xC5\xF8\xDB\x57\x89\x33\x22\xFC" |
| 6204 | "\xB4\xD7\x94\xB9\xF3\xCC\x02\x90" |
| 6205 | "\x02\xBA\x55\x1E\x24\x3E\x02\x1D" |
| 6206 | "\xC6\xCD\x8F\xD9\xBD\xED\xB0\x51" |
| 6207 | "\xCD\xE9\xD5\x0C\xFE\x12\x39\xA9" |
| 6208 | "\x93\x9B\xEE\xB5\x97\x41\xD2\xA0" |
| 6209 | "\xB4\x98\xD8\x6B\x74\xE7\x65\xF4", |
| 6210 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6211 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6212 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6213 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6214 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6215 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6216 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6217 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6218 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6219 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6220 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6221 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6222 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6223 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6224 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6225 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6226 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6227 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6228 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6229 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6230 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6231 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6232 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6233 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6234 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6235 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6236 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6237 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6238 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6239 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6240 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6241 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6242 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6243 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6244 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6245 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6246 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6247 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6248 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6249 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6250 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6251 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6252 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6253 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6254 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6255 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6256 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6257 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6258 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6259 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6260 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6261 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6262 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6263 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6264 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6265 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6266 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6267 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6268 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6269 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6270 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6271 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6272 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6273 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6274 | .rlen = 504, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 6275 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 6276 | .np = 3, |
| 6277 | .tap = { 504 - 10, 2, 8 }, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6278 | }, |
| 6279 | }; |
| 6280 | |
| 6281 | static struct cipher_testvec bf_ctr_enc_tv_template[] = { |
| 6282 | { /* Generated with Crypto++ */ |
| 6283 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6284 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6285 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6286 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6287 | .klen = 32, |
| 6288 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 6289 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6290 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6291 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6292 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6293 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6294 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6295 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6296 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6297 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6298 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6299 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6300 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6301 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6302 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6303 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6304 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6305 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6306 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6307 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6308 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6309 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6310 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6311 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6312 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6313 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6314 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6315 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6316 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6317 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6318 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6319 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6320 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6321 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6322 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6323 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6324 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6325 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6326 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6327 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6328 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6329 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6330 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6331 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6332 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6333 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6334 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6335 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6336 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6337 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6338 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6339 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6340 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6341 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6342 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6343 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6344 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6345 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6346 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6347 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6348 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6349 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6350 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6351 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6352 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6353 | .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 6354 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 6355 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 6356 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6357 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
| 6358 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 6359 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 6360 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 6361 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 6362 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 6363 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 6364 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 6365 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 6366 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 6367 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 6368 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 6369 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 6370 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 6371 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 6372 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 6373 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 6374 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 6375 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 6376 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 6377 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 6378 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 6379 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 6380 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 6381 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 6382 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 6383 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 6384 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 6385 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 6386 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 6387 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 6388 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 6389 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 6390 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 6391 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 6392 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 6393 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 6394 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 6395 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 6396 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 6397 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 6398 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 6399 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 6400 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 6401 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 6402 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 6403 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 6404 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 6405 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 6406 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 6407 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 6408 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 6409 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 6410 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 6411 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 6412 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 6413 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 6414 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 6415 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29", |
| 6416 | .rlen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6417 | }, { /* Generated with Crypto++ */ |
| 6418 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6419 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6420 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6421 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6422 | .klen = 32, |
| 6423 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 6424 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6425 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6426 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6427 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 6428 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6429 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6430 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6431 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6432 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6433 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6434 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6435 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6436 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6437 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6438 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6439 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6440 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6441 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6442 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6443 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6444 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6445 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6446 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6447 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6448 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6449 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6450 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6451 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6452 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6453 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6454 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6455 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6456 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6457 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6458 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6459 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6460 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6461 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6462 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6463 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6464 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6465 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6466 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6467 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6468 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6469 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6470 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6471 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6472 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6473 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6474 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6475 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6476 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6477 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6478 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6479 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6480 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6481 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6482 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6483 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6484 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6485 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6486 | "\x2B\xC2\x59\xF0\x64\xFB\x92", |
| 6487 | .ilen = 503, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6488 | .result = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 6489 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 6490 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 6491 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 6492 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6493 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 6494 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 6495 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 6496 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 6497 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 6498 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 6499 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 6500 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 6501 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 6502 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 6503 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 6504 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 6505 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 6506 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 6507 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 6508 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 6509 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 6510 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 6511 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 6512 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 6513 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 6514 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 6515 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 6516 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 6517 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 6518 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 6519 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 6520 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 6521 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 6522 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 6523 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 6524 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 6525 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 6526 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 6527 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 6528 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 6529 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 6530 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 6531 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 6532 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 6533 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 6534 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 6535 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 6536 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 6537 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 6538 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 6539 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 6540 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 6541 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 6542 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 6543 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 6544 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 6545 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 6546 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 6547 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 6548 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 6549 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 6550 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D", |
| 6551 | .rlen = 503, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 6552 | .also_non_np = 1, |
| 6553 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6554 | .tap = { 503 - 8, 8 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 6555 | }, { /* Generated with Crypto++ */ |
| 6556 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6557 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6558 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6559 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6560 | .klen = 32, |
| 6561 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 6562 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6563 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6564 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6565 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 6566 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6567 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6568 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6569 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6570 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6571 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6572 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6573 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6574 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6575 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6576 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6577 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6578 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6579 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6580 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6581 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6582 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6583 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6584 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6585 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6586 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6587 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6588 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6589 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6590 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6591 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6592 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6593 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6594 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6595 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6596 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6597 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6598 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6599 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6600 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6601 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6602 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6603 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6604 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6605 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6606 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6607 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6608 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6609 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6610 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6611 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6612 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6613 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6614 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6615 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6616 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6617 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6618 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6619 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6620 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6621 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6622 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6623 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6624 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6625 | .ilen = 504, |
| 6626 | .result = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D" |
| 6627 | "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82" |
| 6628 | "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F" |
| 6629 | "\x25\xF9\x27\x21\xF2\xD2\x9A\x01" |
| 6630 | "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE" |
| 6631 | "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2" |
| 6632 | "\x62\x44\x72\xB9\x5D\xC0\xF8\x37" |
| 6633 | "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2" |
| 6634 | "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18" |
| 6635 | "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60" |
| 6636 | "\xF8\x98\xA2\x39\x81\x23\x6C\xA9" |
| 6637 | "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44" |
| 6638 | "\x2A\x67\x7A\x88\x28\xDC\x36\x83" |
| 6639 | "\x18\xD7\x48\x43\x17\x2B\x1B\xE6" |
| 6640 | "\x0B\x82\x59\x14\x26\x67\x08\x09" |
| 6641 | "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A" |
| 6642 | "\xCD\x22\x94\x42\xF5\xBA\x74\x7E" |
| 6643 | "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E" |
| 6644 | "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8" |
| 6645 | "\xF4\xCC\x19\x76\xAB\x48\x29\xAA" |
| 6646 | "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21" |
| 6647 | "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F" |
| 6648 | "\x59\x28\x1A\xE4\x18\x16\xA0\x29" |
| 6649 | "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E" |
| 6650 | "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D" |
| 6651 | "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD" |
| 6652 | "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31" |
| 6653 | "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB" |
| 6654 | "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8" |
| 6655 | "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F" |
| 6656 | "\xC5\xE9\x09\x08\xDD\x22\x77\x42" |
| 6657 | "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C" |
| 6658 | "\xF0\xFF\x15\x8E\x84\x86\xC0\x10" |
| 6659 | "\x0F\x8D\x33\x06\xB8\x72\xA4\x47" |
| 6660 | "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B" |
| 6661 | "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2" |
| 6662 | "\x63\x66\x07\x6D\x3F\x6C\x51\x7C" |
| 6663 | "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D" |
| 6664 | "\xB4\x19\xD8\x19\x45\x66\x27\x02" |
| 6665 | "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D" |
| 6666 | "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1" |
| 6667 | "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7" |
| 6668 | "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53" |
| 6669 | "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3" |
| 6670 | "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8" |
| 6671 | "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A" |
| 6672 | "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E" |
| 6673 | "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37" |
| 6674 | "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22" |
| 6675 | "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9" |
| 6676 | "\x91\x51\x4E\x71\xF2\x98\x85\x16" |
| 6677 | "\x25\x7A\x76\x8A\x51\x0E\x65\x14" |
| 6678 | "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A" |
| 6679 | "\xE1\xCF\x41\x72\x14\x29\x4C\xF0" |
| 6680 | "\x20\xD9\x9A\xC5\x66\xA4\x03\x76" |
| 6681 | "\x5B\xA4\x15\x4F\x0E\x64\x39\x40" |
| 6682 | "\x25\xF9\x20\x22\xF5\x88\xF5\xBA" |
| 6683 | "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24" |
| 6684 | "\x4B\x92\x71\xD9\x2F\x77\xA7\x95" |
| 6685 | "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB" |
| 6686 | "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0" |
| 6687 | "\x16\x4C\x18\x6B\xF2\x69\xA0\x07" |
| 6688 | "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E", |
| 6689 | .rlen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6690 | }, |
| 6691 | }; |
| 6692 | |
| 6693 | static struct cipher_testvec bf_ctr_dec_tv_template[] = { |
| 6694 | { /* Generated with Crypto++ */ |
| 6695 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6696 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6697 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6698 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6699 | .klen = 32, |
| 6700 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 6701 | .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 6702 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 6703 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 6704 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6705 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
| 6706 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 6707 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 6708 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 6709 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 6710 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 6711 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 6712 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 6713 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 6714 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 6715 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 6716 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 6717 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 6718 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 6719 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 6720 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 6721 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 6722 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 6723 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 6724 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 6725 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 6726 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 6727 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 6728 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 6729 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 6730 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 6731 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 6732 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 6733 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 6734 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 6735 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 6736 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 6737 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 6738 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 6739 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 6740 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 6741 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 6742 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 6743 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 6744 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 6745 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 6746 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 6747 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 6748 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 6749 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 6750 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 6751 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 6752 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 6753 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 6754 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 6755 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 6756 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 6757 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 6758 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 6759 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 6760 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 6761 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 6762 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 6763 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D\x29", |
| 6764 | .ilen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6765 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6766 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6767 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6768 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6769 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 6770 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6771 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6772 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6773 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6774 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6775 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6776 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6777 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6778 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6779 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6780 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6781 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6782 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6783 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6784 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6785 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6786 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6787 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6788 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6789 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6790 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6791 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6792 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6793 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6794 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6795 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6796 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6797 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6798 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6799 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6800 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6801 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6802 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6803 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6804 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6805 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6806 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6807 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6808 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6809 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6810 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6811 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6812 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6813 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6814 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6815 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6816 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6817 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6818 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6819 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6820 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6821 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6822 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6823 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6824 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6825 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6826 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6827 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 6828 | .rlen = 504, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6829 | }, { /* Generated with Crypto++ */ |
| 6830 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6831 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6832 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6833 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6834 | .klen = 32, |
| 6835 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 6836 | .input = "\xC7\xA3\xDF\xB9\x05\xF4\x9E\x8D" |
| 6837 | "\x9E\xDF\x38\x18\x83\x07\xEF\xC1" |
| 6838 | "\x93\x3C\xAA\xAA\xFE\x06\x42\xCC" |
| 6839 | "\x0D\x70\x86\x5A\x44\xAD\x85\x17" |
| 6840 | "\xE4\x1F\x5E\xA5\x89\xAC\x32\xBC" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6841 | "\x3D\xA7\xE9\x0A\x5C\x70\x4D\xDE" |
| 6842 | "\x99\x38\x07\xCA\x1D\x21\xC1\x11" |
| 6843 | "\x97\xEB\x98\x75\xC4\x73\x45\x83" |
| 6844 | "\x46\x1C\x9C\x91\x87\xC1\xA0\x56" |
| 6845 | "\x98\xA1\x8B\xDB\x22\x76\xBD\x62" |
| 6846 | "\xA4\xBC\xE8\x86\xDA\xD2\x51\x13" |
| 6847 | "\x13\xD2\x96\x68\x69\x10\x67\x0C" |
| 6848 | "\xD0\x17\x25\x7C\xB2\xAE\x4F\x93" |
| 6849 | "\xA6\x82\x20\xCF\x0F\xA6\x47\x79" |
| 6850 | "\x88\x09\x40\x59\xBD\x12\x64\xB5" |
| 6851 | "\x19\x38\x0D\xFF\x86\xD9\x42\x20" |
| 6852 | "\x81\x0D\x96\x99\xAF\x22\x1F\x94" |
| 6853 | "\x5C\x6E\xEC\xEA\xA3\x39\xCB\x09" |
| 6854 | "\x43\x19\x7F\xD0\xBB\x10\xC2\x49" |
| 6855 | "\xF7\xE9\xF2\xEE\xBF\xF7\xF8\xB3" |
| 6856 | "\x0E\x1A\xF1\x8D\x70\x82\x0C\x04" |
| 6857 | "\xFD\x29\x1A\xAC\xC0\x92\x48\x34" |
| 6858 | "\x6A\xE3\x1D\x4F\xFC\x1C\x72\x6A" |
| 6859 | "\x57\xCB\xAD\xD0\x98\xAB\xB1\x01" |
| 6860 | "\x03\x6A\x45\xDD\x07\x71\x5F\x5B" |
| 6861 | "\xB5\x4A\xE4\xE5\xB9\xB9\xBC\xAC" |
| 6862 | "\x44\xF7\x41\xA4\x5F\x2E\xE9\x28" |
| 6863 | "\xE3\x05\xD2\x94\x78\x4C\x33\x1B" |
| 6864 | "\xBD\xC1\x6E\x51\xD9\xAD\xD9\x86" |
| 6865 | "\x15\x4A\x78\xAE\x7B\xAD\x3B\xBC" |
| 6866 | "\x2F\xE0\x0E\xC5\x7B\x54\x97\x5F" |
| 6867 | "\x60\x51\x14\x65\xF9\x91\xE9\xDA" |
| 6868 | "\x9A\xBC\xFC\x19\x29\x67\xAA\x63" |
| 6869 | "\x5E\xF2\x48\x88\xEB\x79\xE1\xE4" |
| 6870 | "\xF7\xF6\x4C\xA9\xE2\x8C\x3B\xE0" |
| 6871 | "\xED\x52\xAE\x90\x8F\x5B\x98\x34" |
| 6872 | "\x29\x94\x34\x7F\xF9\x6C\x1E\xB6" |
| 6873 | "\xA4\xE7\x2D\x06\x54\x9D\xC3\x02" |
| 6874 | "\xC1\x90\xA4\x72\x31\x6B\x24\x51" |
| 6875 | "\x0B\xB3\x7C\x63\x15\xBA\xAF\x5D" |
| 6876 | "\x41\xE0\x37\x6D\xBE\x41\x58\xDE" |
| 6877 | "\xF2\x07\x62\x99\xBE\xC1\x8C\x0F" |
| 6878 | "\x0F\x28\xFB\x8F\x0E\x1D\x91\xE2" |
| 6879 | "\xDA\x99\x5C\x49\xBA\x9C\xA8\x86" |
| 6880 | "\x82\x63\x11\xB3\x54\x49\x00\x08" |
| 6881 | "\x07\xF2\xE8\x1F\x34\x49\x61\xF4" |
| 6882 | "\x81\xE9\xF6\xA9\x5A\x28\x60\x1F" |
| 6883 | "\x66\x99\x08\x06\xF2\xE8\x2D\xD1" |
| 6884 | "\xD0\x67\xBA\x32\x1F\x02\x86\x7B" |
| 6885 | "\xFB\x79\x3D\xC5\xB1\x7F\x15\xAF" |
| 6886 | "\xD7\xBF\x31\x46\x22\x7F\xAE\x5B" |
| 6887 | "\x8B\x95\x47\xC2\xB1\x62\xA1\xCE" |
| 6888 | "\x52\xAC\x9C\x8B\xC2\x49\x7F\xBC" |
| 6889 | "\x9C\x89\xB8\xB6\xCA\xE3\x8F\xEA" |
| 6890 | "\xAC\xB4\x5D\xE4\x50\xDC\x3A\xB5" |
| 6891 | "\x91\x04\x94\x99\x03\x3B\x42\x6D" |
| 6892 | "\x9C\x4A\x02\xF5\xB5\x38\x98\xA8" |
| 6893 | "\x5C\x97\x2E\x4D\x79\x67\x71\xAF" |
| 6894 | "\xF0\x70\x77\xFF\x2D\xDA\xA0\x9E" |
| 6895 | "\x23\x8D\xD6\xA6\x68\x10\x78\x9A" |
| 6896 | "\x64\xBB\x15\xB8\x56\xCF\xEE\xE5" |
| 6897 | "\x32\x44\x96\x1C\xD8\xEB\x95\xD2" |
| 6898 | "\xF3\x71\xEF\xEB\x4E\xBB\x4D", |
| 6899 | .ilen = 503, |
Jussi Kivilinna | 85b63e3 | 2011-10-10 23:03:03 +0300 | [diff] [blame] | 6900 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 6901 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 6902 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 6903 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 6904 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6905 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 6906 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 6907 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 6908 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 6909 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 6910 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 6911 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 6912 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 6913 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 6914 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 6915 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 6916 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 6917 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 6918 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 6919 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 6920 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 6921 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 6922 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 6923 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 6924 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 6925 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 6926 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 6927 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 6928 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 6929 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 6930 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 6931 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 6932 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 6933 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 6934 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 6935 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 6936 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 6937 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 6938 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 6939 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 6940 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 6941 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 6942 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 6943 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 6944 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 6945 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 6946 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 6947 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 6948 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 6949 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 6950 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 6951 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 6952 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 6953 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 6954 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 6955 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 6956 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 6957 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 6958 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 6959 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 6960 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 6961 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 6962 | "\x2B\xC2\x59\xF0\x64\xFB\x92", |
| 6963 | .rlen = 503, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 6964 | .also_non_np = 1, |
| 6965 | .np = 2, |
Jussi Kivilinna | 963ae39 | 2012-10-20 14:52:52 +0300 | [diff] [blame] | 6966 | .tap = { 503 - 8, 8 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 6967 | }, { /* Generated with Crypto++ */ |
| 6968 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 6969 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 6970 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 6971 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 6972 | .klen = 32, |
| 6973 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 6974 | .input = "\x5F\x58\x6E\x60\x51\x6E\xDC\x3D" |
| 6975 | "\xD1\xBB\xF7\xB7\xFD\x04\x44\x82" |
| 6976 | "\xDC\x9F\x4B\x02\xF1\xD2\x5A\x6F" |
| 6977 | "\x25\xF9\x27\x21\xF2\xD2\x9A\x01" |
| 6978 | "\xBD\xAD\x3D\x93\x87\xCA\x0D\xFE" |
| 6979 | "\xB7\x2C\x17\x1F\x42\x8C\x13\xB2" |
| 6980 | "\x62\x44\x72\xB9\x5D\xC0\xF8\x37" |
| 6981 | "\xDF\xEA\x78\x81\x8F\xA6\x34\xB2" |
| 6982 | "\x07\x09\x7C\xB9\x3A\xA0\x2B\x18" |
| 6983 | "\x34\x6A\x9D\x3D\xA5\xEB\xF4\x60" |
| 6984 | "\xF8\x98\xA2\x39\x81\x23\x6C\xA9" |
| 6985 | "\x70\xCA\xCC\x45\xD8\x1F\xDF\x44" |
| 6986 | "\x2A\x67\x7A\x88\x28\xDC\x36\x83" |
| 6987 | "\x18\xD7\x48\x43\x17\x2B\x1B\xE6" |
| 6988 | "\x0B\x82\x59\x14\x26\x67\x08\x09" |
| 6989 | "\x5B\x5D\x38\xD0\x81\xCE\x54\x2A" |
| 6990 | "\xCD\x22\x94\x42\xF5\xBA\x74\x7E" |
| 6991 | "\xD9\x00\x40\xA9\x0D\x0B\xBD\x8E" |
| 6992 | "\xC4\x8E\x5E\x17\x8F\x48\xE2\xB8" |
| 6993 | "\xF4\xCC\x19\x76\xAB\x48\x29\xAA" |
| 6994 | "\x81\xD5\xCE\xD5\x8A\x3B\xC9\x21" |
| 6995 | "\xEF\x50\x4F\x04\x02\xBF\xE1\x1F" |
| 6996 | "\x59\x28\x1A\xE4\x18\x16\xA0\x29" |
| 6997 | "\xBF\x34\xA9\x2D\x28\x83\xC0\x5E" |
| 6998 | "\xEA\x44\xC4\x6E\xAB\x24\x79\x9D" |
| 6999 | "\x2D\xA1\xE8\x55\xCA\x74\xFC\xBD" |
| 7000 | "\xFE\xDD\xDA\xA5\xFB\x34\x90\x31" |
| 7001 | "\x0E\x62\x28\x9B\xDC\xD7\xA1\xBB" |
| 7002 | "\xF0\x1A\xB3\xE2\xD0\xFA\xBD\xE8" |
| 7003 | "\x5C\x5A\x10\x67\xF6\x6A\x17\x3F" |
| 7004 | "\xC5\xE9\x09\x08\xDD\x22\x77\x42" |
| 7005 | "\x26\x6A\x6A\x7A\x3F\x87\x80\x0C" |
| 7006 | "\xF0\xFF\x15\x8E\x84\x86\xC0\x10" |
| 7007 | "\x0F\x8D\x33\x06\xB8\x72\xA4\x47" |
| 7008 | "\x6B\xED\x2E\x05\x94\x6C\x5C\x5B" |
| 7009 | "\x13\xF6\x77\xEE\x3B\x16\xDF\xC2" |
| 7010 | "\x63\x66\x07\x6D\x3F\x6C\x51\x7C" |
| 7011 | "\x1C\xAC\x80\xB6\x58\x48\xB7\x9D" |
| 7012 | "\xB4\x19\xD8\x19\x45\x66\x27\x02" |
| 7013 | "\xA1\xA9\x99\xF3\x1F\xE5\xA7\x1D" |
| 7014 | "\x31\xE7\x1B\x0D\xFF\xBB\xB5\xA1" |
| 7015 | "\xF5\x9C\x45\x1E\x18\x19\xA1\xE7" |
| 7016 | "\xC2\xF1\xBF\x68\xC3\xEC\xCF\x53" |
| 7017 | "\x67\xA6\x2B\x7D\x3C\x6D\x24\xC3" |
| 7018 | "\xE8\xE6\x07\x5A\x09\xE0\x32\xA8" |
| 7019 | "\x52\xF6\xE9\xED\x0E\xC6\x0A\x6A" |
| 7020 | "\xFC\x60\x2A\xE0\x93\xCE\xB8\x2E" |
| 7021 | "\xA2\xA8\x0E\x79\x9E\x34\x5D\x37" |
| 7022 | "\x6F\x12\xFE\x48\x7B\xE7\xB9\x22" |
| 7023 | "\x29\xE8\xD7\xBE\x5D\xD1\x8B\xD9" |
| 7024 | "\x91\x51\x4E\x71\xF2\x98\x85\x16" |
| 7025 | "\x25\x7A\x76\x8A\x51\x0E\x65\x14" |
| 7026 | "\x81\xB5\x3A\x37\xFD\xEC\xB5\x8A" |
| 7027 | "\xE1\xCF\x41\x72\x14\x29\x4C\xF0" |
| 7028 | "\x20\xD9\x9A\xC5\x66\xA4\x03\x76" |
| 7029 | "\x5B\xA4\x15\x4F\x0E\x64\x39\x40" |
| 7030 | "\x25\xF9\x20\x22\xF5\x88\xF5\xBA" |
| 7031 | "\xE4\xDF\x45\x61\xBF\x8D\x7A\x24" |
| 7032 | "\x4B\x92\x71\xD9\x2F\x77\xA7\x95" |
| 7033 | "\xA8\x7F\x61\xD5\xA4\x57\xB0\xFB" |
| 7034 | "\xB5\x77\xBA\x1C\xEE\x71\xFA\xB0" |
| 7035 | "\x16\x4C\x18\x6B\xF2\x69\xA0\x07" |
| 7036 | "\xEF\xBE\xEC\x69\xAC\xA8\x63\x9E", |
| 7037 | .ilen = 504, |
| 7038 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7039 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7040 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7041 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7042 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7043 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7044 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7045 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7046 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7047 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7048 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7049 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7050 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7051 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7052 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7053 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7054 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7055 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7056 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7057 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7058 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7059 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7060 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7061 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7062 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7063 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7064 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7065 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7066 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7067 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7068 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7069 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7070 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7071 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7072 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7073 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7074 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7075 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7076 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7077 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7078 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7079 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7080 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7081 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7082 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7083 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7084 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7085 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7086 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7087 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7088 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7089 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7090 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7091 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7092 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7093 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7094 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7095 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7096 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7097 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7098 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7099 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 7100 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06", |
| 7101 | .rlen = 504, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 7102 | }, |
| 7103 | }; |
| 7104 | |
| 7105 | /* |
| 7106 | * Twofish test vectors. |
| 7107 | */ |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7108 | #define TF_ENC_TEST_VECTORS 4 |
| 7109 | #define TF_DEC_TEST_VECTORS 4 |
| 7110 | #define TF_CBC_ENC_TEST_VECTORS 5 |
| 7111 | #define TF_CBC_DEC_TEST_VECTORS 5 |
| 7112 | #define TF_CTR_ENC_TEST_VECTORS 2 |
| 7113 | #define TF_CTR_DEC_TEST_VECTORS 2 |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 7114 | #define TF_LRW_ENC_TEST_VECTORS 8 |
| 7115 | #define TF_LRW_DEC_TEST_VECTORS 8 |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 7116 | #define TF_XTS_ENC_TEST_VECTORS 5 |
| 7117 | #define TF_XTS_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 7118 | |
| 7119 | static struct cipher_testvec tf_enc_tv_template[] = { |
| 7120 | { |
| 7121 | .key = zeroed_string, |
| 7122 | .klen = 16, |
| 7123 | .input = zeroed_string, |
| 7124 | .ilen = 16, |
| 7125 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7126 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 7127 | .rlen = 16, |
| 7128 | }, { |
| 7129 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 7130 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 7131 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 7132 | .klen = 24, |
| 7133 | .input = zeroed_string, |
| 7134 | .ilen = 16, |
| 7135 | .result = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" |
| 7136 | "\x50\x1f\x13\xb8\x92\xbd\x22\x48", |
| 7137 | .rlen = 16, |
| 7138 | }, { |
| 7139 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 7140 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 7141 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 7142 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 7143 | .klen = 32, |
| 7144 | .input = zeroed_string, |
| 7145 | .ilen = 16, |
| 7146 | .result = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" |
| 7147 | "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", |
| 7148 | .rlen = 16, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7149 | }, { /* Generated with Crypto++ */ |
| 7150 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 7151 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 7152 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 7153 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 7154 | .klen = 32, |
| 7155 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7156 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7157 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7158 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7159 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7160 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7161 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7162 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7163 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7164 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7165 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7166 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7167 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7168 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7169 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7170 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7171 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7172 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7173 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7174 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7175 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7176 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7177 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7178 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7179 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7180 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7181 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7182 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7183 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7184 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7185 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7186 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7187 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7188 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7189 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7190 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7191 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7192 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7193 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7194 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7195 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7196 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7197 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7198 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7199 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7200 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7201 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7202 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7203 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7204 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7205 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7206 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7207 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7208 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7209 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7210 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7211 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7212 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7213 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7214 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7215 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7216 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7217 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7218 | .result = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF" |
| 7219 | "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC" |
| 7220 | "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D" |
| 7221 | "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14" |
| 7222 | "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" |
| 7223 | "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" |
| 7224 | "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7225 | "\x89\xF6\x82\xF0\xD3\xDB\x06\x02" |
| 7226 | "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43" |
| 7227 | "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40" |
| 7228 | "\x80\x27\x88\xBA\x2C\x74\x42\xE0" |
| 7229 | "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A" |
| 7230 | "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A" |
| 7231 | "\x91\x75\x47\xBC\x67\x21\x4E\xF9" |
| 7232 | "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C" |
| 7233 | "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22" |
| 7234 | "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C" |
| 7235 | "\xC6\x24\x42\xB8\x23\x66\x80\xA9" |
| 7236 | "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63" |
| 7237 | "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3" |
| 7238 | "\x33\x62\x70\xE2\x1B\x86\x7A\xA1" |
| 7239 | "\x51\x4A\x16\xFE\x29\x63\x7E\xD0" |
| 7240 | "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8" |
| 7241 | "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66" |
| 7242 | "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B" |
| 7243 | "\xB6\x41\x42\x64\x43\xEE\x6E\x7C" |
| 7244 | "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F" |
| 7245 | "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97" |
| 7246 | "\x66\xA3\x96\x0F\x1C\x25\x60\xF5" |
| 7247 | "\x3C\x2E\x32\x69\x0E\x82\xFF\x27" |
| 7248 | "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C" |
| 7249 | "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A" |
| 7250 | "\x1B\x42\x1F\x5B\x29\x19\x96\x13" |
| 7251 | "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B" |
| 7252 | "\x81\x77\x6D\xF4\xA0\x01\x42\xEC" |
| 7253 | "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB" |
| 7254 | "\x83\x54\xDF\x0F\x86\xB7\xEA\x40" |
| 7255 | "\x46\x39\xF7\x2A\x89\x8D\x4E\x96" |
| 7256 | "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D" |
| 7257 | "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16" |
| 7258 | "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D" |
| 7259 | "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41" |
| 7260 | "\xC6\xBD\x36\xEF\xED\x29\x50\x6D" |
| 7261 | "\x10\xEF\x26\xE8\xA8\x93\x11\x3F" |
| 7262 | "\x2D\x1F\x88\x20\x77\x45\xF5\x66" |
| 7263 | "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81" |
| 7264 | "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C" |
| 7265 | "\xB2\x10\x7A\xCA\x05\x25\x59\xDB" |
| 7266 | "\xC7\x28\xF5\x20\x35\x52\x9E\x62" |
| 7267 | "\xF8\x88\x24\x1C\x4D\x84\x12\x39" |
| 7268 | "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC" |
| 7269 | "\x87\x66\xE6\xC0\x6B\x31\x9A\x66" |
| 7270 | "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F" |
| 7271 | "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD" |
| 7272 | "\xA3\x63\xE2\x71\x4F\x03\x94\x87" |
| 7273 | "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F" |
| 7274 | "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D" |
| 7275 | "\x84\x9B\x2A\xE9\x55\xDD\x46\x91" |
| 7276 | "\x15\x33\xF3\x2B\x9B\x46\x97\x00" |
| 7277 | "\xF0\x29\xD8\x59\x5D\x33\x37\xF9" |
| 7278 | "\x58\x33\x9B\x78\xC7\x58\x48\x6B" |
| 7279 | "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5", |
| 7280 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7281 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 7282 | .np = 3, |
| 7283 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 7284 | }, |
| 7285 | }; |
| 7286 | |
| 7287 | static struct cipher_testvec tf_dec_tv_template[] = { |
| 7288 | { |
| 7289 | .key = zeroed_string, |
| 7290 | .klen = 16, |
| 7291 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7292 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 7293 | .ilen = 16, |
| 7294 | .result = zeroed_string, |
| 7295 | .rlen = 16, |
| 7296 | }, { |
| 7297 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 7298 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 7299 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 7300 | .klen = 24, |
| 7301 | .input = "\xcf\xd1\xd2\xe5\xa9\xbe\x9c\xdf" |
| 7302 | "\x50\x1f\x13\xb8\x92\xbd\x22\x48", |
| 7303 | .ilen = 16, |
| 7304 | .result = zeroed_string, |
| 7305 | .rlen = 16, |
| 7306 | }, { |
| 7307 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 7308 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 7309 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 7310 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 7311 | .klen = 32, |
| 7312 | .input = "\x37\x52\x7b\xe0\x05\x23\x34\xb8" |
| 7313 | "\x9f\x0c\xfc\xca\xe8\x7c\xfa\x20", |
| 7314 | .ilen = 16, |
| 7315 | .result = zeroed_string, |
| 7316 | .rlen = 16, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7317 | }, { /* Generated with Crypto++ */ |
| 7318 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 7319 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 7320 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 7321 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 7322 | .klen = 32, |
| 7323 | .input = "\x88\xCB\x1E\xC2\xAF\x8A\x97\xFF" |
| 7324 | "\xF6\x90\x46\x9C\x4A\x0F\x08\xDC" |
| 7325 | "\xDE\xAB\xAD\xFA\xFC\xA8\xC2\x3D" |
| 7326 | "\xE0\xE4\x8B\x3F\xD5\xA3\xF7\x14" |
| 7327 | "\x34\x9E\xB6\x08\xB2\xDD\xA8\xF5" |
| 7328 | "\xDF\xFA\xC7\xE8\x09\x50\x76\x08" |
| 7329 | "\xA2\xB6\x6A\x59\xC0\x2B\x6D\x05" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7330 | "\x89\xF6\x82\xF0\xD3\xDB\x06\x02" |
| 7331 | "\xB5\x11\x5C\x5E\x79\x1A\xAC\x43" |
| 7332 | "\x5C\xC0\x30\x4B\x6B\x16\xA1\x40" |
| 7333 | "\x80\x27\x88\xBA\x2C\x74\x42\xE0" |
| 7334 | "\x1B\xA5\x85\x08\xB9\xE6\x22\x7A" |
| 7335 | "\x36\x3B\x0D\x9F\xA0\x22\x6C\x2A" |
| 7336 | "\x91\x75\x47\xBC\x67\x21\x4E\xF9" |
| 7337 | "\xEA\xFF\xD9\xD5\xC0\xFC\x9E\x2C" |
| 7338 | "\x3E\xAD\xC6\x61\x0E\x93\x7A\x22" |
| 7339 | "\x09\xC8\x8D\xC1\x8E\xB4\x8B\x5C" |
| 7340 | "\xC6\x24\x42\xB8\x23\x66\x80\xA9" |
| 7341 | "\x32\x0B\x7A\x29\xBF\xB3\x0B\x63" |
| 7342 | "\x43\x27\x13\xA9\xBE\xEB\xBD\xF3" |
| 7343 | "\x33\x62\x70\xE2\x1B\x86\x7A\xA1" |
| 7344 | "\x51\x4A\x16\xFE\x29\x63\x7E\xD0" |
| 7345 | "\x7A\xA4\x6E\x2C\xF8\xC1\xDB\xE8" |
| 7346 | "\xCB\x4D\xD2\x8C\x04\x14\xB4\x66" |
| 7347 | "\x41\xB7\x3A\x96\x16\x7C\x1D\x5B" |
| 7348 | "\xB6\x41\x42\x64\x43\xEE\x6E\x7C" |
| 7349 | "\x8B\xAF\x01\x9C\xA4\x6E\x75\x8F" |
| 7350 | "\xDE\x10\x9F\xA6\xE7\xD6\x44\x97" |
| 7351 | "\x66\xA3\x96\x0F\x1C\x25\x60\xF5" |
| 7352 | "\x3C\x2E\x32\x69\x0E\x82\xFF\x27" |
| 7353 | "\x0F\xB5\x06\xDA\xD8\x31\x15\x6C" |
| 7354 | "\xDF\x18\x6C\x87\xF5\x3B\x11\x9A" |
| 7355 | "\x1B\x42\x1F\x5B\x29\x19\x96\x13" |
| 7356 | "\x68\x2E\x5E\x08\x1C\x8F\x32\x4B" |
| 7357 | "\x81\x77\x6D\xF4\xA0\x01\x42\xEC" |
| 7358 | "\xDD\x5B\xFD\x3A\x8E\x6A\x14\xFB" |
| 7359 | "\x83\x54\xDF\x0F\x86\xB7\xEA\x40" |
| 7360 | "\x46\x39\xF7\x2A\x89\x8D\x4E\x96" |
| 7361 | "\x5F\x5F\x6D\x76\xC6\x13\x9D\x3D" |
| 7362 | "\x1D\x5F\x0C\x7D\xE2\xBC\xC2\x16" |
| 7363 | "\x16\xBE\x89\x3E\xB0\x61\xA2\x5D" |
| 7364 | "\xAF\xD1\x40\x5F\x1A\xB8\x26\x41" |
| 7365 | "\xC6\xBD\x36\xEF\xED\x29\x50\x6D" |
| 7366 | "\x10\xEF\x26\xE8\xA8\x93\x11\x3F" |
| 7367 | "\x2D\x1F\x88\x20\x77\x45\xF5\x66" |
| 7368 | "\x08\xB9\xF1\xEF\xB1\x93\xA8\x81" |
| 7369 | "\x65\xC5\xCD\x3E\x8C\x06\x60\x2C" |
| 7370 | "\xB2\x10\x7A\xCA\x05\x25\x59\xDB" |
| 7371 | "\xC7\x28\xF5\x20\x35\x52\x9E\x62" |
| 7372 | "\xF8\x88\x24\x1C\x4D\x84\x12\x39" |
| 7373 | "\x39\xE4\x2E\xF4\xD4\x9D\x2B\xBC" |
| 7374 | "\x87\x66\xE6\xC0\x6B\x31\x9A\x66" |
| 7375 | "\x03\xDC\x95\xD8\x6B\xD0\x30\x8F" |
| 7376 | "\xDF\x8F\x8D\xFA\xEC\x1F\x08\xBD" |
| 7377 | "\xA3\x63\xE2\x71\x4F\x03\x94\x87" |
| 7378 | "\x50\xDF\x15\x1F\xED\x3A\xA3\x7F" |
| 7379 | "\x1F\x2A\xB5\xA1\x69\xAC\x4B\x0D" |
| 7380 | "\x84\x9B\x2A\xE9\x55\xDD\x46\x91" |
| 7381 | "\x15\x33\xF3\x2B\x9B\x46\x97\x00" |
| 7382 | "\xF0\x29\xD8\x59\x5D\x33\x37\xF9" |
| 7383 | "\x58\x33\x9B\x78\xC7\x58\x48\x6B" |
| 7384 | "\x2C\x75\x64\xC4\xCA\xC1\x7E\xD5", |
| 7385 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7386 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7387 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7388 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7389 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7390 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7391 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7392 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7393 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7394 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7395 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7396 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7397 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7398 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7399 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7400 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7401 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7402 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7403 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7404 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7405 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7406 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7407 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7408 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7409 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7410 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7411 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7412 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7413 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7414 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7415 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7416 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7417 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7418 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7419 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7420 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7421 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7422 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7423 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7424 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7425 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7426 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7427 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7428 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7429 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7430 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7431 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7432 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7433 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7434 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7435 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7436 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7437 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7438 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7439 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7440 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7441 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7442 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7443 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7444 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7445 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7446 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7447 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7448 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7449 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 7450 | .np = 3, |
| 7451 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 7452 | }, |
| 7453 | }; |
| 7454 | |
| 7455 | static struct cipher_testvec tf_cbc_enc_tv_template[] = { |
| 7456 | { /* Generated with Nettle */ |
| 7457 | .key = zeroed_string, |
| 7458 | .klen = 16, |
| 7459 | .iv = zeroed_string, |
| 7460 | .input = zeroed_string, |
| 7461 | .ilen = 16, |
| 7462 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7463 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 7464 | .rlen = 16, |
| 7465 | }, { |
| 7466 | .key = zeroed_string, |
| 7467 | .klen = 16, |
| 7468 | .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7469 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 7470 | .input = zeroed_string, |
| 7471 | .ilen = 16, |
| 7472 | .result = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 7473 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 7474 | .rlen = 16, |
| 7475 | }, { |
| 7476 | .key = zeroed_string, |
| 7477 | .klen = 16, |
| 7478 | .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 7479 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 7480 | .input = zeroed_string, |
| 7481 | .ilen = 16, |
| 7482 | .result = "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 7483 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 7484 | .rlen = 16, |
| 7485 | }, { |
| 7486 | .key = zeroed_string, |
| 7487 | .klen = 16, |
| 7488 | .iv = zeroed_string, |
| 7489 | .input = zeroed_string, |
| 7490 | .ilen = 48, |
| 7491 | .result = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7492 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" |
| 7493 | "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 7494 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19" |
| 7495 | "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 7496 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 7497 | .rlen = 48, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7498 | }, { /* Generated with Crypto++ */ |
| 7499 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7500 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7501 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7502 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7503 | .klen = 32, |
| 7504 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 7505 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 7506 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7507 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7508 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7509 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7510 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7511 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7512 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7513 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7514 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7515 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7516 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7517 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7518 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7519 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7520 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7521 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7522 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7523 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7524 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7525 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7526 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7527 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7528 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7529 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7530 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7531 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7532 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7533 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7534 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7535 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7536 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7537 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7538 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7539 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7540 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7541 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7542 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7543 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7544 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7545 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7546 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7547 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7548 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7549 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7550 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7551 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7552 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7553 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7554 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7555 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7556 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7557 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7558 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7559 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7560 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7561 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7562 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7563 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7564 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7565 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7566 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7567 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7568 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7569 | .result = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1" |
| 7570 | "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5" |
| 7571 | "\x26\x1B\x05\x0C\x05\x12\x3F\xC0" |
| 7572 | "\xF9\x1C\x02\x28\x40\x96\x6F\xD0" |
| 7573 | "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" |
| 7574 | "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" |
| 7575 | "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7576 | "\xB1\xD3\x44\x65\xDF\xE7\x63\x38" |
| 7577 | "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8" |
| 7578 | "\x43\xFC\xFE\x18\xB5\x11\x6D\x31" |
| 7579 | "\x81\x8B\x0D\x75\xF6\x80\xEC\x84" |
| 7580 | "\x04\xB9\xE6\x09\x63\xED\x39\xDB" |
| 7581 | "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD" |
| 7582 | "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63" |
| 7583 | "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80" |
| 7584 | "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68" |
| 7585 | "\x45\xDD\xC8\x83\x1D\x41\x96\x0D" |
| 7586 | "\x91\x2E\x05\xD3\x59\x82\xE0\x43" |
| 7587 | "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF" |
| 7588 | "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C" |
| 7589 | "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3" |
| 7590 | "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC" |
| 7591 | "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF" |
| 7592 | "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38" |
| 7593 | "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34" |
| 7594 | "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60" |
| 7595 | "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7" |
| 7596 | "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8" |
| 7597 | "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25" |
| 7598 | "\x94\x70\x74\x0E\x1D\xC5\xBC\x12" |
| 7599 | "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55" |
| 7600 | "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3" |
| 7601 | "\x75\x42\x62\x04\x31\x1F\x95\x7C" |
| 7602 | "\x66\x1A\x97\xDC\x2F\x40\x5C\x39" |
| 7603 | "\x78\xE6\x02\xDB\x49\xE1\xC6\x47" |
| 7604 | "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93" |
| 7605 | "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7" |
| 7606 | "\xC2\x89\xF3\x91\x88\x83\x3D\xF0" |
| 7607 | "\x29\xA2\xCD\xB5\x79\x16\xC2\x40" |
| 7608 | "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4" |
| 7609 | "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B" |
| 7610 | "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF" |
| 7611 | "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA" |
| 7612 | "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C" |
| 7613 | "\x78\xB6\xC9\xBF\xF9\x78\x57\x88" |
| 7614 | "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8" |
| 7615 | "\xEE\xC4\xBE\x7B\x55\x59\x00\x48" |
| 7616 | "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C" |
| 7617 | "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE" |
| 7618 | "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D" |
| 7619 | "\xBC\x68\x9C\x91\x2A\x59\x57\x04" |
| 7620 | "\xED\x1A\x1E\x00\xB1\x85\x92\x04" |
| 7621 | "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7" |
| 7622 | "\x4C\x3E\xB0\xE7\x86\x62\x68\x91" |
| 7623 | "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93" |
| 7624 | "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64" |
| 7625 | "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD" |
| 7626 | "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1" |
| 7627 | "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39" |
| 7628 | "\x69\xA1\x62\xBD\x49\x3A\x9D\x91" |
| 7629 | "\x30\x70\x56\xA4\x37\xDD\x7C\xC0" |
| 7630 | "\x0A\xA3\x30\x10\x26\x25\x41\x2C", |
| 7631 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7632 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 7633 | .np = 3, |
| 7634 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 7635 | }, |
| 7636 | }; |
| 7637 | |
| 7638 | static struct cipher_testvec tf_cbc_dec_tv_template[] = { |
| 7639 | { /* Reverse of the first four above */ |
| 7640 | .key = zeroed_string, |
| 7641 | .klen = 16, |
| 7642 | .iv = zeroed_string, |
| 7643 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7644 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 7645 | .ilen = 16, |
| 7646 | .result = zeroed_string, |
| 7647 | .rlen = 16, |
| 7648 | }, { |
| 7649 | .key = zeroed_string, |
| 7650 | .klen = 16, |
| 7651 | .iv = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7652 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a", |
| 7653 | .input = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 7654 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 7655 | .ilen = 16, |
| 7656 | .result = zeroed_string, |
| 7657 | .rlen = 16, |
| 7658 | }, { |
| 7659 | .key = zeroed_string, |
| 7660 | .klen = 16, |
| 7661 | .iv = "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 7662 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19", |
| 7663 | .input = "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 7664 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 7665 | .ilen = 16, |
| 7666 | .result = zeroed_string, |
| 7667 | .rlen = 16, |
| 7668 | }, { |
| 7669 | .key = zeroed_string, |
| 7670 | .klen = 16, |
| 7671 | .iv = zeroed_string, |
| 7672 | .input = "\x9f\x58\x9f\x5c\xf6\x12\x2c\x32" |
| 7673 | "\xb6\xbf\xec\x2f\x2a\xe8\xc3\x5a" |
| 7674 | "\xd4\x91\xdb\x16\xe7\xb1\xc3\x9e" |
| 7675 | "\x86\xcb\x08\x6b\x78\x9f\x54\x19" |
| 7676 | "\x05\xef\x8c\x61\xa8\x11\x58\x26" |
| 7677 | "\x34\xba\x5c\xb7\x10\x6a\xa6\x41", |
| 7678 | .ilen = 48, |
| 7679 | .result = zeroed_string, |
| 7680 | .rlen = 48, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7681 | }, { /* Generated with Crypto++ */ |
| 7682 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7683 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7684 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7685 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7686 | .klen = 32, |
| 7687 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 7688 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 7689 | .input = "\xC8\xFF\xF2\x53\xA6\x27\x09\xD1" |
| 7690 | "\x33\x38\xC2\xC0\x0C\x14\x7E\xB5" |
| 7691 | "\x26\x1B\x05\x0C\x05\x12\x3F\xC0" |
| 7692 | "\xF9\x1C\x02\x28\x40\x96\x6F\xD0" |
| 7693 | "\x3D\x32\xDF\xDA\x56\x00\x6E\xEE" |
| 7694 | "\x5B\x2A\x72\x9D\xC2\x4D\x19\xBC" |
| 7695 | "\x8C\x53\xFA\x87\x6F\xDD\x81\xA3" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7696 | "\xB1\xD3\x44\x65\xDF\xE7\x63\x38" |
| 7697 | "\x4A\xFC\xDC\xEC\x3F\x26\x8E\xB8" |
| 7698 | "\x43\xFC\xFE\x18\xB5\x11\x6D\x31" |
| 7699 | "\x81\x8B\x0D\x75\xF6\x80\xEC\x84" |
| 7700 | "\x04\xB9\xE6\x09\x63\xED\x39\xDB" |
| 7701 | "\xC3\xF6\x14\xD6\x6E\x5E\x8B\xBD" |
| 7702 | "\x3E\xFA\xD7\x98\x50\x6F\xD9\x63" |
| 7703 | "\x02\xCD\x0D\x39\x4B\x0D\xEC\x80" |
| 7704 | "\xE3\x6A\x17\xF4\xCC\xAD\xFF\x68" |
| 7705 | "\x45\xDD\xC8\x83\x1D\x41\x96\x0D" |
| 7706 | "\x91\x2E\x05\xD3\x59\x82\xE0\x43" |
| 7707 | "\x90\x4F\xB9\xF7\xAD\x6B\x2E\xAF" |
| 7708 | "\xA7\x84\x00\x53\xCD\x6F\xD1\x0C" |
| 7709 | "\x4E\xF9\x5A\x23\xFB\xCA\xC7\xD3" |
| 7710 | "\xA9\xAA\x9D\xB2\x3F\x66\xF1\xAC" |
| 7711 | "\x25\x21\x8F\xF7\xEF\xF2\x6A\xDF" |
| 7712 | "\xE8\xDA\x75\x1A\x8A\xF1\xDD\x38" |
| 7713 | "\x1F\xF9\x3D\x68\x4A\xBB\x9E\x34" |
| 7714 | "\x1F\x66\x1F\x9C\x2B\x54\xFF\x60" |
| 7715 | "\x7F\x29\x4B\x55\x80\x8F\x4E\xA7" |
| 7716 | "\xA6\x9A\x0A\xD9\x0D\x19\x00\xF8" |
| 7717 | "\x1F\xBC\x0C\x40\x6B\xEC\x99\x25" |
| 7718 | "\x94\x70\x74\x0E\x1D\xC5\xBC\x12" |
| 7719 | "\xF3\x42\xBE\x95\xBF\xFB\x4E\x55" |
| 7720 | "\x9A\xB9\xCE\x14\x16\x5B\xDC\xD3" |
| 7721 | "\x75\x42\x62\x04\x31\x1F\x95\x7C" |
| 7722 | "\x66\x1A\x97\xDC\x2F\x40\x5C\x39" |
| 7723 | "\x78\xE6\x02\xDB\x49\xE1\xC6\x47" |
| 7724 | "\xC2\x78\x9A\xBB\xF3\xBE\xCB\x93" |
| 7725 | "\xD8\xB8\xE8\xBB\x8C\xB3\x9B\xA7" |
| 7726 | "\xC2\x89\xF3\x91\x88\x83\x3D\xF0" |
| 7727 | "\x29\xA2\xCD\xB5\x79\x16\xC2\x40" |
| 7728 | "\x11\x03\x8E\x9C\xFD\xC9\x43\xC4" |
| 7729 | "\xC2\x19\xF0\x4A\x32\xEF\x0C\x2B" |
| 7730 | "\xD3\x2B\xE9\xD4\x4C\xDE\x95\xCF" |
| 7731 | "\x04\x03\xD3\x2C\x7F\x82\xC8\xFA" |
| 7732 | "\x0F\xD8\x7A\x39\x7B\x01\x41\x9C" |
| 7733 | "\x78\xB6\xC9\xBF\xF9\x78\x57\x88" |
| 7734 | "\xB1\xA5\xE1\xE0\xD9\x16\xD4\xC8" |
| 7735 | "\xEE\xC4\xBE\x7B\x55\x59\x00\x48" |
| 7736 | "\x1B\xBC\x14\xFA\x2A\x9D\xC9\x1C" |
| 7737 | "\xFB\x28\x3F\x95\xDD\xB7\xD6\xCE" |
| 7738 | "\x3A\x7F\x09\x0C\x0E\x69\x30\x7D" |
| 7739 | "\xBC\x68\x9C\x91\x2A\x59\x57\x04" |
| 7740 | "\xED\x1A\x1E\x00\xB1\x85\x92\x04" |
| 7741 | "\x28\x8C\x0C\x3C\xC1\xD5\x12\xF7" |
| 7742 | "\x4C\x3E\xB0\xE7\x86\x62\x68\x91" |
| 7743 | "\xFC\xC4\xE2\xCE\xA6\xDC\x5E\x93" |
| 7744 | "\x5D\x8D\x8C\x68\xB3\xB2\xB9\x64" |
| 7745 | "\x16\xB8\xC8\x6F\xD8\xEE\x21\xBD" |
| 7746 | "\xAC\x18\x0C\x7D\x0D\x05\xAB\xF1" |
| 7747 | "\xFA\xDD\xE2\x48\xDF\x4C\x02\x39" |
| 7748 | "\x69\xA1\x62\xBD\x49\x3A\x9D\x91" |
| 7749 | "\x30\x70\x56\xA4\x37\xDD\x7C\xC0" |
| 7750 | "\x0A\xA3\x30\x10\x26\x25\x41\x2C", |
| 7751 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7752 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7753 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7754 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7755 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7756 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7757 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7758 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7759 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7760 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7761 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7762 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7763 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7764 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7765 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7766 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7767 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7768 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7769 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7770 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7771 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7772 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7773 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7774 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7775 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7776 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7777 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7778 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7779 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7780 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7781 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7782 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7783 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7784 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7785 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7786 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7787 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7788 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7789 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7790 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7791 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7792 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7793 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7794 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7795 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7796 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7797 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7798 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7799 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7800 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7801 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7802 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7803 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7804 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7805 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7806 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7807 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7808 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7809 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7810 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7811 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7812 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7813 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7814 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 7815 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 7816 | .np = 3, |
| 7817 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7818 | }, |
| 7819 | }; |
| 7820 | |
| 7821 | static struct cipher_testvec tf_ctr_enc_tv_template[] = { |
| 7822 | { /* Generated with Crypto++ */ |
| 7823 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7824 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7825 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7826 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7827 | .klen = 32, |
| 7828 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 7829 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 7830 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7831 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7832 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7833 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7834 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7835 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7836 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7837 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7838 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7839 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7840 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7841 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7842 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7843 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7844 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7845 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7846 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7847 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7848 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7849 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7850 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7851 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7852 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7853 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7854 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7855 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7856 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7857 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7858 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7859 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7860 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7861 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7862 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7863 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7864 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7865 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 7866 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 7867 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 7868 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 7869 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 7870 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 7871 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 7872 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 7873 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 7874 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 7875 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 7876 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 7877 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 7878 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 7879 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 7880 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 7881 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 7882 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 7883 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 7884 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 7885 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 7886 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 7887 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 7888 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 7889 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 7890 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 7891 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 7892 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7893 | .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 7894 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 7895 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 7896 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 7897 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 7898 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 7899 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 7900 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
| 7901 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 7902 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 7903 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 7904 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 7905 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 7906 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 7907 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 7908 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 7909 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 7910 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 7911 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 7912 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 7913 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 7914 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 7915 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 7916 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 7917 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 7918 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 7919 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 7920 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 7921 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 7922 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 7923 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 7924 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 7925 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 7926 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 7927 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 7928 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 7929 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 7930 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 7931 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 7932 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 7933 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 7934 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 7935 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 7936 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 7937 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 7938 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 7939 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 7940 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 7941 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 7942 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 7943 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 7944 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 7945 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 7946 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 7947 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 7948 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 7949 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 7950 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 7951 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 7952 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 7953 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 7954 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF", |
| 7955 | .rlen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 7956 | }, { /* Generated with Crypto++ */ |
| 7957 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 7958 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 7959 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 7960 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 7961 | .klen = 32, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 7962 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 7963 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 7964 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 7965 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 7966 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 7967 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 7968 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 7969 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 7970 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 7971 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 7972 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 7973 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 7974 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 7975 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 7976 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 7977 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 7978 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 7979 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 7980 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 7981 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 7982 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 7983 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 7984 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 7985 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 7986 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 7987 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 7988 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 7989 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 7990 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 7991 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 7992 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 7993 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 7994 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 7995 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 7996 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 7997 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 7998 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 7999 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8000 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8001 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8002 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8003 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8004 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8005 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8006 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8007 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8008 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8009 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8010 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8011 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8012 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8013 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8014 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8015 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8016 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8017 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8018 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8019 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8020 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8021 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8022 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8023 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8024 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8025 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 8026 | .ilen = 496, |
| 8027 | .result = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44" |
| 8028 | "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C" |
| 8029 | "\x53\xC8\x16\x38\xDE\x40\x4F\x91" |
| 8030 | "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA" |
| 8031 | "\x88\x7E\x89\xE9\x67\x2B\x83\xA2" |
| 8032 | "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B" |
| 8033 | "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3" |
| 8034 | "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33" |
| 8035 | "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E" |
| 8036 | "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0" |
| 8037 | "\x64\x89\x9F\x6A\x27\x96\x07\xA6" |
| 8038 | "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01" |
| 8039 | "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34" |
| 8040 | "\x39\x18\x09\xA4\x82\x59\x78\xE7" |
| 8041 | "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2" |
| 8042 | "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3" |
| 8043 | "\xE6\x87\x31\x9E\x16\x85\xAD\xB1" |
| 8044 | "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E" |
| 8045 | "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3" |
| 8046 | "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF" |
| 8047 | "\x89\x16\x4D\x2D\xA2\x26\x33\x72" |
| 8048 | "\x18\x33\x7E\xD6\xD2\x16\xA4\x54" |
| 8049 | "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB" |
| 8050 | "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2" |
| 8051 | "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19" |
| 8052 | "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E" |
| 8053 | "\xAC\x00\xE3\x50\x63\x4A\x80\x9A" |
| 8054 | "\x05\xBC\x50\x39\xD3\x32\xD9\x0D" |
| 8055 | "\xE3\x20\x0D\x75\x54\xEC\xE6\x31" |
| 8056 | "\x14\xB9\x3A\x59\x00\x43\x37\x8E" |
| 8057 | "\x8C\x5A\x79\x62\x14\x76\x8A\xAE" |
| 8058 | "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D" |
| 8059 | "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60" |
| 8060 | "\xC9\x87\xB1\x79\x1E\xA5\x86\x68" |
| 8061 | "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73" |
| 8062 | "\xD0\xDA\x75\x77\x9E\x05\x27\xF1" |
| 8063 | "\x08\xA9\x66\x64\x6C\xBC\x82\x17" |
| 8064 | "\x2C\x23\x5F\x62\x4D\x02\x1A\x58" |
| 8065 | "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF" |
| 8066 | "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83" |
| 8067 | "\x95\x87\x13\x57\x60\xD7\xB5\xB1" |
| 8068 | "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D" |
| 8069 | "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF" |
| 8070 | "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A" |
| 8071 | "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8" |
| 8072 | "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0" |
| 8073 | "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC" |
| 8074 | "\xDE\x55\x1B\x50\x14\x53\x44\x17" |
| 8075 | "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A" |
| 8076 | "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B" |
| 8077 | "\x1A\x09\x97\xA9\xB6\x97\x79\x06" |
| 8078 | "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1" |
| 8079 | "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5" |
| 8080 | "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D" |
| 8081 | "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23" |
| 8082 | "\x41\x67\xA1\x24\x99\x7E\xCC\x9B" |
| 8083 | "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A" |
| 8084 | "\xF4\x78\xFD\x79\x62\x63\x4F\x14" |
| 8085 | "\xD6\x11\x11\x04\x05\x5F\x7E\xEA" |
| 8086 | "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54" |
| 8087 | "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B" |
| 8088 | "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D", |
| 8089 | .rlen = 496, |
| 8090 | }, { /* Generated with Crypto++ */ |
| 8091 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 8092 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 8093 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 8094 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 8095 | .klen = 32, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8096 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 8097 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 8098 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8099 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8100 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8101 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8102 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8103 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8104 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 8105 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8106 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8107 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8108 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8109 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8110 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8111 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8112 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8113 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8114 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8115 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8116 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8117 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8118 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8119 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8120 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8121 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8122 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8123 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8124 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8125 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8126 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8127 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8128 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8129 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8130 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8131 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8132 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8133 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8134 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8135 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8136 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8137 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8138 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8139 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8140 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8141 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8142 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8143 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8144 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8145 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8146 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8147 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8148 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8149 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8150 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8151 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8152 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8153 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8154 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8155 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8156 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8157 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8158 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8159 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 8160 | "\x2B\xC2\x59", |
| 8161 | .ilen = 499, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8162 | .result = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 8163 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 8164 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 8165 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 8166 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 8167 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 8168 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
| 8169 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8170 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 8171 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 8172 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 8173 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 8174 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 8175 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 8176 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 8177 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 8178 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 8179 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 8180 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 8181 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 8182 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 8183 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 8184 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 8185 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 8186 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 8187 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 8188 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 8189 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 8190 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 8191 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 8192 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 8193 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 8194 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 8195 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 8196 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 8197 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 8198 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 8199 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 8200 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 8201 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 8202 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 8203 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 8204 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 8205 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 8206 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 8207 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 8208 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 8209 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 8210 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 8211 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 8212 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 8213 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 8214 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 8215 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 8216 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 8217 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 8218 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 8219 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 8220 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 8221 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 8222 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 8223 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF" |
| 8224 | "\x6C\x82\x9D", |
| 8225 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8226 | .also_non_np = 1, |
| 8227 | .np = 2, |
| 8228 | .tap = { 499 - 16, 16 }, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8229 | }, |
| 8230 | }; |
| 8231 | |
| 8232 | static struct cipher_testvec tf_ctr_dec_tv_template[] = { |
| 8233 | { /* Generated with Crypto++ */ |
| 8234 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 8235 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 8236 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 8237 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 8238 | .klen = 32, |
| 8239 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 8240 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 8241 | .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 8242 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 8243 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 8244 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 8245 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 8246 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 8247 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8248 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
| 8249 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 8250 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 8251 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 8252 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 8253 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 8254 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 8255 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 8256 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 8257 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 8258 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 8259 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 8260 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 8261 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 8262 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 8263 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 8264 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 8265 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 8266 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 8267 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 8268 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 8269 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 8270 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 8271 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 8272 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 8273 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 8274 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 8275 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 8276 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 8277 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 8278 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 8279 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 8280 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 8281 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 8282 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 8283 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 8284 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 8285 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 8286 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 8287 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 8288 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 8289 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 8290 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 8291 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 8292 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 8293 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 8294 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 8295 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 8296 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 8297 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 8298 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 8299 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 8300 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 8301 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 8302 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF", |
| 8303 | .ilen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8304 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8305 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8306 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8307 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8308 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8309 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8310 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8311 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 8312 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8313 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8314 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8315 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8316 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8317 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8318 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8319 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8320 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8321 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8322 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8323 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8324 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8325 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8326 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8327 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8328 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8329 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8330 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8331 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8332 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8333 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8334 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8335 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8336 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8337 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8338 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8339 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8340 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8341 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8342 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8343 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8344 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8345 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8346 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8347 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8348 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8349 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8350 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8351 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8352 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8353 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8354 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8355 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8356 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8357 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8358 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8359 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8360 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8361 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8362 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8363 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8364 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8365 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 8366 | .rlen = 496, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8367 | }, { /* Generated with Crypto++ */ |
| 8368 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 8369 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 8370 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 8371 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 8372 | .klen = 32, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 8373 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 8374 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 8375 | .input = "\xEB\x44\xAF\x49\x27\xB8\xFB\x44" |
| 8376 | "\x4C\xA6\xC3\x0C\x8B\xD0\x01\x0C" |
| 8377 | "\x53\xC8\x16\x38\xDE\x40\x4F\x91" |
| 8378 | "\x25\x6D\x4C\xA0\x9A\x87\x1E\xDA" |
| 8379 | "\x88\x7E\x89\xE9\x67\x2B\x83\xA2" |
| 8380 | "\x5F\x2E\x23\x3E\x45\xB9\x77\x7B" |
| 8381 | "\xA6\x7E\x47\x36\x81\x9F\x9B\xF3" |
| 8382 | "\xE0\xF0\xD7\x47\xA9\xC8\xEF\x33" |
| 8383 | "\x0C\x43\xFE\x67\x50\x0A\x2C\x3E" |
| 8384 | "\xA0\xE1\x25\x8E\x80\x07\x4A\xC0" |
| 8385 | "\x64\x89\x9F\x6A\x27\x96\x07\xA6" |
| 8386 | "\x9B\xC8\x1B\x21\x60\xAE\x5D\x01" |
| 8387 | "\xE2\xCD\xC8\xAA\x6C\x9D\x1C\x34" |
| 8388 | "\x39\x18\x09\xA4\x82\x59\x78\xE7" |
| 8389 | "\xFC\x59\x65\xF2\x94\xFF\xFB\xE2" |
| 8390 | "\x3C\xDA\xB1\x90\x95\xBF\x91\xE3" |
| 8391 | "\xE6\x87\x31\x9E\x16\x85\xAD\xB1" |
| 8392 | "\x4C\xAE\x43\x4D\x19\x58\xB5\x5E" |
| 8393 | "\x2E\xF5\x09\xAA\x39\xF4\xC0\xB3" |
| 8394 | "\xD4\x4D\xDB\x73\x7A\xD4\xF1\xBF" |
| 8395 | "\x89\x16\x4D\x2D\xA2\x26\x33\x72" |
| 8396 | "\x18\x33\x7E\xD6\xD2\x16\xA4\x54" |
| 8397 | "\xF4\x8C\xB3\x52\xDF\x21\x9C\xEB" |
| 8398 | "\xBF\x49\xD3\xF9\x05\x06\xCB\xD2" |
| 8399 | "\xA9\xD2\x3B\x6E\x19\x8C\xBC\x19" |
| 8400 | "\xAB\x89\xD6\xD8\xCD\x56\x89\x5E" |
| 8401 | "\xAC\x00\xE3\x50\x63\x4A\x80\x9A" |
| 8402 | "\x05\xBC\x50\x39\xD3\x32\xD9\x0D" |
| 8403 | "\xE3\x20\x0D\x75\x54\xEC\xE6\x31" |
| 8404 | "\x14\xB9\x3A\x59\x00\x43\x37\x8E" |
| 8405 | "\x8C\x5A\x79\x62\x14\x76\x8A\xAE" |
| 8406 | "\x8F\xCC\xA1\x6C\x38\x78\xDD\x2D" |
| 8407 | "\x8B\x6D\xEA\xBD\x7B\x25\xFF\x60" |
| 8408 | "\xC9\x87\xB1\x79\x1E\xA5\x86\x68" |
| 8409 | "\x81\xB4\xE2\xC1\x05\x7D\x3A\x73" |
| 8410 | "\xD0\xDA\x75\x77\x9E\x05\x27\xF1" |
| 8411 | "\x08\xA9\x66\x64\x6C\xBC\x82\x17" |
| 8412 | "\x2C\x23\x5F\x62\x4D\x02\x1A\x58" |
| 8413 | "\xE7\xB7\x23\x6D\xE2\x20\xDA\xEF" |
| 8414 | "\xB4\xB3\x3F\xB2\x2B\x69\x98\x83" |
| 8415 | "\x95\x87\x13\x57\x60\xD7\xB5\xB1" |
| 8416 | "\xEE\x0A\x2F\x95\x36\x4C\x76\x5D" |
| 8417 | "\x5F\xD9\x19\xED\xB9\xA5\x48\xBF" |
| 8418 | "\xC8\xAB\x0F\x71\xCC\x61\x8E\x0A" |
| 8419 | "\xD0\x29\x44\xA8\xB9\xC1\xE8\xC8" |
| 8420 | "\xC9\xA8\x28\x81\xFB\x50\xF2\xF0" |
| 8421 | "\x26\xAE\x39\xB8\x91\xCD\xA8\xAC" |
| 8422 | "\xDE\x55\x1B\x50\x14\x53\x44\x17" |
| 8423 | "\x54\x46\xFC\xB1\xE4\x07\x6B\x9A" |
| 8424 | "\x01\x14\xF0\x2E\x2E\xDB\x46\x1B" |
| 8425 | "\x1A\x09\x97\xA9\xB6\x97\x79\x06" |
| 8426 | "\xFB\xCB\x85\xCF\xDD\xA1\x41\xB1" |
| 8427 | "\x00\xAA\xF7\xE0\x89\x73\xFB\xE5" |
| 8428 | "\xBF\x84\xDB\xC9\xCD\xC4\xA2\x0D" |
| 8429 | "\x3B\xAC\xF9\xDF\x96\xBF\x88\x23" |
| 8430 | "\x41\x67\xA1\x24\x99\x7E\xCC\x9B" |
| 8431 | "\x02\x8F\x6A\x49\xF6\x25\xBA\x7A" |
| 8432 | "\xF4\x78\xFD\x79\x62\x63\x4F\x14" |
| 8433 | "\xD6\x11\x11\x04\x05\x5F\x7E\xEA" |
| 8434 | "\x4C\xB6\xF8\xF4\x5F\x48\x52\x54" |
| 8435 | "\x94\x63\xA8\x4E\xCF\xD2\x1B\x1B" |
| 8436 | "\x22\x18\x6A\xAF\x6E\x3E\xE1\x0D", |
| 8437 | .ilen = 496, |
| 8438 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8439 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8440 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8441 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8442 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8443 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8444 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 8445 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 8446 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8447 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8448 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8449 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8450 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8451 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8452 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8453 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8454 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8455 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8456 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8457 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8458 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8459 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8460 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8461 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8462 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8463 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8464 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8465 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8466 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8467 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8468 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8469 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8470 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8471 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8472 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8473 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8474 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8475 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8476 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8477 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8478 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8479 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8480 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8481 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8482 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8483 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8484 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8485 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8486 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8487 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8488 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8489 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8490 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8491 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8492 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8493 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8494 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8495 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8496 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8497 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8498 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8499 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 8500 | .rlen = 496, |
| 8501 | }, { /* Generated with Crypto++ */ |
| 8502 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 8503 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 8504 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 8505 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 8506 | .klen = 32, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8507 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 8508 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 8509 | .input = "\xDF\xDD\x69\xFA\xB0\x2E\xFD\xFE" |
| 8510 | "\x70\x9E\xC5\x4B\xC9\xD4\xA1\x30" |
| 8511 | "\x26\x9B\x89\xA1\xEE\x43\xE0\x52" |
| 8512 | "\x55\x17\x4E\xC7\x0E\x33\x1F\xF1" |
| 8513 | "\x9F\x8D\x40\x9F\x24\xFD\x92\xA0" |
| 8514 | "\xBC\x8F\x35\xDD\x67\x38\xD8\xAA" |
| 8515 | "\xCF\xF8\x48\xCA\xFB\xE4\x5C\x60" |
| 8516 | "\x01\x41\x21\x12\x38\xAB\x52\x4F" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8517 | "\xA8\x57\x20\xE0\x21\x6A\x17\x0D" |
| 8518 | "\x0E\xF9\x8E\x49\x42\x00\x3C\x94" |
| 8519 | "\x14\xC0\xD0\x8D\x8A\x98\xEB\x29" |
| 8520 | "\xEC\xAE\x96\x44\xC0\x3C\x48\xDC" |
| 8521 | "\x29\x35\x25\x2F\xE7\x11\x6C\x68" |
| 8522 | "\xC8\x67\x0A\x2F\xF4\x07\xBE\xF9" |
| 8523 | "\x2C\x31\x87\x40\xAB\xB2\xB6\xFA" |
| 8524 | "\xD2\xC9\x6D\x5C\x50\xE9\xE6\x7E" |
| 8525 | "\xE3\x0A\xD2\xD5\x6D\x8D\x64\x9E" |
| 8526 | "\x70\xCE\x03\x76\xDD\xE0\xF0\x8C" |
| 8527 | "\x84\x86\x8B\x6A\xFE\xC7\xF9\x69" |
| 8528 | "\x2E\xFE\xFC\xC2\xC4\x1A\x55\x58" |
| 8529 | "\xB3\xBE\xE2\x7E\xED\x39\x42\x6C" |
| 8530 | "\xB4\x42\x97\x9A\xEC\xE1\x0A\x06" |
| 8531 | "\x02\xC5\x03\x9D\xC4\x48\x15\x66" |
| 8532 | "\x35\x6A\xC2\xC9\xA2\x26\x30\xBB" |
| 8533 | "\xDB\x2D\xC8\x08\x2B\xA0\x29\x1A" |
| 8534 | "\x23\x61\x48\xEA\x80\x04\x27\xAA" |
| 8535 | "\x69\x49\xE8\xE8\x4A\x83\x6B\x5A" |
| 8536 | "\xCA\x7C\xD3\xB1\xB5\x0B\xCC\x23" |
| 8537 | "\x74\x1F\xA9\x87\xCD\xED\xC0\x2D" |
| 8538 | "\xBF\xEB\xCF\x16\x2D\x2A\x2E\x1D" |
| 8539 | "\x96\xBA\x36\x11\x45\x41\xDA\xCE" |
| 8540 | "\xA4\x48\x80\x8B\x06\xF4\x98\x89" |
| 8541 | "\x8B\x23\x08\x53\xF4\xD4\x5A\x24" |
| 8542 | "\x8B\xF8\x43\x73\xD1\xEE\xC4\xB0" |
| 8543 | "\xF8\xFE\x09\x0C\x75\x05\x38\x0B" |
| 8544 | "\x7C\x81\xDE\x9D\xE4\x61\x37\x63" |
| 8545 | "\x63\xAD\x12\xD2\x04\xB9\xCE\x45" |
| 8546 | "\x5A\x1A\x6E\xB3\x78\x2A\xA4\x74" |
| 8547 | "\x86\xD0\xE3\xFF\xDA\x38\x9C\xB5" |
| 8548 | "\xB8\xB1\xDB\x38\x2F\xC5\x6A\xB4" |
| 8549 | "\xEB\x6E\x96\xE8\x43\x80\xB5\x51" |
| 8550 | "\x61\x2D\x48\xAA\x07\x65\x11\x8C" |
| 8551 | "\x48\xE3\x90\x7E\x78\x3A\xEC\x97" |
| 8552 | "\x05\x3D\x84\xE7\x90\x2B\xAA\xBD" |
| 8553 | "\x83\x29\x0E\x1A\x81\x73\x7B\xE0" |
| 8554 | "\x7A\x01\x4A\x37\x3B\x77\x7F\x8D" |
| 8555 | "\x49\xA4\x2F\x6E\xBE\x68\x99\x08" |
| 8556 | "\x99\xAA\x4C\x12\x04\xAE\x1F\x77" |
| 8557 | "\x35\x88\xF1\x65\x06\x0A\x0B\x4D" |
| 8558 | "\x47\xF9\x50\x38\x5D\x71\xF9\x6E" |
| 8559 | "\xDE\xEC\x61\x35\x2C\x4C\x96\x50" |
| 8560 | "\xE8\x28\x93\x9C\x7E\x01\xC6\x04" |
| 8561 | "\xB2\xD6\xBC\x6C\x17\xEB\xC1\x7D" |
| 8562 | "\x11\xE9\x43\x83\x76\xAA\x53\x37" |
| 8563 | "\x0C\x1D\x39\x89\x53\x72\x09\x7E" |
| 8564 | "\xD9\x85\x16\x04\xA5\x2C\x05\x6F" |
| 8565 | "\x17\x0C\x6E\x66\xAA\x84\xA7\xD9" |
| 8566 | "\xE2\xD9\xC4\xEB\x43\x3E\xB1\x8D" |
| 8567 | "\x7C\x36\xC7\x71\x70\x9C\x10\xD8" |
| 8568 | "\xE8\x47\x2A\x4D\xFD\xA1\xBC\xE3" |
| 8569 | "\xB9\x32\xE2\xC1\x82\xAC\xFE\xCC" |
| 8570 | "\xC5\xC9\x7F\x9E\xCF\x33\x7A\xDF" |
| 8571 | "\x6C\x82\x9D", |
| 8572 | .ilen = 499, |
Jussi Kivilinna | 573da62 | 2011-10-10 23:03:12 +0300 | [diff] [blame] | 8573 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 8574 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 8575 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 8576 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 8577 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 8578 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 8579 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 8580 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
Johannes Goetzfried | 4da7de4 | 2012-05-28 15:55:38 +0200 | [diff] [blame] | 8581 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 8582 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 8583 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 8584 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 8585 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 8586 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 8587 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 8588 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 8589 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 8590 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 8591 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 8592 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 8593 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 8594 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 8595 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 8596 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 8597 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 8598 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 8599 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 8600 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 8601 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 8602 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 8603 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 8604 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 8605 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 8606 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 8607 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 8608 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 8609 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 8610 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 8611 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 8612 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 8613 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 8614 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 8615 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 8616 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 8617 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 8618 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 8619 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 8620 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 8621 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 8622 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 8623 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 8624 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 8625 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 8626 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 8627 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 8628 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 8629 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 8630 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 8631 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 8632 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 8633 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 8634 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 8635 | "\x2B\xC2\x59", |
| 8636 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8637 | .also_non_np = 1, |
| 8638 | .np = 2, |
| 8639 | .tap = { 499 - 16, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 8640 | }, |
| 8641 | }; |
| 8642 | |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 8643 | static struct cipher_testvec tf_lrw_enc_tv_template[] = { |
| 8644 | /* Generated from AES-LRW test vectors */ |
| 8645 | { |
| 8646 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 8647 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 8648 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 8649 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 8650 | .klen = 32, |
| 8651 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8652 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8653 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8654 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8655 | .ilen = 16, |
| 8656 | .result = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b" |
| 8657 | "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee", |
| 8658 | .rlen = 16, |
| 8659 | }, { |
| 8660 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 8661 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 8662 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 8663 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 8664 | .klen = 32, |
| 8665 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8666 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 8667 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8668 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8669 | .ilen = 16, |
| 8670 | .result = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9" |
| 8671 | "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd", |
| 8672 | .rlen = 16, |
| 8673 | }, { |
| 8674 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 8675 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 8676 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 8677 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 8678 | .klen = 32, |
| 8679 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8680 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8681 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8682 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8683 | .ilen = 16, |
| 8684 | .result = "\x85\xa7\x56\x67\x08\xfa\x42\xe1" |
| 8685 | "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4", |
| 8686 | .rlen = 16, |
| 8687 | }, { |
| 8688 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 8689 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 8690 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 8691 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 8692 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 8693 | .klen = 40, |
| 8694 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8695 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8696 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8697 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8698 | .ilen = 16, |
| 8699 | .result = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c" |
| 8700 | "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5", |
| 8701 | .rlen = 16, |
| 8702 | }, { |
| 8703 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 8704 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 8705 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 8706 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 8707 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 8708 | .klen = 40, |
| 8709 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8710 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8711 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8712 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8713 | .ilen = 16, |
| 8714 | .result = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a" |
| 8715 | "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4", |
| 8716 | .rlen = 16, |
| 8717 | }, { |
| 8718 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8719 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8720 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8721 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8722 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8723 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8724 | .klen = 48, |
| 8725 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8726 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8727 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8728 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8729 | .ilen = 16, |
| 8730 | .result = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58" |
| 8731 | "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76", |
| 8732 | .rlen = 16, |
| 8733 | }, { |
| 8734 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 8735 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 8736 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 8737 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 8738 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 8739 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 8740 | .klen = 48, |
| 8741 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8742 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8743 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8744 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8745 | .ilen = 16, |
| 8746 | .result = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75" |
| 8747 | "\x17\x66\x5e\x0c\x14\xa1\x3d\x40", |
| 8748 | .rlen = 16, |
| 8749 | }, { |
| 8750 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8751 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8752 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8753 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8754 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8755 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8756 | .klen = 48, |
| 8757 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8758 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8759 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 8760 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 8761 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 8762 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 8763 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 8764 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 8765 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 8766 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 8767 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 8768 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 8769 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 8770 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 8771 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 8772 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 8773 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 8774 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 8775 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 8776 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 8777 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 8778 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 8779 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 8780 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 8781 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 8782 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 8783 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 8784 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 8785 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 8786 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 8787 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 8788 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 8789 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 8790 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 8791 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 8792 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 8793 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 8794 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 8795 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 8796 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 8797 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 8798 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 8799 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 8800 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 8801 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 8802 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 8803 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 8804 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 8805 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 8806 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 8807 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 8808 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 8809 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 8810 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 8811 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 8812 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 8813 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 8814 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 8815 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 8816 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 8817 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 8818 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 8819 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 8820 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 8821 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 8822 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 8823 | .ilen = 512, |
| 8824 | .result = "\x30\x38\xeb\xaf\x12\x43\x1a\x89" |
| 8825 | "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9" |
| 8826 | "\x08\xc3\x0d\xdd\x95\xab\x19\x96" |
| 8827 | "\x27\x52\x41\xc3\xca\xfb\xf6\xee" |
| 8828 | "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a" |
| 8829 | "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45" |
| 8830 | "\x42\xe9\x29\xc0\xb4\x07\xb4\x31" |
| 8831 | "\x66\x77\x72\xb5\xb6\xb3\x57\x46" |
| 8832 | "\x34\x9a\xfe\x03\xaf\x6b\x36\x07" |
| 8833 | "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d" |
| 8834 | "\xfb\x6d\x82\x51\xb6\x98\xd0\x71" |
| 8835 | "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d" |
| 8836 | "\x72\x2b\x54\x13\xe3\x6d\x79\x37" |
| 8837 | "\xa9\x39\x2c\xdf\x21\xab\x87\xd5" |
| 8838 | "\xee\xef\x9a\x12\x50\x39\x2e\x1b" |
| 8839 | "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac" |
| 8840 | "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08" |
| 8841 | "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25" |
| 8842 | "\x31\x9d\xef\xb1\x1d\x27\x55\x04" |
| 8843 | "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a" |
| 8844 | "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb" |
| 8845 | "\x26\xbe\x4f\x27\x04\x42\xd1\x44" |
| 8846 | "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf" |
| 8847 | "\x1d\x28\x14\xfd\xb1\x1a\x34\x18" |
| 8848 | "\xf5\x1e\x28\x69\x95\x6a\x5a\xba" |
| 8849 | "\x8e\xb2\x58\x1d\x28\x17\x13\x3d" |
| 8850 | "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8" |
| 8851 | "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b" |
| 8852 | "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a" |
| 8853 | "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a" |
| 8854 | "\x63\xa5\x99\x82\x09\x72\x8f\xc6" |
| 8855 | "\xa4\x62\x24\x69\x8c\x2d\x26\x00" |
| 8856 | "\x99\x83\x91\xd6\xc6\xcf\x57\x67" |
| 8857 | "\x38\xea\xf2\xfc\x29\xe0\x73\x39" |
| 8858 | "\xf9\x13\x94\x6d\xe2\x58\x28\x75" |
| 8859 | "\x3e\xae\x71\x90\x07\x70\x1c\x38" |
| 8860 | "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef" |
| 8861 | "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22" |
| 8862 | "\x82\x09\xe3\x18\x3f\x4f\x48\xfc" |
| 8863 | "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b" |
| 8864 | "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e" |
| 8865 | "\xc3\xac\x4a\xed\xe7\x82\xef\x31" |
| 8866 | "\x1f\x1a\x51\x1e\x29\x60\xc8\x98" |
| 8867 | "\x93\x51\x1d\x3d\x62\x59\x83\x82" |
| 8868 | "\x0c\xf1\xd7\x8d\xac\x33\x44\x81" |
| 8869 | "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4" |
| 8870 | "\xec\xdc\x24\xfd\x0e\x1a\x79\x94" |
| 8871 | "\x34\xb0\x62\xfa\x98\x49\x26\x1f" |
| 8872 | "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe" |
| 8873 | "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc" |
| 8874 | "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c" |
| 8875 | "\xdb\xf6\x21\x80\xf7\x5a\x37\x15" |
| 8876 | "\x0c\xe3\x36\xc8\x74\x75\x20\x91" |
| 8877 | "\xdf\x52\x2d\x0c\xe7\x45\xff\x46" |
| 8878 | "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6" |
| 8879 | "\x26\xa2\x5d\x7d\x61\xbf\x10\x46" |
| 8880 | "\x57\x8d\x05\x96\x70\x0b\xd6\x41" |
| 8881 | "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd" |
| 8882 | "\x5f\x92\x81\x6e\x35\x03\xd4\x72" |
| 8883 | "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23" |
| 8884 | "\x45\x5d\xec\x72\xc1\x52\xef\x2e" |
| 8885 | "\x81\x00\xd3\xfe\x4c\x3c\x05\x61" |
| 8886 | "\x80\x18\xc4\x6c\x03\xd3\xb7\xba" |
| 8887 | "\x11\xd7\xb8\x6e\xea\xe1\x80\x30", |
| 8888 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 8889 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 8890 | .np = 3, |
| 8891 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 8892 | }, |
| 8893 | }; |
| 8894 | |
| 8895 | static struct cipher_testvec tf_lrw_dec_tv_template[] = { |
| 8896 | /* Generated from AES-LRW test vectors */ |
| 8897 | /* same as enc vectors with input and result reversed */ |
| 8898 | { |
| 8899 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 8900 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 8901 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 8902 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 8903 | .klen = 32, |
| 8904 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8905 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8906 | .input = "\xa1\x6c\x50\x69\x26\xa4\xef\x7b" |
| 8907 | "\x7c\xc6\x91\xeb\x72\xdd\x9b\xee", |
| 8908 | .ilen = 16, |
| 8909 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8910 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8911 | .rlen = 16, |
| 8912 | }, { |
| 8913 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 8914 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 8915 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 8916 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 8917 | .klen = 32, |
| 8918 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8919 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 8920 | .input = "\xab\x72\x0a\xad\x3b\x0c\xf0\xc9" |
| 8921 | "\x42\x2f\xf1\xae\xf1\x3c\xb1\xbd", |
| 8922 | .ilen = 16, |
| 8923 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8924 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8925 | .rlen = 16, |
| 8926 | }, { |
| 8927 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 8928 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 8929 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 8930 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 8931 | .klen = 32, |
| 8932 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8933 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8934 | .input = "\x85\xa7\x56\x67\x08\xfa\x42\xe1" |
| 8935 | "\x22\xe6\x82\xfc\xd9\xb4\xd7\xd4", |
| 8936 | .ilen = 16, |
| 8937 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8938 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8939 | .rlen = 16, |
| 8940 | }, { |
| 8941 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 8942 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 8943 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 8944 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 8945 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 8946 | .klen = 40, |
| 8947 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8948 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8949 | .input = "\xd2\xaf\x69\x35\x24\x1d\x0e\x1c" |
| 8950 | "\x84\x8b\x05\xe4\xa2\x2f\x16\xf5", |
| 8951 | .ilen = 16, |
| 8952 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8953 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8954 | .rlen = 16, |
| 8955 | }, { |
| 8956 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 8957 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 8958 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 8959 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 8960 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 8961 | .klen = 40, |
| 8962 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8963 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8964 | .input = "\x4a\x23\x56\xd7\xff\x90\xd0\x9a" |
| 8965 | "\x0d\x7c\x26\xfc\xf0\xf0\xf6\xe4", |
| 8966 | .ilen = 16, |
| 8967 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8968 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8969 | .rlen = 16, |
| 8970 | }, { |
| 8971 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 8972 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 8973 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 8974 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 8975 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 8976 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 8977 | .klen = 48, |
| 8978 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8979 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 8980 | .input = "\x30\xaf\x26\x05\x9d\x5d\x0a\x58" |
| 8981 | "\xe2\xe7\xce\x8a\xb2\x56\x6d\x76", |
| 8982 | .ilen = 16, |
| 8983 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 8984 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 8985 | .rlen = 16, |
| 8986 | }, { |
| 8987 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 8988 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 8989 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 8990 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 8991 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 8992 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 8993 | .klen = 48, |
| 8994 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 8995 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 8996 | .input = "\xdf\xcf\xdc\xd2\xe1\xcf\x86\x75" |
| 8997 | "\x17\x66\x5e\x0c\x14\xa1\x3d\x40", |
| 8998 | .ilen = 16, |
| 8999 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9000 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 9001 | .rlen = 16, |
| 9002 | }, { |
| 9003 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 9004 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 9005 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 9006 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 9007 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 9008 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 9009 | .klen = 48, |
| 9010 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9011 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 9012 | .input = "\x30\x38\xeb\xaf\x12\x43\x1a\x89" |
| 9013 | "\x62\xa2\x36\xe5\xcf\x77\x1e\xd9" |
| 9014 | "\x08\xc3\x0d\xdd\x95\xab\x19\x96" |
| 9015 | "\x27\x52\x41\xc3\xca\xfb\xf6\xee" |
| 9016 | "\x40\x2d\xdf\xdd\x00\x0c\xb9\x0a" |
| 9017 | "\x3a\xf0\xc0\xd1\xda\x63\x9e\x45" |
| 9018 | "\x42\xe9\x29\xc0\xb4\x07\xb4\x31" |
| 9019 | "\x66\x77\x72\xb5\xb6\xb3\x57\x46" |
| 9020 | "\x34\x9a\xfe\x03\xaf\x6b\x36\x07" |
| 9021 | "\x63\x8e\xc2\x5d\xa6\x0f\xb6\x7d" |
| 9022 | "\xfb\x6d\x82\x51\xb6\x98\xd0\x71" |
| 9023 | "\xe7\x10\x7a\xdf\xb2\xbd\xf1\x1d" |
| 9024 | "\x72\x2b\x54\x13\xe3\x6d\x79\x37" |
| 9025 | "\xa9\x39\x2c\xdf\x21\xab\x87\xd5" |
| 9026 | "\xee\xef\x9a\x12\x50\x39\x2e\x1b" |
| 9027 | "\x7d\xe6\x6a\x27\x48\xb9\xe7\xac" |
| 9028 | "\xaa\xcd\x79\x5f\xf2\xf3\xa0\x08" |
| 9029 | "\x6f\x2c\xf4\x0e\xd1\xb8\x89\x25" |
| 9030 | "\x31\x9d\xef\xb1\x1d\x27\x55\x04" |
| 9031 | "\xc9\x8c\xb7\x68\xdc\xb6\x67\x8a" |
| 9032 | "\xdb\xcf\x22\xf2\x3b\x6f\xce\xbb" |
| 9033 | "\x26\xbe\x4f\x27\x04\x42\xd1\x44" |
| 9034 | "\x4c\x08\xa3\x95\x4c\x7f\x1a\xaf" |
| 9035 | "\x1d\x28\x14\xfd\xb1\x1a\x34\x18" |
| 9036 | "\xf5\x1e\x28\x69\x95\x6a\x5a\xba" |
| 9037 | "\x8e\xb2\x58\x1d\x28\x17\x13\x3d" |
| 9038 | "\x38\x7d\x14\x8d\xab\x5d\xf9\xe8" |
| 9039 | "\x3c\x0f\x2b\x0d\x2b\x08\xb4\x4b" |
| 9040 | "\x6b\x0d\xc8\xa7\x84\xc2\x3a\x1a" |
| 9041 | "\xb7\xbd\xda\x92\x29\xb8\x5b\x5a" |
| 9042 | "\x63\xa5\x99\x82\x09\x72\x8f\xc6" |
| 9043 | "\xa4\x62\x24\x69\x8c\x2d\x26\x00" |
| 9044 | "\x99\x83\x91\xd6\xc6\xcf\x57\x67" |
| 9045 | "\x38\xea\xf2\xfc\x29\xe0\x73\x39" |
| 9046 | "\xf9\x13\x94\x6d\xe2\x58\x28\x75" |
| 9047 | "\x3e\xae\x71\x90\x07\x70\x1c\x38" |
| 9048 | "\x5b\x4c\x1e\xb5\xa5\x3b\x20\xef" |
| 9049 | "\xb1\x4c\x3e\x1a\x72\x62\xbb\x22" |
| 9050 | "\x82\x09\xe3\x18\x3f\x4f\x48\xfc" |
| 9051 | "\xdd\xac\xfc\xb6\x09\xdb\xd2\x7b" |
| 9052 | "\xd6\xb7\x7e\x41\x2f\x14\xf5\x0e" |
| 9053 | "\xc3\xac\x4a\xed\xe7\x82\xef\x31" |
| 9054 | "\x1f\x1a\x51\x1e\x29\x60\xc8\x98" |
| 9055 | "\x93\x51\x1d\x3d\x62\x59\x83\x82" |
| 9056 | "\x0c\xf1\xd7\x8d\xac\x33\x44\x81" |
| 9057 | "\x3c\x59\xb7\xd4\x5b\x65\x82\xc4" |
| 9058 | "\xec\xdc\x24\xfd\x0e\x1a\x79\x94" |
| 9059 | "\x34\xb0\x62\xfa\x98\x49\x26\x1f" |
| 9060 | "\xf4\x9e\x40\x44\x5b\x1f\xf8\xbe" |
| 9061 | "\x36\xff\xc6\xc6\x9d\xf2\xd6\xcc" |
| 9062 | "\x63\x93\x29\xb9\x0b\x6d\xd7\x6c" |
| 9063 | "\xdb\xf6\x21\x80\xf7\x5a\x37\x15" |
| 9064 | "\x0c\xe3\x36\xc8\x74\x75\x20\x91" |
| 9065 | "\xdf\x52\x2d\x0c\xe7\x45\xff\x46" |
| 9066 | "\xb3\xf4\xec\xc2\xbd\xd3\x37\xb6" |
| 9067 | "\x26\xa2\x5d\x7d\x61\xbf\x10\x46" |
| 9068 | "\x57\x8d\x05\x96\x70\x0b\xd6\x41" |
| 9069 | "\x5c\xe9\xd3\x54\x81\x39\x3a\xdd" |
| 9070 | "\x5f\x92\x81\x6e\x35\x03\xd4\x72" |
| 9071 | "\x3d\x5a\xe7\xb9\x3b\x0c\x84\x23" |
| 9072 | "\x45\x5d\xec\x72\xc1\x52\xef\x2e" |
| 9073 | "\x81\x00\xd3\xfe\x4c\x3c\x05\x61" |
| 9074 | "\x80\x18\xc4\x6c\x03\xd3\xb7\xba" |
| 9075 | "\x11\xd7\xb8\x6e\xea\xe1\x80\x30", |
| 9076 | .ilen = 512, |
| 9077 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 9078 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 9079 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 9080 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 9081 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 9082 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 9083 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 9084 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 9085 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 9086 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 9087 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 9088 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 9089 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 9090 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 9091 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 9092 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 9093 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 9094 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 9095 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 9096 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 9097 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 9098 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 9099 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 9100 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 9101 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 9102 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 9103 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 9104 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 9105 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 9106 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 9107 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 9108 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 9109 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 9110 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 9111 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 9112 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 9113 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 9114 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 9115 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 9116 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 9117 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 9118 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 9119 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 9120 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 9121 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 9122 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 9123 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 9124 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 9125 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 9126 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 9127 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 9128 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 9129 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 9130 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 9131 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 9132 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 9133 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 9134 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 9135 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 9136 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 9137 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 9138 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 9139 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 9140 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 9141 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9142 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 9143 | .np = 3, |
| 9144 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0b2a155 | 2011-10-18 13:32:50 +0300 | [diff] [blame] | 9145 | }, |
| 9146 | }; |
| 9147 | |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 9148 | static struct cipher_testvec tf_xts_enc_tv_template[] = { |
| 9149 | /* Generated from AES-XTS test vectors */ |
| 9150 | { |
| 9151 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9152 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9153 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9154 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9155 | .klen = 32, |
| 9156 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9157 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9158 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9159 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9160 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9161 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9162 | .ilen = 32, |
| 9163 | .result = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" |
| 9164 | "\x30\x74\xe4\x44\x52\x77\x97\x43" |
| 9165 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" |
| 9166 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", |
| 9167 | .rlen = 32, |
| 9168 | }, { |
| 9169 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 9170 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 9171 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 9172 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 9173 | .klen = 32, |
| 9174 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 9175 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9176 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9177 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9178 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9179 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 9180 | .ilen = 32, |
| 9181 | .result = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" |
| 9182 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" |
| 9183 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" |
| 9184 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", |
| 9185 | .rlen = 32, |
| 9186 | }, { |
| 9187 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 9188 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 9189 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 9190 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 9191 | .klen = 32, |
| 9192 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 9193 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9194 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9195 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9196 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9197 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 9198 | .ilen = 32, |
| 9199 | .result = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" |
| 9200 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" |
| 9201 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" |
| 9202 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", |
| 9203 | .rlen = 32, |
| 9204 | }, { |
| 9205 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 9206 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 9207 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 9208 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 9209 | .klen = 32, |
| 9210 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9211 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9212 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9213 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9214 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9215 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9216 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9217 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9218 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9219 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9220 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9221 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9222 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9223 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9224 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9225 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9226 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9227 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9228 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9229 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9230 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9231 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9232 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9233 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9234 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9235 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9236 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9237 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9238 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9239 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9240 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9241 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9242 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9243 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 9244 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9245 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9246 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9247 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9248 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9249 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9250 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9251 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9252 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9253 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9254 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9255 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9256 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9257 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9258 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9259 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9260 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9261 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9262 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9263 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9264 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9265 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9266 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9267 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9268 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9269 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9270 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9271 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9272 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9273 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9274 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9275 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9276 | .ilen = 512, |
| 9277 | .result = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" |
| 9278 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" |
| 9279 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" |
| 9280 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" |
| 9281 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" |
| 9282 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" |
| 9283 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" |
| 9284 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" |
| 9285 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" |
| 9286 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" |
| 9287 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" |
| 9288 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" |
| 9289 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" |
| 9290 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" |
| 9291 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" |
| 9292 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" |
| 9293 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" |
| 9294 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" |
| 9295 | "\x39\x80\x39\x09\x97\x65\xf2\x83" |
| 9296 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" |
| 9297 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" |
| 9298 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" |
| 9299 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" |
| 9300 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" |
| 9301 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" |
| 9302 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" |
| 9303 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" |
| 9304 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" |
| 9305 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" |
| 9306 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" |
| 9307 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" |
| 9308 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" |
| 9309 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" |
| 9310 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" |
| 9311 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" |
| 9312 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" |
| 9313 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" |
| 9314 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" |
| 9315 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" |
| 9316 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" |
| 9317 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" |
| 9318 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" |
| 9319 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" |
| 9320 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" |
| 9321 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" |
| 9322 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" |
| 9323 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" |
| 9324 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" |
| 9325 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" |
| 9326 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" |
| 9327 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" |
| 9328 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" |
| 9329 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" |
| 9330 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" |
| 9331 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" |
| 9332 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" |
| 9333 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" |
| 9334 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" |
| 9335 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" |
| 9336 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" |
| 9337 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" |
| 9338 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" |
| 9339 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" |
| 9340 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", |
| 9341 | .rlen = 512, |
| 9342 | }, { |
| 9343 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 9344 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 9345 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 9346 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 9347 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 9348 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 9349 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 9350 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 9351 | .klen = 64, |
| 9352 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 9353 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9354 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9355 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9356 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9357 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9358 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9359 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9360 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9361 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9362 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9363 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9364 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9365 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9366 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9367 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9368 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9369 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9370 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9371 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9372 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9373 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9374 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9375 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9376 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9377 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9378 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9379 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9380 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9381 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9382 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9383 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9384 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9385 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 9386 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9387 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9388 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9389 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9390 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9391 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9392 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9393 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9394 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9395 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9396 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9397 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9398 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9399 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9400 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9401 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9402 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9403 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9404 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9405 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9406 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9407 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9408 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9409 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9410 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9411 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9412 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9413 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9414 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9415 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9416 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9417 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9418 | .ilen = 512, |
| 9419 | .result = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" |
| 9420 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" |
| 9421 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" |
| 9422 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" |
| 9423 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" |
| 9424 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" |
| 9425 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" |
| 9426 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" |
| 9427 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" |
| 9428 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" |
| 9429 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" |
| 9430 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" |
| 9431 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" |
| 9432 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" |
| 9433 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" |
| 9434 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" |
| 9435 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" |
| 9436 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" |
| 9437 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" |
| 9438 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" |
| 9439 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" |
| 9440 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" |
| 9441 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" |
| 9442 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" |
| 9443 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" |
| 9444 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" |
| 9445 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" |
| 9446 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" |
| 9447 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" |
| 9448 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" |
| 9449 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" |
| 9450 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" |
| 9451 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" |
| 9452 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" |
| 9453 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" |
| 9454 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" |
| 9455 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" |
| 9456 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" |
| 9457 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" |
| 9458 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" |
| 9459 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" |
| 9460 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" |
| 9461 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" |
| 9462 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" |
| 9463 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" |
| 9464 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" |
| 9465 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" |
| 9466 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" |
| 9467 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" |
| 9468 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" |
| 9469 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" |
| 9470 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" |
| 9471 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" |
| 9472 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" |
| 9473 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" |
| 9474 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" |
| 9475 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" |
| 9476 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" |
| 9477 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" |
| 9478 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" |
| 9479 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" |
| 9480 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" |
| 9481 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" |
| 9482 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", |
| 9483 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9484 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 9485 | .np = 3, |
| 9486 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 9487 | }, |
| 9488 | }; |
| 9489 | |
| 9490 | static struct cipher_testvec tf_xts_dec_tv_template[] = { |
| 9491 | /* Generated from AES-XTS test vectors */ |
| 9492 | /* same as enc vectors with input and result reversed */ |
| 9493 | { |
| 9494 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9495 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9496 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9497 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9498 | .klen = 32, |
| 9499 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9500 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9501 | .input = "\x4b\xc9\x44\x4a\x11\xa3\xef\xac" |
| 9502 | "\x30\x74\xe4\x44\x52\x77\x97\x43" |
| 9503 | "\xa7\x60\xb2\x45\x2e\xf9\x00\x90" |
| 9504 | "\x9f\xaa\xfd\x89\x6e\x9d\x4a\xe0", |
| 9505 | .ilen = 32, |
| 9506 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9507 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9508 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9509 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9510 | .rlen = 32, |
| 9511 | }, { |
| 9512 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 9513 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 9514 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 9515 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 9516 | .klen = 32, |
| 9517 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 9518 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9519 | .input = "\x57\x0e\x8f\xe5\x2a\x35\x61\x4f" |
| 9520 | "\x32\xd3\xbd\x36\x05\x15\x44\x2c" |
| 9521 | "\x58\x06\xf7\xf8\x00\xa8\xb6\xd5" |
| 9522 | "\xc6\x28\x92\xdb\xd8\x34\xa2\xe9", |
| 9523 | .ilen = 32, |
| 9524 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9525 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9526 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9527 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 9528 | .rlen = 32, |
| 9529 | }, { |
| 9530 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 9531 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 9532 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 9533 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 9534 | .klen = 32, |
| 9535 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 9536 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9537 | .input = "\x96\x45\x8f\x8d\x7a\x75\xb1\xde" |
| 9538 | "\x40\x0c\x89\x56\xf6\x4d\xa7\x07" |
| 9539 | "\x38\xbb\x5b\xe9\xcd\x84\xae\xb2" |
| 9540 | "\x7b\x6a\x62\xf4\x8c\xb5\x37\xea", |
| 9541 | .ilen = 32, |
| 9542 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9543 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9544 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 9545 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 9546 | .rlen = 32, |
| 9547 | }, { |
| 9548 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 9549 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 9550 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 9551 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 9552 | .klen = 32, |
| 9553 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 9554 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9555 | .input = "\xa9\x78\xae\x1e\xea\xa2\x44\x4c" |
| 9556 | "\xa2\x7a\x64\x1f\xaf\x46\xc1\xe0" |
| 9557 | "\x6c\xb2\xf3\x92\x9a\xd6\x7d\x58" |
| 9558 | "\xb8\x2d\xb9\x5d\x58\x07\x66\x50" |
| 9559 | "\xea\x35\x35\x8c\xb2\x46\x61\x06" |
| 9560 | "\x5d\x65\xfc\x57\x8f\x69\x74\xab" |
| 9561 | "\x8a\x06\x69\xb5\x6c\xda\x66\xc7" |
| 9562 | "\x52\x90\xbb\x8e\x6d\x8b\xb5\xa2" |
| 9563 | "\x78\x1d\xc2\xa9\xc2\x73\x00\xc3" |
| 9564 | "\x32\x36\x7c\x97\x6b\x4e\x8a\x50" |
| 9565 | "\xe4\x91\x83\x96\x8f\xf4\x94\x1a" |
| 9566 | "\xa6\x27\xe1\x33\xcb\x91\xc6\x5f" |
| 9567 | "\x94\x75\xbc\xd7\x3e\x3e\x6f\x9e" |
| 9568 | "\xa9\x31\x80\x5e\xe5\xdb\xc8\x53" |
| 9569 | "\x01\x73\x68\x32\x25\x19\xfa\xfb" |
| 9570 | "\xe4\xcf\xb9\x3e\xa2\xa0\x8f\x31" |
| 9571 | "\xbf\x54\x06\x93\xa8\xb1\x0f\xb6" |
| 9572 | "\x7c\x3c\xde\x6f\x0f\xfb\x0c\x11" |
| 9573 | "\x39\x80\x39\x09\x97\x65\xf2\x83" |
| 9574 | "\xae\xe6\xa1\x6f\x47\xb8\x49\xde" |
| 9575 | "\x99\x36\x20\x7d\x97\x3b\xec\xfa" |
| 9576 | "\xb4\x33\x6e\x7a\xc7\x46\x84\x49" |
| 9577 | "\x91\xcd\xe1\x57\x0d\xed\x40\x08" |
| 9578 | "\x13\xf1\x4e\x3e\xa4\xa4\x5c\xe6" |
| 9579 | "\xd2\x0c\x20\x8f\x3e\xdf\x3f\x47" |
| 9580 | "\x9a\x2f\xde\x6d\x66\xc9\x99\x4a" |
| 9581 | "\x2d\x9e\x9d\x4b\x1a\x27\xa2\x12" |
| 9582 | "\x99\xf0\xf8\xb1\xb6\xf6\x57\xc3" |
| 9583 | "\xca\x1c\xa3\x8e\xed\x39\x28\xb5" |
| 9584 | "\x10\x1b\x4b\x08\x42\x00\x4a\xd3" |
| 9585 | "\xad\x5a\xc6\x8e\xc8\xbb\x95\xc4" |
| 9586 | "\x4b\xaa\xfe\xd5\x42\xa8\xa3\x6d" |
| 9587 | "\x3c\xf3\x34\x91\x2d\xb4\xdd\x20" |
| 9588 | "\x0c\x90\x6d\xa3\x9b\x66\x9d\x24" |
| 9589 | "\x02\xa6\xa9\x3f\x3f\x58\x5d\x47" |
| 9590 | "\x24\x65\x63\x7e\xbd\x8c\xe6\x52" |
| 9591 | "\x7d\xef\x33\x53\x63\xec\xaa\x0b" |
| 9592 | "\x64\x15\xa9\xa6\x1f\x10\x00\x38" |
| 9593 | "\x35\xa8\xe7\xbe\x23\x70\x22\xe0" |
| 9594 | "\xd3\xb9\xe6\xfd\xe6\xaa\x03\x50" |
| 9595 | "\xf3\x3c\x27\x36\x8b\xcc\xfe\x9c" |
| 9596 | "\x9c\xa3\xb3\xe7\x68\x9b\xa2\x71" |
| 9597 | "\xe0\x07\xd9\x1f\x68\x1f\xac\x5e" |
| 9598 | "\x7a\x74\x85\xa9\x6a\x90\xab\x2c" |
| 9599 | "\x38\x51\xbc\x1f\x43\x4a\x56\x1c" |
| 9600 | "\xf8\x47\x03\x4e\x67\xa8\x1f\x99" |
| 9601 | "\x04\x39\x73\x32\xb2\x86\x79\xe7" |
| 9602 | "\x14\x28\x70\xb8\xe2\x7d\x69\x85" |
| 9603 | "\xb6\x0f\xc5\xd0\xd0\x01\x5c\xe6" |
| 9604 | "\x09\x0f\x75\xf7\xb6\x81\xd2\x11" |
| 9605 | "\x20\x9c\xa1\xee\x11\x44\x79\xd0" |
| 9606 | "\xb2\x34\x77\xda\x10\x9a\x6f\x6f" |
| 9607 | "\xef\x7c\xd9\xdc\x35\xb7\x61\xdd" |
| 9608 | "\xf1\xa4\xc6\x1c\xbf\x05\x22\xac" |
| 9609 | "\xfe\x2f\x85\x00\x44\xdf\x33\x16" |
| 9610 | "\x35\xb6\xa3\xd3\x70\xdf\x69\x35" |
| 9611 | "\x6a\xc7\xb4\x99\x45\x27\xc8\x8e" |
| 9612 | "\x5a\x14\x30\xd0\x55\x3e\x4f\x64" |
| 9613 | "\x0d\x38\xe3\xdf\x8b\xa8\x93\x26" |
| 9614 | "\x75\xae\xf6\xb5\x23\x0b\x17\x31" |
| 9615 | "\xbf\x27\xb8\xb5\x94\x31\xa7\x8f" |
| 9616 | "\x43\xc4\x46\x24\x22\x4f\x8f\x7e" |
| 9617 | "\xe5\xf4\x6d\x1e\x0e\x18\x7a\xbb" |
| 9618 | "\xa6\x8f\xfb\x49\x49\xd8\x7e\x5a", |
| 9619 | .ilen = 512, |
| 9620 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9621 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9622 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9623 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9624 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9625 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9626 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9627 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9628 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9629 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9630 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9631 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9632 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9633 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9634 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9635 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9636 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9637 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9638 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9639 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9640 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9641 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9642 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9643 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9644 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9645 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9646 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9647 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9648 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9649 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9650 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9651 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 9652 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9653 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9654 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9655 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9656 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9657 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9658 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9659 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9660 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9661 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9662 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9663 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9664 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9665 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9666 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9667 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9668 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9669 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9670 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9671 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9672 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9673 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9674 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9675 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9676 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9677 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9678 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9679 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9680 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9681 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9682 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9683 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9684 | .rlen = 512, |
| 9685 | }, { |
| 9686 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 9687 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 9688 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 9689 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 9690 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 9691 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 9692 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 9693 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 9694 | .klen = 64, |
| 9695 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 9696 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 9697 | .input = "\xd7\x4b\x93\x7d\x13\xa2\xa2\xe1" |
| 9698 | "\x35\x39\x71\x88\x76\x1e\xc9\xea" |
| 9699 | "\x86\xad\xf3\x14\x48\x3d\x5e\xe9" |
| 9700 | "\xe9\x2d\xb2\x56\x59\x35\x9d\xec" |
| 9701 | "\x84\xfa\x7e\x9d\x6d\x33\x36\x8f" |
| 9702 | "\xce\xf4\xa9\x21\x0b\x5f\x96\xec" |
| 9703 | "\xcb\xf9\x57\x68\x33\x88\x39\xbf" |
| 9704 | "\x2f\xbb\x59\x03\xbd\x66\x8b\x11" |
| 9705 | "\x11\x65\x51\x2e\xb8\x67\x05\xd1" |
| 9706 | "\x27\x11\x5c\xd4\xcc\x97\xc2\xb3" |
| 9707 | "\xa9\x55\xaf\x07\x56\xd1\xdc\xf5" |
| 9708 | "\x85\xdc\x46\xe6\xf0\x24\xeb\x93" |
| 9709 | "\x4d\xf0\x9b\xf5\x73\x1c\xda\x03" |
| 9710 | "\x22\xc8\x3a\x4f\xb4\x19\x91\x09" |
| 9711 | "\x54\x0b\xf6\xfe\x17\x3d\x1a\x53" |
| 9712 | "\x72\x60\x79\xcb\x0e\x32\x8a\x77" |
| 9713 | "\xd5\xed\xdb\x33\xd7\x62\x16\x69" |
| 9714 | "\x63\xe0\xab\xb5\xf6\x9c\x5f\x3d" |
| 9715 | "\x69\x35\x61\x86\xf8\x86\xb9\x89" |
| 9716 | "\x6e\x59\x35\xac\xf6\x6b\x33\xa0" |
| 9717 | "\xea\xef\x96\x62\xd8\xa9\xcf\x56" |
| 9718 | "\xbf\xdb\x8a\xfd\xa1\x82\x77\x73" |
| 9719 | "\x3d\x94\x4a\x49\x42\x6d\x08\x60" |
| 9720 | "\xa1\xea\xab\xb6\x88\x13\x94\xb8" |
| 9721 | "\x51\x98\xdb\x35\x85\xdf\xf6\xb9" |
| 9722 | "\x8f\xcd\xdf\x80\xd3\x40\x2d\x72" |
| 9723 | "\xb8\xb2\x6c\x02\x43\x35\x22\x2a" |
| 9724 | "\x31\xed\xcd\x16\x19\xdf\x62\x0f" |
| 9725 | "\x29\xcf\x87\x04\xec\x02\x4f\xe4" |
| 9726 | "\xa2\xed\x73\xc6\x69\xd3\x7e\x89" |
| 9727 | "\x0b\x76\x10\x7c\xd6\xf9\x6a\x25" |
| 9728 | "\xed\xcc\x60\x5d\x61\x20\xc1\x97" |
| 9729 | "\x56\x91\x57\x28\xbe\x71\x0d\xcd" |
| 9730 | "\xde\xc4\x9e\x55\x91\xbe\xd1\x28" |
| 9731 | "\x9b\x90\xeb\x73\xf3\x68\x51\xc6" |
| 9732 | "\xdf\x82\xcc\xd8\x1f\xce\x5b\x27" |
| 9733 | "\xc0\x60\x5e\x33\xd6\xa7\x20\xea" |
| 9734 | "\xb2\x54\xc7\x5d\x6a\x3b\x67\x47" |
| 9735 | "\xcf\xa0\xe3\xab\x86\xaf\xc1\x42" |
| 9736 | "\xe6\xb0\x23\x4a\xaf\x53\xdf\xa0" |
| 9737 | "\xad\x12\x32\x31\x03\xf7\x21\xbe" |
| 9738 | "\x2d\xd5\x82\x42\xb6\x4a\x3d\xcd" |
| 9739 | "\xd8\x81\x77\xa9\x49\x98\x6c\x09" |
| 9740 | "\xc5\xa3\x61\x12\x62\x85\x6b\xcd" |
| 9741 | "\xb3\xf4\x20\x0c\x41\xc4\x05\x37" |
| 9742 | "\x46\x5f\xeb\x71\x8b\xf1\xaf\x6e" |
| 9743 | "\xba\xf3\x50\x2e\xfe\xa8\x37\xeb" |
| 9744 | "\xe8\x8c\x4f\xa4\x0c\xf1\x31\xc8" |
| 9745 | "\x6e\x71\x4f\xa5\xd7\x97\x73\xe0" |
| 9746 | "\x93\x4a\x2f\xda\x7b\xe0\x20\x54" |
| 9747 | "\x1f\x8d\x85\x79\x0b\x7b\x5e\x75" |
| 9748 | "\xb9\x07\x67\xcc\xc8\xe7\x21\x15" |
| 9749 | "\xa7\xc8\x98\xff\x4b\x80\x1c\x12" |
| 9750 | "\xa8\x54\xe1\x38\x52\xe6\x74\x81" |
| 9751 | "\x97\x47\xa1\x41\x0e\xc0\x50\xe3" |
| 9752 | "\x55\x0e\xc3\xa7\x70\x77\xce\x07" |
| 9753 | "\xed\x8c\x88\xe6\xa1\x5b\x14\xec" |
| 9754 | "\xe6\xde\x06\x6d\x74\xc5\xd9\xfa" |
| 9755 | "\xe5\x2f\x5a\xff\xc8\x05\xee\x27" |
| 9756 | "\x35\x61\xbf\x0b\x19\x78\x9b\xd2" |
| 9757 | "\x04\xc7\x05\xb1\x79\xb4\xff\x5f" |
| 9758 | "\xf3\xea\x67\x52\x78\xc2\xce\x70" |
| 9759 | "\xa4\x05\x0b\xb2\xb3\xa8\x30\x97" |
| 9760 | "\x37\x30\xe1\x91\x8d\xb3\x2a\xff", |
| 9761 | .ilen = 512, |
| 9762 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9763 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9764 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9765 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9766 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9767 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9768 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9769 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9770 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9771 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9772 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9773 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9774 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9775 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9776 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9777 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9778 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9779 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9780 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9781 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9782 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9783 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9784 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9785 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9786 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9787 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9788 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9789 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9790 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9791 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9792 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9793 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 9794 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9795 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9796 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9797 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 9798 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 9799 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 9800 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 9801 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 9802 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 9803 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 9804 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 9805 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 9806 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 9807 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 9808 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 9809 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 9810 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 9811 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 9812 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 9813 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 9814 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 9815 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 9816 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 9817 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 9818 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 9819 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 9820 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 9821 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 9822 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 9823 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 9824 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 9825 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 9826 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 9827 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 9828 | .np = 3, |
| 9829 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | aed265b | 2011-10-18 13:33:33 +0300 | [diff] [blame] | 9830 | }, |
| 9831 | }; |
| 9832 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9833 | /* |
| 9834 | * Serpent test vectors. These are backwards because Serpent writes |
| 9835 | * octet sequences in right-to-left mode. |
| 9836 | */ |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9837 | #define SERPENT_ENC_TEST_VECTORS 5 |
| 9838 | #define SERPENT_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9839 | |
| 9840 | #define TNEPRES_ENC_TEST_VECTORS 4 |
| 9841 | #define TNEPRES_DEC_TEST_VECTORS 4 |
| 9842 | |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9843 | #define SERPENT_CBC_ENC_TEST_VECTORS 1 |
| 9844 | #define SERPENT_CBC_DEC_TEST_VECTORS 1 |
| 9845 | |
| 9846 | #define SERPENT_CTR_ENC_TEST_VECTORS 2 |
| 9847 | #define SERPENT_CTR_DEC_TEST_VECTORS 2 |
| 9848 | |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 9849 | #define SERPENT_LRW_ENC_TEST_VECTORS 8 |
| 9850 | #define SERPENT_LRW_DEC_TEST_VECTORS 8 |
| 9851 | |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 9852 | #define SERPENT_XTS_ENC_TEST_VECTORS 5 |
| 9853 | #define SERPENT_XTS_DEC_TEST_VECTORS 5 |
| 9854 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 9855 | static struct cipher_testvec serpent_enc_tv_template[] = { |
| 9856 | { |
| 9857 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9858 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9859 | .ilen = 16, |
| 9860 | .result = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" |
| 9861 | "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", |
| 9862 | .rlen = 16, |
| 9863 | }, { |
| 9864 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9865 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9866 | .klen = 16, |
| 9867 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9868 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9869 | .ilen = 16, |
| 9870 | .result = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" |
| 9871 | "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", |
| 9872 | .rlen = 16, |
| 9873 | }, { |
| 9874 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9875 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 9876 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 9877 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 9878 | .klen = 32, |
| 9879 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 9880 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 9881 | .ilen = 16, |
| 9882 | .result = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" |
| 9883 | "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", |
| 9884 | .rlen = 16, |
| 9885 | }, { |
| 9886 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 9887 | .klen = 16, |
| 9888 | .input = zeroed_string, |
| 9889 | .ilen = 16, |
| 9890 | .result = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" |
| 9891 | "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", |
| 9892 | .rlen = 16, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9893 | }, { /* Generated with Crypto++ */ |
| 9894 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 9895 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 9896 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 9897 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 9898 | .klen = 32, |
| 9899 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 9900 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 9901 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 9902 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 9903 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 9904 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 9905 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 9906 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 9907 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 9908 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 9909 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 9910 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 9911 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 9912 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 9913 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 9914 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 9915 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9916 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 9917 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 9918 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 9919 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 9920 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 9921 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 9922 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 9923 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 9924 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 9925 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 9926 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 9927 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 9928 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 9929 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 9930 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 9931 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 9932 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 9933 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 9934 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 9935 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 9936 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 9937 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 9938 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 9939 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 9940 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 9941 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 9942 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 9943 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 9944 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 9945 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 9946 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 9947 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 9948 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 9949 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 9950 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 9951 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 9952 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 9953 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 9954 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 9955 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 9956 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 9957 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 9958 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 9959 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 9960 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 9961 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 9962 | .result = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB" |
| 9963 | "\xB1\x80\x10\x43\xDE\x62\x70\xBD" |
| 9964 | "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7" |
| 9965 | "\x0C\xD1\xBB\x29\x25\x14\x4C\x22" |
| 9966 | "\x77\xA6\x38\x00\xDB\xB9\xE2\x07" |
| 9967 | "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39" |
| 9968 | "\x99\x34\x89\x5B\x54\xE9\x12\x13" |
| 9969 | "\x3B\x04\xE5\x12\x42\xC5\x79\xAB" |
| 9970 | "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6" |
| 9971 | "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA" |
| 9972 | "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A" |
| 9973 | "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87" |
| 9974 | "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5" |
| 9975 | "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73" |
| 9976 | "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD" |
| 9977 | "\x69\xDA\x7A\x01\xF5\x6A\x70\x39" |
| 9978 | "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 9979 | "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6" |
| 9980 | "\xB6\x31\x36\x34\x38\x3C\x1D\x69" |
| 9981 | "\x9F\x47\x28\x9A\x1D\x96\x70\x54" |
| 9982 | "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A" |
| 9983 | "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A" |
| 9984 | "\x23\x9C\x9B\x79\xC7\x75\xC8\x39" |
| 9985 | "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D" |
| 9986 | "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B" |
| 9987 | "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F" |
| 9988 | "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8" |
| 9989 | "\xEF\x50\x22\x20\x93\x30\xBE\xE2" |
| 9990 | "\x38\x05\x65\xAF\xBA\xB6\xE4\x72" |
| 9991 | "\xA9\xEE\x05\x42\x88\xBD\x9D\x49" |
| 9992 | "\xAD\x93\xCA\x4D\x45\x11\x43\x4D" |
| 9993 | "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4" |
| 9994 | "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD" |
| 9995 | "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6" |
| 9996 | "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69" |
| 9997 | "\x73\x65\x65\x51\xD6\x0B\x4E\x8C" |
| 9998 | "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B" |
| 9999 | "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39" |
| 10000 | "\xE8\x10\x93\x16\xC8\x68\x4C\x60" |
| 10001 | "\x87\x70\x14\xD0\x01\x57\xCB\x42" |
| 10002 | "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7" |
| 10003 | "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE" |
| 10004 | "\xFD\x72\xEC\xD7\x6F\x97\x14\x90" |
| 10005 | "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE" |
| 10006 | "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B" |
| 10007 | "\x71\x80\x05\x35\x3F\x40\x0B\x21" |
| 10008 | "\x76\xE5\xEF\x42\x6C\xDB\x31\x05" |
| 10009 | "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2" |
| 10010 | "\x49\x03\x5E\x77\x2E\x20\xBA\xA1" |
| 10011 | "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E" |
| 10012 | "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F" |
| 10013 | "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6" |
| 10014 | "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1" |
| 10015 | "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00" |
| 10016 | "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF" |
| 10017 | "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45" |
| 10018 | "\x91\x76\xE7\x6E\x65\x3D\x15\x86" |
| 10019 | "\x10\xF8\xDB\x66\x97\x7C\x43\x4D" |
| 10020 | "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A" |
| 10021 | "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02" |
| 10022 | "\x75\x55\x9B\xFF\x36\x73\xAB\x7C" |
| 10023 | "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7", |
| 10024 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10025 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 10026 | .np = 3, |
| 10027 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 10028 | }, |
| 10029 | }; |
| 10030 | |
| 10031 | static struct cipher_testvec tnepres_enc_tv_template[] = { |
| 10032 | { /* KeySize=128, PT=0, I=1 */ |
| 10033 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10034 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10035 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 10036 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10037 | .klen = 16, |
| 10038 | .ilen = 16, |
| 10039 | .result = "\x49\xaf\xbf\xad\x9d\x5a\x34\x05" |
| 10040 | "\x2c\xd8\xff\xa5\x98\x6b\xd2\xdd", |
| 10041 | .rlen = 16, |
| 10042 | }, { /* KeySize=192, PT=0, I=1 */ |
| 10043 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 10044 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10045 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10046 | .klen = 24, |
| 10047 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10048 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10049 | .ilen = 16, |
| 10050 | .result = "\xe7\x8e\x54\x02\xc7\x19\x55\x68" |
| 10051 | "\xac\x36\x78\xf7\xa3\xf6\x0c\x66", |
| 10052 | .rlen = 16, |
| 10053 | }, { /* KeySize=256, PT=0, I=1 */ |
| 10054 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 10055 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10056 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10057 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10058 | .klen = 32, |
| 10059 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 10060 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 10061 | .ilen = 16, |
| 10062 | .result = "\xab\xed\x96\xe7\x66\xbf\x28\xcb" |
| 10063 | "\xc0\xeb\xd2\x1a\x82\xef\x08\x19", |
| 10064 | .rlen = 16, |
| 10065 | }, { /* KeySize=256, I=257 */ |
| 10066 | .key = "\x1f\x1e\x1d\x1c\x1b\x1a\x19\x18" |
| 10067 | "\x17\x16\x15\x14\x13\x12\x11\x10" |
| 10068 | "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" |
| 10069 | "\x07\x06\x05\x04\x03\x02\x01\x00", |
| 10070 | .klen = 32, |
| 10071 | .input = "\x0f\x0e\x0d\x0c\x0b\x0a\x09\x08" |
| 10072 | "\x07\x06\x05\x04\x03\x02\x01\x00", |
| 10073 | .ilen = 16, |
| 10074 | .result = "\x5c\xe7\x1c\x70\xd2\x88\x2e\x5b" |
| 10075 | "\xb8\x32\xe4\x33\xf8\x9f\x26\xde", |
| 10076 | .rlen = 16, |
| 10077 | }, |
| 10078 | }; |
| 10079 | |
| 10080 | |
| 10081 | static struct cipher_testvec serpent_dec_tv_template[] = { |
| 10082 | { |
| 10083 | .input = "\x12\x07\xfc\xce\x9b\xd0\xd6\x47" |
| 10084 | "\x6a\xe9\x8f\xbe\xd1\x43\xa0\xe2", |
| 10085 | .ilen = 16, |
| 10086 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10087 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10088 | .rlen = 16, |
| 10089 | }, { |
| 10090 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10091 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10092 | .klen = 16, |
| 10093 | .input = "\x4c\x7d\x8a\x32\x80\x72\xa2\x2c" |
| 10094 | "\x82\x3e\x4a\x1f\x3a\xcd\xa1\x6d", |
| 10095 | .ilen = 16, |
| 10096 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10097 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10098 | .rlen = 16, |
| 10099 | }, { |
| 10100 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10101 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10102 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10103 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 10104 | .klen = 32, |
| 10105 | .input = "\xde\x26\x9f\xf8\x33\xe4\x32\xb8" |
| 10106 | "\x5b\x2e\x88\xd2\x70\x1c\xe7\x5c", |
| 10107 | .ilen = 16, |
| 10108 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10109 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10110 | .rlen = 16, |
| 10111 | }, { |
| 10112 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 10113 | .klen = 16, |
| 10114 | .input = "\xdd\xd2\x6b\x98\xa5\xff\xd8\x2c" |
| 10115 | "\x05\x34\x5a\x9d\xad\xbf\xaf\x49", |
| 10116 | .ilen = 16, |
| 10117 | .result = zeroed_string, |
| 10118 | .rlen = 16, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10119 | }, { /* Generated with Crypto++ */ |
| 10120 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10121 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10122 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10123 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10124 | .klen = 32, |
| 10125 | .input = "\xFB\xB0\x5D\xDE\xC0\xFE\xFC\xEB" |
| 10126 | "\xB1\x80\x10\x43\xDE\x62\x70\xBD" |
| 10127 | "\xFA\x8A\x93\xEA\x6B\xF7\xC5\xD7" |
| 10128 | "\x0C\xD1\xBB\x29\x25\x14\x4C\x22" |
| 10129 | "\x77\xA6\x38\x00\xDB\xB9\xE2\x07" |
| 10130 | "\xD1\xAC\x82\xBA\xEA\x67\xAA\x39" |
| 10131 | "\x99\x34\x89\x5B\x54\xE9\x12\x13" |
| 10132 | "\x3B\x04\xE5\x12\x42\xC5\x79\xAB" |
| 10133 | "\x0D\xC7\x3C\x58\x2D\xA3\x98\xF6" |
| 10134 | "\xE4\x61\x9E\x17\x0B\xCE\xE8\xAA" |
| 10135 | "\xB5\x6C\x1A\x3A\x67\x52\x81\x6A" |
| 10136 | "\x04\xFF\x8A\x1B\x96\xFE\xE6\x87" |
| 10137 | "\x3C\xD4\x39\x7D\x36\x9B\x03\xD5" |
| 10138 | "\xB6\xA0\x75\x3C\x83\xE6\x1C\x73" |
| 10139 | "\x9D\x74\x2B\x77\x53\x2D\xE5\xBD" |
| 10140 | "\x69\xDA\x7A\x01\xF5\x6A\x70\x39" |
| 10141 | "\x30\xD4\x2C\xF2\x8E\x06\x4B\x39" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10142 | "\xB3\x12\x1D\xB3\x17\x46\xE6\xD6" |
| 10143 | "\xB6\x31\x36\x34\x38\x3C\x1D\x69" |
| 10144 | "\x9F\x47\x28\x9A\x1D\x96\x70\x54" |
| 10145 | "\x8E\x88\xCB\xE0\xF5\x6A\xAE\x0A" |
| 10146 | "\x3C\xD5\x93\x1C\x21\xC9\x14\x3A" |
| 10147 | "\x23\x9C\x9B\x79\xC7\x75\xC8\x39" |
| 10148 | "\xA6\xAC\x65\x9A\x99\x37\xAF\x6D" |
| 10149 | "\xBD\xB5\x32\xFD\xD8\x9C\x95\x7B" |
| 10150 | "\xC6\x6A\x80\x64\xEA\xEF\x6D\x3F" |
| 10151 | "\xA9\xFE\x5B\x16\xA3\xCF\x32\xC8" |
| 10152 | "\xEF\x50\x22\x20\x93\x30\xBE\xE2" |
| 10153 | "\x38\x05\x65\xAF\xBA\xB6\xE4\x72" |
| 10154 | "\xA9\xEE\x05\x42\x88\xBD\x9D\x49" |
| 10155 | "\xAD\x93\xCA\x4D\x45\x11\x43\x4D" |
| 10156 | "\xB8\xF5\x74\x2B\x48\xE7\x21\xE4" |
| 10157 | "\x4E\x3A\x4C\xDE\x65\x7A\x5A\xAD" |
| 10158 | "\x86\xE6\x23\xEC\x6B\xA7\x17\xE6" |
| 10159 | "\xF6\xA1\xAC\x29\xAE\xF9\x9B\x69" |
| 10160 | "\x73\x65\x65\x51\xD6\x0B\x4E\x8C" |
| 10161 | "\x17\x15\x9D\xB0\xCF\xB2\x42\x2B" |
| 10162 | "\x51\xC3\x03\xE8\xB7\x7D\x2D\x39" |
| 10163 | "\xE8\x10\x93\x16\xC8\x68\x4C\x60" |
| 10164 | "\x87\x70\x14\xD0\x01\x57\xCB\x42" |
| 10165 | "\x13\x59\xB1\x7F\x12\x4F\xBB\xC7" |
| 10166 | "\xBD\x2B\xD4\xA9\x12\x26\x4F\xDE" |
| 10167 | "\xFD\x72\xEC\xD7\x6F\x97\x14\x90" |
| 10168 | "\x0E\x37\x13\xE6\x67\x1D\xE5\xFE" |
| 10169 | "\x9E\x18\x3C\x8F\x3A\x3F\x59\x9B" |
| 10170 | "\x71\x80\x05\x35\x3F\x40\x0B\x21" |
| 10171 | "\x76\xE5\xEF\x42\x6C\xDB\x31\x05" |
| 10172 | "\x5F\x05\xCF\x14\xE3\xF0\x61\xA2" |
| 10173 | "\x49\x03\x5E\x77\x2E\x20\xBA\xA1" |
| 10174 | "\xAF\x46\x51\xC0\x2B\xC4\x64\x1E" |
| 10175 | "\x65\xCC\x51\x58\x0A\xDF\xF0\x5F" |
| 10176 | "\x75\x9F\x48\xCD\x81\xEC\xC3\xF6" |
| 10177 | "\xED\xC9\x4B\x7B\x4E\x26\x23\xE1" |
| 10178 | "\xBB\xE9\x83\x0B\xCF\xE4\xDE\x00" |
| 10179 | "\x48\xFF\xBF\x6C\xB4\x72\x16\xEF" |
| 10180 | "\xC7\x46\xEE\x48\x8C\xB8\xAF\x45" |
| 10181 | "\x91\x76\xE7\x6E\x65\x3D\x15\x86" |
| 10182 | "\x10\xF8\xDB\x66\x97\x7C\x43\x4D" |
| 10183 | "\x79\x12\x4E\xCE\x06\xD1\xD1\x6A" |
| 10184 | "\x34\xC1\xC9\xF2\x28\x4A\xCD\x02" |
| 10185 | "\x75\x55\x9B\xFF\x36\x73\xAB\x7C" |
| 10186 | "\xF4\x46\x2E\xEB\xAC\xF3\xD2\xB7", |
| 10187 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10188 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10189 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10190 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10191 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10192 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10193 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10194 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10195 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10196 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10197 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10198 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10199 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10200 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10201 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10202 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10203 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10204 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10205 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10206 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10207 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10208 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10209 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10210 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10211 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10212 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10213 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10214 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10215 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10216 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10217 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10218 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10219 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10220 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10221 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10222 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10223 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10224 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10225 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10226 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10227 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10228 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10229 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10230 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10231 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10232 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10233 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10234 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10235 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10236 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10237 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10238 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10239 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10240 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10241 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10242 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10243 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10244 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10245 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10246 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10247 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10248 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10249 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10250 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10251 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 10252 | .np = 3, |
| 10253 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 10254 | }, |
| 10255 | }; |
| 10256 | |
| 10257 | static struct cipher_testvec tnepres_dec_tv_template[] = { |
| 10258 | { |
| 10259 | .input = "\x41\xcc\x6b\x31\x59\x31\x45\x97" |
| 10260 | "\x6d\x6f\xbb\x38\x4b\x37\x21\x28", |
| 10261 | .ilen = 16, |
| 10262 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10263 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10264 | .rlen = 16, |
| 10265 | }, { |
| 10266 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10267 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10268 | .klen = 16, |
| 10269 | .input = "\xea\xf4\xd7\xfc\xd8\x01\x34\x47" |
| 10270 | "\x81\x45\x0b\xfa\x0c\xd6\xad\x6e", |
| 10271 | .ilen = 16, |
| 10272 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10273 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10274 | .rlen = 16, |
| 10275 | }, { |
| 10276 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10277 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 10278 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 10279 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 10280 | .klen = 32, |
| 10281 | .input = "\x64\xa9\x1a\x37\xed\x9f\xe7\x49" |
| 10282 | "\xa8\x4e\x76\xd6\xf5\x0d\x78\xee", |
| 10283 | .ilen = 16, |
| 10284 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 10285 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 10286 | .rlen = 16, |
| 10287 | }, { /* KeySize=128, I=121 */ |
| 10288 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x80", |
| 10289 | .klen = 16, |
| 10290 | .input = "\x3d\xda\xbf\xc0\x06\xda\xab\x06" |
| 10291 | "\x46\x2a\xf4\xef\x81\x54\x4e\x26", |
| 10292 | .ilen = 16, |
| 10293 | .result = zeroed_string, |
| 10294 | .rlen = 16, |
| 10295 | }, |
| 10296 | }; |
| 10297 | |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10298 | static struct cipher_testvec serpent_cbc_enc_tv_template[] = { |
| 10299 | { /* Generated with Crypto++ */ |
| 10300 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10301 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10302 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10303 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10304 | .klen = 32, |
| 10305 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 10306 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 10307 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10308 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10309 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10310 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10311 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10312 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10313 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10314 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10315 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10316 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10317 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10318 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10319 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10320 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10321 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10322 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10323 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10324 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10325 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10326 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10327 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10328 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10329 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10330 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10331 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10332 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10333 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10334 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10335 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10336 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10337 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10338 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10339 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10340 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10341 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10342 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10343 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10344 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10345 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10346 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10347 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10348 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10349 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10350 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10351 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10352 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10353 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10354 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10355 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10356 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10357 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10358 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10359 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10360 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10361 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10362 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10363 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10364 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10365 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10366 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10367 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10368 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10369 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10370 | .result = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C" |
| 10371 | "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E" |
| 10372 | "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD" |
| 10373 | "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C" |
| 10374 | "\x38\x63\x35\x7E\x79\x18\x0A\xE8" |
| 10375 | "\x67\x06\x76\xD5\xFF\x22\x2F\xDA" |
| 10376 | "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97" |
| 10377 | "\xFE\x53\x75\x35\x97\x7F\x51\xEA" |
| 10378 | "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7" |
| 10379 | "\x62\x67\xFF\x04\xC2\x18\x22\x5F" |
| 10380 | "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E" |
| 10381 | "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41" |
| 10382 | "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB" |
| 10383 | "\x72\x84\xF8\x0A\x3F\x38\x5E\x91" |
| 10384 | "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2" |
| 10385 | "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB" |
| 10386 | "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10387 | "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C" |
| 10388 | "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A" |
| 10389 | "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC" |
| 10390 | "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97" |
| 10391 | "\x5A\x5E\x7E\x96\x52\x20\xDC\x25" |
| 10392 | "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C" |
| 10393 | "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B" |
| 10394 | "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9" |
| 10395 | "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5" |
| 10396 | "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B" |
| 10397 | "\xA1\xC0\x12\x54\x4E\xC9\x20\x92" |
| 10398 | "\x11\x00\x10\x4E\xB3\x7C\xCA\x63" |
| 10399 | "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7" |
| 10400 | "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D" |
| 10401 | "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7" |
| 10402 | "\x81\x92\x66\x67\x15\x1E\x39\x98" |
| 10403 | "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A" |
| 10404 | "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05" |
| 10405 | "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B" |
| 10406 | "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C" |
| 10407 | "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3" |
| 10408 | "\x96\xC6\x66\x49\xDA\x0D\x71\xAC" |
| 10409 | "\x04\x05\x46\xD3\x90\x0F\x64\x64" |
| 10410 | "\x01\x66\x2C\x62\x5D\x34\xD1\xCB" |
| 10411 | "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97" |
| 10412 | "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D" |
| 10413 | "\x62\xA6\x19\x28\x9E\x26\xB4\x3F" |
| 10414 | "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0" |
| 10415 | "\x7D\xE9\x95\x45\x86\xED\xB1\xE0" |
| 10416 | "\x8D\xE9\xC5\x86\x13\x24\x28\x7D" |
| 10417 | "\x74\xEF\xCA\x50\x12\x7E\x64\x8F" |
| 10418 | "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7" |
| 10419 | "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA" |
| 10420 | "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2" |
| 10421 | "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E" |
| 10422 | "\xE6\x75\x0D\x54\x64\x11\xA3\x3A" |
| 10423 | "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E" |
| 10424 | "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4" |
| 10425 | "\xBA\x23\x2D\x8D\x29\x07\x12\xCF" |
| 10426 | "\x34\xCD\x72\x7F\x01\x30\xE7\xA0" |
| 10427 | "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2" |
| 10428 | "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4" |
| 10429 | "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF" |
| 10430 | "\xFC\x66\xAA\x37\xF2\x37\x39\x6B" |
| 10431 | "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1", |
| 10432 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10433 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 10434 | .np = 3, |
| 10435 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10436 | }, |
| 10437 | }; |
| 10438 | |
| 10439 | static struct cipher_testvec serpent_cbc_dec_tv_template[] = { |
| 10440 | { /* Generated with Crypto++ */ |
| 10441 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10442 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10443 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10444 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10445 | .klen = 32, |
| 10446 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 10447 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 10448 | .input = "\x80\xCF\x11\x41\x1A\xB9\x4B\x9C" |
| 10449 | "\xFF\xB7\x6C\xEA\xF0\xAF\x77\x6E" |
| 10450 | "\x71\x75\x95\x9D\x4E\x1C\xCF\xAD" |
| 10451 | "\x81\x34\xE9\x8F\xAE\x5A\x91\x1C" |
| 10452 | "\x38\x63\x35\x7E\x79\x18\x0A\xE8" |
| 10453 | "\x67\x06\x76\xD5\xFF\x22\x2F\xDA" |
| 10454 | "\xB6\x2D\x57\x13\xB6\x3C\xBC\x97" |
| 10455 | "\xFE\x53\x75\x35\x97\x7F\x51\xEA" |
| 10456 | "\xDF\x5D\xE8\x9D\xCC\xD9\xAE\xE7" |
| 10457 | "\x62\x67\xFF\x04\xC2\x18\x22\x5F" |
| 10458 | "\x2E\x06\xC1\xE2\x26\xCD\xC6\x1E" |
| 10459 | "\xE5\x2C\x4E\x87\x23\xDD\xF0\x41" |
| 10460 | "\x08\xA5\xB4\x3E\x07\x1E\x0B\xBB" |
| 10461 | "\x72\x84\xF8\x0A\x3F\x38\x5E\x91" |
| 10462 | "\x15\x26\xE1\xDB\xA4\x3D\x74\xD2" |
| 10463 | "\x41\x1E\x3F\xA9\xC6\x7D\x2A\xAB" |
| 10464 | "\x27\xDF\x89\x1D\x86\x3E\xF7\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10465 | "\xF6\xE3\x0F\xC7\x6B\x4C\x96\x7C" |
| 10466 | "\x2D\x12\xA5\x05\x92\xCB\xD7\x4A" |
| 10467 | "\x4D\x1E\x88\x21\xE1\x63\xB4\xFC" |
| 10468 | "\x4A\xF2\xCD\x35\xB9\xD7\x70\x97" |
| 10469 | "\x5A\x5E\x7E\x96\x52\x20\xDC\x25" |
| 10470 | "\xE9\x6B\x36\xB4\xE0\x98\x85\x2C" |
| 10471 | "\x3C\xD2\xF7\x78\x8A\x73\x26\x9B" |
| 10472 | "\xAF\x0B\x11\xE8\x4D\x67\x23\xE9" |
| 10473 | "\x77\xDF\x58\xF6\x6F\x9E\xA4\xC5" |
| 10474 | "\x10\xA1\x82\x0E\x80\xA0\x8F\x4B" |
| 10475 | "\xA1\xC0\x12\x54\x4E\xC9\x20\x92" |
| 10476 | "\x11\x00\x10\x4E\xB3\x7C\xCA\x63" |
| 10477 | "\xE5\x3F\xD3\x41\x37\xCD\x74\xB7" |
| 10478 | "\xA5\x7C\x61\xB8\x0B\x7A\x7F\x4D" |
| 10479 | "\xFE\x96\x7D\x1B\xBE\x60\x37\xB7" |
| 10480 | "\x81\x92\x66\x67\x15\x1E\x39\x98" |
| 10481 | "\x52\xC0\xF4\x69\xC0\x99\x4F\x5A" |
| 10482 | "\x2E\x32\xAD\x7C\x8B\xE9\xAD\x05" |
| 10483 | "\x55\xF9\x0A\x1F\x97\x5C\xFA\x2B" |
| 10484 | "\xF4\x99\x76\x3A\x6E\x4D\xE1\x4C" |
| 10485 | "\x14\x4E\x6F\x87\xEE\x1A\x85\xA3" |
| 10486 | "\x96\xC6\x66\x49\xDA\x0D\x71\xAC" |
| 10487 | "\x04\x05\x46\xD3\x90\x0F\x64\x64" |
| 10488 | "\x01\x66\x2C\x62\x5D\x34\xD1\xCB" |
| 10489 | "\x3A\x24\xCE\x95\xEF\xAE\x2C\x97" |
| 10490 | "\x0E\x0C\x1D\x36\x49\xEB\xE9\x3D" |
| 10491 | "\x62\xA6\x19\x28\x9E\x26\xB4\x3F" |
| 10492 | "\xD7\x55\x42\x3C\xCD\x72\x0A\xF0" |
| 10493 | "\x7D\xE9\x95\x45\x86\xED\xB1\xE0" |
| 10494 | "\x8D\xE9\xC5\x86\x13\x24\x28\x7D" |
| 10495 | "\x74\xEF\xCA\x50\x12\x7E\x64\x8F" |
| 10496 | "\x1B\xF5\x5B\xFE\xE2\xAC\xFA\xE7" |
| 10497 | "\xBD\x38\x8C\x11\x20\xEF\xB1\xAA" |
| 10498 | "\x7B\xE5\xE5\x78\xAD\x9D\x2D\xA2" |
| 10499 | "\x8E\xDD\x48\xB3\xEF\x18\x92\x7E" |
| 10500 | "\xE6\x75\x0D\x54\x64\x11\xA3\x3A" |
| 10501 | "\xDB\x97\x0F\xD3\xDF\x07\xD3\x7E" |
| 10502 | "\x1E\xD1\x87\xE4\x74\xBB\x46\xF4" |
| 10503 | "\xBA\x23\x2D\x8D\x29\x07\x12\xCF" |
| 10504 | "\x34\xCD\x72\x7F\x01\x30\xE7\xA0" |
| 10505 | "\xF8\xDD\xA8\x08\xF0\xBC\xB1\xA2" |
| 10506 | "\xCC\xE1\x6B\x5F\xBE\xEA\xF1\xE4" |
| 10507 | "\x02\xC4\xAF\xFA\xAD\x31\xF4\xBF" |
| 10508 | "\xFC\x66\xAA\x37\xF2\x37\x39\x6B" |
| 10509 | "\xBC\x08\x3A\xA2\x29\xB3\xDF\xD1", |
| 10510 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10511 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10512 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10513 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10514 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10515 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10516 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10517 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10518 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10519 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10520 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10521 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10522 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10523 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10524 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10525 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10526 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10527 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10528 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10529 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10530 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10531 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10532 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10533 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10534 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10535 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10536 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10537 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10538 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10539 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10540 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10541 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10542 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10543 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10544 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10545 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10546 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10547 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10548 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10549 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10550 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10551 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10552 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10553 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10554 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10555 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10556 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10557 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10558 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10559 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10560 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10561 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10562 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10563 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10564 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10565 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10566 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10567 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10568 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10569 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10570 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10571 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10572 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10573 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10574 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 10575 | .np = 3, |
| 10576 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10577 | }, |
| 10578 | }; |
| 10579 | |
| 10580 | static struct cipher_testvec serpent_ctr_enc_tv_template[] = { |
| 10581 | { /* Generated with Crypto++ */ |
| 10582 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10583 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10584 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10585 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10586 | .klen = 32, |
| 10587 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 10588 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 10589 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10590 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10591 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10592 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10593 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10594 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10595 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10596 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10597 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10598 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10599 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10600 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10601 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10602 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10603 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10604 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10605 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10606 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10607 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10608 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10609 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10610 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10611 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10612 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10613 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10614 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10615 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10616 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10617 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10618 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10619 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10620 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10621 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10622 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10623 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10624 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10625 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10626 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10627 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10628 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10629 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10630 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10631 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10632 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10633 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10634 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10635 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10636 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10637 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10638 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10639 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10640 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10641 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10642 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10643 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10644 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10645 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10646 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10647 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10648 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10649 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10650 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10651 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10652 | .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 10653 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 10654 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 10655 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 10656 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 10657 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 10658 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 10659 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 10660 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 10661 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 10662 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 10663 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 10664 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 10665 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 10666 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 10667 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 10668 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10669 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
| 10670 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 10671 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 10672 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 10673 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 10674 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 10675 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 10676 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 10677 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 10678 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 10679 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 10680 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 10681 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 10682 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 10683 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 10684 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 10685 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 10686 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 10687 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 10688 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 10689 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 10690 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 10691 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 10692 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 10693 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 10694 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 10695 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 10696 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 10697 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 10698 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 10699 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 10700 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 10701 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 10702 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 10703 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 10704 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 10705 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 10706 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 10707 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 10708 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 10709 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 10710 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 10711 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 10712 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 10713 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13", |
| 10714 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10715 | }, { /* Generated with Crypto++ */ |
| 10716 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10717 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10718 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10719 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10720 | .klen = 32, |
| 10721 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 10722 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 10723 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10724 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10725 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10726 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10727 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10728 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10729 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10730 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10731 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10732 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10733 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10734 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10735 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10736 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10737 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10738 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10739 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 10740 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10741 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10742 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10743 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10744 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10745 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10746 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10747 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10748 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10749 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10750 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10751 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10752 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10753 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10754 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10755 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10756 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10757 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10758 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10759 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10760 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10761 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10762 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10763 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10764 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10765 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10766 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10767 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10768 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10769 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10770 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10771 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10772 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10773 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10774 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10775 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10776 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10777 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10778 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10779 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10780 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10781 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10782 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10783 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10784 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 10785 | "\x2B\xC2\x59", |
| 10786 | .ilen = 499, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10787 | .result = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 10788 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 10789 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 10790 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 10791 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 10792 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 10793 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 10794 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 10795 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 10796 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 10797 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 10798 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 10799 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 10800 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 10801 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 10802 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 10803 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 10804 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10805 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 10806 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 10807 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 10808 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 10809 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 10810 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 10811 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 10812 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 10813 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 10814 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 10815 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 10816 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 10817 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 10818 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 10819 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 10820 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 10821 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 10822 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 10823 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 10824 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 10825 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 10826 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 10827 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 10828 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 10829 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 10830 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 10831 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 10832 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 10833 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 10834 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 10835 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 10836 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 10837 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 10838 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 10839 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 10840 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 10841 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 10842 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 10843 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 10844 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 10845 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 10846 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 10847 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 10848 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13" |
| 10849 | "\x38\xE2\xE5", |
| 10850 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 10851 | .also_non_np = 1, |
| 10852 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 10853 | .tap = { 499 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 10854 | }, { /* Generated with Crypto++ */ |
| 10855 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10856 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10857 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10858 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10859 | .klen = 32, |
| 10860 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 10861 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 10862 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 10863 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 10864 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 10865 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 10866 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 10867 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 10868 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 10869 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 10870 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 10871 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 10872 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 10873 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 10874 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 10875 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 10876 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 10877 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 10878 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 10879 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 10880 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 10881 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 10882 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 10883 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 10884 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 10885 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 10886 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 10887 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 10888 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 10889 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 10890 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 10891 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 10892 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 10893 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 10894 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 10895 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 10896 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 10897 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 10898 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 10899 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 10900 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 10901 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 10902 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 10903 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 10904 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 10905 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 10906 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 10907 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 10908 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 10909 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 10910 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 10911 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 10912 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 10913 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 10914 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 10915 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 10916 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 10917 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 10918 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 10919 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 10920 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 10921 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 10922 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 10923 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 10924 | .ilen = 496, |
| 10925 | .result = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC" |
| 10926 | "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D" |
| 10927 | "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC" |
| 10928 | "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A" |
| 10929 | "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E" |
| 10930 | "\x71\x28\x06\x4F\xE8\x08\x39\xDA" |
| 10931 | "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69" |
| 10932 | "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B" |
| 10933 | "\x9F\x3E\x39\x79\xF0\xCD\x64\x35" |
| 10934 | "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B" |
| 10935 | "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18" |
| 10936 | "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2" |
| 10937 | "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47" |
| 10938 | "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2" |
| 10939 | "\x7D\xE2\x43\x81\x86\x72\x2E\xB1" |
| 10940 | "\x39\xF6\x95\xE1\x1F\xCB\x76\x33" |
| 10941 | "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F" |
| 10942 | "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C" |
| 10943 | "\x70\xFE\x52\xAA\x93\x3C\xC4\x46" |
| 10944 | "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE" |
| 10945 | "\x25\x92\xB2\x63\xBD\x49\x77\xB4" |
| 10946 | "\x22\xA4\x6A\xD5\x04\xE0\x45\x58" |
| 10947 | "\x1C\x34\x96\x7C\x03\x0C\x13\xA2" |
| 10948 | "\x05\x22\xE2\xCB\x5A\x35\x03\x09" |
| 10949 | "\x40\xD2\x82\x05\xCA\x58\x73\xF2" |
| 10950 | "\x29\x5E\x01\x47\x13\x32\x78\xBE" |
| 10951 | "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C" |
| 10952 | "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1" |
| 10953 | "\x38\x35\x11\x26\x4A\xB4\x06\x32" |
| 10954 | "\xFA\xD2\x07\x77\xB3\x74\x98\x80" |
| 10955 | "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF" |
| 10956 | "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F" |
| 10957 | "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65" |
| 10958 | "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA" |
| 10959 | "\xD6\x9B\xC9\x6D\x58\x40\x81\x02" |
| 10960 | "\x73\x44\x4E\x43\x6E\x37\xBB\x11" |
| 10961 | "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA" |
| 10962 | "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8" |
| 10963 | "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B" |
| 10964 | "\x07\xB5\x82\x3A\xC4\xE8\x42\x51" |
| 10965 | "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F" |
| 10966 | "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7" |
| 10967 | "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F" |
| 10968 | "\xBF\xF9\xAC\x59\x50\xA8\x08\x70" |
| 10969 | "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2" |
| 10970 | "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD" |
| 10971 | "\xC1\x03\x9A\xAA\x89\x8B\x32\x46" |
| 10972 | "\x5B\x18\x27\xBA\x46\xAA\x64\xDE" |
| 10973 | "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB" |
| 10974 | "\x7E\xDA\xEC\x30\x17\x19\xF8\x80" |
| 10975 | "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28" |
| 10976 | "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE" |
| 10977 | "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8" |
| 10978 | "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B" |
| 10979 | "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E" |
| 10980 | "\xDC\x34\x27\x89\x98\xCE\x1C\xA2" |
| 10981 | "\xD8\xB8\x90\xBE\xEC\x72\x28\x13" |
| 10982 | "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50" |
| 10983 | "\xB7\x99\x65\x8A\xC9\xC6\x21\x34" |
| 10984 | "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17" |
| 10985 | "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0" |
| 10986 | "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20", |
| 10987 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 10988 | }, |
| 10989 | }; |
| 10990 | |
| 10991 | static struct cipher_testvec serpent_ctr_dec_tv_template[] = { |
| 10992 | { /* Generated with Crypto++ */ |
| 10993 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 10994 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 10995 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 10996 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 10997 | .klen = 32, |
| 10998 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 10999 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 11000 | .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 11001 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 11002 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 11003 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 11004 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 11005 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 11006 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 11007 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 11008 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 11009 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 11010 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 11011 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 11012 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 11013 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 11014 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 11015 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 11016 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11017 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
| 11018 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 11019 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 11020 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 11021 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 11022 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 11023 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 11024 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 11025 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 11026 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 11027 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 11028 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 11029 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 11030 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 11031 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 11032 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 11033 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 11034 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 11035 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 11036 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 11037 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 11038 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 11039 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 11040 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 11041 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 11042 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 11043 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 11044 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 11045 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 11046 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 11047 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 11048 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 11049 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 11050 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 11051 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 11052 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 11053 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 11054 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 11055 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 11056 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 11057 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 11058 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 11059 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 11060 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 11061 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13", |
| 11062 | .ilen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11063 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 11064 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 11065 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 11066 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 11067 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 11068 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 11069 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 11070 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 11071 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 11072 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 11073 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 11074 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 11075 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 11076 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 11077 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 11078 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 11079 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11080 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 11081 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 11082 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 11083 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 11084 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 11085 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 11086 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 11087 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 11088 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 11089 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 11090 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 11091 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 11092 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 11093 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 11094 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 11095 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 11096 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 11097 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 11098 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 11099 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 11100 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 11101 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 11102 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 11103 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 11104 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 11105 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 11106 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 11107 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 11108 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 11109 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 11110 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 11111 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 11112 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 11113 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 11114 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 11115 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 11116 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 11117 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 11118 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 11119 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 11120 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 11121 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 11122 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 11123 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 11124 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 11125 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11126 | }, { /* Generated with Crypto++ */ |
| 11127 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 11128 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 11129 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 11130 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 11131 | .klen = 32, |
| 11132 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 11133 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 11134 | .input = "\x84\x68\xEC\xF2\x1C\x88\x20\xCA" |
| 11135 | "\x37\x69\xE3\x3A\x22\x85\x48\x46" |
| 11136 | "\x70\xAA\x25\xB4\xCD\x8B\x04\x4E" |
| 11137 | "\x8D\x15\x2B\x98\xDF\x7B\x6D\xB9" |
| 11138 | "\xE0\x4A\x73\x00\x65\xB6\x1A\x0D" |
| 11139 | "\x5C\x60\xDF\x34\xDC\x60\x4C\xDF" |
| 11140 | "\xB5\x1F\x26\x8C\xDA\xC1\x11\xA8" |
| 11141 | "\x80\xFA\x37\x7A\x89\xAA\xAE\x7B" |
| 11142 | "\x92\x6E\xB9\xDC\xC9\x62\x4F\x88" |
| 11143 | "\x0A\x5D\x97\x2F\x6B\xAC\x03\x7C" |
| 11144 | "\x22\xF6\x55\x5A\xFA\x35\xA5\x17" |
| 11145 | "\xA1\x5C\x5E\x2B\x63\x2D\xB9\x91" |
| 11146 | "\x3E\x83\x26\x00\x4E\xD5\xBE\xCE" |
| 11147 | "\x79\xC4\x3D\xFC\x70\xA0\xAD\x96" |
| 11148 | "\xBA\x58\x2A\x1C\xDF\xC2\x3A\xA5" |
| 11149 | "\x7C\xB5\x12\x89\xED\xBF\xB6\x09" |
| 11150 | "\x13\x4F\x7D\x61\x3C\x5C\x27\xFC" |
| 11151 | "\x5D\xE1\x4F\xA1\xEA\xB3\xCA\xB9" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11152 | "\xE6\xD0\x97\x81\xDE\xD1\xFB\x8A" |
| 11153 | "\x30\xDB\xA3\x5D\xEC\x25\x0B\x86" |
| 11154 | "\x71\xC8\xA7\x67\xE8\xBC\x7D\x4C" |
| 11155 | "\xAE\x82\xD3\x73\x31\x09\xCB\xB3" |
| 11156 | "\x4D\xD4\xC0\x8A\x2B\xFA\xA6\x55" |
| 11157 | "\x39\x0A\xBC\x6E\x75\xAB\xC2\xE2" |
| 11158 | "\x8A\xF2\x26\xCD\x63\x38\x35\xF7" |
| 11159 | "\xAE\x12\x83\xCD\x8A\x9E\x7E\x4C" |
| 11160 | "\xFE\x4D\xD7\xCE\x5C\x6E\x4C\xAF" |
| 11161 | "\xE3\xCD\x76\xA7\x87\xA1\x54\x7C" |
| 11162 | "\xEC\x32\xC7\x83\x2A\xFF\xF8\xEA" |
| 11163 | "\x87\xB2\x47\xA3\x9D\xC2\x9C\xA2" |
| 11164 | "\xB7\x2C\x7C\x1A\x24\xCB\x88\x61" |
| 11165 | "\xFF\xA7\x1A\x16\x01\xDD\x4B\xFC" |
| 11166 | "\x2E\xE0\x48\x67\x09\x42\xCC\x91" |
| 11167 | "\xBE\x20\x38\xC0\x5E\x3B\x95\x00" |
| 11168 | "\xA1\x96\x66\x0B\x8A\xE9\x9E\xF7" |
| 11169 | "\x6B\x34\x0A\x51\xC0\x3B\xEB\x71" |
| 11170 | "\x07\x97\x38\x4B\x5C\x56\x98\x67" |
| 11171 | "\x78\x9C\xD0\x0E\x2B\xB5\x67\x90" |
| 11172 | "\x75\xF8\xFE\x6D\x4E\x85\xCC\x0D" |
| 11173 | "\x18\x06\x15\x9D\x5A\x10\x13\x37" |
| 11174 | "\xA3\xD6\x68\xA2\xDF\x7E\xC7\x12" |
| 11175 | "\xC9\x0D\x4D\x91\xB0\x2A\x55\xFF" |
| 11176 | "\x6F\x73\x13\xDF\x28\xB5\x2A\x2C" |
| 11177 | "\xE4\xFC\x20\xD9\xF1\x7A\x82\xB1" |
| 11178 | "\xCB\x57\xB6\x3D\x8C\xF4\x8E\x27" |
| 11179 | "\x37\xDC\x35\xF3\x79\x01\x53\xA4" |
| 11180 | "\x7B\x37\xDE\x7C\x04\xAE\x50\xDB" |
| 11181 | "\x9B\x1E\x8C\x07\xA7\x52\x49\x50" |
| 11182 | "\x34\x25\x65\xDD\xA9\x8F\x7E\xBD" |
| 11183 | "\x7A\xC9\x36\xAE\xDE\x21\x48\x64" |
| 11184 | "\xC2\x02\xBA\xBE\x11\x1E\x3D\x9C" |
| 11185 | "\x98\x52\xCC\x04\xBD\x5E\x61\x26" |
| 11186 | "\x10\xD3\x21\xD9\x6E\x25\x98\x77" |
| 11187 | "\x8E\x98\x63\xF6\xF6\x52\xFB\x13" |
| 11188 | "\xAA\x30\xF2\xB9\xA4\x43\x53\x39" |
| 11189 | "\x1C\x97\x07\x7E\x6B\xFF\x3D\x43" |
| 11190 | "\xA6\x71\x6B\x66\x8F\x58\x3F\x71" |
| 11191 | "\x90\x47\x40\x92\xE6\x69\xD1\x96" |
| 11192 | "\x34\xB3\x3B\xE5\x43\xE4\xD5\x56" |
| 11193 | "\xB2\xE6\x7E\x86\x7A\x12\x17\x5B" |
| 11194 | "\x30\xF3\x9B\x0D\xFA\x57\xE4\x50" |
| 11195 | "\x40\x53\x77\x8C\x15\xF8\x8D\x13" |
| 11196 | "\x38\xE2\xE5", |
| 11197 | .ilen = 499, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11198 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 11199 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 11200 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 11201 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 11202 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 11203 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 11204 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 11205 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 11206 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 11207 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 11208 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 11209 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 11210 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 11211 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 11212 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 11213 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 11214 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 11215 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11216 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 11217 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 11218 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 11219 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 11220 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 11221 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 11222 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 11223 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 11224 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 11225 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 11226 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 11227 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 11228 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 11229 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 11230 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 11231 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 11232 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 11233 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 11234 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 11235 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 11236 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 11237 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 11238 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 11239 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 11240 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 11241 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 11242 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 11243 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 11244 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 11245 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 11246 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 11247 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 11248 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 11249 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 11250 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 11251 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 11252 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 11253 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 11254 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 11255 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 11256 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 11257 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 11258 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 11259 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 11260 | "\x2B\xC2\x59", |
| 11261 | .rlen = 499, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11262 | .also_non_np = 1, |
| 11263 | .np = 2, |
Jussi Kivilinna | 9f28e97 | 2012-10-20 14:52:57 +0300 | [diff] [blame] | 11264 | .tap = { 499 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 11265 | }, { /* Generated with Crypto++ */ |
| 11266 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 11267 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 11268 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 11269 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 11270 | .klen = 32, |
| 11271 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 11272 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 11273 | .input = "\x06\x9A\xF8\xB4\x53\x88\x62\xFC" |
| 11274 | "\x68\xB8\x2E\xDF\xC1\x05\x0F\x3D" |
| 11275 | "\xAF\x4D\x95\xAE\xC4\xE9\x1C\xDC" |
| 11276 | "\xF6\x2B\x8F\x90\x89\xF6\x7E\x1A" |
| 11277 | "\xA6\xB9\xE4\xF4\xFA\xCA\xE5\x7E" |
| 11278 | "\x71\x28\x06\x4F\xE8\x08\x39\xDA" |
| 11279 | "\xA5\x0E\xC8\xC0\xB8\x16\xE5\x69" |
| 11280 | "\xE5\xCA\xEC\x4F\x63\x2C\xC0\x9B" |
| 11281 | "\x9F\x3E\x39\x79\xF0\xCD\x64\x35" |
| 11282 | "\x4A\xD3\xC8\xA9\x31\xCD\x48\x5B" |
| 11283 | "\x92\x3D\x8F\x3F\x96\xBD\xB3\x18" |
| 11284 | "\x74\x2A\x5D\x29\x3F\x57\x8F\xE2" |
| 11285 | "\x67\x9A\xE0\xE5\xD4\x4A\xE2\x47" |
| 11286 | "\xBC\xF6\xEB\x14\xF3\x8C\x20\xC2" |
| 11287 | "\x7D\xE2\x43\x81\x86\x72\x2E\xB1" |
| 11288 | "\x39\xF6\x95\xE1\x1F\xCB\x76\x33" |
| 11289 | "\x5B\x7D\x23\x0F\x3A\x67\x2A\x2F" |
| 11290 | "\xB9\x37\x9D\xDD\x1F\x16\xA1\x3C" |
| 11291 | "\x70\xFE\x52\xAA\x93\x3C\xC4\x46" |
| 11292 | "\xB1\xE5\xFF\xDA\xAF\xE2\x84\xFE" |
| 11293 | "\x25\x92\xB2\x63\xBD\x49\x77\xB4" |
| 11294 | "\x22\xA4\x6A\xD5\x04\xE0\x45\x58" |
| 11295 | "\x1C\x34\x96\x7C\x03\x0C\x13\xA2" |
| 11296 | "\x05\x22\xE2\xCB\x5A\x35\x03\x09" |
| 11297 | "\x40\xD2\x82\x05\xCA\x58\x73\xF2" |
| 11298 | "\x29\x5E\x01\x47\x13\x32\x78\xBE" |
| 11299 | "\x06\xB0\x51\xDB\x6C\x31\xA0\x1C" |
| 11300 | "\x74\xBC\x8D\x25\xDF\xF8\x65\xD1" |
| 11301 | "\x38\x35\x11\x26\x4A\xB4\x06\x32" |
| 11302 | "\xFA\xD2\x07\x77\xB3\x74\x98\x80" |
| 11303 | "\x61\x59\xA8\x9F\xF3\x6F\x2A\xBF" |
| 11304 | "\xE6\xA5\x9A\xC4\x6B\xA6\x49\x6F" |
| 11305 | "\xBC\x47\xD9\xFB\xC6\xEF\x25\x65" |
| 11306 | "\x96\xAC\x9F\xE4\x81\x4B\xD8\xBA" |
| 11307 | "\xD6\x9B\xC9\x6D\x58\x40\x81\x02" |
| 11308 | "\x73\x44\x4E\x43\x6E\x37\xBB\x11" |
| 11309 | "\xE3\xF9\xB8\x2F\xEC\x76\x34\xEA" |
| 11310 | "\x90\xCD\xB7\x2E\x0E\x32\x71\xE8" |
| 11311 | "\xBB\x4E\x0B\x98\xA4\x17\x17\x5B" |
| 11312 | "\x07\xB5\x82\x3A\xC4\xE8\x42\x51" |
| 11313 | "\x5A\x4C\x4E\x7D\xBF\xC4\xC0\x4F" |
| 11314 | "\x68\xB8\xC6\x4A\x32\x6F\x0B\xD7" |
| 11315 | "\x85\xED\x6B\xFB\x72\xD2\xA5\x8F" |
| 11316 | "\xBF\xF9\xAC\x59\x50\xA8\x08\x70" |
| 11317 | "\xEC\xBD\x0A\xBF\xE5\x87\xA1\xC2" |
| 11318 | "\x92\x14\x78\xAF\xE8\xEA\x2E\xDD" |
| 11319 | "\xC1\x03\x9A\xAA\x89\x8B\x32\x46" |
| 11320 | "\x5B\x18\x27\xBA\x46\xAA\x64\xDE" |
| 11321 | "\xE3\xD5\xA3\xFC\x7B\x5B\x61\xDB" |
| 11322 | "\x7E\xDA\xEC\x30\x17\x19\xF8\x80" |
| 11323 | "\xB5\x5E\x27\xB5\x37\x3A\x1F\x28" |
| 11324 | "\x07\x73\xC3\x63\xCE\xFF\x8C\xFE" |
| 11325 | "\x81\x4E\xF8\x24\xF3\xB8\xC7\xE8" |
| 11326 | "\x16\x9A\xCC\x58\x2F\x88\x1C\x4B" |
| 11327 | "\xBB\x33\xA2\x73\xF0\x1C\x89\x0E" |
| 11328 | "\xDC\x34\x27\x89\x98\xCE\x1C\xA2" |
| 11329 | "\xD8\xB8\x90\xBE\xEC\x72\x28\x13" |
| 11330 | "\xAC\x7B\xF1\xD0\x7F\x7A\x28\x50" |
| 11331 | "\xB7\x99\x65\x8A\xC9\xC6\x21\x34" |
| 11332 | "\x7F\x67\x9D\xB7\x2C\xCC\xF5\x17" |
| 11333 | "\x2B\x89\xAC\xB0\xD7\x1E\x47\xB0" |
| 11334 | "\x61\xAF\xD4\x63\x6D\xB8\x2D\x20", |
| 11335 | .ilen = 496, |
| 11336 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 11337 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 11338 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 11339 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 11340 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 11341 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 11342 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 11343 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 11344 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 11345 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 11346 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 11347 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 11348 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 11349 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 11350 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 11351 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 11352 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 11353 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 11354 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 11355 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 11356 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 11357 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 11358 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 11359 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 11360 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 11361 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 11362 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 11363 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 11364 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 11365 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 11366 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 11367 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 11368 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 11369 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 11370 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 11371 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 11372 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 11373 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 11374 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 11375 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 11376 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 11377 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 11378 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 11379 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 11380 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 11381 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 11382 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 11383 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 11384 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 11385 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 11386 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 11387 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 11388 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 11389 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 11390 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 11391 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 11392 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 11393 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 11394 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 11395 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 11396 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 11397 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 11398 | .rlen = 496, |
Jussi Kivilinna | 9d25917 | 2011-10-18 00:02:53 +0300 | [diff] [blame] | 11399 | }, |
| 11400 | }; |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 11401 | |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 11402 | static struct cipher_testvec serpent_lrw_enc_tv_template[] = { |
| 11403 | /* Generated from AES-LRW test vectors */ |
| 11404 | { |
| 11405 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 11406 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 11407 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 11408 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 11409 | .klen = 32, |
| 11410 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11411 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11412 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11413 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11414 | .ilen = 16, |
| 11415 | .result = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79" |
| 11416 | "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a", |
| 11417 | .rlen = 16, |
| 11418 | }, { |
| 11419 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 11420 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 11421 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 11422 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 11423 | .klen = 32, |
| 11424 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11425 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 11426 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11427 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11428 | .ilen = 16, |
| 11429 | .result = "\xfd\xb2\x66\x98\x80\x96\x55\xad" |
| 11430 | "\x08\x94\x54\x9c\x21\x7c\x69\xe3", |
| 11431 | .rlen = 16, |
| 11432 | }, { |
| 11433 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 11434 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 11435 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 11436 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 11437 | .klen = 32, |
| 11438 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11439 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 11440 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11441 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11442 | .ilen = 16, |
| 11443 | .result = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34" |
| 11444 | "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c", |
| 11445 | .rlen = 16, |
| 11446 | }, { |
| 11447 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 11448 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 11449 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 11450 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 11451 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 11452 | .klen = 40, |
| 11453 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11454 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11455 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11456 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11457 | .ilen = 16, |
| 11458 | .result = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc" |
| 11459 | "\x5d\x45\x95\x30\x8f\xff\x2f\x1b", |
| 11460 | .rlen = 16, |
| 11461 | }, { |
| 11462 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 11463 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 11464 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 11465 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 11466 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 11467 | .klen = 40, |
| 11468 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11469 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 11470 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11471 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11472 | .ilen = 16, |
| 11473 | .result = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f" |
| 11474 | "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26", |
| 11475 | .rlen = 16, |
| 11476 | }, { |
| 11477 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 11478 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 11479 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 11480 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 11481 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 11482 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 11483 | .klen = 48, |
| 11484 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11485 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11486 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11487 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11488 | .ilen = 16, |
| 11489 | .result = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c" |
| 11490 | "\x2e\x18\xe6\x99\xcd\xd3\x15\x68", |
| 11491 | .rlen = 16, |
| 11492 | }, { |
| 11493 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 11494 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 11495 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 11496 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 11497 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 11498 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 11499 | .klen = 48, |
| 11500 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11501 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 11502 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11503 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11504 | .ilen = 16, |
| 11505 | .result = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6" |
| 11506 | "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf", |
| 11507 | .rlen = 16, |
| 11508 | }, { |
| 11509 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 11510 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 11511 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 11512 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 11513 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 11514 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 11515 | .klen = 48, |
| 11516 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11517 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11518 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 11519 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 11520 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 11521 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 11522 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 11523 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 11524 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 11525 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 11526 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 11527 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 11528 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 11529 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 11530 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 11531 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 11532 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 11533 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 11534 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 11535 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 11536 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 11537 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 11538 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 11539 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 11540 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 11541 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 11542 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 11543 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 11544 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 11545 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 11546 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 11547 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 11548 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 11549 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 11550 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 11551 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 11552 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 11553 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 11554 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 11555 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 11556 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 11557 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 11558 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 11559 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 11560 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 11561 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 11562 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 11563 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 11564 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 11565 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 11566 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 11567 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 11568 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 11569 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 11570 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 11571 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 11572 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 11573 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 11574 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 11575 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 11576 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 11577 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 11578 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 11579 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 11580 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 11581 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 11582 | .ilen = 512, |
| 11583 | .result = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74" |
| 11584 | "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d" |
| 11585 | "\x82\xec\xf1\x5f\x03\x6d\x02\x58" |
| 11586 | "\x90\x67\xfc\xdd\x8d\xe1\x38\x08" |
| 11587 | "\x7b\xc9\x9b\x4b\x04\x09\x50\x15" |
| 11588 | "\xce\xab\xda\x33\x30\x20\x12\xfa" |
| 11589 | "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9" |
| 11590 | "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c" |
| 11591 | "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22" |
| 11592 | "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b" |
| 11593 | "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5" |
| 11594 | "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5" |
| 11595 | "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b" |
| 11596 | "\x89\x58\x7c\x9a\xae\x26\xe8\xb7" |
| 11597 | "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d" |
| 11598 | "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47" |
| 11599 | "\x5f\x03\x8b\xdd\x94\xd1\xee\x12" |
| 11600 | "\xa7\x83\x80\xf2\xc1\x15\x74\x4f" |
| 11601 | "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f" |
| 11602 | "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52" |
| 11603 | "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98" |
| 11604 | "\x04\xd6\xdd\x4c\x00\x64\xd9\x54" |
| 11605 | "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8" |
| 11606 | "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b" |
| 11607 | "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9" |
| 11608 | "\x04\xc3\x6f\x17\x66\xa9\x1f\x59" |
| 11609 | "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b" |
| 11610 | "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43" |
| 11611 | "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb" |
| 11612 | "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49" |
| 11613 | "\xb3\xac\x5d\xcf\x31\xa0\x27\x26" |
| 11614 | "\x21\xbe\x94\x2e\x19\xea\xf4\xee" |
| 11615 | "\xb5\x13\x89\xf7\x94\x0b\xef\x59" |
| 11616 | "\x44\xc5\x78\x8b\x3c\x3b\x71\x20" |
| 11617 | "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2" |
| 11618 | "\xb4\x11\x0e\x2c\x61\xa1\x52\x46" |
| 11619 | "\x18\x11\x16\xc6\x86\x44\xa7\xaf" |
| 11620 | "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b" |
| 11621 | "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea" |
| 11622 | "\x3f\x0e\x90\xd6\x8f\x83\x30\x64" |
| 11623 | "\xb5\x51\x2d\x08\x3c\xcd\x99\x36" |
| 11624 | "\x96\xd4\xb1\xb5\x48\x30\xca\x48" |
| 11625 | "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d" |
| 11626 | "\x12\x33\x2f\xc0\xe8\xda\xec\x8a" |
| 11627 | "\xe1\x88\x72\x63\xde\x20\xa3\xe1" |
| 11628 | "\x8e\xac\x84\x37\x35\xf5\xf7\x3f" |
| 11629 | "\x00\x02\x0e\xe4\xc1\x53\x68\x3f" |
| 11630 | "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d" |
| 11631 | "\x7c\x83\xd0\xbd\xaa\x97\x35\x36" |
| 11632 | "\x98\x88\x59\x5d\xe7\x24\xe3\x90" |
| 11633 | "\x9d\x30\x47\xa7\xc3\x60\x35\xf4" |
| 11634 | "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b" |
| 11635 | "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d" |
| 11636 | "\x49\x5a\x3c\x8a\xa3\x01\xae\x25" |
| 11637 | "\x42\xab\xd2\x87\x1b\x35\xd6\xd2" |
| 11638 | "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39" |
| 11639 | "\x1c\x58\xa2\xb4\xd0\x78\x55\x72" |
| 11640 | "\x76\x59\xea\xd9\xd7\x6e\x63\x8b" |
| 11641 | "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68" |
| 11642 | "\x86\x28\xd1\xbb\x54\x8d\x66\xad" |
| 11643 | "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd" |
| 11644 | "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a" |
| 11645 | "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd" |
| 11646 | "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7", |
| 11647 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11648 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 11649 | .np = 3, |
| 11650 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 11651 | }, |
| 11652 | }; |
| 11653 | |
| 11654 | static struct cipher_testvec serpent_lrw_dec_tv_template[] = { |
| 11655 | /* Generated from AES-LRW test vectors */ |
| 11656 | /* same as enc vectors with input and result reversed */ |
| 11657 | { |
| 11658 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 11659 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 11660 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 11661 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 11662 | .klen = 32, |
| 11663 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11664 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11665 | .input = "\x6f\xbf\xd4\xa4\x5d\x71\x16\x79" |
| 11666 | "\x63\x9c\xa6\x8e\x40\xbe\x0d\x8a", |
| 11667 | .ilen = 16, |
| 11668 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11669 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11670 | .rlen = 16, |
| 11671 | }, { |
| 11672 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 11673 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 11674 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 11675 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 11676 | .klen = 32, |
| 11677 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11678 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 11679 | .input = "\xfd\xb2\x66\x98\x80\x96\x55\xad" |
| 11680 | "\x08\x94\x54\x9c\x21\x7c\x69\xe3", |
| 11681 | .ilen = 16, |
| 11682 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11683 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11684 | .rlen = 16, |
| 11685 | }, { |
| 11686 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 11687 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 11688 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 11689 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 11690 | .klen = 32, |
| 11691 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11692 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 11693 | .input = "\x14\x5e\x3d\x70\xc0\x6e\x9c\x34" |
| 11694 | "\x5b\x5e\xcf\x0f\xe4\x8c\x21\x5c", |
| 11695 | .ilen = 16, |
| 11696 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11697 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11698 | .rlen = 16, |
| 11699 | }, { |
| 11700 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 11701 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 11702 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 11703 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 11704 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 11705 | .klen = 40, |
| 11706 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11707 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11708 | .input = "\x25\x39\xaa\xa5\xf0\x65\xc8\xdc" |
| 11709 | "\x5d\x45\x95\x30\x8f\xff\x2f\x1b", |
| 11710 | .ilen = 16, |
| 11711 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11712 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11713 | .rlen = 16, |
| 11714 | }, { |
| 11715 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 11716 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 11717 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 11718 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 11719 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 11720 | .klen = 40, |
| 11721 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11722 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 11723 | .input = "\x0c\x20\x20\x63\xd6\x8b\xfc\x8f" |
| 11724 | "\xc0\xe2\x17\xbb\xd2\x59\x6f\x26", |
| 11725 | .ilen = 16, |
| 11726 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11727 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11728 | .rlen = 16, |
| 11729 | }, { |
| 11730 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 11731 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 11732 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 11733 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 11734 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 11735 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 11736 | .klen = 48, |
| 11737 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11738 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11739 | .input = "\xc1\x35\x2e\x53\xf0\x96\x4d\x9c" |
| 11740 | "\x2e\x18\xe6\x99\xcd\xd3\x15\x68", |
| 11741 | .ilen = 16, |
| 11742 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11743 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11744 | .rlen = 16, |
| 11745 | }, { |
| 11746 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 11747 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 11748 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 11749 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 11750 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 11751 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 11752 | .klen = 48, |
| 11753 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11754 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 11755 | .input = "\x86\x0a\xc6\xa9\x1a\x9f\xe7\xe6" |
| 11756 | "\x64\x3b\x33\xd6\xd5\x84\xd6\xdf", |
| 11757 | .ilen = 16, |
| 11758 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11759 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 11760 | .rlen = 16, |
| 11761 | }, { |
| 11762 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 11763 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 11764 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 11765 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 11766 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 11767 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 11768 | .klen = 48, |
| 11769 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11770 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 11771 | .input = "\xe3\x5a\x38\x0f\x4d\x92\x3a\x74" |
| 11772 | "\x15\xb1\x50\x8c\x9a\xd8\x99\x1d" |
| 11773 | "\x82\xec\xf1\x5f\x03\x6d\x02\x58" |
| 11774 | "\x90\x67\xfc\xdd\x8d\xe1\x38\x08" |
| 11775 | "\x7b\xc9\x9b\x4b\x04\x09\x50\x15" |
| 11776 | "\xce\xab\xda\x33\x30\x20\x12\xfa" |
| 11777 | "\x83\xc4\xa6\x9a\x2e\x7d\x90\xd9" |
| 11778 | "\xa6\xa6\x67\x43\xb4\xa7\xa8\x5c" |
| 11779 | "\xbb\x6a\x49\x2b\x8b\xf8\xd0\x22" |
| 11780 | "\xe5\x9e\xba\xe8\x8c\x67\xb8\x5b" |
| 11781 | "\x60\xbc\xf5\xa4\x95\x4e\x66\xe5" |
| 11782 | "\x6d\x8e\xa9\xf6\x65\x2e\x04\xf5" |
| 11783 | "\xba\xb5\xdb\x88\xc2\xf6\x7a\x4b" |
| 11784 | "\x89\x58\x7c\x9a\xae\x26\xe8\xb7" |
| 11785 | "\xb7\x28\xcc\xd6\xcc\xa5\x98\x4d" |
| 11786 | "\xb9\x91\xcb\xb4\xe4\x8b\x96\x47" |
| 11787 | "\x5f\x03\x8b\xdd\x94\xd1\xee\x12" |
| 11788 | "\xa7\x83\x80\xf2\xc1\x15\x74\x4f" |
| 11789 | "\x49\xf9\xb0\x7e\x6f\xdc\x73\x2f" |
| 11790 | "\xe2\xcf\xe0\x1b\x34\xa5\xa0\x52" |
| 11791 | "\xfb\x3c\x5d\x85\x91\xe6\x6d\x98" |
| 11792 | "\x04\xd6\xdd\x4c\x00\x64\xd9\x54" |
| 11793 | "\x5c\x3c\x08\x1d\x4c\x06\x9f\xb8" |
| 11794 | "\x1c\x4d\x8d\xdc\xa4\x3c\xb9\x3b" |
| 11795 | "\x9e\x85\xce\xc3\xa8\x4a\x0c\xd9" |
| 11796 | "\x04\xc3\x6f\x17\x66\xa9\x1f\x59" |
| 11797 | "\xd9\xe2\x19\x36\xa3\x88\xb8\x0b" |
| 11798 | "\x0f\x4a\x4d\xf8\xc8\x6f\xd5\x43" |
| 11799 | "\xeb\xa0\xab\x1f\x61\xc0\x06\xeb" |
| 11800 | "\x93\xb7\xb8\x6f\x0d\xbd\x07\x49" |
| 11801 | "\xb3\xac\x5d\xcf\x31\xa0\x27\x26" |
| 11802 | "\x21\xbe\x94\x2e\x19\xea\xf4\xee" |
| 11803 | "\xb5\x13\x89\xf7\x94\x0b\xef\x59" |
| 11804 | "\x44\xc5\x78\x8b\x3c\x3b\x71\x20" |
| 11805 | "\xf9\x35\x0c\x70\x74\xdc\x5b\xc2" |
| 11806 | "\xb4\x11\x0e\x2c\x61\xa1\x52\x46" |
| 11807 | "\x18\x11\x16\xc6\x86\x44\xa7\xaf" |
| 11808 | "\xd5\x0c\x7d\xa6\x9e\x25\x2d\x1b" |
| 11809 | "\x9a\x8f\x0f\xf8\x6a\x61\xa0\xea" |
| 11810 | "\x3f\x0e\x90\xd6\x8f\x83\x30\x64" |
| 11811 | "\xb5\x51\x2d\x08\x3c\xcd\x99\x36" |
| 11812 | "\x96\xd4\xb1\xb5\x48\x30\xca\x48" |
| 11813 | "\xf7\x11\xa8\xf5\x97\x8a\x6a\x6d" |
| 11814 | "\x12\x33\x2f\xc0\xe8\xda\xec\x8a" |
| 11815 | "\xe1\x88\x72\x63\xde\x20\xa3\xe1" |
| 11816 | "\x8e\xac\x84\x37\x35\xf5\xf7\x3f" |
| 11817 | "\x00\x02\x0e\xe4\xc1\x53\x68\x3f" |
| 11818 | "\xaa\xd5\xac\x52\x3d\x20\x2f\x4d" |
| 11819 | "\x7c\x83\xd0\xbd\xaa\x97\x35\x36" |
| 11820 | "\x98\x88\x59\x5d\xe7\x24\xe3\x90" |
| 11821 | "\x9d\x30\x47\xa7\xc3\x60\x35\xf4" |
| 11822 | "\xd5\xdb\x0e\x4d\x44\xc1\x81\x8b" |
| 11823 | "\xfd\xbd\xc3\x2b\xba\x68\xfe\x8d" |
| 11824 | "\x49\x5a\x3c\x8a\xa3\x01\xae\x25" |
| 11825 | "\x42\xab\xd2\x87\x1b\x35\xd6\xd2" |
| 11826 | "\xd7\x70\x1c\x1f\x72\xd1\xe1\x39" |
| 11827 | "\x1c\x58\xa2\xb4\xd0\x78\x55\x72" |
| 11828 | "\x76\x59\xea\xd9\xd7\x6e\x63\x8b" |
| 11829 | "\xcc\x9b\xa7\x74\x89\xfc\xa3\x68" |
| 11830 | "\x86\x28\xd1\xbb\x54\x8d\x66\xad" |
| 11831 | "\x2a\x92\xf9\x4e\x04\x3d\xae\xfd" |
| 11832 | "\x1b\x2b\x7f\xc3\x2f\x1a\x78\x0a" |
| 11833 | "\x5c\xc6\x84\xfe\x7c\xcb\x26\xfd" |
| 11834 | "\xd9\x51\x0f\xd7\x94\x2f\xc5\xa7", |
| 11835 | .ilen = 512, |
| 11836 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 11837 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 11838 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 11839 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 11840 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 11841 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 11842 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 11843 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 11844 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 11845 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 11846 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 11847 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 11848 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 11849 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 11850 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 11851 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 11852 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 11853 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 11854 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 11855 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 11856 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 11857 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 11858 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 11859 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 11860 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 11861 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 11862 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 11863 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 11864 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 11865 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 11866 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 11867 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 11868 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 11869 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 11870 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 11871 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 11872 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 11873 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 11874 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 11875 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 11876 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 11877 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 11878 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 11879 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 11880 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 11881 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 11882 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 11883 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 11884 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 11885 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 11886 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 11887 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 11888 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 11889 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 11890 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 11891 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 11892 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 11893 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 11894 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 11895 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 11896 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 11897 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 11898 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 11899 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 11900 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 11901 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 11902 | .np = 3, |
| 11903 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | d7bfc0f | 2011-10-18 13:32:34 +0300 | [diff] [blame] | 11904 | }, |
| 11905 | }; |
| 11906 | |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 11907 | static struct cipher_testvec serpent_xts_enc_tv_template[] = { |
| 11908 | /* Generated from AES-XTS test vectors */ |
| 11909 | { |
| 11910 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11911 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11912 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11913 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11914 | .klen = 32, |
| 11915 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11916 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11917 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11918 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11919 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11920 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11921 | .ilen = 32, |
| 11922 | .result = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64" |
| 11923 | "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4" |
| 11924 | "\x6a\x31\xc5\xf3\x00\xca\xb9\x16" |
| 11925 | "\xde\xe2\x77\x66\xf7\xfe\x62\x08", |
| 11926 | .rlen = 32, |
| 11927 | }, { |
| 11928 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 11929 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 11930 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 11931 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 11932 | .klen = 32, |
| 11933 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 11934 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11935 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11936 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11937 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11938 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 11939 | .ilen = 32, |
| 11940 | .result = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98" |
| 11941 | "\x41\x86\x12\xaf\xb3\xd7\x68\x13" |
| 11942 | "\xed\x81\xcd\x06\x87\x43\x1a\xbb" |
| 11943 | "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe", |
| 11944 | .rlen = 32, |
| 11945 | }, { |
| 11946 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 11947 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 11948 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 11949 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 11950 | .klen = 32, |
| 11951 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 11952 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11953 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11954 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11955 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 11956 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 11957 | .ilen = 32, |
| 11958 | .result = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61" |
| 11959 | "\xb6\x1c\x81\x8f\x2c\x87\x60\x89" |
| 11960 | "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86" |
| 11961 | "\xc1\x68\x45\xaa\x00\xe9\x24\xc5", |
| 11962 | .rlen = 32, |
| 11963 | }, { |
| 11964 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 11965 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 11966 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 11967 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 11968 | .klen = 32, |
| 11969 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 11970 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 11971 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 11972 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 11973 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 11974 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 11975 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 11976 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 11977 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 11978 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 11979 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 11980 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 11981 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 11982 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 11983 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 11984 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 11985 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 11986 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 11987 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 11988 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 11989 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 11990 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 11991 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 11992 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 11993 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 11994 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 11995 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 11996 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 11997 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 11998 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 11999 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 12000 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 12001 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 12002 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 12003 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 12004 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 12005 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 12006 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 12007 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 12008 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 12009 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12010 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 12011 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 12012 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 12013 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 12014 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 12015 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 12016 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 12017 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 12018 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 12019 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 12020 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 12021 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 12022 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 12023 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 12024 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 12025 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 12026 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 12027 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 12028 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 12029 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 12030 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 12031 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 12032 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 12033 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 12034 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 12035 | .ilen = 512, |
| 12036 | .result = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b" |
| 12037 | "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53" |
| 12038 | "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e" |
| 12039 | "\x28\xca\xb0\x22\xb3\x85\x75\xf4" |
| 12040 | "\x00\x5c\x75\x14\x06\xd6\x25\x82" |
| 12041 | "\xe6\xcb\x08\xf7\x29\x90\x23\x8e" |
| 12042 | "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3" |
| 12043 | "\x80\x51\x67\xb5\x0b\x85\x69\xe8" |
| 12044 | "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3" |
| 12045 | "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0" |
| 12046 | "\x63\x5a\x16\x0f\xf0\xce\x66\x1f" |
| 12047 | "\x2c\x21\x07\xf1\xa4\x03\xa3\x44" |
| 12048 | "\x41\x61\x87\x5d\x6b\xb3\xef\xd4" |
| 12049 | "\xfc\xaa\x32\x7e\x55\x58\x04\x41" |
| 12050 | "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a" |
| 12051 | "\x55\x79\x4b\x6f\xcf\x89\xb9\x19" |
| 12052 | "\xe5\x54\x13\x15\xb2\x1a\xfa\x15" |
| 12053 | "\xc2\xf0\x06\x59\xfa\xa0\x25\x05" |
| 12054 | "\x58\xfa\x43\x91\x16\x85\x40\xbb" |
| 12055 | "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08" |
| 12056 | "\xcd\x22\x22\x41\x11\x9f\x6c\x7c" |
| 12057 | "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7" |
| 12058 | "\xa0\x42\xa8\xde\xfc\xa3\xca\x98" |
| 12059 | "\x4b\x43\xb1\xce\x4b\xbf\x01\x67" |
| 12060 | "\x6e\x29\x60\xbd\x10\x14\x84\x82" |
| 12061 | "\x83\x82\x0c\x63\x73\x92\x02\x7c" |
| 12062 | "\x55\x37\x20\x80\x17\x51\xc8\xbc" |
| 12063 | "\x46\x02\xcb\x38\x07\x6d\xe2\x85" |
| 12064 | "\xaa\x29\xaf\x24\x58\x0d\xf0\x75" |
| 12065 | "\x08\x0a\xa5\x34\x25\x16\xf3\x74" |
| 12066 | "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29" |
| 12067 | "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c" |
| 12068 | "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e" |
| 12069 | "\x8c\x2b\x4f\x54\x76\x47\x53\x8e" |
| 12070 | "\xe8\x00\xec\x92\xb9\x55\xe6\xa2" |
| 12071 | "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87" |
| 12072 | "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21" |
| 12073 | "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19" |
| 12074 | "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9" |
| 12075 | "\x94\x4e\x63\xc7\xae\xfc\xed\x47" |
| 12076 | "\xe2\xfe\x7a\x63\x77\xfe\x97\x82" |
| 12077 | "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80" |
| 12078 | "\xec\x69\x41\xec\xa7\x8a\xe0\x2f" |
| 12079 | "\xe3\x49\x26\xa2\x41\xb2\x08\x0f" |
| 12080 | "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e" |
| 12081 | "\x43\x42\x35\xd0\xcf\xec\x77\x67" |
| 12082 | "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e" |
| 12083 | "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50" |
| 12084 | "\xab\x6c\x6b\xff\xea\x00\x67\xaa" |
| 12085 | "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76" |
| 12086 | "\x2b\x77\x3f\xbe\x12\x75\xfb\x92" |
| 12087 | "\xc6\x89\x67\x4d\xca\xf7\xd4\x50" |
| 12088 | "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6" |
| 12089 | "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5" |
| 12090 | "\x86\xad\x51\xcc\xd5\x96\xb8\xdc" |
| 12091 | "\x03\x57\xe6\x98\x52\x2f\x61\x62" |
| 12092 | "\xc4\x5c\x9c\x36\x71\x07\xfb\x94" |
| 12093 | "\xe3\x02\xc4\x2b\x08\x75\xc7\x35" |
| 12094 | "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1" |
| 12095 | "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e" |
| 12096 | "\x76\x87\x19\x04\x1a\x2f\x38\x3e" |
| 12097 | "\xef\x91\x64\x1d\x18\x07\x4e\x31" |
| 12098 | "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c" |
| 12099 | "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd", |
| 12100 | .rlen = 512, |
| 12101 | }, { |
| 12102 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 12103 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 12104 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 12105 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 12106 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 12107 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 12108 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 12109 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 12110 | .klen = 64, |
| 12111 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 12112 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12113 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 12114 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 12115 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 12116 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 12117 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 12118 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 12119 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12120 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 12121 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 12122 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 12123 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 12124 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 12125 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 12126 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 12127 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 12128 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 12129 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 12130 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 12131 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 12132 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 12133 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 12134 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 12135 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 12136 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 12137 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 12138 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 12139 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 12140 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 12141 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 12142 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 12143 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 12144 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 12145 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 12146 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 12147 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 12148 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 12149 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 12150 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 12151 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12152 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 12153 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 12154 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 12155 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 12156 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 12157 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 12158 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 12159 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 12160 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 12161 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 12162 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 12163 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 12164 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 12165 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 12166 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 12167 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 12168 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 12169 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 12170 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 12171 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 12172 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 12173 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 12174 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 12175 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 12176 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 12177 | .ilen = 512, |
| 12178 | .result = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32" |
| 12179 | "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f" |
| 12180 | "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b" |
| 12181 | "\x80\x1b\x82\xcb\x01\x59\x91\x7f" |
| 12182 | "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3" |
| 12183 | "\x34\xfd\xe6\x11\xf9\x33\x45\x12" |
| 12184 | "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23" |
| 12185 | "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7" |
| 12186 | "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0" |
| 12187 | "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78" |
| 12188 | "\xcd\xec\x7d\xdc\x19\x9c\x72\x64" |
| 12189 | "\x63\x0b\x38\x2e\x76\xdd\x2d\x36" |
| 12190 | "\x49\xb0\x1d\xea\x78\x9e\x00\xca" |
| 12191 | "\x20\xcc\x1b\x1e\x98\x74\xab\xed" |
| 12192 | "\x79\xf7\xd0\x6c\xd8\x93\x80\x29" |
| 12193 | "\xac\xa5\x5e\x34\xa9\xab\xa0\x55" |
| 12194 | "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46" |
| 12195 | "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae" |
| 12196 | "\x25\x42\x17\xbf\x76\x8f\x1c\x3d" |
| 12197 | "\xec\x9a\xda\x64\x96\xb5\x61\xff" |
| 12198 | "\x99\xeb\x12\x96\x85\x82\x9d\xd5" |
| 12199 | "\x81\x85\x14\xa8\x59\xac\x8c\x94" |
| 12200 | "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba" |
| 12201 | "\x82\xc6\x4d\xca\x86\xea\x53\x28" |
| 12202 | "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79" |
| 12203 | "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff" |
| 12204 | "\x05\xca\x81\x7b\xda\xa2\xde\x63" |
| 12205 | "\x3a\x10\xbe\xc2\xac\x32\xc4\x05" |
| 12206 | "\x47\x7e\xef\x67\xe2\x5f\x5b\xae" |
| 12207 | "\xed\xf1\x70\x34\x16\x9a\x07\x7b" |
| 12208 | "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a" |
| 12209 | "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd" |
| 12210 | "\x93\x1f\x06\xba\xd4\x9a\x22\x69" |
| 12211 | "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c" |
| 12212 | "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6" |
| 12213 | "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32" |
| 12214 | "\xfd\x43\x7d\xda\x42\x51\x87\x43" |
| 12215 | "\x9d\xf9\xef\xf4\x30\x97\xf8\x09" |
| 12216 | "\x88\xfc\x3f\x93\x70\xc1\x4a\xec" |
| 12217 | "\x27\x5f\x11\xac\x71\xc7\x48\x46" |
| 12218 | "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56" |
| 12219 | "\x0d\x4e\xb0\x32\x76\xce\x86\x81" |
| 12220 | "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24" |
| 12221 | "\xaf\xf7\x9a\xde\xff\x18\xac\x14" |
| 12222 | "\x90\xc5\x01\x39\x34\x0f\x24\xf3" |
| 12223 | "\x13\x2f\x5e\x4f\x30\x9a\x36\x40" |
| 12224 | "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23" |
| 12225 | "\x50\x88\x97\x40\x69\xb1\x37\xf5" |
| 12226 | "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8" |
| 12227 | "\x7b\x10\x20\xb9\x2b\x46\x83\x5b" |
| 12228 | "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2" |
| 12229 | "\x72\xb0\x97\x4e\x89\xb3\x48\x00" |
| 12230 | "\xc1\x16\x73\x50\x77\xba\xa6\x65" |
| 12231 | "\x20\x2d\xb0\x02\x27\x89\xda\x99" |
| 12232 | "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6" |
| 12233 | "\x2a\xda\x09\x12\x11\xaf\xe6\x57" |
| 12234 | "\x01\x04\x8a\xff\x86\x8b\xac\xf8" |
| 12235 | "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76" |
| 12236 | "\xa3\x0e\x33\x74\x40\x18\x39\x72" |
| 12237 | "\x66\x50\x31\xfd\x70\xdf\xe8\x51" |
| 12238 | "\x96\x21\x36\xb2\x9b\xfa\x85\xd1" |
| 12239 | "\x30\x05\xc8\x92\x98\x80\xff\x7a" |
| 12240 | "\xaf\x43\x0b\xc5\x20\x41\x92\x20" |
| 12241 | "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1", |
| 12242 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12243 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 12244 | .np = 3, |
| 12245 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 12246 | }, |
| 12247 | }; |
| 12248 | |
| 12249 | static struct cipher_testvec serpent_xts_dec_tv_template[] = { |
| 12250 | /* Generated from AES-XTS test vectors */ |
| 12251 | /* same as enc vectors with input and result reversed */ |
| 12252 | { |
| 12253 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12254 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12255 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12256 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12257 | .klen = 32, |
| 12258 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12259 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12260 | .input = "\xe1\x08\xb8\x1d\x2c\xf5\x33\x64" |
| 12261 | "\xc8\x12\x04\xc7\xb3\x70\xe8\xc4" |
| 12262 | "\x6a\x31\xc5\xf3\x00\xca\xb9\x16" |
| 12263 | "\xde\xe2\x77\x66\xf7\xfe\x62\x08", |
| 12264 | .ilen = 32, |
| 12265 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12266 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12267 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12268 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12269 | .rlen = 32, |
| 12270 | }, { |
| 12271 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 12272 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 12273 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 12274 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 12275 | .klen = 32, |
| 12276 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 12277 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12278 | .input = "\x1a\x0a\x09\x5f\xcd\x07\x07\x98" |
| 12279 | "\x41\x86\x12\xaf\xb3\xd7\x68\x13" |
| 12280 | "\xed\x81\xcd\x06\x87\x43\x1a\xbb" |
| 12281 | "\x13\x3d\xd6\x1e\x2b\xe1\x77\xbe", |
| 12282 | .ilen = 32, |
| 12283 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12284 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12285 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12286 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 12287 | .rlen = 32, |
| 12288 | }, { |
| 12289 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 12290 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 12291 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 12292 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 12293 | .klen = 32, |
| 12294 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 12295 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12296 | .input = "\xf9\x9b\x28\xb8\x5c\xaf\x8c\x61" |
| 12297 | "\xb6\x1c\x81\x8f\x2c\x87\x60\x89" |
| 12298 | "\x0d\x8d\x7a\xe8\x60\x48\xcc\x86" |
| 12299 | "\xc1\x68\x45\xaa\x00\xe9\x24\xc5", |
| 12300 | .ilen = 32, |
| 12301 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12302 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12303 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 12304 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 12305 | .rlen = 32, |
| 12306 | }, { |
| 12307 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 12308 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 12309 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 12310 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 12311 | .klen = 32, |
| 12312 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 12313 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12314 | .input = "\xfe\x47\x4a\xc8\x60\x7e\xb4\x8b" |
| 12315 | "\x0d\x10\xf4\xb0\x0d\xba\xf8\x53" |
| 12316 | "\x65\x6e\x38\x4b\xdb\xaa\xb1\x9e" |
| 12317 | "\x28\xca\xb0\x22\xb3\x85\x75\xf4" |
| 12318 | "\x00\x5c\x75\x14\x06\xd6\x25\x82" |
| 12319 | "\xe6\xcb\x08\xf7\x29\x90\x23\x8e" |
| 12320 | "\xa4\x68\x57\xe4\xf0\xd8\x32\xf3" |
| 12321 | "\x80\x51\x67\xb5\x0b\x85\x69\xe8" |
| 12322 | "\x19\xfe\xc4\xc7\x3e\xea\x90\xd3" |
| 12323 | "\x8f\xa3\xf2\x0a\xac\x17\x4b\xa0" |
| 12324 | "\x63\x5a\x16\x0f\xf0\xce\x66\x1f" |
| 12325 | "\x2c\x21\x07\xf1\xa4\x03\xa3\x44" |
| 12326 | "\x41\x61\x87\x5d\x6b\xb3\xef\xd4" |
| 12327 | "\xfc\xaa\x32\x7e\x55\x58\x04\x41" |
| 12328 | "\xc9\x07\x33\xc6\xa2\x68\xd6\x5a" |
| 12329 | "\x55\x79\x4b\x6f\xcf\x89\xb9\x19" |
| 12330 | "\xe5\x54\x13\x15\xb2\x1a\xfa\x15" |
| 12331 | "\xc2\xf0\x06\x59\xfa\xa0\x25\x05" |
| 12332 | "\x58\xfa\x43\x91\x16\x85\x40\xbb" |
| 12333 | "\x0d\x34\x4d\xc5\x1e\x20\xd5\x08" |
| 12334 | "\xcd\x22\x22\x41\x11\x9f\x6c\x7c" |
| 12335 | "\x8d\x57\xc9\xba\x57\xe8\x2c\xf7" |
| 12336 | "\xa0\x42\xa8\xde\xfc\xa3\xca\x98" |
| 12337 | "\x4b\x43\xb1\xce\x4b\xbf\x01\x67" |
| 12338 | "\x6e\x29\x60\xbd\x10\x14\x84\x82" |
| 12339 | "\x83\x82\x0c\x63\x73\x92\x02\x7c" |
| 12340 | "\x55\x37\x20\x80\x17\x51\xc8\xbc" |
| 12341 | "\x46\x02\xcb\x38\x07\x6d\xe2\x85" |
| 12342 | "\xaa\x29\xaf\x24\x58\x0d\xf0\x75" |
| 12343 | "\x08\x0a\xa5\x34\x25\x16\xf3\x74" |
| 12344 | "\xa7\x0b\x97\xbe\xc1\xa9\xdc\x29" |
| 12345 | "\x1a\x0a\x56\xc1\x1a\x91\x97\x8c" |
| 12346 | "\x0b\xc7\x16\xed\x5a\x22\xa6\x2e" |
| 12347 | "\x8c\x2b\x4f\x54\x76\x47\x53\x8e" |
| 12348 | "\xe8\x00\xec\x92\xb9\x55\xe6\xa2" |
| 12349 | "\xf3\xe2\x4f\x6a\x66\x60\xd0\x87" |
| 12350 | "\xe6\xd1\xcc\xe3\x6a\xc5\x2d\x21" |
| 12351 | "\xcc\x9d\x6a\xb6\x75\xaa\xe2\x19" |
| 12352 | "\x21\x9f\xa1\x5e\x4c\xfd\x72\xf9" |
| 12353 | "\x94\x4e\x63\xc7\xae\xfc\xed\x47" |
| 12354 | "\xe2\xfe\x7a\x63\x77\xfe\x97\x82" |
| 12355 | "\xb1\x10\x6e\x36\x1d\xe1\xc4\x80" |
| 12356 | "\xec\x69\x41\xec\xa7\x8a\xe0\x2f" |
| 12357 | "\xe3\x49\x26\xa2\x41\xb2\x08\x0f" |
| 12358 | "\x28\xb4\xa7\x39\xa1\x99\x2d\x1e" |
| 12359 | "\x43\x42\x35\xd0\xcf\xec\x77\x67" |
| 12360 | "\xb2\x3b\x9e\x1c\x35\xde\x4f\x5e" |
| 12361 | "\x73\x3f\x5d\x6f\x07\x4b\x2e\x50" |
| 12362 | "\xab\x6c\x6b\xff\xea\x00\x67\xaa" |
| 12363 | "\x0e\x82\x32\xdd\x3d\xb5\xe5\x76" |
| 12364 | "\x2b\x77\x3f\xbe\x12\x75\xfb\x92" |
| 12365 | "\xc6\x89\x67\x4d\xca\xf7\xd4\x50" |
| 12366 | "\xc0\x74\x47\xcc\xd9\x0a\xd4\xc6" |
| 12367 | "\x3b\x17\x2e\xe3\x35\xbb\x53\xb5" |
| 12368 | "\x86\xad\x51\xcc\xd5\x96\xb8\xdc" |
| 12369 | "\x03\x57\xe6\x98\x52\x2f\x61\x62" |
| 12370 | "\xc4\x5c\x9c\x36\x71\x07\xfb\x94" |
| 12371 | "\xe3\x02\xc4\x2b\x08\x75\xc7\x35" |
| 12372 | "\xfb\x2e\x88\x7b\xbb\x67\x00\xe1" |
| 12373 | "\xc9\xdd\x99\xb2\x13\x53\x1a\x4e" |
| 12374 | "\x76\x87\x19\x04\x1a\x2f\x38\x3e" |
| 12375 | "\xef\x91\x64\x1d\x18\x07\x4e\x31" |
| 12376 | "\x88\x21\x7c\xb0\xa5\x12\x4c\x3c" |
| 12377 | "\xb0\x20\xbd\xda\xdf\xf9\x7c\xdd", |
| 12378 | .ilen = 512, |
| 12379 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 12380 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 12381 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 12382 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 12383 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 12384 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 12385 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12386 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 12387 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 12388 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 12389 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 12390 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 12391 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 12392 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 12393 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 12394 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 12395 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 12396 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 12397 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 12398 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 12399 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 12400 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 12401 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 12402 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 12403 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 12404 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 12405 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 12406 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 12407 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 12408 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 12409 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 12410 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 12411 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 12412 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 12413 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 12414 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 12415 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 12416 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 12417 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12418 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 12419 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 12420 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 12421 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 12422 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 12423 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 12424 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 12425 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 12426 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 12427 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 12428 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 12429 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 12430 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 12431 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 12432 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 12433 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 12434 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 12435 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 12436 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 12437 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 12438 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 12439 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 12440 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 12441 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 12442 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 12443 | .rlen = 512, |
| 12444 | }, { |
| 12445 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 12446 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 12447 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 12448 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 12449 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 12450 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 12451 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 12452 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 12453 | .klen = 64, |
| 12454 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 12455 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 12456 | .input = "\x2b\xc9\xb4\x6b\x10\x94\xa9\x32" |
| 12457 | "\xaa\xb0\x20\xc6\x44\x3d\x74\x1f" |
| 12458 | "\x75\x01\xa7\xf6\xf5\xf7\x62\x1b" |
| 12459 | "\x80\x1b\x82\xcb\x01\x59\x91\x7f" |
| 12460 | "\x80\x3a\x98\xf0\xd2\xca\xc4\xc3" |
| 12461 | "\x34\xfd\xe6\x11\xf9\x33\x45\x12" |
| 12462 | "\x48\xc5\x8c\x25\xf1\xc5\xc5\x23" |
| 12463 | "\xd3\x44\xb4\x73\xd5\x04\xc0\xb7" |
| 12464 | "\xca\x2f\xf5\xcd\xc5\xb4\xdd\xb0" |
| 12465 | "\xf4\x60\xe8\xfb\xc6\x9c\xc5\x78" |
| 12466 | "\xcd\xec\x7d\xdc\x19\x9c\x72\x64" |
| 12467 | "\x63\x0b\x38\x2e\x76\xdd\x2d\x36" |
| 12468 | "\x49\xb0\x1d\xea\x78\x9e\x00\xca" |
| 12469 | "\x20\xcc\x1b\x1e\x98\x74\xab\xed" |
| 12470 | "\x79\xf7\xd0\x6c\xd8\x93\x80\x29" |
| 12471 | "\xac\xa5\x5e\x34\xa9\xab\xa0\x55" |
| 12472 | "\x9a\xea\xaa\x95\x4d\x7b\xfe\x46" |
| 12473 | "\x26\x8a\xfd\x88\xa2\xa8\xa6\xae" |
| 12474 | "\x25\x42\x17\xbf\x76\x8f\x1c\x3d" |
| 12475 | "\xec\x9a\xda\x64\x96\xb5\x61\xff" |
| 12476 | "\x99\xeb\x12\x96\x85\x82\x9d\xd5" |
| 12477 | "\x81\x85\x14\xa8\x59\xac\x8c\x94" |
| 12478 | "\xbb\x3b\x85\x2b\xdf\xb3\x0c\xba" |
| 12479 | "\x82\xc6\x4d\xca\x86\xea\x53\x28" |
| 12480 | "\x4c\xe0\x4e\x31\xe3\x73\x2f\x79" |
| 12481 | "\x9d\x42\xe1\x03\xe3\x8b\xc4\xff" |
| 12482 | "\x05\xca\x81\x7b\xda\xa2\xde\x63" |
| 12483 | "\x3a\x10\xbe\xc2\xac\x32\xc4\x05" |
| 12484 | "\x47\x7e\xef\x67\xe2\x5f\x5b\xae" |
| 12485 | "\xed\xf1\x70\x34\x16\x9a\x07\x7b" |
| 12486 | "\xf2\x25\x2b\xb0\xf8\x3c\x15\x9a" |
| 12487 | "\xa6\x59\x55\x5f\xc1\xf4\x1e\xcd" |
| 12488 | "\x93\x1f\x06\xba\xd4\x9a\x22\x69" |
| 12489 | "\xfa\x8e\x95\x0d\xf3\x23\x59\x2c" |
| 12490 | "\xfe\x00\xba\xf0\x0e\xbc\x6d\xd6" |
| 12491 | "\x62\xf0\x7a\x0e\x83\x3e\xdb\x32" |
| 12492 | "\xfd\x43\x7d\xda\x42\x51\x87\x43" |
| 12493 | "\x9d\xf9\xef\xf4\x30\x97\xf8\x09" |
| 12494 | "\x88\xfc\x3f\x93\x70\xc1\x4a\xec" |
| 12495 | "\x27\x5f\x11\xac\x71\xc7\x48\x46" |
| 12496 | "\x2f\xf9\xdf\x8d\x9f\xf7\x2e\x56" |
| 12497 | "\x0d\x4e\xb0\x32\x76\xce\x86\x81" |
| 12498 | "\xcd\xdf\xe4\x00\xbf\xfd\x5f\x24" |
| 12499 | "\xaf\xf7\x9a\xde\xff\x18\xac\x14" |
| 12500 | "\x90\xc5\x01\x39\x34\x0f\x24\xf3" |
| 12501 | "\x13\x2f\x5e\x4f\x30\x9a\x36\x40" |
| 12502 | "\xec\xea\xbc\xcd\x9e\x0e\x5b\x23" |
| 12503 | "\x50\x88\x97\x40\x69\xb1\x37\xf5" |
| 12504 | "\xc3\x15\xf9\x3f\xb7\x79\x64\xe8" |
| 12505 | "\x7b\x10\x20\xb9\x2b\x46\x83\x5b" |
| 12506 | "\xd8\x39\xfc\xe4\xfa\x88\x52\xf2" |
| 12507 | "\x72\xb0\x97\x4e\x89\xb3\x48\x00" |
| 12508 | "\xc1\x16\x73\x50\x77\xba\xa6\x65" |
| 12509 | "\x20\x2d\xb0\x02\x27\x89\xda\x99" |
| 12510 | "\x45\xfb\xe9\xd3\x1d\x39\x2f\xd6" |
| 12511 | "\x2a\xda\x09\x12\x11\xaf\xe6\x57" |
| 12512 | "\x01\x04\x8a\xff\x86\x8b\xac\xf8" |
| 12513 | "\xee\xe4\x1c\x98\x5b\xcf\x6b\x76" |
| 12514 | "\xa3\x0e\x33\x74\x40\x18\x39\x72" |
| 12515 | "\x66\x50\x31\xfd\x70\xdf\xe8\x51" |
| 12516 | "\x96\x21\x36\xb2\x9b\xfa\x85\xd1" |
| 12517 | "\x30\x05\xc8\x92\x98\x80\xff\x7a" |
| 12518 | "\xaf\x43\x0b\xc5\x20\x41\x92\x20" |
| 12519 | "\xd4\xa0\x91\x98\x11\x5f\x4d\xb1", |
| 12520 | .ilen = 512, |
| 12521 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 12522 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 12523 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 12524 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 12525 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 12526 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 12527 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12528 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 12529 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 12530 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 12531 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 12532 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 12533 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 12534 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 12535 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 12536 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 12537 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 12538 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 12539 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 12540 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 12541 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 12542 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 12543 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 12544 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 12545 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 12546 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 12547 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 12548 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 12549 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 12550 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 12551 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 12552 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 12553 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 12554 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 12555 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 12556 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 12557 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 12558 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 12559 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 12560 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 12561 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 12562 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 12563 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 12564 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 12565 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 12566 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 12567 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 12568 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 12569 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 12570 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 12571 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 12572 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 12573 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 12574 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 12575 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 12576 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 12577 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 12578 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 12579 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 12580 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 12581 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 12582 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 12583 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 12584 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 12585 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12586 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 12587 | .np = 3, |
| 12588 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 18be20b9 | 2011-10-18 13:33:17 +0300 | [diff] [blame] | 12589 | }, |
| 12590 | }; |
| 12591 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12592 | /* Cast6 test vectors from RFC 2612 */ |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12593 | #define CAST6_ENC_TEST_VECTORS 4 |
| 12594 | #define CAST6_DEC_TEST_VECTORS 4 |
| 12595 | #define CAST6_CBC_ENC_TEST_VECTORS 1 |
| 12596 | #define CAST6_CBC_DEC_TEST_VECTORS 1 |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 12597 | #define CAST6_CTR_ENC_TEST_VECTORS 2 |
| 12598 | #define CAST6_CTR_DEC_TEST_VECTORS 2 |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12599 | #define CAST6_LRW_ENC_TEST_VECTORS 1 |
| 12600 | #define CAST6_LRW_DEC_TEST_VECTORS 1 |
| 12601 | #define CAST6_XTS_ENC_TEST_VECTORS 1 |
| 12602 | #define CAST6_XTS_DEC_TEST_VECTORS 1 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12603 | |
| 12604 | static struct cipher_testvec cast6_enc_tv_template[] = { |
| 12605 | { |
| 12606 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12607 | "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", |
| 12608 | .klen = 16, |
| 12609 | .input = zeroed_string, |
| 12610 | .ilen = 16, |
| 12611 | .result = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" |
| 12612 | "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", |
| 12613 | .rlen = 16, |
| 12614 | }, { |
| 12615 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12616 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 12617 | "\xba\xc7\x7a\x77\x17\x94\x28\x63", |
| 12618 | .klen = 24, |
| 12619 | .input = zeroed_string, |
| 12620 | .ilen = 16, |
| 12621 | .result = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" |
| 12622 | "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", |
| 12623 | .rlen = 16, |
| 12624 | }, { |
| 12625 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12626 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 12627 | "\x8d\x7c\x47\xce\x26\x49\x08\x46" |
| 12628 | "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", |
| 12629 | .klen = 32, |
| 12630 | .input = zeroed_string, |
| 12631 | .ilen = 16, |
| 12632 | .result = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" |
| 12633 | "\xc9\x87\x01\x36\x55\x33\x17\xfa", |
| 12634 | .rlen = 16, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12635 | }, { /* Generated from TF test vectors */ |
| 12636 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12637 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12638 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12639 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12640 | .klen = 32, |
| 12641 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12642 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12643 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12644 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12645 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12646 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12647 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12648 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12649 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12650 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12651 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12652 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12653 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12654 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12655 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12656 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12657 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12658 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12659 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12660 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12661 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12662 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12663 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12664 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12665 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12666 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12667 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12668 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12669 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12670 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12671 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12672 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12673 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12674 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12675 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12676 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12677 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12678 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12679 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12680 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12681 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12682 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12683 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12684 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12685 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12686 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12687 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12688 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12689 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12690 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12691 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12692 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12693 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12694 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12695 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12696 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12697 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12698 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12699 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12700 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12701 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12702 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12703 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12704 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12705 | .ilen = 496, |
| 12706 | .result = "\xC3\x70\x22\x32\xF5\x80\xCB\x54" |
| 12707 | "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6" |
| 12708 | "\xB6\xB9\xC5\xA4\x91\x55\x14\x97" |
| 12709 | "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA" |
| 12710 | "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE" |
| 12711 | "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C" |
| 12712 | "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C" |
| 12713 | "\xD0\x6A\x99\x10\x72\xF8\x47\x62" |
| 12714 | "\x81\x42\xF8\xD8\xF5\xBB\x94\x08" |
| 12715 | "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E" |
| 12716 | "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58" |
| 12717 | "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12" |
| 12718 | "\x5A\x72\x85\x47\x8B\xEC\x9F\x26" |
| 12719 | "\x84\xB6\xED\x10\x33\x63\x9B\x5F" |
| 12720 | "\x4D\x53\xEE\x94\x45\x8B\x60\x58" |
| 12721 | "\x86\x20\xF9\x1E\x82\x08\x3E\x58" |
| 12722 | "\x60\x1B\x34\x19\x02\xBE\x4E\x09" |
| 12723 | "\xBB\x7C\x15\xCC\x60\x27\x55\x7A" |
| 12724 | "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3" |
| 12725 | "\xF1\xDD\xA7\x07\xA3\x12\x85\x28" |
| 12726 | "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A" |
| 12727 | "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43" |
| 12728 | "\x92\xE4\x7C\x26\x69\x4D\x83\x68" |
| 12729 | "\x14\x96\x42\x47\xBD\xA9\xE4\x8A" |
| 12730 | "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E" |
| 12731 | "\x91\x51\xB5\x36\x08\xDE\x1C\x06" |
| 12732 | "\x03\xBD\xDE\x81\x26\xF7\x99\xC2" |
| 12733 | "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF" |
| 12734 | "\xC1\xF5\x27\x05\xB8\x02\x57\x72" |
| 12735 | "\xE6\x42\x13\x0B\xC6\x47\x05\x74" |
| 12736 | "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9" |
| 12737 | "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C" |
| 12738 | "\x98\x82\x67\x67\xB4\xD7\xD3\x43" |
| 12739 | "\x23\x08\x02\xB7\x9B\x99\x05\xFB" |
| 12740 | "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6" |
| 12741 | "\x2E\x49\x58\xD0\xA8\x57\x29\x7F" |
| 12742 | "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67" |
| 12743 | "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D" |
| 12744 | "\x17\xE2\x58\x2B\x88\x0D\x68\x62" |
| 12745 | "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62" |
| 12746 | "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08" |
| 12747 | "\xEB\x84\x1D\x25\xA7\x38\x94\x06" |
| 12748 | "\x93\x9D\xF8\xFE\x88\x71\xE7\x84" |
| 12749 | "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29" |
| 12750 | "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB" |
| 12751 | "\x8E\x75\x3D\x73\xEB\x6A\xED\x29" |
| 12752 | "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA" |
| 12753 | "\x41\xE2\x10\x4C\x01\x8B\x69\x2B" |
| 12754 | "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B" |
| 12755 | "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6" |
| 12756 | "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06" |
| 12757 | "\x59\x28\x1D\x86\x43\x04\x5D\x3B" |
| 12758 | "\x99\x4C\x04\x5A\x21\x17\x8B\x76" |
| 12759 | "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3" |
| 12760 | "\x65\xA2\x58\x2A\xC5\x66\x24\xBF" |
| 12761 | "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8" |
| 12762 | "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9" |
| 12763 | "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E" |
| 12764 | "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1" |
| 12765 | "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C" |
| 12766 | "\x84\x52\x6D\x68\xDE\xC6\x64\xB2" |
| 12767 | "\x11\x74\x93\x57\xB4\x7E\xC6\x00", |
| 12768 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12769 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 12770 | .np = 3, |
| 12771 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 12772 | }, |
| 12773 | }; |
| 12774 | |
| 12775 | static struct cipher_testvec cast6_dec_tv_template[] = { |
| 12776 | { |
| 12777 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12778 | "\x0a\xf7\x56\x47\xf2\x9f\x61\x5d", |
| 12779 | .klen = 16, |
| 12780 | .input = "\xc8\x42\xa0\x89\x72\xb4\x3d\x20" |
| 12781 | "\x83\x6c\x91\xd1\xb7\x53\x0f\x6b", |
| 12782 | .ilen = 16, |
| 12783 | .result = zeroed_string, |
| 12784 | .rlen = 16, |
| 12785 | }, { |
| 12786 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12787 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 12788 | "\xba\xc7\x7a\x77\x17\x94\x28\x63", |
| 12789 | .klen = 24, |
| 12790 | .input = "\x1b\x38\x6c\x02\x10\xdc\xad\xcb" |
| 12791 | "\xdd\x0e\x41\xaa\x08\xa7\xa7\xe8", |
| 12792 | .ilen = 16, |
| 12793 | .result = zeroed_string, |
| 12794 | .rlen = 16, |
| 12795 | }, { |
| 12796 | .key = "\x23\x42\xbb\x9e\xfa\x38\x54\x2c" |
| 12797 | "\xbe\xd0\xac\x83\x94\x0a\xc2\x98" |
| 12798 | "\x8d\x7c\x47\xce\x26\x49\x08\x46" |
| 12799 | "\x1c\xc1\xb5\x13\x7a\xe6\xb6\x04", |
| 12800 | .klen = 32, |
| 12801 | .input = "\x4f\x6a\x20\x38\x28\x68\x97\xb9" |
| 12802 | "\xc9\x87\x01\x36\x55\x33\x17\xfa", |
| 12803 | .ilen = 16, |
| 12804 | .result = zeroed_string, |
| 12805 | .rlen = 16, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12806 | }, { /* Generated from TF test vectors */ |
| 12807 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12808 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12809 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12810 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12811 | .klen = 32, |
| 12812 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12813 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12814 | .input = "\xC3\x70\x22\x32\xF5\x80\xCB\x54" |
| 12815 | "\xFC\x30\xE0\xF6\xEB\x39\x57\xA6" |
| 12816 | "\xB6\xB9\xC5\xA4\x91\x55\x14\x97" |
| 12817 | "\xC1\x20\xFF\x6C\x5C\xF0\x67\xEA" |
| 12818 | "\x2F\xED\xD8\xC9\xFB\x38\x3F\xFE" |
| 12819 | "\x93\xBE\xDC\x00\xD3\x7F\xAD\x4C" |
| 12820 | "\x5A\x08\x92\xD1\x47\x0C\xFA\x6C" |
| 12821 | "\xD0\x6A\x99\x10\x72\xF8\x47\x62" |
| 12822 | "\x81\x42\xF8\xD8\xF5\xBB\x94\x08" |
| 12823 | "\xAA\x97\xA2\x8B\x69\xB3\xD2\x7E" |
| 12824 | "\xBC\xB5\x00\x0C\xE5\x44\x4B\x58" |
| 12825 | "\xE8\x63\xDC\xB3\xC4\xE5\x23\x12" |
| 12826 | "\x5A\x72\x85\x47\x8B\xEC\x9F\x26" |
| 12827 | "\x84\xB6\xED\x10\x33\x63\x9B\x5F" |
| 12828 | "\x4D\x53\xEE\x94\x45\x8B\x60\x58" |
| 12829 | "\x86\x20\xF9\x1E\x82\x08\x3E\x58" |
| 12830 | "\x60\x1B\x34\x19\x02\xBE\x4E\x09" |
| 12831 | "\xBB\x7C\x15\xCC\x60\x27\x55\x7A" |
| 12832 | "\x12\xB8\xD8\x08\x89\x3C\xA6\xF3" |
| 12833 | "\xF1\xDD\xA7\x07\xA3\x12\x85\x28" |
| 12834 | "\xE9\x57\xAC\x80\x0C\x5C\x0F\x3A" |
| 12835 | "\x5D\xC2\x91\xC7\x90\xE4\x8C\x43" |
| 12836 | "\x92\xE4\x7C\x26\x69\x4D\x83\x68" |
| 12837 | "\x14\x96\x42\x47\xBD\xA9\xE4\x8A" |
| 12838 | "\x33\x19\xEB\x54\x8E\x0D\x4B\x6E" |
| 12839 | "\x91\x51\xB5\x36\x08\xDE\x1C\x06" |
| 12840 | "\x03\xBD\xDE\x81\x26\xF7\x99\xC2" |
| 12841 | "\xBA\xF7\x6D\x87\x0D\xE4\xA6\xCF" |
| 12842 | "\xC1\xF5\x27\x05\xB8\x02\x57\x72" |
| 12843 | "\xE6\x42\x13\x0B\xC6\x47\x05\x74" |
| 12844 | "\x24\x15\xF7\x0D\xC2\x23\x9D\xB9" |
| 12845 | "\x3C\x77\x18\x93\xBA\xB4\xFC\x8C" |
| 12846 | "\x98\x82\x67\x67\xB4\xD7\xD3\x43" |
| 12847 | "\x23\x08\x02\xB7\x9B\x99\x05\xFB" |
| 12848 | "\xD3\xB5\x00\x0A\xA9\x9D\x66\xD6" |
| 12849 | "\x2E\x49\x58\xD0\xA8\x57\x29\x7F" |
| 12850 | "\x0A\x0E\x7D\xFC\x92\x83\xCC\x67" |
| 12851 | "\xA2\xB1\x70\x3A\x8F\x87\x4A\x8D" |
| 12852 | "\x17\xE2\x58\x2B\x88\x0D\x68\x62" |
| 12853 | "\xBF\x35\xD1\x6F\xC0\xF0\x18\x62" |
| 12854 | "\xB2\xC7\x2D\x58\xC7\x16\xDE\x08" |
| 12855 | "\xEB\x84\x1D\x25\xA7\x38\x94\x06" |
| 12856 | "\x93\x9D\xF8\xFE\x88\x71\xE7\x84" |
| 12857 | "\x2C\xA0\x38\xA3\x1D\x48\xCF\x29" |
| 12858 | "\x0B\xBC\xD8\x50\x99\x1A\x26\xFB" |
| 12859 | "\x8E\x75\x3D\x73\xEB\x6A\xED\x29" |
| 12860 | "\xE0\x8E\xED\xFC\xFE\x6F\xF6\xBA" |
| 12861 | "\x41\xE2\x10\x4C\x01\x8B\x69\x2B" |
| 12862 | "\x25\x3F\x4D\x70\x7B\x92\xD6\x3B" |
| 12863 | "\xAC\xF9\x77\x18\xD9\x6A\x30\xA6" |
| 12864 | "\x2E\xFA\x30\xFF\xC8\xD5\x1D\x06" |
| 12865 | "\x59\x28\x1D\x86\x43\x04\x5D\x3B" |
| 12866 | "\x99\x4C\x04\x5A\x21\x17\x8B\x76" |
| 12867 | "\x8F\x72\xCB\xA1\x9C\x29\x4C\xC3" |
| 12868 | "\x65\xA2\x58\x2A\xC5\x66\x24\xBF" |
| 12869 | "\xBA\xE6\x0C\xDD\x34\x24\x74\xC8" |
| 12870 | "\x84\x0A\x66\x2C\xBE\x8F\x32\xA9" |
| 12871 | "\xE7\xE4\xA1\xD7\xDA\xAB\x23\x1E" |
| 12872 | "\xEB\xEE\x6C\x94\x6F\x9C\x2E\xD1" |
| 12873 | "\x49\x2C\xF3\xD4\x90\xCC\x93\x4C" |
| 12874 | "\x84\x52\x6D\x68\xDE\xC6\x64\xB2" |
| 12875 | "\x11\x74\x93\x57\xB4\x7E\xC6\x00", |
| 12876 | .ilen = 496, |
| 12877 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12878 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12879 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12880 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12881 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12882 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12883 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12884 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12885 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12886 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12887 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12888 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12889 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12890 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12891 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12892 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12893 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12894 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12895 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12896 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12897 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12898 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12899 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12900 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12901 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12902 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12903 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12904 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12905 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12906 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12907 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12908 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12909 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12910 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12911 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12912 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12913 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12914 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12915 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12916 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12917 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12918 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12919 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12920 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12921 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 12922 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 12923 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 12924 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 12925 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 12926 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 12927 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 12928 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 12929 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 12930 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 12931 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 12932 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 12933 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 12934 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 12935 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 12936 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 12937 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 12938 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 12939 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 12940 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 12941 | .np = 3, |
| 12942 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 12943 | }, |
| 12944 | }; |
| 12945 | |
| 12946 | static struct cipher_testvec cast6_cbc_enc_tv_template[] = { |
| 12947 | { /* Generated from TF test vectors */ |
| 12948 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 12949 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 12950 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 12951 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 12952 | .klen = 32, |
| 12953 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 12954 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 12955 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 12956 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 12957 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 12958 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 12959 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 12960 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 12961 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 12962 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 12963 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 12964 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 12965 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 12966 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 12967 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 12968 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 12969 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 12970 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 12971 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 12972 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 12973 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 12974 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 12975 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 12976 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 12977 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 12978 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 12979 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 12980 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 12981 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 12982 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 12983 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 12984 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 12985 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 12986 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 12987 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 12988 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 12989 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 12990 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 12991 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 12992 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 12993 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 12994 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 12995 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 12996 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 12997 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 12998 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 12999 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 13000 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 13001 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 13002 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 13003 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 13004 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 13005 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 13006 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 13007 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 13008 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 13009 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 13010 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 13011 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 13012 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 13013 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 13014 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 13015 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 13016 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 13017 | .ilen = 496, |
| 13018 | .result = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2" |
| 13019 | "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F" |
| 13020 | "\xA0\x73\xB3\x70\xC3\x68\x64\x70" |
| 13021 | "\xAD\x33\x02\xFB\x88\x74\xAA\x78" |
| 13022 | "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F" |
| 13023 | "\x7E\x6F\xDF\x05\x13\x76\xA6\x72" |
| 13024 | "\xB7\x13\x09\x0F\x7D\x38\xDF\x25" |
| 13025 | "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0" |
| 13026 | "\x57\x95\xE1\x21\x26\x10\x9A\x21" |
| 13027 | "\xA1\x8A\x51\x05\xD1\xB1\x78\x35" |
| 13028 | "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF" |
| 13029 | "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B" |
| 13030 | "\x23\x16\x47\x72\x81\x13\x3A\x72" |
| 13031 | "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8" |
| 13032 | "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E" |
| 13033 | "\xA3\x63\x98\x7D\x35\xE4\xD9\x83" |
| 13034 | "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3" |
| 13035 | "\x41\x1A\x93\x8D\x76\x31\x9F\xF2" |
| 13036 | "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9" |
| 13037 | "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1" |
| 13038 | "\x21\x9C\x1A\xCA\x65\xDE\x44\x03" |
| 13039 | "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37" |
| 13040 | "\x53\x50\x23\xA4\x81\x6E\xDA\xFB" |
| 13041 | "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8" |
| 13042 | "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7" |
| 13043 | "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3" |
| 13044 | "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2" |
| 13045 | "\xC1\x03\xE6\x5A\x37\xD8\x64\x18" |
| 13046 | "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB" |
| 13047 | "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4" |
| 13048 | "\x89\x05\x81\x6E\x71\x4F\xC3\x28" |
| 13049 | "\x10\xC1\x62\xC4\x41\xE9\xD2\x39" |
| 13050 | "\xF3\x22\x39\x12\x2C\xC2\x95\x2D" |
| 13051 | "\xBF\x93\x58\x4B\x04\xD1\x8D\x57" |
| 13052 | "\xAE\xEB\x60\x03\x56\x35\xAD\x5A" |
| 13053 | "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8" |
| 13054 | "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E" |
| 13055 | "\x07\x09\x82\xBA\xF0\x80\x8A\xD0" |
| 13056 | "\xA0\x3F\x6A\xE9\x24\x87\x19\x65" |
| 13057 | "\x73\x3F\x12\x91\x47\x54\xBA\x39" |
| 13058 | "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF" |
| 13059 | "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76" |
| 13060 | "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47" |
| 13061 | "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1" |
| 13062 | "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12" |
| 13063 | "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D" |
| 13064 | "\x23\xFA\x7D\x77\xB8\x46\x75\xFE" |
| 13065 | "\x4F\x10\xD3\x09\x60\xA1\x36\x96" |
| 13066 | "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14" |
| 13067 | "\x80\x21\x83\x58\x3C\x76\xFD\x28" |
| 13068 | "\x1D\xF9\x93\x13\xD7\x0E\x62\x14" |
| 13069 | "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C" |
| 13070 | "\x68\x93\x44\x70\xDF\xCF\x4A\x51" |
| 13071 | "\x0B\x81\x29\x41\xE5\x62\x4D\x36" |
| 13072 | "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09" |
| 13073 | "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6" |
| 13074 | "\x01\x91\xB4\x27\xDA\x59\xD6\x17" |
| 13075 | "\x56\x4D\x82\x62\x37\xA3\x48\x01" |
| 13076 | "\x99\x91\x77\xB2\x08\x6B\x2C\x37" |
| 13077 | "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3" |
| 13078 | "\x4D\x59\x7D\xC5\x28\x69\xFA\x92" |
| 13079 | "\x22\x46\x89\x2D\x0F\x2B\x08\x24", |
| 13080 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13081 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 13082 | .np = 3, |
| 13083 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13084 | }, |
| 13085 | }; |
| 13086 | |
| 13087 | static struct cipher_testvec cast6_cbc_dec_tv_template[] = { |
| 13088 | { /* Generated from TF test vectors */ |
| 13089 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 13090 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 13091 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 13092 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 13093 | .klen = 32, |
| 13094 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 13095 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 13096 | .input = "\xDF\x77\x68\x96\xC7\xBA\xF8\xE2" |
| 13097 | "\x0E\x24\x99\x1A\xAA\xF3\xC6\x9F" |
| 13098 | "\xA0\x73\xB3\x70\xC3\x68\x64\x70" |
| 13099 | "\xAD\x33\x02\xFB\x88\x74\xAA\x78" |
| 13100 | "\xC7\x47\x1A\x18\x61\x2D\xAC\x9F" |
| 13101 | "\x7E\x6F\xDF\x05\x13\x76\xA6\x72" |
| 13102 | "\xB7\x13\x09\x0F\x7D\x38\xDF\x25" |
| 13103 | "\x4E\xFD\x50\x45\xFA\x35\x6A\xC0" |
| 13104 | "\x57\x95\xE1\x21\x26\x10\x9A\x21" |
| 13105 | "\xA1\x8A\x51\x05\xD1\xB1\x78\x35" |
| 13106 | "\x98\xF5\xAE\xC0\xC1\x8B\x94\xFF" |
| 13107 | "\xD0\x69\x3F\x42\xC2\x01\xA7\x9B" |
| 13108 | "\x23\x16\x47\x72\x81\x13\x3A\x72" |
| 13109 | "\xEC\xD9\x40\x88\x00\x9C\xB0\xA8" |
| 13110 | "\x9C\xAC\xCE\x11\x73\x7B\x63\x3E" |
| 13111 | "\xA3\x63\x98\x7D\x35\xE4\xD9\x83" |
| 13112 | "\xE2\xD0\x52\x87\x0C\x1F\xB0\xB3" |
| 13113 | "\x41\x1A\x93\x8D\x76\x31\x9F\xF2" |
| 13114 | "\xFE\x09\xA3\x8F\x22\x6A\x3B\xB9" |
| 13115 | "\x6C\x9E\xE4\xA1\xA0\xC4\xE7\xA1" |
| 13116 | "\x21\x9C\x1A\xCA\x65\xDE\x44\x03" |
| 13117 | "\x99\xF2\xD2\x39\xE3\x3F\x0F\x37" |
| 13118 | "\x53\x50\x23\xA4\x81\x6E\xDA\xFB" |
| 13119 | "\xF8\x7B\x01\xD7\xB2\x32\x9C\xB8" |
| 13120 | "\xB1\x0E\x99\x17\xB5\x38\xF9\xD7" |
| 13121 | "\x86\x2D\x6E\x94\x5C\x99\x9D\xB3" |
| 13122 | "\xD3\x63\x4B\x2A\x7D\x44\x6A\xB2" |
| 13123 | "\xC1\x03\xE6\x5A\x37\xD8\x64\x18" |
| 13124 | "\xAA\x32\xCE\x29\xED\xC0\xA2\xCB" |
| 13125 | "\x8D\xAF\xCD\xBE\x8F\xB6\xEC\xB4" |
| 13126 | "\x89\x05\x81\x6E\x71\x4F\xC3\x28" |
| 13127 | "\x10\xC1\x62\xC4\x41\xE9\xD2\x39" |
| 13128 | "\xF3\x22\x39\x12\x2C\xC2\x95\x2D" |
| 13129 | "\xBF\x93\x58\x4B\x04\xD1\x8D\x57" |
| 13130 | "\xAE\xEB\x60\x03\x56\x35\xAD\x5A" |
| 13131 | "\xE9\xC3\xFF\x4E\x31\xE1\x37\xF8" |
| 13132 | "\x7D\xEE\x65\x8A\xB6\x88\x1A\x3E" |
| 13133 | "\x07\x09\x82\xBA\xF0\x80\x8A\xD0" |
| 13134 | "\xA0\x3F\x6A\xE9\x24\x87\x19\x65" |
| 13135 | "\x73\x3F\x12\x91\x47\x54\xBA\x39" |
| 13136 | "\x30\x5B\x1E\xE5\xC2\xF9\x3F\xEF" |
| 13137 | "\xD6\x75\xF9\xB8\x7C\x8B\x05\x76" |
| 13138 | "\xEE\xB7\x08\x25\x4B\xB6\x7B\x47" |
| 13139 | "\x72\xC0\x4C\xD4\xDA\xE0\x75\xF1" |
| 13140 | "\x7C\xE8\x94\x9E\x16\x6E\xB8\x12" |
| 13141 | "\xA1\xC1\x6E\x3B\x1C\x59\x41\x2D" |
| 13142 | "\x23\xFA\x7D\x77\xB8\x46\x75\xFE" |
| 13143 | "\x4F\x10\xD3\x09\x60\xA1\x36\x96" |
| 13144 | "\x5B\xC2\xDC\x6E\x84\x7D\x9B\x14" |
| 13145 | "\x80\x21\x83\x58\x3C\x76\xFD\x28" |
| 13146 | "\x1D\xF9\x93\x13\xD7\x0E\x62\x14" |
| 13147 | "\x5A\xC5\x4E\x08\xA5\x56\xA4\x3C" |
| 13148 | "\x68\x93\x44\x70\xDF\xCF\x4A\x51" |
| 13149 | "\x0B\x81\x29\x41\xE5\x62\x4D\x36" |
| 13150 | "\xB3\xEA\x94\xA6\xB9\xDD\x3F\x09" |
| 13151 | "\x62\x34\xA0\x6A\x7E\x7D\xF5\xF6" |
| 13152 | "\x01\x91\xB4\x27\xDA\x59\xD6\x17" |
| 13153 | "\x56\x4D\x82\x62\x37\xA3\x48\x01" |
| 13154 | "\x99\x91\x77\xB2\x08\x6B\x2C\x37" |
| 13155 | "\xC5\x5C\xAD\xB6\x07\xB6\x84\xF3" |
| 13156 | "\x4D\x59\x7D\xC5\x28\x69\xFA\x92" |
| 13157 | "\x22\x46\x89\x2D\x0F\x2B\x08\x24", |
| 13158 | .ilen = 496, |
| 13159 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 13160 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 13161 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 13162 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 13163 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 13164 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 13165 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 13166 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 13167 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 13168 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 13169 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 13170 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 13171 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 13172 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 13173 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 13174 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 13175 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 13176 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 13177 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 13178 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 13179 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 13180 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 13181 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 13182 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 13183 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 13184 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 13185 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 13186 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 13187 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 13188 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 13189 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 13190 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 13191 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 13192 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 13193 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 13194 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 13195 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 13196 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 13197 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 13198 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 13199 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 13200 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 13201 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 13202 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 13203 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 13204 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 13205 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 13206 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 13207 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 13208 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 13209 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 13210 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 13211 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 13212 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 13213 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 13214 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 13215 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 13216 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 13217 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 13218 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 13219 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 13220 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 13221 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13222 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 13223 | .np = 3, |
| 13224 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13225 | }, |
| 13226 | }; |
| 13227 | |
| 13228 | static struct cipher_testvec cast6_ctr_enc_tv_template[] = { |
| 13229 | { /* Generated from TF test vectors */ |
| 13230 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 13231 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 13232 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 13233 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 13234 | .klen = 32, |
| 13235 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 13236 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 13237 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 13238 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 13239 | "\x3A", |
| 13240 | .ilen = 17, |
| 13241 | .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 13242 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
| 13243 | "\x57", |
| 13244 | .rlen = 17, |
| 13245 | }, { /* Generated from TF test vectors */ |
| 13246 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 13247 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 13248 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 13249 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 13250 | .klen = 32, |
| 13251 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 13252 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 13253 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 13254 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13255 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 13256 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 13257 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 13258 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 13259 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 13260 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 13261 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 13262 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 13263 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 13264 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 13265 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 13266 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 13267 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 13268 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 13269 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 13270 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 13271 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 13272 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 13273 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 13274 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 13275 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 13276 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 13277 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 13278 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 13279 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 13280 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 13281 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 13282 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 13283 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 13284 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 13285 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 13286 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 13287 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 13288 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 13289 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 13290 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 13291 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 13292 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 13293 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 13294 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 13295 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 13296 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 13297 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 13298 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 13299 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 13300 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 13301 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 13302 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 13303 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 13304 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 13305 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 13306 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 13307 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 13308 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 13309 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 13310 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 13311 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 13312 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 13313 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 13314 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 13315 | .ilen = 496, |
| 13316 | .result = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 13317 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
| 13318 | "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7" |
| 13319 | "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56" |
| 13320 | "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8" |
| 13321 | "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3" |
| 13322 | "\xE3\xF3\xFA\xC2\x23\x55\x98\x20" |
| 13323 | "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5" |
| 13324 | "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30" |
| 13325 | "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D" |
| 13326 | "\x66\x45\xEE\xC8\x19\xBE\x50\xF0" |
| 13327 | "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9" |
| 13328 | "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5" |
| 13329 | "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C" |
| 13330 | "\x81\xDF\x82\x12\xC7\x4C\x1B\x07" |
| 13331 | "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA" |
| 13332 | "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6" |
| 13333 | "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5" |
| 13334 | "\x49\x61\x22\x52\x64\x8C\x46\x41" |
| 13335 | "\x1F\x48\x5F\x4F\xA2\x89\x36\x17" |
| 13336 | "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0" |
| 13337 | "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3" |
| 13338 | "\x00\x14\x15\x59\xC1\x30\x64\xAF" |
| 13339 | "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C" |
| 13340 | "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4" |
| 13341 | "\x02\x37\xC4\x69\xEF\x36\xC1\xF3" |
| 13342 | "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0" |
| 13343 | "\x51\x73\xA3\x22\x42\x41\xAB\xD2" |
| 13344 | "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA" |
| 13345 | "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF" |
| 13346 | "\xC9\x3F\x07\x87\x42\x4B\x3A\x54" |
| 13347 | "\x34\x8E\x37\xA3\x03\x6F\x65\x66" |
| 13348 | "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD" |
| 13349 | "\x61\xB4\x2B\x80\xA3\x98\x13\xF5" |
| 13350 | "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8" |
| 13351 | "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D" |
| 13352 | "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE" |
| 13353 | "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A" |
| 13354 | "\x60\x40\x38\x90\x20\x46\xC7\xB3" |
| 13355 | "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4" |
| 13356 | "\x11\x41\x76\x6B\xB3\x60\x82\x3C" |
| 13357 | "\x84\xFB\x08\x2E\x92\x25\xCB\x79" |
| 13358 | "\x6F\x58\xC5\x94\x00\x00\x47\xB6" |
| 13359 | "\x9E\xDC\x0F\x29\x70\x46\x20\x76" |
| 13360 | "\x65\x75\x66\x5C\x00\x96\xB3\xE1" |
| 13361 | "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45" |
| 13362 | "\x73\xFC\x91\xAB\x79\x41\x23\x14" |
| 13363 | "\x13\xB6\x72\x6C\x46\xB3\x03\x11" |
| 13364 | "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32" |
| 13365 | "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7" |
| 13366 | "\x15\x48\x44\x99\x09\xF6\xE0\xD7" |
| 13367 | "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2" |
| 13368 | "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2" |
| 13369 | "\x12\x53\x35\x9C\xF9\xE7\x35\x5D" |
| 13370 | "\x81\xE4\x86\x42\xC3\x58\xFB\xF0" |
| 13371 | "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F" |
| 13372 | "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4" |
| 13373 | "\x19\x35\x88\x22\x45\x59\x0E\x8F" |
| 13374 | "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41" |
| 13375 | "\x9B\x66\x8D\x32\xBA\x81\x34\x87" |
| 13376 | "\x0E\x74\x33\x30\x62\xB9\x89\xDF" |
| 13377 | "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB", |
| 13378 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13379 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 13380 | .np = 3, |
| 13381 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13382 | }, |
| 13383 | }; |
| 13384 | |
| 13385 | static struct cipher_testvec cast6_ctr_dec_tv_template[] = { |
| 13386 | { /* Generated from TF test vectors */ |
| 13387 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 13388 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 13389 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 13390 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 13391 | .klen = 32, |
| 13392 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 13393 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 13394 | .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 13395 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 13396 | "\x57", |
| 13397 | .ilen = 17, |
| 13398 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 13399 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 13400 | "\x3A", |
| 13401 | .rlen = 17, |
| 13402 | }, { /* Generated from TF test vectors */ |
| 13403 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 13404 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 13405 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 13406 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 13407 | .klen = 32, |
| 13408 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 13409 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 13410 | .input = "\x26\x0A\xF1\xE2\x3F\x8A\xEF\xA3" |
| 13411 | "\x53\x9A\x5E\x1B\x2A\x1A\xC6\x0A" |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13412 | "\x57\xA3\xEF\x47\x2A\xE8\x88\xA7" |
| 13413 | "\x3C\xD0\xEC\xB9\x94\x50\x7D\x56" |
| 13414 | "\xBC\xE1\xC1\xF5\xE1\xEE\x12\xF8" |
| 13415 | "\x4F\x03\x82\x3A\x93\x6B\x4C\xD3" |
| 13416 | "\xE3\xF3\xFA\xC2\x23\x55\x98\x20" |
| 13417 | "\x49\x76\x9B\x6B\xC1\x23\xBF\xE5" |
| 13418 | "\xD4\xC4\x2F\x61\xE1\x67\x2A\x30" |
| 13419 | "\x6F\x29\xCA\x54\xF8\x1B\xA6\x7D" |
| 13420 | "\x66\x45\xEE\xC8\x19\xBE\x50\xF0" |
| 13421 | "\x5F\x65\xF8\x1E\x4D\x07\x87\xD9" |
| 13422 | "\xD3\xD9\x1B\x09\x89\xFD\x42\xC5" |
| 13423 | "\xDB\xEB\x86\xF1\x67\x04\x0F\x5C" |
| 13424 | "\x81\xDF\x82\x12\xC7\x4C\x1B\x07" |
| 13425 | "\xDE\xE6\xFA\x29\x86\xD1\xB0\xBA" |
| 13426 | "\x3D\x6A\x69\x76\xEC\x0F\xB4\xE6" |
| 13427 | "\xCD\xA7\xF8\xA8\xB8\xE0\x33\xF5" |
| 13428 | "\x49\x61\x22\x52\x64\x8C\x46\x41" |
| 13429 | "\x1F\x48\x5F\x4F\xA2\x89\x36\x17" |
| 13430 | "\x20\xF8\x2F\x8F\x4B\xFA\xF2\xC0" |
| 13431 | "\x1E\x18\xA2\xF8\xB7\x6D\x98\xE3" |
| 13432 | "\x00\x14\x15\x59\xC1\x30\x64\xAF" |
| 13433 | "\xA8\x01\x38\xAB\xD4\x8B\xEC\x7C" |
| 13434 | "\x44\x9A\xC6\x2C\x2E\x2B\x2B\xF4" |
| 13435 | "\x02\x37\xC4\x69\xEF\x36\xC1\xF3" |
| 13436 | "\xA0\xFB\xFE\x29\xAD\x39\xCF\xD0" |
| 13437 | "\x51\x73\xA3\x22\x42\x41\xAB\xD2" |
| 13438 | "\x0F\x50\x14\xB9\x54\xD3\xD4\xFA" |
| 13439 | "\xBF\xC9\xBB\xCE\xC4\x1D\x2D\xAF" |
| 13440 | "\xC9\x3F\x07\x87\x42\x4B\x3A\x54" |
| 13441 | "\x34\x8E\x37\xA3\x03\x6F\x65\x66" |
| 13442 | "\xDB\x44\xC3\xE8\xD7\xDD\x7D\xDD" |
| 13443 | "\x61\xB4\x2B\x80\xA3\x98\x13\xF5" |
| 13444 | "\x5A\xD3\x34\x58\xC3\x6E\xF6\xB8" |
| 13445 | "\x0A\xC6\x50\x01\x8E\xD5\x6C\x7D" |
| 13446 | "\xFE\x16\xB6\xCF\xFC\x51\x40\xAE" |
| 13447 | "\xB3\x15\xAC\x90\x6F\x0B\x28\x3A" |
| 13448 | "\x60\x40\x38\x90\x20\x46\xC7\xB3" |
| 13449 | "\x0B\x12\x6D\x3B\x15\x14\xF9\xF4" |
| 13450 | "\x11\x41\x76\x6B\xB3\x60\x82\x3C" |
| 13451 | "\x84\xFB\x08\x2E\x92\x25\xCB\x79" |
| 13452 | "\x6F\x58\xC5\x94\x00\x00\x47\xB6" |
| 13453 | "\x9E\xDC\x0F\x29\x70\x46\x20\x76" |
| 13454 | "\x65\x75\x66\x5C\x00\x96\xB3\xE1" |
| 13455 | "\x0B\xA7\x11\x8B\x2E\x61\x4E\x45" |
| 13456 | "\x73\xFC\x91\xAB\x79\x41\x23\x14" |
| 13457 | "\x13\xB6\x72\x6C\x46\xB3\x03\x11" |
| 13458 | "\xE4\xF1\xEE\xC9\x7A\xCF\x96\x32" |
| 13459 | "\xB6\xF0\x8B\x97\xB4\xCF\x82\xB7" |
| 13460 | "\x15\x48\x44\x99\x09\xF6\xE0\xD7" |
| 13461 | "\xBC\xF1\x5B\x91\x4F\x30\x22\xA2" |
| 13462 | "\x45\xC4\x68\x55\xC2\xBE\xA7\xD2" |
| 13463 | "\x12\x53\x35\x9C\xF9\xE7\x35\x5D" |
| 13464 | "\x81\xE4\x86\x42\xC3\x58\xFB\xF0" |
| 13465 | "\x38\x9B\x8E\x5A\xEF\x83\x33\x0F" |
| 13466 | "\x00\x4E\x3F\x9F\xF5\x84\x62\xC4" |
| 13467 | "\x19\x35\x88\x22\x45\x59\x0E\x8F" |
| 13468 | "\xEC\x27\xDD\x4A\xA4\x1F\xBC\x41" |
| 13469 | "\x9B\x66\x8D\x32\xBA\x81\x34\x87" |
| 13470 | "\x0E\x74\x33\x30\x62\xB9\x89\xDF" |
| 13471 | "\xF9\xC5\xDD\x27\xB3\x39\xCB\xCB", |
| 13472 | .ilen = 496, |
| 13473 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 13474 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 13475 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 13476 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 13477 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 13478 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 13479 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 13480 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 13481 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 13482 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 13483 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 13484 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 13485 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 13486 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 13487 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 13488 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 13489 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 13490 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 13491 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 13492 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 13493 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 13494 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 13495 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 13496 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 13497 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 13498 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 13499 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 13500 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 13501 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 13502 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 13503 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 13504 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 13505 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 13506 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 13507 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 13508 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 13509 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 13510 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 13511 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 13512 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 13513 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 13514 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 13515 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 13516 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 13517 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 13518 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 13519 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 13520 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 13521 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 13522 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 13523 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 13524 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 13525 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 13526 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 13527 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 13528 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 13529 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 13530 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 13531 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 13532 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 13533 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 13534 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 13535 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13536 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 13537 | .np = 3, |
| 13538 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13539 | }, |
| 13540 | }; |
| 13541 | |
| 13542 | static struct cipher_testvec cast6_lrw_enc_tv_template[] = { |
| 13543 | { /* Generated from TF test vectors */ |
| 13544 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 13545 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 13546 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 13547 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 13548 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 13549 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 13550 | .klen = 48, |
| 13551 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13552 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 13553 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 13554 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 13555 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 13556 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 13557 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 13558 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 13559 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 13560 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 13561 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 13562 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 13563 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 13564 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 13565 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 13566 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 13567 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 13568 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 13569 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 13570 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 13571 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 13572 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 13573 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 13574 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 13575 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 13576 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 13577 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 13578 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 13579 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 13580 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 13581 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 13582 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 13583 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 13584 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 13585 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 13586 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 13587 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 13588 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 13589 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 13590 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 13591 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 13592 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 13593 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 13594 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 13595 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 13596 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 13597 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 13598 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 13599 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 13600 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 13601 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 13602 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 13603 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 13604 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 13605 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 13606 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 13607 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 13608 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 13609 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 13610 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 13611 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 13612 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 13613 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 13614 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 13615 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 13616 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 13617 | .ilen = 512, |
| 13618 | .result = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF" |
| 13619 | "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB" |
| 13620 | "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA" |
| 13621 | "\x58\xB6\x73\xF0\xD7\x52\x34\xEF" |
| 13622 | "\xFB\x3E\x96\x81\xB7\x71\x34\xA4" |
| 13623 | "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1" |
| 13624 | "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7" |
| 13625 | "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B" |
| 13626 | "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08" |
| 13627 | "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D" |
| 13628 | "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE" |
| 13629 | "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA" |
| 13630 | "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D" |
| 13631 | "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28" |
| 13632 | "\x80\x1D\xF0\x30\xBA\x62\x77\x7D" |
| 13633 | "\xDB\x15\x69\xDF\xFA\x2A\x81\x64" |
| 13634 | "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30" |
| 13635 | "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7" |
| 13636 | "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B" |
| 13637 | "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61" |
| 13638 | "\x5E\xDB\xFC\x11\x74\x25\x96\x65" |
| 13639 | "\xE8\xE2\x34\x57\x77\x15\x5E\x70" |
| 13640 | "\xFF\x10\x90\xC3\x64\xF0\x11\x0A" |
| 13641 | "\x63\x3A\xD3\x55\x92\x15\x4B\x0C" |
| 13642 | "\xC7\x08\x89\x17\x3B\x99\xAD\x63" |
| 13643 | "\xE7\x06\xDF\x52\xBC\x15\x64\x45" |
| 13644 | "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9" |
| 13645 | "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23" |
| 13646 | "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E" |
| 13647 | "\xBD\xAB\x60\x1A\x51\x17\x54\x27" |
| 13648 | "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19" |
| 13649 | "\x2F\x6F\x20\xA7\x47\xED\x74\x6C" |
| 13650 | "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F" |
| 13651 | "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1" |
| 13652 | "\x07\x16\xDE\x76\xCC\x5E\x94\x02" |
| 13653 | "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F" |
| 13654 | "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7" |
| 13655 | "\x6E\x21\x58\x36\x06\xDE\xB3\xD4" |
| 13656 | "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23" |
| 13657 | "\x51\x21\x2B\x32\x68\xAA\xF8\xA8" |
| 13658 | "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7" |
| 13659 | "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25" |
| 13660 | "\x30\xC7\x10\x3F\x97\x27\x01\x8E" |
| 13661 | "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB" |
| 13662 | "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8" |
| 13663 | "\x22\xE2\xE6\x92\xA7\x5F\x11\x32" |
| 13664 | "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54" |
| 13665 | "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC" |
| 13666 | "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5" |
| 13667 | "\x96\x3D\x69\x91\x20\x4E\xF2\x61" |
| 13668 | "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A" |
| 13669 | "\x78\x39\xB0\xE0\xCF\x12\x56\xD6" |
| 13670 | "\x05\xDC\xF9\x19\x66\x44\x1D\xF9" |
| 13671 | "\x82\x37\xD4\xC2\x60\xB6\x31\xDF" |
| 13672 | "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D" |
| 13673 | "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9" |
| 13674 | "\x9B\x8D\xA7\x00\x86\x25\xB6\x14" |
| 13675 | "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3" |
| 13676 | "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6" |
| 13677 | "\x15\xB7\x94\x7D\x4E\x70\x4C\x75" |
| 13678 | "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A" |
| 13679 | "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5" |
| 13680 | "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7" |
| 13681 | "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46", |
| 13682 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13683 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 13684 | .np = 3, |
| 13685 | .tap = { 512 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13686 | }, |
| 13687 | }; |
| 13688 | |
| 13689 | static struct cipher_testvec cast6_lrw_dec_tv_template[] = { |
| 13690 | { /* Generated from TF test vectors */ |
| 13691 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 13692 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 13693 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 13694 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 13695 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 13696 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 13697 | .klen = 48, |
| 13698 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 13699 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 13700 | .input = "\x55\x25\x09\x8B\xB5\xD5\xF8\xBF" |
| 13701 | "\x37\x4A\xFE\x3C\x47\xD8\xE6\xEB" |
| 13702 | "\xCA\xA4\x9B\xB0\xAB\x6D\x64\xCA" |
| 13703 | "\x58\xB6\x73\xF0\xD7\x52\x34\xEF" |
| 13704 | "\xFB\x3E\x96\x81\xB7\x71\x34\xA4" |
| 13705 | "\x55\x20\xBE\x39\x5A\x2B\xF9\xD1" |
| 13706 | "\x65\x0B\xDA\xD3\x7E\xB3\xA6\xF7" |
| 13707 | "\x2E\x0B\x5A\x52\xDB\x39\x8C\x9B" |
| 13708 | "\x61\x17\x5F\xAF\xB6\x5A\xC8\x08" |
| 13709 | "\xA7\xB7\x2A\x11\x7C\x97\x38\x9D" |
| 13710 | "\x59\x0E\x66\x59\x5E\xD8\x8B\xCE" |
| 13711 | "\x70\xE0\xC3\x42\xB0\x8C\x0F\xBA" |
| 13712 | "\xB2\x0D\x81\xB6\xBE\x61\x1C\x2D" |
| 13713 | "\x7E\xEA\x91\x25\xAC\xEC\xF8\x28" |
| 13714 | "\x80\x1D\xF0\x30\xBA\x62\x77\x7D" |
| 13715 | "\xDB\x15\x69\xDF\xFA\x2A\x81\x64" |
| 13716 | "\x95\x5B\xA4\x7F\x3E\x4F\xE3\x30" |
| 13717 | "\xB0\x5C\xC2\x05\xF8\xF0\x29\xE7" |
| 13718 | "\x0A\xA0\x66\xB2\x5D\x0F\x39\x2B" |
| 13719 | "\xB4\xB3\x00\xA9\xD0\xAB\x63\x61" |
| 13720 | "\x5E\xDB\xFC\x11\x74\x25\x96\x65" |
| 13721 | "\xE8\xE2\x34\x57\x77\x15\x5E\x70" |
| 13722 | "\xFF\x10\x90\xC3\x64\xF0\x11\x0A" |
| 13723 | "\x63\x3A\xD3\x55\x92\x15\x4B\x0C" |
| 13724 | "\xC7\x08\x89\x17\x3B\x99\xAD\x63" |
| 13725 | "\xE7\x06\xDF\x52\xBC\x15\x64\x45" |
| 13726 | "\x9D\x7A\xFB\x69\xBC\x2D\x6E\xA9" |
| 13727 | "\x35\xD9\xD8\xF5\x0C\xC4\xA2\x23" |
| 13728 | "\x9C\x18\x8B\xA8\x8C\xFE\xF8\x0E" |
| 13729 | "\xBD\xAB\x60\x1A\x51\x17\x54\x27" |
| 13730 | "\xB6\xE8\xBE\x0F\xA9\xA5\x82\x19" |
| 13731 | "\x2F\x6F\x20\xA7\x47\xED\x74\x6C" |
| 13732 | "\x4E\xC1\xF8\x8C\x14\xF3\xBB\x1F" |
| 13733 | "\xED\x4D\x8F\x7C\x37\xEF\x19\xA1" |
| 13734 | "\x07\x16\xDE\x76\xCC\x5E\x94\x02" |
| 13735 | "\xFB\xBF\xE4\x81\x50\xCE\xFC\x0F" |
| 13736 | "\x9E\xCF\x3D\xF6\x67\x00\xBF\xA7" |
| 13737 | "\x6E\x21\x58\x36\x06\xDE\xB3\xD4" |
| 13738 | "\xA2\xFA\xD8\x4E\xE0\xB9\x7F\x23" |
| 13739 | "\x51\x21\x2B\x32\x68\xAA\xF8\xA8" |
| 13740 | "\x93\x08\xB5\x6D\xE6\x43\x2C\xB7" |
| 13741 | "\x31\xB2\x0F\xD0\xA2\x51\xC0\x25" |
| 13742 | "\x30\xC7\x10\x3F\x97\x27\x01\x8E" |
| 13743 | "\xFA\xD8\x4F\x78\xD8\x2E\x1D\xEB" |
| 13744 | "\xA1\x37\x52\x0F\x7B\x5E\x87\xA8" |
| 13745 | "\x22\xE2\xE6\x92\xA7\x5F\x11\x32" |
| 13746 | "\xCC\x93\x34\xFC\xD1\x7E\xAE\x54" |
| 13747 | "\xBC\x6A\x1B\x91\xD1\x2E\x21\xEC" |
| 13748 | "\x5D\xF1\xC4\xF1\x55\x20\xBF\xE5" |
| 13749 | "\x96\x3D\x69\x91\x20\x4E\xF2\x61" |
| 13750 | "\xDA\x77\xFE\xEE\xC3\x74\x57\x2A" |
| 13751 | "\x78\x39\xB0\xE0\xCF\x12\x56\xD6" |
| 13752 | "\x05\xDC\xF9\x19\x66\x44\x1D\xF9" |
| 13753 | "\x82\x37\xD4\xC2\x60\xB6\x31\xDF" |
| 13754 | "\x0C\xAF\xBC\x8B\x55\x9A\xC8\x2D" |
| 13755 | "\xAB\xA7\x88\x7B\x41\xE8\x29\xC9" |
| 13756 | "\x9B\x8D\xA7\x00\x86\x25\xB6\x14" |
| 13757 | "\xF5\x13\x73\xD7\x4B\x6B\x83\xF3" |
| 13758 | "\xAF\x96\x00\xE4\xB7\x3C\x65\xA6" |
| 13759 | "\x15\xB7\x94\x7D\x4E\x70\x4C\x75" |
| 13760 | "\xF3\xB4\x02\xA9\x17\x1C\x7A\x0A" |
| 13761 | "\xC0\xD5\x33\x11\x56\xDE\xDC\xF5" |
| 13762 | "\x8D\xD9\xCD\x3B\x22\x67\x18\xC7" |
| 13763 | "\xC4\xF5\x99\x61\xBC\xBB\x5B\x46", |
| 13764 | .ilen = 512, |
| 13765 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 13766 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 13767 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 13768 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 13769 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 13770 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 13771 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 13772 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 13773 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 13774 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 13775 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 13776 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 13777 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 13778 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 13779 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 13780 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 13781 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 13782 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 13783 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 13784 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 13785 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 13786 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 13787 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 13788 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 13789 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 13790 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 13791 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 13792 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 13793 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 13794 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 13795 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 13796 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 13797 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 13798 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 13799 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 13800 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 13801 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 13802 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 13803 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 13804 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 13805 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 13806 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 13807 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 13808 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 13809 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 13810 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 13811 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 13812 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 13813 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 13814 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 13815 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 13816 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 13817 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 13818 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 13819 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 13820 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 13821 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 13822 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 13823 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 13824 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 13825 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 13826 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 13827 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 13828 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 13829 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13830 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 13831 | .np = 3, |
| 13832 | .tap = { 512 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13833 | }, |
| 13834 | }; |
| 13835 | |
| 13836 | static struct cipher_testvec cast6_xts_enc_tv_template[] = { |
| 13837 | { /* Generated from TF test vectors */ |
| 13838 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 13839 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 13840 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 13841 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 13842 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13843 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 13844 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 13845 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 13846 | .klen = 64, |
| 13847 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 13848 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13849 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13850 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13851 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13852 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13853 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13854 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13855 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13856 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13857 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13858 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13859 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13860 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13861 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13862 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13863 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13864 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13865 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13866 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13867 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13868 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13869 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13870 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13871 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13872 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13873 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13874 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13875 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13876 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13877 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13878 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13879 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13880 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 13881 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 13882 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 13883 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 13884 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 13885 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 13886 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 13887 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 13888 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 13889 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 13890 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 13891 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 13892 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 13893 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 13894 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 13895 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 13896 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 13897 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 13898 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 13899 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 13900 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 13901 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 13902 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 13903 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 13904 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 13905 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 13906 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 13907 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 13908 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 13909 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 13910 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 13911 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 13912 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 13913 | .ilen = 512, |
| 13914 | .result = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78" |
| 13915 | "\x88\x5A\x4F\x8D\x82\x76\x52\x6D" |
| 13916 | "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6" |
| 13917 | "\xE2\xC5\x62\x8D\x61\xA1\x01\xED" |
| 13918 | "\xD9\x38\x01\xC1\x43\x63\x4E\x88" |
| 13919 | "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71" |
| 13920 | "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13" |
| 13921 | "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81" |
| 13922 | "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6" |
| 13923 | "\x60\x54\x09\x32\xFE\x6A\x76\x2E" |
| 13924 | "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D" |
| 13925 | "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB" |
| 13926 | "\xB8\x25\x70\xF8\x40\xBC\x90\x1B" |
| 13927 | "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD" |
| 13928 | "\xD3\x3B\xCF\x60\xA1\x78\x94\x57" |
| 13929 | "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98" |
| 13930 | "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA" |
| 13931 | "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67" |
| 13932 | "\x05\xDD\x1D\x58\x6E\x2F\x95\x08" |
| 13933 | "\x3A\xF8\x78\x76\x82\x56\xA7\xEC" |
| 13934 | "\x51\x4B\x85\x77\xC2\x4C\x4A\x34" |
| 13935 | "\x71\x38\x17\x91\x44\xE8\xFC\x65" |
| 13936 | "\x99\x0D\x52\x91\xEE\xF8\xEF\x27" |
| 13937 | "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4" |
| 13938 | "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D" |
| 13939 | "\x59\x22\x9B\x29\x5C\x18\xF0\xC3" |
| 13940 | "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1" |
| 13941 | "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3" |
| 13942 | "\x91\x3B\x49\x73\x18\xAB\xD4\xC9" |
| 13943 | "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A" |
| 13944 | "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E" |
| 13945 | "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24" |
| 13946 | "\xE6\x87\xEA\xFE\x96\x25\x67\x8E" |
| 13947 | "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C" |
| 13948 | "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9" |
| 13949 | "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97" |
| 13950 | "\x49\xF7\x04\xCB\xEF\x84\x98\x33" |
| 13951 | "\xAF\x38\xD3\x04\x1C\x24\x71\x38" |
| 13952 | "\xC7\x71\xDD\x43\x0D\x12\x4A\x18" |
| 13953 | "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95" |
| 13954 | "\x02\x43\x5D\xCE\x19\xCC\xCD\x66" |
| 13955 | "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C" |
| 13956 | "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB" |
| 13957 | "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B" |
| 13958 | "\x30\x45\xA9\xB7\xAF\x80\x64\x6F" |
| 13959 | "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE" |
| 13960 | "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE" |
| 13961 | "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8" |
| 13962 | "\x97\xA3\xE1\x6F\x38\x24\x34\x88" |
| 13963 | "\xCE\xBD\x32\x52\xE0\x00\x6C\x94" |
| 13964 | "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F" |
| 13965 | "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59" |
| 13966 | "\x34\x39\xA8\x35\x12\xB7\xBC\xAC" |
| 13967 | "\xEA\x52\x9C\x78\x02\x6D\x92\x36" |
| 13968 | "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83" |
| 13969 | "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64" |
| 13970 | "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3" |
| 13971 | "\xB0\xEB\x31\xE4\x69\x95\xAB\x35" |
| 13972 | "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82" |
| 13973 | "\xF8\xD9\x47\x82\xA9\x82\x03\x91" |
| 13974 | "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F" |
| 13975 | "\x45\x72\x80\x17\x81\xBD\x9D\x62" |
| 13976 | "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC" |
| 13977 | "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9", |
| 13978 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 13979 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 13980 | .np = 3, |
| 13981 | .tap = { 512 - 20, 4, 16 }, |
Johannes Goetzfried | 9b8b040 | 2012-07-11 19:38:29 +0200 | [diff] [blame] | 13982 | }, |
| 13983 | }; |
| 13984 | |
| 13985 | static struct cipher_testvec cast6_xts_dec_tv_template[] = { |
| 13986 | { /* Generated from TF test vectors */ |
| 13987 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 13988 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 13989 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 13990 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 13991 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 13992 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 13993 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 13994 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 13995 | .klen = 64, |
| 13996 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 13997 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 13998 | .input = "\xDE\x6F\x22\xA5\xE8\x39\xE8\x78" |
| 13999 | "\x88\x5A\x4F\x8D\x82\x76\x52\x6D" |
| 14000 | "\xB2\x41\x16\xF4\x2B\xA6\xEB\xF6" |
| 14001 | "\xE2\xC5\x62\x8D\x61\xA1\x01\xED" |
| 14002 | "\xD9\x38\x01\xC1\x43\x63\x4E\x88" |
| 14003 | "\xC9\x4B\x5A\x88\x80\xB7\x5C\x71" |
| 14004 | "\x47\xEE\x11\xD8\xB7\x2D\x5D\x13" |
| 14005 | "\x1A\xB1\x68\x5B\x61\xA7\xA9\x81" |
| 14006 | "\x8B\x83\xA1\x6A\xAA\x36\xD6\xB6" |
| 14007 | "\x60\x54\x09\x32\xFE\x6A\x76\x2E" |
| 14008 | "\x28\xFF\xD5\xD6\xDD\x1D\x45\x7D" |
| 14009 | "\xF0\x8B\xF3\x32\x4E\x6C\x12\xCB" |
| 14010 | "\xB8\x25\x70\xF8\x40\xBC\x90\x1B" |
| 14011 | "\x11\xC3\x59\xAF\xF0\x2F\x92\xDD" |
| 14012 | "\xD3\x3B\xCF\x60\xA1\x78\x94\x57" |
| 14013 | "\xAF\x76\xC1\x67\xA6\x3C\xCD\x98" |
| 14014 | "\xB1\xF7\x27\xB9\xA3\xBD\x10\xEA" |
| 14015 | "\xCD\x8B\xC2\xF2\x14\xF2\xB2\x67" |
| 14016 | "\x05\xDD\x1D\x58\x6E\x2F\x95\x08" |
| 14017 | "\x3A\xF8\x78\x76\x82\x56\xA7\xEC" |
| 14018 | "\x51\x4B\x85\x77\xC2\x4C\x4A\x34" |
| 14019 | "\x71\x38\x17\x91\x44\xE8\xFC\x65" |
| 14020 | "\x99\x0D\x52\x91\xEE\xF8\xEF\x27" |
| 14021 | "\x2A\x9E\x6E\x78\xC4\x26\x87\xF4" |
| 14022 | "\x8A\xF0\x2D\x04\xE8\x14\x92\x5D" |
| 14023 | "\x59\x22\x9B\x29\x5C\x18\xF0\xC3" |
| 14024 | "\x47\xF3\x76\xD8\xE4\xF3\x1B\xD1" |
| 14025 | "\x70\xA3\x0D\xB5\x70\x02\x1D\xA3" |
| 14026 | "\x91\x3B\x49\x73\x18\xAB\xD4\xC9" |
| 14027 | "\xC3\x1E\xEF\x1F\xFE\xD5\x59\x8A" |
| 14028 | "\xD7\xF6\xC9\x71\x67\x79\xD7\x0E" |
| 14029 | "\xBE\x1F\x8E\xEC\x55\x7E\x4F\x24" |
| 14030 | "\xE6\x87\xEA\xFE\x96\x25\x67\x8E" |
| 14031 | "\x93\x03\xFA\xFF\xCE\xAF\xB2\x3C" |
| 14032 | "\x6F\xEB\x57\xFB\xD3\x28\x87\xA9" |
| 14033 | "\xCE\xC2\xF5\x9C\xC6\x67\xB5\x97" |
| 14034 | "\x49\xF7\x04\xCB\xEF\x84\x98\x33" |
| 14035 | "\xAF\x38\xD3\x04\x1C\x24\x71\x38" |
| 14036 | "\xC7\x71\xDD\x43\x0D\x12\x4A\x18" |
| 14037 | "\xBA\xC4\xAF\xBA\xB2\x5B\xEB\x95" |
| 14038 | "\x02\x43\x5D\xCE\x19\xCC\xCD\x66" |
| 14039 | "\x91\x0B\x8C\x7F\x51\xC4\xBF\x3C" |
| 14040 | "\x8B\xF1\xCC\xAA\x29\xD7\x87\xCB" |
| 14041 | "\x3E\xC5\xF3\xC9\x75\xE8\xA3\x5B" |
| 14042 | "\x30\x45\xA9\xB7\xAF\x80\x64\x6F" |
| 14043 | "\x75\x4A\xA7\xC0\x6D\x19\x6B\xDE" |
| 14044 | "\x17\xDE\x6D\xEA\x87\x9F\x95\xAE" |
| 14045 | "\xF5\x3C\xEE\x54\xB8\x27\x84\xF8" |
| 14046 | "\x97\xA3\xE1\x6F\x38\x24\x34\x88" |
| 14047 | "\xCE\xBD\x32\x52\xE0\x00\x6C\x94" |
| 14048 | "\xC9\xD7\x5D\x37\x81\x33\x2E\x7F" |
| 14049 | "\x4F\x7E\x2E\x0D\x94\xBD\xEA\x59" |
| 14050 | "\x34\x39\xA8\x35\x12\xB7\xBC\xAC" |
| 14051 | "\xEA\x52\x9C\x78\x02\x6D\x92\x36" |
| 14052 | "\xFB\x59\x2B\xA4\xEA\x7B\x1B\x83" |
| 14053 | "\xE1\x4D\x5E\x2A\x7E\x92\xB1\x64" |
| 14054 | "\xDE\xE0\x27\x4B\x0A\x6F\x4C\xE3" |
| 14055 | "\xB0\xEB\x31\xE4\x69\x95\xAB\x35" |
| 14056 | "\x8B\x2C\xF5\x6B\x7F\xF1\xA2\x82" |
| 14057 | "\xF8\xD9\x47\x82\xA9\x82\x03\x91" |
| 14058 | "\x69\x1F\xBE\x4C\xE7\xC7\x34\x2F" |
| 14059 | "\x45\x72\x80\x17\x81\xBD\x9D\x62" |
| 14060 | "\xA1\xAC\xE8\xCF\xC6\x74\xCF\xDC" |
| 14061 | "\x22\x60\x4E\xE8\xA4\x5D\x85\xB9", |
| 14062 | .ilen = 512, |
| 14063 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14064 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14065 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14066 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14067 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14068 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14069 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14070 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14071 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14072 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14073 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14074 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14075 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14076 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14077 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14078 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14079 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14080 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14081 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14082 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14083 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14084 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14085 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14086 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14087 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14088 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14089 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14090 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14091 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14092 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14093 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14094 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 14095 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14096 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14097 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14098 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 14099 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 14100 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 14101 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 14102 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 14103 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 14104 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 14105 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 14106 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 14107 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 14108 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 14109 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 14110 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 14111 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 14112 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 14113 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 14114 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 14115 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 14116 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 14117 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 14118 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 14119 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 14120 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 14121 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 14122 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 14123 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 14124 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 14125 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 14126 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 14127 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 14128 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 14129 | .np = 3, |
| 14130 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14131 | }, |
| 14132 | }; |
| 14133 | |
| 14134 | |
| 14135 | /* |
| 14136 | * AES test vectors. |
| 14137 | */ |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 14138 | #define AES_ENC_TEST_VECTORS 4 |
| 14139 | #define AES_DEC_TEST_VECTORS 4 |
| 14140 | #define AES_CBC_ENC_TEST_VECTORS 5 |
| 14141 | #define AES_CBC_DEC_TEST_VECTORS 5 |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 14142 | #define HMAC_MD5_ECB_CIPHER_NULL_ENC_TEST_VECTORS 2 |
| 14143 | #define HMAC_MD5_ECB_CIPHER_NULL_DEC_TEST_VECTORS 2 |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 14144 | #define HMAC_SHA1_ECB_CIPHER_NULL_ENC_TEST_VEC 2 |
| 14145 | #define HMAC_SHA1_ECB_CIPHER_NULL_DEC_TEST_VEC 2 |
| 14146 | #define HMAC_SHA1_AES_CBC_ENC_TEST_VEC 7 |
| 14147 | #define HMAC_SHA256_AES_CBC_ENC_TEST_VEC 7 |
| 14148 | #define HMAC_SHA512_AES_CBC_ENC_TEST_VEC 7 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14149 | #define AES_LRW_ENC_TEST_VECTORS 8 |
| 14150 | #define AES_LRW_DEC_TEST_VECTORS 8 |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 14151 | #define AES_XTS_ENC_TEST_VECTORS 5 |
| 14152 | #define AES_XTS_DEC_TEST_VECTORS 5 |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 14153 | #define AES_CTR_ENC_TEST_VECTORS 5 |
| 14154 | #define AES_CTR_DEC_TEST_VECTORS 5 |
Puneet Saxena | ba0e14a | 2011-05-04 15:04:10 +1000 | [diff] [blame] | 14155 | #define AES_OFB_ENC_TEST_VECTORS 1 |
| 14156 | #define AES_OFB_DEC_TEST_VECTORS 1 |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 14157 | #define AES_CTR_3686_ENC_TEST_VECTORS 7 |
| 14158 | #define AES_CTR_3686_DEC_TEST_VECTORS 6 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14159 | #define AES_GCM_ENC_TEST_VECTORS 9 |
| 14160 | #define AES_GCM_DEC_TEST_VECTORS 8 |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 14161 | #define AES_GCM_4106_ENC_TEST_VECTORS 23 |
| 14162 | #define AES_GCM_4106_DEC_TEST_VECTORS 23 |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 14163 | #define AES_GCM_4543_ENC_TEST_VECTORS 1 |
| 14164 | #define AES_GCM_4543_DEC_TEST_VECTORS 2 |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 14165 | #define AES_CCM_ENC_TEST_VECTORS 8 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14166 | #define AES_CCM_DEC_TEST_VECTORS 7 |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 14167 | #define AES_CCM_4309_ENC_TEST_VECTORS 7 |
| 14168 | #define AES_CCM_4309_DEC_TEST_VECTORS 10 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14169 | |
| 14170 | static struct cipher_testvec aes_enc_tv_template[] = { |
| 14171 | { /* From FIPS-197 */ |
| 14172 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14173 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14174 | .klen = 16, |
| 14175 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 14176 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 14177 | .ilen = 16, |
| 14178 | .result = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" |
| 14179 | "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", |
| 14180 | .rlen = 16, |
| 14181 | }, { |
| 14182 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14183 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14184 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 14185 | .klen = 24, |
| 14186 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 14187 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 14188 | .ilen = 16, |
| 14189 | .result = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" |
| 14190 | "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", |
| 14191 | .rlen = 16, |
| 14192 | }, { |
| 14193 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14194 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14195 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14196 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 14197 | .klen = 32, |
| 14198 | .input = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 14199 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 14200 | .ilen = 16, |
| 14201 | .result = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" |
| 14202 | "\xea\xfc\x49\x90\x4b\x49\x60\x89", |
| 14203 | .rlen = 16, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 14204 | }, { /* Generated with Crypto++ */ |
| 14205 | .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32" |
| 14206 | "\x55\x0F\x32\x55\x78\x9B\xBE\x78" |
| 14207 | "\x9B\xBE\xE1\x04\x27\xE1\x04\x27" |
| 14208 | "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6", |
| 14209 | .klen = 32, |
| 14210 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 14211 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 14212 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 14213 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 14214 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 14215 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 14216 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 14217 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 14218 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 14219 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 14220 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 14221 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 14222 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 14223 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 14224 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 14225 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 14226 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 14227 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 14228 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 14229 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 14230 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 14231 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 14232 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 14233 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 14234 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 14235 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 14236 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 14237 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 14238 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 14239 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 14240 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 14241 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 14242 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 14243 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 14244 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 14245 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 14246 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 14247 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 14248 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 14249 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 14250 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 14251 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 14252 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 14253 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 14254 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 14255 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 14256 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 14257 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 14258 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 14259 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 14260 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 14261 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 14262 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 14263 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 14264 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 14265 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 14266 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 14267 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 14268 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 14269 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 14270 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 14271 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 14272 | .ilen = 496, |
| 14273 | .result = "\x71\x73\xF7\xDB\x24\x93\x21\x6D" |
| 14274 | "\x61\x1E\xBB\x63\x42\x79\xDB\x64" |
| 14275 | "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B" |
| 14276 | "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F" |
| 14277 | "\x5E\x06\xF0\x5F\x31\x51\x18\x37" |
| 14278 | "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1" |
| 14279 | "\xDD\x8D\x22\x65\x2B\x00\x50\xCE" |
| 14280 | "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA" |
| 14281 | "\x78\x69\x7F\xAE\x8F\x8B\x69\x37" |
| 14282 | "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09" |
| 14283 | "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8" |
| 14284 | "\x81\x82\x27\xFA\x45\x9C\x29\xA4" |
| 14285 | "\x22\x8B\x78\x69\x5B\x46\xF9\x39" |
| 14286 | "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C" |
| 14287 | "\x41\x72\x51\x97\x1D\x07\x49\xA0" |
| 14288 | "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03" |
| 14289 | "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64" |
| 14290 | "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA" |
| 14291 | "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F" |
| 14292 | "\xE1\x8B\x22\x17\x59\x0C\x47\x89" |
| 14293 | "\x33\xA1\xD6\x47\x03\x19\x4F\xA8" |
| 14294 | "\x67\x69\xF0\x5B\xF0\x20\xAD\x06" |
| 14295 | "\x27\x81\x92\xD8\xC5\xBA\x98\x12" |
| 14296 | "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD" |
| 14297 | "\x12\x2F\x07\x32\xEE\x39\xAF\x64" |
| 14298 | "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E" |
| 14299 | "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68" |
| 14300 | "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC" |
| 14301 | "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F" |
| 14302 | "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C" |
| 14303 | "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B" |
| 14304 | "\x25\xFB\x26\x81\xE0\x2F\xF0\x96" |
| 14305 | "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64" |
| 14306 | "\x63\x29\x4C\x8E\x18\x13\xC5\xBF" |
| 14307 | "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29" |
| 14308 | "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1" |
| 14309 | "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1" |
| 14310 | "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA" |
| 14311 | "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50" |
| 14312 | "\x31\xCB\x69\x3F\x96\x15\xD6\xF5" |
| 14313 | "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10" |
| 14314 | "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A" |
| 14315 | "\xDC\x6A\x80\x34\x73\x97\x1B\xC5" |
| 14316 | "\xCA\x26\x16\x77\x0E\x60\xAB\x89" |
| 14317 | "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4" |
| 14318 | "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70" |
| 14319 | "\x42\x71\x51\x78\x70\xB3\xE0\x3D" |
| 14320 | "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92" |
| 14321 | "\x11\x08\x42\x4F\xE5\xAD\x26\x92" |
| 14322 | "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47" |
| 14323 | "\x22\xC1\x95\xC1\x63\x7F\xCB\x03" |
| 14324 | "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA" |
| 14325 | "\x35\xA2\xFD\x45\x52\x39\x13\x6F" |
| 14326 | "\xC1\x53\xF3\x53\xDF\x33\x84\xD7" |
| 14327 | "\xD2\xC8\x37\xB0\x75\xE3\x41\x46" |
| 14328 | "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5" |
| 14329 | "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD" |
| 14330 | "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F" |
| 14331 | "\x40\x86\x7F\x51\xE1\x11\x9C\xCB" |
| 14332 | "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF" |
| 14333 | "\x09\x79\xA0\x43\x5C\x0D\x08\x58" |
| 14334 | "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9", |
| 14335 | .rlen = 496, |
| 14336 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 14337 | .np = 3, |
| 14338 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14339 | }, |
| 14340 | }; |
| 14341 | |
| 14342 | static struct cipher_testvec aes_dec_tv_template[] = { |
| 14343 | { /* From FIPS-197 */ |
| 14344 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14345 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14346 | .klen = 16, |
| 14347 | .input = "\x69\xc4\xe0\xd8\x6a\x7b\x04\x30" |
| 14348 | "\xd8\xcd\xb7\x80\x70\xb4\xc5\x5a", |
| 14349 | .ilen = 16, |
| 14350 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 14351 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 14352 | .rlen = 16, |
| 14353 | }, { |
| 14354 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14355 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14356 | "\x10\x11\x12\x13\x14\x15\x16\x17", |
| 14357 | .klen = 24, |
| 14358 | .input = "\xdd\xa9\x7c\xa4\x86\x4c\xdf\xe0" |
| 14359 | "\x6e\xaf\x70\xa0\xec\x0d\x71\x91", |
| 14360 | .ilen = 16, |
| 14361 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 14362 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 14363 | .rlen = 16, |
| 14364 | }, { |
| 14365 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14366 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14367 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14368 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 14369 | .klen = 32, |
| 14370 | .input = "\x8e\xa2\xb7\xca\x51\x67\x45\xbf" |
| 14371 | "\xea\xfc\x49\x90\x4b\x49\x60\x89", |
| 14372 | .ilen = 16, |
| 14373 | .result = "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 14374 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 14375 | .rlen = 16, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 14376 | }, { /* Generated with Crypto++ */ |
| 14377 | .key = "\xA6\xC9\x83\xA6\xC9\xEC\x0F\x32" |
| 14378 | "\x55\x0F\x32\x55\x78\x9B\xBE\x78" |
| 14379 | "\x9B\xBE\xE1\x04\x27\xE1\x04\x27" |
| 14380 | "\x4A\x6D\x90\x4A\x6D\x90\xB3\xD6", |
| 14381 | .klen = 32, |
| 14382 | .input = "\x71\x73\xF7\xDB\x24\x93\x21\x6D" |
| 14383 | "\x61\x1E\xBB\x63\x42\x79\xDB\x64" |
| 14384 | "\x6F\x82\xC0\xCA\xA3\x9B\xFA\x0B" |
| 14385 | "\xD9\x08\xC7\x4A\x90\xAE\x8F\x5F" |
| 14386 | "\x5E\x06\xF0\x5F\x31\x51\x18\x37" |
| 14387 | "\x45\xD7\xCA\x3A\xFD\x6C\x3F\xE1" |
| 14388 | "\xDD\x8D\x22\x65\x2B\x00\x50\xCE" |
| 14389 | "\xBA\x28\x67\xD7\xCE\x0E\x0D\xEA" |
| 14390 | "\x78\x69\x7F\xAE\x8F\x8B\x69\x37" |
| 14391 | "\x75\xE0\xDC\x96\xE0\xB7\xF4\x09" |
| 14392 | "\xCB\x6D\xA2\xFB\xDA\xAF\x09\xF8" |
| 14393 | "\x81\x82\x27\xFA\x45\x9C\x29\xA4" |
| 14394 | "\x22\x8B\x78\x69\x5B\x46\xF9\x39" |
| 14395 | "\x1B\xCC\xF9\x1D\x09\xEB\xBC\x5C" |
| 14396 | "\x41\x72\x51\x97\x1D\x07\x49\xA0" |
| 14397 | "\x1B\x8E\x65\x4B\xB2\x6A\x12\x03" |
| 14398 | "\x6A\x60\x95\xAC\xBD\xAC\x1A\x64" |
| 14399 | "\xDE\x5A\xA5\xF0\x83\x2F\xCB\xCA" |
| 14400 | "\x22\x74\xA6\x6C\x9B\x73\xCE\x3F" |
| 14401 | "\xE1\x8B\x22\x17\x59\x0C\x47\x89" |
| 14402 | "\x33\xA1\xD6\x47\x03\x19\x4F\xA8" |
| 14403 | "\x67\x69\xF0\x5B\xF0\x20\xAD\x06" |
| 14404 | "\x27\x81\x92\xD8\xC5\xBA\x98\x12" |
| 14405 | "\xBE\x24\xB5\x2F\x75\x02\xC2\xAD" |
| 14406 | "\x12\x2F\x07\x32\xEE\x39\xAF\x64" |
| 14407 | "\x05\x8F\xB3\xD4\xEB\x1B\x46\x6E" |
| 14408 | "\xD9\x21\xF9\xC4\xB7\xC9\x45\x68" |
| 14409 | "\xB4\xA1\x74\x9F\x82\x47\xEB\xCC" |
| 14410 | "\xBD\x0A\x14\x95\x0F\x8B\xA8\x2F" |
| 14411 | "\x4B\x1B\xA7\xBF\x82\xA6\x43\x0C" |
| 14412 | "\xB9\x39\x4A\xA8\x10\x6F\x50\x7B" |
| 14413 | "\x25\xFB\x26\x81\xE0\x2F\xF0\x96" |
| 14414 | "\x8D\x8B\xAC\x92\x0F\xF6\xED\x64" |
| 14415 | "\x63\x29\x4C\x8E\x18\x13\xC5\xBF" |
| 14416 | "\xFC\xA0\xD9\xBF\x7C\x3A\x0E\x29" |
| 14417 | "\x6F\xD1\x6C\x6F\xA5\xDA\xBF\xB1" |
| 14418 | "\x30\xEA\x44\x2D\xC3\x8F\x16\xE1" |
| 14419 | "\x66\xFA\xA3\x21\x3E\xFC\x13\xCA" |
| 14420 | "\xF0\xF6\xF0\x59\xBD\x8F\x38\x50" |
| 14421 | "\x31\xCB\x69\x3F\x96\x15\xD6\xF5" |
| 14422 | "\xAE\xFF\xF6\xAA\x41\x85\x4C\x10" |
| 14423 | "\x58\xE3\xF9\x44\xE6\x28\xDA\x9A" |
| 14424 | "\xDC\x6A\x80\x34\x73\x97\x1B\xC5" |
| 14425 | "\xCA\x26\x16\x77\x0E\x60\xAB\x89" |
| 14426 | "\x0F\x04\x27\xBD\xCE\x3E\x71\xB4" |
| 14427 | "\xA0\xD7\x22\x7E\xDB\xEB\x24\x70" |
| 14428 | "\x42\x71\x51\x78\x70\xB3\xE0\x3D" |
| 14429 | "\x84\x8E\x8D\x7B\xD0\x6D\xEA\x92" |
| 14430 | "\x11\x08\x42\x4F\xE5\xAD\x26\x92" |
| 14431 | "\xD2\x00\xAE\xA8\xE3\x4B\x37\x47" |
| 14432 | "\x22\xC1\x95\xC1\x63\x7F\xCB\x03" |
| 14433 | "\xF3\xE3\xD7\x9D\x60\xC7\xBC\xEA" |
| 14434 | "\x35\xA2\xFD\x45\x52\x39\x13\x6F" |
| 14435 | "\xC1\x53\xF3\x53\xDF\x33\x84\xD7" |
| 14436 | "\xD2\xC8\x37\xB0\x75\xE3\x41\x46" |
| 14437 | "\xB3\xC7\x83\x2E\x8A\xBB\xA4\xE5" |
| 14438 | "\x7F\x3C\xFD\x8B\xEB\xEA\x63\xBD" |
| 14439 | "\xB7\x46\xE7\xBF\x09\x9C\x0D\x0F" |
| 14440 | "\x40\x86\x7F\x51\xE1\x11\x9C\xCB" |
| 14441 | "\x88\xE6\x68\x47\xE3\x2B\xC5\xFF" |
| 14442 | "\x09\x79\xA0\x43\x5C\x0D\x08\x58" |
| 14443 | "\x17\xBB\xC0\x6B\x62\x3F\x56\xE9", |
| 14444 | .ilen = 496, |
| 14445 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 14446 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 14447 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 14448 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 14449 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 14450 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 14451 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 14452 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 14453 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 14454 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 14455 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 14456 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 14457 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 14458 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 14459 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 14460 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 14461 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 14462 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 14463 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 14464 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 14465 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 14466 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 14467 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 14468 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 14469 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 14470 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 14471 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 14472 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 14473 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 14474 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 14475 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 14476 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 14477 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 14478 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 14479 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 14480 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 14481 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 14482 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 14483 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 14484 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 14485 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 14486 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 14487 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 14488 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 14489 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 14490 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 14491 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 14492 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 14493 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 14494 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 14495 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 14496 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 14497 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 14498 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 14499 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 14500 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 14501 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 14502 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 14503 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 14504 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 14505 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 14506 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 14507 | .rlen = 496, |
| 14508 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 14509 | .np = 3, |
| 14510 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14511 | }, |
| 14512 | }; |
| 14513 | |
| 14514 | static struct cipher_testvec aes_cbc_enc_tv_template[] = { |
| 14515 | { /* From RFC 3602 */ |
| 14516 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 14517 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 14518 | .klen = 16, |
| 14519 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 14520 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 14521 | .input = "Single block msg", |
| 14522 | .ilen = 16, |
| 14523 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 14524 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a", |
| 14525 | .rlen = 16, |
LABBE Corentin | 0d8dc96 | 2015-07-06 13:37:33 +0200 | [diff] [blame] | 14526 | .also_non_np = 1, |
| 14527 | .np = 8, |
| 14528 | .tap = { 3, 2, 3, 2, 3, 1, 1, 1 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14529 | }, { |
| 14530 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 14531 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 14532 | .klen = 16, |
| 14533 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 14534 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 14535 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14536 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14537 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14538 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 14539 | .ilen = 32, |
| 14540 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 14541 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 14542 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 14543 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", |
| 14544 | .rlen = 32, |
| 14545 | }, { /* From NIST SP800-38A */ |
| 14546 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 14547 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 14548 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 14549 | .klen = 24, |
| 14550 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14551 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14552 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 14553 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 14554 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 14555 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 14556 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 14557 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 14558 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 14559 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 14560 | .ilen = 64, |
| 14561 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 14562 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 14563 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 14564 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 14565 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 14566 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 14567 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 14568 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", |
| 14569 | .rlen = 64, |
| 14570 | }, { |
| 14571 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 14572 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 14573 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 14574 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 14575 | .klen = 32, |
| 14576 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14577 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14578 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 14579 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 14580 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 14581 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 14582 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 14583 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 14584 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 14585 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 14586 | .ilen = 64, |
| 14587 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 14588 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 14589 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 14590 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 14591 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 14592 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 14593 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 14594 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", |
| 14595 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 14596 | }, { /* Generated with Crypto++ */ |
| 14597 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 14598 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 14599 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 14600 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 14601 | .klen = 32, |
| 14602 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 14603 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 14604 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 14605 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 14606 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 14607 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 14608 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 14609 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 14610 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 14611 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 14612 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 14613 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 14614 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 14615 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 14616 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 14617 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 14618 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 14619 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 14620 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 14621 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 14622 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 14623 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 14624 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 14625 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 14626 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 14627 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 14628 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 14629 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 14630 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 14631 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 14632 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 14633 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 14634 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 14635 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 14636 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 14637 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 14638 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 14639 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 14640 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 14641 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 14642 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 14643 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 14644 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 14645 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 14646 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 14647 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 14648 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 14649 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 14650 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 14651 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 14652 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 14653 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 14654 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 14655 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 14656 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 14657 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 14658 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 14659 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 14660 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 14661 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 14662 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 14663 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 14664 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 14665 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 14666 | .ilen = 496, |
| 14667 | .result = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F" |
| 14668 | "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF" |
| 14669 | "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F" |
| 14670 | "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8" |
| 14671 | "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0" |
| 14672 | "\x11\x15\xFF\x6D\x1E\x82\x04\xA6" |
| 14673 | "\xB1\x74\xD1\x08\x13\xFD\x90\x7C" |
| 14674 | "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F" |
| 14675 | "\x0A\x70\xF1\x88\x07\xCF\x21\x26" |
| 14676 | "\x40\x40\x8A\xF5\x53\xF7\x24\x4F" |
| 14677 | "\x83\x38\x43\x5F\x08\x99\xEB\xE3" |
| 14678 | "\xDC\x02\x64\x67\x50\x6E\x15\xC3" |
| 14679 | "\x01\x1A\xA0\x81\x13\x65\xA6\x73" |
| 14680 | "\x71\xA6\x3B\x91\x83\x77\xBE\xFA" |
| 14681 | "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3" |
| 14682 | "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F" |
| 14683 | "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F" |
| 14684 | "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43" |
| 14685 | "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40" |
| 14686 | "\x03\xA8\x6C\x50\x42\x9F\x77\x59" |
| 14687 | "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99" |
| 14688 | "\x16\x24\x02\x07\x48\xAE\xF2\x31" |
| 14689 | "\x34\x0E\xC3\x85\xFE\x1C\x95\x99" |
| 14690 | "\x87\x58\x98\x8B\xE7\xC6\xC5\x70" |
| 14691 | "\x73\x81\x07\x7C\x56\x2F\xD8\x1B" |
| 14692 | "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F" |
| 14693 | "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98" |
| 14694 | "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04" |
| 14695 | "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5" |
| 14696 | "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD" |
| 14697 | "\xF1\xE3\x3D\x98\x50\x02\x77\x9E" |
| 14698 | "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66" |
| 14699 | "\x20\x02\x23\xDA\xDF\xA0\x89\xF6" |
| 14700 | "\xD8\xF3\x45\x24\x53\x6F\x16\x77" |
| 14701 | "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78" |
| 14702 | "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3" |
| 14703 | "\x57\xBC\x0B\x9F\x43\x51\x28\x4F" |
| 14704 | "\x07\x50\x6C\x68\x12\x07\xCF\xFA" |
| 14705 | "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C" |
| 14706 | "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD" |
| 14707 | "\x22\x39\x7B\x16\x03\x01\x69\xAF" |
| 14708 | "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5" |
| 14709 | "\x03\xB4\x2F\x51\x8A\x56\x17\x2B" |
| 14710 | "\x88\x42\x6D\x40\x68\x8F\xD0\x11" |
| 14711 | "\x19\xF9\x1F\x43\x79\x95\x31\xFA" |
| 14712 | "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC" |
| 14713 | "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC" |
| 14714 | "\x8D\x53\x6E\x72\x68\xA3\xC7\x63" |
| 14715 | "\x43\x2B\x78\xE0\x04\x29\x8F\x72" |
| 14716 | "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD" |
| 14717 | "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D" |
| 14718 | "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44" |
| 14719 | "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61" |
| 14720 | "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC" |
| 14721 | "\x58\x08\x15\xAB\x12\xAB\x17\x4A" |
| 14722 | "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB" |
| 14723 | "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F" |
| 14724 | "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61" |
| 14725 | "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD" |
| 14726 | "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A" |
| 14727 | "\xE0\x1F\x91\xF8\x82\x96\x2D\x65" |
| 14728 | "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02", |
| 14729 | .rlen = 496, |
| 14730 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 14731 | .np = 3, |
| 14732 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14733 | }, |
| 14734 | }; |
| 14735 | |
| 14736 | static struct cipher_testvec aes_cbc_dec_tv_template[] = { |
| 14737 | { /* From RFC 3602 */ |
| 14738 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 14739 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 14740 | .klen = 16, |
| 14741 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 14742 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 14743 | .input = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 14744 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a", |
| 14745 | .ilen = 16, |
| 14746 | .result = "Single block msg", |
| 14747 | .rlen = 16, |
LABBE Corentin | 0d8dc96 | 2015-07-06 13:37:33 +0200 | [diff] [blame] | 14748 | .also_non_np = 1, |
| 14749 | .np = 8, |
| 14750 | .tap = { 3, 2, 3, 2, 3, 1, 1, 1 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14751 | }, { |
| 14752 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 14753 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 14754 | .klen = 16, |
| 14755 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 14756 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 14757 | .input = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 14758 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 14759 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 14760 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1", |
| 14761 | .ilen = 32, |
| 14762 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14763 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 14764 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 14765 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 14766 | .rlen = 32, |
| 14767 | }, { /* From NIST SP800-38A */ |
| 14768 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 14769 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 14770 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 14771 | .klen = 24, |
| 14772 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14773 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14774 | .input = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 14775 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 14776 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 14777 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 14778 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 14779 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 14780 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 14781 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd", |
| 14782 | .ilen = 64, |
| 14783 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 14784 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 14785 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 14786 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 14787 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 14788 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 14789 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 14790 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 14791 | .rlen = 64, |
| 14792 | }, { |
| 14793 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 14794 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 14795 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 14796 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 14797 | .klen = 32, |
| 14798 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 14799 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 14800 | .input = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 14801 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 14802 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 14803 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 14804 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 14805 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 14806 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 14807 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b", |
| 14808 | .ilen = 64, |
| 14809 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 14810 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 14811 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 14812 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 14813 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 14814 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 14815 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 14816 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 14817 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 14818 | }, { /* Generated with Crypto++ */ |
| 14819 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 14820 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 14821 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 14822 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 14823 | .klen = 32, |
| 14824 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 14825 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 14826 | .input = "\xEA\x65\x8A\x19\xB0\x66\xC1\x3F" |
| 14827 | "\xCE\xF1\x97\x75\xC1\xFD\xB5\xAF" |
| 14828 | "\x52\x65\xF7\xFF\xBC\xD8\x2D\x9F" |
| 14829 | "\x2F\xB9\x26\x9B\x6F\x10\xB7\xB8" |
| 14830 | "\x26\xA1\x02\x46\xA2\xAD\xC6\xC0" |
| 14831 | "\x11\x15\xFF\x6D\x1E\x82\x04\xA6" |
| 14832 | "\xB1\x74\xD1\x08\x13\xFD\x90\x7C" |
| 14833 | "\xF5\xED\xD3\xDB\x5A\x0A\x0C\x2F" |
| 14834 | "\x0A\x70\xF1\x88\x07\xCF\x21\x26" |
| 14835 | "\x40\x40\x8A\xF5\x53\xF7\x24\x4F" |
| 14836 | "\x83\x38\x43\x5F\x08\x99\xEB\xE3" |
| 14837 | "\xDC\x02\x64\x67\x50\x6E\x15\xC3" |
| 14838 | "\x01\x1A\xA0\x81\x13\x65\xA6\x73" |
| 14839 | "\x71\xA6\x3B\x91\x83\x77\xBE\xFA" |
| 14840 | "\xDB\x71\x73\xA6\xC1\xAE\x43\xC3" |
| 14841 | "\x36\xCE\xD6\xEB\xF9\x30\x1C\x4F" |
| 14842 | "\x80\x38\x5E\x9C\x6E\xAB\x98\x2F" |
| 14843 | "\x53\xAF\xCF\xC8\x9A\xB8\x86\x43" |
| 14844 | "\x3E\x86\xE7\xA1\xF4\x2F\x30\x40" |
| 14845 | "\x03\xA8\x6C\x50\x42\x9F\x77\x59" |
| 14846 | "\x89\xA0\xC5\xEC\x9A\xB8\xDD\x99" |
| 14847 | "\x16\x24\x02\x07\x48\xAE\xF2\x31" |
| 14848 | "\x34\x0E\xC3\x85\xFE\x1C\x95\x99" |
| 14849 | "\x87\x58\x98\x8B\xE7\xC6\xC5\x70" |
| 14850 | "\x73\x81\x07\x7C\x56\x2F\xD8\x1B" |
| 14851 | "\xB7\xB9\x2B\xAB\xE3\x01\x87\x0F" |
| 14852 | "\xD8\xBB\xC0\x0D\xAC\x2C\x2F\x98" |
| 14853 | "\x3C\x0B\xA2\x99\x4A\x8C\xF7\x04" |
| 14854 | "\xE0\xE0\xCF\xD1\x81\x5B\xFE\xF5" |
| 14855 | "\x24\x04\xFD\xB8\xDF\x13\xD8\xCD" |
| 14856 | "\xF1\xE3\x3D\x98\x50\x02\x77\x9E" |
| 14857 | "\xBC\x22\xAB\xFA\xC2\x43\x1F\x66" |
| 14858 | "\x20\x02\x23\xDA\xDF\xA0\x89\xF6" |
| 14859 | "\xD8\xF3\x45\x24\x53\x6F\x16\x77" |
| 14860 | "\x02\x3E\x7B\x36\x5F\xA0\x3B\x78" |
| 14861 | "\x63\xA2\xBD\xB5\xA4\xCA\x1E\xD3" |
| 14862 | "\x57\xBC\x0B\x9F\x43\x51\x28\x4F" |
| 14863 | "\x07\x50\x6C\x68\x12\x07\xCF\xFA" |
| 14864 | "\x6B\x72\x0B\xEB\xF8\x88\x90\x2C" |
| 14865 | "\x7E\xF5\x91\xD1\x03\xD8\xD5\xBD" |
| 14866 | "\x22\x39\x7B\x16\x03\x01\x69\xAF" |
| 14867 | "\x3D\x38\x66\x28\x0C\xBE\x5B\xC5" |
| 14868 | "\x03\xB4\x2F\x51\x8A\x56\x17\x2B" |
| 14869 | "\x88\x42\x6D\x40\x68\x8F\xD0\x11" |
| 14870 | "\x19\xF9\x1F\x43\x79\x95\x31\xFA" |
| 14871 | "\x28\x7A\x3D\xF7\x66\xEB\xEF\xAC" |
| 14872 | "\x06\xB2\x01\xAD\xDB\x68\xDB\xEC" |
| 14873 | "\x8D\x53\x6E\x72\x68\xA3\xC7\x63" |
| 14874 | "\x43\x2B\x78\xE0\x04\x29\x8F\x72" |
| 14875 | "\xB2\x2C\xE6\x84\x03\x30\x6D\xCD" |
| 14876 | "\x26\x92\x37\xE1\x2F\xBB\x8B\x9D" |
| 14877 | "\xE4\x4C\xF6\x93\xBC\xD9\xAD\x44" |
| 14878 | "\x52\x65\xC7\xB0\x0E\x3F\x0E\x61" |
| 14879 | "\x56\x5D\x1C\x6D\xA7\x05\x2E\xBC" |
| 14880 | "\x58\x08\x15\xAB\x12\xAB\x17\x4A" |
| 14881 | "\x5E\x1C\xF2\xCD\xB8\xA2\xAE\xFB" |
| 14882 | "\x9B\x2E\x0E\x85\x34\x80\x0E\x3F" |
| 14883 | "\x4C\xB8\xDB\xCE\x1C\x90\xA1\x61" |
| 14884 | "\x6C\x69\x09\x35\x9E\xD4\xF4\xAD" |
| 14885 | "\xBC\x06\x41\xE3\x01\xB4\x4E\x0A" |
| 14886 | "\xE0\x1F\x91\xF8\x82\x96\x2D\x65" |
| 14887 | "\xA3\xAA\x13\xCC\x50\xFF\x7B\x02", |
| 14888 | .ilen = 496, |
| 14889 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 14890 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 14891 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 14892 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 14893 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 14894 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 14895 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 14896 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 14897 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 14898 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 14899 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 14900 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 14901 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 14902 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 14903 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 14904 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 14905 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 14906 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 14907 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 14908 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 14909 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 14910 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 14911 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 14912 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 14913 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 14914 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 14915 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 14916 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 14917 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 14918 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 14919 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 14920 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 14921 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 14922 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 14923 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 14924 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 14925 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 14926 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 14927 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 14928 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 14929 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 14930 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 14931 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 14932 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 14933 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 14934 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 14935 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 14936 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 14937 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 14938 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 14939 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 14940 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 14941 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 14942 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 14943 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 14944 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 14945 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 14946 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 14947 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 14948 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 14949 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 14950 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 14951 | .rlen = 496, |
| 14952 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 14953 | .np = 3, |
| 14954 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 14955 | }, |
| 14956 | }; |
| 14957 | |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 14958 | static struct aead_testvec hmac_md5_ecb_cipher_null_enc_tv_template[] = { |
| 14959 | { /* Input data from RFC 2410 Case 1 */ |
| 14960 | #ifdef __LITTLE_ENDIAN |
| 14961 | .key = "\x08\x00" /* rta length */ |
| 14962 | "\x01\x00" /* rta type */ |
| 14963 | #else |
| 14964 | .key = "\x00\x08" /* rta length */ |
| 14965 | "\x00\x01" /* rta type */ |
| 14966 | #endif |
| 14967 | "\x00\x00\x00\x00" /* enc key length */ |
| 14968 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14969 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14970 | .klen = 8 + 16 + 0, |
| 14971 | .iv = "", |
| 14972 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 14973 | .ilen = 8, |
| 14974 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 14975 | "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a" |
| 14976 | "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae", |
| 14977 | .rlen = 8 + 16, |
| 14978 | }, { /* Input data from RFC 2410 Case 2 */ |
| 14979 | #ifdef __LITTLE_ENDIAN |
| 14980 | .key = "\x08\x00" /* rta length */ |
| 14981 | "\x01\x00" /* rta type */ |
| 14982 | #else |
| 14983 | .key = "\x00\x08" /* rta length */ |
| 14984 | "\x00\x01" /* rta type */ |
| 14985 | #endif |
| 14986 | "\x00\x00\x00\x00" /* enc key length */ |
| 14987 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 14988 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 14989 | .klen = 8 + 16 + 0, |
| 14990 | .iv = "", |
| 14991 | .input = "Network Security People Have A Strange Sense Of Humor", |
| 14992 | .ilen = 53, |
| 14993 | .result = "Network Security People Have A Strange Sense Of Humor" |
| 14994 | "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a" |
| 14995 | "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23", |
| 14996 | .rlen = 53 + 16, |
| 14997 | }, |
| 14998 | }; |
| 14999 | |
| 15000 | static struct aead_testvec hmac_md5_ecb_cipher_null_dec_tv_template[] = { |
| 15001 | { |
| 15002 | #ifdef __LITTLE_ENDIAN |
| 15003 | .key = "\x08\x00" /* rta length */ |
| 15004 | "\x01\x00" /* rta type */ |
| 15005 | #else |
| 15006 | .key = "\x00\x08" /* rta length */ |
| 15007 | "\x00\x01" /* rta type */ |
| 15008 | #endif |
| 15009 | "\x00\x00\x00\x00" /* enc key length */ |
| 15010 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15011 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15012 | .klen = 8 + 16 + 0, |
| 15013 | .iv = "", |
| 15014 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 15015 | "\xaa\x42\xfe\x43\x8d\xea\xa3\x5a" |
| 15016 | "\xb9\x3d\x9f\xb1\xa3\x8e\x9b\xae", |
| 15017 | .ilen = 8 + 16, |
| 15018 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 15019 | .rlen = 8, |
| 15020 | }, { |
| 15021 | #ifdef __LITTLE_ENDIAN |
| 15022 | .key = "\x08\x00" /* rta length */ |
| 15023 | "\x01\x00" /* rta type */ |
| 15024 | #else |
| 15025 | .key = "\x00\x08" /* rta length */ |
| 15026 | "\x00\x01" /* rta type */ |
| 15027 | #endif |
| 15028 | "\x00\x00\x00\x00" /* enc key length */ |
| 15029 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15030 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 15031 | .klen = 8 + 16 + 0, |
| 15032 | .iv = "", |
| 15033 | .input = "Network Security People Have A Strange Sense Of Humor" |
| 15034 | "\x73\xa5\x3e\x1c\x08\x0e\x8a\x8a" |
| 15035 | "\x8e\xb5\x5f\x90\x8e\xfe\x13\x23", |
| 15036 | .ilen = 53 + 16, |
| 15037 | .result = "Network Security People Have A Strange Sense Of Humor", |
| 15038 | .rlen = 53, |
| 15039 | }, |
| 15040 | }; |
| 15041 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 15042 | static struct aead_testvec hmac_sha1_aes_cbc_enc_tv_temp[] = { |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15043 | { /* RFC 3602 Case 1 */ |
| 15044 | #ifdef __LITTLE_ENDIAN |
| 15045 | .key = "\x08\x00" /* rta length */ |
| 15046 | "\x01\x00" /* rta type */ |
| 15047 | #else |
| 15048 | .key = "\x00\x08" /* rta length */ |
| 15049 | "\x00\x01" /* rta type */ |
| 15050 | #endif |
| 15051 | "\x00\x00\x00\x10" /* enc key length */ |
| 15052 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15053 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15054 | "\x00\x00\x00\x00" |
| 15055 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 15056 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 15057 | .klen = 8 + 20 + 16, |
| 15058 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 15059 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15060 | .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 15061 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 15062 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15063 | .input = "Single block msg", |
| 15064 | .ilen = 16, |
| 15065 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 15066 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 15067 | "\x1b\x13\xcb\xaf\x89\x5e\xe1\x2c" |
| 15068 | "\x13\xc5\x2e\xa3\xcc\xed\xdc\xb5" |
| 15069 | "\x03\x71\xa2\x06", |
| 15070 | .rlen = 16 + 20, |
| 15071 | }, { /* RFC 3602 Case 2 */ |
| 15072 | #ifdef __LITTLE_ENDIAN |
| 15073 | .key = "\x08\x00" /* rta length */ |
| 15074 | "\x01\x00" /* rta type */ |
| 15075 | #else |
| 15076 | .key = "\x00\x08" /* rta length */ |
| 15077 | "\x00\x01" /* rta type */ |
| 15078 | #endif |
| 15079 | "\x00\x00\x00\x10" /* enc key length */ |
| 15080 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15081 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15082 | "\x30\x31\x32\x33" |
| 15083 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 15084 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 15085 | .klen = 8 + 20 + 16, |
| 15086 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 15087 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15088 | .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 15089 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 15090 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15091 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15092 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15093 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15094 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 15095 | .ilen = 32, |
| 15096 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 15097 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 15098 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 15099 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 15100 | "\xad\x9b\x4c\x5c\x85\xe1\xda\xae" |
| 15101 | "\xee\x81\x4e\xd7\xdb\x74\xcf\x58" |
| 15102 | "\x65\x39\xf8\xde", |
| 15103 | .rlen = 32 + 20, |
| 15104 | }, { /* RFC 3602 Case 3 */ |
| 15105 | #ifdef __LITTLE_ENDIAN |
| 15106 | .key = "\x08\x00" /* rta length */ |
| 15107 | "\x01\x00" /* rta type */ |
| 15108 | #else |
| 15109 | .key = "\x00\x08" /* rta length */ |
| 15110 | "\x00\x01" /* rta type */ |
| 15111 | #endif |
| 15112 | "\x00\x00\x00\x10" /* enc key length */ |
| 15113 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15114 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15115 | "\x22\x33\x44\x55" |
| 15116 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 15117 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 15118 | .klen = 8 + 20 + 16, |
| 15119 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 15120 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15121 | .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 15122 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 15123 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15124 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 15125 | .ilen = 48, |
| 15126 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 15127 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 15128 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 15129 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 15130 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 15131 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 15132 | "\xc2\xec\x0c\xf8\x7f\x05\xba\xca" |
| 15133 | "\xff\xee\x4c\xd0\x93\xe6\x36\x7f" |
| 15134 | "\x8d\x62\xf2\x1e", |
| 15135 | .rlen = 48 + 20, |
| 15136 | }, { /* RFC 3602 Case 4 */ |
| 15137 | #ifdef __LITTLE_ENDIAN |
| 15138 | .key = "\x08\x00" /* rta length */ |
| 15139 | "\x01\x00" /* rta type */ |
| 15140 | #else |
| 15141 | .key = "\x00\x08" /* rta length */ |
| 15142 | "\x00\x01" /* rta type */ |
| 15143 | #endif |
| 15144 | "\x00\x00\x00\x10" /* enc key length */ |
| 15145 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15146 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15147 | "\x22\x33\x44\x55" |
| 15148 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 15149 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 15150 | .klen = 8 + 20 + 16, |
| 15151 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 15152 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15153 | .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 15154 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 15155 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15156 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15157 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15158 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15159 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15160 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15161 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15162 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15163 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 15164 | .ilen = 64, |
| 15165 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 15166 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 15167 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 15168 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 15169 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 15170 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 15171 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 15172 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 15173 | "\x1c\x45\x57\xa9\x56\xcb\xa9\x2d" |
| 15174 | "\x18\xac\xf1\xc7\x5d\xd1\xcd\x0d" |
| 15175 | "\x1d\xbe\xc6\xe9", |
| 15176 | .rlen = 64 + 20, |
| 15177 | }, { /* RFC 3602 Case 5 */ |
| 15178 | #ifdef __LITTLE_ENDIAN |
| 15179 | .key = "\x08\x00" /* rta length */ |
| 15180 | "\x01\x00" /* rta type */ |
| 15181 | #else |
| 15182 | .key = "\x00\x08" /* rta length */ |
| 15183 | "\x00\x01" /* rta type */ |
| 15184 | #endif |
| 15185 | "\x00\x00\x00\x10" /* enc key length */ |
| 15186 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15187 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15188 | "\x22\x33\x44\x55" |
| 15189 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 15190 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 15191 | .klen = 8 + 20 + 16, |
| 15192 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 15193 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15194 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 15195 | "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 15196 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 15197 | .alen = 24, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15198 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 15199 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 15200 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15201 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15202 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15203 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15204 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15205 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15206 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 15207 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 15208 | .ilen = 80, |
| 15209 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 15210 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 15211 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 15212 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 15213 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 15214 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 15215 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 15216 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 15217 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 15218 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 15219 | "\x58\xc6\x84\x75\xe4\xe9\x6b\x0c" |
| 15220 | "\xe1\xc5\x0b\x73\x4d\x82\x55\xa8" |
| 15221 | "\x85\xe1\x59\xf7", |
| 15222 | .rlen = 80 + 20, |
| 15223 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 15224 | #ifdef __LITTLE_ENDIAN |
| 15225 | .key = "\x08\x00" /* rta length */ |
| 15226 | "\x01\x00" /* rta type */ |
| 15227 | #else |
| 15228 | .key = "\x00\x08" /* rta length */ |
| 15229 | "\x00\x01" /* rta type */ |
| 15230 | #endif |
| 15231 | "\x00\x00\x00\x18" /* enc key length */ |
| 15232 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15233 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15234 | "\x22\x33\x44\x55" |
| 15235 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 15236 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 15237 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 15238 | .klen = 8 + 20 + 24, |
| 15239 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15240 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15241 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15242 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15243 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15244 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 15245 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 15246 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 15247 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 15248 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 15249 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 15250 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 15251 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 15252 | .ilen = 64, |
| 15253 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 15254 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 15255 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 15256 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 15257 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 15258 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 15259 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 15260 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 15261 | "\x73\xe3\x19\x3f\x8b\xc9\xc6\xf4" |
| 15262 | "\x5a\xf1\x5b\xa8\x98\x07\xc5\x36" |
| 15263 | "\x47\x4c\xfc\x36", |
| 15264 | .rlen = 64 + 20, |
| 15265 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 15266 | #ifdef __LITTLE_ENDIAN |
| 15267 | .key = "\x08\x00" /* rta length */ |
| 15268 | "\x01\x00" /* rta type */ |
| 15269 | #else |
| 15270 | .key = "\x00\x08" /* rta length */ |
| 15271 | "\x00\x01" /* rta type */ |
| 15272 | #endif |
| 15273 | "\x00\x00\x00\x20" /* enc key length */ |
| 15274 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15275 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15276 | "\x22\x33\x44\x55" |
| 15277 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 15278 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 15279 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 15280 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 15281 | .klen = 8 + 20 + 32, |
| 15282 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15283 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15284 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15285 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15286 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15287 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 15288 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 15289 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 15290 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 15291 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 15292 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 15293 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 15294 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 15295 | .ilen = 64, |
| 15296 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 15297 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 15298 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 15299 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 15300 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 15301 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 15302 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 15303 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 15304 | "\xa3\xe8\x9b\x17\xe3\xf4\x7f\xde" |
| 15305 | "\x1b\x9f\xc6\x81\x26\x43\x4a\x87" |
| 15306 | "\x51\xee\xd6\x4e", |
| 15307 | .rlen = 64 + 20, |
| 15308 | }, |
| 15309 | }; |
| 15310 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 15311 | static struct aead_testvec hmac_sha1_ecb_cipher_null_enc_tv_temp[] = { |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 15312 | { /* Input data from RFC 2410 Case 1 */ |
| 15313 | #ifdef __LITTLE_ENDIAN |
| 15314 | .key = "\x08\x00" /* rta length */ |
| 15315 | "\x01\x00" /* rta type */ |
| 15316 | #else |
| 15317 | .key = "\x00\x08" /* rta length */ |
| 15318 | "\x00\x01" /* rta type */ |
| 15319 | #endif |
| 15320 | "\x00\x00\x00\x00" /* enc key length */ |
| 15321 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15322 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15323 | "\x00\x00\x00\x00", |
| 15324 | .klen = 8 + 20 + 0, |
| 15325 | .iv = "", |
| 15326 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 15327 | .ilen = 8, |
| 15328 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 15329 | "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab" |
| 15330 | "\x99\x5e\x19\x04\xd1\x72\xef\xb8" |
| 15331 | "\x8c\x5e\xe4\x08", |
| 15332 | .rlen = 8 + 20, |
| 15333 | }, { /* Input data from RFC 2410 Case 2 */ |
| 15334 | #ifdef __LITTLE_ENDIAN |
| 15335 | .key = "\x08\x00" /* rta length */ |
| 15336 | "\x01\x00" /* rta type */ |
| 15337 | #else |
| 15338 | .key = "\x00\x08" /* rta length */ |
| 15339 | "\x00\x01" /* rta type */ |
| 15340 | #endif |
| 15341 | "\x00\x00\x00\x00" /* enc key length */ |
| 15342 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15343 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15344 | "\x00\x00\x00\x00", |
| 15345 | .klen = 8 + 20 + 0, |
| 15346 | .iv = "", |
| 15347 | .input = "Network Security People Have A Strange Sense Of Humor", |
| 15348 | .ilen = 53, |
| 15349 | .result = "Network Security People Have A Strange Sense Of Humor" |
| 15350 | "\x75\x6f\x42\x1e\xf8\x50\x21\xd2" |
| 15351 | "\x65\x47\xee\x8e\x1a\xef\x16\xf6" |
| 15352 | "\x91\x56\xe4\xd6", |
| 15353 | .rlen = 53 + 20, |
| 15354 | }, |
| 15355 | }; |
| 15356 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 15357 | static struct aead_testvec hmac_sha1_ecb_cipher_null_dec_tv_temp[] = { |
Horia Geanta | bca4feb | 2014-03-14 17:46:51 +0200 | [diff] [blame] | 15358 | { |
| 15359 | #ifdef __LITTLE_ENDIAN |
| 15360 | .key = "\x08\x00" /* rta length */ |
| 15361 | "\x01\x00" /* rta type */ |
| 15362 | #else |
| 15363 | .key = "\x00\x08" /* rta length */ |
| 15364 | "\x00\x01" /* rta type */ |
| 15365 | #endif |
| 15366 | "\x00\x00\x00\x00" /* enc key length */ |
| 15367 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15368 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15369 | "\x00\x00\x00\x00", |
| 15370 | .klen = 8 + 20 + 0, |
| 15371 | .iv = "", |
| 15372 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 15373 | "\x40\xc3\x0a\xa1\xc9\xa0\x28\xab" |
| 15374 | "\x99\x5e\x19\x04\xd1\x72\xef\xb8" |
| 15375 | "\x8c\x5e\xe4\x08", |
| 15376 | .ilen = 8 + 20, |
| 15377 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 15378 | .rlen = 8, |
| 15379 | }, { |
| 15380 | #ifdef __LITTLE_ENDIAN |
| 15381 | .key = "\x08\x00" /* rta length */ |
| 15382 | "\x01\x00" /* rta type */ |
| 15383 | #else |
| 15384 | .key = "\x00\x08" /* rta length */ |
| 15385 | "\x00\x01" /* rta type */ |
| 15386 | #endif |
| 15387 | "\x00\x00\x00\x00" /* enc key length */ |
| 15388 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15389 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15390 | "\x00\x00\x00\x00", |
| 15391 | .klen = 8 + 20 + 0, |
| 15392 | .iv = "", |
| 15393 | .input = "Network Security People Have A Strange Sense Of Humor" |
| 15394 | "\x75\x6f\x42\x1e\xf8\x50\x21\xd2" |
| 15395 | "\x65\x47\xee\x8e\x1a\xef\x16\xf6" |
| 15396 | "\x91\x56\xe4\xd6", |
| 15397 | .ilen = 53 + 20, |
| 15398 | .result = "Network Security People Have A Strange Sense Of Humor", |
| 15399 | .rlen = 53, |
| 15400 | }, |
| 15401 | }; |
| 15402 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 15403 | static struct aead_testvec hmac_sha256_aes_cbc_enc_tv_temp[] = { |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15404 | { /* RFC 3602 Case 1 */ |
| 15405 | #ifdef __LITTLE_ENDIAN |
| 15406 | .key = "\x08\x00" /* rta length */ |
| 15407 | "\x01\x00" /* rta type */ |
| 15408 | #else |
| 15409 | .key = "\x00\x08" /* rta length */ |
| 15410 | "\x00\x01" /* rta type */ |
| 15411 | #endif |
| 15412 | "\x00\x00\x00\x10" /* enc key length */ |
| 15413 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15414 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15415 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15416 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15417 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 15418 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 15419 | .klen = 8 + 32 + 16, |
| 15420 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 15421 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15422 | .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 15423 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 15424 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15425 | .input = "Single block msg", |
| 15426 | .ilen = 16, |
| 15427 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 15428 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 15429 | "\xcc\xde\x2d\x6a\xae\xf1\x0b\xcc" |
| 15430 | "\x38\x06\x38\x51\xb4\xb8\xf3\x5b" |
| 15431 | "\x5c\x34\xa6\xa3\x6e\x0b\x05\xe5" |
| 15432 | "\x6a\x6d\x44\xaa\x26\xa8\x44\xa5", |
| 15433 | .rlen = 16 + 32, |
| 15434 | }, { /* RFC 3602 Case 2 */ |
| 15435 | #ifdef __LITTLE_ENDIAN |
| 15436 | .key = "\x08\x00" /* rta length */ |
| 15437 | "\x01\x00" /* rta type */ |
| 15438 | #else |
| 15439 | .key = "\x00\x08" /* rta length */ |
| 15440 | "\x00\x01" /* rta type */ |
| 15441 | #endif |
| 15442 | "\x00\x00\x00\x10" /* enc key length */ |
| 15443 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15444 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15445 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15446 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15447 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 15448 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 15449 | .klen = 8 + 32 + 16, |
| 15450 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 15451 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15452 | .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 15453 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 15454 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15455 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15456 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15457 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15458 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 15459 | .ilen = 32, |
| 15460 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 15461 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 15462 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 15463 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 15464 | "\xf5\x33\x53\xf3\x68\x85\x2a\x99" |
| 15465 | "\x0e\x06\x58\x8f\xba\xf6\x06\xda" |
| 15466 | "\x49\x69\x0d\x5b\xd4\x36\x06\x62" |
| 15467 | "\x35\x5e\x54\x58\x53\x4d\xdf\xbf", |
| 15468 | .rlen = 32 + 32, |
| 15469 | }, { /* RFC 3602 Case 3 */ |
| 15470 | #ifdef __LITTLE_ENDIAN |
| 15471 | .key = "\x08\x00" /* rta length */ |
| 15472 | "\x01\x00" /* rta type */ |
| 15473 | #else |
| 15474 | .key = "\x00\x08" /* rta length */ |
| 15475 | "\x00\x01" /* rta type */ |
| 15476 | #endif |
| 15477 | "\x00\x00\x00\x10" /* enc key length */ |
| 15478 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15479 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15480 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15481 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15482 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 15483 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 15484 | .klen = 8 + 32 + 16, |
| 15485 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 15486 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15487 | .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 15488 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 15489 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15490 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 15491 | .ilen = 48, |
| 15492 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 15493 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 15494 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 15495 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 15496 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 15497 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 15498 | "\x68\xb9\x3e\x90\x38\xa0\x88\x01" |
| 15499 | "\xe7\xc6\xce\x10\x31\x2f\x9b\x1d" |
| 15500 | "\x24\x78\xfb\xbe\x02\xe0\x4f\x40" |
| 15501 | "\x10\xbd\xaa\xc6\xa7\x79\xe0\x1a", |
| 15502 | .rlen = 48 + 32, |
| 15503 | }, { /* RFC 3602 Case 4 */ |
| 15504 | #ifdef __LITTLE_ENDIAN |
| 15505 | .key = "\x08\x00" /* rta length */ |
| 15506 | "\x01\x00" /* rta type */ |
| 15507 | #else |
| 15508 | .key = "\x00\x08" /* rta length */ |
| 15509 | "\x00\x01" /* rta type */ |
| 15510 | #endif |
| 15511 | "\x00\x00\x00\x10" /* enc key length */ |
| 15512 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15513 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15514 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15515 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15516 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 15517 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 15518 | .klen = 8 + 32 + 16, |
| 15519 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 15520 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15521 | .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 15522 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 15523 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15524 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15525 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15526 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15527 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15528 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15529 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15530 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15531 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 15532 | .ilen = 64, |
| 15533 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 15534 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 15535 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 15536 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 15537 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 15538 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 15539 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 15540 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 15541 | "\x7a\x1b\xd4\x3c\xdb\x17\x95\xe2" |
| 15542 | "\xe0\x93\xec\xc9\x9f\xf7\xce\xd8" |
| 15543 | "\x3f\x54\xe2\x49\x39\xe3\x71\x25" |
| 15544 | "\x2b\x6c\xe9\x5d\xec\xec\x2b\x64", |
| 15545 | .rlen = 64 + 32, |
| 15546 | }, { /* RFC 3602 Case 5 */ |
| 15547 | #ifdef __LITTLE_ENDIAN |
| 15548 | .key = "\x08\x00" /* rta length */ |
| 15549 | "\x01\x00" /* rta type */ |
| 15550 | #else |
| 15551 | .key = "\x00\x08" /* rta length */ |
| 15552 | "\x00\x01" /* rta type */ |
| 15553 | #endif |
| 15554 | "\x00\x00\x00\x10" /* enc key length */ |
| 15555 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15556 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15557 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15558 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15559 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 15560 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 15561 | .klen = 8 + 32 + 16, |
| 15562 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 15563 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15564 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 15565 | "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 15566 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 15567 | .alen = 24, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15568 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 15569 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 15570 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15571 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15572 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15573 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15574 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15575 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15576 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 15577 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 15578 | .ilen = 80, |
| 15579 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 15580 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 15581 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 15582 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 15583 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 15584 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 15585 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 15586 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 15587 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 15588 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 15589 | "\xbb\xd4\x0f\xbe\xa3\x3b\x4c\xb8" |
| 15590 | "\x3a\xd2\xe1\x03\x86\xa5\x59\xb7" |
| 15591 | "\x73\xc3\x46\x20\x2c\xb1\xef\x68" |
| 15592 | "\xbb\x8a\x32\x7e\x12\x8c\x69\xcf", |
| 15593 | .rlen = 80 + 32, |
| 15594 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 15595 | #ifdef __LITTLE_ENDIAN |
| 15596 | .key = "\x08\x00" /* rta length */ |
| 15597 | "\x01\x00" /* rta type */ |
| 15598 | #else |
| 15599 | .key = "\x00\x08" /* rta length */ |
| 15600 | "\x00\x01" /* rta type */ |
| 15601 | #endif |
| 15602 | "\x00\x00\x00\x18" /* enc key length */ |
| 15603 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15604 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15605 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15606 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15607 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 15608 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 15609 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 15610 | .klen = 8 + 32 + 24, |
| 15611 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15612 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15613 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15614 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15615 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15616 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 15617 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 15618 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 15619 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 15620 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 15621 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 15622 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 15623 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 15624 | .ilen = 64, |
| 15625 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 15626 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 15627 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 15628 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 15629 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 15630 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 15631 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 15632 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 15633 | "\x2f\xee\x5f\xdb\x66\xfe\x79\x09" |
| 15634 | "\x61\x81\x31\xea\x5b\x3d\x8e\xfb" |
| 15635 | "\xca\x71\x85\x93\xf7\x85\x55\x8b" |
| 15636 | "\x7a\xe4\x94\xca\x8b\xba\x19\x33", |
| 15637 | .rlen = 64 + 32, |
| 15638 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 15639 | #ifdef __LITTLE_ENDIAN |
| 15640 | .key = "\x08\x00" /* rta length */ |
| 15641 | "\x01\x00" /* rta type */ |
| 15642 | #else |
| 15643 | .key = "\x00\x08" /* rta length */ |
| 15644 | "\x00\x01" /* rta type */ |
| 15645 | #endif |
| 15646 | "\x00\x00\x00\x20" /* enc key length */ |
| 15647 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15648 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15649 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15650 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15651 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 15652 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 15653 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 15654 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 15655 | .klen = 8 + 32 + 32, |
| 15656 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15657 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15658 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15659 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15660 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15661 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 15662 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 15663 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 15664 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 15665 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 15666 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 15667 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 15668 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 15669 | .ilen = 64, |
| 15670 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 15671 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 15672 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 15673 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 15674 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 15675 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 15676 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 15677 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 15678 | "\x24\x29\xed\xc2\x31\x49\xdb\xb1" |
| 15679 | "\x8f\x74\xbd\x17\x92\x03\xbe\x8f" |
| 15680 | "\xf3\x61\xde\x1c\xe9\xdb\xcd\xd0" |
| 15681 | "\xcc\xce\xe9\x85\x57\xcf\x6f\x5f", |
| 15682 | .rlen = 64 + 32, |
| 15683 | }, |
| 15684 | }; |
| 15685 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 15686 | static struct aead_testvec hmac_sha512_aes_cbc_enc_tv_temp[] = { |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15687 | { /* RFC 3602 Case 1 */ |
| 15688 | #ifdef __LITTLE_ENDIAN |
| 15689 | .key = "\x08\x00" /* rta length */ |
| 15690 | "\x01\x00" /* rta type */ |
| 15691 | #else |
| 15692 | .key = "\x00\x08" /* rta length */ |
| 15693 | "\x00\x01" /* rta type */ |
| 15694 | #endif |
| 15695 | "\x00\x00\x00\x10" /* enc key length */ |
| 15696 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15697 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15698 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15699 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15700 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15701 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15702 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15703 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 15704 | "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 15705 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 15706 | .klen = 8 + 64 + 16, |
| 15707 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 15708 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15709 | .assoc = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 15710 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 15711 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15712 | .input = "Single block msg", |
| 15713 | .ilen = 16, |
| 15714 | .result = "\xe3\x53\x77\x9c\x10\x79\xae\xb8" |
| 15715 | "\x27\x08\x94\x2d\xbe\x77\x18\x1a" |
| 15716 | "\x3f\xdc\xad\x90\x03\x63\x5e\x68" |
| 15717 | "\xc3\x13\xdd\xa4\x5c\x4d\x54\xa7" |
| 15718 | "\x19\x6e\x03\x75\x2b\xa1\x62\xce" |
| 15719 | "\xe0\xc6\x96\x75\xb2\x14\xca\x96" |
| 15720 | "\xec\xbd\x50\x08\x07\x64\x1a\x49" |
| 15721 | "\xe8\x9a\x7c\x06\x3d\xcb\xff\xb2" |
| 15722 | "\xfa\x20\x89\xdd\x9c\xac\x9e\x16" |
| 15723 | "\x18\x8a\xa0\x6d\x01\x6c\xa3\x3a", |
| 15724 | .rlen = 16 + 64, |
| 15725 | }, { /* RFC 3602 Case 2 */ |
| 15726 | #ifdef __LITTLE_ENDIAN |
| 15727 | .key = "\x08\x00" /* rta length */ |
| 15728 | "\x01\x00" /* rta type */ |
| 15729 | #else |
| 15730 | .key = "\x00\x08" /* rta length */ |
| 15731 | "\x00\x01" /* rta type */ |
| 15732 | #endif |
| 15733 | "\x00\x00\x00\x10" /* enc key length */ |
| 15734 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15735 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15736 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15737 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 15738 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 15739 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 15740 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 15741 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 15742 | "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 15743 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 15744 | .klen = 8 + 64 + 16, |
| 15745 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 15746 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15747 | .assoc = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 15748 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 15749 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15750 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15751 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15752 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15753 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 15754 | .ilen = 32, |
| 15755 | .result = "\xd2\x96\xcd\x94\xc2\xcc\xcf\x8a" |
| 15756 | "\x3a\x86\x30\x28\xb5\xe1\xdc\x0a" |
| 15757 | "\x75\x86\x60\x2d\x25\x3c\xff\xf9" |
| 15758 | "\x1b\x82\x66\xbe\xa6\xd6\x1a\xb1" |
| 15759 | "\xda\xb2\x0c\xb2\x26\xc4\xd5\xef" |
| 15760 | "\x60\x38\xa4\x5e\x9a\x8c\x1b\x41" |
| 15761 | "\x03\x9f\xc4\x64\x7f\x01\x42\x9b" |
| 15762 | "\x0e\x1b\xea\xef\xbc\x88\x19\x5e" |
| 15763 | "\x31\x7e\xc2\x95\xfc\x09\x32\x0a" |
| 15764 | "\x46\x32\x7c\x41\x9c\x59\x3e\xe9" |
| 15765 | "\x8f\x9f\xd4\x31\xd6\x22\xbd\xf8" |
| 15766 | "\xf7\x0a\x94\xe5\xa9\xc3\xf6\x9d", |
| 15767 | .rlen = 32 + 64, |
| 15768 | }, { /* RFC 3602 Case 3 */ |
| 15769 | #ifdef __LITTLE_ENDIAN |
| 15770 | .key = "\x08\x00" /* rta length */ |
| 15771 | "\x01\x00" /* rta type */ |
| 15772 | #else |
| 15773 | .key = "\x00\x08" /* rta length */ |
| 15774 | "\x00\x01" /* rta type */ |
| 15775 | #endif |
| 15776 | "\x00\x00\x00\x10" /* enc key length */ |
| 15777 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15778 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15779 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15780 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15781 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15782 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15783 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15784 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15785 | "\x6c\x3e\xa0\x47\x76\x30\xce\x21" |
| 15786 | "\xa2\xce\x33\x4a\xa7\x46\xc2\xcd", |
| 15787 | .klen = 8 + 64 + 16, |
| 15788 | .iv = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 15789 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15790 | .assoc = "\xc7\x82\xdc\x4c\x09\x8c\x66\xcb" |
| 15791 | "\xd9\xcd\x27\xd8\x25\x68\x2c\x81", |
| 15792 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15793 | .input = "This is a 48-byte message (exactly 3 AES blocks)", |
| 15794 | .ilen = 48, |
| 15795 | .result = "\xd0\xa0\x2b\x38\x36\x45\x17\x53" |
| 15796 | "\xd4\x93\x66\x5d\x33\xf0\xe8\x86" |
| 15797 | "\x2d\xea\x54\xcd\xb2\x93\xab\xc7" |
| 15798 | "\x50\x69\x39\x27\x67\x72\xf8\xd5" |
| 15799 | "\x02\x1c\x19\x21\x6b\xad\x52\x5c" |
| 15800 | "\x85\x79\x69\x5d\x83\xba\x26\x84" |
| 15801 | "\x64\x19\x17\x5b\x57\xe0\x21\x0f" |
| 15802 | "\xca\xdb\xa1\x26\x38\x14\xa2\x69" |
| 15803 | "\xdb\x54\x67\x80\xc0\x54\xe0\xfd" |
| 15804 | "\x3e\x91\xe7\x91\x7f\x13\x38\x44" |
| 15805 | "\xb7\xb1\xd6\xc8\x7d\x48\x8d\x41" |
| 15806 | "\x08\xea\x29\x6c\x74\x67\x3f\xb0" |
| 15807 | "\xac\x7f\x5c\x1d\xf5\xee\x22\x66" |
| 15808 | "\x27\xa6\xb6\x13\xba\xba\xf0\xc2", |
| 15809 | .rlen = 48 + 64, |
| 15810 | }, { /* RFC 3602 Case 4 */ |
| 15811 | #ifdef __LITTLE_ENDIAN |
| 15812 | .key = "\x08\x00" /* rta length */ |
| 15813 | "\x01\x00" /* rta type */ |
| 15814 | #else |
| 15815 | .key = "\x00\x08" /* rta length */ |
| 15816 | "\x00\x01" /* rta type */ |
| 15817 | #endif |
| 15818 | "\x00\x00\x00\x10" /* enc key length */ |
| 15819 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15820 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15821 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15822 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15823 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15824 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15825 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15826 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15827 | "\x56\xe4\x7a\x38\xc5\x59\x89\x74" |
| 15828 | "\xbc\x46\x90\x3d\xba\x29\x03\x49", |
| 15829 | .klen = 8 + 64 + 16, |
| 15830 | .iv = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 15831 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15832 | .assoc = "\x8c\xe8\x2e\xef\xbe\xa0\xda\x3c" |
| 15833 | "\x44\x69\x9e\xd7\xdb\x51\xb7\xd9", |
| 15834 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15835 | .input = "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 15836 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 15837 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 15838 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 15839 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 15840 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 15841 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 15842 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf", |
| 15843 | .ilen = 64, |
| 15844 | .result = "\xc3\x0e\x32\xff\xed\xc0\x77\x4e" |
| 15845 | "\x6a\xff\x6a\xf0\x86\x9f\x71\xaa" |
| 15846 | "\x0f\x3a\xf0\x7a\x9a\x31\xa9\xc6" |
| 15847 | "\x84\xdb\x20\x7e\xb0\xef\x8e\x4e" |
| 15848 | "\x35\x90\x7a\xa6\x32\xc3\xff\xdf" |
| 15849 | "\x86\x8b\xb7\xb2\x9d\x3d\x46\xad" |
| 15850 | "\x83\xce\x9f\x9a\x10\x2e\xe9\x9d" |
| 15851 | "\x49\xa5\x3e\x87\xf4\xc3\xda\x55" |
| 15852 | "\x82\xcd\x42\x28\x21\x20\x15\xcc" |
| 15853 | "\xb7\xb2\x48\x40\xc7\x64\x41\x3a" |
| 15854 | "\x61\x32\x82\x85\xcf\x27\xed\xb4" |
| 15855 | "\xe4\x68\xa2\xf5\x79\x26\x27\xb2" |
| 15856 | "\x51\x67\x6a\xc4\xf0\x66\x55\x50" |
| 15857 | "\xbc\x6f\xed\xd5\x8d\xde\x23\x7c" |
| 15858 | "\x62\x98\x14\xd7\x2f\x37\x8d\xdf" |
| 15859 | "\xf4\x33\x80\xeb\x8e\xb4\xa4\xda", |
| 15860 | .rlen = 64 + 64, |
| 15861 | }, { /* RFC 3602 Case 5 */ |
| 15862 | #ifdef __LITTLE_ENDIAN |
| 15863 | .key = "\x08\x00" /* rta length */ |
| 15864 | "\x01\x00" /* rta type */ |
| 15865 | #else |
| 15866 | .key = "\x00\x08" /* rta length */ |
| 15867 | "\x00\x01" /* rta type */ |
| 15868 | #endif |
| 15869 | "\x00\x00\x00\x10" /* enc key length */ |
| 15870 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15871 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15872 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15873 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15874 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15875 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15876 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15877 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15878 | "\x90\xd3\x82\xb4\x10\xee\xba\x7a" |
| 15879 | "\xd9\x38\xc4\x6c\xec\x1a\x82\xbf", |
| 15880 | .klen = 8 + 64 + 16, |
| 15881 | .iv = "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 15882 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15883 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 15884 | "\xe9\x6e\x8c\x08\xab\x46\x57\x63" |
| 15885 | "\xfd\x09\x8d\x45\xdd\x3f\xf8\x93", |
| 15886 | .alen = 24, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15887 | .input = "\x08\x00\x0e\xbd\xa7\x0a\x00\x00" |
| 15888 | "\x8e\x9c\x08\x3d\xb9\x5b\x07\x00" |
| 15889 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 15890 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 15891 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 15892 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 15893 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 15894 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 15895 | "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 15896 | "\x09\x0a\x0b\x0c\x0d\x0e\x0e\x01", |
| 15897 | .ilen = 80, |
| 15898 | .result = "\xf6\x63\xc2\x5d\x32\x5c\x18\xc6" |
| 15899 | "\xa9\x45\x3e\x19\x4e\x12\x08\x49" |
| 15900 | "\xa4\x87\x0b\x66\xcc\x6b\x99\x65" |
| 15901 | "\x33\x00\x13\xb4\x89\x8d\xc8\x56" |
| 15902 | "\xa4\x69\x9e\x52\x3a\x55\xdb\x08" |
| 15903 | "\x0b\x59\xec\x3a\x8e\x4b\x7e\x52" |
| 15904 | "\x77\x5b\x07\xd1\xdb\x34\xed\x9c" |
| 15905 | "\x53\x8a\xb5\x0c\x55\x1b\x87\x4a" |
| 15906 | "\xa2\x69\xad\xd0\x47\xad\x2d\x59" |
| 15907 | "\x13\xac\x19\xb7\xcf\xba\xd4\xa6" |
| 15908 | "\x74\x84\x94\xe2\xd7\x7a\xf9\xbf" |
| 15909 | "\x00\x8a\xa2\xd5\xb7\xf3\x60\xcf" |
| 15910 | "\xa0\x47\xdf\x4e\x09\xf4\xb1\x7f" |
| 15911 | "\x14\xd9\x3d\x53\x8e\x12\xb3\x00" |
| 15912 | "\x4c\x0a\x4e\x32\x40\x43\x88\xce" |
| 15913 | "\x92\x26\xc1\x76\x20\x11\xeb\xba" |
| 15914 | "\x62\x4f\x9a\x62\x25\xc3\x75\x80" |
| 15915 | "\xb7\x0a\x17\xf5\xd7\x94\xb4\x14", |
| 15916 | .rlen = 80 + 64, |
| 15917 | }, { /* NIST SP800-38A F.2.3 CBC-AES192.Encrypt */ |
| 15918 | #ifdef __LITTLE_ENDIAN |
| 15919 | .key = "\x08\x00" /* rta length */ |
| 15920 | "\x01\x00" /* rta type */ |
| 15921 | #else |
| 15922 | .key = "\x00\x08" /* rta length */ |
| 15923 | "\x00\x01" /* rta type */ |
| 15924 | #endif |
| 15925 | "\x00\x00\x00\x18" /* enc key length */ |
| 15926 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15927 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15928 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15929 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15930 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15931 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15932 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15933 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15934 | "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 15935 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 15936 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 15937 | .klen = 8 + 64 + 24, |
| 15938 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15939 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15940 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15941 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15942 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15943 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 15944 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 15945 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 15946 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 15947 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 15948 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 15949 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 15950 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 15951 | .ilen = 64, |
| 15952 | .result = "\x4f\x02\x1d\xb2\x43\xbc\x63\x3d" |
| 15953 | "\x71\x78\x18\x3a\x9f\xa0\x71\xe8" |
| 15954 | "\xb4\xd9\xad\xa9\xad\x7d\xed\xf4" |
| 15955 | "\xe5\xe7\x38\x76\x3f\x69\x14\x5a" |
| 15956 | "\x57\x1b\x24\x20\x12\xfb\x7a\xe0" |
| 15957 | "\x7f\xa9\xba\xac\x3d\xf1\x02\xe0" |
| 15958 | "\x08\xb0\xe2\x79\x88\x59\x88\x81" |
| 15959 | "\xd9\x20\xa9\xe6\x4f\x56\x15\xcd" |
| 15960 | "\x77\x4b\x69\x9d\x3a\x0d\xb4\x99" |
| 15961 | "\x8f\xc6\x8e\x0e\x72\x58\xe3\x56" |
| 15962 | "\xbb\x21\xd2\x7d\x93\x11\x17\x91" |
| 15963 | "\xc4\x83\xfd\x0a\xea\x71\xfe\x77" |
| 15964 | "\xae\x6f\x0a\xa5\xf0\xcf\xe1\x35" |
| 15965 | "\xba\x03\xd5\x32\xfa\x5f\x41\x58" |
| 15966 | "\x8d\x43\x98\xa7\x94\x16\x07\x02" |
| 15967 | "\x0f\xb6\x81\x50\x28\x95\x2e\x75", |
| 15968 | .rlen = 64 + 64, |
| 15969 | }, { /* NIST SP800-38A F.2.5 CBC-AES256.Encrypt */ |
| 15970 | #ifdef __LITTLE_ENDIAN |
| 15971 | .key = "\x08\x00" /* rta length */ |
| 15972 | "\x01\x00" /* rta type */ |
| 15973 | #else |
| 15974 | .key = "\x00\x08" /* rta length */ |
| 15975 | "\x00\x01" /* rta type */ |
| 15976 | #endif |
| 15977 | "\x00\x00\x00\x20" /* enc key length */ |
| 15978 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 15979 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 15980 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 15981 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 15982 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 15983 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 15984 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 15985 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 15986 | "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 15987 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 15988 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 15989 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 15990 | .klen = 8 + 64 + 32, |
| 15991 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15992 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 15993 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 15994 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 15995 | .alen = 16, |
Horia Geanta | e46e9a4 | 2012-07-03 19:16:54 +0300 | [diff] [blame] | 15996 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 15997 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 15998 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 15999 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 16000 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 16001 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 16002 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 16003 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 16004 | .ilen = 64, |
| 16005 | .result = "\xf5\x8c\x4c\x04\xd6\xe5\xf1\xba" |
| 16006 | "\x77\x9e\xab\xfb\x5f\x7b\xfb\xd6" |
| 16007 | "\x9c\xfc\x4e\x96\x7e\xdb\x80\x8d" |
| 16008 | "\x67\x9f\x77\x7b\xc6\x70\x2c\x7d" |
| 16009 | "\x39\xf2\x33\x69\xa9\xd9\xba\xcf" |
| 16010 | "\xa5\x30\xe2\x63\x04\x23\x14\x61" |
| 16011 | "\xb2\xeb\x05\xe2\xc3\x9b\xe9\xfc" |
| 16012 | "\xda\x6c\x19\x07\x8c\x6a\x9d\x1b" |
| 16013 | "\xb2\x27\x69\x7f\x45\x64\x79\x2b" |
| 16014 | "\xb7\xb8\x4c\xd4\x75\x94\x68\x40" |
| 16015 | "\x2a\xea\x91\xc7\x3f\x7c\xed\x7b" |
| 16016 | "\x95\x2c\x9b\xa8\xf5\xe5\x52\x8d" |
| 16017 | "\x6b\xe1\xae\xf1\x74\xfa\x0d\x0c" |
| 16018 | "\xe3\x8d\x64\xc3\x8d\xff\x7c\x8c" |
| 16019 | "\xdb\xbf\xa0\xb4\x01\xa2\xa8\xa2" |
| 16020 | "\x2c\xb1\x62\x2c\x10\xca\xf1\x21", |
| 16021 | .rlen = 64 + 64, |
| 16022 | }, |
| 16023 | }; |
| 16024 | |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16025 | #define HMAC_SHA1_DES_CBC_ENC_TEST_VEC 1 |
| 16026 | |
| 16027 | static struct aead_testvec hmac_sha1_des_cbc_enc_tv_temp[] = { |
| 16028 | { /*Generated with cryptopp*/ |
| 16029 | #ifdef __LITTLE_ENDIAN |
| 16030 | .key = "\x08\x00" /* rta length */ |
| 16031 | "\x01\x00" /* rta type */ |
| 16032 | #else |
| 16033 | .key = "\x00\x08" /* rta length */ |
| 16034 | "\x00\x01" /* rta type */ |
| 16035 | #endif |
| 16036 | "\x00\x00\x00\x08" /* enc key length */ |
| 16037 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16038 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16039 | "\x22\x33\x44\x55" |
| 16040 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 16041 | .klen = 8 + 20 + 8, |
| 16042 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16043 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16044 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16045 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16046 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16047 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16048 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16049 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16050 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16051 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16052 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16053 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16054 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16055 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16056 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16057 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16058 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16059 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16060 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16061 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16062 | .ilen = 128, |
| 16063 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 16064 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 16065 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 16066 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 16067 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 16068 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 16069 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 16070 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 16071 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 16072 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 16073 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 16074 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 16075 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 16076 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 16077 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 16078 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 16079 | "\x95\x16\x20\x09\xf5\x95\x19\xfd" |
| 16080 | "\x3c\xc7\xe0\x42\xc0\x14\x69\xfa" |
| 16081 | "\x5c\x44\xa9\x37", |
| 16082 | .rlen = 128 + 20, |
| 16083 | }, |
| 16084 | }; |
| 16085 | |
| 16086 | #define HMAC_SHA224_DES_CBC_ENC_TEST_VEC 1 |
| 16087 | |
| 16088 | static struct aead_testvec hmac_sha224_des_cbc_enc_tv_temp[] = { |
| 16089 | { /*Generated with cryptopp*/ |
| 16090 | #ifdef __LITTLE_ENDIAN |
| 16091 | .key = "\x08\x00" /* rta length */ |
| 16092 | "\x01\x00" /* rta type */ |
| 16093 | #else |
| 16094 | .key = "\x00\x08" /* rta length */ |
| 16095 | "\x00\x01" /* rta type */ |
| 16096 | #endif |
| 16097 | "\x00\x00\x00\x08" /* enc key length */ |
| 16098 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16099 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16100 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 16101 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 16102 | .klen = 8 + 24 + 8, |
| 16103 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16104 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16105 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16106 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16107 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16108 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16109 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16110 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16111 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16112 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16113 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16114 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16115 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16116 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16117 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16118 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16119 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16120 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16121 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16122 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16123 | .ilen = 128, |
| 16124 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 16125 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 16126 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 16127 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 16128 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 16129 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 16130 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 16131 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 16132 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 16133 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 16134 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 16135 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 16136 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 16137 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 16138 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 16139 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 16140 | "\x9c\x2d\x7e\xee\x20\x34\x55\x0a" |
| 16141 | "\xce\xb5\x4e\x64\x53\xe7\xbf\x91" |
| 16142 | "\xab\xd4\xd9\xda\xc9\x12\xae\xf7", |
| 16143 | .rlen = 128 + 24, |
| 16144 | }, |
| 16145 | }; |
| 16146 | |
| 16147 | #define HMAC_SHA256_DES_CBC_ENC_TEST_VEC 1 |
| 16148 | |
| 16149 | static struct aead_testvec hmac_sha256_des_cbc_enc_tv_temp[] = { |
| 16150 | { /*Generated with cryptopp*/ |
| 16151 | #ifdef __LITTLE_ENDIAN |
| 16152 | .key = "\x08\x00" /* rta length */ |
| 16153 | "\x01\x00" /* rta type */ |
| 16154 | #else |
| 16155 | .key = "\x00\x08" /* rta length */ |
| 16156 | "\x00\x01" /* rta type */ |
| 16157 | #endif |
| 16158 | "\x00\x00\x00\x08" /* enc key length */ |
| 16159 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16160 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16161 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 16162 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 16163 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 16164 | .klen = 8 + 32 + 8, |
| 16165 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16166 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16167 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16168 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16169 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16170 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16171 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16172 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16173 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16174 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16175 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16176 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16177 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16178 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16179 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16180 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16181 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16182 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16183 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16184 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16185 | .ilen = 128, |
| 16186 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 16187 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 16188 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 16189 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 16190 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 16191 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 16192 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 16193 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 16194 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 16195 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 16196 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 16197 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 16198 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 16199 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 16200 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 16201 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 16202 | "\xc6\x58\xa1\x60\x70\x91\x39\x36" |
| 16203 | "\x50\xf6\x5d\xab\x4b\x51\x4e\x5e" |
| 16204 | "\xde\x63\xde\x76\x52\xde\x9f\xba" |
| 16205 | "\x90\xcf\x15\xf2\xbb\x6e\x84\x00", |
| 16206 | .rlen = 128 + 32, |
| 16207 | }, |
| 16208 | }; |
| 16209 | |
| 16210 | #define HMAC_SHA384_DES_CBC_ENC_TEST_VEC 1 |
| 16211 | |
| 16212 | static struct aead_testvec hmac_sha384_des_cbc_enc_tv_temp[] = { |
| 16213 | { /*Generated with cryptopp*/ |
| 16214 | #ifdef __LITTLE_ENDIAN |
| 16215 | .key = "\x08\x00" /* rta length */ |
| 16216 | "\x01\x00" /* rta type */ |
| 16217 | #else |
| 16218 | .key = "\x00\x08" /* rta length */ |
| 16219 | "\x00\x01" /* rta type */ |
| 16220 | #endif |
| 16221 | "\x00\x00\x00\x08" /* enc key length */ |
| 16222 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16223 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16224 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 16225 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 16226 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 16227 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 16228 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 16229 | .klen = 8 + 48 + 8, |
| 16230 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16231 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16232 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16233 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16234 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16235 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16236 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16237 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16238 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16239 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16240 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16241 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16242 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16243 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16244 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16245 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16246 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16247 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16248 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16249 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16250 | .ilen = 128, |
| 16251 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 16252 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 16253 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 16254 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 16255 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 16256 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 16257 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 16258 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 16259 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 16260 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 16261 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 16262 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 16263 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 16264 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 16265 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 16266 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 16267 | "\xa8\x8e\x9c\x74\x8c\x2b\x99\xa0" |
| 16268 | "\xc8\x8c\xef\x25\x07\x83\x11\x3a" |
| 16269 | "\x31\x8d\xbe\x3b\x6a\xd7\x96\xfe" |
| 16270 | "\x5e\x67\xb5\x74\xe7\xe7\x85\x61" |
| 16271 | "\x6a\x95\x26\x75\xcc\x53\x89\xf3" |
| 16272 | "\x74\xc9\x2a\x76\x20\xa2\x64\x62", |
| 16273 | .rlen = 128 + 48, |
| 16274 | }, |
| 16275 | }; |
| 16276 | |
| 16277 | #define HMAC_SHA512_DES_CBC_ENC_TEST_VEC 1 |
| 16278 | |
| 16279 | static struct aead_testvec hmac_sha512_des_cbc_enc_tv_temp[] = { |
| 16280 | { /*Generated with cryptopp*/ |
| 16281 | #ifdef __LITTLE_ENDIAN |
| 16282 | .key = "\x08\x00" /* rta length */ |
| 16283 | "\x01\x00" /* rta type */ |
| 16284 | #else |
| 16285 | .key = "\x00\x08" /* rta length */ |
| 16286 | "\x00\x01" /* rta type */ |
| 16287 | #endif |
| 16288 | "\x00\x00\x00\x08" /* enc key length */ |
| 16289 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16290 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16291 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 16292 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 16293 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 16294 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 16295 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 16296 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 16297 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24", |
| 16298 | .klen = 8 + 64 + 8, |
| 16299 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16300 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16301 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16302 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16303 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16304 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16305 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16306 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16307 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16308 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16309 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16310 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16311 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16312 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16313 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16314 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16315 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16316 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16317 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16318 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16319 | .ilen = 128, |
| 16320 | .result = "\x70\xd6\xde\x64\x87\x17\xf1\xe8" |
| 16321 | "\x54\x31\x85\x37\xed\x6b\x01\x8d" |
| 16322 | "\xe3\xcc\xe0\x1d\x5e\xf3\xfe\xf1" |
| 16323 | "\x41\xaa\x33\x91\xa7\x7d\x99\x88" |
| 16324 | "\x4d\x85\x6e\x2f\xa3\x69\xf5\x82" |
| 16325 | "\x3a\x6f\x25\xcb\x7d\x58\x1f\x9b" |
| 16326 | "\xaa\x9c\x11\xd5\x76\x67\xce\xde" |
| 16327 | "\x56\xd7\x5a\x80\x69\xea\x3a\x02" |
| 16328 | "\xf0\xc7\x7c\xe3\xcb\x40\xe5\x52" |
| 16329 | "\xd1\x10\x92\x78\x0b\x8e\x5b\xf1" |
| 16330 | "\xe3\x26\x1f\xe1\x15\x41\xc7\xba" |
| 16331 | "\x99\xdb\x08\x51\x1c\xd3\x01\xf4" |
| 16332 | "\x87\x47\x39\xb8\xd2\xdd\xbd\xfb" |
| 16333 | "\x66\x13\xdf\x1c\x01\x44\xf0\x7a" |
| 16334 | "\x1a\x6b\x13\xf5\xd5\x0b\xb8\xba" |
| 16335 | "\x53\xba\xe1\x76\xe3\x82\x07\x86" |
| 16336 | "\xc6\x2c\x73\x88\xb0\x9d\x5f\x3e" |
| 16337 | "\x5b\x78\xca\x0e\xab\x8a\xa3\xbb" |
| 16338 | "\xd9\x1d\xc3\xe3\x05\xac\x76\xfb" |
| 16339 | "\x58\x83\xda\x67\xfb\x21\x24\xa2" |
| 16340 | "\xb1\xa7\xd7\x66\xa6\x8d\xa6\x93" |
| 16341 | "\x97\xe2\xe3\xb8\xaa\x48\x85\xee" |
| 16342 | "\x8c\xf6\x07\x95\x1f\xa6\x6c\x96" |
| 16343 | "\x99\xc7\x5c\x8d\xd8\xb5\x68\x7b", |
| 16344 | .rlen = 128 + 64, |
| 16345 | }, |
| 16346 | }; |
| 16347 | |
| 16348 | #define HMAC_SHA1_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 16349 | |
| 16350 | static struct aead_testvec hmac_sha1_des3_ede_cbc_enc_tv_temp[] = { |
| 16351 | { /*Generated with cryptopp*/ |
| 16352 | #ifdef __LITTLE_ENDIAN |
| 16353 | .key = "\x08\x00" /* rta length */ |
| 16354 | "\x01\x00" /* rta type */ |
| 16355 | #else |
| 16356 | .key = "\x00\x08" /* rta length */ |
| 16357 | "\x00\x01" /* rta type */ |
| 16358 | #endif |
| 16359 | "\x00\x00\x00\x18" /* enc key length */ |
| 16360 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16361 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16362 | "\x22\x33\x44\x55" |
| 16363 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 16364 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 16365 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 16366 | .klen = 8 + 20 + 24, |
| 16367 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16368 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16369 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16370 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16371 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16372 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16373 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16374 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16375 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16376 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16377 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16378 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16379 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16380 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16381 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16382 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16383 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16384 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16385 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16386 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16387 | .ilen = 128, |
| 16388 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 16389 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 16390 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 16391 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 16392 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 16393 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 16394 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 16395 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 16396 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 16397 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 16398 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 16399 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 16400 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 16401 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 16402 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 16403 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 16404 | "\x67\x6d\xb1\xf5\xb8\x10\xdc\xc6" |
| 16405 | "\x75\x86\x96\x6b\xb1\xc5\xe4\xcf" |
| 16406 | "\xd1\x60\x91\xb3", |
| 16407 | .rlen = 128 + 20, |
| 16408 | }, |
| 16409 | }; |
| 16410 | |
| 16411 | #define HMAC_SHA224_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 16412 | |
| 16413 | static struct aead_testvec hmac_sha224_des3_ede_cbc_enc_tv_temp[] = { |
| 16414 | { /*Generated with cryptopp*/ |
| 16415 | #ifdef __LITTLE_ENDIAN |
| 16416 | .key = "\x08\x00" /* rta length */ |
| 16417 | "\x01\x00" /* rta type */ |
| 16418 | #else |
| 16419 | .key = "\x00\x08" /* rta length */ |
| 16420 | "\x00\x01" /* rta type */ |
| 16421 | #endif |
| 16422 | "\x00\x00\x00\x18" /* enc key length */ |
| 16423 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16424 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16425 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 16426 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 16427 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 16428 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 16429 | .klen = 8 + 24 + 24, |
| 16430 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16431 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16432 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16433 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16434 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16435 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16436 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16437 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16438 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16439 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16440 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16441 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16442 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16443 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16444 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16445 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16446 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16447 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16448 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16449 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16450 | .ilen = 128, |
| 16451 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 16452 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 16453 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 16454 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 16455 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 16456 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 16457 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 16458 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 16459 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 16460 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 16461 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 16462 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 16463 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 16464 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 16465 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 16466 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 16467 | "\x15\x24\x7f\x5a\x45\x4a\x66\xce" |
| 16468 | "\x2b\x0b\x93\x99\x2f\x9d\x0c\x6c" |
| 16469 | "\x56\x1f\xe1\xa6\x41\xb2\x4c\xd0", |
| 16470 | .rlen = 128 + 24, |
| 16471 | }, |
| 16472 | }; |
| 16473 | |
| 16474 | #define HMAC_SHA256_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 16475 | |
| 16476 | static struct aead_testvec hmac_sha256_des3_ede_cbc_enc_tv_temp[] = { |
| 16477 | { /*Generated with cryptopp*/ |
| 16478 | #ifdef __LITTLE_ENDIAN |
| 16479 | .key = "\x08\x00" /* rta length */ |
| 16480 | "\x01\x00" /* rta type */ |
| 16481 | #else |
| 16482 | .key = "\x00\x08" /* rta length */ |
| 16483 | "\x00\x01" /* rta type */ |
| 16484 | #endif |
| 16485 | "\x00\x00\x00\x18" /* enc key length */ |
| 16486 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16487 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16488 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 16489 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 16490 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 16491 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 16492 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 16493 | .klen = 8 + 32 + 24, |
| 16494 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16495 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16496 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16497 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16498 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16499 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16500 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16501 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16502 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16503 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16504 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16505 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16506 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16507 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16508 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16509 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16510 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16511 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16512 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16513 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16514 | .ilen = 128, |
| 16515 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 16516 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 16517 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 16518 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 16519 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 16520 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 16521 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 16522 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 16523 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 16524 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 16525 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 16526 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 16527 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 16528 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 16529 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 16530 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 16531 | "\x73\xb0\xea\x9f\xe8\x18\x80\xd6" |
| 16532 | "\x56\x38\x44\xc0\xdb\xe3\x4f\x71" |
| 16533 | "\xf7\xce\xd1\xd3\xf8\xbd\x3e\x4f" |
| 16534 | "\xca\x43\x95\xdf\x80\x61\x81\xa9", |
| 16535 | .rlen = 128 + 32, |
| 16536 | }, |
| 16537 | }; |
| 16538 | |
| 16539 | #define HMAC_SHA384_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 16540 | |
| 16541 | static struct aead_testvec hmac_sha384_des3_ede_cbc_enc_tv_temp[] = { |
| 16542 | { /*Generated with cryptopp*/ |
| 16543 | #ifdef __LITTLE_ENDIAN |
| 16544 | .key = "\x08\x00" /* rta length */ |
| 16545 | "\x01\x00" /* rta type */ |
| 16546 | #else |
| 16547 | .key = "\x00\x08" /* rta length */ |
| 16548 | "\x00\x01" /* rta type */ |
| 16549 | #endif |
| 16550 | "\x00\x00\x00\x18" /* enc key length */ |
| 16551 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16552 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16553 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 16554 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 16555 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 16556 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 16557 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 16558 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 16559 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 16560 | .klen = 8 + 48 + 24, |
| 16561 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16562 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16563 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16564 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16565 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16566 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16567 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16568 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16569 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16570 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16571 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16572 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16573 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16574 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16575 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16576 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16577 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16578 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16579 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16580 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16581 | .ilen = 128, |
| 16582 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 16583 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 16584 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 16585 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 16586 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 16587 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 16588 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 16589 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 16590 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 16591 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 16592 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 16593 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 16594 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 16595 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 16596 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 16597 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 16598 | "\x6d\x77\xfc\x80\x9d\x8a\x9c\xb7" |
| 16599 | "\x70\xe7\x93\xbf\x73\xe6\x9f\x83" |
| 16600 | "\x99\x62\x23\xe6\x5b\xd0\xda\x18" |
| 16601 | "\xa4\x32\x8a\x0b\x46\xd7\xf0\x39" |
| 16602 | "\x36\x5d\x13\x2f\x86\x10\x78\xd6" |
| 16603 | "\xd6\xbe\x5c\xb9\x15\x89\xf9\x1b", |
| 16604 | .rlen = 128 + 48, |
| 16605 | }, |
| 16606 | }; |
| 16607 | |
| 16608 | #define HMAC_SHA512_DES3_EDE_CBC_ENC_TEST_VEC 1 |
| 16609 | |
| 16610 | static struct aead_testvec hmac_sha512_des3_ede_cbc_enc_tv_temp[] = { |
| 16611 | { /*Generated with cryptopp*/ |
| 16612 | #ifdef __LITTLE_ENDIAN |
| 16613 | .key = "\x08\x00" /* rta length */ |
| 16614 | "\x01\x00" /* rta type */ |
| 16615 | #else |
| 16616 | .key = "\x00\x08" /* rta length */ |
| 16617 | "\x00\x01" /* rta type */ |
| 16618 | #endif |
| 16619 | "\x00\x00\x00\x18" /* enc key length */ |
| 16620 | "\x11\x22\x33\x44\x55\x66\x77\x88" |
| 16621 | "\x99\xaa\xbb\xcc\xdd\xee\xff\x11" |
| 16622 | "\x22\x33\x44\x55\x66\x77\x88\x99" |
| 16623 | "\xaa\xbb\xcc\xdd\xee\xff\x11\x22" |
| 16624 | "\x33\x44\x55\x66\x77\x88\x99\xaa" |
| 16625 | "\xbb\xcc\xdd\xee\xff\x11\x22\x33" |
| 16626 | "\x44\x55\x66\x77\x88\x99\xaa\xbb" |
| 16627 | "\xcc\xdd\xee\xff\x11\x22\x33\x44" |
| 16628 | "\xE9\xC0\xFF\x2E\x76\x0B\x64\x24" |
| 16629 | "\x44\x4D\x99\x5A\x12\xD6\x40\xC0" |
| 16630 | "\xEA\xC2\x84\xE8\x14\x95\xDB\xE8", |
| 16631 | .klen = 8 + 64 + 24, |
| 16632 | .iv = "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
Herbert Xu | 7079ce6 | 2015-07-30 17:53:14 +0800 | [diff] [blame] | 16633 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x01" |
| 16634 | "\x7D\x33\x88\x93\x0F\x93\xB2\x42", |
| 16635 | .alen = 16, |
Nitesh Lal | 5208ed2 | 2014-05-21 17:09:08 +0530 | [diff] [blame] | 16636 | .input = "\x6f\x54\x20\x6f\x61\x4d\x79\x6e" |
| 16637 | "\x53\x20\x63\x65\x65\x72\x73\x74" |
| 16638 | "\x54\x20\x6f\x6f\x4d\x20\x6e\x61" |
| 16639 | "\x20\x79\x65\x53\x72\x63\x74\x65" |
| 16640 | "\x20\x73\x6f\x54\x20\x6f\x61\x4d" |
| 16641 | "\x79\x6e\x53\x20\x63\x65\x65\x72" |
| 16642 | "\x73\x74\x54\x20\x6f\x6f\x4d\x20" |
| 16643 | "\x6e\x61\x20\x79\x65\x53\x72\x63" |
| 16644 | "\x74\x65\x20\x73\x6f\x54\x20\x6f" |
| 16645 | "\x61\x4d\x79\x6e\x53\x20\x63\x65" |
| 16646 | "\x65\x72\x73\x74\x54\x20\x6f\x6f" |
| 16647 | "\x4d\x20\x6e\x61\x20\x79\x65\x53" |
| 16648 | "\x72\x63\x74\x65\x20\x73\x6f\x54" |
| 16649 | "\x20\x6f\x61\x4d\x79\x6e\x53\x20" |
| 16650 | "\x63\x65\x65\x72\x73\x74\x54\x20" |
| 16651 | "\x6f\x6f\x4d\x20\x6e\x61\x0a\x79", |
| 16652 | .ilen = 128, |
| 16653 | .result = "\x0e\x2d\xb6\x97\x3c\x56\x33\xf4" |
| 16654 | "\x67\x17\x21\xc7\x6e\x8a\xd5\x49" |
| 16655 | "\x74\xb3\x49\x05\xc5\x1c\xd0\xed" |
| 16656 | "\x12\x56\x5c\x53\x96\xb6\x00\x7d" |
| 16657 | "\x90\x48\xfc\xf5\x8d\x29\x39\xcc" |
| 16658 | "\x8a\xd5\x35\x18\x36\x23\x4e\xd7" |
| 16659 | "\x76\xd1\xda\x0c\x94\x67\xbb\x04" |
| 16660 | "\x8b\xf2\x03\x6c\xa8\xcf\xb6\xea" |
| 16661 | "\x22\x64\x47\xaa\x8f\x75\x13\xbf" |
| 16662 | "\x9f\xc2\xc3\xf0\xc9\x56\xc5\x7a" |
| 16663 | "\x71\x63\x2e\x89\x7b\x1e\x12\xca" |
| 16664 | "\xe2\x5f\xaf\xd8\xa4\xf8\xc9\x7a" |
| 16665 | "\xd6\xf9\x21\x31\x62\x44\x45\xa6" |
| 16666 | "\xd6\xbc\x5a\xd3\x2d\x54\x43\xcc" |
| 16667 | "\x9d\xde\xa5\x70\xe9\x42\x45\x8a" |
| 16668 | "\x6b\xfa\xb1\x91\x13\xb0\xd9\x19" |
| 16669 | "\x41\xb5\x1f\xbb\xbd\x4e\xb8\x32" |
| 16670 | "\x22\x86\x4e\x57\x1b\x2a\xd8\x6e" |
| 16671 | "\xa9\xfb\xc8\xf3\xbf\x2d\xae\x2b" |
| 16672 | "\x3b\xbc\x41\xe8\x38\xbb\xf1\x60" |
| 16673 | "\x4c\x68\xa9\x4e\x8c\x73\xa7\xc0" |
| 16674 | "\x2a\x74\xd4\x65\x12\xcb\x55\xf2" |
| 16675 | "\xd5\x02\x6d\xe6\xaf\xc9\x2f\xf2" |
| 16676 | "\x57\xaa\x85\xf7\xf3\x6a\xcb\xdb", |
| 16677 | .rlen = 128 + 64, |
| 16678 | }, |
| 16679 | }; |
| 16680 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16681 | static struct cipher_testvec aes_lrw_enc_tv_template[] = { |
| 16682 | /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ |
| 16683 | { /* LRW-32-AES 1 */ |
| 16684 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 16685 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 16686 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 16687 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 16688 | .klen = 32, |
| 16689 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16690 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 16691 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16692 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16693 | .ilen = 16, |
| 16694 | .result = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" |
| 16695 | "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", |
| 16696 | .rlen = 16, |
| 16697 | }, { /* LRW-32-AES 2 */ |
| 16698 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 16699 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 16700 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 16701 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 16702 | .klen = 32, |
| 16703 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16704 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 16705 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16706 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16707 | .ilen = 16, |
| 16708 | .result = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" |
| 16709 | "\x27\x4f\x07\x69\xb2\x60\xe1\x36", |
| 16710 | .rlen = 16, |
| 16711 | }, { /* LRW-32-AES 3 */ |
| 16712 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 16713 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 16714 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 16715 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 16716 | .klen = 32, |
| 16717 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16718 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 16719 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16720 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16721 | .ilen = 16, |
| 16722 | .result = "\x76\x32\x21\x83\xed\x8f\xf1\x82" |
| 16723 | "\xf9\x59\x62\x03\x69\x0e\x5e\x01", |
| 16724 | .rlen = 16, |
| 16725 | }, { /* LRW-32-AES 4 */ |
| 16726 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 16727 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 16728 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 16729 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 16730 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 16731 | .klen = 40, |
| 16732 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16733 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 16734 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16735 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16736 | .ilen = 16, |
| 16737 | .result = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" |
| 16738 | "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", |
| 16739 | .rlen = 16, |
| 16740 | }, { /* LRW-32-AES 5 */ |
| 16741 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 16742 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 16743 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 16744 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 16745 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 16746 | .klen = 40, |
| 16747 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16748 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 16749 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16750 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16751 | .ilen = 16, |
| 16752 | .result = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" |
| 16753 | "\xc8\x60\x48\x02\x87\xe3\x34\x06", |
| 16754 | .rlen = 16, |
| 16755 | }, { /* LRW-32-AES 6 */ |
| 16756 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 16757 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 16758 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 16759 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 16760 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 16761 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 16762 | .klen = 48, |
| 16763 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16764 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 16765 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16766 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16767 | .ilen = 16, |
| 16768 | .result = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" |
| 16769 | "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", |
| 16770 | .rlen = 16, |
| 16771 | }, { /* LRW-32-AES 7 */ |
| 16772 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 16773 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 16774 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 16775 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 16776 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 16777 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 16778 | .klen = 48, |
| 16779 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16780 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 16781 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16782 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16783 | .ilen = 16, |
| 16784 | .result = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" |
| 16785 | "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", |
| 16786 | .rlen = 16, |
| 16787 | }, { |
| 16788 | /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ |
| 16789 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 16790 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 16791 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 16792 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 16793 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 16794 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 16795 | .klen = 48, |
| 16796 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16797 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 16798 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 16799 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 16800 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 16801 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 16802 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 16803 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 16804 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 16805 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 16806 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 16807 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 16808 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 16809 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 16810 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 16811 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 16812 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 16813 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 16814 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 16815 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 16816 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 16817 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 16818 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 16819 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 16820 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 16821 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 16822 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 16823 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 16824 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 16825 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 16826 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 16827 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 16828 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 16829 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 16830 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 16831 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 16832 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 16833 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 16834 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 16835 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 16836 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 16837 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 16838 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 16839 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 16840 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 16841 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 16842 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 16843 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 16844 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 16845 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 16846 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 16847 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 16848 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 16849 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 16850 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 16851 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 16852 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 16853 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 16854 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 16855 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 16856 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 16857 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 16858 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 16859 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 16860 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 16861 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 16862 | .ilen = 512, |
| 16863 | .result = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" |
| 16864 | "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" |
| 16865 | "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" |
| 16866 | "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" |
| 16867 | "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" |
| 16868 | "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" |
| 16869 | "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" |
| 16870 | "\xe8\x58\x46\x97\x39\x51\x07\xde" |
| 16871 | "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" |
| 16872 | "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" |
| 16873 | "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" |
| 16874 | "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" |
| 16875 | "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" |
| 16876 | "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" |
| 16877 | "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" |
| 16878 | "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" |
| 16879 | "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" |
| 16880 | "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" |
| 16881 | "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" |
| 16882 | "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" |
| 16883 | "\x18\x55\xa1\x24\x0b\x24\x24\xaf" |
| 16884 | "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" |
| 16885 | "\xff\xed\x89\xce\xd5\x3d\x88\xf3" |
| 16886 | "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" |
| 16887 | "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" |
| 16888 | "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" |
| 16889 | "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" |
| 16890 | "\x41\x30\x58\xc5\x62\x74\x52\x1d" |
| 16891 | "\x45\x24\x6a\x42\x64\x4f\x97\x1c" |
| 16892 | "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" |
| 16893 | "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" |
| 16894 | "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" |
| 16895 | "\xe4\x81\x84\x95\x36\x59\x7a\x6b" |
| 16896 | "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" |
| 16897 | "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" |
| 16898 | "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" |
| 16899 | "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" |
| 16900 | "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" |
| 16901 | "\xb8\x79\x78\x97\x94\xff\x72\x13" |
| 16902 | "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" |
| 16903 | "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" |
| 16904 | "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" |
| 16905 | "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" |
| 16906 | "\xcc\xce\x51\x0c\x19\x8a\x82\x30" |
| 16907 | "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" |
| 16908 | "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" |
| 16909 | "\x1e\x86\x53\x11\x53\x94\x00\xee" |
| 16910 | "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" |
| 16911 | "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" |
| 16912 | "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" |
| 16913 | "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" |
| 16914 | "\x9e\xfa\x31\x18\x45\x3c\x21\x33" |
| 16915 | "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" |
| 16916 | "\x03\xad\x1b\x48\xd4\x67\x27\xf0" |
| 16917 | "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" |
| 16918 | "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" |
| 16919 | "\xf7\x11\x90\xec\xbd\x51\x5c\x32" |
| 16920 | "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" |
| 16921 | "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" |
| 16922 | "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" |
| 16923 | "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" |
| 16924 | "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" |
| 16925 | "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" |
| 16926 | "\x74\x3f\x7d\x58\x88\x75\xde\x3e", |
| 16927 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 16928 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 16929 | .np = 3, |
| 16930 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 16931 | } |
| 16932 | }; |
| 16933 | |
| 16934 | static struct cipher_testvec aes_lrw_dec_tv_template[] = { |
| 16935 | /* from http://grouper.ieee.org/groups/1619/email/pdf00017.pdf */ |
| 16936 | /* same as enc vectors with input and result reversed */ |
| 16937 | { /* LRW-32-AES 1 */ |
| 16938 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 16939 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 16940 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 16941 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 16942 | .klen = 32, |
| 16943 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16944 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 16945 | .input = "\xf1\xb2\x73\xcd\x65\xa3\xdf\x5f" |
| 16946 | "\xe9\x5d\x48\x92\x54\x63\x4e\xb8", |
| 16947 | .ilen = 16, |
| 16948 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16949 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16950 | .rlen = 16, |
| 16951 | }, { /* LRW-32-AES 2 */ |
| 16952 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 16953 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 16954 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 16955 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 16956 | .klen = 32, |
| 16957 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16958 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 16959 | .input = "\x00\xc8\x2b\xae\x95\xbb\xcd\xe5" |
| 16960 | "\x27\x4f\x07\x69\xb2\x60\xe1\x36", |
| 16961 | .ilen = 16, |
| 16962 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16963 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16964 | .rlen = 16, |
| 16965 | }, { /* LRW-32-AES 3 */ |
| 16966 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 16967 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 16968 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 16969 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 16970 | .klen = 32, |
| 16971 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16972 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 16973 | .input = "\x76\x32\x21\x83\xed\x8f\xf1\x82" |
| 16974 | "\xf9\x59\x62\x03\x69\x0e\x5e\x01", |
| 16975 | .ilen = 16, |
| 16976 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16977 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16978 | .rlen = 16, |
| 16979 | }, { /* LRW-32-AES 4 */ |
| 16980 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 16981 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 16982 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 16983 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 16984 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 16985 | .klen = 40, |
| 16986 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 16987 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 16988 | .input = "\x9c\x0f\x15\x2f\x55\xa2\xd8\xf0" |
| 16989 | "\xd6\x7b\x8f\x9e\x28\x22\xbc\x41", |
| 16990 | .ilen = 16, |
| 16991 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 16992 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 16993 | .rlen = 16, |
| 16994 | }, { /* LRW-32-AES 5 */ |
| 16995 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 16996 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 16997 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 16998 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 16999 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 17000 | .klen = 40, |
| 17001 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17002 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 17003 | .input = "\xd4\x27\x6a\x7f\x14\x91\x3d\x65" |
| 17004 | "\xc8\x60\x48\x02\x87\xe3\x34\x06", |
| 17005 | .ilen = 16, |
| 17006 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17007 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 17008 | .rlen = 16, |
| 17009 | }, { /* LRW-32-AES 6 */ |
| 17010 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 17011 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 17012 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 17013 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 17014 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 17015 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 17016 | .klen = 48, |
| 17017 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17018 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 17019 | .input = "\xbd\x06\xb8\xe1\xdb\x98\x89\x9e" |
| 17020 | "\xc4\x98\xe4\x91\xcf\x1c\x70\x2b", |
| 17021 | .ilen = 16, |
| 17022 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17023 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 17024 | .rlen = 16, |
| 17025 | }, { /* LRW-32-AES 7 */ |
| 17026 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 17027 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 17028 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 17029 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 17030 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 17031 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 17032 | .klen = 48, |
| 17033 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17034 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 17035 | .input = "\x5b\x90\x8e\xc1\xab\xdd\x67\x5f" |
| 17036 | "\x3d\x69\x8a\x95\x53\xc8\x9c\xe5", |
| 17037 | .ilen = 16, |
| 17038 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17039 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 17040 | .rlen = 16, |
| 17041 | }, { |
| 17042 | /* http://www.mail-archive.com/stds-p1619@listserv.ieee.org/msg00173.html */ |
| 17043 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 17044 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 17045 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 17046 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 17047 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 17048 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 17049 | .klen = 48, |
| 17050 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17051 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 17052 | .input = "\x1a\x1d\xa9\x30\xad\xf9\x2f\x9b" |
| 17053 | "\xb6\x1d\xae\xef\xf0\x2f\xf8\x5a" |
| 17054 | "\x39\x3c\xbf\x2a\xb2\x45\xb2\x23" |
| 17055 | "\x1b\x63\x3c\xcf\xaa\xbe\xcf\x4e" |
| 17056 | "\xfa\xe8\x29\xc2\x20\x68\x2b\x3c" |
| 17057 | "\x2e\x8b\xf7\x6e\x25\xbd\xe3\x3d" |
| 17058 | "\x66\x27\xd6\xaf\xd6\x64\x3e\xe3" |
| 17059 | "\xe8\x58\x46\x97\x39\x51\x07\xde" |
| 17060 | "\xcb\x37\xbc\xa9\xc0\x5f\x75\xc3" |
| 17061 | "\x0e\x84\x23\x1d\x16\xd4\x1c\x59" |
| 17062 | "\x9c\x1a\x02\x55\xab\x3a\x97\x1d" |
| 17063 | "\xdf\xdd\xc7\x06\x51\xd7\x70\xae" |
| 17064 | "\x23\xc6\x8c\xf5\x1e\xa0\xe5\x82" |
| 17065 | "\xb8\xb2\xbf\x04\xa0\x32\x8e\x68" |
| 17066 | "\xeb\xaf\x6e\x2d\x94\x22\x2f\xce" |
| 17067 | "\x4c\xb5\x59\xe2\xa2\x2f\xa0\x98" |
| 17068 | "\x1a\x97\xc6\xd4\xb5\x00\x59\xf2" |
| 17069 | "\x84\x14\x72\xb1\x9a\x6e\xa3\x7f" |
| 17070 | "\xea\x20\xe7\xcb\x65\x77\x3a\xdf" |
| 17071 | "\xc8\x97\x67\x15\xc2\x2a\x27\xcc" |
| 17072 | "\x18\x55\xa1\x24\x0b\x24\x24\xaf" |
| 17073 | "\x5b\xec\x68\xb8\xc8\xf5\xba\x63" |
| 17074 | "\xff\xed\x89\xce\xd5\x3d\x88\xf3" |
| 17075 | "\x25\xef\x05\x7c\x3a\xef\xeb\xd8" |
| 17076 | "\x7a\x32\x0d\xd1\x1e\x58\x59\x99" |
| 17077 | "\x90\x25\xb5\x26\xb0\xe3\x2b\x6c" |
| 17078 | "\x4c\xa9\x8b\x84\x4f\x5e\x01\x50" |
| 17079 | "\x41\x30\x58\xc5\x62\x74\x52\x1d" |
| 17080 | "\x45\x24\x6a\x42\x64\x4f\x97\x1c" |
| 17081 | "\xa8\x66\xb5\x6d\x79\xd4\x0d\x48" |
| 17082 | "\xc5\x5f\xf3\x90\x32\xdd\xdd\xe1" |
| 17083 | "\xe4\xa9\x9f\xfc\xc3\x52\x5a\x46" |
| 17084 | "\xe4\x81\x84\x95\x36\x59\x7a\x6b" |
| 17085 | "\xaa\xb3\x60\xad\xce\x9f\x9f\x28" |
| 17086 | "\xe0\x01\x75\x22\xc4\x4e\xa9\x62" |
| 17087 | "\x5c\x62\x0d\x00\xcb\x13\xe8\x43" |
| 17088 | "\x72\xd4\x2d\x53\x46\xb5\xd1\x16" |
| 17089 | "\x22\x18\xdf\x34\x33\xf5\xd6\x1c" |
| 17090 | "\xb8\x79\x78\x97\x94\xff\x72\x13" |
| 17091 | "\x4c\x27\xfc\xcb\xbf\x01\x53\xa6" |
| 17092 | "\xb4\x50\x6e\xde\xdf\xb5\x43\xa4" |
| 17093 | "\x59\xdf\x52\xf9\x7c\xe0\x11\x6f" |
| 17094 | "\x2d\x14\x8e\x24\x61\x2c\xe1\x17" |
| 17095 | "\xcc\xce\x51\x0c\x19\x8a\x82\x30" |
| 17096 | "\x94\xd5\x3d\x6a\x53\x06\x5e\xbd" |
| 17097 | "\xb7\xeb\xfa\xfd\x27\x51\xde\x85" |
| 17098 | "\x1e\x86\x53\x11\x53\x94\x00\xee" |
| 17099 | "\x2b\x8c\x08\x2a\xbf\xdd\xae\x11" |
| 17100 | "\xcb\x1e\xa2\x07\x9a\x80\xcf\x62" |
| 17101 | "\x9b\x09\xdc\x95\x3c\x96\x8e\xb1" |
| 17102 | "\x09\xbd\xe4\xeb\xdb\xca\x70\x7a" |
| 17103 | "\x9e\xfa\x31\x18\x45\x3c\x21\x33" |
| 17104 | "\xb0\xb3\x2b\xea\xf3\x71\x2d\xe1" |
| 17105 | "\x03\xad\x1b\x48\xd4\x67\x27\xf0" |
| 17106 | "\x62\xe4\x3d\xfb\x9b\x08\x76\xe7" |
| 17107 | "\xdd\x2b\x01\x39\x04\x5a\x58\x7a" |
| 17108 | "\xf7\x11\x90\xec\xbd\x51\x5c\x32" |
| 17109 | "\x6b\xd7\x35\x39\x02\x6b\xf2\xa6" |
| 17110 | "\xd0\x0d\x07\xe1\x06\xc4\x5b\x7d" |
| 17111 | "\xe4\x6a\xd7\xee\x15\x1f\x83\xb4" |
| 17112 | "\xa3\xa7\x5e\xc3\x90\xb7\xef\xd3" |
| 17113 | "\xb7\x4f\xf8\x92\x4c\xb7\x3c\x29" |
| 17114 | "\xcd\x7e\x2b\x5d\x43\xea\x42\xe7" |
| 17115 | "\x74\x3f\x7d\x58\x88\x75\xde\x3e", |
| 17116 | .ilen = 512, |
| 17117 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 17118 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 17119 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 17120 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 17121 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 17122 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 17123 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 17124 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 17125 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 17126 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 17127 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 17128 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 17129 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 17130 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 17131 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 17132 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 17133 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 17134 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 17135 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 17136 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 17137 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 17138 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 17139 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 17140 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 17141 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 17142 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 17143 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 17144 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 17145 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 17146 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 17147 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 17148 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 17149 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 17150 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 17151 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 17152 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 17153 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 17154 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 17155 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 17156 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 17157 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 17158 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 17159 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 17160 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 17161 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 17162 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 17163 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 17164 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 17165 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 17166 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 17167 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 17168 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 17169 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 17170 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 17171 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 17172 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 17173 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 17174 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 17175 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 17176 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 17177 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 17178 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 17179 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 17180 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 17181 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 17182 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 17183 | .np = 3, |
| 17184 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17185 | } |
| 17186 | }; |
| 17187 | |
| 17188 | static struct cipher_testvec aes_xts_enc_tv_template[] = { |
| 17189 | /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ |
| 17190 | { /* XTS-AES 1 */ |
| 17191 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17192 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17193 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17194 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17195 | .klen = 32, |
| 17196 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17197 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17198 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17199 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17200 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17201 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17202 | .ilen = 32, |
| 17203 | .result = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" |
| 17204 | "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" |
| 17205 | "\xcd\x43\xd2\xf5\x95\x98\xed\x85" |
| 17206 | "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", |
| 17207 | .rlen = 32, |
| 17208 | }, { /* XTS-AES 2 */ |
| 17209 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 17210 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 17211 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 17212 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 17213 | .klen = 32, |
| 17214 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 17215 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17216 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17217 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17218 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17219 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 17220 | .ilen = 32, |
| 17221 | .result = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" |
| 17222 | "\x39\x33\x40\x38\xac\xef\x83\x8b" |
| 17223 | "\xfb\x18\x6f\xff\x74\x80\xad\xc4" |
| 17224 | "\x28\x93\x82\xec\xd6\xd3\x94\xf0", |
| 17225 | .rlen = 32, |
| 17226 | }, { /* XTS-AES 3 */ |
| 17227 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 17228 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 17229 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 17230 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 17231 | .klen = 32, |
| 17232 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 17233 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17234 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17235 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17236 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17237 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 17238 | .ilen = 32, |
| 17239 | .result = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" |
| 17240 | "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" |
| 17241 | "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" |
| 17242 | "\x21\x86\xa5\x97\x1a\x22\x7a\x89", |
| 17243 | .rlen = 32, |
| 17244 | }, { /* XTS-AES 4 */ |
| 17245 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 17246 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 17247 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 17248 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 17249 | .klen = 32, |
| 17250 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17251 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17252 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17253 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17254 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17255 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17256 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17257 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17258 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17259 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17260 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 17261 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 17262 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 17263 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 17264 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 17265 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 17266 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 17267 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 17268 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 17269 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 17270 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 17271 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 17272 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17273 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17274 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17275 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17276 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17277 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17278 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17279 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 17280 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 17281 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 17282 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17283 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 17284 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17285 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17286 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17287 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17288 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17289 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17290 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17291 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17292 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 17293 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 17294 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 17295 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 17296 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 17297 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 17298 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 17299 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 17300 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 17301 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 17302 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 17303 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 17304 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17305 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17306 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17307 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17308 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17309 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17310 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17311 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 17312 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 17313 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 17314 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17315 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 17316 | .ilen = 512, |
| 17317 | .result = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" |
| 17318 | "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" |
| 17319 | "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" |
| 17320 | "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" |
| 17321 | "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" |
| 17322 | "\x83\x33\xd8\xfa\x7f\x56\x00\x00" |
| 17323 | "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" |
| 17324 | "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" |
| 17325 | "\x32\x80\x63\xfd\x2a\xab\x53\xe5" |
| 17326 | "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" |
| 17327 | "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" |
| 17328 | "\x51\x2c\x88\x66\xc7\xe8\x60\xce" |
| 17329 | "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" |
| 17330 | "\x22\x97\x61\x46\xae\x20\xce\x84" |
| 17331 | "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" |
| 17332 | "\xae\xf2\x0c\x0d\x61\xad\x02\x65" |
| 17333 | "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" |
| 17334 | "\x52\xc6\x51\xd3\x31\x74\xbe\x51" |
| 17335 | "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" |
| 17336 | "\x88\xed\xe8\x21\x03\xa2\x52\xd8" |
| 17337 | "\xa7\x50\xe8\x76\x8d\xef\xff\xed" |
| 17338 | "\x91\x22\x81\x0a\xae\xb9\x9f\x91" |
| 17339 | "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" |
| 17340 | "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" |
| 17341 | "\x13\x32\xe4\xca\x60\x48\x2a\x4b" |
| 17342 | "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" |
| 17343 | "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" |
| 17344 | "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" |
| 17345 | "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" |
| 17346 | "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" |
| 17347 | "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" |
| 17348 | "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" |
| 17349 | "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" |
| 17350 | "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" |
| 17351 | "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" |
| 17352 | "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" |
| 17353 | "\x1e\x08\x29\x85\x16\xe2\xc9\xed" |
| 17354 | "\x03\xff\x3c\x1b\x78\x60\xf6\xde" |
| 17355 | "\x76\xd4\xce\xcd\x94\xc8\x11\x98" |
| 17356 | "\x55\xef\x52\x97\xca\x67\xe9\xf3" |
| 17357 | "\xe7\xff\x72\xb1\xe9\x97\x85\xca" |
| 17358 | "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" |
| 17359 | "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" |
| 17360 | "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" |
| 17361 | "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" |
| 17362 | "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" |
| 17363 | "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" |
| 17364 | "\x99\x02\x7a\x78\x57\x2a\xee\xbd" |
| 17365 | "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" |
| 17366 | "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" |
| 17367 | "\x18\x84\x69\x77\xae\x11\x9f\x7a" |
| 17368 | "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" |
| 17369 | "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" |
| 17370 | "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" |
| 17371 | "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" |
| 17372 | "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" |
| 17373 | "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" |
| 17374 | "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" |
| 17375 | "\x44\x92\x77\xdb\xd4\x77\xef\x2c" |
| 17376 | "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" |
| 17377 | "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" |
| 17378 | "\xf2\x62\x73\x57\x79\xa4\x18\xf2" |
| 17379 | "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" |
| 17380 | "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", |
| 17381 | .rlen = 512, |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 17382 | }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ |
| 17383 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 17384 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 17385 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 17386 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 17387 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 17388 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 17389 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 17390 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 17391 | .klen = 64, |
| 17392 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 17393 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 17394 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17395 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17396 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17397 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17398 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17399 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17400 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17401 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17402 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 17403 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 17404 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 17405 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 17406 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 17407 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 17408 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 17409 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 17410 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 17411 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 17412 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 17413 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 17414 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17415 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17416 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17417 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17418 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17419 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17420 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17421 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 17422 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 17423 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 17424 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17425 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 17426 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17427 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17428 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17429 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17430 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17431 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17432 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17433 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17434 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 17435 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 17436 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 17437 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 17438 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 17439 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 17440 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 17441 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 17442 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 17443 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 17444 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 17445 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 17446 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17447 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17448 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17449 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17450 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17451 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17452 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17453 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 17454 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 17455 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 17456 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17457 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 17458 | .ilen = 512, |
| 17459 | .result = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" |
| 17460 | "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" |
| 17461 | "\xea\x00\x80\x3f\x5e\x48\x23\x57" |
| 17462 | "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" |
| 17463 | "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" |
| 17464 | "\x66\xb3\x17\xf9\xac\x68\x3f\x44" |
| 17465 | "\x68\x0a\x86\xac\x35\xad\xfc\x33" |
| 17466 | "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" |
| 17467 | "\x57\x76\x92\x6c\x49\xa3\x09\x5e" |
| 17468 | "\xb1\x08\xfd\x10\x98\xba\xec\x70" |
| 17469 | "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" |
| 17470 | "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" |
| 17471 | "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" |
| 17472 | "\xae\xba\x12\x29\x61\xd0\x3a\x75" |
| 17473 | "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" |
| 17474 | "\x00\x02\x08\x87\x89\x14\x29\xca" |
| 17475 | "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" |
| 17476 | "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" |
| 17477 | "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" |
| 17478 | "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" |
| 17479 | "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" |
| 17480 | "\x21\xc7\x90\xdf\xe1\xde\x18\x34" |
| 17481 | "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" |
| 17482 | "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" |
| 17483 | "\x93\xec\x05\xc5\x2e\x04\x93\xef" |
| 17484 | "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" |
| 17485 | "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" |
| 17486 | "\x84\x14\x73\xd1\xa8\xcc\x81\xec" |
| 17487 | "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" |
| 17488 | "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" |
| 17489 | "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" |
| 17490 | "\x17\xb6\xba\x02\x46\x9a\x02\x0a" |
| 17491 | "\x84\xe1\x8e\x8f\x84\x25\x20\x70" |
| 17492 | "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" |
| 17493 | "\xbc\x48\x14\x57\x77\x8f\x61\x60" |
| 17494 | "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" |
| 17495 | "\x50\x5e\xb3\x09\x32\x6d\x68\x37" |
| 17496 | "\x8f\x83\x74\x59\x5c\x84\x9d\x84" |
| 17497 | "\xf4\xc3\x33\xec\x44\x23\x88\x51" |
| 17498 | "\x43\xcb\x47\xbd\x71\xc5\xed\xae" |
| 17499 | "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" |
| 17500 | "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" |
| 17501 | "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" |
| 17502 | "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" |
| 17503 | "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" |
| 17504 | "\x84\xc5\x87\x54\xcc\xe2\x94\x52" |
| 17505 | "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" |
| 17506 | "\x92\x5f\xed\xc4\xae\x74\xff\xac" |
| 17507 | "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" |
| 17508 | "\x79\xda\x9a\x41\x0e\x44\x50\xe0" |
| 17509 | "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" |
| 17510 | "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" |
| 17511 | "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" |
| 17512 | "\x94\x30\x54\xff\x84\x01\x14\x93" |
| 17513 | "\xc2\x7b\x34\x29\xea\xed\xb4\xed" |
| 17514 | "\x53\x76\x44\x1a\x77\xed\x43\x85" |
| 17515 | "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" |
| 17516 | "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" |
| 17517 | "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" |
| 17518 | "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" |
| 17519 | "\x77\x3d\xad\x38\x01\x4b\xd2\x09" |
| 17520 | "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" |
| 17521 | "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" |
| 17522 | "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", |
| 17523 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 17524 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 17525 | .np = 3, |
| 17526 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17527 | } |
| 17528 | }; |
| 17529 | |
| 17530 | static struct cipher_testvec aes_xts_dec_tv_template[] = { |
| 17531 | /* http://grouper.ieee.org/groups/1619/email/pdf00086.pdf */ |
| 17532 | { /* XTS-AES 1 */ |
| 17533 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17534 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17535 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17536 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17537 | .klen = 32, |
| 17538 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17539 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17540 | .input = "\x91\x7c\xf6\x9e\xbd\x68\xb2\xec" |
| 17541 | "\x9b\x9f\xe9\xa3\xea\xdd\xa6\x92" |
| 17542 | "\xcd\x43\xd2\xf5\x95\x98\xed\x85" |
| 17543 | "\x8c\x02\xc2\x65\x2f\xbf\x92\x2e", |
| 17544 | .ilen = 32, |
| 17545 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17546 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17547 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17548 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17549 | .rlen = 32, |
| 17550 | }, { /* XTS-AES 2 */ |
| 17551 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 17552 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 17553 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 17554 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 17555 | .klen = 32, |
| 17556 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 17557 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17558 | .input = "\xc4\x54\x18\x5e\x6a\x16\x93\x6e" |
| 17559 | "\x39\x33\x40\x38\xac\xef\x83\x8b" |
| 17560 | "\xfb\x18\x6f\xff\x74\x80\xad\xc4" |
| 17561 | "\x28\x93\x82\xec\xd6\xd3\x94\xf0", |
| 17562 | .ilen = 32, |
| 17563 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17564 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17565 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17566 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 17567 | .rlen = 32, |
| 17568 | }, { /* XTS-AES 3 */ |
| 17569 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 17570 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 17571 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 17572 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 17573 | .klen = 32, |
| 17574 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 17575 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17576 | .input = "\xaf\x85\x33\x6b\x59\x7a\xfc\x1a" |
| 17577 | "\x90\x0b\x2e\xb2\x1e\xc9\x49\xd2" |
| 17578 | "\x92\xdf\x4c\x04\x7e\x0b\x21\x53" |
| 17579 | "\x21\x86\xa5\x97\x1a\x22\x7a\x89", |
| 17580 | .ilen = 32, |
| 17581 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17582 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17583 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 17584 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 17585 | .rlen = 32, |
| 17586 | }, { /* XTS-AES 4 */ |
| 17587 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 17588 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 17589 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 17590 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 17591 | .klen = 32, |
| 17592 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 17593 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 17594 | .input = "\x27\xa7\x47\x9b\xef\xa1\xd4\x76" |
| 17595 | "\x48\x9f\x30\x8c\xd4\xcf\xa6\xe2" |
| 17596 | "\xa9\x6e\x4b\xbe\x32\x08\xff\x25" |
| 17597 | "\x28\x7d\xd3\x81\x96\x16\xe8\x9c" |
| 17598 | "\xc7\x8c\xf7\xf5\xe5\x43\x44\x5f" |
| 17599 | "\x83\x33\xd8\xfa\x7f\x56\x00\x00" |
| 17600 | "\x05\x27\x9f\xa5\xd8\xb5\xe4\xad" |
| 17601 | "\x40\xe7\x36\xdd\xb4\xd3\x54\x12" |
| 17602 | "\x32\x80\x63\xfd\x2a\xab\x53\xe5" |
| 17603 | "\xea\x1e\x0a\x9f\x33\x25\x00\xa5" |
| 17604 | "\xdf\x94\x87\xd0\x7a\x5c\x92\xcc" |
| 17605 | "\x51\x2c\x88\x66\xc7\xe8\x60\xce" |
| 17606 | "\x93\xfd\xf1\x66\xa2\x49\x12\xb4" |
| 17607 | "\x22\x97\x61\x46\xae\x20\xce\x84" |
| 17608 | "\x6b\xb7\xdc\x9b\xa9\x4a\x76\x7a" |
| 17609 | "\xae\xf2\x0c\x0d\x61\xad\x02\x65" |
| 17610 | "\x5e\xa9\x2d\xc4\xc4\xe4\x1a\x89" |
| 17611 | "\x52\xc6\x51\xd3\x31\x74\xbe\x51" |
| 17612 | "\xa1\x0c\x42\x11\x10\xe6\xd8\x15" |
| 17613 | "\x88\xed\xe8\x21\x03\xa2\x52\xd8" |
| 17614 | "\xa7\x50\xe8\x76\x8d\xef\xff\xed" |
| 17615 | "\x91\x22\x81\x0a\xae\xb9\x9f\x91" |
| 17616 | "\x72\xaf\x82\xb6\x04\xdc\x4b\x8e" |
| 17617 | "\x51\xbc\xb0\x82\x35\xa6\xf4\x34" |
| 17618 | "\x13\x32\xe4\xca\x60\x48\x2a\x4b" |
| 17619 | "\xa1\xa0\x3b\x3e\x65\x00\x8f\xc5" |
| 17620 | "\xda\x76\xb7\x0b\xf1\x69\x0d\xb4" |
| 17621 | "\xea\xe2\x9c\x5f\x1b\xad\xd0\x3c" |
| 17622 | "\x5c\xcf\x2a\x55\xd7\x05\xdd\xcd" |
| 17623 | "\x86\xd4\x49\x51\x1c\xeb\x7e\xc3" |
| 17624 | "\x0b\xf1\x2b\x1f\xa3\x5b\x91\x3f" |
| 17625 | "\x9f\x74\x7a\x8a\xfd\x1b\x13\x0e" |
| 17626 | "\x94\xbf\xf9\x4e\xff\xd0\x1a\x91" |
| 17627 | "\x73\x5c\xa1\x72\x6a\xcd\x0b\x19" |
| 17628 | "\x7c\x4e\x5b\x03\x39\x36\x97\xe1" |
| 17629 | "\x26\x82\x6f\xb6\xbb\xde\x8e\xcc" |
| 17630 | "\x1e\x08\x29\x85\x16\xe2\xc9\xed" |
| 17631 | "\x03\xff\x3c\x1b\x78\x60\xf6\xde" |
| 17632 | "\x76\xd4\xce\xcd\x94\xc8\x11\x98" |
| 17633 | "\x55\xef\x52\x97\xca\x67\xe9\xf3" |
| 17634 | "\xe7\xff\x72\xb1\xe9\x97\x85\xca" |
| 17635 | "\x0a\x7e\x77\x20\xc5\xb3\x6d\xc6" |
| 17636 | "\xd7\x2c\xac\x95\x74\xc8\xcb\xbc" |
| 17637 | "\x2f\x80\x1e\x23\xe5\x6f\xd3\x44" |
| 17638 | "\xb0\x7f\x22\x15\x4b\xeb\xa0\xf0" |
| 17639 | "\x8c\xe8\x89\x1e\x64\x3e\xd9\x95" |
| 17640 | "\xc9\x4d\x9a\x69\xc9\xf1\xb5\xf4" |
| 17641 | "\x99\x02\x7a\x78\x57\x2a\xee\xbd" |
| 17642 | "\x74\xd2\x0c\xc3\x98\x81\xc2\x13" |
| 17643 | "\xee\x77\x0b\x10\x10\xe4\xbe\xa7" |
| 17644 | "\x18\x84\x69\x77\xae\x11\x9f\x7a" |
| 17645 | "\x02\x3a\xb5\x8c\xca\x0a\xd7\x52" |
| 17646 | "\xaf\xe6\x56\xbb\x3c\x17\x25\x6a" |
| 17647 | "\x9f\x6e\x9b\xf1\x9f\xdd\x5a\x38" |
| 17648 | "\xfc\x82\xbb\xe8\x72\xc5\x53\x9e" |
| 17649 | "\xdb\x60\x9e\xf4\xf7\x9c\x20\x3e" |
| 17650 | "\xbb\x14\x0f\x2e\x58\x3c\xb2\xad" |
| 17651 | "\x15\xb4\xaa\x5b\x65\x50\x16\xa8" |
| 17652 | "\x44\x92\x77\xdb\xd4\x77\xef\x2c" |
| 17653 | "\x8d\x6c\x01\x7d\xb7\x38\xb1\x8d" |
| 17654 | "\xeb\x4a\x42\x7d\x19\x23\xce\x3f" |
| 17655 | "\xf2\x62\x73\x57\x79\xa4\x18\xf2" |
| 17656 | "\x0a\x28\x2d\xf9\x20\x14\x7b\xea" |
| 17657 | "\xbe\x42\x1e\xe5\x31\x9d\x05\x68", |
| 17658 | .ilen = 512, |
| 17659 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17660 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17661 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17662 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17663 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17664 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17665 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17666 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17667 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 17668 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 17669 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 17670 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 17671 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 17672 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 17673 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 17674 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 17675 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 17676 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 17677 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 17678 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 17679 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17680 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17681 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17682 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17683 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17684 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17685 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17686 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 17687 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 17688 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 17689 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17690 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 17691 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17692 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17693 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17694 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17695 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17696 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17697 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17698 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17699 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 17700 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 17701 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 17702 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 17703 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 17704 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 17705 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 17706 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 17707 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 17708 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 17709 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 17710 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 17711 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17712 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17713 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17714 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17715 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17716 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17717 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17718 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 17719 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 17720 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 17721 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17722 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 17723 | .rlen = 512, |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 17724 | }, { /* XTS-AES 10, XTS-AES-256, data unit 512 bytes */ |
| 17725 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 17726 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 17727 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 17728 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 17729 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 17730 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 17731 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 17732 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 17733 | .klen = 64, |
| 17734 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 17735 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
Jarod Wilson | 5165e5b | 2011-05-31 15:23:57 +1000 | [diff] [blame] | 17736 | .input = "\x1c\x3b\x3a\x10\x2f\x77\x03\x86" |
| 17737 | "\xe4\x83\x6c\x99\xe3\x70\xcf\x9b" |
| 17738 | "\xea\x00\x80\x3f\x5e\x48\x23\x57" |
| 17739 | "\xa4\xae\x12\xd4\x14\xa3\xe6\x3b" |
| 17740 | "\x5d\x31\xe2\x76\xf8\xfe\x4a\x8d" |
| 17741 | "\x66\xb3\x17\xf9\xac\x68\x3f\x44" |
| 17742 | "\x68\x0a\x86\xac\x35\xad\xfc\x33" |
| 17743 | "\x45\xbe\xfe\xcb\x4b\xb1\x88\xfd" |
| 17744 | "\x57\x76\x92\x6c\x49\xa3\x09\x5e" |
| 17745 | "\xb1\x08\xfd\x10\x98\xba\xec\x70" |
| 17746 | "\xaa\xa6\x69\x99\xa7\x2a\x82\xf2" |
| 17747 | "\x7d\x84\x8b\x21\xd4\xa7\x41\xb0" |
| 17748 | "\xc5\xcd\x4d\x5f\xff\x9d\xac\x89" |
| 17749 | "\xae\xba\x12\x29\x61\xd0\x3a\x75" |
| 17750 | "\x71\x23\xe9\x87\x0f\x8a\xcf\x10" |
| 17751 | "\x00\x02\x08\x87\x89\x14\x29\xca" |
| 17752 | "\x2a\x3e\x7a\x7d\x7d\xf7\xb1\x03" |
| 17753 | "\x55\x16\x5c\x8b\x9a\x6d\x0a\x7d" |
| 17754 | "\xe8\xb0\x62\xc4\x50\x0d\xc4\xcd" |
| 17755 | "\x12\x0c\x0f\x74\x18\xda\xe3\xd0" |
| 17756 | "\xb5\x78\x1c\x34\x80\x3f\xa7\x54" |
| 17757 | "\x21\xc7\x90\xdf\xe1\xde\x18\x34" |
| 17758 | "\xf2\x80\xd7\x66\x7b\x32\x7f\x6c" |
| 17759 | "\x8c\xd7\x55\x7e\x12\xac\x3a\x0f" |
| 17760 | "\x93\xec\x05\xc5\x2e\x04\x93\xef" |
| 17761 | "\x31\xa1\x2d\x3d\x92\x60\xf7\x9a" |
| 17762 | "\x28\x9d\x6a\x37\x9b\xc7\x0c\x50" |
| 17763 | "\x84\x14\x73\xd1\xa8\xcc\x81\xec" |
| 17764 | "\x58\x3e\x96\x45\xe0\x7b\x8d\x96" |
| 17765 | "\x70\x65\x5b\xa5\xbb\xcf\xec\xc6" |
| 17766 | "\xdc\x39\x66\x38\x0a\xd8\xfe\xcb" |
| 17767 | "\x17\xb6\xba\x02\x46\x9a\x02\x0a" |
| 17768 | "\x84\xe1\x8e\x8f\x84\x25\x20\x70" |
| 17769 | "\xc1\x3e\x9f\x1f\x28\x9b\xe5\x4f" |
| 17770 | "\xbc\x48\x14\x57\x77\x8f\x61\x60" |
| 17771 | "\x15\xe1\x32\x7a\x02\xb1\x40\xf1" |
| 17772 | "\x50\x5e\xb3\x09\x32\x6d\x68\x37" |
| 17773 | "\x8f\x83\x74\x59\x5c\x84\x9d\x84" |
| 17774 | "\xf4\xc3\x33\xec\x44\x23\x88\x51" |
| 17775 | "\x43\xcb\x47\xbd\x71\xc5\xed\xae" |
| 17776 | "\x9b\xe6\x9a\x2f\xfe\xce\xb1\xbe" |
| 17777 | "\xc9\xde\x24\x4f\xbe\x15\x99\x2b" |
| 17778 | "\x11\xb7\x7c\x04\x0f\x12\xbd\x8f" |
| 17779 | "\x6a\x97\x5a\x44\xa0\xf9\x0c\x29" |
| 17780 | "\xa9\xab\xc3\xd4\xd8\x93\x92\x72" |
| 17781 | "\x84\xc5\x87\x54\xcc\xe2\x94\x52" |
| 17782 | "\x9f\x86\x14\xdc\xd2\xab\xa9\x91" |
| 17783 | "\x92\x5f\xed\xc4\xae\x74\xff\xac" |
| 17784 | "\x6e\x33\x3b\x93\xeb\x4a\xff\x04" |
| 17785 | "\x79\xda\x9a\x41\x0e\x44\x50\xe0" |
| 17786 | "\xdd\x7a\xe4\xc6\xe2\x91\x09\x00" |
| 17787 | "\x57\x5d\xa4\x01\xfc\x07\x05\x9f" |
| 17788 | "\x64\x5e\x8b\x7e\x9b\xfd\xef\x33" |
| 17789 | "\x94\x30\x54\xff\x84\x01\x14\x93" |
| 17790 | "\xc2\x7b\x34\x29\xea\xed\xb4\xed" |
| 17791 | "\x53\x76\x44\x1a\x77\xed\x43\x85" |
| 17792 | "\x1a\xd7\x7f\x16\xf5\x41\xdf\xd2" |
| 17793 | "\x69\xd5\x0d\x6a\x5f\x14\xfb\x0a" |
| 17794 | "\xab\x1c\xbb\x4c\x15\x50\xbe\x97" |
| 17795 | "\xf7\xab\x40\x66\x19\x3c\x4c\xaa" |
| 17796 | "\x77\x3d\xad\x38\x01\x4b\xd2\x09" |
| 17797 | "\x2f\xa7\x55\xc8\x24\xbb\x5e\x54" |
| 17798 | "\xc4\xf3\x6f\xfd\xa9\xfc\xea\x70" |
| 17799 | "\xb9\xc6\xe6\x93\xe1\x48\xc1\x51", |
| 17800 | .ilen = 512, |
| 17801 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17802 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17803 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17804 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17805 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17806 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17807 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17808 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17809 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 17810 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 17811 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 17812 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 17813 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 17814 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 17815 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 17816 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 17817 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 17818 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 17819 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 17820 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 17821 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17822 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17823 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17824 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17825 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17826 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17827 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17828 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 17829 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 17830 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 17831 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17832 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 17833 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 17834 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 17835 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 17836 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 17837 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 17838 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 17839 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 17840 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 17841 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 17842 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 17843 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 17844 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 17845 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 17846 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 17847 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 17848 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 17849 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 17850 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 17851 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 17852 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 17853 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 17854 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 17855 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 17856 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 17857 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 17858 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 17859 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 17860 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 17861 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 17862 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 17863 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17864 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 17865 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 17866 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 17867 | .np = 3, |
| 17868 | .tap = { 512 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 17869 | } |
| 17870 | }; |
| 17871 | |
| 17872 | |
| 17873 | static struct cipher_testvec aes_ctr_enc_tv_template[] = { |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 17874 | { /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 17875 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 17876 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 17877 | .klen = 16, |
| 17878 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17879 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 17880 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 17881 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 17882 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 17883 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 17884 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 17885 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 17886 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 17887 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 17888 | .ilen = 64, |
| 17889 | .result = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" |
| 17890 | "\x1b\xef\x68\x64\x99\x0d\xb6\xce" |
| 17891 | "\x98\x06\xf6\x6b\x79\x70\xfd\xff" |
| 17892 | "\x86\x17\x18\x7b\xb9\xff\xfd\xff" |
| 17893 | "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" |
| 17894 | "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" |
| 17895 | "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" |
| 17896 | "\x79\x21\x70\xa0\xf3\x00\x9c\xee", |
| 17897 | .rlen = 64, |
| 17898 | }, { |
| 17899 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 17900 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 17901 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 17902 | .klen = 24, |
| 17903 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17904 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 17905 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 17906 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 17907 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 17908 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 17909 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 17910 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 17911 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 17912 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 17913 | .ilen = 64, |
| 17914 | .result = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" |
| 17915 | "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" |
| 17916 | "\x09\x03\x39\xec\x0a\xa6\xfa\xef" |
| 17917 | "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" |
| 17918 | "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" |
| 17919 | "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" |
| 17920 | "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" |
| 17921 | "\x5a\x97\xda\xec\x58\xc6\xb0\x50", |
| 17922 | .rlen = 64, |
| 17923 | }, { |
| 17924 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 17925 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 17926 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 17927 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 17928 | .klen = 32, |
| 17929 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 17930 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 17931 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 17932 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 17933 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 17934 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 17935 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 17936 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 17937 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 17938 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 17939 | .ilen = 64, |
| 17940 | .result = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" |
| 17941 | "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" |
| 17942 | "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" |
| 17943 | "\xca\x84\xe9\x90\xca\xca\xf5\xc5" |
| 17944 | "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" |
| 17945 | "\xe8\x70\x17\xba\x2d\x84\x98\x8d" |
| 17946 | "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" |
| 17947 | "\x13\xc2\xdd\x08\x45\x79\x41\xa6", |
| 17948 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 17949 | }, { /* Generated with Crypto++ */ |
| 17950 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 17951 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 17952 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 17953 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 17954 | .klen = 32, |
| 17955 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 17956 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 17957 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 17958 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 17959 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 17960 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 17961 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 17962 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 17963 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 17964 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 17965 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 17966 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 17967 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 17968 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 17969 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 17970 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 17971 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 17972 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 17973 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 17974 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 17975 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 17976 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 17977 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 17978 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 17979 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 17980 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 17981 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 17982 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 17983 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 17984 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 17985 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 17986 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 17987 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 17988 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 17989 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 17990 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 17991 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 17992 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 17993 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 17994 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 17995 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 17996 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 17997 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 17998 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 17999 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 18000 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 18001 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 18002 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 18003 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 18004 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 18005 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 18006 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 18007 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 18008 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 18009 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 18010 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 18011 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 18012 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 18013 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 18014 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 18015 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 18016 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 18017 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 18018 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 18019 | .ilen = 496, |
| 18020 | .result = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF" |
| 18021 | "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53" |
| 18022 | "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9" |
| 18023 | "\x69\x95\x35\x98\x8D\x4D\x8C\xC1" |
| 18024 | "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2" |
| 18025 | "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE" |
| 18026 | "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB" |
| 18027 | "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB" |
| 18028 | "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81" |
| 18029 | "\x47\x61\x12\x4D\xC2\x8C\xFA\x78" |
| 18030 | "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC" |
| 18031 | "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B" |
| 18032 | "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D" |
| 18033 | "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74" |
| 18034 | "\x32\x41\x1F\x31\x9C\x08\xA2\x5D" |
| 18035 | "\x67\xEB\x72\x1D\xF8\xE7\x70\x54" |
| 18036 | "\x34\x4B\x31\x69\x84\x66\x96\x44" |
| 18037 | "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9" |
| 18038 | "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF" |
| 18039 | "\x16\x5C\x5F\x79\x34\x52\x54\xFE" |
| 18040 | "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06" |
| 18041 | "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B" |
| 18042 | "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC" |
| 18043 | "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD" |
| 18044 | "\x3C\x98\x08\x12\xEC\xAA\x9E\x11" |
| 18045 | "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72" |
| 18046 | "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56" |
| 18047 | "\xD5\x45\x16\xD2\xAF\x13\x66\xF7" |
| 18048 | "\x8C\x67\xAC\x79\xB2\xAF\x56\x27" |
| 18049 | "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1" |
| 18050 | "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4" |
| 18051 | "\x42\xC8\x21\x08\x16\xF7\x01\xD7" |
| 18052 | "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4" |
| 18053 | "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3" |
| 18054 | "\x35\x1C\x82\xB9\x10\xF9\x42\xA1" |
| 18055 | "\xFC\x74\x9B\x44\x4F\x25\x02\xE3" |
| 18056 | "\x08\xF5\xD4\x32\x39\x08\x11\xE8" |
| 18057 | "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B" |
| 18058 | "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E" |
| 18059 | "\x0D\x07\x19\xDB\x67\xD7\x98\x91" |
| 18060 | "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33" |
| 18061 | "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA" |
| 18062 | "\x85\x99\x22\xE8\x91\x38\x70\x83" |
| 18063 | "\x93\x01\x24\x6C\xFA\x9A\xB9\x07" |
| 18064 | "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16" |
| 18065 | "\x2F\x69\xEE\x84\x36\x44\x76\x98" |
| 18066 | "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B" |
| 18067 | "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D" |
| 18068 | "\xAC\xED\x18\x1F\x50\xA4\xF5\x98" |
| 18069 | "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6" |
| 18070 | "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3" |
| 18071 | "\x1B\x39\x72\xD5\x26\xCA\x04\xE0" |
| 18072 | "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C" |
| 18073 | "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA" |
| 18074 | "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D" |
| 18075 | "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC" |
| 18076 | "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63" |
| 18077 | "\xEF\xDC\xC9\x79\x10\x26\xE8\x61" |
| 18078 | "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63" |
| 18079 | "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B" |
| 18080 | "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE" |
| 18081 | "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51", |
| 18082 | .rlen = 496, |
| 18083 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 18084 | .np = 3, |
| 18085 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 18086 | }, { /* Generated with Crypto++ */ |
| 18087 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 18088 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 18089 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 18090 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 18091 | .klen = 32, |
| 18092 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 18093 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 18094 | .input = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 18095 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 18096 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 18097 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 18098 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 18099 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 18100 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 18101 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 18102 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 18103 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 18104 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 18105 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 18106 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 18107 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 18108 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 18109 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 18110 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 18111 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 18112 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 18113 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 18114 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 18115 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 18116 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 18117 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 18118 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 18119 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 18120 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 18121 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 18122 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 18123 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 18124 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 18125 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 18126 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 18127 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 18128 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 18129 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 18130 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 18131 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 18132 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 18133 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 18134 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 18135 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 18136 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 18137 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 18138 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 18139 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 18140 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 18141 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 18142 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 18143 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 18144 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 18145 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 18146 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 18147 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 18148 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 18149 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 18150 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 18151 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 18152 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 18153 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 18154 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 18155 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12" |
| 18156 | "\x7B\xE4\x4D", |
| 18157 | .ilen = 499, |
| 18158 | .result = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2" |
| 18159 | "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5" |
| 18160 | "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44" |
| 18161 | "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE" |
| 18162 | "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F" |
| 18163 | "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E" |
| 18164 | "\x76\xEA\x06\x32\x23\xF3\x59\x2E" |
| 18165 | "\x75\xDE\x71\x86\x3C\x98\x23\x44" |
| 18166 | "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD" |
| 18167 | "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04" |
| 18168 | "\x70\x8B\x92\x55\x23\xE9\x6A\x3A" |
| 18169 | "\x78\x7A\x1B\x10\x85\x52\x9C\x12" |
| 18170 | "\xE4\x55\x81\x21\xCE\x53\xD0\x3B" |
| 18171 | "\x63\x77\x2C\x74\xD1\xF5\x60\xF3" |
| 18172 | "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD" |
| 18173 | "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E" |
| 18174 | "\xA8\x28\x69\x65\x31\xE1\x45\x83" |
| 18175 | "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21" |
| 18176 | "\xCD\x5D\x0F\x15\xB7\x93\x07\x26" |
| 18177 | "\xB0\x65\x6D\x91\x90\x23\x7A\xC6" |
| 18178 | "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E" |
| 18179 | "\xC6\x91\x83\x20\x92\x4D\x63\x7A" |
| 18180 | "\x45\x18\x18\x74\x19\xAD\x71\x01" |
| 18181 | "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46" |
| 18182 | "\xC9\x73\x7A\xF9\x02\x95\xF4\x07" |
| 18183 | "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C" |
| 18184 | "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8" |
| 18185 | "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D" |
| 18186 | "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7" |
| 18187 | "\xE8\x61\xE5\x95\x52\x1E\x3E\x49" |
| 18188 | "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD" |
| 18189 | "\xDD\x15\x3B\x20\x59\x24\xFF\xB0" |
| 18190 | "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5" |
| 18191 | "\x15\xF0\x61\x4F\xAE\x89\x10\x58" |
| 18192 | "\x5A\x33\x95\x52\x2A\xB5\x77\x9C" |
| 18193 | "\xA5\x43\x80\x40\x27\x2D\xAE\xD9" |
| 18194 | "\x3F\xE0\x80\x94\x78\x79\xCB\x7E" |
| 18195 | "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE" |
| 18196 | "\x0B\x05\x2A\x82\x99\x58\xBB\x7A" |
| 18197 | "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93" |
| 18198 | "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70" |
| 18199 | "\x16\xAE\x35\xC5\x52\x0F\x46\x1F" |
| 18200 | "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F" |
| 18201 | "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6" |
| 18202 | "\xF6\xB8\x32\xCD\xD6\x85\x73\x60" |
| 18203 | "\x59\x20\xE7\x55\x0E\x91\xE2\x0C" |
| 18204 | "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2" |
| 18205 | "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D" |
| 18206 | "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7" |
| 18207 | "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D" |
| 18208 | "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4" |
| 18209 | "\xFB\x81\x5D\xF7\x96\x96\xD4\x50" |
| 18210 | "\x89\xA7\xF6\xB9\x67\x76\x40\x9E" |
| 18211 | "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F" |
| 18212 | "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D" |
| 18213 | "\x87\x52\xA4\x91\xA9\xD7\xA9\x51" |
| 18214 | "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D" |
| 18215 | "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D" |
| 18216 | "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37" |
| 18217 | "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A" |
| 18218 | "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11" |
| 18219 | "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76" |
| 18220 | "\xFB\xF2\x3F", |
| 18221 | .rlen = 499, |
| 18222 | .also_non_np = 1, |
| 18223 | .np = 2, |
| 18224 | .tap = { 499 - 16, 16 }, |
| 18225 | }, |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 18226 | }; |
| 18227 | |
| 18228 | static struct cipher_testvec aes_ctr_dec_tv_template[] = { |
| 18229 | { /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 18230 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 18231 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 18232 | .klen = 16, |
| 18233 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 18234 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 18235 | .input = "\x87\x4d\x61\x91\xb6\x20\xe3\x26" |
| 18236 | "\x1b\xef\x68\x64\x99\x0d\xb6\xce" |
| 18237 | "\x98\x06\xf6\x6b\x79\x70\xfd\xff" |
| 18238 | "\x86\x17\x18\x7b\xb9\xff\xfd\xff" |
| 18239 | "\x5a\xe4\xdf\x3e\xdb\xd5\xd3\x5e" |
| 18240 | "\x5b\x4f\x09\x02\x0d\xb0\x3e\xab" |
| 18241 | "\x1e\x03\x1d\xda\x2f\xbe\x03\xd1" |
| 18242 | "\x79\x21\x70\xa0\xf3\x00\x9c\xee", |
| 18243 | .ilen = 64, |
| 18244 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 18245 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 18246 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 18247 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 18248 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 18249 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 18250 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 18251 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 18252 | .rlen = 64, |
| 18253 | }, { |
| 18254 | .key = "\x8e\x73\xb0\xf7\xda\x0e\x64\x52" |
| 18255 | "\xc8\x10\xf3\x2b\x80\x90\x79\xe5" |
| 18256 | "\x62\xf8\xea\xd2\x52\x2c\x6b\x7b", |
| 18257 | .klen = 24, |
| 18258 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 18259 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 18260 | .input = "\x1a\xbc\x93\x24\x17\x52\x1c\xa2" |
| 18261 | "\x4f\x2b\x04\x59\xfe\x7e\x6e\x0b" |
| 18262 | "\x09\x03\x39\xec\x0a\xa6\xfa\xef" |
| 18263 | "\xd5\xcc\xc2\xc6\xf4\xce\x8e\x94" |
| 18264 | "\x1e\x36\xb2\x6b\xd1\xeb\xc6\x70" |
| 18265 | "\xd1\xbd\x1d\x66\x56\x20\xab\xf7" |
| 18266 | "\x4f\x78\xa7\xf6\xd2\x98\x09\x58" |
| 18267 | "\x5a\x97\xda\xec\x58\xc6\xb0\x50", |
| 18268 | .ilen = 64, |
| 18269 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 18270 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 18271 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 18272 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 18273 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 18274 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 18275 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 18276 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 18277 | .rlen = 64, |
| 18278 | }, { |
| 18279 | .key = "\x60\x3d\xeb\x10\x15\xca\x71\xbe" |
| 18280 | "\x2b\x73\xae\xf0\x85\x7d\x77\x81" |
| 18281 | "\x1f\x35\x2c\x07\x3b\x61\x08\xd7" |
| 18282 | "\x2d\x98\x10\xa3\x09\x14\xdf\xf4", |
| 18283 | .klen = 32, |
| 18284 | .iv = "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 18285 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 18286 | .input = "\x60\x1e\xc3\x13\x77\x57\x89\xa5" |
| 18287 | "\xb7\xa7\xf5\x04\xbb\xf3\xd2\x28" |
| 18288 | "\xf4\x43\xe3\xca\x4d\x62\xb5\x9a" |
| 18289 | "\xca\x84\xe9\x90\xca\xca\xf5\xc5" |
| 18290 | "\x2b\x09\x30\xda\xa2\x3d\xe9\x4c" |
| 18291 | "\xe8\x70\x17\xba\x2d\x84\x98\x8d" |
| 18292 | "\xdf\xc9\xc5\x8d\xb6\x7a\xad\xa6" |
| 18293 | "\x13\xc2\xdd\x08\x45\x79\x41\xa6", |
| 18294 | .ilen = 64, |
| 18295 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 18296 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 18297 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 18298 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 18299 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 18300 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 18301 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 18302 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 18303 | .rlen = 64, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 18304 | }, { /* Generated with Crypto++ */ |
| 18305 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 18306 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 18307 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 18308 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 18309 | .klen = 32, |
| 18310 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 18311 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 18312 | .input = "\x04\xF3\xD3\x88\x17\xEF\xDC\xEF" |
| 18313 | "\x8B\x04\xF8\x3A\x66\x8D\x1A\x53" |
| 18314 | "\x57\x1F\x4B\x23\xE4\xA0\xAF\xF9" |
| 18315 | "\x69\x95\x35\x98\x8D\x4D\x8C\xC1" |
| 18316 | "\xF0\xB2\x7F\x80\xBB\x54\x28\xA2" |
| 18317 | "\x7A\x1B\x9F\x77\xEC\x0E\x6E\xDE" |
| 18318 | "\xF0\xEC\xB8\xE4\x20\x62\xEE\xDB" |
| 18319 | "\x5D\xF5\xDD\xE3\x54\xFC\xDD\xEB" |
| 18320 | "\x6A\xEE\x65\xA1\x21\xD6\xD7\x81" |
| 18321 | "\x47\x61\x12\x4D\xC2\x8C\xFA\x78" |
| 18322 | "\x1F\x28\x02\x01\xC3\xFC\x1F\xEC" |
| 18323 | "\x0F\x10\x4F\xB3\x12\x45\xC6\x3B" |
| 18324 | "\x7E\x08\xF9\x5A\xD0\x5D\x73\x2D" |
| 18325 | "\x58\xA4\xE5\xCB\x1C\xB4\xCE\x74" |
| 18326 | "\x32\x41\x1F\x31\x9C\x08\xA2\x5D" |
| 18327 | "\x67\xEB\x72\x1D\xF8\xE7\x70\x54" |
| 18328 | "\x34\x4B\x31\x69\x84\x66\x96\x44" |
| 18329 | "\x56\xCC\x1E\xD9\xE6\x13\x6A\xB9" |
| 18330 | "\x2D\x0A\x05\x45\x2D\x90\xCC\xDF" |
| 18331 | "\x16\x5C\x5F\x79\x34\x52\x54\xFE" |
| 18332 | "\xFE\xCD\xAD\x04\x2E\xAD\x86\x06" |
| 18333 | "\x1F\x37\xE8\x28\xBC\xD3\x8F\x5B" |
| 18334 | "\x92\x66\x87\x3B\x8A\x0A\x1A\xCC" |
| 18335 | "\x6E\xAB\x9F\x0B\xFA\x5C\xE6\xFD" |
| 18336 | "\x3C\x98\x08\x12\xEC\xAA\x9E\x11" |
| 18337 | "\xCA\xB2\x1F\xCE\x5E\x5B\xB2\x72" |
| 18338 | "\x9C\xCC\x5D\xC5\xE0\x32\xC0\x56" |
| 18339 | "\xD5\x45\x16\xD2\xAF\x13\x66\xF7" |
| 18340 | "\x8C\x67\xAC\x79\xB2\xAF\x56\x27" |
| 18341 | "\x3F\xCC\xFE\xCB\x1E\xC0\x75\xF1" |
| 18342 | "\xA7\xC9\xC3\x1D\x8E\xDD\xF9\xD4" |
| 18343 | "\x42\xC8\x21\x08\x16\xF7\x01\xD7" |
| 18344 | "\xAC\x8E\x3F\x1D\x56\xC1\x06\xE4" |
| 18345 | "\x9C\x62\xD6\xA5\x6A\x50\x44\xB3" |
| 18346 | "\x35\x1C\x82\xB9\x10\xF9\x42\xA1" |
| 18347 | "\xFC\x74\x9B\x44\x4F\x25\x02\xE3" |
| 18348 | "\x08\xF5\xD4\x32\x39\x08\x11\xE8" |
| 18349 | "\xD2\x6B\x50\x53\xD4\x08\xD1\x6B" |
| 18350 | "\x3A\x4A\x68\x7B\x7C\xCD\x46\x5E" |
| 18351 | "\x0D\x07\x19\xDB\x67\xD7\x98\x91" |
| 18352 | "\xD7\x17\x10\x9B\x7B\x8A\x9B\x33" |
| 18353 | "\xAE\xF3\x00\xA6\xD4\x15\xD9\xEA" |
| 18354 | "\x85\x99\x22\xE8\x91\x38\x70\x83" |
| 18355 | "\x93\x01\x24\x6C\xFA\x9A\xB9\x07" |
| 18356 | "\xEA\x8D\x3B\xD9\x2A\x43\x59\x16" |
| 18357 | "\x2F\x69\xEE\x84\x36\x44\x76\x98" |
| 18358 | "\xF3\x04\x2A\x7C\x74\x3D\x29\x2B" |
| 18359 | "\x0D\xAD\x8F\x44\x82\x9E\x57\x8D" |
| 18360 | "\xAC\xED\x18\x1F\x50\xA4\xF5\x98" |
| 18361 | "\x1F\xBD\x92\x91\x1B\x2D\xA6\xD6" |
| 18362 | "\xD2\xE3\x02\xAA\x92\x3B\xC6\xB3" |
| 18363 | "\x1B\x39\x72\xD5\x26\xCA\x04\xE0" |
| 18364 | "\xFC\x58\x78\xBB\xB1\x3F\xA1\x9C" |
| 18365 | "\x42\x24\x3E\x2E\x22\xBB\x4B\xBA" |
| 18366 | "\xF4\x52\x0A\xE6\xAE\x47\xB4\x7D" |
| 18367 | "\x1D\xA8\xBE\x81\x1A\x75\xDA\xAC" |
| 18368 | "\xA6\x25\x1E\xEF\x3A\xC0\x6C\x63" |
| 18369 | "\xEF\xDC\xC9\x79\x10\x26\xE8\x61" |
| 18370 | "\x29\xFC\xA4\x05\xDF\x7D\x5C\x63" |
| 18371 | "\x10\x09\x9B\x46\x9B\xF2\x2C\x2B" |
| 18372 | "\xFA\x3A\x05\x4C\xFA\xD1\xFF\xFE" |
| 18373 | "\xF1\x4C\xE5\xB2\x91\x64\x0C\x51", |
| 18374 | .ilen = 496, |
| 18375 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 18376 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 18377 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 18378 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 18379 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 18380 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 18381 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 18382 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 18383 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 18384 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 18385 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 18386 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 18387 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 18388 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 18389 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 18390 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 18391 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 18392 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 18393 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 18394 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 18395 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 18396 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 18397 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 18398 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 18399 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 18400 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 18401 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 18402 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 18403 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 18404 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 18405 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 18406 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 18407 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 18408 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 18409 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 18410 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 18411 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 18412 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 18413 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 18414 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 18415 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 18416 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 18417 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 18418 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 18419 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 18420 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 18421 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 18422 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 18423 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 18424 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 18425 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 18426 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 18427 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 18428 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 18429 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 18430 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 18431 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 18432 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 18433 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 18434 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 18435 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 18436 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12", |
| 18437 | .rlen = 496, |
| 18438 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 18439 | .np = 3, |
| 18440 | .tap = { 496 - 20, 4, 16 }, |
Jussi Kivilinna | c3b9e8f | 2012-10-20 14:53:02 +0300 | [diff] [blame] | 18441 | }, { /* Generated with Crypto++ */ |
| 18442 | .key = "\xC9\x83\xA6\xC9\xEC\x0F\x32\x55" |
| 18443 | "\x0F\x32\x55\x78\x9B\xBE\x78\x9B" |
| 18444 | "\xBE\xE1\x04\x27\xE1\x04\x27\x4A" |
| 18445 | "\x6D\x90\x4A\x6D\x90\xB3\xD6\xF9", |
| 18446 | .klen = 32, |
| 18447 | .iv = "\xE7\x82\x1D\xB8\x53\x11\xAC\x47" |
| 18448 | "\xE2\x7D\x18\xD6\x71\x0C\xA7\x42", |
| 18449 | .input = "\xDA\x4E\x3F\xBC\xE8\xB6\x3A\xA2" |
| 18450 | "\xD5\x4D\x84\x4A\xA9\x0C\xE1\xA5" |
| 18451 | "\xB8\x73\xBC\xF9\xBB\x59\x2F\x44" |
| 18452 | "\x8B\xAB\x82\x6C\xB4\x32\x9A\xDE" |
| 18453 | "\x5A\x0B\xDB\x7A\x6B\xF2\x38\x9F" |
| 18454 | "\x06\xF7\xF7\xFF\xFF\xC0\x8A\x2E" |
| 18455 | "\x76\xEA\x06\x32\x23\xF3\x59\x2E" |
| 18456 | "\x75\xDE\x71\x86\x3C\x98\x23\x44" |
| 18457 | "\x5B\xF2\xFA\x6A\x00\xBB\xC1\xAD" |
| 18458 | "\x58\xBD\x3E\x6F\x2E\xB4\x19\x04" |
| 18459 | "\x70\x8B\x92\x55\x23\xE9\x6A\x3A" |
| 18460 | "\x78\x7A\x1B\x10\x85\x52\x9C\x12" |
| 18461 | "\xE4\x55\x81\x21\xCE\x53\xD0\x3B" |
| 18462 | "\x63\x77\x2C\x74\xD1\xF5\x60\xF3" |
| 18463 | "\xA1\xDE\x44\x3C\x8F\x4D\x2F\xDD" |
| 18464 | "\x8A\xFE\x3C\x42\x8E\xD3\xF2\x8E" |
| 18465 | "\xA8\x28\x69\x65\x31\xE1\x45\x83" |
| 18466 | "\xE4\x49\xC4\x9C\xA7\x28\xAA\x21" |
| 18467 | "\xCD\x5D\x0F\x15\xB7\x93\x07\x26" |
| 18468 | "\xB0\x65\x6D\x91\x90\x23\x7A\xC6" |
| 18469 | "\xDB\x68\xB0\xA1\x8E\xA4\x76\x4E" |
| 18470 | "\xC6\x91\x83\x20\x92\x4D\x63\x7A" |
| 18471 | "\x45\x18\x18\x74\x19\xAD\x71\x01" |
| 18472 | "\x6B\x23\xAD\x9D\x4E\xE4\x6E\x46" |
| 18473 | "\xC9\x73\x7A\xF9\x02\x95\xF4\x07" |
| 18474 | "\x0E\x7A\xA6\xC5\xAE\xFA\x15\x2C" |
| 18475 | "\x51\x71\xF1\xDC\x22\xB6\xAC\xD8" |
| 18476 | "\x19\x24\x44\xBC\x0C\xFB\x3C\x2D" |
| 18477 | "\xB1\x50\x47\x15\x0E\xDB\xB6\xD7" |
| 18478 | "\xE8\x61\xE5\x95\x52\x1E\x3E\x49" |
| 18479 | "\x70\xE9\x66\x04\x4C\xE1\xAF\xBD" |
| 18480 | "\xDD\x15\x3B\x20\x59\x24\xFF\xB0" |
| 18481 | "\x39\xAA\xE7\xBF\x23\xA3\x6E\xD5" |
| 18482 | "\x15\xF0\x61\x4F\xAE\x89\x10\x58" |
| 18483 | "\x5A\x33\x95\x52\x2A\xB5\x77\x9C" |
| 18484 | "\xA5\x43\x80\x40\x27\x2D\xAE\xD9" |
| 18485 | "\x3F\xE0\x80\x94\x78\x79\xCB\x7E" |
| 18486 | "\xAD\x12\x44\x4C\xEC\x27\xB0\xEE" |
| 18487 | "\x0B\x05\x2A\x82\x99\x58\xBB\x7A" |
| 18488 | "\x8D\x6D\x9D\x8E\xE2\x8E\xE7\x93" |
| 18489 | "\x2F\xB3\x09\x8D\x06\xD5\xEE\x70" |
| 18490 | "\x16\xAE\x35\xC5\x52\x0F\x46\x1F" |
| 18491 | "\x71\xF9\x5E\xF2\x67\xDC\x98\x2F" |
| 18492 | "\xA3\x23\xAA\xD5\xD0\x49\xF4\xA6" |
| 18493 | "\xF6\xB8\x32\xCD\xD6\x85\x73\x60" |
| 18494 | "\x59\x20\xE7\x55\x0E\x91\xE2\x0C" |
| 18495 | "\x3F\x1C\xEB\x3D\xDF\x52\x64\xF2" |
| 18496 | "\x7D\x8B\x5D\x63\x16\xB9\xB2\x5D" |
| 18497 | "\x5E\xAB\xB2\x97\xAB\x78\x44\xE7" |
| 18498 | "\xC6\x72\x20\xC5\x90\x9B\xDC\x5D" |
| 18499 | "\xB0\xEF\x44\xEF\x87\x31\x8D\xF4" |
| 18500 | "\xFB\x81\x5D\xF7\x96\x96\xD4\x50" |
| 18501 | "\x89\xA7\xF6\xB9\x67\x76\x40\x9E" |
| 18502 | "\x9D\x40\xD5\x2C\x30\xB8\x01\x8F" |
| 18503 | "\xE4\x7B\x71\x48\xA9\xA0\xA0\x1D" |
| 18504 | "\x87\x52\xA4\x91\xA9\xD7\xA9\x51" |
| 18505 | "\xD9\x59\xF7\xCC\x63\x22\xC1\x8D" |
| 18506 | "\x84\x7B\xD8\x22\x32\x5C\x6F\x1D" |
| 18507 | "\x6E\x9F\xFA\xDD\x49\x40\xDC\x37" |
| 18508 | "\x14\x8C\xE1\x80\x1B\xDD\x36\x2A" |
| 18509 | "\xD0\xE9\x54\x99\x5D\xBA\x3B\x11" |
| 18510 | "\xD8\xFE\xC9\x5B\x5C\x25\xE5\x76" |
| 18511 | "\xFB\xF2\x3F", |
| 18512 | .ilen = 499, |
| 18513 | .result = "\x50\xB9\x22\xAE\x17\x80\x0C\x75" |
| 18514 | "\xDE\x47\xD3\x3C\xA5\x0E\x9A\x03" |
| 18515 | "\x6C\xF8\x61\xCA\x33\xBF\x28\x91" |
| 18516 | "\x1D\x86\xEF\x58\xE4\x4D\xB6\x1F" |
| 18517 | "\xAB\x14\x7D\x09\x72\xDB\x44\xD0" |
| 18518 | "\x39\xA2\x0B\x97\x00\x69\xF5\x5E" |
| 18519 | "\xC7\x30\xBC\x25\x8E\x1A\x83\xEC" |
| 18520 | "\x55\xE1\x4A\xB3\x1C\xA8\x11\x7A" |
| 18521 | "\x06\x6F\xD8\x41\xCD\x36\x9F\x08" |
| 18522 | "\x94\xFD\x66\xF2\x5B\xC4\x2D\xB9" |
| 18523 | "\x22\x8B\x17\x80\xE9\x52\xDE\x47" |
| 18524 | "\xB0\x19\xA5\x0E\x77\x03\x6C\xD5" |
| 18525 | "\x3E\xCA\x33\x9C\x05\x91\xFA\x63" |
| 18526 | "\xEF\x58\xC1\x2A\xB6\x1F\x88\x14" |
| 18527 | "\x7D\xE6\x4F\xDB\x44\xAD\x16\xA2" |
| 18528 | "\x0B\x74\x00\x69\xD2\x3B\xC7\x30" |
| 18529 | "\x99\x02\x8E\xF7\x60\xEC\x55\xBE" |
| 18530 | "\x27\xB3\x1C\x85\x11\x7A\xE3\x4C" |
| 18531 | "\xD8\x41\xAA\x13\x9F\x08\x71\xFD" |
| 18532 | "\x66\xCF\x38\xC4\x2D\x96\x22\x8B" |
| 18533 | "\xF4\x5D\xE9\x52\xBB\x24\xB0\x19" |
| 18534 | "\x82\x0E\x77\xE0\x49\xD5\x3E\xA7" |
| 18535 | "\x10\x9C\x05\x6E\xFA\x63\xCC\x35" |
| 18536 | "\xC1\x2A\x93\x1F\x88\xF1\x5A\xE6" |
| 18537 | "\x4F\xB8\x21\xAD\x16\x7F\x0B\x74" |
| 18538 | "\xDD\x46\xD2\x3B\xA4\x0D\x99\x02" |
| 18539 | "\x6B\xF7\x60\xC9\x32\xBE\x27\x90" |
| 18540 | "\x1C\x85\xEE\x57\xE3\x4C\xB5\x1E" |
| 18541 | "\xAA\x13\x7C\x08\x71\xDA\x43\xCF" |
| 18542 | "\x38\xA1\x0A\x96\xFF\x68\xF4\x5D" |
| 18543 | "\xC6\x2F\xBB\x24\x8D\x19\x82\xEB" |
| 18544 | "\x54\xE0\x49\xB2\x1B\xA7\x10\x79" |
| 18545 | "\x05\x6E\xD7\x40\xCC\x35\x9E\x07" |
| 18546 | "\x93\xFC\x65\xF1\x5A\xC3\x2C\xB8" |
| 18547 | "\x21\x8A\x16\x7F\xE8\x51\xDD\x46" |
| 18548 | "\xAF\x18\xA4\x0D\x76\x02\x6B\xD4" |
| 18549 | "\x3D\xC9\x32\x9B\x04\x90\xF9\x62" |
| 18550 | "\xEE\x57\xC0\x29\xB5\x1E\x87\x13" |
| 18551 | "\x7C\xE5\x4E\xDA\x43\xAC\x15\xA1" |
| 18552 | "\x0A\x73\xFF\x68\xD1\x3A\xC6\x2F" |
| 18553 | "\x98\x01\x8D\xF6\x5F\xEB\x54\xBD" |
| 18554 | "\x26\xB2\x1B\x84\x10\x79\xE2\x4B" |
| 18555 | "\xD7\x40\xA9\x12\x9E\x07\x70\xFC" |
| 18556 | "\x65\xCE\x37\xC3\x2C\x95\x21\x8A" |
| 18557 | "\xF3\x5C\xE8\x51\xBA\x23\xAF\x18" |
| 18558 | "\x81\x0D\x76\xDF\x48\xD4\x3D\xA6" |
| 18559 | "\x0F\x9B\x04\x6D\xF9\x62\xCB\x34" |
| 18560 | "\xC0\x29\x92\x1E\x87\xF0\x59\xE5" |
| 18561 | "\x4E\xB7\x20\xAC\x15\x7E\x0A\x73" |
| 18562 | "\xDC\x45\xD1\x3A\xA3\x0C\x98\x01" |
| 18563 | "\x6A\xF6\x5F\xC8\x31\xBD\x26\x8F" |
| 18564 | "\x1B\x84\xED\x56\xE2\x4B\xB4\x1D" |
| 18565 | "\xA9\x12\x7B\x07\x70\xD9\x42\xCE" |
| 18566 | "\x37\xA0\x09\x95\xFE\x67\xF3\x5C" |
| 18567 | "\xC5\x2E\xBA\x23\x8C\x18\x81\xEA" |
| 18568 | "\x53\xDF\x48\xB1\x1A\xA6\x0F\x78" |
| 18569 | "\x04\x6D\xD6\x3F\xCB\x34\x9D\x06" |
| 18570 | "\x92\xFB\x64\xF0\x59\xC2\x2B\xB7" |
| 18571 | "\x20\x89\x15\x7E\xE7\x50\xDC\x45" |
| 18572 | "\xAE\x17\xA3\x0C\x75\x01\x6A\xD3" |
| 18573 | "\x3C\xC8\x31\x9A\x03\x8F\xF8\x61" |
| 18574 | "\xED\x56\xBF\x28\xB4\x1D\x86\x12" |
| 18575 | "\x7B\xE4\x4D", |
| 18576 | .rlen = 499, |
| 18577 | .also_non_np = 1, |
| 18578 | .np = 2, |
| 18579 | .tap = { 499 - 16, 16 }, |
| 18580 | }, |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 18581 | }; |
| 18582 | |
| 18583 | static struct cipher_testvec aes_ctr_rfc3686_enc_tv_template[] = { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 18584 | { /* From RFC 3686 */ |
| 18585 | .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" |
| 18586 | "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" |
| 18587 | "\x00\x00\x00\x30", |
| 18588 | .klen = 20, |
| 18589 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 18590 | .input = "Single block msg", |
| 18591 | .ilen = 16, |
| 18592 | .result = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" |
| 18593 | "\x2d\x61\x75\xa3\x26\x13\x11\xb8", |
| 18594 | .rlen = 16, |
| 18595 | }, { |
| 18596 | .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" |
| 18597 | "\x43\xd6\xce\x1f\x32\x53\x91\x63" |
| 18598 | "\x00\x6c\xb6\xdb", |
| 18599 | .klen = 20, |
| 18600 | .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", |
| 18601 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18602 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18603 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18604 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 18605 | .ilen = 32, |
| 18606 | .result = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" |
| 18607 | "\x79\x0d\x41\xee\x8e\xda\xd3\x88" |
| 18608 | "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" |
| 18609 | "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", |
| 18610 | .rlen = 32, |
| 18611 | }, { |
| 18612 | .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" |
| 18613 | "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" |
| 18614 | "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" |
| 18615 | "\x00\x00\x00\x48", |
| 18616 | .klen = 28, |
| 18617 | .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", |
| 18618 | .input = "Single block msg", |
| 18619 | .ilen = 16, |
| 18620 | .result = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" |
| 18621 | "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", |
| 18622 | .rlen = 16, |
| 18623 | }, { |
| 18624 | .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" |
| 18625 | "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" |
| 18626 | "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" |
| 18627 | "\x00\x96\xb0\x3b", |
| 18628 | .klen = 28, |
| 18629 | .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", |
| 18630 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18631 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18632 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18633 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 18634 | .ilen = 32, |
| 18635 | .result = "\x45\x32\x43\xfc\x60\x9b\x23\x32" |
| 18636 | "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" |
| 18637 | "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" |
| 18638 | "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", |
| 18639 | .rlen = 32, |
| 18640 | }, { |
| 18641 | .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" |
| 18642 | "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" |
| 18643 | "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" |
| 18644 | "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" |
| 18645 | "\x00\x00\x00\x60", |
| 18646 | .klen = 36, |
| 18647 | .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", |
| 18648 | .input = "Single block msg", |
| 18649 | .ilen = 16, |
| 18650 | .result = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" |
| 18651 | "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", |
| 18652 | .rlen = 16, |
| 18653 | }, { |
| 18654 | .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" |
| 18655 | "\x07\x96\x36\x58\x79\xef\xf8\x86" |
| 18656 | "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" |
| 18657 | "\x4b\x50\x59\x0c\x87\xa2\x38\x84" |
| 18658 | "\x00\xfa\xac\x24", |
| 18659 | .klen = 36, |
| 18660 | .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", |
| 18661 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18662 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18663 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18664 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 18665 | .ilen = 32, |
| 18666 | .result = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" |
| 18667 | "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" |
| 18668 | "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" |
| 18669 | "\x55\x30\x83\x1d\x93\x44\xaf\x1c", |
| 18670 | .rlen = 32, |
| 18671 | }, { |
| 18672 | // generated using Crypto++ |
| 18673 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18674 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18675 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18676 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 18677 | "\x00\x00\x00\x00", |
| 18678 | .klen = 32 + 4, |
| 18679 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 18680 | .input = |
| 18681 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 18682 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 18683 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 18684 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 18685 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 18686 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 18687 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 18688 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 18689 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 18690 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 18691 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 18692 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 18693 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 18694 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 18695 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 18696 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 18697 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 18698 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 18699 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 18700 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 18701 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 18702 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 18703 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 18704 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 18705 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 18706 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 18707 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 18708 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 18709 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 18710 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 18711 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 18712 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 18713 | "\x00\x03\x06\x09\x0c\x0f\x12\x15" |
| 18714 | "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" |
| 18715 | "\x30\x33\x36\x39\x3c\x3f\x42\x45" |
| 18716 | "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" |
| 18717 | "\x60\x63\x66\x69\x6c\x6f\x72\x75" |
| 18718 | "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" |
| 18719 | "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" |
| 18720 | "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" |
| 18721 | "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" |
| 18722 | "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" |
| 18723 | "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" |
| 18724 | "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" |
| 18725 | "\x20\x23\x26\x29\x2c\x2f\x32\x35" |
| 18726 | "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" |
| 18727 | "\x50\x53\x56\x59\x5c\x5f\x62\x65" |
| 18728 | "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" |
| 18729 | "\x80\x83\x86\x89\x8c\x8f\x92\x95" |
| 18730 | "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" |
| 18731 | "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" |
| 18732 | "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" |
| 18733 | "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" |
| 18734 | "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" |
| 18735 | "\x10\x13\x16\x19\x1c\x1f\x22\x25" |
| 18736 | "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" |
| 18737 | "\x40\x43\x46\x49\x4c\x4f\x52\x55" |
| 18738 | "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" |
| 18739 | "\x70\x73\x76\x79\x7c\x7f\x82\x85" |
| 18740 | "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" |
| 18741 | "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" |
| 18742 | "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" |
| 18743 | "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" |
| 18744 | "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" |
| 18745 | "\x00\x05\x0a\x0f\x14\x19\x1e\x23" |
| 18746 | "\x28\x2d\x32\x37\x3c\x41\x46\x4b" |
| 18747 | "\x50\x55\x5a\x5f\x64\x69\x6e\x73" |
| 18748 | "\x78\x7d\x82\x87\x8c\x91\x96\x9b" |
| 18749 | "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" |
| 18750 | "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" |
| 18751 | "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" |
| 18752 | "\x18\x1d\x22\x27\x2c\x31\x36\x3b" |
| 18753 | "\x40\x45\x4a\x4f\x54\x59\x5e\x63" |
| 18754 | "\x68\x6d\x72\x77\x7c\x81\x86\x8b" |
| 18755 | "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" |
| 18756 | "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" |
| 18757 | "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" |
| 18758 | "\x08\x0d\x12\x17\x1c\x21\x26\x2b" |
| 18759 | "\x30\x35\x3a\x3f\x44\x49\x4e\x53" |
| 18760 | "\x58\x5d\x62\x67\x6c\x71\x76\x7b" |
| 18761 | "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" |
| 18762 | "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" |
| 18763 | "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" |
| 18764 | "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" |
| 18765 | "\x20\x25\x2a\x2f\x34\x39\x3e\x43" |
| 18766 | "\x48\x4d\x52\x57\x5c\x61\x66\x6b" |
| 18767 | "\x70\x75\x7a\x7f\x84\x89\x8e\x93" |
| 18768 | "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" |
| 18769 | "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" |
| 18770 | "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" |
| 18771 | "\x10\x15\x1a\x1f\x24\x29\x2e\x33" |
| 18772 | "\x38\x3d\x42\x47\x4c\x51\x56\x5b" |
| 18773 | "\x60\x65\x6a\x6f\x74\x79\x7e\x83" |
| 18774 | "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" |
| 18775 | "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" |
| 18776 | "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" |
| 18777 | "\x00\x07\x0e\x15\x1c\x23\x2a\x31" |
| 18778 | "\x38\x3f\x46\x4d\x54\x5b\x62\x69" |
| 18779 | "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" |
| 18780 | "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" |
| 18781 | "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" |
| 18782 | "\x18\x1f\x26\x2d\x34\x3b\x42\x49" |
| 18783 | "\x50\x57\x5e\x65\x6c\x73\x7a\x81" |
| 18784 | "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" |
| 18785 | "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" |
| 18786 | "\xf8\xff\x06\x0d\x14\x1b\x22\x29" |
| 18787 | "\x30\x37\x3e\x45\x4c\x53\x5a\x61" |
| 18788 | "\x68\x6f\x76\x7d\x84\x8b\x92\x99" |
| 18789 | "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" |
| 18790 | "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" |
| 18791 | "\x10\x17\x1e\x25\x2c\x33\x3a\x41" |
| 18792 | "\x48\x4f\x56\x5d\x64\x6b\x72\x79" |
| 18793 | "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" |
| 18794 | "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" |
| 18795 | "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" |
| 18796 | "\x28\x2f\x36\x3d\x44\x4b\x52\x59" |
| 18797 | "\x60\x67\x6e\x75\x7c\x83\x8a\x91" |
| 18798 | "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" |
| 18799 | "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" |
| 18800 | "\x08\x0f\x16\x1d\x24\x2b\x32\x39" |
| 18801 | "\x40\x47\x4e\x55\x5c\x63\x6a\x71" |
| 18802 | "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" |
| 18803 | "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" |
| 18804 | "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" |
| 18805 | "\x20\x27\x2e\x35\x3c\x43\x4a\x51" |
| 18806 | "\x58\x5f\x66\x6d\x74\x7b\x82\x89" |
| 18807 | "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" |
| 18808 | "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" |
| 18809 | "\x00\x09\x12\x1b\x24\x2d\x36\x3f" |
| 18810 | "\x48\x51\x5a\x63\x6c\x75\x7e\x87" |
| 18811 | "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" |
| 18812 | "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" |
| 18813 | "\x20\x29\x32\x3b\x44\x4d\x56\x5f" |
| 18814 | "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" |
| 18815 | "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" |
| 18816 | "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" |
| 18817 | "\x40\x49\x52\x5b\x64\x6d\x76\x7f" |
| 18818 | "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" |
| 18819 | "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" |
| 18820 | "\x18\x21\x2a\x33\x3c\x45\x4e\x57" |
| 18821 | "\x60\x69\x72\x7b\x84\x8d\x96\x9f" |
| 18822 | "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" |
| 18823 | "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" |
| 18824 | "\x38\x41\x4a\x53\x5c\x65\x6e\x77" |
| 18825 | "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" |
| 18826 | "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" |
| 18827 | "\x10\x19\x22\x2b\x34\x3d\x46\x4f" |
| 18828 | "\x58\x61\x6a\x73\x7c\x85\x8e\x97" |
| 18829 | "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" |
| 18830 | "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" |
| 18831 | "\x30\x39\x42\x4b\x54\x5d\x66\x6f" |
| 18832 | "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" |
| 18833 | "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" |
| 18834 | "\x08\x11\x1a\x23\x2c\x35\x3e\x47" |
| 18835 | "\x50\x59\x62\x6b\x74\x7d\x86\x8f" |
| 18836 | "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" |
| 18837 | "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" |
| 18838 | "\x28\x31\x3a\x43\x4c\x55\x5e\x67" |
| 18839 | "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" |
| 18840 | "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" |
| 18841 | "\x00\x0b\x16\x21\x2c\x37\x42\x4d" |
| 18842 | "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" |
| 18843 | "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" |
| 18844 | "\x08\x13\x1e\x29\x34\x3f\x4a\x55" |
| 18845 | "\x60\x6b\x76\x81\x8c\x97\xa2\xad" |
| 18846 | "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" |
| 18847 | "\x10\x1b\x26\x31\x3c\x47\x52\x5d" |
| 18848 | "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" |
| 18849 | "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" |
| 18850 | "\x18\x23\x2e\x39\x44\x4f\x5a\x65" |
| 18851 | "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" |
| 18852 | "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" |
| 18853 | "\x20\x2b\x36\x41\x4c\x57\x62\x6d" |
| 18854 | "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" |
| 18855 | "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" |
| 18856 | "\x28\x33\x3e\x49\x54\x5f\x6a\x75" |
| 18857 | "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" |
| 18858 | "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" |
| 18859 | "\x30\x3b\x46\x51\x5c\x67\x72\x7d" |
| 18860 | "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" |
| 18861 | "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" |
| 18862 | "\x38\x43\x4e\x59\x64\x6f\x7a\x85" |
| 18863 | "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" |
| 18864 | "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" |
| 18865 | "\x40\x4b\x56\x61\x6c\x77\x82\x8d" |
| 18866 | "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" |
| 18867 | "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" |
| 18868 | "\x48\x53\x5e\x69\x74\x7f\x8a\x95" |
| 18869 | "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" |
| 18870 | "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" |
| 18871 | "\x50\x5b\x66\x71\x7c\x87\x92\x9d" |
| 18872 | "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" |
| 18873 | "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" |
| 18874 | "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" |
| 18875 | "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" |
| 18876 | "\x38\x45\x52\x5f\x6c\x79\x86\x93" |
| 18877 | "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" |
| 18878 | "\x08\x15\x22\x2f\x3c\x49\x56\x63" |
| 18879 | "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" |
| 18880 | "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" |
| 18881 | "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" |
| 18882 | "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" |
| 18883 | "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" |
| 18884 | "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" |
| 18885 | "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" |
| 18886 | "\x48\x55\x62\x6f\x7c\x89\x96\xa3" |
| 18887 | "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" |
| 18888 | "\x18\x25\x32\x3f\x4c\x59\x66\x73" |
| 18889 | "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" |
| 18890 | "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" |
| 18891 | "\x50\x5d\x6a\x77\x84\x91\x9e\xab" |
| 18892 | "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" |
| 18893 | "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" |
| 18894 | "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" |
| 18895 | "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" |
| 18896 | "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" |
| 18897 | "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" |
| 18898 | "\x28\x35\x42\x4f\x5c\x69\x76\x83" |
| 18899 | "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" |
| 18900 | "\xf8\x05\x12\x1f\x2c\x39\x46\x53" |
| 18901 | "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" |
| 18902 | "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" |
| 18903 | "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" |
| 18904 | "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" |
| 18905 | "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" |
| 18906 | "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" |
| 18907 | "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" |
| 18908 | "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" |
| 18909 | "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" |
| 18910 | "\x58\x67\x76\x85\x94\xa3\xb2\xc1" |
| 18911 | "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" |
| 18912 | "\x48\x57\x66\x75\x84\x93\xa2\xb1" |
| 18913 | "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" |
| 18914 | "\x38\x47\x56\x65\x74\x83\x92\xa1" |
| 18915 | "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" |
| 18916 | "\x28\x37\x46\x55\x64\x73\x82\x91" |
| 18917 | "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" |
| 18918 | "\x18\x27\x36\x45\x54\x63\x72\x81" |
| 18919 | "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" |
| 18920 | "\x08\x17\x26\x35\x44\x53\x62\x71" |
| 18921 | "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" |
| 18922 | "\xf8\x07\x16\x25\x34\x43\x52\x61" |
| 18923 | "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" |
| 18924 | "\xe8\xf7\x06\x15\x24\x33\x42\x51" |
| 18925 | "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" |
| 18926 | "\xd8\xe7\xf6\x05\x14\x23\x32\x41" |
| 18927 | "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" |
| 18928 | "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" |
| 18929 | "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" |
| 18930 | "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" |
| 18931 | "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" |
| 18932 | "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" |
| 18933 | "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" |
| 18934 | "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" |
| 18935 | "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" |
| 18936 | "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" |
| 18937 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 18938 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" |
| 18939 | "\x10\x21\x32\x43\x54\x65\x76\x87" |
| 18940 | "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" |
| 18941 | "\x20\x31\x42\x53\x64\x75\x86\x97" |
| 18942 | "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" |
| 18943 | "\x30\x41\x52\x63\x74\x85\x96\xa7" |
| 18944 | "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" |
| 18945 | "\x40\x51\x62\x73\x84\x95\xa6\xb7" |
| 18946 | "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" |
| 18947 | "\x50\x61\x72\x83\x94\xa5\xb6\xc7" |
| 18948 | "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" |
| 18949 | "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" |
| 18950 | "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" |
| 18951 | "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" |
| 18952 | "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" |
| 18953 | "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" |
| 18954 | "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" |
| 18955 | "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" |
| 18956 | "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" |
| 18957 | "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" |
| 18958 | "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" |
| 18959 | "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" |
| 18960 | "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" |
| 18961 | "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" |
| 18962 | "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" |
| 18963 | "\xd0\xe1\xf2\x03\x14\x25\x36\x47" |
| 18964 | "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" |
| 18965 | "\xe0\xf1\x02\x13\x24\x35\x46\x57" |
| 18966 | "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" |
| 18967 | "\xf0\x01\x12\x23\x34\x45\x56\x67" |
| 18968 | "\x78\x89\x9a\xab\xbc\xcd\xde\xef" |
| 18969 | "\x00\x13\x26\x39\x4c\x5f\x72\x85" |
| 18970 | "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" |
| 18971 | "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" |
| 18972 | "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" |
| 18973 | "\x60\x73\x86\x99\xac\xbf\xd2\xe5" |
| 18974 | "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" |
| 18975 | "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" |
| 18976 | "\x28\x3b\x4e\x61\x74\x87\x9a\xad" |
| 18977 | "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" |
| 18978 | "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" |
| 18979 | "\xf0\x03\x16\x29\x3c\x4f\x62\x75" |
| 18980 | "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" |
| 18981 | "\x20\x33\x46\x59\x6c\x7f\x92\xa5" |
| 18982 | "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" |
| 18983 | "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" |
| 18984 | "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" |
| 18985 | "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" |
| 18986 | "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" |
| 18987 | "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" |
| 18988 | "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" |
| 18989 | "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" |
| 18990 | "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" |
| 18991 | "\x10\x23\x36\x49\x5c\x6f\x82\x95" |
| 18992 | "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" |
| 18993 | "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" |
| 18994 | "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" |
| 18995 | "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" |
| 18996 | "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" |
| 18997 | "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" |
| 18998 | "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" |
| 18999 | "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" |
| 19000 | "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" |
| 19001 | "\x00\x15\x2a\x3f\x54\x69\x7e\x93" |
| 19002 | "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" |
| 19003 | "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" |
| 19004 | "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" |
| 19005 | "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" |
| 19006 | "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" |
| 19007 | "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" |
| 19008 | "\x98\xad\xc2\xd7\xec\x01\x16\x2b" |
| 19009 | "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" |
| 19010 | "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" |
| 19011 | "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" |
| 19012 | "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" |
| 19013 | "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" |
| 19014 | "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" |
| 19015 | "\x30\x45\x5a\x6f\x84\x99\xae\xc3" |
| 19016 | "\xd8\xed\x02\x17\x2c\x41\x56\x6b" |
| 19017 | "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" |
| 19018 | "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" |
| 19019 | "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" |
| 19020 | "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" |
| 19021 | "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" |
| 19022 | "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" |
| 19023 | "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" |
| 19024 | "\x18\x2d\x42\x57\x6c\x81\x96\xab" |
| 19025 | "\xc0\xd5\xea\xff\x14\x29\x3e\x53" |
| 19026 | "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" |
| 19027 | "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" |
| 19028 | "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" |
| 19029 | "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" |
| 19030 | "\x08\x1d\x32\x47\x5c\x71\x86\x9b" |
| 19031 | "\xb0\xc5\xda\xef\x04\x19\x2e\x43" |
| 19032 | "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" |
| 19033 | "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" |
| 19034 | "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" |
| 19035 | "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" |
| 19036 | "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" |
| 19037 | "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" |
| 19038 | "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" |
| 19039 | "\x50\x67\x7e\x95\xac\xc3\xda\xf1" |
| 19040 | "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" |
| 19041 | "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" |
| 19042 | "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" |
| 19043 | "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" |
| 19044 | "\xe8\xff\x16\x2d\x44\x5b\x72\x89" |
| 19045 | "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" |
| 19046 | "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" |
| 19047 | "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" |
| 19048 | "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" |
| 19049 | "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" |
| 19050 | "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" |
| 19051 | "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" |
| 19052 | "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" |
| 19053 | "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" |
| 19054 | "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" |
| 19055 | "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" |
| 19056 | "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" |
| 19057 | "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" |
| 19058 | "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" |
| 19059 | "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" |
| 19060 | "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" |
| 19061 | "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" |
| 19062 | "\xd8\xef\x06\x1d\x34\x4b\x62\x79" |
| 19063 | "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" |
| 19064 | "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" |
| 19065 | "\x00\x19\x32\x4b\x64\x7d\x96\xaf" |
| 19066 | "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" |
| 19067 | "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" |
| 19068 | "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" |
| 19069 | "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" |
| 19070 | "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" |
| 19071 | "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" |
| 19072 | "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" |
| 19073 | "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" |
| 19074 | "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" |
| 19075 | "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" |
| 19076 | "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" |
| 19077 | "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" |
| 19078 | "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" |
| 19079 | "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" |
| 19080 | "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" |
| 19081 | "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" |
| 19082 | "\x48\x61\x7a\x93\xac\xc5\xde\xf7" |
| 19083 | "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" |
| 19084 | "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" |
| 19085 | "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" |
| 19086 | "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" |
| 19087 | "\x30\x49\x62\x7b\x94\xad\xc6\xdf" |
| 19088 | "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" |
| 19089 | "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" |
| 19090 | "\x88\xa1\xba\xd3\xec\x05\x1e\x37" |
| 19091 | "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" |
| 19092 | "\x18\x31\x4a\x63\x7c\x95\xae\xc7" |
| 19093 | "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" |
| 19094 | "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" |
| 19095 | "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" |
| 19096 | "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" |
| 19097 | "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" |
| 19098 | "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" |
| 19099 | "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" |
| 19100 | "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" |
| 19101 | "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" |
| 19102 | "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" |
| 19103 | "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" |
| 19104 | "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" |
| 19105 | "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" |
| 19106 | "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" |
| 19107 | "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" |
| 19108 | "\x48\x63\x7e\x99\xb4\xcf\xea\x05" |
| 19109 | "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" |
| 19110 | "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" |
| 19111 | "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" |
| 19112 | "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" |
| 19113 | "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" |
| 19114 | "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" |
| 19115 | "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" |
| 19116 | "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" |
| 19117 | "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" |
| 19118 | "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" |
| 19119 | "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" |
| 19120 | "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" |
| 19121 | "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" |
| 19122 | "\x18\x33\x4e\x69\x84\x9f\xba\xd5" |
| 19123 | "\xf0\x0b\x26\x41\x5c\x77\x92\xad" |
| 19124 | "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" |
| 19125 | "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" |
| 19126 | "\x78\x93\xae\xc9\xe4\xff\x1a\x35" |
| 19127 | "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" |
| 19128 | "\x28\x43\x5e\x79\x94\xaf\xca\xe5" |
| 19129 | "\x00\x1d\x3a\x57\x74\x91\xae\xcb" |
| 19130 | "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" |
| 19131 | "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" |
| 19132 | "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" |
| 19133 | "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" |
| 19134 | "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" |
| 19135 | "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" |
| 19136 | "\x58\x75\x92\xaf\xcc\xe9\x06\x23" |
| 19137 | "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" |
| 19138 | "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" |
| 19139 | "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" |
| 19140 | "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" |
| 19141 | "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" |
| 19142 | "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" |
| 19143 | "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" |
| 19144 | "\x98\xb5\xd2\xef\x0c\x29\x46\x63" |
| 19145 | "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" |
| 19146 | "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" |
| 19147 | "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" |
| 19148 | "\x38\x55\x72\x8f\xac\xc9\xe6\x03" |
| 19149 | "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" |
| 19150 | "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" |
| 19151 | "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" |
| 19152 | "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" |
| 19153 | "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" |
| 19154 | "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" |
| 19155 | "\x90\xad\xca\xe7\x04\x21\x3e\x5b" |
| 19156 | "\x78\x95\xb2\xcf\xec\x09\x26\x43" |
| 19157 | "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" |
| 19158 | "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" |
| 19159 | "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" |
| 19160 | "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" |
| 19161 | "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" |
| 19162 | "\xf8\x17\x36\x55\x74\x93\xb2\xd1" |
| 19163 | "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" |
| 19164 | "\xe8\x07\x26\x45\x64\x83\xa2\xc1" |
| 19165 | "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" |
| 19166 | "\xd8\xf7\x16\x35\x54\x73\x92\xb1" |
| 19167 | "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" |
| 19168 | "\xc8\xe7\x06\x25\x44\x63\x82\xa1" |
| 19169 | "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" |
| 19170 | "\xb8\xd7\xf6\x15\x34\x53\x72\x91" |
| 19171 | "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" |
| 19172 | "\xa8\xc7\xe6\x05\x24\x43\x62\x81" |
| 19173 | "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" |
| 19174 | "\x98\xb7\xd6\xf5\x14\x33\x52\x71" |
| 19175 | "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" |
| 19176 | "\x88\xa7\xc6\xe5\x04\x23\x42\x61" |
| 19177 | "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" |
| 19178 | "\x78\x97\xb6\xd5\xf4\x13\x32\x51" |
| 19179 | "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" |
| 19180 | "\x68\x87\xa6\xc5\xe4\x03\x22\x41" |
| 19181 | "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" |
| 19182 | "\x58\x77\x96\xb5\xd4\xf3\x12\x31" |
| 19183 | "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" |
| 19184 | "\x48\x67\x86\xa5\xc4\xe3\x02\x21" |
| 19185 | "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" |
| 19186 | "\x38\x57\x76\x95\xb4\xd3\xf2\x11" |
| 19187 | "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" |
| 19188 | "\x28\x47\x66\x85\xa4\xc3\xe2\x01" |
| 19189 | "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" |
| 19190 | "\x18\x37\x56\x75\x94\xb3\xd2\xf1" |
| 19191 | "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" |
| 19192 | "\x08\x27\x46\x65\x84\xa3\xc2\xe1" |
| 19193 | "\x00\x21\x42\x63", |
| 19194 | .ilen = 4100, |
| 19195 | .result = |
| 19196 | "\xf0\x5c\x74\xad\x4e\xbc\x99\xe2" |
| 19197 | "\xae\xff\x91\x3a\x44\xcf\x38\x32" |
| 19198 | "\x1e\xad\xa7\xcd\xa1\x39\x95\xaa" |
| 19199 | "\x10\xb1\xb3\x2e\x04\x31\x8f\x86" |
| 19200 | "\xf2\x62\x74\x70\x0c\xa4\x46\x08" |
| 19201 | "\xa8\xb7\x99\xa8\xe9\xd2\x73\x79" |
| 19202 | "\x7e\x6e\xd4\x8f\x1e\xc7\x8e\x31" |
| 19203 | "\x0b\xfa\x4b\xce\xfd\xf3\x57\x71" |
| 19204 | "\xe9\x46\x03\xa5\x3d\x34\x00\xe2" |
| 19205 | "\x18\xff\x75\x6d\x06\x2d\x00\xab" |
| 19206 | "\xb9\x3e\x6c\x59\xc5\x84\x06\xb5" |
| 19207 | "\x8b\xd0\x89\x9c\x4a\x79\x16\xc6" |
| 19208 | "\x3d\x74\x54\xfa\x44\xcd\x23\x26" |
| 19209 | "\x5c\xcf\x7e\x28\x92\x32\xbf\xdf" |
| 19210 | "\xa7\x20\x3c\x74\x58\x2a\x9a\xde" |
| 19211 | "\x61\x00\x1c\x4f\xff\x59\xc4\x22" |
| 19212 | "\xac\x3c\xd0\xe8\x6c\xf9\x97\x1b" |
| 19213 | "\x58\x9b\xad\x71\xe8\xa9\xb5\x0d" |
| 19214 | "\xee\x2f\x04\x1f\x7f\xbc\x99\xee" |
| 19215 | "\x84\xff\x42\x60\xdc\x3a\x18\xa5" |
| 19216 | "\x81\xf9\xef\xdc\x7a\x0f\x65\x41" |
| 19217 | "\x2f\xa3\xd3\xf9\xc2\xcb\xc0\x4d" |
| 19218 | "\x8f\xd3\x76\x96\xad\x49\x6d\x38" |
| 19219 | "\x3d\x39\x0b\x6c\x80\xb7\x54\x69" |
| 19220 | "\xf0\x2c\x90\x02\x29\x0d\x1c\x12" |
| 19221 | "\xad\x55\xc3\x8b\x68\xd9\xcc\xb3" |
| 19222 | "\xb2\x64\x33\x90\x5e\xca\x4b\xe2" |
| 19223 | "\xfb\x75\xdc\x63\xf7\x9f\x82\x74" |
| 19224 | "\xf0\xc9\xaa\x7f\xe9\x2a\x9b\x33" |
| 19225 | "\xbc\x88\x00\x7f\xca\xb2\x1f\x14" |
| 19226 | "\xdb\xc5\x8e\x7b\x11\x3c\x3e\x08" |
| 19227 | "\xf3\x83\xe8\xe0\x94\x86\x2e\x92" |
| 19228 | "\x78\x6b\x01\xc9\xc7\x83\xba\x21" |
| 19229 | "\x6a\x25\x15\x33\x4e\x45\x08\xec" |
| 19230 | "\x35\xdb\xe0\x6e\x31\x51\x79\xa9" |
| 19231 | "\x42\x44\x65\xc1\xa0\xf1\xf9\x2a" |
| 19232 | "\x70\xd5\xb6\xc6\xc1\x8c\x39\xfc" |
| 19233 | "\x25\xa6\x55\xd9\xdd\x2d\x4c\xec" |
| 19234 | "\x49\xc6\xeb\x0e\xa8\x25\x2a\x16" |
| 19235 | "\x1b\x66\x84\xda\xe2\x92\xe5\xc0" |
| 19236 | "\xc8\x53\x07\xaf\x80\x84\xec\xfd" |
| 19237 | "\xcd\xd1\x6e\xcd\x6f\x6a\xf5\x36" |
| 19238 | "\xc5\x15\xe5\x25\x7d\x77\xd1\x1a" |
| 19239 | "\x93\x36\xa9\xcf\x7c\xa4\x54\x4a" |
| 19240 | "\x06\x51\x48\x4e\xf6\x59\x87\xd2" |
| 19241 | "\x04\x02\xef\xd3\x44\xde\x76\x31" |
| 19242 | "\xb3\x34\x17\x1b\x9d\x66\x11\x9f" |
| 19243 | "\x1e\xcc\x17\xe9\xc7\x3c\x1b\xe7" |
| 19244 | "\xcb\x50\x08\xfc\xdc\x2b\x24\xdb" |
| 19245 | "\x65\x83\xd0\x3b\xe3\x30\xea\x94" |
| 19246 | "\x6c\xe7\xe8\x35\x32\xc7\xdb\x64" |
| 19247 | "\xb4\x01\xab\x36\x2c\x77\x13\xaf" |
| 19248 | "\xf8\x2b\x88\x3f\x54\x39\xc4\x44" |
| 19249 | "\xfe\xef\x6f\x68\x34\xbe\x0f\x05" |
| 19250 | "\x16\x6d\xf6\x0a\x30\xe7\xe3\xed" |
| 19251 | "\xc4\xde\x3c\x1b\x13\xd8\xdb\xfe" |
| 19252 | "\x41\x62\xe5\x28\xd4\x8d\xa3\xc7" |
| 19253 | "\x93\x97\xc6\x48\x45\x1d\x9f\x83" |
| 19254 | "\xdf\x4b\x40\x3e\x42\x25\x87\x80" |
| 19255 | "\x4c\x7d\xa8\xd4\x98\x23\x95\x75" |
| 19256 | "\x41\x8c\xda\x41\x9b\xd4\xa7\x06" |
| 19257 | "\xb5\xf1\x71\x09\x53\xbe\xca\xbf" |
| 19258 | "\x32\x03\xed\xf0\x50\x1c\x56\x39" |
| 19259 | "\x5b\xa4\x75\x18\xf7\x9b\x58\xef" |
| 19260 | "\x53\xfc\x2a\x38\x23\x15\x75\xcd" |
| 19261 | "\x45\xe5\x5a\x82\x55\xba\x21\xfa" |
| 19262 | "\xd4\xbd\xc6\x94\x7c\xc5\x80\x12" |
| 19263 | "\xf7\x4b\x32\xc4\x9a\x82\xd8\x28" |
| 19264 | "\x8f\xd9\xc2\x0f\x60\x03\xbe\x5e" |
| 19265 | "\x21\xd6\x5f\x58\xbf\x5c\xb1\x32" |
| 19266 | "\x82\x8d\xa9\xe5\xf2\x66\x1a\xc0" |
| 19267 | "\xa0\xbc\x58\x2f\x71\xf5\x2f\xed" |
| 19268 | "\xd1\x26\xb9\xd8\x49\x5a\x07\x19" |
| 19269 | "\x01\x7c\x59\xb0\xf8\xa4\xb7\xd3" |
| 19270 | "\x7b\x1a\x8c\x38\xf4\x50\xa4\x59" |
| 19271 | "\xb0\xcc\x41\x0b\x88\x7f\xe5\x31" |
| 19272 | "\xb3\x42\xba\xa2\x7e\xd4\x32\x71" |
| 19273 | "\x45\x87\x48\xa9\xc2\xf2\x89\xb3" |
| 19274 | "\xe4\xa7\x7e\x52\x15\x61\xfa\xfe" |
| 19275 | "\xc9\xdd\x81\xeb\x13\xab\xab\xc3" |
| 19276 | "\x98\x59\xd8\x16\x3d\x14\x7a\x1c" |
| 19277 | "\x3c\x41\x9a\x16\x16\x9b\xd2\xd2" |
| 19278 | "\x69\x3a\x29\x23\xac\x86\x32\xa5" |
| 19279 | "\x48\x9c\x9e\xf3\x47\x77\x81\x70" |
| 19280 | "\x24\xe8\x85\xd2\xf5\xb5\xfa\xff" |
| 19281 | "\x59\x6a\xd3\x50\x59\x43\x59\xde" |
| 19282 | "\xd9\xf1\x55\xa5\x0c\xc3\x1a\x1a" |
| 19283 | "\x18\x34\x0d\x1a\x63\x33\xed\x10" |
| 19284 | "\xe0\x1d\x2a\x18\xd2\xc0\x54\xa8" |
| 19285 | "\xca\xb5\x9a\xd3\xdd\xca\x45\x84" |
| 19286 | "\x50\xe7\x0f\xfe\xa4\x99\x5a\xbe" |
| 19287 | "\x43\x2d\x9a\xcb\x92\x3f\x5a\x1d" |
| 19288 | "\x85\xd8\xc9\xdf\x68\xc9\x12\x80" |
| 19289 | "\x56\x0c\xdc\x00\xdc\x3a\x7d\x9d" |
| 19290 | "\xa3\xa2\xe8\x4d\xbf\xf9\x70\xa0" |
| 19291 | "\xa4\x13\x4f\x6b\xaf\x0a\x89\x7f" |
| 19292 | "\xda\xf0\xbf\x9b\xc8\x1d\xe5\xf8" |
| 19293 | "\x2e\x8b\x07\xb5\x73\x1b\xcc\xa2" |
| 19294 | "\xa6\xad\x30\xbc\x78\x3c\x5b\x10" |
| 19295 | "\xfa\x5e\x62\x2d\x9e\x64\xb3\x33" |
| 19296 | "\xce\xf9\x1f\x86\xe7\x8b\xa2\xb8" |
| 19297 | "\xe8\x99\x57\x8c\x11\xed\x66\xd9" |
| 19298 | "\x3c\x72\xb9\xc3\xe6\x4e\x17\x3a" |
| 19299 | "\x6a\xcb\x42\x24\x06\xed\x3e\x4e" |
| 19300 | "\xa3\xe8\x6a\x94\xda\x0d\x4e\xd5" |
| 19301 | "\x14\x19\xcf\xb6\x26\xd8\x2e\xcc" |
| 19302 | "\x64\x76\x38\x49\x4d\xfe\x30\x6d" |
| 19303 | "\xe4\xc8\x8c\x7b\xc4\xe0\x35\xba" |
| 19304 | "\x22\x6e\x76\xe1\x1a\xf2\x53\xc3" |
| 19305 | "\x28\xa2\x82\x1f\x61\x69\xad\xc1" |
| 19306 | "\x7b\x28\x4b\x1e\x6c\x85\x95\x9b" |
| 19307 | "\x51\xb5\x17\x7f\x12\x69\x8c\x24" |
| 19308 | "\xd5\xc7\x5a\x5a\x11\x54\xff\x5a" |
| 19309 | "\xf7\x16\xc3\x91\xa6\xf0\xdc\x0a" |
| 19310 | "\xb6\xa7\x4a\x0d\x7a\x58\xfe\xa5" |
| 19311 | "\xf5\xcb\x8f\x7b\x0e\xea\x57\xe7" |
| 19312 | "\xbd\x79\xd6\x1c\x88\x23\x6c\xf2" |
| 19313 | "\x4d\x29\x77\x53\x35\x6a\x00\x8d" |
| 19314 | "\xcd\xa3\x58\xbe\x77\x99\x18\xf8" |
| 19315 | "\xe6\xe1\x8f\xe9\x37\x8f\xe3\xe2" |
| 19316 | "\x5a\x8a\x93\x25\xaf\xf3\x78\x80" |
| 19317 | "\xbe\xa6\x1b\xc6\xac\x8b\x1c\x91" |
| 19318 | "\x58\xe1\x9f\x89\x35\x9d\x1d\x21" |
| 19319 | "\x29\x9f\xf4\x99\x02\x27\x0f\xa8" |
| 19320 | "\x4f\x79\x94\x2b\x33\x2c\xda\xa2" |
| 19321 | "\x26\x39\x83\x94\xef\x27\xd8\x53" |
| 19322 | "\x8f\x66\x0d\xe4\x41\x7d\x34\xcd" |
| 19323 | "\x43\x7c\x95\x0a\x53\xef\x66\xda" |
| 19324 | "\x7e\x9b\xf3\x93\xaf\xd0\x73\x71" |
| 19325 | "\xba\x40\x9b\x74\xf8\xd7\xd7\x41" |
| 19326 | "\x6d\xaf\x72\x9c\x8d\x21\x87\x3c" |
| 19327 | "\xfd\x0a\x90\xa9\x47\x96\x9e\xd3" |
| 19328 | "\x88\xee\x73\xcf\x66\x2f\x52\x56" |
| 19329 | "\x6d\xa9\x80\x4c\xe2\x6f\x62\x88" |
| 19330 | "\x3f\x0e\x54\x17\x48\x80\x5d\xd3" |
| 19331 | "\xc3\xda\x25\x3d\xa1\xc8\xcb\x9f" |
| 19332 | "\x9b\x70\xb3\xa1\xeb\x04\x52\xa1" |
| 19333 | "\xf2\x22\x0f\xfc\xc8\x18\xfa\xf9" |
| 19334 | "\x85\x9c\xf1\xac\xeb\x0c\x02\x46" |
| 19335 | "\x75\xd2\xf5\x2c\xe3\xd2\x59\x94" |
| 19336 | "\x12\xf3\x3c\xfc\xd7\x92\xfa\x36" |
| 19337 | "\xba\x61\x34\x38\x7c\xda\x48\x3e" |
| 19338 | "\x08\xc9\x39\x23\x5e\x02\x2c\x1a" |
| 19339 | "\x18\x7e\xb4\xd9\xfd\x9e\x40\x02" |
| 19340 | "\xb1\x33\x37\x32\xe7\xde\xd6\xd0" |
| 19341 | "\x7c\x58\x65\x4b\xf8\x34\x27\x9c" |
| 19342 | "\x44\xb4\xbd\xe9\xe9\x4c\x78\x7d" |
| 19343 | "\x4b\x9f\xce\xb1\xcd\x47\xa5\x37" |
| 19344 | "\xe5\x6d\xbd\xb9\x43\x94\x0a\xd4" |
| 19345 | "\xd6\xf9\x04\x5f\xb5\x66\x6c\x1a" |
| 19346 | "\x35\x12\xe3\x36\x28\x27\x36\x58" |
| 19347 | "\x01\x2b\x79\xe4\xba\x6d\x10\x7d" |
| 19348 | "\x65\xdf\x84\x95\xf4\xd5\xb6\x8f" |
| 19349 | "\x2b\x9f\x96\x00\x86\x60\xf0\x21" |
| 19350 | "\x76\xa8\x6a\x8c\x28\x1c\xb3\x6b" |
| 19351 | "\x97\xd7\xb6\x53\x2a\xcc\xab\x40" |
| 19352 | "\x9d\x62\x79\x58\x52\xe6\x65\xb7" |
| 19353 | "\xab\x55\x67\x9c\x89\x7c\x03\xb0" |
| 19354 | "\x73\x59\xc5\x81\xf5\x18\x17\x5c" |
| 19355 | "\x89\xf3\x78\x35\x44\x62\x78\x72" |
| 19356 | "\xd0\x96\xeb\x31\xe7\x87\x77\x14" |
| 19357 | "\x99\x51\xf2\x59\x26\x9e\xb5\xa6" |
| 19358 | "\x45\xfe\x6e\xbd\x07\x4c\x94\x5a" |
| 19359 | "\xa5\x7d\xfc\xf1\x2b\x77\xe2\xfe" |
| 19360 | "\x17\xd4\x84\xa0\xac\xb5\xc7\xda" |
| 19361 | "\xa9\x1a\xb6\xf3\x74\x11\xb4\x9d" |
| 19362 | "\xfb\x79\x2e\x04\x2d\x50\x28\x83" |
| 19363 | "\xbf\xc6\x52\xd3\x34\xd6\xe8\x7a" |
| 19364 | "\xb6\xea\xe7\xa8\x6c\x15\x1e\x2c" |
| 19365 | "\x57\xbc\x48\x4e\x5f\x5c\xb6\x92" |
| 19366 | "\xd2\x49\x77\x81\x6d\x90\x70\xae" |
| 19367 | "\x98\xa1\x03\x0d\x6b\xb9\x77\x14" |
| 19368 | "\xf1\x4e\x23\xd3\xf8\x68\xbd\xc2" |
| 19369 | "\xfe\x04\xb7\x5c\xc5\x17\x60\x8f" |
| 19370 | "\x65\x54\xa4\x7a\x42\xdc\x18\x0d" |
| 19371 | "\xb5\xcf\x0f\xd3\xc7\x91\x66\x1b" |
| 19372 | "\x45\x42\x27\x75\x50\xe5\xee\xb8" |
| 19373 | "\x7f\x33\x2c\xba\x4a\x92\x4d\x2c" |
| 19374 | "\x3c\xe3\x0d\x80\x01\xba\x0d\x29" |
| 19375 | "\xd8\x3c\xe9\x13\x16\x57\xe6\xea" |
| 19376 | "\x94\x52\xe7\x00\x4d\x30\xb0\x0f" |
| 19377 | "\x35\xb8\xb8\xa7\xb1\xb5\x3b\x44" |
| 19378 | "\xe1\x2f\xfd\x88\xed\x43\xe7\x52" |
| 19379 | "\x10\x93\xb3\x8a\x30\x6b\x0a\xf7" |
| 19380 | "\x23\xc6\x50\x9d\x4a\xb0\xde\xc3" |
| 19381 | "\xdc\x9b\x2f\x01\x56\x36\x09\xc5" |
| 19382 | "\x2f\x6b\xfe\xf1\xd8\x27\x45\x03" |
| 19383 | "\x30\x5e\x5c\x5b\xb4\x62\x0e\x1a" |
| 19384 | "\xa9\x21\x2b\x92\x94\x87\x62\x57" |
| 19385 | "\x4c\x10\x74\x1a\xf1\x0a\xc5\x84" |
| 19386 | "\x3b\x9e\x72\x02\xd7\xcc\x09\x56" |
| 19387 | "\xbd\x54\xc1\xf0\xc3\xe3\xb3\xf8" |
| 19388 | "\xd2\x0d\x61\xcb\xef\xce\x0d\x05" |
| 19389 | "\xb0\x98\xd9\x8e\x4f\xf9\xbc\x93" |
| 19390 | "\xa6\xea\xc8\xcf\x10\x53\x4b\xf1" |
| 19391 | "\xec\xfc\x89\xf9\x64\xb0\x22\xbf" |
| 19392 | "\x9e\x55\x46\x9f\x7c\x50\x8e\x84" |
| 19393 | "\x54\x20\x98\xd7\x6c\x40\x1e\xdb" |
| 19394 | "\x69\x34\x78\x61\x24\x21\x9c\x8a" |
| 19395 | "\xb3\x62\x31\x8b\x6e\xf5\x2a\x35" |
| 19396 | "\x86\x13\xb1\x6c\x64\x2e\x41\xa5" |
| 19397 | "\x05\xf2\x42\xba\xd2\x3a\x0d\x8e" |
| 19398 | "\x8a\x59\x94\x3c\xcf\x36\x27\x82" |
| 19399 | "\xc2\x45\xee\x58\xcd\x88\xb4\xec" |
| 19400 | "\xde\xb2\x96\x0a\xaf\x38\x6f\x88" |
| 19401 | "\xd7\xd8\xe1\xdf\xb9\x96\xa9\x0a" |
| 19402 | "\xb1\x95\x28\x86\x20\xe9\x17\x49" |
| 19403 | "\xa2\x29\x38\xaa\xa5\xe9\x6e\xf1" |
| 19404 | "\x19\x27\xc0\xd5\x2a\x22\xc3\x0b" |
| 19405 | "\xdb\x7c\x73\x10\xb9\xba\x89\x76" |
| 19406 | "\x54\xae\x7d\x71\xb3\x93\xf6\x32" |
| 19407 | "\xe6\x47\x43\x55\xac\xa0\x0d\xc2" |
| 19408 | "\x93\x27\x4a\x8e\x0e\x74\x15\xc7" |
| 19409 | "\x0b\x85\xd9\x0c\xa9\x30\x7a\x3e" |
| 19410 | "\xea\x8f\x85\x6d\x3a\x12\x4f\x72" |
| 19411 | "\x69\x58\x7a\x80\xbb\xb5\x97\xf3" |
| 19412 | "\xcf\x70\xd2\x5d\xdd\x4d\x21\x79" |
| 19413 | "\x54\x4d\xe4\x05\xe8\xbd\xc2\x62" |
| 19414 | "\xb1\x3b\x77\x1c\xd6\x5c\xf3\xa0" |
| 19415 | "\x79\x00\xa8\x6c\x29\xd9\x18\x24" |
| 19416 | "\x36\xa2\x46\xc0\x96\x65\x7f\xbd" |
| 19417 | "\x2a\xed\x36\x16\x0c\xaa\x9f\xf4" |
| 19418 | "\xc5\xb4\xe2\x12\xed\x69\xed\x4f" |
| 19419 | "\x26\x2c\x39\x52\x89\x98\xe7\x2c" |
| 19420 | "\x99\xa4\x9e\xa3\x9b\x99\x46\x7a" |
| 19421 | "\x3a\xdc\xa8\x59\xa3\xdb\xc3\x3b" |
| 19422 | "\x95\x0d\x3b\x09\x6e\xee\x83\x5d" |
| 19423 | "\x32\x4d\xed\xab\xfa\x98\x14\x4e" |
| 19424 | "\xc3\x15\x45\x53\x61\xc4\x93\xbd" |
| 19425 | "\x90\xf4\x99\x95\x4c\xe6\x76\x92" |
| 19426 | "\x29\x90\x46\x30\x92\x69\x7d\x13" |
| 19427 | "\xf2\xa5\xcd\x69\x49\x44\xb2\x0f" |
| 19428 | "\x63\x40\x36\x5f\x09\xe2\x78\xf8" |
| 19429 | "\x91\xe3\xe2\xfa\x10\xf7\xc8\x24" |
| 19430 | "\xa8\x89\x32\x5c\x37\x25\x1d\xb2" |
| 19431 | "\xea\x17\x8a\x0a\xa9\x64\xc3\x7c" |
| 19432 | "\x3c\x7c\xbd\xc6\x79\x34\xe7\xe2" |
| 19433 | "\x85\x8e\xbf\xf8\xde\x92\xa0\xae" |
| 19434 | "\x20\xc4\xf6\xbb\x1f\x38\x19\x0e" |
| 19435 | "\xe8\x79\x9c\xa1\x23\xe9\x54\x7e" |
| 19436 | "\x37\x2f\xe2\x94\x32\xaf\xa0\x23" |
| 19437 | "\x49\xe4\xc0\xb3\xac\x00\x8f\x36" |
| 19438 | "\x05\xc4\xa6\x96\xec\x05\x98\x4f" |
| 19439 | "\x96\x67\x57\x1f\x20\x86\x1b\x2d" |
| 19440 | "\x69\xe4\x29\x93\x66\x5f\xaf\x6b" |
| 19441 | "\x88\x26\x2c\x67\x02\x4b\x52\xd0" |
| 19442 | "\x83\x7a\x43\x1f\xc0\x71\x15\x25" |
| 19443 | "\x77\x65\x08\x60\x11\x76\x4c\x8d" |
| 19444 | "\xed\xa9\x27\xc6\xb1\x2a\x2c\x6a" |
| 19445 | "\x4a\x97\xf5\xc6\xb7\x70\x42\xd3" |
| 19446 | "\x03\xd1\x24\x95\xec\x6d\xab\x38" |
| 19447 | "\x72\xce\xe2\x8b\x33\xd7\x51\x09" |
| 19448 | "\xdc\x45\xe0\x09\x96\x32\xf3\xc4" |
| 19449 | "\x84\xdc\x73\x73\x2d\x1b\x11\x98" |
| 19450 | "\xc5\x0e\x69\x28\x94\xc7\xb5\x4d" |
| 19451 | "\xc8\x8a\xd0\xaa\x13\x2e\x18\x74" |
| 19452 | "\xdd\xd1\x1e\xf3\x90\xe8\xfc\x9a" |
| 19453 | "\x72\x4a\x0e\xd1\xe4\xfb\x0d\x96" |
| 19454 | "\xd1\x0c\x79\x85\x1b\x1c\xfe\xe1" |
| 19455 | "\x62\x8f\x7a\x73\x32\xab\xc8\x18" |
| 19456 | "\x69\xe3\x34\x30\xdf\x13\xa6\xe5" |
| 19457 | "\xe8\x0e\x67\x7f\x81\x11\xb4\x60" |
| 19458 | "\xc7\xbd\x79\x65\x50\xdc\xc4\x5b" |
| 19459 | "\xde\x39\xa4\x01\x72\x63\xf3\xd1" |
| 19460 | "\x64\x4e\xdf\xfc\x27\x92\x37\x0d" |
| 19461 | "\x57\xcd\x11\x4f\x11\x04\x8e\x1d" |
| 19462 | "\x16\xf7\xcd\x92\x9a\x99\x30\x14" |
| 19463 | "\xf1\x7c\x67\x1b\x1f\x41\x0b\xe8" |
| 19464 | "\x32\xe8\xb8\xc1\x4f\x54\x86\x4f" |
| 19465 | "\xe5\x79\x81\x73\xcd\x43\x59\x68" |
| 19466 | "\x73\x02\x3b\x78\x21\x72\x43\x00" |
| 19467 | "\x49\x17\xf7\x00\xaf\x68\x24\x53" |
| 19468 | "\x05\x0a\xc3\x33\xe0\x33\x3f\x69" |
| 19469 | "\xd2\x84\x2f\x0b\xed\xde\x04\xf4" |
| 19470 | "\x11\x94\x13\x69\x51\x09\x28\xde" |
| 19471 | "\x57\x5c\xef\xdc\x9a\x49\x1c\x17" |
| 19472 | "\x97\xf3\x96\xc1\x7f\x5d\x2e\x7d" |
| 19473 | "\x55\xb8\xb3\x02\x09\xb3\x1f\xe7" |
| 19474 | "\xc9\x8d\xa3\x36\x34\x8a\x77\x13" |
| 19475 | "\x30\x63\x4c\xa5\xcd\xc3\xe0\x7e" |
| 19476 | "\x05\xa1\x7b\x0c\xcb\x74\x47\x31" |
| 19477 | "\x62\x03\x43\xf1\x87\xb4\xb0\x85" |
| 19478 | "\x87\x8e\x4b\x25\xc7\xcf\xae\x4b" |
| 19479 | "\x36\x46\x3e\x62\xbc\x6f\xeb\x5f" |
| 19480 | "\x73\xac\xe6\x07\xee\xc1\xa1\xd6" |
| 19481 | "\xc4\xab\xc9\xd6\x89\x45\xe1\xf1" |
| 19482 | "\x04\x4e\x1a\x6f\xbb\x4f\x3a\xa3" |
| 19483 | "\xa0\xcb\xa3\x0a\xd8\x71\x35\x55" |
| 19484 | "\xe4\xbc\x2e\x04\x06\xe6\xff\x5b" |
| 19485 | "\x1c\xc0\x11\x7c\xc5\x17\xf3\x38" |
| 19486 | "\xcf\xe9\xba\x0f\x0e\xef\x02\xc2" |
| 19487 | "\x8d\xc6\xbc\x4b\x67\x20\x95\xd7" |
| 19488 | "\x2c\x45\x5b\x86\x44\x8c\x6f\x2e" |
| 19489 | "\x7e\x9f\x1c\x77\xba\x6b\x0e\xa3" |
| 19490 | "\x69\xdc\xab\x24\x57\x60\x47\xc1" |
| 19491 | "\xd1\xa5\x9d\x23\xe6\xb1\x37\xfe" |
| 19492 | "\x93\xd2\x4c\x46\xf9\x0c\xc6\xfb" |
| 19493 | "\xd6\x9d\x99\x69\xab\x7a\x07\x0c" |
| 19494 | "\x65\xe7\xc4\x08\x96\xe2\xa5\x01" |
| 19495 | "\x3f\x46\x07\x05\x7e\xe8\x9a\x90" |
| 19496 | "\x50\xdc\xe9\x7a\xea\xa1\x39\x6e" |
| 19497 | "\x66\xe4\x6f\xa5\x5f\xb2\xd9\x5b" |
| 19498 | "\xf5\xdb\x2a\x32\xf0\x11\x6f\x7c" |
| 19499 | "\x26\x10\x8f\x3d\x80\xe9\x58\xf7" |
| 19500 | "\xe0\xa8\x57\xf8\xdb\x0e\xce\x99" |
| 19501 | "\x63\x19\x3d\xd5\xec\x1b\x77\x69" |
| 19502 | "\x98\xf6\xe4\x5f\x67\x17\x4b\x09" |
| 19503 | "\x85\x62\x82\x70\x18\xe2\x9a\x78" |
| 19504 | "\xe2\x62\xbd\xb4\xf1\x42\xc6\xfb" |
| 19505 | "\x08\xd0\xbd\xeb\x4e\x09\xf2\xc8" |
| 19506 | "\x1e\xdc\x3d\x32\x21\x56\x9c\x4f" |
| 19507 | "\x35\xf3\x61\x06\x72\x84\xc4\x32" |
| 19508 | "\xf2\xf1\xfa\x0b\x2f\xc3\xdb\x02" |
| 19509 | "\x04\xc2\xde\x57\x64\x60\x8d\xcf" |
| 19510 | "\xcb\x86\x5d\x97\x3e\xb1\x9c\x01" |
| 19511 | "\xd6\x28\x8f\x99\xbc\x46\xeb\x05" |
| 19512 | "\xaf\x7e\xb8\x21\x2a\x56\x85\x1c" |
| 19513 | "\xb3\x71\xa0\xde\xca\x96\xf1\x78" |
| 19514 | "\x49\xa2\x99\x81\x80\x5c\x01\xf5" |
| 19515 | "\xa0\xa2\x56\x63\xe2\x70\x07\xa5" |
| 19516 | "\x95\xd6\x85\xeb\x36\x9e\xa9\x51" |
| 19517 | "\x66\x56\x5f\x1d\x02\x19\xe2\xf6" |
| 19518 | "\x4f\x73\x38\x09\x75\x64\x48\xe0" |
| 19519 | "\xf1\x7e\x0e\xe8\x9d\xf9\xed\x94" |
| 19520 | "\xfe\x16\x26\x62\x49\x74\xf4\xb0" |
| 19521 | "\xd4\xa9\x6c\xb0\xfd\x53\xe9\x81" |
| 19522 | "\xe0\x7a\xbf\xcf\xb5\xc4\x01\x81" |
| 19523 | "\x79\x99\x77\x01\x3b\xe9\xa2\xb6" |
| 19524 | "\xe6\x6a\x8a\x9e\x56\x1c\x8d\x1e" |
| 19525 | "\x8f\x06\x55\x2c\x6c\xdc\x92\x87" |
| 19526 | "\x64\x3b\x4b\x19\xa1\x13\x64\x1d" |
| 19527 | "\x4a\xe9\xc0\x00\xb8\x95\xef\x6b" |
| 19528 | "\x1a\x86\x6d\x37\x52\x02\xc2\xe0" |
| 19529 | "\xc8\xbb\x42\x0c\x02\x21\x4a\xc9" |
| 19530 | "\xef\xa0\x54\xe4\x5e\x16\x53\x81" |
| 19531 | "\x70\x62\x10\xaf\xde\xb8\xb5\xd3" |
| 19532 | "\xe8\x5e\x6c\xc3\x8a\x3e\x18\x07" |
| 19533 | "\xf2\x2f\x7d\xa7\xe1\x3d\x4e\xb4" |
| 19534 | "\x26\xa7\xa3\x93\x86\xb2\x04\x1e" |
| 19535 | "\x53\x5d\x86\xd6\xde\x65\xca\xe3" |
| 19536 | "\x4e\xc1\xcf\xef\xc8\x70\x1b\x83" |
| 19537 | "\x13\xdd\x18\x8b\x0d\x76\xd2\xf6" |
| 19538 | "\x37\x7a\x93\x7a\x50\x11\x9f\x96" |
| 19539 | "\x86\x25\xfd\xac\xdc\xbe\x18\x93" |
| 19540 | "\x19\x6b\xec\x58\x4f\xb9\x75\xa7" |
| 19541 | "\xdd\x3f\x2f\xec\xc8\x5a\x84\xab" |
| 19542 | "\xd5\xe4\x8a\x07\xf6\x4d\x23\xd6" |
| 19543 | "\x03\xfb\x03\x6a\xea\x66\xbf\xd4" |
| 19544 | "\xb1\x34\xfb\x78\xe9\x55\xdc\x7c" |
| 19545 | "\x3d\x9c\xe5\x9a\xac\xc3\x7a\x80" |
| 19546 | "\x24\x6d\xa0\xef\x25\x7c\xb7\xea" |
| 19547 | "\xce\x4d\x5f\x18\x60\xce\x87\x22" |
| 19548 | "\x66\x2f\xd5\xdd\xdd\x02\x21\x75" |
| 19549 | "\x82\xa0\x1f\x58\xc6\xd3\x62\xf7" |
| 19550 | "\x32\xd8\xaf\x1e\x07\x77\x51\x96" |
| 19551 | "\xd5\x6b\x1e\x7e\x80\x02\xe8\x67" |
| 19552 | "\xea\x17\x0b\x10\xd2\x3f\x28\x25" |
| 19553 | "\x4f\x05\x77\x02\x14\x69\xf0\x2c" |
| 19554 | "\xbe\x0c\xf1\x74\x30\xd1\xb9\x9b" |
| 19555 | "\xfc\x8c\xbb\x04\x16\xd9\xba\xc3" |
| 19556 | "\xbc\x91\x8a\xc4\x30\xa4\xb0\x12" |
| 19557 | "\x4c\x21\x87\xcb\xc9\x1d\x16\x96" |
| 19558 | "\x07\x6f\x23\x54\xb9\x6f\x79\xe5" |
| 19559 | "\x64\xc0\x64\xda\xb1\xae\xdd\x60" |
| 19560 | "\x6c\x1a\x9d\xd3\x04\x8e\x45\xb0" |
| 19561 | "\x92\x61\xd0\x48\x81\xed\x5e\x1d" |
| 19562 | "\xa0\xc9\xa4\x33\xc7\x13\x51\x5d" |
| 19563 | "\x7f\x83\x73\xb6\x70\x18\x65\x3e" |
| 19564 | "\x2f\x0e\x7a\x12\x39\x98\xab\xd8" |
| 19565 | "\x7e\x6f\xa3\xd1\xba\x56\xad\xbd" |
| 19566 | "\xf0\x03\x01\x1c\x85\x35\x9f\xeb" |
| 19567 | "\x19\x63\xa1\xaf\xfe\x2d\x35\x50" |
| 19568 | "\x39\xa0\x65\x7c\x95\x7e\x6b\xfe" |
| 19569 | "\xc1\xac\x07\x7c\x98\x4f\xbe\x57" |
| 19570 | "\xa7\x22\xec\xe2\x7e\x29\x09\x53" |
| 19571 | "\xe8\xbf\xb4\x7e\x3f\x8f\xfc\x14" |
| 19572 | "\xce\x54\xf9\x18\x58\xb5\xff\x44" |
| 19573 | "\x05\x9d\xce\x1b\xb6\x82\x23\xc8" |
| 19574 | "\x2e\xbc\x69\xbb\x4a\x29\x0f\x65" |
| 19575 | "\x94\xf0\x63\x06\x0e\xef\x8c\xbd" |
| 19576 | "\xff\xfd\xb0\x21\x6e\x57\x05\x75" |
| 19577 | "\xda\xd5\xc4\xeb\x8d\x32\xf7\x50" |
| 19578 | "\xd3\x6f\x22\xed\x5f\x8e\xa2\x5b" |
| 19579 | "\x80\x8c\xc8\x78\x40\x24\x4b\x89" |
| 19580 | "\x30\xce\x7a\x97\x0e\xc4\xaf\xef" |
| 19581 | "\x9b\xb4\xcd\x66\x74\x14\x04\x2b" |
| 19582 | "\xf7\xce\x0b\x1c\x6e\xc2\x78\x8c" |
| 19583 | "\xca\xc5\xd0\x1c\x95\x4a\x91\x2d" |
| 19584 | "\xa7\x20\xeb\x86\x52\xb7\x67\xd8" |
| 19585 | "\x0c\xd6\x04\x14\xde\x51\x74\x75" |
| 19586 | "\xe7\x11\xb4\x87\xa3\x3d\x2d\xad" |
| 19587 | "\x4f\xef\xa0\x0f\x70\x00\x6d\x13" |
| 19588 | "\x19\x1d\x41\x50\xe9\xd8\xf0\x32" |
| 19589 | "\x71\xbc\xd3\x11\xf2\xac\xbe\xaf" |
| 19590 | "\x75\x46\x65\x4e\x07\x34\x37\xa3" |
| 19591 | "\x89\xfe\x75\xd4\x70\x4c\xc6\x3f" |
| 19592 | "\x69\x24\x0e\x38\x67\x43\x8c\xde" |
| 19593 | "\x06\xb5\xb8\xe7\xc4\xf0\x41\x8f" |
| 19594 | "\xf0\xbd\x2f\x0b\xb9\x18\xf8\xde" |
| 19595 | "\x64\xb1\xdb\xee\x00\x50\x77\xe1" |
| 19596 | "\xc7\xff\xa6\xfa\xdd\x70\xf4\xe3" |
| 19597 | "\x93\xe9\x77\x35\x3d\x4b\x2f\x2b" |
| 19598 | "\x6d\x55\xf0\xfc\x88\x54\x4e\x89" |
| 19599 | "\xc1\x8a\x23\x31\x2d\x14\x2a\xb8" |
| 19600 | "\x1b\x15\xdd\x9e\x6e\x7b\xda\x05" |
| 19601 | "\x91\x7d\x62\x64\x96\x72\xde\xfc" |
| 19602 | "\xc1\xec\xf0\x23\x51\x6f\xdb\x5b" |
| 19603 | "\x1d\x08\x57\xce\x09\xb8\xf6\xcd" |
| 19604 | "\x8d\x95\xf2\x20\xbf\x0f\x20\x57" |
| 19605 | "\x98\x81\x84\x4f\x15\x5c\x76\xe7" |
| 19606 | "\x3e\x0a\x3a\x6c\xc4\x8a\xbe\x78" |
| 19607 | "\x74\x77\xc3\x09\x4b\x5d\x48\xe4" |
| 19608 | "\xc8\xcb\x0b\xea\x17\x28\xcf\xcf" |
| 19609 | "\x31\x32\x44\xa4\xe5\x0e\x1a\x98" |
| 19610 | "\x94\xc4\xf0\xff\xae\x3e\x44\xe8" |
| 19611 | "\xa5\xb3\xb5\x37\x2f\xe8\xaf\x6f" |
| 19612 | "\x28\xc1\x37\x5f\x31\xd2\xb9\x33" |
| 19613 | "\xb1\xb2\x52\x94\x75\x2c\x29\x59" |
| 19614 | "\x06\xc2\x25\xe8\x71\x65\x4e\xed" |
| 19615 | "\xc0\x9c\xb1\xbb\x25\xdc\x6c\xe7" |
| 19616 | "\x4b\xa5\x7a\x54\x7a\x60\xff\x7a" |
| 19617 | "\xe0\x50\x40\x96\x35\x63\xe4\x0b" |
| 19618 | "\x76\xbd\xa4\x65\x00\x1b\x57\x88" |
| 19619 | "\xae\xed\x39\x88\x42\x11\x3c\xed" |
| 19620 | "\x85\x67\x7d\xb9\x68\x82\xe9\x43" |
| 19621 | "\x3c\x47\x53\xfa\xe8\xf8\x9f\x1f" |
| 19622 | "\x9f\xef\x0f\xf7\x30\xd9\x30\x0e" |
| 19623 | "\xb9\x9f\x69\x18\x2f\x7e\xf8\xf8" |
| 19624 | "\xf8\x8c\x0f\xd4\x02\x4d\xea\xcd" |
| 19625 | "\x0a\x9c\x6f\x71\x6d\x5a\x4c\x60" |
| 19626 | "\xce\x20\x56\x32\xc6\xc5\x99\x1f" |
| 19627 | "\x09\xe6\x4e\x18\x1a\x15\x13\xa8" |
| 19628 | "\x7d\xb1\x6b\xc0\xb2\x6d\xf8\x26" |
| 19629 | "\x66\xf8\x3d\x18\x74\x70\x66\x7a" |
| 19630 | "\x34\x17\xde\xba\x47\xf1\x06\x18" |
| 19631 | "\xcb\xaf\xeb\x4a\x1e\x8f\xa7\x77" |
| 19632 | "\xe0\x3b\x78\x62\x66\xc9\x10\xea" |
| 19633 | "\x1f\xb7\x29\x0a\x45\xa1\x1d\x1e" |
| 19634 | "\x1d\xe2\x65\x61\x50\x9c\xd7\x05" |
| 19635 | "\xf2\x0b\x5b\x12\x61\x02\xc8\xe5" |
| 19636 | "\x63\x4f\x20\x0c\x07\x17\x33\x5e" |
| 19637 | "\x03\x9a\x53\x0f\x2e\x55\xfe\x50" |
| 19638 | "\x43\x7d\xd0\xb6\x7e\x5a\xda\xae" |
| 19639 | "\x58\xef\x15\xa9\x83\xd9\x46\xb1" |
| 19640 | "\x42\xaa\xf5\x02\x6c\xce\x92\x06" |
| 19641 | "\x1b\xdb\x66\x45\x91\x79\xc2\x2d" |
| 19642 | "\xe6\x53\xd3\x14\xfd\xbb\x44\x63" |
| 19643 | "\xc6\xd7\x3d\x7a\x0c\x75\x78\x9d" |
| 19644 | "\x5c\xa6\x39\xb3\xe5\x63\xca\x8b" |
| 19645 | "\xfe\xd3\xef\x60\x83\xf6\x8e\x70" |
| 19646 | "\xb6\x67\xc7\x77\xed\x23\xef\x4c" |
| 19647 | "\xf0\xed\x2d\x07\x59\x6f\xc1\x01" |
| 19648 | "\x34\x37\x08\xab\xd9\x1f\x09\xb1" |
| 19649 | "\xce\x5b\x17\xff\x74\xf8\x9c\xd5" |
| 19650 | "\x2c\x56\x39\x79\x0f\x69\x44\x75" |
| 19651 | "\x58\x27\x01\xc4\xbf\xa7\xa1\x1d" |
| 19652 | "\x90\x17\x77\x86\x5a\x3f\xd9\xd1" |
| 19653 | "\x0e\xa0\x10\xf8\xec\x1e\xa5\x7f" |
| 19654 | "\x5e\x36\xd1\xe3\x04\x2c\x70\xf7" |
| 19655 | "\x8e\xc0\x98\x2f\x6c\x94\x2b\x41" |
| 19656 | "\xb7\x60\x00\xb7\x2e\xb8\x02\x8d" |
| 19657 | "\xb8\xb0\xd3\x86\xba\x1d\xd7\x90" |
| 19658 | "\xd6\xb6\xe1\xfc\xd7\xd8\x28\x06" |
| 19659 | "\x63\x9b\xce\x61\x24\x79\xc0\x70" |
| 19660 | "\x52\xd0\xb6\xd4\x28\x95\x24\x87" |
| 19661 | "\x03\x1f\xb7\x9a\xda\xa3\xfb\x52" |
| 19662 | "\x5b\x68\xe7\x4c\x8c\x24\xe1\x42" |
| 19663 | "\xf7\xd5\xfd\xad\x06\x32\x9f\xba" |
| 19664 | "\xc1\xfc\xdd\xc6\xfc\xfc\xb3\x38" |
| 19665 | "\x74\x56\x58\x40\x02\x37\x52\x2c" |
| 19666 | "\x55\xcc\xb3\x9e\x7a\xe9\xd4\x38" |
| 19667 | "\x41\x5e\x0c\x35\xe2\x11\xd1\x13" |
| 19668 | "\xf8\xb7\x8d\x72\x6b\x22\x2a\xb0" |
| 19669 | "\xdb\x08\xba\x35\xb9\x3f\xc8\xd3" |
| 19670 | "\x24\x90\xec\x58\xd2\x09\xc7\x2d" |
| 19671 | "\xed\x38\x80\x36\x72\x43\x27\x49" |
| 19672 | "\x4a\x80\x8a\xa2\xe8\xd3\xda\x30" |
| 19673 | "\x7d\xb6\x82\x37\x86\x92\x86\x3e" |
| 19674 | "\x08\xb2\x28\x5a\x55\x44\x24\x7d" |
| 19675 | "\x40\x48\x8a\xb6\x89\x58\x08\xa0" |
| 19676 | "\xd6\x6d\x3a\x17\xbf\xf6\x54\xa2" |
| 19677 | "\xf5\xd3\x8c\x0f\x78\x12\x57\x8b" |
| 19678 | "\xd5\xc2\xfd\x58\x5b\x7f\x38\xe3" |
| 19679 | "\xcc\xb7\x7c\x48\xb3\x20\xe8\x81" |
| 19680 | "\x14\x32\x45\x05\xe0\xdb\x9f\x75" |
| 19681 | "\x85\xb4\x6a\xfc\x95\xe3\x54\x22" |
| 19682 | "\x12\xee\x30\xfe\xd8\x30\xef\x34" |
| 19683 | "\x50\xab\x46\x30\x98\x2f\xb7\xc0" |
| 19684 | "\x15\xa2\x83\xb6\xf2\x06\x21\xa2" |
| 19685 | "\xc3\x26\x37\x14\xd1\x4d\xb5\x10" |
| 19686 | "\x52\x76\x4d\x6a\xee\xb5\x2b\x15" |
| 19687 | "\xb7\xf9\x51\xe8\x2a\xaf\xc7\xfa" |
| 19688 | "\x77\xaf\xb0\x05\x4d\xd1\x68\x8e" |
| 19689 | "\x74\x05\x9f\x9d\x93\xa5\x3e\x7f" |
| 19690 | "\x4e\x5f\x9d\xcb\x09\xc7\x83\xe3" |
| 19691 | "\x02\x9d\x27\x1f\xef\x85\x05\x8d" |
| 19692 | "\xec\x55\x88\x0f\x0d\x7c\x4c\xe8" |
| 19693 | "\xa1\x75\xa0\xd8\x06\x47\x14\xef" |
| 19694 | "\xaa\x61\xcf\x26\x15\xad\xd8\xa3" |
| 19695 | "\xaa\x75\xf2\x78\x4a\x5a\x61\xdf" |
| 19696 | "\x8b\xc7\x04\xbc\xb2\x32\xd2\x7e" |
| 19697 | "\x42\xee\xb4\x2f\x51\xff\x7b\x2e" |
| 19698 | "\xd3\x02\xe8\xdc\x5d\x0d\x50\xdc" |
| 19699 | "\xae\xb7\x46\xf9\xa8\xe6\xd0\x16" |
| 19700 | "\xcc\xe6\x2c\x81\xc7\xad\xe9\xf0" |
| 19701 | "\x05\x72\x6d\x3d\x0a\x7a\xa9\x02" |
| 19702 | "\xac\x82\x93\x6e\xb6\x1c\x28\xfc" |
| 19703 | "\x44\x12\xfb\x73\x77\xd4\x13\x39" |
| 19704 | "\x29\x88\x8a\xf3\x5c\xa6\x36\xa0" |
| 19705 | "\x2a\xed\x7e\xb1\x1d\xd6\x4c\x6b" |
| 19706 | "\x41\x01\x18\x5d\x5d\x07\x97\xa6" |
| 19707 | "\x4b\xef\x31\x18\xea\xac\xb1\x84" |
| 19708 | "\x21\xed\xda\x86", |
| 19709 | .rlen = 4100, |
| 19710 | .np = 2, |
| 19711 | .tap = { 4064, 36 }, |
| 19712 | }, |
| 19713 | }; |
| 19714 | |
Jarod Wilson | f7cb80f | 2009-05-06 17:29:17 +0800 | [diff] [blame] | 19715 | static struct cipher_testvec aes_ctr_rfc3686_dec_tv_template[] = { |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 19716 | { /* From RFC 3686 */ |
| 19717 | .key = "\xae\x68\x52\xf8\x12\x10\x67\xcc" |
| 19718 | "\x4b\xf7\xa5\x76\x55\x77\xf3\x9e" |
| 19719 | "\x00\x00\x00\x30", |
| 19720 | .klen = 20, |
| 19721 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 19722 | .input = "\xe4\x09\x5d\x4f\xb7\xa7\xb3\x79" |
| 19723 | "\x2d\x61\x75\xa3\x26\x13\x11\xb8", |
| 19724 | .ilen = 16, |
| 19725 | .result = "Single block msg", |
| 19726 | .rlen = 16, |
| 19727 | }, { |
| 19728 | .key = "\x7e\x24\x06\x78\x17\xfa\xe0\xd7" |
| 19729 | "\x43\xd6\xce\x1f\x32\x53\x91\x63" |
| 19730 | "\x00\x6c\xb6\xdb", |
| 19731 | .klen = 20, |
| 19732 | .iv = "\xc0\x54\x3b\x59\xda\x48\xd9\x0b", |
| 19733 | .input = "\x51\x04\xa1\x06\x16\x8a\x72\xd9" |
| 19734 | "\x79\x0d\x41\xee\x8e\xda\xd3\x88" |
| 19735 | "\xeb\x2e\x1e\xfc\x46\xda\x57\xc8" |
| 19736 | "\xfc\xe6\x30\xdf\x91\x41\xbe\x28", |
| 19737 | .ilen = 32, |
| 19738 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19739 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19740 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19741 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 19742 | .rlen = 32, |
| 19743 | }, { |
| 19744 | .key = "\x16\xaf\x5b\x14\x5f\xc9\xf5\x79" |
| 19745 | "\xc1\x75\xf9\x3e\x3b\xfb\x0e\xed" |
| 19746 | "\x86\x3d\x06\xcc\xfd\xb7\x85\x15" |
| 19747 | "\x00\x00\x00\x48", |
| 19748 | .klen = 28, |
| 19749 | .iv = "\x36\x73\x3c\x14\x7d\x6d\x93\xcb", |
| 19750 | .input = "\x4b\x55\x38\x4f\xe2\x59\xc9\xc8" |
| 19751 | "\x4e\x79\x35\xa0\x03\xcb\xe9\x28", |
| 19752 | .ilen = 16, |
| 19753 | .result = "Single block msg", |
| 19754 | .rlen = 16, |
| 19755 | }, { |
| 19756 | .key = "\x7c\x5c\xb2\x40\x1b\x3d\xc3\x3c" |
| 19757 | "\x19\xe7\x34\x08\x19\xe0\xf6\x9c" |
| 19758 | "\x67\x8c\x3d\xb8\xe6\xf6\xa9\x1a" |
| 19759 | "\x00\x96\xb0\x3b", |
| 19760 | .klen = 28, |
| 19761 | .iv = "\x02\x0c\x6e\xad\xc2\xcb\x50\x0d", |
| 19762 | .input = "\x45\x32\x43\xfc\x60\x9b\x23\x32" |
| 19763 | "\x7e\xdf\xaa\xfa\x71\x31\xcd\x9f" |
| 19764 | "\x84\x90\x70\x1c\x5a\xd4\xa7\x9c" |
| 19765 | "\xfc\x1f\xe0\xff\x42\xf4\xfb\x00", |
| 19766 | .ilen = 32, |
| 19767 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19768 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19769 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19770 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 19771 | .rlen = 32, |
| 19772 | }, { |
| 19773 | .key = "\x77\x6b\xef\xf2\x85\x1d\xb0\x6f" |
| 19774 | "\x4c\x8a\x05\x42\xc8\x69\x6f\x6c" |
| 19775 | "\x6a\x81\xaf\x1e\xec\x96\xb4\xd3" |
| 19776 | "\x7f\xc1\xd6\x89\xe6\xc1\xc1\x04" |
| 19777 | "\x00\x00\x00\x60", |
| 19778 | .klen = 36, |
| 19779 | .iv = "\xdb\x56\x72\xc9\x7a\xa8\xf0\xb2", |
| 19780 | .input = "\x14\x5a\xd0\x1d\xbf\x82\x4e\xc7" |
| 19781 | "\x56\x08\x63\xdc\x71\xe3\xe0\xc0", |
| 19782 | .ilen = 16, |
| 19783 | .result = "Single block msg", |
| 19784 | .rlen = 16, |
| 19785 | }, { |
| 19786 | .key = "\xf6\xd6\x6d\x6b\xd5\x2d\x59\xbb" |
| 19787 | "\x07\x96\x36\x58\x79\xef\xf8\x86" |
| 19788 | "\xc6\x6d\xd5\x1a\x5b\x6a\x99\x74" |
| 19789 | "\x4b\x50\x59\x0c\x87\xa2\x38\x84" |
| 19790 | "\x00\xfa\xac\x24", |
| 19791 | .klen = 36, |
| 19792 | .iv = "\xc1\x58\x5e\xf1\x5a\x43\xd8\x75", |
| 19793 | .input = "\xf0\x5e\x23\x1b\x38\x94\x61\x2c" |
| 19794 | "\x49\xee\x00\x0b\x80\x4e\xb2\xa9" |
| 19795 | "\xb8\x30\x6b\x50\x8f\x83\x9d\x6a" |
| 19796 | "\x55\x30\x83\x1d\x93\x44\xaf\x1c", |
| 19797 | .ilen = 32, |
| 19798 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 19799 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 19800 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 19801 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 19802 | .rlen = 32, |
| 19803 | }, |
| 19804 | }; |
| 19805 | |
Puneet Saxena | ba0e14a | 2011-05-04 15:04:10 +1000 | [diff] [blame] | 19806 | static struct cipher_testvec aes_ofb_enc_tv_template[] = { |
| 19807 | /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 19808 | { |
| 19809 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 19810 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 19811 | .klen = 16, |
| 19812 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" |
| 19813 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 19814 | .input = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 19815 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 19816 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 19817 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 19818 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 19819 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 19820 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 19821 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 19822 | .ilen = 64, |
| 19823 | .result = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" |
| 19824 | "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" |
| 19825 | "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" |
| 19826 | "\x3c\x52\xda\xc5\x4e\xd8\x25" |
| 19827 | "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" |
| 19828 | "\x44\xf7\xa8\x22\x60\xed\xcc" |
| 19829 | "\x30\x4c\x65\x28\xf6\x59\xc7\x78" |
| 19830 | "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", |
| 19831 | .rlen = 64, |
| 19832 | } |
| 19833 | }; |
| 19834 | |
| 19835 | static struct cipher_testvec aes_ofb_dec_tv_template[] = { |
| 19836 | /* From NIST Special Publication 800-38A, Appendix F.5 */ |
| 19837 | { |
| 19838 | .key = "\x2b\x7e\x15\x16\x28\xae\xd2\xa6" |
| 19839 | "\xab\xf7\x15\x88\x09\xcf\x4f\x3c", |
| 19840 | .klen = 16, |
| 19841 | .iv = "\x00\x01\x02\x03\x04\x05\x06\x07\x08" |
| 19842 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 19843 | .input = "\x3b\x3f\xd9\x2e\xb7\x2d\xad\x20" |
| 19844 | "\x33\x34\x49\xf8\xe8\x3c\xfb\x4a" |
| 19845 | "\x77\x89\x50\x8d\x16\x91\x8f\x03\xf5" |
| 19846 | "\x3c\x52\xda\xc5\x4e\xd8\x25" |
| 19847 | "\x97\x40\x05\x1e\x9c\x5f\xec\xf6\x43" |
| 19848 | "\x44\xf7\xa8\x22\x60\xed\xcc" |
| 19849 | "\x30\x4c\x65\x28\xf6\x59\xc7\x78" |
| 19850 | "\x66\xa5\x10\xd9\xc1\xd6\xae\x5e", |
| 19851 | .ilen = 64, |
| 19852 | .result = "\x6b\xc1\xbe\xe2\x2e\x40\x9f\x96" |
| 19853 | "\xe9\x3d\x7e\x11\x73\x93\x17\x2a" |
| 19854 | "\xae\x2d\x8a\x57\x1e\x03\xac\x9c" |
| 19855 | "\x9e\xb7\x6f\xac\x45\xaf\x8e\x51" |
| 19856 | "\x30\xc8\x1c\x46\xa3\x5c\xe4\x11" |
| 19857 | "\xe5\xfb\xc1\x19\x1a\x0a\x52\xef" |
| 19858 | "\xf6\x9f\x24\x45\xdf\x4f\x9b\x17" |
| 19859 | "\xad\x2b\x41\x7b\xe6\x6c\x37\x10", |
| 19860 | .rlen = 64, |
| 19861 | } |
| 19862 | }; |
| 19863 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 19864 | static struct aead_testvec aes_gcm_enc_tv_template[] = { |
| 19865 | { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ |
| 19866 | .key = zeroed_string, |
| 19867 | .klen = 16, |
| 19868 | .result = "\x58\xe2\xfc\xce\xfa\x7e\x30\x61" |
| 19869 | "\x36\x7f\x1d\x57\xa4\xe7\x45\x5a", |
| 19870 | .rlen = 16, |
| 19871 | }, { |
| 19872 | .key = zeroed_string, |
| 19873 | .klen = 16, |
| 19874 | .input = zeroed_string, |
| 19875 | .ilen = 16, |
| 19876 | .result = "\x03\x88\xda\xce\x60\xb6\xa3\x92" |
| 19877 | "\xf3\x28\xc2\xb9\x71\xb2\xfe\x78" |
| 19878 | "\xab\x6e\x47\xd4\x2c\xec\x13\xbd" |
| 19879 | "\xf5\x3a\x67\xb2\x12\x57\xbd\xdf", |
| 19880 | .rlen = 32, |
| 19881 | }, { |
| 19882 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19883 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 19884 | .klen = 16, |
| 19885 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 19886 | "\xde\xca\xf8\x88", |
| 19887 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 19888 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 19889 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 19890 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 19891 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 19892 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 19893 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 19894 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 19895 | .ilen = 64, |
| 19896 | .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 19897 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 19898 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 19899 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 19900 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 19901 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 19902 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 19903 | "\x3d\x58\xe0\x91\x47\x3f\x59\x85" |
| 19904 | "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" |
| 19905 | "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", |
| 19906 | .rlen = 80, |
| 19907 | }, { |
| 19908 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19909 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 19910 | .klen = 16, |
| 19911 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 19912 | "\xde\xca\xf8\x88", |
| 19913 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 19914 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 19915 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 19916 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 19917 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 19918 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 19919 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 19920 | "\xba\x63\x7b\x39", |
| 19921 | .ilen = 60, |
| 19922 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 19923 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 19924 | "\xab\xad\xda\xd2", |
| 19925 | .alen = 20, |
| 19926 | .result = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 19927 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 19928 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 19929 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 19930 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 19931 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 19932 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 19933 | "\x3d\x58\xe0\x91" |
| 19934 | "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" |
| 19935 | "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", |
| 19936 | .rlen = 76, |
| 19937 | }, { |
| 19938 | .key = zeroed_string, |
| 19939 | .klen = 24, |
| 19940 | .result = "\xcd\x33\xb2\x8a\xc7\x73\xf7\x4b" |
| 19941 | "\xa0\x0e\xd1\xf3\x12\x57\x24\x35", |
| 19942 | .rlen = 16, |
| 19943 | }, { |
| 19944 | .key = zeroed_string, |
| 19945 | .klen = 24, |
| 19946 | .input = zeroed_string, |
| 19947 | .ilen = 16, |
| 19948 | .result = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" |
| 19949 | "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" |
| 19950 | "\x2f\xf5\x8d\x80\x03\x39\x27\xab" |
| 19951 | "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", |
| 19952 | .rlen = 32, |
| 19953 | }, { |
| 19954 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19955 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 19956 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 19957 | .klen = 24, |
| 19958 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 19959 | "\xde\xca\xf8\x88", |
| 19960 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 19961 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 19962 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 19963 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 19964 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 19965 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 19966 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 19967 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 19968 | .ilen = 64, |
| 19969 | .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 19970 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 19971 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 19972 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 19973 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 19974 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 19975 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 19976 | "\xcc\xda\x27\x10\xac\xad\xe2\x56" |
| 19977 | "\x99\x24\xa7\xc8\x58\x73\x36\xbf" |
| 19978 | "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", |
| 19979 | .rlen = 80, |
| 19980 | }, { |
| 19981 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 19982 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 19983 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 19984 | .klen = 24, |
| 19985 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 19986 | "\xde\xca\xf8\x88", |
| 19987 | .input = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 19988 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 19989 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 19990 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 19991 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 19992 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 19993 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 19994 | "\xba\x63\x7b\x39", |
| 19995 | .ilen = 60, |
| 19996 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 19997 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 19998 | "\xab\xad\xda\xd2", |
| 19999 | .alen = 20, |
| 20000 | .result = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 20001 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 20002 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 20003 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 20004 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 20005 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 20006 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 20007 | "\xcc\xda\x27\x10" |
| 20008 | "\x25\x19\x49\x8e\x80\xf1\x47\x8f" |
| 20009 | "\x37\xba\x55\xbd\x6d\x27\x61\x8c", |
| 20010 | .rlen = 76, |
| 20011 | .np = 2, |
| 20012 | .tap = { 32, 28 }, |
| 20013 | .anp = 2, |
| 20014 | .atap = { 8, 12 } |
| 20015 | }, { |
| 20016 | .key = zeroed_string, |
| 20017 | .klen = 32, |
| 20018 | .result = "\x53\x0f\x8a\xfb\xc7\x45\x36\xb9" |
| 20019 | "\xa9\x63\xb4\xf1\xc4\xcb\x73\x8b", |
| 20020 | .rlen = 16, |
| 20021 | } |
| 20022 | }; |
| 20023 | |
| 20024 | static struct aead_testvec aes_gcm_dec_tv_template[] = { |
| 20025 | { /* From McGrew & Viega - http://citeseer.ist.psu.edu/656989.html */ |
| 20026 | .key = zeroed_string, |
| 20027 | .klen = 32, |
| 20028 | .input = "\xce\xa7\x40\x3d\x4d\x60\x6b\x6e" |
| 20029 | "\x07\x4e\xc5\xd3\xba\xf3\x9d\x18" |
| 20030 | "\xd0\xd1\xc8\xa7\x99\x99\x6b\xf0" |
| 20031 | "\x26\x5b\x98\xb5\xd4\x8a\xb9\x19", |
| 20032 | .ilen = 32, |
| 20033 | .result = zeroed_string, |
| 20034 | .rlen = 16, |
| 20035 | }, { |
| 20036 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20037 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 20038 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20039 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 20040 | .klen = 32, |
| 20041 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 20042 | "\xde\xca\xf8\x88", |
| 20043 | .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" |
| 20044 | "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" |
| 20045 | "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" |
| 20046 | "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" |
| 20047 | "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" |
| 20048 | "\xa7\xb0\x8b\x10\x56\x82\x88\x38" |
| 20049 | "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" |
| 20050 | "\xbc\xc9\xf6\x62\x89\x80\x15\xad" |
| 20051 | "\xb0\x94\xda\xc5\xd9\x34\x71\xbd" |
| 20052 | "\xec\x1a\x50\x22\x70\xe3\xcc\x6c", |
| 20053 | .ilen = 80, |
| 20054 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 20055 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 20056 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 20057 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 20058 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 20059 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 20060 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 20061 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 20062 | .rlen = 64, |
| 20063 | }, { |
| 20064 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20065 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 20066 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20067 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 20068 | .klen = 32, |
| 20069 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 20070 | "\xde\xca\xf8\x88", |
| 20071 | .input = "\x52\x2d\xc1\xf0\x99\x56\x7d\x07" |
| 20072 | "\xf4\x7f\x37\xa3\x2a\x84\x42\x7d" |
| 20073 | "\x64\x3a\x8c\xdc\xbf\xe5\xc0\xc9" |
| 20074 | "\x75\x98\xa2\xbd\x25\x55\xd1\xaa" |
| 20075 | "\x8c\xb0\x8e\x48\x59\x0d\xbb\x3d" |
| 20076 | "\xa7\xb0\x8b\x10\x56\x82\x88\x38" |
| 20077 | "\xc5\xf6\x1e\x63\x93\xba\x7a\x0a" |
| 20078 | "\xbc\xc9\xf6\x62" |
| 20079 | "\x76\xfc\x6e\xce\x0f\x4e\x17\x68" |
| 20080 | "\xcd\xdf\x88\x53\xbb\x2d\x55\x1b", |
| 20081 | .ilen = 76, |
| 20082 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 20083 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 20084 | "\xab\xad\xda\xd2", |
| 20085 | .alen = 20, |
| 20086 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 20087 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 20088 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 20089 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 20090 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 20091 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 20092 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 20093 | "\xba\x63\x7b\x39", |
| 20094 | .rlen = 60, |
| 20095 | .np = 2, |
| 20096 | .tap = { 48, 28 }, |
| 20097 | .anp = 3, |
| 20098 | .atap = { 8, 8, 4 } |
| 20099 | }, { |
| 20100 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20101 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 20102 | .klen = 16, |
| 20103 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 20104 | "\xde\xca\xf8\x88", |
| 20105 | .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 20106 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 20107 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 20108 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 20109 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 20110 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 20111 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 20112 | "\x3d\x58\xe0\x91\x47\x3f\x59\x85" |
| 20113 | "\x4d\x5c\x2a\xf3\x27\xcd\x64\xa6" |
| 20114 | "\x2c\xf3\x5a\xbd\x2b\xa6\xfa\xb4", |
| 20115 | .ilen = 80, |
| 20116 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 20117 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 20118 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 20119 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 20120 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 20121 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 20122 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 20123 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 20124 | .rlen = 64, |
| 20125 | }, { |
| 20126 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20127 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08", |
| 20128 | .klen = 16, |
| 20129 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 20130 | "\xde\xca\xf8\x88", |
| 20131 | .input = "\x42\x83\x1e\xc2\x21\x77\x74\x24" |
| 20132 | "\x4b\x72\x21\xb7\x84\xd0\xd4\x9c" |
| 20133 | "\xe3\xaa\x21\x2f\x2c\x02\xa4\xe0" |
| 20134 | "\x35\xc1\x7e\x23\x29\xac\xa1\x2e" |
| 20135 | "\x21\xd5\x14\xb2\x54\x66\x93\x1c" |
| 20136 | "\x7d\x8f\x6a\x5a\xac\x84\xaa\x05" |
| 20137 | "\x1b\xa3\x0b\x39\x6a\x0a\xac\x97" |
| 20138 | "\x3d\x58\xe0\x91" |
| 20139 | "\x5b\xc9\x4f\xbc\x32\x21\xa5\xdb" |
| 20140 | "\x94\xfa\xe9\x5a\xe7\x12\x1a\x47", |
| 20141 | .ilen = 76, |
| 20142 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 20143 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 20144 | "\xab\xad\xda\xd2", |
| 20145 | .alen = 20, |
| 20146 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 20147 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 20148 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 20149 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 20150 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 20151 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 20152 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 20153 | "\xba\x63\x7b\x39", |
| 20154 | .rlen = 60, |
| 20155 | }, { |
| 20156 | .key = zeroed_string, |
| 20157 | .klen = 24, |
| 20158 | .input = "\x98\xe7\x24\x7c\x07\xf0\xfe\x41" |
| 20159 | "\x1c\x26\x7e\x43\x84\xb0\xf6\x00" |
| 20160 | "\x2f\xf5\x8d\x80\x03\x39\x27\xab" |
| 20161 | "\x8e\xf4\xd4\x58\x75\x14\xf0\xfb", |
| 20162 | .ilen = 32, |
| 20163 | .result = zeroed_string, |
| 20164 | .rlen = 16, |
| 20165 | }, { |
| 20166 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20167 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 20168 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 20169 | .klen = 24, |
| 20170 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 20171 | "\xde\xca\xf8\x88", |
| 20172 | .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 20173 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 20174 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 20175 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 20176 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 20177 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 20178 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 20179 | "\xcc\xda\x27\x10\xac\xad\xe2\x56" |
| 20180 | "\x99\x24\xa7\xc8\x58\x73\x36\xbf" |
| 20181 | "\xb1\x18\x02\x4d\xb8\x67\x4a\x14", |
| 20182 | .ilen = 80, |
| 20183 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 20184 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 20185 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 20186 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 20187 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 20188 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 20189 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 20190 | "\xba\x63\x7b\x39\x1a\xaf\xd2\x55", |
| 20191 | .rlen = 64, |
| 20192 | }, { |
| 20193 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20194 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 20195 | "\xfe\xff\xe9\x92\x86\x65\x73\x1c", |
| 20196 | .klen = 24, |
| 20197 | .iv = "\xca\xfe\xba\xbe\xfa\xce\xdb\xad" |
| 20198 | "\xde\xca\xf8\x88", |
| 20199 | .input = "\x39\x80\xca\x0b\x3c\x00\xe8\x41" |
| 20200 | "\xeb\x06\xfa\xc4\x87\x2a\x27\x57" |
| 20201 | "\x85\x9e\x1c\xea\xa6\xef\xd9\x84" |
| 20202 | "\x62\x85\x93\xb4\x0c\xa1\xe1\x9c" |
| 20203 | "\x7d\x77\x3d\x00\xc1\x44\xc5\x25" |
| 20204 | "\xac\x61\x9d\x18\xc8\x4a\x3f\x47" |
| 20205 | "\x18\xe2\x44\x8b\x2f\xe3\x24\xd9" |
| 20206 | "\xcc\xda\x27\x10" |
| 20207 | "\x25\x19\x49\x8e\x80\xf1\x47\x8f" |
| 20208 | "\x37\xba\x55\xbd\x6d\x27\x61\x8c", |
| 20209 | .ilen = 76, |
| 20210 | .assoc = "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 20211 | "\xfe\xed\xfa\xce\xde\xad\xbe\xef" |
| 20212 | "\xab\xad\xda\xd2", |
| 20213 | .alen = 20, |
| 20214 | .result = "\xd9\x31\x32\x25\xf8\x84\x06\xe5" |
| 20215 | "\xa5\x59\x09\xc5\xaf\xf5\x26\x9a" |
| 20216 | "\x86\xa7\xa9\x53\x15\x34\xf7\xda" |
| 20217 | "\x2e\x4c\x30\x3d\x8a\x31\x8a\x72" |
| 20218 | "\x1c\x3c\x0c\x95\x95\x68\x09\x53" |
| 20219 | "\x2f\xcf\x0e\x24\x49\xa6\xb5\x25" |
| 20220 | "\xb1\x6a\xed\xf5\xaa\x0d\xe6\x57" |
| 20221 | "\xba\x63\x7b\x39", |
| 20222 | .rlen = 60, |
| 20223 | } |
| 20224 | }; |
| 20225 | |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20226 | static struct aead_testvec aes_gcm_rfc4106_enc_tv_template[] = { |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20227 | { /* Generated using Crypto++ */ |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20228 | .key = zeroed_string, |
| 20229 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20230 | .iv = zeroed_string, |
| 20231 | .input = zeroed_string, |
| 20232 | .ilen = 16, |
| 20233 | .assoc = zeroed_string, |
| 20234 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20235 | .result = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20236 | "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" |
| 20237 | "\x97\xFE\x4C\x23\x37\x42\x01\xE0" |
| 20238 | "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20239 | .rlen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20240 | },{ |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20241 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20242 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20243 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20244 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20245 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 20246 | .input = zeroed_string, |
| 20247 | .ilen = 16, |
| 20248 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20249 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 20250 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20251 | .result = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20252 | "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" |
| 20253 | "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" |
| 20254 | "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20255 | .rlen = 32, |
| 20256 | |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20257 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20258 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20259 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20260 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20261 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20262 | .iv = zeroed_string, |
| 20263 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20264 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 20265 | .ilen = 16, |
| 20266 | .assoc = zeroed_string, |
| 20267 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20268 | .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20269 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 20270 | "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" |
| 20271 | "\xB1\x68\xFD\x14\x52\x64\x61\xB2", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20272 | .rlen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20273 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20274 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20275 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20276 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20277 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20278 | .iv = zeroed_string, |
| 20279 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20280 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 20281 | .ilen = 16, |
| 20282 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20283 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20284 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20285 | .result = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20286 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 20287 | "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" |
| 20288 | "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20289 | .rlen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20290 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20291 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20292 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20293 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20294 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20295 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 20296 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20297 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 20298 | .ilen = 16, |
| 20299 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20300 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 20301 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20302 | .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20303 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 20304 | "\x64\x50\xF9\x32\x13\xFB\x74\x61" |
| 20305 | "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20306 | .rlen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20307 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20308 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20309 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20310 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20311 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20312 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 20313 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20314 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20315 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20316 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20317 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20318 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20319 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20320 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 20321 | .ilen = 64, |
| 20322 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20323 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 20324 | .alen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20325 | .result = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20326 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 20327 | "\x98\x14\xA1\x42\x37\x80\xFD\x90" |
| 20328 | "\x68\x12\x01\xA8\x91\x89\xB9\x83" |
| 20329 | "\x5B\x11\x77\x12\x9B\xFF\x24\x89" |
| 20330 | "\x94\x5F\x18\x12\xBA\x27\x09\x39" |
| 20331 | "\x99\x96\x76\x42\x15\x1C\xCD\xCB" |
| 20332 | "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" |
| 20333 | "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" |
| 20334 | "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20335 | .rlen = 80, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20336 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20337 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 20338 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20339 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20340 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20341 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef", |
| 20342 | .input = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20343 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20344 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20345 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20346 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20347 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20348 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20349 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20350 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20351 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20352 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20353 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20354 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20355 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20356 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20357 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20358 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20359 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20360 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20361 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20362 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20363 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20364 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20365 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 20366 | .ilen = 192, |
| 20367 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 20368 | "\xaa\xaa\xaa\xaa\x00\x00\x45\x67" |
| 20369 | "\x89\xab\xcd\xef", |
| 20370 | .alen = 20, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20371 | .result = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" |
| 20372 | "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" |
| 20373 | "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" |
| 20374 | "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" |
| 20375 | "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" |
| 20376 | "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" |
| 20377 | "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" |
| 20378 | "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" |
| 20379 | "\xCF\x07\x57\x41\x67\xD0\xC4\x42" |
| 20380 | "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" |
| 20381 | "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" |
| 20382 | "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" |
| 20383 | "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" |
| 20384 | "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" |
| 20385 | "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" |
| 20386 | "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" |
| 20387 | "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" |
| 20388 | "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" |
| 20389 | "\x7E\x13\x06\x82\x08\x17\xA4\x35" |
| 20390 | "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" |
| 20391 | "\xA3\x05\x38\x95\x20\x1A\x47\x04" |
| 20392 | "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" |
| 20393 | "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" |
| 20394 | "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" |
| 20395 | "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" |
| 20396 | "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", |
| 20397 | .rlen = 208, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20398 | }, { /* From draft-mcgrew-gcm-test-01 */ |
| 20399 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 20400 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 20401 | "\x2E\x44\x3B\x68", |
| 20402 | .klen = 20, |
| 20403 | .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE", |
| 20404 | .input = "\x45\x00\x00\x48\x69\x9A\x00\x00" |
| 20405 | "\x80\x11\x4D\xB7\xC0\xA8\x01\x02" |
| 20406 | "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56" |
| 20407 | "\x38\xD3\x01\x00\x00\x01\x00\x00" |
| 20408 | "\x00\x00\x00\x00\x04\x5F\x73\x69" |
| 20409 | "\x70\x04\x5F\x75\x64\x70\x03\x73" |
| 20410 | "\x69\x70\x09\x63\x79\x62\x65\x72" |
| 20411 | "\x63\x69\x74\x79\x02\x64\x6B\x00" |
| 20412 | "\x00\x21\x00\x01\x01\x02\x02\x01", |
| 20413 | .ilen = 72, |
| 20414 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20415 | "\x00\x00\x00\x00\x49\x56\xED\x7E" |
| 20416 | "\x3B\x24\x4C\xFE", |
| 20417 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20418 | .result = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07" |
| 20419 | "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76" |
| 20420 | "\x8D\x1B\x98\x73\x66\x96\xA6\xFD" |
| 20421 | "\x34\x85\x09\xFA\x13\xCE\xAC\x34" |
| 20422 | "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF" |
| 20423 | "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D" |
| 20424 | "\x15\xB2\x1E\x18\x84\xF5\xFF\x62" |
| 20425 | "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE" |
| 20426 | "\x61\xBC\x17\xD7\x68\xFD\x97\x32" |
| 20427 | "\x45\x90\x18\x14\x8F\x6C\xBE\x72" |
| 20428 | "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4", |
| 20429 | .rlen = 88, |
| 20430 | }, { |
| 20431 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 20432 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 20433 | "\xCA\xFE\xBA\xBE", |
| 20434 | .klen = 20, |
| 20435 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 20436 | .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00" |
| 20437 | "\x80\x11\x4D\xCC\xC0\xA8\x01\x02" |
| 20438 | "\xC0\xA8\x01\x01\x0A\x98\x00\x35" |
| 20439 | "\x00\x2A\x23\x43\xB2\xD0\x01\x00" |
| 20440 | "\x00\x01\x00\x00\x00\x00\x00\x00" |
| 20441 | "\x03\x73\x69\x70\x09\x63\x79\x62" |
| 20442 | "\x65\x72\x63\x69\x74\x79\x02\x64" |
| 20443 | "\x6B\x00\x00\x01\x00\x01\x00\x01", |
| 20444 | .ilen = 64, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20445 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 20446 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 20447 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20448 | .result = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1" |
| 20449 | "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04" |
| 20450 | "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F" |
| 20451 | "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C" |
| 20452 | "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F" |
| 20453 | "\x51\x33\x0D\x0E\xEC\x41\x66\x42" |
| 20454 | "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4" |
| 20455 | "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1" |
| 20456 | "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4" |
| 20457 | "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A", |
| 20458 | .rlen = 80, |
| 20459 | }, { |
| 20460 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 20461 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 20462 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 20463 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 20464 | "\x11\x22\x33\x44", |
| 20465 | .klen = 36, |
| 20466 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 20467 | .input = "\x45\x00\x00\x30\x69\xA6\x40\x00" |
| 20468 | "\x80\x06\x26\x90\xC0\xA8\x01\x02" |
| 20469 | "\x93\x89\x15\x5E\x0A\x9E\x00\x8B" |
| 20470 | "\x2D\xC5\x7E\xE0\x00\x00\x00\x00" |
| 20471 | "\x70\x02\x40\x00\x20\xBF\x00\x00" |
| 20472 | "\x02\x04\x05\xB4\x01\x01\x04\x02" |
| 20473 | "\x01\x02\x02\x01", |
| 20474 | .ilen = 52, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20475 | .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02" |
| 20476 | "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 20477 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20478 | .result = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF" |
| 20479 | "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D" |
| 20480 | "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF" |
| 20481 | "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63" |
| 20482 | "\x74\x8A\x63\x79\x85\x77\x1D\x34" |
| 20483 | "\x7F\x05\x45\x65\x9F\x14\xE9\x9D" |
| 20484 | "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE" |
| 20485 | "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49" |
| 20486 | "\x15\x95\x6C\x96", |
| 20487 | .rlen = 68, |
| 20488 | }, { |
| 20489 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20490 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20491 | "\x00\x00\x00\x00", |
| 20492 | .klen = 20, |
| 20493 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20494 | .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00" |
| 20495 | "\x80\x01\xCB\x7A\x40\x67\x93\x18" |
| 20496 | "\x01\x01\x01\x01\x08\x00\x07\x5C" |
| 20497 | "\x02\x00\x44\x00\x61\x62\x63\x64" |
| 20498 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 20499 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 20500 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 20501 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 20502 | .ilen = 64, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20503 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 20504 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20505 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20506 | .result = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92" |
| 20507 | "\x73\x29\x09\xC3\x31\xD5\x6D\x60" |
| 20508 | "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F" |
| 20509 | "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84" |
| 20510 | "\x45\x64\x76\x49\x27\x19\xFF\xB6" |
| 20511 | "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94" |
| 20512 | "\xBC\x3B\xD5\x78\x73\xED\x4D\x18" |
| 20513 | "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3" |
| 20514 | "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9" |
| 20515 | "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D", |
| 20516 | .rlen = 80, |
| 20517 | }, { |
| 20518 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 20519 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 20520 | "\x57\x69\x0E\x43", |
| 20521 | .klen = 20, |
| 20522 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 20523 | .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00" |
| 20524 | "\x80\x01\xCB\x7C\x40\x67\x93\x18" |
| 20525 | "\x01\x01\x01\x01\x08\x00\x08\x5C" |
| 20526 | "\x02\x00\x43\x00\x61\x62\x63\x64" |
| 20527 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 20528 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 20529 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 20530 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 20531 | .ilen = 64, |
| 20532 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20533 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 20534 | "\xA2\xFC\xA1\xA3", |
| 20535 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20536 | .result = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0" |
| 20537 | "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0" |
| 20538 | "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0" |
| 20539 | "\x0D\x11\x38\xEC\x9C\x35\x79\x17" |
| 20540 | "\x65\xAC\xBD\x87\x01\xAD\x79\x84" |
| 20541 | "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9" |
| 20542 | "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D" |
| 20543 | "\x1F\x5E\x22\x73\x95\x30\x32\x0A" |
| 20544 | "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA" |
| 20545 | "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48", |
| 20546 | .rlen = 80, |
| 20547 | }, { |
| 20548 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 20549 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 20550 | "\x57\x69\x0E\x43", |
| 20551 | .klen = 20, |
| 20552 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 20553 | .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00" |
| 20554 | "\x80\x01\x44\x1F\x40\x67\x93\xB6" |
| 20555 | "\xE0\x00\x00\x02\x0A\x00\xF5\xFF" |
| 20556 | "\x01\x02\x02\x01", |
| 20557 | .ilen = 28, |
| 20558 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20559 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 20560 | "\xA2\xFC\xA1\xA3", |
| 20561 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20562 | .result = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0" |
| 20563 | "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E" |
| 20564 | "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13" |
| 20565 | "\x0E\x13\x79\xED\x36\x9F\x07\x1F" |
| 20566 | "\x35\xE0\x34\xBE\x95\xF1\x12\xE4" |
| 20567 | "\xE7\xD0\x5D\x35", |
| 20568 | .rlen = 44, |
| 20569 | }, { |
| 20570 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 20571 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 20572 | "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 20573 | "\xCA\xFE\xBA\xBE", |
| 20574 | .klen = 28, |
| 20575 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 20576 | .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00" |
| 20577 | "\x40\x06\x78\x80\x0A\x01\x03\x8F" |
| 20578 | "\x0A\x01\x06\x12\x80\x23\x06\xB8" |
| 20579 | "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E" |
| 20580 | "\x50\x10\x16\xD0\x75\x68\x00\x01", |
| 20581 | .ilen = 40, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20582 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 20583 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 20584 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20585 | .result = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4" |
| 20586 | "\x0E\x59\x8B\x81\x22\xDE\x02\x42" |
| 20587 | "\x09\x38\xB3\xAB\x33\xF8\x28\xE6" |
| 20588 | "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0" |
| 20589 | "\x31\x5B\x27\x45\x21\x44\xCC\x77" |
| 20590 | "\x95\x45\x7B\x96\x52\x03\x7F\x53" |
| 20591 | "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36", |
| 20592 | .rlen = 56, |
| 20593 | }, { |
| 20594 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 20595 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 20596 | "\xDE\xCA\xF8\x88", |
| 20597 | .klen = 20, |
| 20598 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 20599 | .input = "\x45\x00\x00\x49\x33\xBA\x00\x00" |
| 20600 | "\x7F\x11\x91\x06\xC3\xFB\x1D\x10" |
| 20601 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 20602 | "\x00\x35\xDD\x7B\x80\x03\x02\xD5" |
| 20603 | "\x00\x00\x4E\x20\x00\x1E\x8C\x18" |
| 20604 | "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47" |
| 20605 | "\x6B\x91\xB9\x24\xB2\x80\x38\x9D" |
| 20606 | "\x92\xC9\x63\xBA\xC0\x46\xEC\x95" |
| 20607 | "\x9B\x62\x66\xC0\x47\x22\xB1\x49" |
| 20608 | "\x23\x01\x01\x01", |
| 20609 | .ilen = 76, |
| 20610 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20611 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 20612 | "\xCE\xFA\xCE\x74", |
| 20613 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20614 | .result = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A" |
| 20615 | "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14" |
| 20616 | "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1" |
| 20617 | "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F" |
| 20618 | "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19" |
| 20619 | "\x84\xE6\x58\x63\x96\x5D\x74\x72" |
| 20620 | "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19" |
| 20621 | "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22" |
| 20622 | "\x6F\x21\x27\xB2\x7D\xB3\x57\x24" |
| 20623 | "\xE7\x84\x5D\x68\x65\x1F\x57\xE6" |
| 20624 | "\x5F\x35\x4F\x75\xFF\x17\x01\x57" |
| 20625 | "\x69\x62\x34\x36", |
| 20626 | .rlen = 92, |
| 20627 | }, { |
| 20628 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 20629 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 20630 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 20631 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 20632 | "\x73\x61\x6C\x74", |
| 20633 | .klen = 36, |
| 20634 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 20635 | .input = "\x45\x08\x00\x28\x73\x2C\x00\x00" |
| 20636 | "\x40\x06\xE9\xF9\x0A\x01\x06\x12" |
| 20637 | "\x0A\x01\x03\x8F\x06\xB8\x80\x23" |
| 20638 | "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02" |
| 20639 | "\x50\x10\x1F\x64\x6D\x54\x00\x01", |
| 20640 | .ilen = 40, |
| 20641 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20642 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 20643 | "\x69\x76\x65\x63", |
| 20644 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20645 | .result = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B" |
| 20646 | "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D" |
| 20647 | "\x1F\x27\x8F\xDE\x98\xEF\x67\x54" |
| 20648 | "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F" |
| 20649 | "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E" |
| 20650 | "\x45\x16\x26\xC2\x41\x57\x71\xE3" |
| 20651 | "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35", |
| 20652 | .rlen = 56, |
| 20653 | }, { |
| 20654 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 20655 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 20656 | "\x57\x69\x0E\x43", |
| 20657 | .klen = 20, |
| 20658 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 20659 | .input = "\x45\x00\x00\x49\x33\x3E\x00\x00" |
| 20660 | "\x7F\x11\x91\x82\xC3\xFB\x1D\x10" |
| 20661 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 20662 | "\x00\x35\xCB\x45\x80\x03\x02\x5B" |
| 20663 | "\x00\x00\x01\xE0\x00\x1E\x8C\x18" |
| 20664 | "\xD6\x57\x59\xD5\x22\x84\xA0\x35" |
| 20665 | "\x2C\x71\x47\x5C\x88\x80\x39\x1C" |
| 20666 | "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32" |
| 20667 | "\x5A\xE2\x70\xC0\x38\x99\x49\x39" |
| 20668 | "\x15\x01\x01\x01", |
| 20669 | .ilen = 76, |
| 20670 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20671 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 20672 | "\xA2\xFC\xA1\xA3", |
| 20673 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20674 | .result = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0" |
| 20675 | "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8" |
| 20676 | "\x3D\x77\x84\xB6\x07\x32\x3D\x22" |
| 20677 | "\x0F\x24\xB0\xA9\x7D\x54\x18\x28" |
| 20678 | "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0" |
| 20679 | "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88" |
| 20680 | "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74" |
| 20681 | "\x0F\x74\x24\x44\x74\x7B\x5B\x39" |
| 20682 | "\xAB\x53\x31\x63\xAA\xD4\x55\x0E" |
| 20683 | "\xE5\x16\x09\x75\xCD\xB6\x08\xC5" |
| 20684 | "\x76\x91\x89\x60\x97\x63\xB8\xE1" |
| 20685 | "\x8C\xAA\x81\xE2", |
| 20686 | .rlen = 92, |
| 20687 | }, { |
| 20688 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 20689 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 20690 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 20691 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 20692 | "\x73\x61\x6C\x74", |
| 20693 | .klen = 36, |
| 20694 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 20695 | .input = "\x63\x69\x73\x63\x6F\x01\x72\x75" |
| 20696 | "\x6C\x65\x73\x01\x74\x68\x65\x01" |
| 20697 | "\x6E\x65\x74\x77\x65\x01\x64\x65" |
| 20698 | "\x66\x69\x6E\x65\x01\x74\x68\x65" |
| 20699 | "\x74\x65\x63\x68\x6E\x6F\x6C\x6F" |
| 20700 | "\x67\x69\x65\x73\x01\x74\x68\x61" |
| 20701 | "\x74\x77\x69\x6C\x6C\x01\x64\x65" |
| 20702 | "\x66\x69\x6E\x65\x74\x6F\x6D\x6F" |
| 20703 | "\x72\x72\x6F\x77\x01\x02\x02\x01", |
| 20704 | .ilen = 72, |
| 20705 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20706 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 20707 | "\x69\x76\x65\x63", |
| 20708 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20709 | .result = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E" |
| 20710 | "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E" |
| 20711 | "\x7B\x43\xF8\x26\xFB\x56\x83\x12" |
| 20712 | "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18" |
| 20713 | "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0" |
| 20714 | "\x74\x11\x3E\x14\xC6\x41\x02\x4E" |
| 20715 | "\x3E\x67\x73\xD9\x1A\x62\xEE\x42" |
| 20716 | "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0" |
| 20717 | "\x12\xA4\x93\x63\x41\x23\x64\xF8" |
| 20718 | "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B" |
| 20719 | "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76", |
| 20720 | .rlen = 88, |
| 20721 | }, { |
| 20722 | .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" |
| 20723 | "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47" |
| 20724 | "\xD9\x66\x42\x67", |
| 20725 | .klen = 20, |
| 20726 | .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 20727 | .input = "\x01\x02\x02\x01", |
| 20728 | .ilen = 4, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20729 | .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF" |
| 20730 | "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 20731 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20732 | .result = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F" |
| 20733 | "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45" |
| 20734 | "\x04\xBE\xF2\x70", |
| 20735 | .rlen = 20, |
| 20736 | }, { |
| 20737 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 20738 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 20739 | "\xDE\xCA\xF8\x88", |
| 20740 | .klen = 20, |
| 20741 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 20742 | .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72" |
| 20743 | "\x01\x6E\x6F\x74\x01\x74\x6F\x01" |
| 20744 | "\x62\x65\x00\x01", |
| 20745 | .ilen = 20, |
| 20746 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20747 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 20748 | "\xCE\xFA\xCE\x74", |
| 20749 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20750 | .result = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38" |
| 20751 | "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05" |
| 20752 | "\x43\x33\x21\x64\x41\x25\x03\x52" |
| 20753 | "\x43\x03\xED\x3C\x6C\x5F\x28\x38" |
| 20754 | "\x43\xAF\x8C\x3E", |
| 20755 | .rlen = 36, |
| 20756 | }, { |
| 20757 | .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" |
| 20758 | "\x6D\x61\x72\x69\x6A\x75\x61\x6E" |
| 20759 | "\x61\x61\x6E\x64\x64\x6F\x69\x74" |
| 20760 | "\x62\x65\x66\x6F\x72\x65\x69\x61" |
| 20761 | "\x74\x75\x72\x6E", |
| 20762 | .klen = 36, |
| 20763 | .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D", |
| 20764 | .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 20765 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 20766 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 20767 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 20768 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 20769 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 20770 | "\x01\x02\x02\x01", |
| 20771 | .ilen = 52, |
| 20772 | .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20773 | "\xFF\xFF\xFF\xFF\x33\x30\x21\x69" |
| 20774 | "\x67\x65\x74\x6D", |
| 20775 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20776 | .result = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC" |
| 20777 | "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D" |
| 20778 | "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6" |
| 20779 | "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86" |
| 20780 | "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3" |
| 20781 | "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82" |
| 20782 | "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2" |
| 20783 | "\x94\x5F\x66\x93\x68\x66\x1A\x32" |
| 20784 | "\x9F\xB4\xC0\x53", |
| 20785 | .rlen = 68, |
| 20786 | }, { |
| 20787 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 20788 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 20789 | "\x57\x69\x0E\x43", |
| 20790 | .klen = 20, |
| 20791 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 20792 | .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 20793 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 20794 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 20795 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 20796 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 20797 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 20798 | "\x01\x02\x02\x01", |
| 20799 | .ilen = 52, |
| 20800 | .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20801 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 20802 | "\xA2\xFC\xA1\xA3", |
| 20803 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20804 | .result = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0" |
| 20805 | "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD" |
| 20806 | "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21" |
| 20807 | "\x0D\x11\x7C\xEC\x9C\x35\x79\x17" |
| 20808 | "\x65\xAC\xBD\x87\x01\xAD\x79\x84" |
| 20809 | "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9" |
| 20810 | "\x63\x21\x93\x06\x84\xEE\xCA\xDB" |
| 20811 | "\x56\x91\x25\x46\xE7\xA9\x5C\x97" |
| 20812 | "\x40\xD7\xCB\x05", |
| 20813 | .rlen = 68, |
| 20814 | }, { |
| 20815 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 20816 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 20817 | "\x22\x43\x3C\x64", |
| 20818 | .klen = 20, |
| 20819 | .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD", |
| 20820 | .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00" |
| 20821 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 20822 | "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70" |
| 20823 | "\x71\x72\x73\x74\x01\x02\x02\x01", |
| 20824 | .ilen = 32, |
| 20825 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20826 | "\x00\x00\x00\x07\x48\x55\xEC\x7D" |
| 20827 | "\x3A\x23\x4B\xFD", |
| 20828 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 20829 | .result = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C" |
| 20830 | "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF" |
| 20831 | "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6" |
| 20832 | "\xAC\xDA\x68\x94\xBC\x61\x90\x69" |
| 20833 | "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7" |
| 20834 | "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0", |
| 20835 | .rlen = 48, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20836 | } |
| 20837 | }; |
| 20838 | |
| 20839 | static struct aead_testvec aes_gcm_rfc4106_dec_tv_template[] = { |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20840 | { /* Generated using Crypto++ */ |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20841 | .key = zeroed_string, |
| 20842 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20843 | .iv = zeroed_string, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20844 | .input = "\x03\x88\xDA\xCE\x60\xB6\xA3\x92" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20845 | "\xF3\x28\xC2\xB9\x71\xB2\xFE\x78" |
| 20846 | "\x97\xFE\x4C\x23\x37\x42\x01\xE0" |
| 20847 | "\x81\x9F\x8D\xC5\xD7\x41\xA0\x1B", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20848 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20849 | .assoc = zeroed_string, |
| 20850 | .alen = 16, |
| 20851 | .result = zeroed_string, |
| 20852 | .rlen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20853 | |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20854 | },{ |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20855 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20856 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20857 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20858 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20859 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20860 | .input = "\xC0\x0D\x8B\x42\x0F\x8F\x34\x18" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20861 | "\x88\xB1\xC5\xBC\xC5\xB6\xD6\x28" |
| 20862 | "\x6A\x9D\xDF\x11\x5E\xFE\x5E\x9D" |
| 20863 | "\x2F\x70\x44\x92\xF7\xF2\xE3\xEF", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20864 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20865 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 20866 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 20867 | .alen = 16, |
| 20868 | .result = zeroed_string, |
| 20869 | .rlen = 16, |
| 20870 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20871 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20872 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20873 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20874 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20875 | .iv = zeroed_string, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20876 | .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20877 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 20878 | "\x0B\x8F\x88\x69\x17\xE6\xB4\x3C" |
| 20879 | "\xB1\x68\xFD\x14\x52\x64\x61\xB2", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20880 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20881 | .assoc = zeroed_string, |
| 20882 | .alen = 16, |
| 20883 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20884 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 20885 | .rlen = 16, |
| 20886 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20887 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20888 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20889 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20890 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20891 | .iv = zeroed_string, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20892 | .input = "\x4B\xB1\xB5\xE3\x25\x71\x70\xDE" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20893 | "\x7F\xC9\x9C\xA5\x14\x19\xF2\xAC" |
| 20894 | "\x90\x92\xB7\xE3\x5F\xA3\x9A\x63" |
| 20895 | "\x7E\xD7\x1F\xD8\xD3\x7C\x4B\xF5", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20896 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20897 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20898 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 20899 | .alen = 16, |
| 20900 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20901 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 20902 | .rlen = 16, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20903 | |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20904 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20905 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20906 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20907 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20908 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20909 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20910 | .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20911 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 20912 | "\x64\x50\xF9\x32\x13\xFB\x74\x61" |
| 20913 | "\xF4\xED\x52\xD3\xC5\x10\x55\x3C", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20914 | .ilen = 32, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20915 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20916 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 20917 | .alen = 16, |
| 20918 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20919 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 20920 | .rlen = 16, |
| 20921 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20922 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 20923 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20924 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20925 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20926 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20927 | .input = "\xC1\x0C\x8A\x43\x0E\x8E\x35\x19" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20928 | "\x89\xB0\xC4\xBD\xC4\xB7\xD7\x29" |
| 20929 | "\x98\x14\xA1\x42\x37\x80\xFD\x90" |
| 20930 | "\x68\x12\x01\xA8\x91\x89\xB9\x83" |
| 20931 | "\x5B\x11\x77\x12\x9B\xFF\x24\x89" |
| 20932 | "\x94\x5F\x18\x12\xBA\x27\x09\x39" |
| 20933 | "\x99\x96\x76\x42\x15\x1C\xCD\xCB" |
| 20934 | "\xDC\xD3\xDA\x65\x73\xAF\x80\xCD" |
| 20935 | "\xD2\xB6\xC2\x4A\x76\xC2\x92\x85" |
| 20936 | "\xBD\xCF\x62\x98\x58\x14\xE5\xBD", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20937 | .ilen = 80, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20938 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20939 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 20940 | .alen = 16, |
| 20941 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20942 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20943 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20944 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20945 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20946 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20947 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 20948 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 20949 | .rlen = 64, |
| 20950 | }, { |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20951 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 20952 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20953 | "\x00\x00\x00\x00", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20954 | .klen = 20, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20955 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef", |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 20956 | .input = "\xC1\x76\x33\x85\xE2\x9B\x5F\xDE" |
| 20957 | "\xDE\x89\x3D\x42\xE7\xC9\x69\x8A" |
| 20958 | "\x44\x6D\xC3\x88\x46\x2E\xC2\x01" |
| 20959 | "\x5E\xF6\x0C\x39\xF0\xC4\xA5\x82" |
| 20960 | "\xCD\xE8\x31\xCC\x0A\x4C\xE4\x44" |
| 20961 | "\x41\xA9\x82\x6F\x22\xA1\x23\x1A" |
| 20962 | "\xA8\xE3\x16\xFD\x31\x5C\x27\x31" |
| 20963 | "\xF1\x7F\x01\x63\xA3\xAF\x70\xA1" |
| 20964 | "\xCF\x07\x57\x41\x67\xD0\xC4\x42" |
| 20965 | "\xDB\x18\xC6\x4C\x4C\xE0\x3D\x9F" |
| 20966 | "\x05\x07\xFB\x13\x7D\x4A\xCA\x5B" |
| 20967 | "\xF0\xBF\x64\x7E\x05\xB1\x72\xEE" |
| 20968 | "\x7C\x3B\xD4\xCD\x14\x03\xB2\x2C" |
| 20969 | "\xD3\xA9\xEE\xFA\x17\xFC\x9C\xDF" |
| 20970 | "\xC7\x75\x40\xFF\xAE\xAD\x1E\x59" |
| 20971 | "\x2F\x30\x24\xFB\xAD\x6B\x10\xFA" |
| 20972 | "\x6C\x9F\x5B\xE7\x25\xD5\xD0\x25" |
| 20973 | "\xAC\x4A\x4B\xDA\xFC\x7A\x85\x1B" |
| 20974 | "\x7E\x13\x06\x82\x08\x17\xA4\x35" |
| 20975 | "\xEC\xC5\x8D\x63\x96\x81\x0A\x8F" |
| 20976 | "\xA3\x05\x38\x95\x20\x1A\x47\x04" |
| 20977 | "\x6F\x6D\xDA\x8F\xEF\xC1\x76\x35" |
| 20978 | "\x6B\xC7\x4D\x0F\x94\x12\xCA\x3E" |
| 20979 | "\x2E\xD5\x03\x2E\x86\x7E\xAA\x3B" |
| 20980 | "\x37\x08\x1C\xCF\xBA\x5D\x71\x46" |
| 20981 | "\x80\x72\xB0\x4C\x82\x0D\x60\x3C", |
| 20982 | .ilen = 208, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 20983 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 20984 | "\xaa\xaa\xaa\xaa\x00\x00\x45\x67" |
| 20985 | "\x89\xab\xcd\xef", |
| 20986 | .alen = 20, |
| 20987 | .result = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20988 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20989 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20990 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20991 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20992 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20993 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20994 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20995 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20996 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20997 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20998 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 20999 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21000 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21001 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21002 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21003 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21004 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21005 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21006 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21007 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21008 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21009 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 21010 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 21011 | .rlen = 192, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21012 | }, { |
| 21013 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 21014 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 21015 | "\x2E\x44\x3B\x68", |
| 21016 | .klen = 20, |
| 21017 | .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE", |
| 21018 | .result = "\x45\x00\x00\x48\x69\x9A\x00\x00" |
| 21019 | "\x80\x11\x4D\xB7\xC0\xA8\x01\x02" |
| 21020 | "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56" |
| 21021 | "\x38\xD3\x01\x00\x00\x01\x00\x00" |
| 21022 | "\x00\x00\x00\x00\x04\x5F\x73\x69" |
| 21023 | "\x70\x04\x5F\x75\x64\x70\x03\x73" |
| 21024 | "\x69\x70\x09\x63\x79\x62\x65\x72" |
| 21025 | "\x63\x69\x74\x79\x02\x64\x6B\x00" |
| 21026 | "\x00\x21\x00\x01\x01\x02\x02\x01", |
| 21027 | .rlen = 72, |
| 21028 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21029 | "\x00\x00\x00\x00\x49\x56\xED\x7E" |
| 21030 | "\x3B\x24\x4C\xFE", |
| 21031 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21032 | .input = "\xFE\xCF\x53\x7E\x72\x9D\x5B\x07" |
| 21033 | "\xDC\x30\xDF\x52\x8D\xD2\x2B\x76" |
| 21034 | "\x8D\x1B\x98\x73\x66\x96\xA6\xFD" |
| 21035 | "\x34\x85\x09\xFA\x13\xCE\xAC\x34" |
| 21036 | "\xCF\xA2\x43\x6F\x14\xA3\xF3\xCF" |
| 21037 | "\x65\x92\x5B\xF1\xF4\xA1\x3C\x5D" |
| 21038 | "\x15\xB2\x1E\x18\x84\xF5\xFF\x62" |
| 21039 | "\x47\xAE\xAB\xB7\x86\xB9\x3B\xCE" |
| 21040 | "\x61\xBC\x17\xD7\x68\xFD\x97\x32" |
| 21041 | "\x45\x90\x18\x14\x8F\x6C\xBE\x72" |
| 21042 | "\x2F\xD0\x47\x96\x56\x2D\xFD\xB4", |
| 21043 | .ilen = 88, |
| 21044 | }, { |
| 21045 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 21046 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 21047 | "\xCA\xFE\xBA\xBE", |
| 21048 | .klen = 20, |
| 21049 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 21050 | .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00" |
| 21051 | "\x80\x11\x4D\xCC\xC0\xA8\x01\x02" |
| 21052 | "\xC0\xA8\x01\x01\x0A\x98\x00\x35" |
| 21053 | "\x00\x2A\x23\x43\xB2\xD0\x01\x00" |
| 21054 | "\x00\x01\x00\x00\x00\x00\x00\x00" |
| 21055 | "\x03\x73\x69\x70\x09\x63\x79\x62" |
| 21056 | "\x65\x72\x63\x69\x74\x79\x02\x64" |
| 21057 | "\x6B\x00\x00\x01\x00\x01\x00\x01", |
| 21058 | .rlen = 64, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21059 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 21060 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 21061 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21062 | .input = "\xDE\xB2\x2C\xD9\xB0\x7C\x72\xC1" |
| 21063 | "\x6E\x3A\x65\xBE\xEB\x8D\xF3\x04" |
| 21064 | "\xA5\xA5\x89\x7D\x33\xAE\x53\x0F" |
| 21065 | "\x1B\xA7\x6D\x5D\x11\x4D\x2A\x5C" |
| 21066 | "\x3D\xE8\x18\x27\xC1\x0E\x9A\x4F" |
| 21067 | "\x51\x33\x0D\x0E\xEC\x41\x66\x42" |
| 21068 | "\xCF\xBB\x85\xA5\xB4\x7E\x48\xA4" |
| 21069 | "\xEC\x3B\x9B\xA9\x5D\x91\x8B\xD1" |
| 21070 | "\x83\xB7\x0D\x3A\xA8\xBC\x6E\xE4" |
| 21071 | "\xC3\x09\xE9\xD8\x5A\x41\xAD\x4A", |
| 21072 | .ilen = 80, |
| 21073 | }, { |
| 21074 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 21075 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 21076 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 21077 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 21078 | "\x11\x22\x33\x44", |
| 21079 | .klen = 36, |
| 21080 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 21081 | .result = "\x45\x00\x00\x30\x69\xA6\x40\x00" |
| 21082 | "\x80\x06\x26\x90\xC0\xA8\x01\x02" |
| 21083 | "\x93\x89\x15\x5E\x0A\x9E\x00\x8B" |
| 21084 | "\x2D\xC5\x7E\xE0\x00\x00\x00\x00" |
| 21085 | "\x70\x02\x40\x00\x20\xBF\x00\x00" |
| 21086 | "\x02\x04\x05\xB4\x01\x01\x04\x02" |
| 21087 | "\x01\x02\x02\x01", |
| 21088 | .rlen = 52, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21089 | .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02" |
| 21090 | "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 21091 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21092 | .input = "\xFF\x42\x5C\x9B\x72\x45\x99\xDF" |
| 21093 | "\x7A\x3B\xCD\x51\x01\x94\xE0\x0D" |
| 21094 | "\x6A\x78\x10\x7F\x1B\x0B\x1C\xBF" |
| 21095 | "\x06\xEF\xAE\x9D\x65\xA5\xD7\x63" |
| 21096 | "\x74\x8A\x63\x79\x85\x77\x1D\x34" |
| 21097 | "\x7F\x05\x45\x65\x9F\x14\xE9\x9D" |
| 21098 | "\xEF\x84\x2D\x8E\xB3\x35\xF4\xEE" |
| 21099 | "\xCF\xDB\xF8\x31\x82\x4B\x4C\x49" |
| 21100 | "\x15\x95\x6C\x96", |
| 21101 | .ilen = 68, |
| 21102 | }, { |
| 21103 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 21104 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 21105 | "\x00\x00\x00\x00", |
| 21106 | .klen = 20, |
| 21107 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21108 | .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00" |
| 21109 | "\x80\x01\xCB\x7A\x40\x67\x93\x18" |
| 21110 | "\x01\x01\x01\x01\x08\x00\x07\x5C" |
| 21111 | "\x02\x00\x44\x00\x61\x62\x63\x64" |
| 21112 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 21113 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 21114 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 21115 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 21116 | .rlen = 64, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21117 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 21118 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21119 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21120 | .input = "\x46\x88\xDA\xF2\xF9\x73\xA3\x92" |
| 21121 | "\x73\x29\x09\xC3\x31\xD5\x6D\x60" |
| 21122 | "\xF6\x94\xAB\xAA\x41\x4B\x5E\x7F" |
| 21123 | "\xF5\xFD\xCD\xFF\xF5\xE9\xA2\x84" |
| 21124 | "\x45\x64\x76\x49\x27\x19\xFF\xB6" |
| 21125 | "\x4D\xE7\xD9\xDC\xA1\xE1\xD8\x94" |
| 21126 | "\xBC\x3B\xD5\x78\x73\xED\x4D\x18" |
| 21127 | "\x1D\x19\xD4\xD5\xC8\xC1\x8A\xF3" |
| 21128 | "\xF8\x21\xD4\x96\xEE\xB0\x96\xE9" |
| 21129 | "\x8A\xD2\xB6\x9E\x47\x99\xC7\x1D", |
| 21130 | .ilen = 80, |
| 21131 | }, { |
| 21132 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 21133 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 21134 | "\x57\x69\x0E\x43", |
| 21135 | .klen = 20, |
| 21136 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 21137 | .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00" |
| 21138 | "\x80\x01\xCB\x7C\x40\x67\x93\x18" |
| 21139 | "\x01\x01\x01\x01\x08\x00\x08\x5C" |
| 21140 | "\x02\x00\x43\x00\x61\x62\x63\x64" |
| 21141 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 21142 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 21143 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 21144 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 21145 | .rlen = 64, |
| 21146 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21147 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 21148 | "\xA2\xFC\xA1\xA3", |
| 21149 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21150 | .input = "\xFB\xA2\xCA\xA4\x85\x3C\xF9\xF0" |
| 21151 | "\xF2\x2C\xB1\x0D\x86\xDD\x83\xB0" |
| 21152 | "\xFE\xC7\x56\x91\xCF\x1A\x04\xB0" |
| 21153 | "\x0D\x11\x38\xEC\x9C\x35\x79\x17" |
| 21154 | "\x65\xAC\xBD\x87\x01\xAD\x79\x84" |
| 21155 | "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9" |
| 21156 | "\x17\x55\xE6\x66\x2B\x4C\x8D\x0D" |
| 21157 | "\x1F\x5E\x22\x73\x95\x30\x32\x0A" |
| 21158 | "\xE0\xD7\x31\xCC\x97\x8E\xCA\xFA" |
| 21159 | "\xEA\xE8\x8F\x00\xE8\x0D\x6E\x48", |
| 21160 | .ilen = 80, |
| 21161 | }, { |
| 21162 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 21163 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 21164 | "\x57\x69\x0E\x43", |
| 21165 | .klen = 20, |
| 21166 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 21167 | .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00" |
| 21168 | "\x80\x01\x44\x1F\x40\x67\x93\xB6" |
| 21169 | "\xE0\x00\x00\x02\x0A\x00\xF5\xFF" |
| 21170 | "\x01\x02\x02\x01", |
| 21171 | .rlen = 28, |
| 21172 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21173 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 21174 | "\xA2\xFC\xA1\xA3", |
| 21175 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21176 | .input = "\xFB\xA2\xCA\x84\x5E\x5D\xF9\xF0" |
| 21177 | "\xF2\x2C\x3E\x6E\x86\xDD\x83\x1E" |
| 21178 | "\x1F\xC6\x57\x92\xCD\x1A\xF9\x13" |
| 21179 | "\x0E\x13\x79\xED\x36\x9F\x07\x1F" |
| 21180 | "\x35\xE0\x34\xBE\x95\xF1\x12\xE4" |
| 21181 | "\xE7\xD0\x5D\x35", |
| 21182 | .ilen = 44, |
| 21183 | }, { |
| 21184 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 21185 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 21186 | "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 21187 | "\xCA\xFE\xBA\xBE", |
| 21188 | .klen = 28, |
| 21189 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 21190 | .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00" |
| 21191 | "\x40\x06\x78\x80\x0A\x01\x03\x8F" |
| 21192 | "\x0A\x01\x06\x12\x80\x23\x06\xB8" |
| 21193 | "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E" |
| 21194 | "\x50\x10\x16\xD0\x75\x68\x00\x01", |
| 21195 | .rlen = 40, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21196 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 21197 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 21198 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21199 | .input = "\xA5\xB1\xF8\x06\x60\x29\xAE\xA4" |
| 21200 | "\x0E\x59\x8B\x81\x22\xDE\x02\x42" |
| 21201 | "\x09\x38\xB3\xAB\x33\xF8\x28\xE6" |
| 21202 | "\x87\xB8\x85\x8B\x5B\xFB\xDB\xD0" |
| 21203 | "\x31\x5B\x27\x45\x21\x44\xCC\x77" |
| 21204 | "\x95\x45\x7B\x96\x52\x03\x7F\x53" |
| 21205 | "\x18\x02\x7B\x5B\x4C\xD7\xA6\x36", |
| 21206 | .ilen = 56, |
| 21207 | }, { |
| 21208 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 21209 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 21210 | "\xDE\xCA\xF8\x88", |
| 21211 | .klen = 20, |
| 21212 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 21213 | .result = "\x45\x00\x00\x49\x33\xBA\x00\x00" |
| 21214 | "\x7F\x11\x91\x06\xC3\xFB\x1D\x10" |
| 21215 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 21216 | "\x00\x35\xDD\x7B\x80\x03\x02\xD5" |
| 21217 | "\x00\x00\x4E\x20\x00\x1E\x8C\x18" |
| 21218 | "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47" |
| 21219 | "\x6B\x91\xB9\x24\xB2\x80\x38\x9D" |
| 21220 | "\x92\xC9\x63\xBA\xC0\x46\xEC\x95" |
| 21221 | "\x9B\x62\x66\xC0\x47\x22\xB1\x49" |
| 21222 | "\x23\x01\x01\x01", |
| 21223 | .rlen = 76, |
| 21224 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21225 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 21226 | "\xCE\xFA\xCE\x74", |
| 21227 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21228 | .input = "\x18\xA6\xFD\x42\xF7\x2C\xBF\x4A" |
| 21229 | "\xB2\xA2\xEA\x90\x1F\x73\xD8\x14" |
| 21230 | "\xE3\xE7\xF2\x43\xD9\x54\x12\xE1" |
| 21231 | "\xC3\x49\xC1\xD2\xFB\xEC\x16\x8F" |
| 21232 | "\x91\x90\xFE\xEB\xAF\x2C\xB0\x19" |
| 21233 | "\x84\xE6\x58\x63\x96\x5D\x74\x72" |
| 21234 | "\xB7\x9D\xA3\x45\xE0\xE7\x80\x19" |
| 21235 | "\x1F\x0D\x2F\x0E\x0F\x49\x6C\x22" |
| 21236 | "\x6F\x21\x27\xB2\x7D\xB3\x57\x24" |
| 21237 | "\xE7\x84\x5D\x68\x65\x1F\x57\xE6" |
| 21238 | "\x5F\x35\x4F\x75\xFF\x17\x01\x57" |
| 21239 | "\x69\x62\x34\x36", |
| 21240 | .ilen = 92, |
| 21241 | }, { |
| 21242 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 21243 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 21244 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 21245 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 21246 | "\x73\x61\x6C\x74", |
| 21247 | .klen = 36, |
| 21248 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 21249 | .result = "\x45\x08\x00\x28\x73\x2C\x00\x00" |
| 21250 | "\x40\x06\xE9\xF9\x0A\x01\x06\x12" |
| 21251 | "\x0A\x01\x03\x8F\x06\xB8\x80\x23" |
| 21252 | "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02" |
| 21253 | "\x50\x10\x1F\x64\x6D\x54\x00\x01", |
| 21254 | .rlen = 40, |
| 21255 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21256 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 21257 | "\x69\x76\x65\x63", |
| 21258 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21259 | .input = "\xF2\xD6\x9E\xCD\xBD\x5A\x0D\x5B" |
| 21260 | "\x8D\x5E\xF3\x8B\xAD\x4D\xA5\x8D" |
| 21261 | "\x1F\x27\x8F\xDE\x98\xEF\x67\x54" |
| 21262 | "\x9D\x52\x4A\x30\x18\xD9\xA5\x7F" |
| 21263 | "\xF4\xD3\xA3\x1C\xE6\x73\x11\x9E" |
| 21264 | "\x45\x16\x26\xC2\x41\x57\x71\xE3" |
| 21265 | "\xB7\xEE\xBC\xA6\x14\xC8\x9B\x35", |
| 21266 | .ilen = 56, |
| 21267 | }, { |
| 21268 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 21269 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 21270 | "\x57\x69\x0E\x43", |
| 21271 | .klen = 20, |
| 21272 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 21273 | .result = "\x45\x00\x00\x49\x33\x3E\x00\x00" |
| 21274 | "\x7F\x11\x91\x82\xC3\xFB\x1D\x10" |
| 21275 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 21276 | "\x00\x35\xCB\x45\x80\x03\x02\x5B" |
| 21277 | "\x00\x00\x01\xE0\x00\x1E\x8C\x18" |
| 21278 | "\xD6\x57\x59\xD5\x22\x84\xA0\x35" |
| 21279 | "\x2C\x71\x47\x5C\x88\x80\x39\x1C" |
| 21280 | "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32" |
| 21281 | "\x5A\xE2\x70\xC0\x38\x99\x49\x39" |
| 21282 | "\x15\x01\x01\x01", |
| 21283 | .rlen = 76, |
| 21284 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21285 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 21286 | "\xA2\xFC\xA1\xA3", |
| 21287 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21288 | .input = "\xFB\xA2\xCA\xD1\x2F\xC1\xF9\xF0" |
| 21289 | "\x0D\x3C\xEB\xF3\x05\x41\x0D\xB8" |
| 21290 | "\x3D\x77\x84\xB6\x07\x32\x3D\x22" |
| 21291 | "\x0F\x24\xB0\xA9\x7D\x54\x18\x28" |
| 21292 | "\x00\xCA\xDB\x0F\x68\xD9\x9E\xF0" |
| 21293 | "\xE0\xC0\xC8\x9A\xE9\xBE\xA8\x88" |
| 21294 | "\x4E\x52\xD6\x5B\xC1\xAF\xD0\x74" |
| 21295 | "\x0F\x74\x24\x44\x74\x7B\x5B\x39" |
| 21296 | "\xAB\x53\x31\x63\xAA\xD4\x55\x0E" |
| 21297 | "\xE5\x16\x09\x75\xCD\xB6\x08\xC5" |
| 21298 | "\x76\x91\x89\x60\x97\x63\xB8\xE1" |
| 21299 | "\x8C\xAA\x81\xE2", |
| 21300 | .ilen = 92, |
| 21301 | }, { |
| 21302 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 21303 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 21304 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 21305 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 21306 | "\x73\x61\x6C\x74", |
| 21307 | .klen = 36, |
| 21308 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 21309 | .result = "\x63\x69\x73\x63\x6F\x01\x72\x75" |
| 21310 | "\x6C\x65\x73\x01\x74\x68\x65\x01" |
| 21311 | "\x6E\x65\x74\x77\x65\x01\x64\x65" |
| 21312 | "\x66\x69\x6E\x65\x01\x74\x68\x65" |
| 21313 | "\x74\x65\x63\x68\x6E\x6F\x6C\x6F" |
| 21314 | "\x67\x69\x65\x73\x01\x74\x68\x61" |
| 21315 | "\x74\x77\x69\x6C\x6C\x01\x64\x65" |
| 21316 | "\x66\x69\x6E\x65\x74\x6F\x6D\x6F" |
| 21317 | "\x72\x72\x6F\x77\x01\x02\x02\x01", |
| 21318 | .rlen = 72, |
| 21319 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21320 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 21321 | "\x69\x76\x65\x63", |
| 21322 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21323 | .input = "\xD4\xB7\xED\x86\xA1\x77\x7F\x2E" |
| 21324 | "\xA1\x3D\x69\x73\xD3\x24\xC6\x9E" |
| 21325 | "\x7B\x43\xF8\x26\xFB\x56\x83\x12" |
| 21326 | "\x26\x50\x8B\xEB\xD2\xDC\xEB\x18" |
| 21327 | "\xD0\xA6\xDF\x10\xE5\x48\x7D\xF0" |
| 21328 | "\x74\x11\x3E\x14\xC6\x41\x02\x4E" |
| 21329 | "\x3E\x67\x73\xD9\x1A\x62\xEE\x42" |
| 21330 | "\x9B\x04\x3A\x10\xE3\xEF\xE6\xB0" |
| 21331 | "\x12\xA4\x93\x63\x41\x23\x64\xF8" |
| 21332 | "\xC0\xCA\xC5\x87\xF2\x49\xE5\x6B" |
| 21333 | "\x11\xE2\x4F\x30\xE4\x4C\xCC\x76", |
| 21334 | .ilen = 88, |
| 21335 | }, { |
| 21336 | .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" |
| 21337 | "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47" |
| 21338 | "\xD9\x66\x42\x67", |
| 21339 | .klen = 20, |
| 21340 | .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 21341 | .result = "\x01\x02\x02\x01", |
| 21342 | .rlen = 4, |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21343 | .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF" |
| 21344 | "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 21345 | .alen = 16, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21346 | .input = "\x43\x7F\x86\x6B\xCB\x3F\x69\x9F" |
| 21347 | "\xE9\xB0\x82\x2B\xAC\x96\x1C\x45" |
| 21348 | "\x04\xBE\xF2\x70", |
| 21349 | .ilen = 20, |
| 21350 | }, { |
| 21351 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 21352 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 21353 | "\xDE\xCA\xF8\x88", |
| 21354 | .klen = 20, |
| 21355 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 21356 | .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72" |
| 21357 | "\x01\x6E\x6F\x74\x01\x74\x6F\x01" |
| 21358 | "\x62\x65\x00\x01", |
| 21359 | .rlen = 20, |
| 21360 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21361 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 21362 | "\xCE\xFA\xCE\x74", |
| 21363 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21364 | .input = "\x29\xC9\xFC\x69\xA1\x97\xD0\x38" |
| 21365 | "\xCC\xDD\x14\xE2\xDD\xFC\xAA\x05" |
| 21366 | "\x43\x33\x21\x64\x41\x25\x03\x52" |
| 21367 | "\x43\x03\xED\x3C\x6C\x5F\x28\x38" |
| 21368 | "\x43\xAF\x8C\x3E", |
| 21369 | .ilen = 36, |
| 21370 | }, { |
| 21371 | .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" |
| 21372 | "\x6D\x61\x72\x69\x6A\x75\x61\x6E" |
| 21373 | "\x61\x61\x6E\x64\x64\x6F\x69\x74" |
| 21374 | "\x62\x65\x66\x6F\x72\x65\x69\x61" |
| 21375 | "\x74\x75\x72\x6E", |
| 21376 | .klen = 36, |
| 21377 | .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D", |
| 21378 | .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 21379 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 21380 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 21381 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 21382 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 21383 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 21384 | "\x01\x02\x02\x01", |
| 21385 | .rlen = 52, |
| 21386 | .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21387 | "\xFF\xFF\xFF\xFF\x33\x30\x21\x69" |
| 21388 | "\x67\x65\x74\x6D", |
| 21389 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21390 | .input = "\xF9\x7A\xB2\xAA\x35\x6D\x8E\xDC" |
| 21391 | "\xE1\x76\x44\xAC\x8C\x78\xE2\x5D" |
| 21392 | "\xD2\x4D\xED\xBB\x29\xEB\xF1\xB6" |
| 21393 | "\x4A\x27\x4B\x39\xB4\x9C\x3A\x86" |
| 21394 | "\x4C\xD3\xD7\x8C\xA4\xAE\x68\xA3" |
| 21395 | "\x2B\x42\x45\x8F\xB5\x7D\xBE\x82" |
| 21396 | "\x1D\xCC\x63\xB9\xD0\x93\x7B\xA2" |
| 21397 | "\x94\x5F\x66\x93\x68\x66\x1A\x32" |
| 21398 | "\x9F\xB4\xC0\x53", |
| 21399 | .ilen = 68, |
| 21400 | }, { |
| 21401 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 21402 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 21403 | "\x57\x69\x0E\x43", |
| 21404 | .klen = 20, |
| 21405 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 21406 | .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 21407 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 21408 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 21409 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 21410 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 21411 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 21412 | "\x01\x02\x02\x01", |
| 21413 | .rlen = 52, |
| 21414 | .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21415 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 21416 | "\xA2\xFC\xA1\xA3", |
| 21417 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21418 | .input = "\xFB\xA2\xCA\xA8\xC6\xC5\xF9\xF0" |
| 21419 | "\xF2\x2C\xA5\x4A\x06\x12\x10\xAD" |
| 21420 | "\x3F\x6E\x57\x91\xCF\x1A\xCA\x21" |
| 21421 | "\x0D\x11\x7C\xEC\x9C\x35\x79\x17" |
| 21422 | "\x65\xAC\xBD\x87\x01\xAD\x79\x84" |
| 21423 | "\x5B\xF9\xFE\x3F\xBA\x48\x7B\xC9" |
| 21424 | "\x63\x21\x93\x06\x84\xEE\xCA\xDB" |
| 21425 | "\x56\x91\x25\x46\xE7\xA9\x5C\x97" |
| 21426 | "\x40\xD7\xCB\x05", |
| 21427 | .ilen = 68, |
| 21428 | }, { |
| 21429 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 21430 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 21431 | "\x22\x43\x3C\x64", |
| 21432 | .klen = 20, |
| 21433 | .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD", |
| 21434 | .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00" |
| 21435 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 21436 | "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70" |
| 21437 | "\x71\x72\x73\x74\x01\x02\x02\x01", |
| 21438 | .rlen = 32, |
| 21439 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
Herbert Xu | 8537544 | 2015-07-09 07:17:25 +0800 | [diff] [blame] | 21440 | "\x00\x00\x00\x07\x48\x55\xEC\x7D" |
| 21441 | "\x3A\x23\x4B\xFD", |
| 21442 | .alen = 20, |
Herbert Xu | 8f69b76 | 2015-06-16 13:54:26 +0800 | [diff] [blame] | 21443 | .input = "\x74\x75\x2E\x8A\xEB\x5D\x87\x3C" |
| 21444 | "\xD7\xC0\xF4\xAC\xC3\x6C\x4B\xFF" |
| 21445 | "\x84\xB7\xD7\xB9\x8F\x0C\xA8\xB6" |
| 21446 | "\xAC\xDA\x68\x94\xBC\x61\x90\x69" |
| 21447 | "\xEF\x9C\xBC\x28\xFE\x1B\x56\xA7" |
| 21448 | "\xC4\xE0\xD5\x8C\x86\xCD\x2B\xC0", |
| 21449 | .ilen = 48, |
Adrian Hoban | 69435b9 | 2010-11-04 15:02:04 -0400 | [diff] [blame] | 21450 | } |
| 21451 | }; |
| 21452 | |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 21453 | static struct aead_testvec aes_gcm_rfc4543_enc_tv_template[] = { |
| 21454 | { /* From draft-mcgrew-gcm-test-01 */ |
| 21455 | .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" |
| 21456 | "\x90\x6a\xc7\x3c\x36\x13\xa6\x34" |
| 21457 | "\x22\x43\x3c\x64", |
| 21458 | .klen = 20, |
| 21459 | .iv = zeroed_string, |
Herbert Xu | 0af8fbc | 2015-06-16 13:54:19 +0800 | [diff] [blame] | 21460 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07" |
| 21461 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21462 | .alen = 16, |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 21463 | .input = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 21464 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 21465 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 21466 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 21467 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 21468 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 21469 | "\x01\x02\x02\x01", |
| 21470 | .ilen = 52, |
| 21471 | .result = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 21472 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 21473 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 21474 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 21475 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 21476 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 21477 | "\x01\x02\x02\x01\xf2\xa9\xa8\x36" |
| 21478 | "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18" |
| 21479 | "\xe4\x09\x9a\xaa", |
| 21480 | .rlen = 68, |
| 21481 | } |
| 21482 | }; |
| 21483 | |
| 21484 | static struct aead_testvec aes_gcm_rfc4543_dec_tv_template[] = { |
| 21485 | { /* From draft-mcgrew-gcm-test-01 */ |
| 21486 | .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" |
| 21487 | "\x90\x6a\xc7\x3c\x36\x13\xa6\x34" |
| 21488 | "\x22\x43\x3c\x64", |
| 21489 | .klen = 20, |
| 21490 | .iv = zeroed_string, |
Herbert Xu | 0af8fbc | 2015-06-16 13:54:19 +0800 | [diff] [blame] | 21491 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07" |
| 21492 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21493 | .alen = 16, |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 21494 | .input = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 21495 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 21496 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 21497 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 21498 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 21499 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 21500 | "\x01\x02\x02\x01\xf2\xa9\xa8\x36" |
| 21501 | "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18" |
| 21502 | "\xe4\x09\x9a\xaa", |
| 21503 | .ilen = 68, |
| 21504 | .result = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 21505 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 21506 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 21507 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 21508 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 21509 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 21510 | "\x01\x02\x02\x01", |
| 21511 | .rlen = 52, |
| 21512 | }, { /* nearly same as previous, but should fail */ |
| 21513 | .key = "\x4c\x80\xcd\xef\xbb\x5d\x10\xda" |
| 21514 | "\x90\x6a\xc7\x3c\x36\x13\xa6\x34" |
| 21515 | "\x22\x43\x3c\x64", |
| 21516 | .klen = 20, |
| 21517 | .iv = zeroed_string, |
Herbert Xu | 0af8fbc | 2015-06-16 13:54:19 +0800 | [diff] [blame] | 21518 | .assoc = "\x00\x00\x43\x21\x00\x00\x00\x07" |
| 21519 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 21520 | .alen = 16, |
Jussi Kivilinna | e9b7441 | 2013-04-07 16:43:51 +0300 | [diff] [blame] | 21521 | .input = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 21522 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 21523 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 21524 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 21525 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 21526 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 21527 | "\x01\x02\x02\x01\xf2\xa9\xa8\x36" |
| 21528 | "\xe1\x55\x10\x6a\xa8\xdc\xd6\x18" |
| 21529 | "\x00\x00\x00\x00", |
| 21530 | .ilen = 68, |
| 21531 | .novrfy = 1, |
| 21532 | .result = "\x45\x00\x00\x30\xda\x3a\x00\x00" |
| 21533 | "\x80\x01\xdf\x3b\xc0\xa8\x00\x05" |
| 21534 | "\xc0\xa8\x00\x01\x08\x00\xc6\xcd" |
| 21535 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 21536 | "\x65\x66\x67\x68\x69\x6a\x6b\x6c" |
| 21537 | "\x6d\x6e\x6f\x70\x71\x72\x73\x74" |
| 21538 | "\x01\x02\x02\x01", |
| 21539 | .rlen = 52, |
| 21540 | }, |
| 21541 | }; |
| 21542 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 21543 | static struct aead_testvec aes_ccm_enc_tv_template[] = { |
| 21544 | { /* From RFC 3610 */ |
| 21545 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 21546 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 21547 | .klen = 16, |
| 21548 | .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" |
| 21549 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 21550 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 21551 | .alen = 8, |
| 21552 | .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 21553 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 21554 | "\x18\x19\x1a\x1b\x1c\x1d\x1e", |
| 21555 | .ilen = 23, |
| 21556 | .result = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" |
| 21557 | "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" |
| 21558 | "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" |
| 21559 | "\xe8\xd1\x2c\xfd\xf9\x26\xe0", |
| 21560 | .rlen = 31, |
| 21561 | }, { |
| 21562 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 21563 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 21564 | .klen = 16, |
| 21565 | .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" |
| 21566 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 21567 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 21568 | "\x08\x09\x0a\x0b", |
| 21569 | .alen = 12, |
| 21570 | .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 21571 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 21572 | "\x1c\x1d\x1e\x1f", |
| 21573 | .ilen = 20, |
| 21574 | .result = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" |
| 21575 | "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" |
| 21576 | "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" |
| 21577 | "\x7d\x9c\x2d\x93", |
| 21578 | .rlen = 28, |
| 21579 | }, { |
| 21580 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 21581 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 21582 | .klen = 16, |
| 21583 | .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" |
| 21584 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 21585 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 21586 | .alen = 8, |
| 21587 | .input = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 21588 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 21589 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 21590 | "\x20", |
| 21591 | .ilen = 25, |
| 21592 | .result = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" |
| 21593 | "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" |
| 21594 | "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" |
| 21595 | "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" |
| 21596 | "\x7e\x5f\x4e", |
| 21597 | .rlen = 35, |
| 21598 | }, { |
| 21599 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 21600 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 21601 | .klen = 16, |
| 21602 | .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" |
| 21603 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 21604 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 21605 | "\x08\x09\x0a\x0b", |
| 21606 | .alen = 12, |
| 21607 | .input = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 21608 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 21609 | "\x1c\x1d\x1e", |
| 21610 | .ilen = 19, |
| 21611 | .result = "\x07\x34\x25\x94\x15\x77\x85\x15" |
| 21612 | "\x2b\x07\x40\x98\x33\x0a\xbb\x14" |
| 21613 | "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" |
| 21614 | "\x4d\x99\x99\x88\xdd", |
| 21615 | .rlen = 29, |
| 21616 | }, { |
| 21617 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 21618 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 21619 | .klen = 16, |
| 21620 | .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" |
| 21621 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 21622 | .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", |
| 21623 | .alen = 8, |
| 21624 | .input = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" |
| 21625 | "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" |
| 21626 | "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", |
| 21627 | .ilen = 24, |
| 21628 | .result = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" |
| 21629 | "\xa0\x72\x6c\x55\xd3\x78\x06\x12" |
| 21630 | "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" |
| 21631 | "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", |
| 21632 | .rlen = 32, |
| 21633 | }, { |
| 21634 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 21635 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 21636 | .klen = 16, |
| 21637 | .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" |
| 21638 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 21639 | .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" |
| 21640 | "\x20\xea\x60\xc0", |
| 21641 | .alen = 12, |
| 21642 | .input = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" |
| 21643 | "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" |
| 21644 | "\x3a\x80\x3b\xa8\x7f", |
| 21645 | .ilen = 21, |
| 21646 | .result = "\x00\x97\x69\xec\xab\xdf\x48\x62" |
| 21647 | "\x55\x94\xc5\x92\x51\xe6\x03\x57" |
| 21648 | "\x22\x67\x5e\x04\xc8\x47\x09\x9e" |
| 21649 | "\x5a\xe0\x70\x45\x51", |
| 21650 | .rlen = 29, |
| 21651 | }, { |
| 21652 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 21653 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 21654 | .klen = 16, |
| 21655 | .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" |
| 21656 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 21657 | .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", |
| 21658 | .alen = 8, |
| 21659 | .input = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" |
| 21660 | "\x8e\x5e\x67\x01\xc9\x17\x87\x65" |
| 21661 | "\x98\x09\xd6\x7d\xbe\xdd\x18", |
| 21662 | .ilen = 23, |
| 21663 | .result = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" |
| 21664 | "\xdb\x38\x6a\x99\xac\x1a\xef\x23" |
| 21665 | "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" |
| 21666 | "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" |
| 21667 | "\xba", |
| 21668 | .rlen = 33, |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 21669 | }, { |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 21670 | /* This is taken from FIPS CAVS. */ |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 21671 | .key = "\x83\xac\x54\x66\xc2\xeb\xe5\x05" |
| 21672 | "\x2e\x01\xd1\xfc\x5d\x82\x66\x2e", |
| 21673 | .klen = 16, |
| 21674 | .iv = "\x03\x96\xac\x59\x30\x07\xa1\xe2\xa2\xc7\x55\x24\0\0\0\0", |
| 21675 | .alen = 0, |
| 21676 | .input = "\x19\xc8\x81\xf6\xe9\x86\xff\x93" |
| 21677 | "\x0b\x78\x67\xe5\xbb\xb7\xfc\x6e" |
| 21678 | "\x83\x77\xb3\xa6\x0c\x8c\x9f\x9c" |
| 21679 | "\x35\x2e\xad\xe0\x62\xf9\x91\xa1", |
| 21680 | .ilen = 32, |
| 21681 | .result = "\xab\x6f\xe1\x69\x1d\x19\x99\xa8" |
| 21682 | "\x92\xa0\xc4\x6f\x7e\xe2\x8b\xb1" |
| 21683 | "\x70\xbb\x8c\xa6\x4c\x6e\x97\x8a" |
| 21684 | "\x57\x2b\xbe\x5d\x98\xa6\xb1\x32" |
| 21685 | "\xda\x24\xea\xd9\xa1\x39\x98\xfd" |
| 21686 | "\xa4\xbe\xd9\xf2\x1a\x6d\x22\xa8", |
| 21687 | .rlen = 48, |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 21688 | }, { |
| 21689 | .key = "\x1e\x2c\x7e\x01\x41\x9a\xef\xc0" |
| 21690 | "\x0d\x58\x96\x6e\x5c\xa2\x4b\xd3", |
| 21691 | .klen = 16, |
| 21692 | .iv = "\x03\x4f\xa3\x19\xd3\x01\x5a\xd8" |
| 21693 | "\x30\x60\x15\x56\x00\x00\x00\x00", |
| 21694 | .assoc = "\xda\xe6\x28\x9c\x45\x2d\xfd\x63" |
| 21695 | "\x5e\xda\x4c\xb6\xe6\xfc\xf9\xb7" |
| 21696 | "\x0c\x56\xcb\xe4\xe0\x05\x7a\xe1" |
| 21697 | "\x0a\x63\x09\x78\xbc\x2c\x55\xde", |
| 21698 | .alen = 32, |
| 21699 | .input = "\x87\xa3\x36\xfd\x96\xb3\x93\x78" |
| 21700 | "\xa9\x28\x63\xba\x12\xa3\x14\x85" |
| 21701 | "\x57\x1e\x06\xc9\x7b\x21\xef\x76" |
| 21702 | "\x7f\x38\x7e\x8e\x29\xa4\x3e\x7e", |
| 21703 | .ilen = 32, |
| 21704 | .result = "\x8a\x1e\x11\xf0\x02\x6b\xe2\x19" |
| 21705 | "\xfc\x70\xc4\x6d\x8e\xb7\x99\xab" |
| 21706 | "\xc5\x4b\xa2\xac\xd3\xf3\x48\xff" |
| 21707 | "\x3b\xb5\xce\x53\xef\xde\xbb\x02" |
| 21708 | "\xa9\x86\x15\x6c\x13\xfe\xda\x0a" |
| 21709 | "\x22\xb8\x29\x3d\xd8\x39\x9a\x23", |
| 21710 | .rlen = 48, |
| 21711 | }, { |
| 21712 | .key = "\xf4\x6b\xc2\x75\x62\xfe\xb4\xe1" |
| 21713 | "\xa3\xf0\xff\xdd\x4e\x4b\x12\x75" |
| 21714 | "\x53\x14\x73\x66\x8d\x88\xf6\x80", |
| 21715 | .klen = 24, |
| 21716 | .iv = "\x03\xa0\x20\x35\x26\xf2\x21\x8d" |
| 21717 | "\x50\x20\xda\xe2\x00\x00\x00\x00", |
| 21718 | .assoc = "\x5b\x9e\x13\x67\x02\x5e\xef\xc1" |
| 21719 | "\x6c\xf9\xd7\x1e\x52\x8f\x7a\x47" |
| 21720 | "\xe9\xd4\xcf\x20\x14\x6e\xf0\x2d" |
| 21721 | "\xd8\x9e\x2b\x56\x10\x23\x56\xe7", |
| 21722 | .alen = 32, |
| 21723 | .result = "\x36\xea\x7a\x70\x08\xdc\x6a\xbc" |
| 21724 | "\xad\x0c\x7a\x63\xf6\x61\xfd\x9b", |
| 21725 | .rlen = 16, |
| 21726 | }, { |
| 21727 | .key = "\x56\xdf\x5c\x8f\x26\x3f\x0e\x42" |
| 21728 | "\xef\x7a\xd3\xce\xfc\x84\x60\x62" |
| 21729 | "\xca\xb4\x40\xaf\x5f\xc9\xc9\x01", |
| 21730 | .klen = 24, |
| 21731 | .iv = "\x03\xd6\x3c\x8c\x86\x84\xb6\xcd" |
| 21732 | "\xef\x09\x2e\x94\x00\x00\x00\x00", |
| 21733 | .assoc = "\x02\x65\x78\x3c\xe9\x21\x30\x91" |
| 21734 | "\xb1\xb9\xda\x76\x9a\x78\x6d\x95" |
| 21735 | "\xf2\x88\x32\xa3\xf2\x50\xcb\x4c" |
| 21736 | "\xe3\x00\x73\x69\x84\x69\x87\x79", |
| 21737 | .alen = 32, |
| 21738 | .input = "\x9f\xd2\x02\x4b\x52\x49\x31\x3c" |
| 21739 | "\x43\x69\x3a\x2d\x8e\x70\xad\x7e" |
| 21740 | "\xe0\xe5\x46\x09\x80\x89\x13\xb2" |
| 21741 | "\x8c\x8b\xd9\x3f\x86\xfb\xb5\x6b", |
| 21742 | .ilen = 32, |
| 21743 | .result = "\x39\xdf\x7c\x3c\x5a\x29\xb9\x62" |
| 21744 | "\x5d\x51\xc2\x16\xd8\xbd\x06\x9f" |
| 21745 | "\x9b\x6a\x09\x70\xc1\x51\x83\xc2" |
| 21746 | "\x66\x88\x1d\x4f\x9a\xda\xe0\x1e" |
| 21747 | "\xc7\x79\x11\x58\xe5\x6b\x20\x40" |
| 21748 | "\x7a\xea\x46\x42\x8b\xe4\x6f\xe1", |
| 21749 | .rlen = 48, |
| 21750 | }, { |
| 21751 | .key = "\xe0\x8d\x99\x71\x60\xd7\x97\x1a" |
| 21752 | "\xbd\x01\x99\xd5\x8a\xdf\x71\x3a" |
| 21753 | "\xd3\xdf\x24\x4b\x5e\x3d\x4b\x4e" |
| 21754 | "\x30\x7a\xb9\xd8\x53\x0a\x5e\x2b", |
| 21755 | .klen = 32, |
| 21756 | .iv = "\x03\x1e\x29\x91\xad\x8e\xc1\x53" |
| 21757 | "\x0a\xcf\x2d\xbe\x00\x00\x00\x00", |
| 21758 | .assoc = "\x19\xb6\x1f\x57\xc4\xf3\xf0\x8b" |
| 21759 | "\x78\x2b\x94\x02\x29\x0f\x42\x27" |
| 21760 | "\x6b\x75\xcb\x98\x34\x08\x7e\x79" |
| 21761 | "\xe4\x3e\x49\x0d\x84\x8b\x22\x87", |
| 21762 | .alen = 32, |
| 21763 | .input = "\xe1\xd9\xd8\x13\xeb\x3a\x75\x3f" |
| 21764 | "\x9d\xbd\x5f\x66\xbe\xdc\xbb\x66" |
| 21765 | "\xbf\x17\x99\x62\x4a\x39\x27\x1f" |
| 21766 | "\x1d\xdc\x24\xae\x19\x2f\x98\x4c", |
| 21767 | .ilen = 32, |
| 21768 | .result = "\x19\xb8\x61\x33\x45\x2b\x43\x96" |
| 21769 | "\x6f\x51\xd0\x20\x30\x7d\x9b\xc6" |
| 21770 | "\x26\x3d\xf8\xc9\x65\x16\xa8\x9f" |
| 21771 | "\xf0\x62\x17\x34\xf2\x1e\x8d\x75" |
| 21772 | "\x4e\x13\xcc\xc0\xc3\x2a\x54\x2d", |
| 21773 | .rlen = 40, |
| 21774 | }, { |
| 21775 | .key = "\x7c\xc8\x18\x3b\x8d\x99\xe0\x7c" |
| 21776 | "\x45\x41\xb8\xbd\x5c\xa7\xc2\x32" |
| 21777 | "\x8a\xb8\x02\x59\xa4\xfe\xa9\x2c" |
| 21778 | "\x09\x75\x9a\x9b\x3c\x9b\x27\x39", |
| 21779 | .klen = 32, |
| 21780 | .iv = "\x03\xf9\xd9\x4e\x63\xb5\x3d\x9d" |
| 21781 | "\x43\xf6\x1e\x50", |
| 21782 | .assoc = "\x57\xf5\x6b\x8b\x57\x5c\x3d\x3b" |
| 21783 | "\x13\x02\x01\x0c\x83\x4c\x96\x35" |
| 21784 | "\x8e\xd6\x39\xcf\x7d\x14\x9b\x94" |
| 21785 | "\xb0\x39\x36\xe6\x8f\x57\xe0\x13", |
| 21786 | .alen = 32, |
| 21787 | .input = "\x3b\x6c\x29\x36\xb6\xef\x07\xa6" |
| 21788 | "\x83\x72\x07\x4f\xcf\xfa\x66\x89" |
| 21789 | "\x5f\xca\xb1\xba\xd5\x8f\x2c\x27" |
| 21790 | "\x30\xdb\x75\x09\x93\xd4\x65\xe4", |
| 21791 | .ilen = 32, |
| 21792 | .result = "\xb0\x88\x5a\x33\xaa\xe5\xc7\x1d" |
| 21793 | "\x85\x23\xc7\xc6\x2f\xf4\x1e\x3d" |
| 21794 | "\xcc\x63\x44\x25\x07\x78\x4f\x9e" |
| 21795 | "\x96\xb8\x88\xeb\xbc\x48\x1f\x06" |
| 21796 | "\x39\xaf\x39\xac\xd8\x4a\x80\x39" |
| 21797 | "\x7b\x72\x8a\xf7", |
| 21798 | .rlen = 44, |
| 21799 | }, { |
| 21800 | .key = "\xab\xd0\xe9\x33\x07\x26\xe5\x83" |
| 21801 | "\x8c\x76\x95\xd4\xb6\xdc\xf3\x46" |
| 21802 | "\xf9\x8f\xad\xe3\x02\x13\x83\x77" |
| 21803 | "\x3f\xb0\xf1\xa1\xa1\x22\x0f\x2b", |
| 21804 | .klen = 32, |
| 21805 | .iv = "\x03\x24\xa7\x8b\x07\xcb\xcc\x0e" |
| 21806 | "\xe6\x33\xbf\xf5\x00\x00\x00\x00", |
| 21807 | .assoc = "\xd4\xdb\x30\x1d\x03\xfe\xfd\x5f" |
| 21808 | "\x87\xd4\x8c\xb6\xb6\xf1\x7a\x5d" |
| 21809 | "\xab\x90\x65\x8d\x8e\xca\x4d\x4f" |
| 21810 | "\x16\x0c\x40\x90\x4b\xc7\x36\x73", |
| 21811 | .alen = 32, |
| 21812 | .input = "\xf5\xc6\x7d\x48\xc1\xb7\xe6\x92" |
| 21813 | "\x97\x5a\xca\xc4\xa9\x6d\xf9\x3d" |
| 21814 | "\x6c\xde\xbc\xf1\x90\xea\x6a\xb2" |
| 21815 | "\x35\x86\x36\xaf\x5c\xfe\x4b\x3a", |
| 21816 | .ilen = 32, |
| 21817 | .result = "\x83\x6f\x40\x87\x72\xcf\xc1\x13" |
| 21818 | "\xef\xbb\x80\x21\x04\x6c\x58\x09" |
| 21819 | "\x07\x1b\xfc\xdf\xc0\x3f\x5b\xc7" |
| 21820 | "\xe0\x79\xa8\x6e\x71\x7c\x3f\xcf" |
| 21821 | "\x5c\xda\xb2\x33\xe5\x13\xe2\x0d" |
| 21822 | "\x74\xd1\xef\xb5\x0f\x3a\xb5\xf8", |
| 21823 | .rlen = 48, |
Ard Biesheuvel | 4585988 | 2014-04-16 20:40:04 +0800 | [diff] [blame] | 21824 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 21825 | }; |
| 21826 | |
| 21827 | static struct aead_testvec aes_ccm_dec_tv_template[] = { |
| 21828 | { /* From RFC 3610 */ |
| 21829 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 21830 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 21831 | .klen = 16, |
| 21832 | .iv = "\x01\x00\x00\x00\x03\x02\x01\x00" |
| 21833 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 21834 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 21835 | .alen = 8, |
| 21836 | .input = "\x58\x8c\x97\x9a\x61\xc6\x63\xd2" |
| 21837 | "\xf0\x66\xd0\xc2\xc0\xf9\x89\x80" |
| 21838 | "\x6d\x5f\x6b\x61\xda\xc3\x84\x17" |
| 21839 | "\xe8\xd1\x2c\xfd\xf9\x26\xe0", |
| 21840 | .ilen = 31, |
| 21841 | .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 21842 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 21843 | "\x18\x19\x1a\x1b\x1c\x1d\x1e", |
| 21844 | .rlen = 23, |
| 21845 | }, { |
| 21846 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 21847 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 21848 | .klen = 16, |
| 21849 | .iv = "\x01\x00\x00\x00\x07\x06\x05\x04" |
| 21850 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 21851 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 21852 | "\x08\x09\x0a\x0b", |
| 21853 | .alen = 12, |
| 21854 | .input = "\xdc\xf1\xfb\x7b\x5d\x9e\x23\xfb" |
| 21855 | "\x9d\x4e\x13\x12\x53\x65\x8a\xd8" |
| 21856 | "\x6e\xbd\xca\x3e\x51\xe8\x3f\x07" |
| 21857 | "\x7d\x9c\x2d\x93", |
| 21858 | .ilen = 28, |
| 21859 | .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 21860 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 21861 | "\x1c\x1d\x1e\x1f", |
| 21862 | .rlen = 20, |
| 21863 | }, { |
| 21864 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 21865 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 21866 | .klen = 16, |
| 21867 | .iv = "\x01\x00\x00\x00\x0b\x0a\x09\x08" |
| 21868 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 21869 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07", |
| 21870 | .alen = 8, |
| 21871 | .input = "\x82\x53\x1a\x60\xcc\x24\x94\x5a" |
| 21872 | "\x4b\x82\x79\x18\x1a\xb5\xc8\x4d" |
| 21873 | "\xf2\x1c\xe7\xf9\xb7\x3f\x42\xe1" |
| 21874 | "\x97\xea\x9c\x07\xe5\x6b\x5e\xb1" |
| 21875 | "\x7e\x5f\x4e", |
| 21876 | .ilen = 35, |
| 21877 | .result = "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 21878 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 21879 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 21880 | "\x20", |
| 21881 | .rlen = 25, |
| 21882 | }, { |
| 21883 | .key = "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 21884 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf", |
| 21885 | .klen = 16, |
| 21886 | .iv = "\x01\x00\x00\x00\x0c\x0b\x0a\x09" |
| 21887 | "\xa0\xa1\xa2\xa3\xa4\xa5\x00\x00", |
| 21888 | .assoc = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 21889 | "\x08\x09\x0a\x0b", |
| 21890 | .alen = 12, |
| 21891 | .input = "\x07\x34\x25\x94\x15\x77\x85\x15" |
| 21892 | "\x2b\x07\x40\x98\x33\x0a\xbb\x14" |
| 21893 | "\x1b\x94\x7b\x56\x6a\xa9\x40\x6b" |
| 21894 | "\x4d\x99\x99\x88\xdd", |
| 21895 | .ilen = 29, |
| 21896 | .result = "\x0c\x0d\x0e\x0f\x10\x11\x12\x13" |
| 21897 | "\x14\x15\x16\x17\x18\x19\x1a\x1b" |
| 21898 | "\x1c\x1d\x1e", |
| 21899 | .rlen = 19, |
| 21900 | }, { |
| 21901 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 21902 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 21903 | .klen = 16, |
| 21904 | .iv = "\x01\x00\x33\x56\x8e\xf7\xb2\x63" |
| 21905 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 21906 | .assoc = "\x63\x01\x8f\x76\xdc\x8a\x1b\xcb", |
| 21907 | .alen = 8, |
| 21908 | .input = "\x4c\xcb\x1e\x7c\xa9\x81\xbe\xfa" |
| 21909 | "\xa0\x72\x6c\x55\xd3\x78\x06\x12" |
| 21910 | "\x98\xc8\x5c\x92\x81\x4a\xbc\x33" |
| 21911 | "\xc5\x2e\xe8\x1d\x7d\x77\xc0\x8a", |
| 21912 | .ilen = 32, |
| 21913 | .result = "\x90\x20\xea\x6f\x91\xbd\xd8\x5a" |
| 21914 | "\xfa\x00\x39\xba\x4b\xaf\xf9\xbf" |
| 21915 | "\xb7\x9c\x70\x28\x94\x9c\xd0\xec", |
| 21916 | .rlen = 24, |
| 21917 | }, { |
| 21918 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 21919 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 21920 | .klen = 16, |
| 21921 | .iv = "\x01\x00\xd5\x60\x91\x2d\x3f\x70" |
| 21922 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 21923 | .assoc = "\xcd\x90\x44\xd2\xb7\x1f\xdb\x81" |
| 21924 | "\x20\xea\x60\xc0", |
| 21925 | .alen = 12, |
| 21926 | .input = "\x00\x97\x69\xec\xab\xdf\x48\x62" |
| 21927 | "\x55\x94\xc5\x92\x51\xe6\x03\x57" |
| 21928 | "\x22\x67\x5e\x04\xc8\x47\x09\x9e" |
| 21929 | "\x5a\xe0\x70\x45\x51", |
| 21930 | .ilen = 29, |
| 21931 | .result = "\x64\x35\xac\xba\xfb\x11\xa8\x2e" |
| 21932 | "\x2f\x07\x1d\x7c\xa4\xa5\xeb\xd9" |
| 21933 | "\x3a\x80\x3b\xa8\x7f", |
| 21934 | .rlen = 21, |
| 21935 | }, { |
| 21936 | .key = "\xd7\x82\x8d\x13\xb2\xb0\xbd\xc3" |
| 21937 | "\x25\xa7\x62\x36\xdf\x93\xcc\x6b", |
| 21938 | .klen = 16, |
| 21939 | .iv = "\x01\x00\x42\xff\xf8\xf1\x95\x1c" |
| 21940 | "\x3c\x96\x96\x76\x6c\xfa\x00\x00", |
| 21941 | .assoc = "\xd8\x5b\xc7\xe6\x9f\x94\x4f\xb8", |
| 21942 | .alen = 8, |
| 21943 | .input = "\xbc\x21\x8d\xaa\x94\x74\x27\xb6" |
| 21944 | "\xdb\x38\x6a\x99\xac\x1a\xef\x23" |
| 21945 | "\xad\xe0\xb5\x29\x39\xcb\x6a\x63" |
| 21946 | "\x7c\xf9\xbe\xc2\x40\x88\x97\xc6" |
| 21947 | "\xba", |
| 21948 | .ilen = 33, |
| 21949 | .result = "\x8a\x19\xb9\x50\xbc\xf7\x1a\x01" |
| 21950 | "\x8e\x5e\x67\x01\xc9\x17\x87\x65" |
| 21951 | "\x98\x09\xd6\x7d\xbe\xdd\x18", |
| 21952 | .rlen = 23, |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 21953 | }, { |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 21954 | /* This is taken from FIPS CAVS. */ |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 21955 | .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 21956 | "\xff\x80\x2e\x48\x7d\x82\xf8\xb9", |
| 21957 | .klen = 16, |
| 21958 | .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab" |
| 21959 | "\xd8\xa6\xb2\xd8\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 21960 | .alen = 0, |
| 21961 | .input = "\xd5\xe8\x93\x9f\xc7\x89\x2e\x2b", |
| 21962 | .ilen = 8, |
| 21963 | .result = "\x00", |
| 21964 | .rlen = 0, |
| 21965 | .novrfy = 1, |
| 21966 | }, { |
| 21967 | .key = "\xab\x2f\x8a\x74\xb7\x1c\xd2\xb1" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 21968 | "\xff\x80\x2e\x48\x7d\x82\xf8\xb9", |
| 21969 | .klen = 16, |
| 21970 | .iv = "\x03\xaf\x94\x87\x78\x35\x82\x81" |
| 21971 | "\x7f\x88\x94\x68\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 21972 | .alen = 0, |
| 21973 | .input = "\x41\x3c\xb8\x87\x73\xcb\xf3\xf3", |
| 21974 | .ilen = 8, |
| 21975 | .result = "\x00", |
| 21976 | .rlen = 0, |
| 21977 | }, { |
| 21978 | .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 21979 | "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8", |
| 21980 | .klen = 16, |
| 21981 | .iv = "\x03\xc6\xfb\x7d\x80\x0d\x13\xab" |
| 21982 | "\xd8\xa6\xb2\xd8\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 21983 | .assoc = "\xf3\x94\x87\x78\x35\x82\x81\x7f" |
| 21984 | "\x88\x94\x68\xb1\x78\x6b\x2b\xd6" |
| 21985 | "\x04\x1f\x4e\xed\x78\xd5\x33\x66" |
| 21986 | "\xd8\x94\x99\x91\x81\x54\x62\x57", |
| 21987 | .alen = 32, |
| 21988 | .input = "\xf0\x7c\x29\x02\xae\x1c\x2f\x55" |
| 21989 | "\xd0\xd1\x3d\x1a\xa3\x6d\xe4\x0a" |
| 21990 | "\x86\xb0\x87\x6b\x62\x33\x8c\x34" |
| 21991 | "\xce\xab\x57\xcc\x79\x0b\xe0\x6f" |
| 21992 | "\x5c\x3e\x48\x1f\x6c\x46\xf7\x51" |
| 21993 | "\x8b\x84\x83\x2a\xc1\x05\xb8\xc5", |
| 21994 | .ilen = 48, |
| 21995 | .result = "\x50\x82\x3e\x07\xe2\x1e\xb6\xfb" |
| 21996 | "\x33\xe4\x73\xce\xd2\xfb\x95\x79" |
| 21997 | "\xe8\xb4\xb5\x77\x11\x10\x62\x6f" |
| 21998 | "\x6a\x82\xd1\x13\xec\xf5\xd0\x48", |
| 21999 | .rlen = 32, |
| 22000 | .novrfy = 1, |
| 22001 | }, { |
| 22002 | .key = "\x61\x0e\x8c\xae\xe3\x23\xb6\x38" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 22003 | "\x76\x1c\xf6\x3a\x67\xa3\x9c\xd8", |
| 22004 | .klen = 16, |
| 22005 | .iv = "\x03\x05\xe0\xc9\x0f\xed\x34\xea" |
| 22006 | "\x97\xd4\x3b\xdf\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 22007 | .assoc = "\x49\x5c\x50\x1f\x1d\x94\xcc\x81" |
| 22008 | "\xba\xb7\xb6\x03\xaf\xa5\xc1\xa1" |
| 22009 | "\xd8\x5c\x42\x68\xe0\x6c\xda\x89" |
| 22010 | "\x05\xac\x56\xac\x1b\x2a\xd3\x86", |
| 22011 | .alen = 32, |
| 22012 | .input = "\x39\xbe\x7d\x15\x62\x77\xf3\x3c" |
| 22013 | "\xad\x83\x52\x6d\x71\x03\x25\x1c" |
| 22014 | "\xed\x81\x3a\x9a\x16\x7d\x19\x80" |
| 22015 | "\x72\x04\x72\xd0\xf6\xff\x05\x0f" |
| 22016 | "\xb7\x14\x30\x00\x32\x9e\xa0\xa6" |
| 22017 | "\x9e\x5a\x18\xa1\xb8\xfe\xdb\xd3", |
| 22018 | .ilen = 48, |
| 22019 | .result = "\x75\x05\xbe\xc2\xd9\x1e\xde\x60" |
| 22020 | "\x47\x3d\x8c\x7d\xbd\xb5\xd9\xb7" |
| 22021 | "\xf2\xae\x61\x05\x8f\x82\x24\x3f" |
| 22022 | "\x9c\x67\x91\xe1\x38\x4f\xe4\x0c", |
| 22023 | .rlen = 32, |
| 22024 | }, { |
| 22025 | .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" |
| 22026 | "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 22027 | "\xa4\x48\x93\x39\x26\x71\x4a\xc6", |
| 22028 | .klen = 24, |
| 22029 | .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9" |
| 22030 | "\x57\xba\xfd\x9e\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 22031 | .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" |
| 22032 | "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" |
| 22033 | "\xa4\xf0\x13\x05\xd1\x77\x99\x67" |
| 22034 | "\x11\xc4\xc6\xdb\x00\x56\x36\x61", |
| 22035 | .alen = 32, |
| 22036 | .input = "\x71\x99\xfa\xf4\x44\x12\x68\x9b", |
| 22037 | .ilen = 8, |
| 22038 | .result = "\x00", |
| 22039 | .rlen = 0, |
| 22040 | }, { |
| 22041 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 22042 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 22043 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba", |
| 22044 | .klen = 24, |
| 22045 | .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9" |
| 22046 | "\x57\xba\xfd\x9e\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 22047 | .assoc = "\x44\xa6\x2c\x05\xe9\xe1\x43\xb1" |
| 22048 | "\x58\x7c\xf2\x5c\x6d\x39\x0a\x64" |
| 22049 | "\xa4\xf0\x13\x05\xd1\x77\x99\x67" |
| 22050 | "\x11\xc4\xc6\xdb\x00\x56\x36\x61", |
| 22051 | .alen = 32, |
| 22052 | .input = "\xfb\xe5\x5d\x34\xbe\xe5\xe8\xe7" |
| 22053 | "\x5a\xef\x2f\xbf\x1f\x7f\xd4\xb2" |
| 22054 | "\x66\xca\x61\x1e\x96\x7a\x61\xb3" |
| 22055 | "\x1c\x16\x45\x52\xba\x04\x9c\x9f" |
| 22056 | "\xb1\xd2\x40\xbc\x52\x7c\x6f\xb1", |
| 22057 | .ilen = 40, |
| 22058 | .result = "\x85\x34\x66\x42\xc8\x92\x0f\x36" |
| 22059 | "\x58\xe0\x6b\x91\x3c\x98\x5c\xbb" |
| 22060 | "\x0a\x85\xcc\x02\xad\x7a\x96\xe9" |
| 22061 | "\x65\x43\xa4\xc3\x0f\xdc\x55\x81", |
| 22062 | .rlen = 32, |
| 22063 | }, { |
| 22064 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 22065 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 22066 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba", |
| 22067 | .klen = 24, |
| 22068 | .iv = "\x03\xd1\xfc\x57\x9c\xfe\xb8\x9c" |
| 22069 | "\xad\x71\xaa\x1f\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 22070 | .assoc = "\x86\x67\xa5\xa9\x14\x5f\x0d\xc6" |
| 22071 | "\xff\x14\xc7\x44\xbf\x6c\x3a\xc3" |
| 22072 | "\xff\xb6\x81\xbd\xe2\xd5\x06\xc7" |
| 22073 | "\x3c\xa1\x52\x13\x03\x8a\x23\x3a", |
| 22074 | .alen = 32, |
| 22075 | .input = "\x3f\x66\xb0\x9d\xe5\x4b\x38\x00" |
| 22076 | "\xc6\x0e\x6e\xe5\xd6\x98\xa6\x37" |
| 22077 | "\x8c\x26\x33\xc6\xb2\xa2\x17\xfa" |
| 22078 | "\x64\x19\xc0\x30\xd7\xfc\x14\x6b" |
| 22079 | "\xe3\x33\xc2\x04\xb0\x37\xbe\x3f" |
| 22080 | "\xa9\xb4\x2d\x68\x03\xa3\x44\xef", |
| 22081 | .ilen = 48, |
| 22082 | .result = "\x02\x87\x4d\x28\x80\x6e\xb2\xed" |
| 22083 | "\x99\x2a\xa8\xca\x04\x25\x45\x90" |
| 22084 | "\x1d\xdd\x5a\xd9\xe4\xdb\x9c\x9c" |
| 22085 | "\x49\xe9\x01\xfe\xa7\x80\x6d\x6b", |
| 22086 | .rlen = 32, |
| 22087 | .novrfy = 1, |
| 22088 | }, { |
| 22089 | .key = "\xa4\x4b\x54\x29\x0a\xb8\x6d\x01" |
| 22090 | "\x5b\x80\x2a\xcf\x25\xc4\xb7\x5c" |
| 22091 | "\x20\x2c\xad\x30\xc2\x2b\x41\xfb" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 22092 | "\x0e\x85\xbc\x33\xad\x0f\x2b\xff", |
| 22093 | .klen = 32, |
| 22094 | .iv = "\x03\xee\x49\x83\xe9\xa9\xff\xe9" |
| 22095 | "\x57\xba\xfd\x9e\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 22096 | .alen = 0, |
| 22097 | .input = "\x1f\xb8\x8f\xa3\xdd\x54\x00\xf2", |
| 22098 | .ilen = 8, |
| 22099 | .result = "\x00", |
| 22100 | .rlen = 0, |
| 22101 | }, { |
| 22102 | .key = "\x39\xbb\xa7\xbe\x59\x97\x9e\x73" |
| 22103 | "\xa2\xbc\x6b\x98\xd7\x75\x7f\xe3" |
| 22104 | "\xa4\x48\x93\x39\x26\x71\x4a\xc6" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 22105 | "\xae\x8f\x11\x4c\xc2\x9c\x4a\xbb", |
| 22106 | .klen = 32, |
| 22107 | .iv = "\x03\x85\x34\x66\x42\xc8\x92\x0f" |
| 22108 | "\x36\x58\xe0\x6b\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 22109 | .alen = 0, |
| 22110 | .input = "\x48\x01\x5e\x02\x24\x04\x66\x47" |
| 22111 | "\xa1\xea\x6f\xaf\xe8\xfc\xfb\xdd" |
| 22112 | "\xa5\xa9\x87\x8d\x84\xee\x2e\x77" |
| 22113 | "\xbb\x86\xb9\xf5\x5c\x6c\xff\xf6" |
| 22114 | "\x72\xc3\x8e\xf7\x70\xb1\xb2\x07" |
| 22115 | "\xbc\xa8\xa3\xbd\x83\x7c\x1d\x2a", |
| 22116 | .ilen = 48, |
| 22117 | .result = "\xdc\x56\xf2\x71\xb0\xb1\xa0\x6c" |
| 22118 | "\xf0\x97\x3a\xfb\x6d\xe7\x32\x99" |
| 22119 | "\x3e\xaf\x70\x5e\xb2\x4d\xea\x39" |
| 22120 | "\x89\xd4\x75\x7a\x63\xb1\xda\x93", |
| 22121 | .rlen = 32, |
| 22122 | .novrfy = 1, |
| 22123 | }, { |
| 22124 | .key = "\x58\x5d\xa0\x96\x65\x1a\x04\xd7" |
| 22125 | "\x96\xe5\xc5\x68\xaa\x95\x35\xe0" |
| 22126 | "\x29\xa0\xba\x9e\x48\x78\xd1\xba" |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 22127 | "\x0d\x1a\x53\x3b\xb5\xe3\xf8\x8b", |
| 22128 | .klen = 32, |
| 22129 | .iv = "\x03\xcf\x76\x3f\xd9\x95\x75\x8f" |
| 22130 | "\x44\x89\x40\x7b\x00\x00\x00\x00", |
Jarod Wilson | 5d66732 | 2009-05-04 19:23:40 +0800 | [diff] [blame] | 22131 | .assoc = "\x8f\x86\x6c\x4d\x1d\xc5\x39\x88" |
| 22132 | "\xc8\xf3\x5c\x52\x10\x63\x6f\x2b" |
| 22133 | "\x8a\x2a\xc5\x6f\x30\x23\x58\x7b" |
| 22134 | "\xfb\x36\x03\x11\xb4\xd9\xf2\xfe", |
| 22135 | .alen = 32, |
| 22136 | .input = "\x48\x58\xd6\xf3\xad\x63\x58\xbf" |
| 22137 | "\xae\xc7\x5e\xae\x83\x8f\x7b\xe4" |
| 22138 | "\x78\x5c\x4c\x67\x71\x89\x94\xbf" |
| 22139 | "\x47\xf1\x63\x7e\x1c\x59\xbd\xc5" |
| 22140 | "\x7f\x44\x0a\x0c\x01\x18\x07\x92" |
| 22141 | "\xe1\xd3\x51\xce\x32\x6d\x0c\x5b", |
| 22142 | .ilen = 48, |
| 22143 | .result = "\xc2\x54\xc8\xde\x78\x87\x77\x40" |
| 22144 | "\x49\x71\xe4\xb7\xe7\xcb\x76\x61" |
| 22145 | "\x0a\x41\xb9\xe9\xc0\x76\x54\xab" |
| 22146 | "\x04\x49\x3b\x19\x93\x57\x25\x5d", |
| 22147 | .rlen = 32, |
| 22148 | }, |
| 22149 | }; |
| 22150 | |
Jarod Wilson | e08ca2d | 2009-05-04 19:46:29 +0800 | [diff] [blame] | 22151 | /* |
Herbert Xu | 0bc5a6c | 2015-07-14 16:53:17 +0800 | [diff] [blame] | 22152 | * rfc4309 refers to section 8 of rfc3610 for test vectors, but they all |
| 22153 | * use a 13-byte nonce, we only support an 11-byte nonce. Worse, |
| 22154 | * they use AD lengths which are not valid ESP header lengths. |
| 22155 | * |
| 22156 | * These vectors are copied/generated from the ones for rfc4106 with |
| 22157 | * the key truncated by one byte.. |
| 22158 | */ |
| 22159 | static struct aead_testvec aes_ccm_rfc4309_enc_tv_template[] = { |
| 22160 | { /* Generated using Crypto++ */ |
| 22161 | .key = zeroed_string, |
| 22162 | .klen = 19, |
| 22163 | .iv = zeroed_string, |
| 22164 | .input = zeroed_string, |
| 22165 | .ilen = 16, |
| 22166 | .assoc = zeroed_string, |
| 22167 | .alen = 16, |
| 22168 | .result = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F" |
| 22169 | "\x12\x50\xE8\xDE\x81\x3C\x63\x08" |
| 22170 | "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5" |
| 22171 | "\x27\x50\x01\xAC\x03\x33\x39\xFB", |
| 22172 | .rlen = 32, |
| 22173 | },{ |
| 22174 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22175 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22176 | "\x00\x00\x00", |
| 22177 | .klen = 19, |
| 22178 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22179 | .input = zeroed_string, |
| 22180 | .ilen = 16, |
| 22181 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 22182 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22183 | .alen = 16, |
| 22184 | .result = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F" |
| 22185 | "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17" |
| 22186 | "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA" |
| 22187 | "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0", |
| 22188 | .rlen = 32, |
| 22189 | |
| 22190 | }, { |
| 22191 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22192 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22193 | "\x00\x00\x00", |
| 22194 | .klen = 19, |
| 22195 | .iv = zeroed_string, |
| 22196 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22197 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22198 | .ilen = 16, |
| 22199 | .assoc = zeroed_string, |
| 22200 | .alen = 16, |
| 22201 | .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6" |
| 22202 | "\x61\xF4\xF5\x41\x03\x4A\xE3\x86" |
| 22203 | "\xA1\xE2\xC2\x42\x2B\x81\x70\x40" |
| 22204 | "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C", |
| 22205 | .rlen = 32, |
| 22206 | }, { |
| 22207 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22208 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22209 | "\x00\x00\x00", |
| 22210 | .klen = 19, |
| 22211 | .iv = zeroed_string, |
| 22212 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22213 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22214 | .ilen = 16, |
| 22215 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22216 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 22217 | .alen = 16, |
| 22218 | .result = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6" |
| 22219 | "\x61\xF4\xF5\x41\x03\x4A\xE3\x86" |
| 22220 | "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9" |
| 22221 | "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E", |
| 22222 | .rlen = 32, |
| 22223 | }, { |
| 22224 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22225 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22226 | "\x00\x00\x00", |
| 22227 | .klen = 19, |
| 22228 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22229 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22230 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22231 | .ilen = 16, |
| 22232 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22233 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22234 | .alen = 16, |
| 22235 | .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E" |
| 22236 | "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16" |
| 22237 | "\x43\x8E\x76\x57\x3B\xB4\x05\xE8" |
| 22238 | "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED", |
| 22239 | .rlen = 32, |
| 22240 | }, { |
| 22241 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22242 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22243 | "\x00\x00\x00", |
| 22244 | .klen = 19, |
| 22245 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22246 | .input = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22247 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22248 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22249 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22250 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22251 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22252 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22253 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22254 | .ilen = 64, |
| 22255 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22256 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22257 | .alen = 16, |
| 22258 | .result = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E" |
| 22259 | "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16" |
| 22260 | "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4" |
| 22261 | "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02" |
| 22262 | "\x9B\xAB\x39\x18\xEB\x94\x34\x36" |
| 22263 | "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49" |
| 22264 | "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E" |
| 22265 | "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB" |
| 22266 | "\x02\x73\xDD\xE7\x30\x4A\x30\x54" |
| 22267 | "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F", |
| 22268 | .rlen = 80, |
| 22269 | }, { |
| 22270 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 22271 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 22272 | "\x00\x00\x00", |
| 22273 | .klen = 19, |
| 22274 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef", |
| 22275 | .input = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22276 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22277 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22278 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22279 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22280 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22281 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22282 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22283 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22284 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22285 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22286 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22287 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22288 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22289 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22290 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22291 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22292 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22293 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22294 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22295 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22296 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22297 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22298 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 22299 | .ilen = 192, |
| 22300 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 22301 | "\xaa\xaa\xaa\xaa\x00\x00\x45\x67" |
| 22302 | "\x89\xab\xcd\xef", |
| 22303 | .alen = 20, |
| 22304 | .result = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E" |
| 22305 | "\x7C\x64\x6D\x33\x46\x77\xAC\xB1" |
| 22306 | "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95" |
| 22307 | "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C" |
| 22308 | "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB" |
| 22309 | "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01" |
| 22310 | "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04" |
| 22311 | "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B" |
| 22312 | "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09" |
| 22313 | "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79" |
| 22314 | "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D" |
| 22315 | "\x22\xEB\xD1\x09\x80\x3F\x5A\x70" |
| 22316 | "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B" |
| 22317 | "\x36\x12\x00\x89\xAA\x5D\x55\xDA" |
| 22318 | "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6" |
| 22319 | "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F" |
| 22320 | "\x2B\x50\x44\x52\xC2\x10\x7D\x38" |
| 22321 | "\x82\x64\x83\x0C\xAE\x49\xD0\xE5" |
| 22322 | "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43" |
| 22323 | "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC" |
| 22324 | "\x19\x6D\x60\x66\x61\xF9\x9A\x3F" |
| 22325 | "\x75\xFC\x38\x53\x5B\xB5\xCD\x52" |
| 22326 | "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98" |
| 22327 | "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E" |
| 22328 | "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC" |
| 22329 | "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A", |
| 22330 | .rlen = 208, |
| 22331 | }, { /* From draft-mcgrew-gcm-test-01 */ |
| 22332 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 22333 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 22334 | "\x2E\x44\x3B", |
| 22335 | .klen = 19, |
| 22336 | .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE", |
| 22337 | .input = "\x45\x00\x00\x48\x69\x9A\x00\x00" |
| 22338 | "\x80\x11\x4D\xB7\xC0\xA8\x01\x02" |
| 22339 | "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56" |
| 22340 | "\x38\xD3\x01\x00\x00\x01\x00\x00" |
| 22341 | "\x00\x00\x00\x00\x04\x5F\x73\x69" |
| 22342 | "\x70\x04\x5F\x75\x64\x70\x03\x73" |
| 22343 | "\x69\x70\x09\x63\x79\x62\x65\x72" |
| 22344 | "\x63\x69\x74\x79\x02\x64\x6B\x00" |
| 22345 | "\x00\x21\x00\x01\x01\x02\x02\x01", |
| 22346 | .ilen = 72, |
| 22347 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
| 22348 | "\x00\x00\x00\x00\x49\x56\xED\x7E" |
| 22349 | "\x3B\x24\x4C\xFE", |
| 22350 | .alen = 20, |
| 22351 | .result = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB" |
| 22352 | "\x83\x60\xF5\xBA\x3A\x56\x79\xE6" |
| 22353 | "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E" |
| 22354 | "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF" |
| 22355 | "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0" |
| 22356 | "\x39\xF8\x53\x6D\x31\x22\x2B\xBF" |
| 22357 | "\x98\x81\xFC\x34\xEE\x85\x36\xCD" |
| 22358 | "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35" |
| 22359 | "\x18\x85\x54\xB2\xBC\xDD\x3F\x43" |
| 22360 | "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC" |
| 22361 | "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF", |
| 22362 | .rlen = 88, |
| 22363 | }, { |
| 22364 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 22365 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 22366 | "\xCA\xFE\xBA", |
| 22367 | .klen = 19, |
| 22368 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 22369 | .input = "\x45\x00\x00\x3E\x69\x8F\x00\x00" |
| 22370 | "\x80\x11\x4D\xCC\xC0\xA8\x01\x02" |
| 22371 | "\xC0\xA8\x01\x01\x0A\x98\x00\x35" |
| 22372 | "\x00\x2A\x23\x43\xB2\xD0\x01\x00" |
| 22373 | "\x00\x01\x00\x00\x00\x00\x00\x00" |
| 22374 | "\x03\x73\x69\x70\x09\x63\x79\x62" |
| 22375 | "\x65\x72\x63\x69\x74\x79\x02\x64" |
| 22376 | "\x6B\x00\x00\x01\x00\x01\x00\x01", |
| 22377 | .ilen = 64, |
| 22378 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 22379 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 22380 | .alen = 16, |
| 22381 | .result = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8" |
| 22382 | "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16" |
| 22383 | "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF" |
| 22384 | "\xF5\x71\xB6\x37\x84\xA7\xB1\x99" |
| 22385 | "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D" |
| 22386 | "\xEF\x25\x88\x1F\x1D\x77\x11\xFF" |
| 22387 | "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B" |
| 22388 | "\x00\x62\x1F\x68\x4E\x7C\xA0\x97" |
| 22389 | "\x10\x72\x7E\x53\x13\x3B\x68\xE4" |
| 22390 | "\x30\x99\x91\x79\x09\xEA\xFF\x6A", |
| 22391 | .rlen = 80, |
| 22392 | }, { |
| 22393 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22394 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22395 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22396 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22397 | "\x11\x22\x33", |
| 22398 | .klen = 35, |
| 22399 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 22400 | .input = "\x45\x00\x00\x30\x69\xA6\x40\x00" |
| 22401 | "\x80\x06\x26\x90\xC0\xA8\x01\x02" |
| 22402 | "\x93\x89\x15\x5E\x0A\x9E\x00\x8B" |
| 22403 | "\x2D\xC5\x7E\xE0\x00\x00\x00\x00" |
| 22404 | "\x70\x02\x40\x00\x20\xBF\x00\x00" |
| 22405 | "\x02\x04\x05\xB4\x01\x01\x04\x02" |
| 22406 | "\x01\x02\x02\x01", |
| 22407 | .ilen = 52, |
| 22408 | .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02" |
| 22409 | "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 22410 | .alen = 16, |
| 22411 | .result = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F" |
| 22412 | "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4" |
| 22413 | "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD" |
| 22414 | "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55" |
| 22415 | "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10" |
| 22416 | "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B" |
| 22417 | "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92" |
| 22418 | "\x23\xA6\x10\xB0\x26\xD6\xD9\x26" |
| 22419 | "\x5A\x48\x6A\x3E", |
| 22420 | .rlen = 68, |
| 22421 | }, { |
| 22422 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 22423 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 22424 | "\x00\x00\x00", |
| 22425 | .klen = 19, |
| 22426 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 22427 | .input = "\x45\x00\x00\x3C\x99\xC5\x00\x00" |
| 22428 | "\x80\x01\xCB\x7A\x40\x67\x93\x18" |
| 22429 | "\x01\x01\x01\x01\x08\x00\x07\x5C" |
| 22430 | "\x02\x00\x44\x00\x61\x62\x63\x64" |
| 22431 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 22432 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 22433 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 22434 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 22435 | .ilen = 64, |
| 22436 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 22437 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 22438 | .alen = 16, |
| 22439 | .result = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F" |
| 22440 | "\x92\x51\x23\xA4\xC1\x5B\xF0\x10" |
| 22441 | "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC" |
| 22442 | "\x89\xC8\xF8\x42\x62\x95\xB7\xCB" |
| 22443 | "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7" |
| 22444 | "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C" |
| 22445 | "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9" |
| 22446 | "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE" |
| 22447 | "\x36\x25\xC1\x10\x12\x1C\xCA\x82" |
| 22448 | "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A", |
| 22449 | .rlen = 80, |
| 22450 | }, { |
| 22451 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 22452 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 22453 | "\x57\x69\x0E", |
| 22454 | .klen = 19, |
| 22455 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 22456 | .input = "\x45\x00\x00\x3C\x99\xC3\x00\x00" |
| 22457 | "\x80\x01\xCB\x7C\x40\x67\x93\x18" |
| 22458 | "\x01\x01\x01\x01\x08\x00\x08\x5C" |
| 22459 | "\x02\x00\x43\x00\x61\x62\x63\x64" |
| 22460 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 22461 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 22462 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 22463 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 22464 | .ilen = 64, |
| 22465 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 22466 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 22467 | "\xA2\xFC\xA1\xA3", |
| 22468 | .alen = 20, |
| 22469 | .result = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6" |
| 22470 | "\x10\x60\x40\x62\x6B\x4F\x97\x8E" |
| 22471 | "\x0B\xB2\x22\x97\xCB\x21\xE0\x90" |
| 22472 | "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B" |
| 22473 | "\x79\x01\x58\x50\x01\x06\xE1\xE0" |
| 22474 | "\x2C\x83\x79\xD3\xDE\x46\x97\x1A" |
| 22475 | "\x30\xB8\xE5\xDF\xD7\x12\x56\x75" |
| 22476 | "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD" |
| 22477 | "\x97\x57\xCA\xC1\x20\xD0\x86\xB9" |
| 22478 | "\x66\x9D\xB4\x2B\x96\x22\xAC\x67", |
| 22479 | .rlen = 80, |
| 22480 | }, { |
| 22481 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 22482 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 22483 | "\x57\x69\x0E", |
| 22484 | .klen = 19, |
| 22485 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 22486 | .input = "\x45\x00\x00\x1C\x42\xA2\x00\x00" |
| 22487 | "\x80\x01\x44\x1F\x40\x67\x93\xB6" |
| 22488 | "\xE0\x00\x00\x02\x0A\x00\xF5\xFF" |
| 22489 | "\x01\x02\x02\x01", |
| 22490 | .ilen = 28, |
| 22491 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 22492 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 22493 | "\xA2\xFC\xA1\xA3", |
| 22494 | .alen = 20, |
| 22495 | .result = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6" |
| 22496 | "\x10\x60\xCF\x01\x6B\x4F\x97\x20" |
| 22497 | "\xEA\xB3\x23\x94\xC9\x21\x1D\x33" |
| 22498 | "\xA1\xE5\x90\x40\x05\x37\x45\x70" |
| 22499 | "\xB5\xD6\x09\x0A\x23\x73\x33\xF9" |
| 22500 | "\x08\xB4\x22\xE4", |
| 22501 | .rlen = 44, |
| 22502 | }, { |
| 22503 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 22504 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 22505 | "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 22506 | "\xCA\xFE\xBA", |
| 22507 | .klen = 27, |
| 22508 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 22509 | .input = "\x45\x00\x00\x28\xA4\xAD\x40\x00" |
| 22510 | "\x40\x06\x78\x80\x0A\x01\x03\x8F" |
| 22511 | "\x0A\x01\x06\x12\x80\x23\x06\xB8" |
| 22512 | "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E" |
| 22513 | "\x50\x10\x16\xD0\x75\x68\x00\x01", |
| 22514 | .ilen = 40, |
| 22515 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 22516 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 22517 | .alen = 16, |
| 22518 | .result = "\x05\x22\x15\xD1\x52\x56\x85\x04" |
| 22519 | "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA" |
| 22520 | "\xEA\x16\x37\x50\xF3\xDF\x84\x3B" |
| 22521 | "\x2F\x32\x18\x57\x34\x2A\x8C\x23" |
| 22522 | "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB" |
| 22523 | "\x34\xA5\x9F\x6C\x48\x30\x1E\x22" |
| 22524 | "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B", |
| 22525 | .rlen = 56, |
| 22526 | }, { |
| 22527 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22528 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22529 | "\xDE\xCA\xF8", |
| 22530 | .klen = 19, |
| 22531 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 22532 | .input = "\x45\x00\x00\x49\x33\xBA\x00\x00" |
| 22533 | "\x7F\x11\x91\x06\xC3\xFB\x1D\x10" |
| 22534 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 22535 | "\x00\x35\xDD\x7B\x80\x03\x02\xD5" |
| 22536 | "\x00\x00\x4E\x20\x00\x1E\x8C\x18" |
| 22537 | "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47" |
| 22538 | "\x6B\x91\xB9\x24\xB2\x80\x38\x9D" |
| 22539 | "\x92\xC9\x63\xBA\xC0\x46\xEC\x95" |
| 22540 | "\x9B\x62\x66\xC0\x47\x22\xB1\x49" |
| 22541 | "\x23\x01\x01\x01", |
| 22542 | .ilen = 76, |
| 22543 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
| 22544 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 22545 | "\xCE\xFA\xCE\x74", |
| 22546 | .alen = 20, |
| 22547 | .result = "\x92\xD0\x53\x79\x33\x38\xD5\xF3" |
| 22548 | "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90" |
| 22549 | "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76" |
| 22550 | "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00" |
| 22551 | "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA" |
| 22552 | "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7" |
| 22553 | "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6" |
| 22554 | "\x63\xC9\xDB\x05\x69\x51\x12\xAD" |
| 22555 | "\x3E\x00\x32\x73\x86\xF2\xEE\xF5" |
| 22556 | "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D" |
| 22557 | "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7" |
| 22558 | "\x12\x25\x0B\xF9", |
| 22559 | .rlen = 92, |
| 22560 | }, { |
| 22561 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22562 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22563 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22564 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22565 | "\x73\x61\x6C", |
| 22566 | .klen = 35, |
| 22567 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 22568 | .input = "\x45\x08\x00\x28\x73\x2C\x00\x00" |
| 22569 | "\x40\x06\xE9\xF9\x0A\x01\x06\x12" |
| 22570 | "\x0A\x01\x03\x8F\x06\xB8\x80\x23" |
| 22571 | "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02" |
| 22572 | "\x50\x10\x1F\x64\x6D\x54\x00\x01", |
| 22573 | .ilen = 40, |
| 22574 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
| 22575 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 22576 | "\x69\x76\x65\x63", |
| 22577 | .alen = 20, |
| 22578 | .result = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42" |
| 22579 | "\x2C\x64\x87\x46\x1E\x34\x10\x05" |
| 22580 | "\x29\x6B\xBB\x36\xE9\x69\xAD\x92" |
| 22581 | "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D" |
| 22582 | "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA" |
| 22583 | "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7" |
| 22584 | "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D", |
| 22585 | .rlen = 56, |
| 22586 | }, { |
| 22587 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 22588 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 22589 | "\x57\x69\x0E", |
| 22590 | .klen = 19, |
| 22591 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 22592 | .input = "\x45\x00\x00\x49\x33\x3E\x00\x00" |
| 22593 | "\x7F\x11\x91\x82\xC3\xFB\x1D\x10" |
| 22594 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 22595 | "\x00\x35\xCB\x45\x80\x03\x02\x5B" |
| 22596 | "\x00\x00\x01\xE0\x00\x1E\x8C\x18" |
| 22597 | "\xD6\x57\x59\xD5\x22\x84\xA0\x35" |
| 22598 | "\x2C\x71\x47\x5C\x88\x80\x39\x1C" |
| 22599 | "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32" |
| 22600 | "\x5A\xE2\x70\xC0\x38\x99\x49\x39" |
| 22601 | "\x15\x01\x01\x01", |
| 22602 | .ilen = 76, |
| 22603 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 22604 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 22605 | "\xA2\xFC\xA1\xA3", |
| 22606 | .alen = 20, |
| 22607 | .result = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6" |
| 22608 | "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86" |
| 22609 | "\xC8\x02\xF0\xB0\x03\x09\xD9\x02" |
| 22610 | "\xA0\xD2\x59\x04\xD1\x85\x2A\x24" |
| 22611 | "\x1C\x67\x3E\xD8\x68\x72\x06\x94" |
| 22612 | "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B" |
| 22613 | "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C" |
| 22614 | "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE" |
| 22615 | "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5" |
| 22616 | "\x23\xF4\x84\x40\x74\x14\x8A\x6B" |
| 22617 | "\xDB\xD7\x67\xED\xA4\x93\xF3\x47" |
| 22618 | "\xCC\xF7\x46\x6F", |
| 22619 | .rlen = 92, |
| 22620 | }, { |
| 22621 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22622 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22623 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22624 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22625 | "\x73\x61\x6C", |
| 22626 | .klen = 35, |
| 22627 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 22628 | .input = "\x63\x69\x73\x63\x6F\x01\x72\x75" |
| 22629 | "\x6C\x65\x73\x01\x74\x68\x65\x01" |
| 22630 | "\x6E\x65\x74\x77\x65\x01\x64\x65" |
| 22631 | "\x66\x69\x6E\x65\x01\x74\x68\x65" |
| 22632 | "\x74\x65\x63\x68\x6E\x6F\x6C\x6F" |
| 22633 | "\x67\x69\x65\x73\x01\x74\x68\x61" |
| 22634 | "\x74\x77\x69\x6C\x6C\x01\x64\x65" |
| 22635 | "\x66\x69\x6E\x65\x74\x6F\x6D\x6F" |
| 22636 | "\x72\x72\x6F\x77\x01\x02\x02\x01", |
| 22637 | .ilen = 72, |
| 22638 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
| 22639 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 22640 | "\x69\x76\x65\x63", |
| 22641 | .alen = 20, |
| 22642 | .result = "\xEA\x15\xC4\x98\xAC\x15\x22\x37" |
| 22643 | "\x00\x07\x1D\xBE\x60\x5D\x73\x16" |
| 22644 | "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4" |
| 22645 | "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A" |
| 22646 | "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4" |
| 22647 | "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5" |
| 22648 | "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6" |
| 22649 | "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C" |
| 22650 | "\x73\xF4\xE7\x12\x84\x4C\x37\x0A" |
| 22651 | "\x4A\x8F\x06\x37\x48\xF9\xF9\x05" |
| 22652 | "\x55\x13\x40\xC3\xD5\x55\x3A\x3D", |
| 22653 | .rlen = 88, |
| 22654 | }, { |
| 22655 | .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" |
| 22656 | "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47" |
| 22657 | "\xD9\x66\x42", |
| 22658 | .klen = 19, |
| 22659 | .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 22660 | .input = "\x01\x02\x02\x01", |
| 22661 | .ilen = 4, |
| 22662 | .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF" |
| 22663 | "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 22664 | .alen = 16, |
| 22665 | .result = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD" |
| 22666 | "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90" |
| 22667 | "\xF7\x61\x24\x62", |
| 22668 | .rlen = 20, |
| 22669 | }, { |
| 22670 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 22671 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 22672 | "\xDE\xCA\xF8", |
| 22673 | .klen = 19, |
| 22674 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 22675 | .input = "\x74\x6F\x01\x62\x65\x01\x6F\x72" |
| 22676 | "\x01\x6E\x6F\x74\x01\x74\x6F\x01" |
| 22677 | "\x62\x65\x00\x01", |
| 22678 | .ilen = 20, |
| 22679 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
| 22680 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 22681 | "\xCE\xFA\xCE\x74", |
| 22682 | .alen = 20, |
| 22683 | .result = "\xA3\xBF\x52\x52\x65\x83\xBA\x81" |
| 22684 | "\x03\x9B\x84\xFC\x44\x8C\xBB\x81" |
| 22685 | "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0" |
| 22686 | "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC" |
| 22687 | "\x17\x17\x65\xAD", |
| 22688 | .rlen = 36, |
| 22689 | }, { |
| 22690 | .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" |
| 22691 | "\x6D\x61\x72\x69\x6A\x75\x61\x6E" |
| 22692 | "\x61\x61\x6E\x64\x64\x6F\x69\x74" |
| 22693 | "\x62\x65\x66\x6F\x72\x65\x69\x61" |
| 22694 | "\x74\x75\x72", |
| 22695 | .klen = 35, |
| 22696 | .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D", |
| 22697 | .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 22698 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 22699 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 22700 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 22701 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 22702 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 22703 | "\x01\x02\x02\x01", |
| 22704 | .ilen = 52, |
| 22705 | .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF" |
| 22706 | "\xFF\xFF\xFF\xFF\x33\x30\x21\x69" |
| 22707 | "\x67\x65\x74\x6D", |
| 22708 | .alen = 20, |
| 22709 | .result = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10" |
| 22710 | "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A" |
| 22711 | "\x48\x59\x80\x18\x1A\x18\x1A\x04" |
| 22712 | "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75" |
| 22713 | "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF" |
| 22714 | "\x16\xC3\x35\xA8\xE7\xCE\x84\x04" |
| 22715 | "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42" |
| 22716 | "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B" |
| 22717 | "\x39\xDB\xC8\xDC", |
| 22718 | .rlen = 68, |
| 22719 | }, { |
| 22720 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 22721 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 22722 | "\x57\x69\x0E", |
| 22723 | .klen = 19, |
| 22724 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 22725 | .input = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 22726 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 22727 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 22728 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 22729 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 22730 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 22731 | "\x01\x02\x02\x01", |
| 22732 | .ilen = 52, |
| 22733 | .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10" |
| 22734 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 22735 | "\xA2\xFC\xA1\xA3", |
| 22736 | .alen = 20, |
| 22737 | .result = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6" |
| 22738 | "\x10\x60\x54\x25\xEB\x80\x04\x93" |
| 22739 | "\xCA\x1B\x23\x97\xCB\x21\x2E\x01" |
| 22740 | "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B" |
| 22741 | "\x79\x01\x58\x50\x01\x06\xE1\xE0" |
| 22742 | "\x2C\x83\x79\xD3\xDE\x46\x97\x1A" |
| 22743 | "\x44\xCC\x90\xBF\x00\x94\x94\x92" |
| 22744 | "\x20\x17\x0C\x1B\x55\xDE\x7E\x68" |
| 22745 | "\xF4\x95\x5D\x4F", |
| 22746 | .rlen = 68, |
| 22747 | }, { |
| 22748 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 22749 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 22750 | "\x22\x43\x3C", |
| 22751 | .klen = 19, |
| 22752 | .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD", |
| 22753 | .input = "\x08\x00\xC6\xCD\x02\x00\x07\x00" |
| 22754 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 22755 | "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70" |
| 22756 | "\x71\x72\x73\x74\x01\x02\x02\x01", |
| 22757 | .ilen = 32, |
| 22758 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
| 22759 | "\x00\x00\x00\x07\x48\x55\xEC\x7D" |
| 22760 | "\x3A\x23\x4B\xFD", |
| 22761 | .alen = 20, |
| 22762 | .result = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02" |
| 22763 | "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F" |
| 22764 | "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF" |
| 22765 | "\x58\x7D\xCF\x29\xA3\x41\x68\x6B" |
| 22766 | "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F" |
| 22767 | "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6", |
| 22768 | .rlen = 48, |
| 22769 | } |
| 22770 | }; |
| 22771 | |
| 22772 | static struct aead_testvec aes_ccm_rfc4309_dec_tv_template[] = { |
| 22773 | { /* Generated using Crypto++ */ |
| 22774 | .key = zeroed_string, |
| 22775 | .klen = 19, |
| 22776 | .iv = zeroed_string, |
| 22777 | .result = zeroed_string, |
| 22778 | .rlen = 16, |
| 22779 | .assoc = zeroed_string, |
| 22780 | .alen = 16, |
| 22781 | .input = "\x2E\x9A\xCA\x6B\xDA\x54\xFC\x6F" |
| 22782 | "\x12\x50\xE8\xDE\x81\x3C\x63\x08" |
| 22783 | "\x1A\x22\xBA\x75\xEE\xD4\xD5\xB5" |
| 22784 | "\x27\x50\x01\xAC\x03\x33\x39\xFB", |
| 22785 | .ilen = 32, |
| 22786 | },{ |
| 22787 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22788 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22789 | "\x00\x00\x00", |
| 22790 | .klen = 19, |
| 22791 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22792 | .result = zeroed_string, |
| 22793 | .rlen = 16, |
| 22794 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 22795 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22796 | .alen = 16, |
| 22797 | .input = "\xCF\xB9\x99\x17\xC8\x86\x0E\x7F" |
| 22798 | "\x7E\x76\xF8\xE6\xF8\xCC\x1F\x17" |
| 22799 | "\x6A\xE0\x53\x9F\x4B\x73\x7E\xDA" |
| 22800 | "\x08\x09\x4E\xC4\x1E\xAD\xC6\xB0", |
| 22801 | .ilen = 32, |
| 22802 | |
| 22803 | }, { |
| 22804 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22805 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22806 | "\x00\x00\x00", |
| 22807 | .klen = 19, |
| 22808 | .iv = zeroed_string, |
| 22809 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22810 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22811 | .rlen = 16, |
| 22812 | .assoc = zeroed_string, |
| 22813 | .alen = 16, |
| 22814 | .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6" |
| 22815 | "\x61\xF4\xF5\x41\x03\x4A\xE3\x86" |
| 22816 | "\xA1\xE2\xC2\x42\x2B\x81\x70\x40" |
| 22817 | "\xFD\x7F\x76\xD1\x03\x07\xBB\x0C", |
| 22818 | .ilen = 32, |
| 22819 | }, { |
| 22820 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22821 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22822 | "\x00\x00\x00", |
| 22823 | .klen = 19, |
| 22824 | .iv = zeroed_string, |
| 22825 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22826 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22827 | .rlen = 16, |
| 22828 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22829 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 22830 | .alen = 16, |
| 22831 | .input = "\x33\xDE\x73\xBC\xA6\xCE\x4E\xA6" |
| 22832 | "\x61\xF4\xF5\x41\x03\x4A\xE3\x86" |
| 22833 | "\x5B\xC0\x73\xE0\x2B\x73\x68\xC9" |
| 22834 | "\x2D\x8C\x58\xC2\x90\x3D\xB0\x3E", |
| 22835 | .ilen = 32, |
| 22836 | }, { |
| 22837 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22838 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22839 | "\x00\x00\x00", |
| 22840 | .klen = 19, |
| 22841 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22842 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22843 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22844 | .rlen = 16, |
| 22845 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22846 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22847 | .alen = 16, |
| 22848 | .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E" |
| 22849 | "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16" |
| 22850 | "\x43\x8E\x76\x57\x3B\xB4\x05\xE8" |
| 22851 | "\xA9\x9B\xBF\x25\xE0\x4F\xC0\xED", |
| 22852 | .ilen = 32, |
| 22853 | }, { |
| 22854 | .key = "\xfe\xff\xe9\x92\x86\x65\x73\x1c" |
| 22855 | "\x6d\x6a\x8f\x94\x67\x30\x83\x08" |
| 22856 | "\x00\x00\x00", |
| 22857 | .klen = 19, |
| 22858 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22859 | .result = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22860 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22861 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22862 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22863 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22864 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22865 | "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22866 | "\x01\x01\x01\x01\x01\x01\x01\x01", |
| 22867 | .rlen = 64, |
| 22868 | .assoc = "\x01\x01\x01\x01\x01\x01\x01\x01" |
| 22869 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 22870 | .alen = 16, |
| 22871 | .input = "\xCE\xB8\x98\x16\xC9\x87\x0F\x7E" |
| 22872 | "\x7F\x77\xF9\xE7\xF9\xCD\x1E\x16" |
| 22873 | "\x9C\xA4\x97\x83\x3F\x01\xA5\xF4" |
| 22874 | "\x43\x09\xE7\xB8\xE9\xD1\xD7\x02" |
| 22875 | "\x9B\xAB\x39\x18\xEB\x94\x34\x36" |
| 22876 | "\xE6\xC5\xC8\x9B\x00\x81\x9E\x49" |
| 22877 | "\x1D\x78\xE1\x48\xE3\xE9\xEA\x8E" |
| 22878 | "\x3A\x2B\x67\x5D\x35\x6A\x0F\xDB" |
| 22879 | "\x02\x73\xDD\xE7\x30\x4A\x30\x54" |
| 22880 | "\x1A\x9D\x09\xCA\xC8\x1C\x32\x5F", |
| 22881 | .ilen = 80, |
| 22882 | }, { |
| 22883 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 22884 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 22885 | "\x00\x00\x00", |
| 22886 | .klen = 19, |
| 22887 | .iv = "\x00\x00\x45\x67\x89\xab\xcd\xef", |
| 22888 | .result = "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22889 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22890 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22891 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22892 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22893 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22894 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22895 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22896 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22897 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22898 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22899 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22900 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22901 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22902 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22903 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22904 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22905 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22906 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22907 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22908 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22909 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22910 | "\xff\xff\xff\xff\xff\xff\xff\xff" |
| 22911 | "\xff\xff\xff\xff\xff\xff\xff\xff", |
| 22912 | .rlen = 192, |
| 22913 | .assoc = "\xaa\xaa\xaa\xaa\xaa\xaa\xaa\xaa" |
| 22914 | "\xaa\xaa\xaa\xaa\x00\x00\x45\x67" |
| 22915 | "\x89\xab\xcd\xef", |
| 22916 | .alen = 20, |
| 22917 | .input = "\x64\x17\xDC\x24\x9D\x92\xBA\x5E" |
| 22918 | "\x7C\x64\x6D\x33\x46\x77\xAC\xB1" |
| 22919 | "\x5C\x9E\xE2\xC7\x27\x11\x3E\x95" |
| 22920 | "\x7D\xBE\x28\xC8\xC1\xCA\x5E\x8C" |
| 22921 | "\xB4\xE2\xDE\x9F\x53\x59\x26\xDB" |
| 22922 | "\x0C\xD4\xE4\x07\x9A\xE6\x3E\x01" |
| 22923 | "\x58\x0D\x3E\x3D\xD5\x21\xEB\x04" |
| 22924 | "\x06\x9D\x5F\xB9\x02\x49\x1A\x2B" |
| 22925 | "\xBA\xF0\x4E\x3B\x85\x50\x5B\x09" |
| 22926 | "\xFE\xEC\xFC\x54\xEC\x0C\xE2\x79" |
| 22927 | "\x8A\x2F\x5F\xD7\x05\x5D\xF1\x6D" |
| 22928 | "\x22\xEB\xD1\x09\x80\x3F\x5A\x70" |
| 22929 | "\xB2\xB9\xD3\x63\x99\xC2\x4D\x1B" |
| 22930 | "\x36\x12\x00\x89\xAA\x5D\x55\xDA" |
| 22931 | "\x1D\x5B\xD8\x3C\x5F\x09\xD2\xE6" |
| 22932 | "\x39\x41\x5C\xF0\xBE\x26\x4E\x5F" |
| 22933 | "\x2B\x50\x44\x52\xC2\x10\x7D\x38" |
| 22934 | "\x82\x64\x83\x0C\xAE\x49\xD0\xE5" |
| 22935 | "\x4F\xE5\x66\x4C\x58\x7A\xEE\x43" |
| 22936 | "\x3B\x51\xFE\xBA\x24\x8A\xFE\xDC" |
| 22937 | "\x19\x6D\x60\x66\x61\xF9\x9A\x3F" |
| 22938 | "\x75\xFC\x38\x53\x5B\xB5\xCD\x52" |
| 22939 | "\x4F\xE5\xE4\xC9\xFE\x10\xCB\x98" |
| 22940 | "\xF0\x06\x5B\x07\xAB\xBB\xF4\x0E" |
| 22941 | "\x2D\xC2\xDD\x5D\xDD\x22\x9A\xCC" |
| 22942 | "\x39\xAB\x63\xA5\x3D\x9C\x51\x8A", |
| 22943 | .ilen = 208, |
| 22944 | }, { /* From draft-mcgrew-gcm-test-01 */ |
| 22945 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 22946 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 22947 | "\x2E\x44\x3B", |
| 22948 | .klen = 19, |
| 22949 | .iv = "\x49\x56\xED\x7E\x3B\x24\x4C\xFE", |
| 22950 | .result = "\x45\x00\x00\x48\x69\x9A\x00\x00" |
| 22951 | "\x80\x11\x4D\xB7\xC0\xA8\x01\x02" |
| 22952 | "\xC0\xA8\x01\x01\x0A\x9B\xF1\x56" |
| 22953 | "\x38\xD3\x01\x00\x00\x01\x00\x00" |
| 22954 | "\x00\x00\x00\x00\x04\x5F\x73\x69" |
| 22955 | "\x70\x04\x5F\x75\x64\x70\x03\x73" |
| 22956 | "\x69\x70\x09\x63\x79\x62\x65\x72" |
| 22957 | "\x63\x69\x74\x79\x02\x64\x6B\x00" |
| 22958 | "\x00\x21\x00\x01\x01\x02\x02\x01", |
| 22959 | .rlen = 72, |
| 22960 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
| 22961 | "\x00\x00\x00\x00\x49\x56\xED\x7E" |
| 22962 | "\x3B\x24\x4C\xFE", |
| 22963 | .alen = 20, |
| 22964 | .input = "\x89\xBA\x3E\xEF\xE6\xD6\xCF\xDB" |
| 22965 | "\x83\x60\xF5\xBA\x3A\x56\x79\xE6" |
| 22966 | "\x7E\x0C\x53\xCF\x9E\x87\xE0\x4E" |
| 22967 | "\x1A\x26\x01\x24\xC7\x2E\x3D\xBF" |
| 22968 | "\x29\x2C\x91\xC1\xB8\xA8\xCF\xE0" |
| 22969 | "\x39\xF8\x53\x6D\x31\x22\x2B\xBF" |
| 22970 | "\x98\x81\xFC\x34\xEE\x85\x36\xCD" |
| 22971 | "\x26\xDB\x6C\x7A\x0C\x77\x8A\x35" |
| 22972 | "\x18\x85\x54\xB2\xBC\xDD\x3F\x43" |
| 22973 | "\x61\x06\x8A\xDF\x86\x3F\xB4\xAC" |
| 22974 | "\x97\xDC\xBD\xFD\x92\x10\xC5\xFF", |
| 22975 | .ilen = 88, |
| 22976 | }, { |
| 22977 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 22978 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 22979 | "\xCA\xFE\xBA", |
| 22980 | .klen = 19, |
| 22981 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 22982 | .result = "\x45\x00\x00\x3E\x69\x8F\x00\x00" |
| 22983 | "\x80\x11\x4D\xCC\xC0\xA8\x01\x02" |
| 22984 | "\xC0\xA8\x01\x01\x0A\x98\x00\x35" |
| 22985 | "\x00\x2A\x23\x43\xB2\xD0\x01\x00" |
| 22986 | "\x00\x01\x00\x00\x00\x00\x00\x00" |
| 22987 | "\x03\x73\x69\x70\x09\x63\x79\x62" |
| 22988 | "\x65\x72\x63\x69\x74\x79\x02\x64" |
| 22989 | "\x6B\x00\x00\x01\x00\x01\x00\x01", |
| 22990 | .rlen = 64, |
| 22991 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 22992 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 22993 | .alen = 16, |
| 22994 | .input = "\x4B\xC2\x70\x60\x64\xD2\xF3\xC8" |
| 22995 | "\xE5\x26\x8A\xDE\xB8\x7E\x7D\x16" |
| 22996 | "\x56\xC7\xD2\x88\xBA\x8D\x58\xAF" |
| 22997 | "\xF5\x71\xB6\x37\x84\xA7\xB1\x99" |
| 22998 | "\x51\x5C\x0D\xA0\x27\xDE\xE7\x2D" |
| 22999 | "\xEF\x25\x88\x1F\x1D\x77\x11\xFF" |
| 23000 | "\xDB\xED\xEE\x56\x16\xC5\x5C\x9B" |
| 23001 | "\x00\x62\x1F\x68\x4E\x7C\xA0\x97" |
| 23002 | "\x10\x72\x7E\x53\x13\x3B\x68\xE4" |
| 23003 | "\x30\x99\x91\x79\x09\xEA\xFF\x6A", |
| 23004 | .ilen = 80, |
| 23005 | }, { |
| 23006 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23007 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23008 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23009 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23010 | "\x11\x22\x33", |
| 23011 | .klen = 35, |
| 23012 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 23013 | .result = "\x45\x00\x00\x30\x69\xA6\x40\x00" |
| 23014 | "\x80\x06\x26\x90\xC0\xA8\x01\x02" |
| 23015 | "\x93\x89\x15\x5E\x0A\x9E\x00\x8B" |
| 23016 | "\x2D\xC5\x7E\xE0\x00\x00\x00\x00" |
| 23017 | "\x70\x02\x40\x00\x20\xBF\x00\x00" |
| 23018 | "\x02\x04\x05\xB4\x01\x01\x04\x02" |
| 23019 | "\x01\x02\x02\x01", |
| 23020 | .rlen = 52, |
| 23021 | .assoc = "\x4A\x2C\xBF\xE3\x00\x00\x00\x02" |
| 23022 | "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 23023 | .alen = 16, |
| 23024 | .input = "\xD6\x31\x0D\x2B\x3D\x6F\xBD\x2F" |
| 23025 | "\x58\x41\x7E\xFF\x9A\x9E\x09\xB4" |
| 23026 | "\x1A\xF7\xF6\x42\x31\xCD\xBF\xAD" |
| 23027 | "\x27\x0E\x2C\xF2\xDB\x10\xDF\x55" |
| 23028 | "\x8F\x0D\xD7\xAC\x23\xBD\x42\x10" |
| 23029 | "\xD0\xB2\xAF\xD8\x37\xAC\x6B\x0B" |
| 23030 | "\x11\xD4\x0B\x12\xEC\xB4\xB1\x92" |
| 23031 | "\x23\xA6\x10\xB0\x26\xD6\xD9\x26" |
| 23032 | "\x5A\x48\x6A\x3E", |
| 23033 | .ilen = 68, |
| 23034 | }, { |
| 23035 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 23036 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 23037 | "\x00\x00\x00", |
| 23038 | .klen = 19, |
| 23039 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23040 | .result = "\x45\x00\x00\x3C\x99\xC5\x00\x00" |
| 23041 | "\x80\x01\xCB\x7A\x40\x67\x93\x18" |
| 23042 | "\x01\x01\x01\x01\x08\x00\x07\x5C" |
| 23043 | "\x02\x00\x44\x00\x61\x62\x63\x64" |
| 23044 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23045 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23046 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 23047 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 23048 | .rlen = 64, |
| 23049 | .assoc = "\x00\x00\x00\x00\x00\x00\x00\x01" |
| 23050 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23051 | .alen = 16, |
| 23052 | .input = "\x6B\x9A\xCA\x57\x43\x91\xFC\x6F" |
| 23053 | "\x92\x51\x23\xA4\xC1\x5B\xF0\x10" |
| 23054 | "\xF3\x13\xF4\xF8\xA1\x9A\xB4\xDC" |
| 23055 | "\x89\xC8\xF8\x42\x62\x95\xB7\xCB" |
| 23056 | "\xB8\xF5\x0F\x1B\x2E\x94\xA2\xA7" |
| 23057 | "\xBF\xFB\x8A\x92\x13\x63\xD1\x3C" |
| 23058 | "\x08\xF5\xE8\xA6\xAA\xF6\x34\xF9" |
| 23059 | "\x42\x05\xAF\xB3\xE7\x9A\xFC\xEE" |
| 23060 | "\x36\x25\xC1\x10\x12\x1C\xCA\x82" |
| 23061 | "\xEA\xE6\x63\x5A\x57\x28\xA9\x9A", |
| 23062 | .ilen = 80, |
| 23063 | }, { |
| 23064 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23065 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23066 | "\x57\x69\x0E", |
| 23067 | .klen = 19, |
| 23068 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23069 | .result = "\x45\x00\x00\x3C\x99\xC3\x00\x00" |
| 23070 | "\x80\x01\xCB\x7C\x40\x67\x93\x18" |
| 23071 | "\x01\x01\x01\x01\x08\x00\x08\x5C" |
| 23072 | "\x02\x00\x43\x00\x61\x62\x63\x64" |
| 23073 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23074 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23075 | "\x75\x76\x77\x61\x62\x63\x64\x65" |
| 23076 | "\x66\x67\x68\x69\x01\x02\x02\x01", |
| 23077 | .rlen = 64, |
| 23078 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 23079 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23080 | "\xA2\xFC\xA1\xA3", |
| 23081 | .alen = 20, |
| 23082 | .input = "\x6A\x6B\x45\x2B\x7C\x67\x52\xF6" |
| 23083 | "\x10\x60\x40\x62\x6B\x4F\x97\x8E" |
| 23084 | "\x0B\xB2\x22\x97\xCB\x21\xE0\x90" |
| 23085 | "\xA2\xE7\xD1\x41\x30\xE4\x4B\x1B" |
| 23086 | "\x79\x01\x58\x50\x01\x06\xE1\xE0" |
| 23087 | "\x2C\x83\x79\xD3\xDE\x46\x97\x1A" |
| 23088 | "\x30\xB8\xE5\xDF\xD7\x12\x56\x75" |
| 23089 | "\xD0\x95\xB7\xB8\x91\x42\xF7\xFD" |
| 23090 | "\x97\x57\xCA\xC1\x20\xD0\x86\xB9" |
| 23091 | "\x66\x9D\xB4\x2B\x96\x22\xAC\x67", |
| 23092 | .ilen = 80, |
| 23093 | }, { |
| 23094 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23095 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23096 | "\x57\x69\x0E", |
| 23097 | .klen = 19, |
| 23098 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23099 | .result = "\x45\x00\x00\x1C\x42\xA2\x00\x00" |
| 23100 | "\x80\x01\x44\x1F\x40\x67\x93\xB6" |
| 23101 | "\xE0\x00\x00\x02\x0A\x00\xF5\xFF" |
| 23102 | "\x01\x02\x02\x01", |
| 23103 | .rlen = 28, |
| 23104 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 23105 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23106 | "\xA2\xFC\xA1\xA3", |
| 23107 | .alen = 20, |
| 23108 | .input = "\x6A\x6B\x45\x0B\xA7\x06\x52\xF6" |
| 23109 | "\x10\x60\xCF\x01\x6B\x4F\x97\x20" |
| 23110 | "\xEA\xB3\x23\x94\xC9\x21\x1D\x33" |
| 23111 | "\xA1\xE5\x90\x40\x05\x37\x45\x70" |
| 23112 | "\xB5\xD6\x09\x0A\x23\x73\x33\xF9" |
| 23113 | "\x08\xB4\x22\xE4", |
| 23114 | .ilen = 44, |
| 23115 | }, { |
| 23116 | .key = "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 23117 | "\x6D\x6A\x8F\x94\x67\x30\x83\x08" |
| 23118 | "\xFE\xFF\xE9\x92\x86\x65\x73\x1C" |
| 23119 | "\xCA\xFE\xBA", |
| 23120 | .klen = 27, |
| 23121 | .iv = "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 23122 | .result = "\x45\x00\x00\x28\xA4\xAD\x40\x00" |
| 23123 | "\x40\x06\x78\x80\x0A\x01\x03\x8F" |
| 23124 | "\x0A\x01\x06\x12\x80\x23\x06\xB8" |
| 23125 | "\xCB\x71\x26\x02\xDD\x6B\xB0\x3E" |
| 23126 | "\x50\x10\x16\xD0\x75\x68\x00\x01", |
| 23127 | .rlen = 40, |
| 23128 | .assoc = "\x00\x00\xA5\xF8\x00\x00\x00\x0A" |
| 23129 | "\xFA\xCE\xDB\xAD\xDE\xCA\xF8\x88", |
| 23130 | .alen = 16, |
| 23131 | .input = "\x05\x22\x15\xD1\x52\x56\x85\x04" |
| 23132 | "\xA8\x5C\x5D\x6D\x7E\x6E\xF5\xFA" |
| 23133 | "\xEA\x16\x37\x50\xF3\xDF\x84\x3B" |
| 23134 | "\x2F\x32\x18\x57\x34\x2A\x8C\x23" |
| 23135 | "\x67\xDF\x6D\x35\x7B\x54\x0D\xFB" |
| 23136 | "\x34\xA5\x9F\x6C\x48\x30\x1E\x22" |
| 23137 | "\xFE\xB1\x22\x17\x17\x8A\xB9\x5B", |
| 23138 | .ilen = 56, |
| 23139 | }, { |
| 23140 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23141 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23142 | "\xDE\xCA\xF8", |
| 23143 | .klen = 19, |
| 23144 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 23145 | .result = "\x45\x00\x00\x49\x33\xBA\x00\x00" |
| 23146 | "\x7F\x11\x91\x06\xC3\xFB\x1D\x10" |
| 23147 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 23148 | "\x00\x35\xDD\x7B\x80\x03\x02\xD5" |
| 23149 | "\x00\x00\x4E\x20\x00\x1E\x8C\x18" |
| 23150 | "\xD7\x5B\x81\xDC\x91\xBA\xA0\x47" |
| 23151 | "\x6B\x91\xB9\x24\xB2\x80\x38\x9D" |
| 23152 | "\x92\xC9\x63\xBA\xC0\x46\xEC\x95" |
| 23153 | "\x9B\x62\x66\xC0\x47\x22\xB1\x49" |
| 23154 | "\x23\x01\x01\x01", |
| 23155 | .rlen = 76, |
| 23156 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
| 23157 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 23158 | "\xCE\xFA\xCE\x74", |
| 23159 | .alen = 20, |
| 23160 | .input = "\x92\xD0\x53\x79\x33\x38\xD5\xF3" |
| 23161 | "\x7D\xE4\x7A\x8E\x86\x03\xC9\x90" |
| 23162 | "\x96\x35\xAB\x9C\xFB\xE8\xA3\x76" |
| 23163 | "\xE9\xE9\xE2\xD1\x2E\x11\x0E\x00" |
| 23164 | "\xFA\xCE\xB5\x9E\x02\xA7\x7B\xEA" |
| 23165 | "\x71\x9A\x58\xFB\xA5\x8A\xE1\xB7" |
| 23166 | "\x9C\x39\x9D\xE3\xB5\x6E\x69\xE6" |
| 23167 | "\x63\xC9\xDB\x05\x69\x51\x12\xAD" |
| 23168 | "\x3E\x00\x32\x73\x86\xF2\xEE\xF5" |
| 23169 | "\x0F\xE8\x81\x7E\x84\xD3\xC0\x0D" |
| 23170 | "\x76\xD6\x55\xC6\xB4\xC2\x34\xC7" |
| 23171 | "\x12\x25\x0B\xF9", |
| 23172 | .ilen = 92, |
| 23173 | }, { |
| 23174 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23175 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23176 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23177 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23178 | "\x73\x61\x6C", |
| 23179 | .klen = 35, |
| 23180 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 23181 | .result = "\x45\x08\x00\x28\x73\x2C\x00\x00" |
| 23182 | "\x40\x06\xE9\xF9\x0A\x01\x06\x12" |
| 23183 | "\x0A\x01\x03\x8F\x06\xB8\x80\x23" |
| 23184 | "\xDD\x6B\xAF\xBE\xCB\x71\x26\x02" |
| 23185 | "\x50\x10\x1F\x64\x6D\x54\x00\x01", |
| 23186 | .rlen = 40, |
| 23187 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
| 23188 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 23189 | "\x69\x76\x65\x63", |
| 23190 | .alen = 20, |
| 23191 | .input = "\xCC\x74\xB7\xD3\xB0\x38\x50\x42" |
| 23192 | "\x2C\x64\x87\x46\x1E\x34\x10\x05" |
| 23193 | "\x29\x6B\xBB\x36\xE9\x69\xAD\x92" |
| 23194 | "\x82\xA1\x10\x6A\xEB\x0F\xDC\x7D" |
| 23195 | "\x08\xBA\xF3\x91\xCA\xAA\x61\xDA" |
| 23196 | "\x62\xF4\x14\x61\x5C\x9D\xB5\xA7" |
| 23197 | "\xEE\xD7\xB9\x7E\x87\x99\x9B\x7D", |
| 23198 | .ilen = 56, |
| 23199 | }, { |
| 23200 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23201 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23202 | "\x57\x69\x0E", |
| 23203 | .klen = 19, |
| 23204 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23205 | .result = "\x45\x00\x00\x49\x33\x3E\x00\x00" |
| 23206 | "\x7F\x11\x91\x82\xC3\xFB\x1D\x10" |
| 23207 | "\xC2\xB1\xD3\x26\xC0\x28\x31\xCE" |
| 23208 | "\x00\x35\xCB\x45\x80\x03\x02\x5B" |
| 23209 | "\x00\x00\x01\xE0\x00\x1E\x8C\x18" |
| 23210 | "\xD6\x57\x59\xD5\x22\x84\xA0\x35" |
| 23211 | "\x2C\x71\x47\x5C\x88\x80\x39\x1C" |
| 23212 | "\x76\x4D\x6E\x5E\xE0\x49\x6B\x32" |
| 23213 | "\x5A\xE2\x70\xC0\x38\x99\x49\x39" |
| 23214 | "\x15\x01\x01\x01", |
| 23215 | .rlen = 76, |
| 23216 | .assoc = "\x42\xF6\x7E\x3F\x10\x10\x10\x10" |
| 23217 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23218 | "\xA2\xFC\xA1\xA3", |
| 23219 | .alen = 20, |
| 23220 | .input = "\x6A\x6B\x45\x5E\xD6\x9A\x52\xF6" |
| 23221 | "\xEF\x70\x1A\x9C\xE8\xD3\x19\x86" |
| 23222 | "\xC8\x02\xF0\xB0\x03\x09\xD9\x02" |
| 23223 | "\xA0\xD2\x59\x04\xD1\x85\x2A\x24" |
| 23224 | "\x1C\x67\x3E\xD8\x68\x72\x06\x94" |
| 23225 | "\x97\xBA\x4F\x76\x8D\xB0\x44\x5B" |
| 23226 | "\x69\xBF\xD5\xE2\x3D\xF1\x0B\x0C" |
| 23227 | "\xC0\xBF\xB1\x8F\x70\x09\x9E\xCE" |
| 23228 | "\xA5\xF2\x55\x58\x84\xFA\xF9\xB5" |
| 23229 | "\x23\xF4\x84\x40\x74\x14\x8A\x6B" |
| 23230 | "\xDB\xD7\x67\xED\xA4\x93\xF3\x47" |
| 23231 | "\xCC\xF7\x46\x6F", |
| 23232 | .ilen = 92, |
| 23233 | }, { |
| 23234 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23235 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23236 | "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23237 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23238 | "\x73\x61\x6C", |
| 23239 | .klen = 35, |
| 23240 | .iv = "\x61\x6E\x64\x01\x69\x76\x65\x63", |
| 23241 | .result = "\x63\x69\x73\x63\x6F\x01\x72\x75" |
| 23242 | "\x6C\x65\x73\x01\x74\x68\x65\x01" |
| 23243 | "\x6E\x65\x74\x77\x65\x01\x64\x65" |
| 23244 | "\x66\x69\x6E\x65\x01\x74\x68\x65" |
| 23245 | "\x74\x65\x63\x68\x6E\x6F\x6C\x6F" |
| 23246 | "\x67\x69\x65\x73\x01\x74\x68\x61" |
| 23247 | "\x74\x77\x69\x6C\x6C\x01\x64\x65" |
| 23248 | "\x66\x69\x6E\x65\x74\x6F\x6D\x6F" |
| 23249 | "\x72\x72\x6F\x77\x01\x02\x02\x01", |
| 23250 | .rlen = 72, |
| 23251 | .assoc = "\x17\x40\x5E\x67\x15\x6F\x31\x26" |
| 23252 | "\xDD\x0D\xB9\x9B\x61\x6E\x64\x01" |
| 23253 | "\x69\x76\x65\x63", |
| 23254 | .alen = 20, |
| 23255 | .input = "\xEA\x15\xC4\x98\xAC\x15\x22\x37" |
| 23256 | "\x00\x07\x1D\xBE\x60\x5D\x73\x16" |
| 23257 | "\x4D\x0F\xCC\xCE\x8A\xD0\x49\xD4" |
| 23258 | "\x39\xA3\xD1\xB1\x21\x0A\x92\x1A" |
| 23259 | "\x2C\xCF\x8F\x9D\xC9\x91\x0D\xB4" |
| 23260 | "\x15\xFC\xBC\xA5\xC5\xBF\x54\xE5" |
| 23261 | "\x1C\xC7\x32\x41\x07\x7B\x2C\xB6" |
| 23262 | "\x5C\x23\x7C\x93\xEA\xEF\x23\x1C" |
| 23263 | "\x73\xF4\xE7\x12\x84\x4C\x37\x0A" |
| 23264 | "\x4A\x8F\x06\x37\x48\xF9\xF9\x05" |
| 23265 | "\x55\x13\x40\xC3\xD5\x55\x3A\x3D", |
| 23266 | .ilen = 88, |
| 23267 | }, { |
| 23268 | .key = "\x7D\x77\x3D\x00\xC1\x44\xC5\x25" |
| 23269 | "\xAC\x61\x9D\x18\xC8\x4A\x3F\x47" |
| 23270 | "\xD9\x66\x42", |
| 23271 | .klen = 19, |
| 23272 | .iv = "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 23273 | .result = "\x01\x02\x02\x01", |
| 23274 | .rlen = 4, |
| 23275 | .assoc = "\x33\x54\x67\xAE\xFF\xFF\xFF\xFF" |
| 23276 | "\x43\x45\x7E\x91\x82\x44\x3B\xC6", |
| 23277 | .alen = 16, |
| 23278 | .input = "\x4C\x72\x63\x30\x2F\xE6\x56\xDD" |
| 23279 | "\xD0\xD8\x60\x9D\x8B\xEF\x85\x90" |
| 23280 | "\xF7\x61\x24\x62", |
| 23281 | .ilen = 20, |
| 23282 | }, { |
| 23283 | .key = "\xAB\xBC\xCD\xDE\xF0\x01\x12\x23" |
| 23284 | "\x34\x45\x56\x67\x78\x89\x9A\xAB" |
| 23285 | "\xDE\xCA\xF8", |
| 23286 | .klen = 19, |
| 23287 | .iv = "\xCA\xFE\xDE\xBA\xCE\xFA\xCE\x74", |
| 23288 | .result = "\x74\x6F\x01\x62\x65\x01\x6F\x72" |
| 23289 | "\x01\x6E\x6F\x74\x01\x74\x6F\x01" |
| 23290 | "\x62\x65\x00\x01", |
| 23291 | .rlen = 20, |
| 23292 | .assoc = "\x00\x00\x01\x00\x00\x00\x00\x00" |
| 23293 | "\x00\x00\x00\x01\xCA\xFE\xDE\xBA" |
| 23294 | "\xCE\xFA\xCE\x74", |
| 23295 | .alen = 20, |
| 23296 | .input = "\xA3\xBF\x52\x52\x65\x83\xBA\x81" |
| 23297 | "\x03\x9B\x84\xFC\x44\x8C\xBB\x81" |
| 23298 | "\x36\xE1\x78\xBB\xA5\x49\x3A\xD0" |
| 23299 | "\xF0\x6B\x21\xAF\x98\xC0\x34\xDC" |
| 23300 | "\x17\x17\x65\xAD", |
| 23301 | .ilen = 36, |
| 23302 | }, { |
| 23303 | .key = "\x6C\x65\x67\x61\x6C\x69\x7A\x65" |
| 23304 | "\x6D\x61\x72\x69\x6A\x75\x61\x6E" |
| 23305 | "\x61\x61\x6E\x64\x64\x6F\x69\x74" |
| 23306 | "\x62\x65\x66\x6F\x72\x65\x69\x61" |
| 23307 | "\x74\x75\x72", |
| 23308 | .klen = 35, |
| 23309 | .iv = "\x33\x30\x21\x69\x67\x65\x74\x6D", |
| 23310 | .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 23311 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 23312 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 23313 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 23314 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23315 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23316 | "\x01\x02\x02\x01", |
| 23317 | .rlen = 52, |
| 23318 | .assoc = "\x79\x6B\x69\x63\xFF\xFF\xFF\xFF" |
| 23319 | "\xFF\xFF\xFF\xFF\x33\x30\x21\x69" |
| 23320 | "\x67\x65\x74\x6D", |
| 23321 | .alen = 20, |
| 23322 | .input = "\x96\xFD\x86\xF8\xD1\x98\xFF\x10" |
| 23323 | "\xAB\x8C\xDA\x8A\x5A\x08\x38\x1A" |
| 23324 | "\x48\x59\x80\x18\x1A\x18\x1A\x04" |
| 23325 | "\xC9\x0D\xE3\xE7\x0E\xA4\x0B\x75" |
| 23326 | "\x92\x9C\x52\x5C\x0B\xFB\xF8\xAF" |
| 23327 | "\x16\xC3\x35\xA8\xE7\xCE\x84\x04" |
| 23328 | "\xEB\x40\x6B\x7A\x8E\x75\xBB\x42" |
| 23329 | "\xE0\x63\x4B\x21\x44\xA2\x2B\x2B" |
| 23330 | "\x39\xDB\xC8\xDC", |
| 23331 | .ilen = 68, |
| 23332 | }, { |
| 23333 | .key = "\x3D\xE0\x98\x74\xB3\x88\xE6\x49" |
| 23334 | "\x19\x88\xD0\xC3\x60\x7E\xAE\x1F" |
| 23335 | "\x57\x69\x0E", |
| 23336 | .klen = 19, |
| 23337 | .iv = "\x4E\x28\x00\x00\xA2\xFC\xA1\xA3", |
| 23338 | .result = "\x45\x00\x00\x30\xDA\x3A\x00\x00" |
| 23339 | "\x80\x01\xDF\x3B\xC0\xA8\x00\x05" |
| 23340 | "\xC0\xA8\x00\x01\x08\x00\xC6\xCD" |
| 23341 | "\x02\x00\x07\x00\x61\x62\x63\x64" |
| 23342 | "\x65\x66\x67\x68\x69\x6A\x6B\x6C" |
| 23343 | "\x6D\x6E\x6F\x70\x71\x72\x73\x74" |
| 23344 | "\x01\x02\x02\x01", |
| 23345 | .rlen = 52, |
| 23346 | .assoc = "\x3F\x7E\xF6\x42\x10\x10\x10\x10" |
| 23347 | "\x10\x10\x10\x10\x4E\x28\x00\x00" |
| 23348 | "\xA2\xFC\xA1\xA3", |
| 23349 | .alen = 20, |
| 23350 | .input = "\x6A\x6B\x45\x27\x3F\x9E\x52\xF6" |
| 23351 | "\x10\x60\x54\x25\xEB\x80\x04\x93" |
| 23352 | "\xCA\x1B\x23\x97\xCB\x21\x2E\x01" |
| 23353 | "\xA2\xE7\x95\x41\x30\xE4\x4B\x1B" |
| 23354 | "\x79\x01\x58\x50\x01\x06\xE1\xE0" |
| 23355 | "\x2C\x83\x79\xD3\xDE\x46\x97\x1A" |
| 23356 | "\x44\xCC\x90\xBF\x00\x94\x94\x92" |
| 23357 | "\x20\x17\x0C\x1B\x55\xDE\x7E\x68" |
| 23358 | "\xF4\x95\x5D\x4F", |
| 23359 | .ilen = 68, |
| 23360 | }, { |
| 23361 | .key = "\x4C\x80\xCD\xEF\xBB\x5D\x10\xDA" |
| 23362 | "\x90\x6A\xC7\x3C\x36\x13\xA6\x34" |
| 23363 | "\x22\x43\x3C", |
| 23364 | .klen = 19, |
| 23365 | .iv = "\x48\x55\xEC\x7D\x3A\x23\x4B\xFD", |
| 23366 | .result = "\x08\x00\xC6\xCD\x02\x00\x07\x00" |
| 23367 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 23368 | "\x69\x6A\x6B\x6C\x6D\x6E\x6F\x70" |
| 23369 | "\x71\x72\x73\x74\x01\x02\x02\x01", |
| 23370 | .rlen = 32, |
| 23371 | .assoc = "\x00\x00\x43\x21\x87\x65\x43\x21" |
| 23372 | "\x00\x00\x00\x07\x48\x55\xEC\x7D" |
| 23373 | "\x3A\x23\x4B\xFD", |
| 23374 | .alen = 20, |
| 23375 | .input = "\x67\xE9\x28\xB3\x1C\xA4\x6D\x02" |
| 23376 | "\xF0\xB5\x37\xB6\x6B\x2F\xF5\x4F" |
| 23377 | "\xF8\xA3\x4C\x53\xB8\x12\x09\xBF" |
| 23378 | "\x58\x7D\xCF\x29\xA3\x41\x68\x6B" |
| 23379 | "\xCE\xE8\x79\x85\x3C\xB0\x3A\x8F" |
| 23380 | "\x16\xB0\xA1\x26\xC9\xBC\xBC\xA6", |
| 23381 | .ilen = 48, |
| 23382 | } |
| 23383 | }; |
| 23384 | |
| 23385 | /* |
Martin Willi | af2b76b | 2015-06-01 13:44:01 +0200 | [diff] [blame] | 23386 | * ChaCha20-Poly1305 AEAD test vectors from RFC7539 2.8.2./A.5. |
| 23387 | */ |
| 23388 | #define RFC7539_ENC_TEST_VECTORS 2 |
| 23389 | #define RFC7539_DEC_TEST_VECTORS 2 |
| 23390 | static struct aead_testvec rfc7539_enc_tv_template[] = { |
| 23391 | { |
| 23392 | .key = "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 23393 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 23394 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 23395 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f", |
| 23396 | .klen = 32, |
| 23397 | .iv = "\x07\x00\x00\x00\x40\x41\x42\x43" |
| 23398 | "\x44\x45\x46\x47", |
| 23399 | .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3" |
| 23400 | "\xc4\xc5\xc6\xc7", |
| 23401 | .alen = 12, |
| 23402 | .input = "\x4c\x61\x64\x69\x65\x73\x20\x61" |
| 23403 | "\x6e\x64\x20\x47\x65\x6e\x74\x6c" |
| 23404 | "\x65\x6d\x65\x6e\x20\x6f\x66\x20" |
| 23405 | "\x74\x68\x65\x20\x63\x6c\x61\x73" |
| 23406 | "\x73\x20\x6f\x66\x20\x27\x39\x39" |
| 23407 | "\x3a\x20\x49\x66\x20\x49\x20\x63" |
| 23408 | "\x6f\x75\x6c\x64\x20\x6f\x66\x66" |
| 23409 | "\x65\x72\x20\x79\x6f\x75\x20\x6f" |
| 23410 | "\x6e\x6c\x79\x20\x6f\x6e\x65\x20" |
| 23411 | "\x74\x69\x70\x20\x66\x6f\x72\x20" |
| 23412 | "\x74\x68\x65\x20\x66\x75\x74\x75" |
| 23413 | "\x72\x65\x2c\x20\x73\x75\x6e\x73" |
| 23414 | "\x63\x72\x65\x65\x6e\x20\x77\x6f" |
| 23415 | "\x75\x6c\x64\x20\x62\x65\x20\x69" |
| 23416 | "\x74\x2e", |
| 23417 | .ilen = 114, |
| 23418 | .result = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb" |
| 23419 | "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2" |
| 23420 | "\xa4\xad\xed\x51\x29\x6e\x08\xfe" |
| 23421 | "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6" |
| 23422 | "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12" |
| 23423 | "\x82\xfa\xfb\x69\xda\x92\x72\x8b" |
| 23424 | "\x1a\x71\xde\x0a\x9e\x06\x0b\x29" |
| 23425 | "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36" |
| 23426 | "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c" |
| 23427 | "\x98\x03\xae\xe3\x28\x09\x1b\x58" |
| 23428 | "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94" |
| 23429 | "\x55\x85\x80\x8b\x48\x31\xd7\xbc" |
| 23430 | "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d" |
| 23431 | "\xe5\x76\xd2\x65\x86\xce\xc6\x4b" |
| 23432 | "\x61\x16\x1a\xe1\x0b\x59\x4f\x09" |
| 23433 | "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60" |
| 23434 | "\x06\x91", |
| 23435 | .rlen = 130, |
| 23436 | }, { |
| 23437 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 23438 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 23439 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 23440 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0", |
| 23441 | .klen = 32, |
| 23442 | .iv = "\x00\x00\x00\x00\x01\x02\x03\x04" |
| 23443 | "\x05\x06\x07\x08", |
| 23444 | .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00" |
| 23445 | "\x00\x00\x4e\x91", |
| 23446 | .alen = 12, |
| 23447 | .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74" |
| 23448 | "\x2d\x44\x72\x61\x66\x74\x73\x20" |
| 23449 | "\x61\x72\x65\x20\x64\x72\x61\x66" |
| 23450 | "\x74\x20\x64\x6f\x63\x75\x6d\x65" |
| 23451 | "\x6e\x74\x73\x20\x76\x61\x6c\x69" |
| 23452 | "\x64\x20\x66\x6f\x72\x20\x61\x20" |
| 23453 | "\x6d\x61\x78\x69\x6d\x75\x6d\x20" |
| 23454 | "\x6f\x66\x20\x73\x69\x78\x20\x6d" |
| 23455 | "\x6f\x6e\x74\x68\x73\x20\x61\x6e" |
| 23456 | "\x64\x20\x6d\x61\x79\x20\x62\x65" |
| 23457 | "\x20\x75\x70\x64\x61\x74\x65\x64" |
| 23458 | "\x2c\x20\x72\x65\x70\x6c\x61\x63" |
| 23459 | "\x65\x64\x2c\x20\x6f\x72\x20\x6f" |
| 23460 | "\x62\x73\x6f\x6c\x65\x74\x65\x64" |
| 23461 | "\x20\x62\x79\x20\x6f\x74\x68\x65" |
| 23462 | "\x72\x20\x64\x6f\x63\x75\x6d\x65" |
| 23463 | "\x6e\x74\x73\x20\x61\x74\x20\x61" |
| 23464 | "\x6e\x79\x20\x74\x69\x6d\x65\x2e" |
| 23465 | "\x20\x49\x74\x20\x69\x73\x20\x69" |
| 23466 | "\x6e\x61\x70\x70\x72\x6f\x70\x72" |
| 23467 | "\x69\x61\x74\x65\x20\x74\x6f\x20" |
| 23468 | "\x75\x73\x65\x20\x49\x6e\x74\x65" |
| 23469 | "\x72\x6e\x65\x74\x2d\x44\x72\x61" |
| 23470 | "\x66\x74\x73\x20\x61\x73\x20\x72" |
| 23471 | "\x65\x66\x65\x72\x65\x6e\x63\x65" |
| 23472 | "\x20\x6d\x61\x74\x65\x72\x69\x61" |
| 23473 | "\x6c\x20\x6f\x72\x20\x74\x6f\x20" |
| 23474 | "\x63\x69\x74\x65\x20\x74\x68\x65" |
| 23475 | "\x6d\x20\x6f\x74\x68\x65\x72\x20" |
| 23476 | "\x74\x68\x61\x6e\x20\x61\x73\x20" |
| 23477 | "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b" |
| 23478 | "\x20\x69\x6e\x20\x70\x72\x6f\x67" |
| 23479 | "\x72\x65\x73\x73\x2e\x2f\xe2\x80" |
| 23480 | "\x9d", |
| 23481 | .ilen = 265, |
| 23482 | .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4" |
| 23483 | "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd" |
| 23484 | "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89" |
| 23485 | "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2" |
| 23486 | "\x4c\x6c\xfc\x18\x75\x5d\x43\xee" |
| 23487 | "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0" |
| 23488 | "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00" |
| 23489 | "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf" |
| 23490 | "\x33\x2f\x83\x0e\x71\x0b\x97\xce" |
| 23491 | "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81" |
| 23492 | "\x14\xad\x17\x6e\x00\x8d\x33\xbd" |
| 23493 | "\x60\xf9\x82\xb1\xff\x37\xc8\x55" |
| 23494 | "\x97\x97\xa0\x6e\xf4\xf0\xef\x61" |
| 23495 | "\xc1\x86\x32\x4e\x2b\x35\x06\x38" |
| 23496 | "\x36\x06\x90\x7b\x6a\x7c\x02\xb0" |
| 23497 | "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4" |
| 23498 | "\xb9\x16\x6c\x76\x7b\x80\x4d\x46" |
| 23499 | "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9" |
| 23500 | "\x90\x40\xc5\xa4\x04\x33\x22\x5e" |
| 23501 | "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e" |
| 23502 | "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15" |
| 23503 | "\x5b\x00\x47\x71\x8c\xbc\x54\x6a" |
| 23504 | "\x0d\x07\x2b\x04\xb3\x56\x4e\xea" |
| 23505 | "\x1b\x42\x22\x73\xf5\x48\x27\x1a" |
| 23506 | "\x0b\xb2\x31\x60\x53\xfa\x76\x99" |
| 23507 | "\x19\x55\xeb\xd6\x31\x59\x43\x4e" |
| 23508 | "\xce\xbb\x4e\x46\x6d\xae\x5a\x10" |
| 23509 | "\x73\xa6\x72\x76\x27\x09\x7a\x10" |
| 23510 | "\x49\xe6\x17\xd9\x1d\x36\x10\x94" |
| 23511 | "\xfa\x68\xf0\xff\x77\x98\x71\x30" |
| 23512 | "\x30\x5b\xea\xba\x2e\xda\x04\xdf" |
| 23513 | "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29" |
| 23514 | "\xa6\xad\x5c\xb4\x02\x2b\x02\x70" |
| 23515 | "\x9b\xee\xad\x9d\x67\x89\x0c\xbb" |
| 23516 | "\x22\x39\x23\x36\xfe\xa1\x85\x1f" |
| 23517 | "\x38", |
| 23518 | .rlen = 281, |
| 23519 | }, |
| 23520 | }; |
| 23521 | |
| 23522 | static struct aead_testvec rfc7539_dec_tv_template[] = { |
| 23523 | { |
| 23524 | .key = "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 23525 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 23526 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 23527 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f", |
| 23528 | .klen = 32, |
| 23529 | .iv = "\x07\x00\x00\x00\x40\x41\x42\x43" |
| 23530 | "\x44\x45\x46\x47", |
| 23531 | .assoc = "\x50\x51\x52\x53\xc0\xc1\xc2\xc3" |
| 23532 | "\xc4\xc5\xc6\xc7", |
| 23533 | .alen = 12, |
| 23534 | .input = "\xd3\x1a\x8d\x34\x64\x8e\x60\xdb" |
| 23535 | "\x7b\x86\xaf\xbc\x53\xef\x7e\xc2" |
| 23536 | "\xa4\xad\xed\x51\x29\x6e\x08\xfe" |
| 23537 | "\xa9\xe2\xb5\xa7\x36\xee\x62\xd6" |
| 23538 | "\x3d\xbe\xa4\x5e\x8c\xa9\x67\x12" |
| 23539 | "\x82\xfa\xfb\x69\xda\x92\x72\x8b" |
| 23540 | "\x1a\x71\xde\x0a\x9e\x06\x0b\x29" |
| 23541 | "\x05\xd6\xa5\xb6\x7e\xcd\x3b\x36" |
| 23542 | "\x92\xdd\xbd\x7f\x2d\x77\x8b\x8c" |
| 23543 | "\x98\x03\xae\xe3\x28\x09\x1b\x58" |
| 23544 | "\xfa\xb3\x24\xe4\xfa\xd6\x75\x94" |
| 23545 | "\x55\x85\x80\x8b\x48\x31\xd7\xbc" |
| 23546 | "\x3f\xf4\xde\xf0\x8e\x4b\x7a\x9d" |
| 23547 | "\xe5\x76\xd2\x65\x86\xce\xc6\x4b" |
| 23548 | "\x61\x16\x1a\xe1\x0b\x59\x4f\x09" |
| 23549 | "\xe2\x6a\x7e\x90\x2e\xcb\xd0\x60" |
| 23550 | "\x06\x91", |
| 23551 | .ilen = 130, |
| 23552 | .result = "\x4c\x61\x64\x69\x65\x73\x20\x61" |
| 23553 | "\x6e\x64\x20\x47\x65\x6e\x74\x6c" |
| 23554 | "\x65\x6d\x65\x6e\x20\x6f\x66\x20" |
| 23555 | "\x74\x68\x65\x20\x63\x6c\x61\x73" |
| 23556 | "\x73\x20\x6f\x66\x20\x27\x39\x39" |
| 23557 | "\x3a\x20\x49\x66\x20\x49\x20\x63" |
| 23558 | "\x6f\x75\x6c\x64\x20\x6f\x66\x66" |
| 23559 | "\x65\x72\x20\x79\x6f\x75\x20\x6f" |
| 23560 | "\x6e\x6c\x79\x20\x6f\x6e\x65\x20" |
| 23561 | "\x74\x69\x70\x20\x66\x6f\x72\x20" |
| 23562 | "\x74\x68\x65\x20\x66\x75\x74\x75" |
| 23563 | "\x72\x65\x2c\x20\x73\x75\x6e\x73" |
| 23564 | "\x63\x72\x65\x65\x6e\x20\x77\x6f" |
| 23565 | "\x75\x6c\x64\x20\x62\x65\x20\x69" |
| 23566 | "\x74\x2e", |
| 23567 | .rlen = 114, |
| 23568 | }, { |
| 23569 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 23570 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 23571 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 23572 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0", |
| 23573 | .klen = 32, |
| 23574 | .iv = "\x00\x00\x00\x00\x01\x02\x03\x04" |
| 23575 | "\x05\x06\x07\x08", |
| 23576 | .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00" |
| 23577 | "\x00\x00\x4e\x91", |
| 23578 | .alen = 12, |
| 23579 | .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4" |
| 23580 | "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd" |
| 23581 | "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89" |
| 23582 | "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2" |
| 23583 | "\x4c\x6c\xfc\x18\x75\x5d\x43\xee" |
| 23584 | "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0" |
| 23585 | "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00" |
| 23586 | "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf" |
| 23587 | "\x33\x2f\x83\x0e\x71\x0b\x97\xce" |
| 23588 | "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81" |
| 23589 | "\x14\xad\x17\x6e\x00\x8d\x33\xbd" |
| 23590 | "\x60\xf9\x82\xb1\xff\x37\xc8\x55" |
| 23591 | "\x97\x97\xa0\x6e\xf4\xf0\xef\x61" |
| 23592 | "\xc1\x86\x32\x4e\x2b\x35\x06\x38" |
| 23593 | "\x36\x06\x90\x7b\x6a\x7c\x02\xb0" |
| 23594 | "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4" |
| 23595 | "\xb9\x16\x6c\x76\x7b\x80\x4d\x46" |
| 23596 | "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9" |
| 23597 | "\x90\x40\xc5\xa4\x04\x33\x22\x5e" |
| 23598 | "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e" |
| 23599 | "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15" |
| 23600 | "\x5b\x00\x47\x71\x8c\xbc\x54\x6a" |
| 23601 | "\x0d\x07\x2b\x04\xb3\x56\x4e\xea" |
| 23602 | "\x1b\x42\x22\x73\xf5\x48\x27\x1a" |
| 23603 | "\x0b\xb2\x31\x60\x53\xfa\x76\x99" |
| 23604 | "\x19\x55\xeb\xd6\x31\x59\x43\x4e" |
| 23605 | "\xce\xbb\x4e\x46\x6d\xae\x5a\x10" |
| 23606 | "\x73\xa6\x72\x76\x27\x09\x7a\x10" |
| 23607 | "\x49\xe6\x17\xd9\x1d\x36\x10\x94" |
| 23608 | "\xfa\x68\xf0\xff\x77\x98\x71\x30" |
| 23609 | "\x30\x5b\xea\xba\x2e\xda\x04\xdf" |
| 23610 | "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29" |
| 23611 | "\xa6\xad\x5c\xb4\x02\x2b\x02\x70" |
| 23612 | "\x9b\xee\xad\x9d\x67\x89\x0c\xbb" |
| 23613 | "\x22\x39\x23\x36\xfe\xa1\x85\x1f" |
| 23614 | "\x38", |
| 23615 | .ilen = 281, |
| 23616 | .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74" |
| 23617 | "\x2d\x44\x72\x61\x66\x74\x73\x20" |
| 23618 | "\x61\x72\x65\x20\x64\x72\x61\x66" |
| 23619 | "\x74\x20\x64\x6f\x63\x75\x6d\x65" |
| 23620 | "\x6e\x74\x73\x20\x76\x61\x6c\x69" |
| 23621 | "\x64\x20\x66\x6f\x72\x20\x61\x20" |
| 23622 | "\x6d\x61\x78\x69\x6d\x75\x6d\x20" |
| 23623 | "\x6f\x66\x20\x73\x69\x78\x20\x6d" |
| 23624 | "\x6f\x6e\x74\x68\x73\x20\x61\x6e" |
| 23625 | "\x64\x20\x6d\x61\x79\x20\x62\x65" |
| 23626 | "\x20\x75\x70\x64\x61\x74\x65\x64" |
| 23627 | "\x2c\x20\x72\x65\x70\x6c\x61\x63" |
| 23628 | "\x65\x64\x2c\x20\x6f\x72\x20\x6f" |
| 23629 | "\x62\x73\x6f\x6c\x65\x74\x65\x64" |
| 23630 | "\x20\x62\x79\x20\x6f\x74\x68\x65" |
| 23631 | "\x72\x20\x64\x6f\x63\x75\x6d\x65" |
| 23632 | "\x6e\x74\x73\x20\x61\x74\x20\x61" |
| 23633 | "\x6e\x79\x20\x74\x69\x6d\x65\x2e" |
| 23634 | "\x20\x49\x74\x20\x69\x73\x20\x69" |
| 23635 | "\x6e\x61\x70\x70\x72\x6f\x70\x72" |
| 23636 | "\x69\x61\x74\x65\x20\x74\x6f\x20" |
| 23637 | "\x75\x73\x65\x20\x49\x6e\x74\x65" |
| 23638 | "\x72\x6e\x65\x74\x2d\x44\x72\x61" |
| 23639 | "\x66\x74\x73\x20\x61\x73\x20\x72" |
| 23640 | "\x65\x66\x65\x72\x65\x6e\x63\x65" |
| 23641 | "\x20\x6d\x61\x74\x65\x72\x69\x61" |
| 23642 | "\x6c\x20\x6f\x72\x20\x74\x6f\x20" |
| 23643 | "\x63\x69\x74\x65\x20\x74\x68\x65" |
| 23644 | "\x6d\x20\x6f\x74\x68\x65\x72\x20" |
| 23645 | "\x74\x68\x61\x6e\x20\x61\x73\x20" |
| 23646 | "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b" |
| 23647 | "\x20\x69\x6e\x20\x70\x72\x6f\x67" |
| 23648 | "\x72\x65\x73\x73\x2e\x2f\xe2\x80" |
| 23649 | "\x9d", |
| 23650 | .rlen = 265, |
| 23651 | }, |
| 23652 | }; |
| 23653 | |
| 23654 | /* |
Martin Willi | 5900758 | 2015-06-01 13:44:03 +0200 | [diff] [blame] | 23655 | * draft-irtf-cfrg-chacha20-poly1305 |
| 23656 | */ |
| 23657 | #define RFC7539ESP_DEC_TEST_VECTORS 1 |
| 23658 | #define RFC7539ESP_ENC_TEST_VECTORS 1 |
| 23659 | static struct aead_testvec rfc7539esp_enc_tv_template[] = { |
| 23660 | { |
| 23661 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 23662 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 23663 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 23664 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0" |
| 23665 | "\x00\x00\x00\x00", |
| 23666 | .klen = 36, |
| 23667 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 23668 | .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00" |
Herbert Xu | 7479092 | 2015-07-16 12:35:08 +0800 | [diff] [blame] | 23669 | "\x00\x00\x4e\x91\x01\x02\x03\x04" |
| 23670 | "\x05\x06\x07\x08", |
| 23671 | .alen = 20, |
Martin Willi | 5900758 | 2015-06-01 13:44:03 +0200 | [diff] [blame] | 23672 | .input = "\x49\x6e\x74\x65\x72\x6e\x65\x74" |
| 23673 | "\x2d\x44\x72\x61\x66\x74\x73\x20" |
| 23674 | "\x61\x72\x65\x20\x64\x72\x61\x66" |
| 23675 | "\x74\x20\x64\x6f\x63\x75\x6d\x65" |
| 23676 | "\x6e\x74\x73\x20\x76\x61\x6c\x69" |
| 23677 | "\x64\x20\x66\x6f\x72\x20\x61\x20" |
| 23678 | "\x6d\x61\x78\x69\x6d\x75\x6d\x20" |
| 23679 | "\x6f\x66\x20\x73\x69\x78\x20\x6d" |
| 23680 | "\x6f\x6e\x74\x68\x73\x20\x61\x6e" |
| 23681 | "\x64\x20\x6d\x61\x79\x20\x62\x65" |
| 23682 | "\x20\x75\x70\x64\x61\x74\x65\x64" |
| 23683 | "\x2c\x20\x72\x65\x70\x6c\x61\x63" |
| 23684 | "\x65\x64\x2c\x20\x6f\x72\x20\x6f" |
| 23685 | "\x62\x73\x6f\x6c\x65\x74\x65\x64" |
| 23686 | "\x20\x62\x79\x20\x6f\x74\x68\x65" |
| 23687 | "\x72\x20\x64\x6f\x63\x75\x6d\x65" |
| 23688 | "\x6e\x74\x73\x20\x61\x74\x20\x61" |
| 23689 | "\x6e\x79\x20\x74\x69\x6d\x65\x2e" |
| 23690 | "\x20\x49\x74\x20\x69\x73\x20\x69" |
| 23691 | "\x6e\x61\x70\x70\x72\x6f\x70\x72" |
| 23692 | "\x69\x61\x74\x65\x20\x74\x6f\x20" |
| 23693 | "\x75\x73\x65\x20\x49\x6e\x74\x65" |
| 23694 | "\x72\x6e\x65\x74\x2d\x44\x72\x61" |
| 23695 | "\x66\x74\x73\x20\x61\x73\x20\x72" |
| 23696 | "\x65\x66\x65\x72\x65\x6e\x63\x65" |
| 23697 | "\x20\x6d\x61\x74\x65\x72\x69\x61" |
| 23698 | "\x6c\x20\x6f\x72\x20\x74\x6f\x20" |
| 23699 | "\x63\x69\x74\x65\x20\x74\x68\x65" |
| 23700 | "\x6d\x20\x6f\x74\x68\x65\x72\x20" |
| 23701 | "\x74\x68\x61\x6e\x20\x61\x73\x20" |
| 23702 | "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b" |
| 23703 | "\x20\x69\x6e\x20\x70\x72\x6f\x67" |
| 23704 | "\x72\x65\x73\x73\x2e\x2f\xe2\x80" |
| 23705 | "\x9d", |
| 23706 | .ilen = 265, |
| 23707 | .result = "\x64\xa0\x86\x15\x75\x86\x1a\xf4" |
| 23708 | "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd" |
| 23709 | "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89" |
| 23710 | "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2" |
| 23711 | "\x4c\x6c\xfc\x18\x75\x5d\x43\xee" |
| 23712 | "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0" |
| 23713 | "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00" |
| 23714 | "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf" |
| 23715 | "\x33\x2f\x83\x0e\x71\x0b\x97\xce" |
| 23716 | "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81" |
| 23717 | "\x14\xad\x17\x6e\x00\x8d\x33\xbd" |
| 23718 | "\x60\xf9\x82\xb1\xff\x37\xc8\x55" |
| 23719 | "\x97\x97\xa0\x6e\xf4\xf0\xef\x61" |
| 23720 | "\xc1\x86\x32\x4e\x2b\x35\x06\x38" |
| 23721 | "\x36\x06\x90\x7b\x6a\x7c\x02\xb0" |
| 23722 | "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4" |
| 23723 | "\xb9\x16\x6c\x76\x7b\x80\x4d\x46" |
| 23724 | "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9" |
| 23725 | "\x90\x40\xc5\xa4\x04\x33\x22\x5e" |
| 23726 | "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e" |
| 23727 | "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15" |
| 23728 | "\x5b\x00\x47\x71\x8c\xbc\x54\x6a" |
| 23729 | "\x0d\x07\x2b\x04\xb3\x56\x4e\xea" |
| 23730 | "\x1b\x42\x22\x73\xf5\x48\x27\x1a" |
| 23731 | "\x0b\xb2\x31\x60\x53\xfa\x76\x99" |
| 23732 | "\x19\x55\xeb\xd6\x31\x59\x43\x4e" |
| 23733 | "\xce\xbb\x4e\x46\x6d\xae\x5a\x10" |
| 23734 | "\x73\xa6\x72\x76\x27\x09\x7a\x10" |
| 23735 | "\x49\xe6\x17\xd9\x1d\x36\x10\x94" |
| 23736 | "\xfa\x68\xf0\xff\x77\x98\x71\x30" |
| 23737 | "\x30\x5b\xea\xba\x2e\xda\x04\xdf" |
| 23738 | "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29" |
| 23739 | "\xa6\xad\x5c\xb4\x02\x2b\x02\x70" |
| 23740 | "\x9b\xee\xad\x9d\x67\x89\x0c\xbb" |
| 23741 | "\x22\x39\x23\x36\xfe\xa1\x85\x1f" |
| 23742 | "\x38", |
| 23743 | .rlen = 281, |
| 23744 | }, |
| 23745 | }; |
| 23746 | |
| 23747 | static struct aead_testvec rfc7539esp_dec_tv_template[] = { |
| 23748 | { |
| 23749 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 23750 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 23751 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 23752 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0" |
| 23753 | "\x00\x00\x00\x00", |
| 23754 | .klen = 36, |
| 23755 | .iv = "\x01\x02\x03\x04\x05\x06\x07\x08", |
| 23756 | .assoc = "\xf3\x33\x88\x86\x00\x00\x00\x00" |
Herbert Xu | 7479092 | 2015-07-16 12:35:08 +0800 | [diff] [blame] | 23757 | "\x00\x00\x4e\x91\x01\x02\x03\x04" |
| 23758 | "\x05\x06\x07\x08", |
| 23759 | .alen = 20, |
Martin Willi | 5900758 | 2015-06-01 13:44:03 +0200 | [diff] [blame] | 23760 | .input = "\x64\xa0\x86\x15\x75\x86\x1a\xf4" |
| 23761 | "\x60\xf0\x62\xc7\x9b\xe6\x43\xbd" |
| 23762 | "\x5e\x80\x5c\xfd\x34\x5c\xf3\x89" |
| 23763 | "\xf1\x08\x67\x0a\xc7\x6c\x8c\xb2" |
| 23764 | "\x4c\x6c\xfc\x18\x75\x5d\x43\xee" |
| 23765 | "\xa0\x9e\xe9\x4e\x38\x2d\x26\xb0" |
| 23766 | "\xbd\xb7\xb7\x3c\x32\x1b\x01\x00" |
| 23767 | "\xd4\xf0\x3b\x7f\x35\x58\x94\xcf" |
| 23768 | "\x33\x2f\x83\x0e\x71\x0b\x97\xce" |
| 23769 | "\x98\xc8\xa8\x4a\xbd\x0b\x94\x81" |
| 23770 | "\x14\xad\x17\x6e\x00\x8d\x33\xbd" |
| 23771 | "\x60\xf9\x82\xb1\xff\x37\xc8\x55" |
| 23772 | "\x97\x97\xa0\x6e\xf4\xf0\xef\x61" |
| 23773 | "\xc1\x86\x32\x4e\x2b\x35\x06\x38" |
| 23774 | "\x36\x06\x90\x7b\x6a\x7c\x02\xb0" |
| 23775 | "\xf9\xf6\x15\x7b\x53\xc8\x67\xe4" |
| 23776 | "\xb9\x16\x6c\x76\x7b\x80\x4d\x46" |
| 23777 | "\xa5\x9b\x52\x16\xcd\xe7\xa4\xe9" |
| 23778 | "\x90\x40\xc5\xa4\x04\x33\x22\x5e" |
| 23779 | "\xe2\x82\xa1\xb0\xa0\x6c\x52\x3e" |
| 23780 | "\xaf\x45\x34\xd7\xf8\x3f\xa1\x15" |
| 23781 | "\x5b\x00\x47\x71\x8c\xbc\x54\x6a" |
| 23782 | "\x0d\x07\x2b\x04\xb3\x56\x4e\xea" |
| 23783 | "\x1b\x42\x22\x73\xf5\x48\x27\x1a" |
| 23784 | "\x0b\xb2\x31\x60\x53\xfa\x76\x99" |
| 23785 | "\x19\x55\xeb\xd6\x31\x59\x43\x4e" |
| 23786 | "\xce\xbb\x4e\x46\x6d\xae\x5a\x10" |
| 23787 | "\x73\xa6\x72\x76\x27\x09\x7a\x10" |
| 23788 | "\x49\xe6\x17\xd9\x1d\x36\x10\x94" |
| 23789 | "\xfa\x68\xf0\xff\x77\x98\x71\x30" |
| 23790 | "\x30\x5b\xea\xba\x2e\xda\x04\xdf" |
| 23791 | "\x99\x7b\x71\x4d\x6c\x6f\x2c\x29" |
| 23792 | "\xa6\xad\x5c\xb4\x02\x2b\x02\x70" |
| 23793 | "\x9b\xee\xad\x9d\x67\x89\x0c\xbb" |
| 23794 | "\x22\x39\x23\x36\xfe\xa1\x85\x1f" |
| 23795 | "\x38", |
| 23796 | .ilen = 281, |
| 23797 | .result = "\x49\x6e\x74\x65\x72\x6e\x65\x74" |
| 23798 | "\x2d\x44\x72\x61\x66\x74\x73\x20" |
| 23799 | "\x61\x72\x65\x20\x64\x72\x61\x66" |
| 23800 | "\x74\x20\x64\x6f\x63\x75\x6d\x65" |
| 23801 | "\x6e\x74\x73\x20\x76\x61\x6c\x69" |
| 23802 | "\x64\x20\x66\x6f\x72\x20\x61\x20" |
| 23803 | "\x6d\x61\x78\x69\x6d\x75\x6d\x20" |
| 23804 | "\x6f\x66\x20\x73\x69\x78\x20\x6d" |
| 23805 | "\x6f\x6e\x74\x68\x73\x20\x61\x6e" |
| 23806 | "\x64\x20\x6d\x61\x79\x20\x62\x65" |
| 23807 | "\x20\x75\x70\x64\x61\x74\x65\x64" |
| 23808 | "\x2c\x20\x72\x65\x70\x6c\x61\x63" |
| 23809 | "\x65\x64\x2c\x20\x6f\x72\x20\x6f" |
| 23810 | "\x62\x73\x6f\x6c\x65\x74\x65\x64" |
| 23811 | "\x20\x62\x79\x20\x6f\x74\x68\x65" |
| 23812 | "\x72\x20\x64\x6f\x63\x75\x6d\x65" |
| 23813 | "\x6e\x74\x73\x20\x61\x74\x20\x61" |
| 23814 | "\x6e\x79\x20\x74\x69\x6d\x65\x2e" |
| 23815 | "\x20\x49\x74\x20\x69\x73\x20\x69" |
| 23816 | "\x6e\x61\x70\x70\x72\x6f\x70\x72" |
| 23817 | "\x69\x61\x74\x65\x20\x74\x6f\x20" |
| 23818 | "\x75\x73\x65\x20\x49\x6e\x74\x65" |
| 23819 | "\x72\x6e\x65\x74\x2d\x44\x72\x61" |
| 23820 | "\x66\x74\x73\x20\x61\x73\x20\x72" |
| 23821 | "\x65\x66\x65\x72\x65\x6e\x63\x65" |
| 23822 | "\x20\x6d\x61\x74\x65\x72\x69\x61" |
| 23823 | "\x6c\x20\x6f\x72\x20\x74\x6f\x20" |
| 23824 | "\x63\x69\x74\x65\x20\x74\x68\x65" |
| 23825 | "\x6d\x20\x6f\x74\x68\x65\x72\x20" |
| 23826 | "\x74\x68\x61\x6e\x20\x61\x73\x20" |
| 23827 | "\x2f\xe2\x80\x9c\x77\x6f\x72\x6b" |
| 23828 | "\x20\x69\x6e\x20\x70\x72\x6f\x67" |
| 23829 | "\x72\x65\x73\x73\x2e\x2f\xe2\x80" |
| 23830 | "\x9d", |
| 23831 | .rlen = 265, |
| 23832 | }, |
| 23833 | }; |
| 23834 | |
| 23835 | /* |
Stephan Mueller | 3535198 | 2015-09-21 20:59:56 +0200 | [diff] [blame] | 23836 | * All key wrapping test vectors taken from |
| 23837 | * http://csrc.nist.gov/groups/STM/cavp/documents/mac/kwtestvectors.zip |
| 23838 | * |
| 23839 | * Note: as documented in keywrap.c, the ivout for encryption is the first |
| 23840 | * semiblock of the ciphertext from the test vector. For decryption, iv is |
| 23841 | * the first semiblock of the ciphertext. |
| 23842 | */ |
| 23843 | static struct cipher_testvec aes_kw_enc_tv_template[] = { |
| 23844 | { |
| 23845 | .key = "\x75\x75\xda\x3a\x93\x60\x7c\xc2" |
| 23846 | "\xbf\xd8\xce\xc7\xaa\xdf\xd9\xa6", |
| 23847 | .klen = 16, |
| 23848 | .input = "\x42\x13\x6d\x3c\x38\x4a\x3e\xea" |
| 23849 | "\xc9\x5a\x06\x6f\xd2\x8f\xed\x3f", |
| 23850 | .ilen = 16, |
| 23851 | .result = "\xf6\x85\x94\x81\x6f\x64\xca\xa3" |
| 23852 | "\xf5\x6f\xab\xea\x25\x48\xf5\xfb", |
| 23853 | .rlen = 16, |
| 23854 | .iv_out = "\x03\x1f\x6b\xd7\xe6\x1e\x64\x3d", |
| 23855 | }, |
| 23856 | }; |
| 23857 | |
| 23858 | static struct cipher_testvec aes_kw_dec_tv_template[] = { |
| 23859 | { |
| 23860 | .key = "\x80\xaa\x99\x73\x27\xa4\x80\x6b" |
| 23861 | "\x6a\x7a\x41\xa5\x2b\x86\xc3\x71" |
| 23862 | "\x03\x86\xf9\x32\x78\x6e\xf7\x96" |
| 23863 | "\x76\xfa\xfb\x90\xb8\x26\x3c\x5f", |
| 23864 | .klen = 32, |
| 23865 | .input = "\xd3\x3d\x3d\x97\x7b\xf0\xa9\x15" |
| 23866 | "\x59\xf9\x9c\x8a\xcd\x29\x3d\x43", |
| 23867 | .ilen = 16, |
| 23868 | .result = "\x0a\x25\x6b\xa7\x5c\xfa\x03\xaa" |
| 23869 | "\xa0\x2b\xa9\x42\x03\xf1\x5b\xaa", |
| 23870 | .rlen = 16, |
| 23871 | .iv = "\x42\x3c\x96\x0d\x8a\x2a\xc4\xc1", |
| 23872 | }, |
| 23873 | }; |
| 23874 | |
| 23875 | /* |
Jarod Wilson | e08ca2d | 2009-05-04 19:46:29 +0800 | [diff] [blame] | 23876 | * ANSI X9.31 Continuous Pseudo-Random Number Generator (AES mode) |
| 23877 | * test vectors, taken from Appendix B.2.9 and B.2.10: |
| 23878 | * http://csrc.nist.gov/groups/STM/cavp/documents/rng/RNGVS.pdf |
| 23879 | * Only AES-128 is supported at this time. |
| 23880 | */ |
| 23881 | #define ANSI_CPRNG_AES_TEST_VECTORS 6 |
| 23882 | |
| 23883 | static struct cprng_testvec ansi_cprng_aes_tv_template[] = { |
| 23884 | { |
| 23885 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 23886 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 23887 | .klen = 16, |
| 23888 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 23889 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xf9", |
| 23890 | .dtlen = 16, |
| 23891 | .v = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 23892 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23893 | .vlen = 16, |
| 23894 | .result = "\x59\x53\x1e\xd1\x3b\xb0\xc0\x55" |
| 23895 | "\x84\x79\x66\x85\xc1\x2f\x76\x41", |
| 23896 | .rlen = 16, |
| 23897 | .loops = 1, |
| 23898 | }, { |
| 23899 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 23900 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 23901 | .klen = 16, |
| 23902 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 23903 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfa", |
| 23904 | .dtlen = 16, |
| 23905 | .v = "\xc0\x00\x00\x00\x00\x00\x00\x00" |
| 23906 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23907 | .vlen = 16, |
| 23908 | .result = "\x7c\x22\x2c\xf4\xca\x8f\xa2\x4c" |
| 23909 | "\x1c\x9c\xb6\x41\xa9\xf3\x22\x0d", |
| 23910 | .rlen = 16, |
| 23911 | .loops = 1, |
| 23912 | }, { |
| 23913 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 23914 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 23915 | .klen = 16, |
| 23916 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 23917 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfb", |
| 23918 | .dtlen = 16, |
| 23919 | .v = "\xe0\x00\x00\x00\x00\x00\x00\x00" |
| 23920 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23921 | .vlen = 16, |
| 23922 | .result = "\x8a\xaa\x00\x39\x66\x67\x5b\xe5" |
| 23923 | "\x29\x14\x28\x81\xa9\x4d\x4e\xc7", |
| 23924 | .rlen = 16, |
| 23925 | .loops = 1, |
| 23926 | }, { |
| 23927 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 23928 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 23929 | .klen = 16, |
| 23930 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 23931 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfc", |
| 23932 | .dtlen = 16, |
| 23933 | .v = "\xf0\x00\x00\x00\x00\x00\x00\x00" |
| 23934 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23935 | .vlen = 16, |
| 23936 | .result = "\x88\xdd\xa4\x56\x30\x24\x23\xe5" |
| 23937 | "\xf6\x9d\xa5\x7e\x7b\x95\xc7\x3a", |
| 23938 | .rlen = 16, |
| 23939 | .loops = 1, |
| 23940 | }, { |
| 23941 | .key = "\xf3\xb1\x66\x6d\x13\x60\x72\x42" |
| 23942 | "\xed\x06\x1c\xab\xb8\xd4\x62\x02", |
| 23943 | .klen = 16, |
| 23944 | .dt = "\xe6\xb3\xbe\x78\x2a\x23\xfa\x62" |
| 23945 | "\xd7\x1d\x4a\xfb\xb0\xe9\x22\xfd", |
| 23946 | .dtlen = 16, |
| 23947 | .v = "\xf8\x00\x00\x00\x00\x00\x00\x00" |
| 23948 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 23949 | .vlen = 16, |
| 23950 | .result = "\x05\x25\x92\x46\x61\x79\xd2\xcb" |
| 23951 | "\x78\xc4\x0b\x14\x0a\x5a\x9a\xc8", |
| 23952 | .rlen = 16, |
| 23953 | .loops = 1, |
| 23954 | }, { /* Monte Carlo Test */ |
| 23955 | .key = "\x9f\x5b\x51\x20\x0b\xf3\x34\xb5" |
| 23956 | "\xd8\x2b\xe8\xc3\x72\x55\xc8\x48", |
| 23957 | .klen = 16, |
| 23958 | .dt = "\x63\x76\xbb\xe5\x29\x02\xba\x3b" |
| 23959 | "\x67\xc9\x25\xfa\x70\x1f\x11\xac", |
| 23960 | .dtlen = 16, |
| 23961 | .v = "\x57\x2c\x8e\x76\x87\x26\x47\x97" |
| 23962 | "\x7e\x74\xfb\xdd\xc4\x95\x01\xd1", |
| 23963 | .vlen = 16, |
| 23964 | .result = "\x48\xe9\xbd\x0d\x06\xee\x18\xfb" |
| 23965 | "\xe4\x57\x90\xd5\xc3\xfc\x9b\x73", |
| 23966 | .rlen = 16, |
| 23967 | .loops = 10000, |
| 23968 | }, |
| 23969 | }; |
| 23970 | |
Stephan Mueller | 3332ee2 | 2014-05-31 17:24:38 +0200 | [diff] [blame] | 23971 | /* |
| 23972 | * SP800-90A DRBG Test vectors from |
| 23973 | * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip |
| 23974 | * |
| 23975 | * Test vectors for DRBG with prediction resistance. All types of DRBGs |
| 23976 | * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and |
| 23977 | * w/o personalization string, w/ and w/o additional input string). |
| 23978 | */ |
| 23979 | static struct drbg_testvec drbg_pr_sha256_tv_template[] = { |
| 23980 | { |
| 23981 | .entropy = (unsigned char *) |
| 23982 | "\x72\x88\x4c\xcd\x6c\x85\x57\x70\xf7\x0b\x8b\x86" |
| 23983 | "\xc1\xeb\xd2\x4e\x36\x14\xab\x18\xc4\x9c\xc9\xcf" |
| 23984 | "\x1a\xe8\xf7\x7b\x02\x49\x73\xd7\xf1\x42\x7d\xc6" |
| 23985 | "\x3f\x29\x2d\xec\xd3\x66\x51\x3f\x1d\x8d\x5b\x4e", |
| 23986 | .entropylen = 48, |
| 23987 | .entpra = (unsigned char *) |
| 23988 | "\x38\x9c\x91\xfa\xc2\xa3\x46\x89\x56\x08\x3f\x62" |
| 23989 | "\x73\xd5\x22\xa9\x29\x63\x3a\x1d\xe5\x5d\x5e\x4f" |
| 23990 | "\x67\xb0\x67\x7a\x5e\x9e\x0c\x62", |
| 23991 | .entprb = (unsigned char *) |
| 23992 | "\xb2\x8f\x36\xb2\xf6\x8d\x39\x13\xfa\x6c\x66\xcf" |
| 23993 | "\x62\x8a\x7e\x8c\x12\x33\x71\x9c\x69\xe4\xa5\xf0" |
| 23994 | "\x8c\xee\xeb\x9c\xf5\x31\x98\x31", |
| 23995 | .entprlen = 32, |
| 23996 | .expected = (unsigned char *) |
| 23997 | "\x52\x7b\xa3\xad\x71\x77\xa4\x49\x42\x04\x61\xc7" |
| 23998 | "\xf0\xaf\xa5\xfd\xd3\xb3\x0d\x6a\x61\xba\x35\x49" |
| 23999 | "\xbb\xaa\xaf\xe4\x25\x7d\xb5\x48\xaf\x5c\x18\x3d" |
| 24000 | "\x33\x8d\x9d\x45\xdf\x98\xd5\x94\xa8\xda\x92\xfe" |
| 24001 | "\xc4\x3c\x94\x2a\xcf\x7f\x7b\xf2\xeb\x28\xa9\xf1" |
| 24002 | "\xe0\x86\x30\xa8\xfe\xf2\x48\x90\x91\x0c\x75\xb5" |
| 24003 | "\x3c\x00\xf0\x4d\x09\x4f\x40\xa7\xa2\x8c\x52\xdf" |
| 24004 | "\x52\xef\x17\xbf\x3d\xd1\xa2\x31\xb4\xb8\xdc\xe6" |
| 24005 | "\x5b\x0d\x1f\x78\x36\xb4\xe6\x4b\xa7\x11\x25\xd5" |
| 24006 | "\x94\xc6\x97\x36\xab\xf0\xe5\x31\x28\x6a\xbb\xce" |
| 24007 | "\x30\x81\xa6\x8f\x27\x14\xf8\x1c", |
| 24008 | .expectedlen = 128, |
| 24009 | .addtla = NULL, |
| 24010 | .addtlb = NULL, |
| 24011 | .addtllen = 0, |
| 24012 | .pers = NULL, |
| 24013 | .perslen = 0, |
| 24014 | }, { |
| 24015 | .entropy = (unsigned char *) |
| 24016 | "\x5d\xf2\x14\xbc\xf6\xb5\x4e\x0b\xf0\x0d\x6f\x2d" |
| 24017 | "\xe2\x01\x66\x7b\xd0\xa4\x73\xa4\x21\xdd\xb0\xc0" |
| 24018 | "\x51\x79\x09\xf4\xea\xa9\x08\xfa\xa6\x67\xe0\xe1" |
| 24019 | "\xd1\x88\xa8\xad\xee\x69\x74\xb3\x55\x06\x9b\xf6", |
| 24020 | .entropylen = 48, |
| 24021 | .entpra = (unsigned char *) |
| 24022 | "\xef\x48\x06\xa2\xc2\x45\xf1\x44\xfa\x34\x2c\xeb" |
| 24023 | "\x8d\x78\x3c\x09\x8f\x34\x72\x20\xf2\xe7\xfd\x13" |
| 24024 | "\x76\x0a\xf6\xdc\x3c\xf5\xc0\x15", |
| 24025 | .entprb = (unsigned char *) |
| 24026 | "\x4b\xbe\xe5\x24\xed\x6a\x2d\x0c\xdb\x73\x5e\x09" |
| 24027 | "\xf9\xad\x67\x7c\x51\x47\x8b\x6b\x30\x2a\xc6\xde" |
| 24028 | "\x76\xaa\x55\x04\x8b\x0a\x72\x95", |
| 24029 | .entprlen = 32, |
| 24030 | .expected = (unsigned char *) |
| 24031 | "\x3b\x14\x71\x99\xa1\xda\xa0\x42\xe6\xc8\x85\x32" |
| 24032 | "\x70\x20\x32\x53\x9a\xbe\xd1\x1e\x15\xef\xfb\x4c" |
| 24033 | "\x25\x6e\x19\x3a\xf0\xb9\xcb\xde\xf0\x3b\xc6\x18" |
| 24034 | "\x4d\x85\x5a\x9b\xf1\xe3\xc2\x23\x03\x93\x08\xdb" |
| 24035 | "\xa7\x07\x4b\x33\x78\x40\x4d\xeb\x24\xf5\x6e\x81" |
| 24036 | "\x4a\x1b\x6e\xa3\x94\x52\x43\xb0\xaf\x2e\x21\xf4" |
| 24037 | "\x42\x46\x8e\x90\xed\x34\x21\x75\xea\xda\x67\xb6" |
| 24038 | "\xe4\xf6\xff\xc6\x31\x6c\x9a\x5a\xdb\xb3\x97\x13" |
| 24039 | "\x09\xd3\x20\x98\x33\x2d\x6d\xd7\xb5\x6a\xa8\xa9" |
| 24040 | "\x9a\x5b\xd6\x87\x52\xa1\x89\x2b\x4b\x9c\x64\x60" |
| 24041 | "\x50\x47\xa3\x63\x81\x16\xaf\x19", |
| 24042 | .expectedlen = 128, |
| 24043 | .addtla = (unsigned char *) |
| 24044 | "\xbe\x13\xdb\x2a\xe9\xa8\xfe\x09\x97\xe1\xce\x5d" |
| 24045 | "\xe8\xbb\xc0\x7c\x4f\xcb\x62\x19\x3f\x0f\xd2\xad" |
| 24046 | "\xa9\xd0\x1d\x59\x02\xc4\xff\x70", |
| 24047 | .addtlb = (unsigned char *) |
| 24048 | "\x6f\x96\x13\xe2\xa7\xf5\x6c\xfe\xdf\x66\xe3\x31" |
| 24049 | "\x63\x76\xbf\x20\x27\x06\x49\xf1\xf3\x01\x77\x41" |
| 24050 | "\x9f\xeb\xe4\x38\xfe\x67\x00\xcd", |
| 24051 | .addtllen = 32, |
| 24052 | .pers = NULL, |
| 24053 | .perslen = 0, |
| 24054 | }, { |
| 24055 | .entropy = (unsigned char *) |
| 24056 | "\xc6\x1c\xaf\x83\xa2\x56\x38\xf9\xb0\xbc\xd9\x85" |
| 24057 | "\xf5\x2e\xc4\x46\x9c\xe1\xb9\x40\x98\x70\x10\x72" |
| 24058 | "\xd7\x7d\x15\x85\xa1\x83\x5a\x97\xdf\xc8\xa8\xe8" |
| 24059 | "\x03\x4c\xcb\x70\x35\x8b\x90\x94\x46\x8a\x6e\xa1", |
| 24060 | .entropylen = 48, |
| 24061 | .entpra = (unsigned char *) |
| 24062 | "\xc9\x05\xa4\xcf\x28\x80\x4b\x93\x0f\x8b\xc6\xf9" |
| 24063 | "\x09\x41\x58\x74\xe9\xec\x28\xc7\x53\x0a\x73\x60" |
| 24064 | "\xba\x0a\xde\x57\x5b\x4b\x9f\x29", |
| 24065 | .entprb = (unsigned char *) |
| 24066 | "\x4f\x31\xd2\xeb\xac\xfa\xa8\xe2\x01\x7d\xf3\xbd" |
| 24067 | "\x42\xbd\x20\xa0\x30\x65\x74\xd5\x5d\xd2\xad\xa4" |
| 24068 | "\xa9\xeb\x1f\x4d\xf6\xfd\xb8\x26", |
| 24069 | .entprlen = 32, |
| 24070 | .expected = (unsigned char *) |
| 24071 | "\xf6\x13\x05\xcb\x83\x60\x16\x42\x49\x1d\xc6\x25" |
| 24072 | "\x3b\x8c\x31\xa3\xbe\x8b\xbd\x1c\xe2\xec\x1d\xde" |
| 24073 | "\xbb\xbf\xa1\xac\xa8\x9f\x50\xce\x69\xce\xef\xd5" |
| 24074 | "\xd6\xf2\xef\x6a\xf7\x81\x38\xdf\xbc\xa7\x5a\xb9" |
| 24075 | "\xb2\x42\x65\xab\xe4\x86\x8d\x2d\x9d\x59\x99\x2c" |
| 24076 | "\x5a\x0d\x71\x55\x98\xa4\x45\xc2\x8d\xdb\x05\x5e" |
| 24077 | "\x50\x21\xf7\xcd\xe8\x98\x43\xce\x57\x74\x63\x4c" |
| 24078 | "\xf3\xb1\xa5\x14\x1e\x9e\x01\xeb\x54\xd9\x56\xae" |
| 24079 | "\xbd\xb6\x6f\x1a\x47\x6b\x3b\x44\xe4\xa2\xe9\x3c" |
| 24080 | "\x6c\x83\x12\x30\xb8\x78\x7f\x8e\x54\x82\xd4\xfe" |
| 24081 | "\x90\x35\x0d\x4c\x4d\x85\xe7\x13", |
| 24082 | .expectedlen = 128, |
| 24083 | .addtla = NULL, |
| 24084 | .addtlb = NULL, |
| 24085 | .addtllen = 0, |
| 24086 | .pers = (unsigned char *) |
| 24087 | "\xa5\xbf\xac\x4f\x71\xa1\xbb\x67\x94\xc6\x50\xc7" |
| 24088 | "\x2a\x45\x9e\x10\xa8\xed\xf7\x52\x4f\xfe\x21\x90" |
| 24089 | "\xa4\x1b\xe1\xe2\x53\xcc\x61\x47", |
| 24090 | .perslen = 32, |
| 24091 | }, { |
| 24092 | .entropy = (unsigned char *) |
| 24093 | "\xb6\xc1\x8d\xdf\x99\x54\xbe\x95\x10\x48\xd9\xf6" |
| 24094 | "\xd7\x48\xa8\x73\x2d\x74\xde\x1e\xde\x57\x7e\xf4" |
| 24095 | "\x7b\x7b\x64\xef\x88\x7a\xa8\x10\x4b\xe1\xc1\x87" |
| 24096 | "\xbb\x0b\xe1\x39\x39\x50\xaf\x68\x9c\xa2\xbf\x5e", |
| 24097 | .entropylen = 48, |
| 24098 | .entpra = (unsigned char *) |
| 24099 | "\xdc\x81\x0a\x01\x58\xa7\x2e\xce\xee\x48\x8c\x7c" |
| 24100 | "\x77\x9e\x3c\xf1\x17\x24\x7a\xbb\xab\x9f\xca\x12" |
| 24101 | "\x19\xaf\x97\x2d\x5f\xf9\xff\xfc", |
| 24102 | .entprb = (unsigned char *) |
| 24103 | "\xaf\xfc\x4f\x98\x8b\x93\x95\xc1\xb5\x8b\x7f\x73" |
| 24104 | "\x6d\xa6\xbe\x6d\x33\xeb\x2c\x82\xb1\xaf\xc1\xb6" |
| 24105 | "\xb6\x05\xe2\x44\xaa\xfd\xe7\xdb", |
| 24106 | .entprlen = 32, |
| 24107 | .expected = (unsigned char *) |
| 24108 | "\x51\x79\xde\x1c\x0f\x58\xf3\xf4\xc9\x57\x2e\x31" |
| 24109 | "\xa7\x09\xa1\x53\x64\x63\xa2\xc5\x1d\x84\x88\x65" |
| 24110 | "\x01\x1b\xc6\x16\x3c\x49\x5b\x42\x8e\x53\xf5\x18" |
| 24111 | "\xad\x94\x12\x0d\x4f\x55\xcc\x45\x5c\x98\x0f\x42" |
| 24112 | "\x28\x2f\x47\x11\xf9\xc4\x01\x97\x6b\xa0\x94\x50" |
| 24113 | "\xa9\xd1\x5e\x06\x54\x3f\xdf\xbb\xc4\x98\xee\x8b" |
| 24114 | "\xba\xa9\xfa\x49\xee\x1d\xdc\xfb\x50\xf6\x51\x9f" |
| 24115 | "\x6c\x4a\x9a\x6f\x63\xa2\x7d\xad\xaf\x3a\x24\xa0" |
| 24116 | "\xd9\x9f\x07\xeb\x15\xee\x26\xe0\xd5\x63\x39\xda" |
| 24117 | "\x3c\x59\xd6\x33\x6c\x02\xe8\x05\x71\x46\x68\x44" |
| 24118 | "\x63\x4a\x68\x72\xe9\xf5\x55\xfe", |
| 24119 | .expectedlen = 128, |
| 24120 | .addtla = (unsigned char *) |
| 24121 | "\x15\x20\x2f\xf6\x98\x28\x63\xa2\xc4\x4e\xbb\x6c" |
| 24122 | "\xb2\x25\x92\x61\x79\xc9\x22\xc4\x61\x54\x96\xff" |
| 24123 | "\x4a\x85\xca\x80\xfe\x0d\x1c\xd0", |
| 24124 | .addtlb = (unsigned char *) |
| 24125 | "\xde\x29\x8e\x03\x42\x61\xa3\x28\x5e\xc8\x80\xc2" |
| 24126 | "\x6d\xbf\xad\x13\xe1\x8d\x2a\xc7\xe8\xc7\x18\x89" |
| 24127 | "\x42\x58\x9e\xd6\xcc\xad\x7b\x1e", |
| 24128 | .addtllen = 32, |
| 24129 | .pers = (unsigned char *) |
| 24130 | "\x84\xc3\x73\x9e\xce\xb3\xbc\x89\xf7\x62\xb3\xe1" |
| 24131 | "\xd7\x48\x45\x8a\xa9\xcc\xe9\xed\xd5\x81\x84\x52" |
| 24132 | "\x82\x4c\xdc\x19\xb8\xf8\x92\x5c", |
| 24133 | .perslen = 32, |
| 24134 | }, |
| 24135 | }; |
| 24136 | |
| 24137 | static struct drbg_testvec drbg_pr_hmac_sha256_tv_template[] = { |
| 24138 | { |
| 24139 | .entropy = (unsigned char *) |
| 24140 | "\x99\x69\xe5\x4b\x47\x03\xff\x31\x78\x5b\x87\x9a" |
| 24141 | "\x7e\x5c\x0e\xae\x0d\x3e\x30\x95\x59\xe9\xfe\x96" |
| 24142 | "\xb0\x67\x6d\x49\xd5\x91\xea\x4d\x07\xd2\x0d\x46" |
| 24143 | "\xd0\x64\x75\x7d\x30\x23\xca\xc2\x37\x61\x27\xab", |
| 24144 | .entropylen = 48, |
| 24145 | .entpra = (unsigned char *) |
| 24146 | "\xc6\x0f\x29\x99\x10\x0f\x73\x8c\x10\xf7\x47\x92" |
| 24147 | "\x67\x6a\x3f\xc4\xa2\x62\xd1\x37\x21\x79\x80\x46" |
| 24148 | "\xe2\x9a\x29\x51\x81\x56\x9f\x54", |
| 24149 | .entprb = (unsigned char *) |
| 24150 | "\xc1\x1d\x45\x24\xc9\x07\x1b\xd3\x09\x60\x15\xfc" |
| 24151 | "\xf7\xbc\x24\xa6\x07\xf2\x2f\xa0\x65\xc9\x37\x65" |
| 24152 | "\x8a\x2a\x77\xa8\x69\x90\x89\xf4", |
| 24153 | .entprlen = 32, |
| 24154 | .expected = (unsigned char *) |
| 24155 | "\xab\xc0\x15\x85\x60\x94\x80\x3a\x93\x8d\xff\xd2" |
| 24156 | "\x0d\xa9\x48\x43\x87\x0e\xf9\x35\xb8\x2c\xfe\xc1" |
| 24157 | "\x77\x06\xb8\xf5\x51\xb8\x38\x50\x44\x23\x5d\xd4" |
| 24158 | "\x4b\x59\x9f\x94\xb3\x9b\xe7\x8d\xd4\x76\xe0\xcf" |
| 24159 | "\x11\x30\x9c\x99\x5a\x73\x34\xe0\xa7\x8b\x37\xbc" |
| 24160 | "\x95\x86\x23\x50\x86\xfa\x3b\x63\x7b\xa9\x1c\xf8" |
| 24161 | "\xfb\x65\xef\xa2\x2a\x58\x9c\x13\x75\x31\xaa\x7b" |
| 24162 | "\x2d\x4e\x26\x07\xaa\xc2\x72\x92\xb0\x1c\x69\x8e" |
| 24163 | "\x6e\x01\xae\x67\x9e\xb8\x7c\x01\xa8\x9c\x74\x22" |
| 24164 | "\xd4\x37\x2d\x6d\x75\x4a\xba\xbb\x4b\xf8\x96\xfc" |
| 24165 | "\xb1\xcd\x09\xd6\x92\xd0\x28\x3f", |
| 24166 | .expectedlen = 128, |
| 24167 | .addtla = NULL, |
| 24168 | .addtlb = NULL, |
| 24169 | .addtllen = 0, |
| 24170 | .pers = NULL, |
| 24171 | .perslen = 0, |
| 24172 | }, { |
| 24173 | .entropy = (unsigned char *) |
| 24174 | "\xb9\x1f\xe9\xef\xdd\x9b\x7d\x20\xb6\xec\xe0\x2f" |
| 24175 | "\xdb\x76\x24\xce\x41\xc8\x3a\x4a\x12\x7f\x3e\x2f" |
| 24176 | "\xae\x05\x99\xea\xb5\x06\x71\x0d\x0c\x4c\xb4\x05" |
| 24177 | "\x26\xc6\xbd\xf5\x7f\x2a\x3d\xf2\xb5\x49\x7b\xda", |
| 24178 | .entropylen = 48, |
| 24179 | .entpra = (unsigned char *) |
| 24180 | "\xef\x67\x50\x9c\xa7\x7d\xdf\xb7\x2d\x81\x01\xa4" |
| 24181 | "\x62\x81\x6a\x69\x5b\xb3\x37\x45\xa7\x34\x8e\x26" |
| 24182 | "\x46\xd9\x26\xa2\x19\xd4\x94\x43", |
| 24183 | .entprb = (unsigned char *) |
| 24184 | "\x97\x75\x53\x53\xba\xb4\xa6\xb2\x91\x60\x71\x79" |
| 24185 | "\xd1\x6b\x4a\x24\x9a\x34\x66\xcc\x33\xab\x07\x98" |
| 24186 | "\x51\x78\x72\xb2\x79\xfd\x2c\xff", |
| 24187 | .entprlen = 32, |
| 24188 | .expected = (unsigned char *) |
| 24189 | "\x9c\xdc\x63\x8a\x19\x23\x22\x66\x0c\xc5\xb9\xd7" |
| 24190 | "\xfb\x2a\xb0\x31\xe3\x8a\x36\xa8\x5a\xa8\x14\xda" |
| 24191 | "\x1e\xa9\xcc\xfe\xb8\x26\x44\x83\x9f\xf6\xff\xaa" |
| 24192 | "\xc8\x98\xb8\x30\x35\x3b\x3d\x36\xd2\x49\xd4\x40" |
| 24193 | "\x62\x0a\x65\x10\x76\x55\xef\xc0\x95\x9c\xa7\xda" |
| 24194 | "\x3f\xcf\xb7\x7b\xc6\xe1\x28\x52\xfc\x0c\xe2\x37" |
| 24195 | "\x0d\x83\xa7\x51\x4b\x31\x47\x3c\xe1\x3c\xae\x70" |
| 24196 | "\x01\xc8\xa3\xd3\xc2\xac\x77\x9c\xd1\x68\x77\x9b" |
| 24197 | "\x58\x27\x3b\xa5\x0f\xc2\x7a\x8b\x04\x65\x62\xd5" |
| 24198 | "\xe8\xd6\xfe\x2a\xaf\xd3\xd3\xfe\xbd\x18\xfb\xcd" |
| 24199 | "\xcd\x66\xb5\x01\x69\x66\xa0\x3c", |
| 24200 | .expectedlen = 128, |
| 24201 | .addtla = (unsigned char *) |
| 24202 | "\x17\xc1\x56\xcb\xcc\x50\xd6\x03\x7d\x45\x76\xa3" |
| 24203 | "\x75\x76\xc1\x4a\x66\x1b\x2e\xdf\xb0\x2e\x7d\x56" |
| 24204 | "\x6d\x99\x3b\xc6\x58\xda\x03\xf6", |
| 24205 | .addtlb = (unsigned char *) |
| 24206 | "\x7c\x7b\x4a\x4b\x32\x5e\x6f\x67\x34\xf5\x21\x4c" |
| 24207 | "\xf9\x96\xf9\xbf\x1c\x8c\x81\xd3\x9b\x60\x6a\x44" |
| 24208 | "\xc6\x03\xa2\xfb\x13\x20\x19\xb7", |
| 24209 | .addtllen = 32, |
| 24210 | .pers = NULL, |
| 24211 | .perslen = 0, |
| 24212 | }, { |
| 24213 | .entropy = (unsigned char *) |
| 24214 | "\x13\x54\x96\xfc\x1b\x7d\x28\xf3\x18\xc9\xa7\x89" |
| 24215 | "\xb6\xb3\xc8\x72\xac\x00\xd4\x59\x36\x25\x05\xaf" |
| 24216 | "\xa5\xdb\x96\xcb\x3c\x58\x46\x87\xa5\xaa\xbf\x20" |
| 24217 | "\x3b\xfe\x23\x0e\xd1\xc7\x41\x0f\x3f\xc9\xb3\x67", |
| 24218 | .entropylen = 48, |
| 24219 | .entpra = (unsigned char *) |
| 24220 | "\xe2\xbd\xb7\x48\x08\x06\xf3\xe1\x93\x3c\xac\x79" |
| 24221 | "\xa7\x2b\x11\xda\xe3\x2e\xe1\x91\xa5\x02\x19\x57" |
| 24222 | "\x20\x28\xad\xf2\x60\xd7\xcd\x45", |
| 24223 | .entprb = (unsigned char *) |
| 24224 | "\x8b\xd4\x69\xfc\xff\x59\x95\x95\xc6\x51\xde\x71" |
| 24225 | "\x68\x5f\xfc\xf9\x4a\xab\xec\x5a\xcb\xbe\xd3\x66" |
| 24226 | "\x1f\xfa\x74\xd3\xac\xa6\x74\x60", |
| 24227 | .entprlen = 32, |
| 24228 | .expected = (unsigned char *) |
| 24229 | "\x1f\x9e\xaf\xe4\xd2\x46\xb7\x47\x41\x4c\x65\x99" |
| 24230 | "\x01\xe9\x3b\xbb\x83\x0c\x0a\xb0\xc1\x3a\xe2\xb3" |
| 24231 | "\x31\x4e\xeb\x93\x73\xee\x0b\x26\xc2\x63\xa5\x75" |
| 24232 | "\x45\x99\xd4\x5c\x9f\xa1\xd4\x45\x87\x6b\x20\x61" |
| 24233 | "\x40\xea\x78\xa5\x32\xdf\x9e\x66\x17\xaf\xb1\x88" |
| 24234 | "\x9e\x2e\x23\xdd\xc1\xda\x13\x97\x88\xa5\xb6\x5e" |
| 24235 | "\x90\x14\x4e\xef\x13\xab\x5c\xd9\x2c\x97\x9e\x7c" |
| 24236 | "\xd7\xf8\xce\xea\x81\xf5\xcd\x71\x15\x49\x44\xce" |
| 24237 | "\x83\xb6\x05\xfb\x7d\x30\xb5\x57\x2c\x31\x4f\xfc" |
| 24238 | "\xfe\x80\xb6\xc0\x13\x0c\x5b\x9b\x2e\x8f\x3d\xfc" |
| 24239 | "\xc2\xa3\x0c\x11\x1b\x80\x5f\xf3", |
| 24240 | .expectedlen = 128, |
| 24241 | .addtla = NULL, |
| 24242 | .addtlb = NULL, |
| 24243 | .addtllen = 0, |
| 24244 | .pers = (unsigned char *) |
| 24245 | "\x64\xb6\xfc\x60\xbc\x61\x76\x23\x6d\x3f\x4a\x0f" |
| 24246 | "\xe1\xb4\xd5\x20\x9e\x70\xdd\x03\x53\x6d\xbf\xce" |
| 24247 | "\xcd\x56\x80\xbc\xb8\x15\xc8\xaa", |
| 24248 | .perslen = 32, |
| 24249 | }, { |
| 24250 | .entropy = (unsigned char *) |
| 24251 | "\xc7\xcc\xbc\x67\x7e\x21\x66\x1e\x27\x2b\x63\xdd" |
| 24252 | "\x3a\x78\xdc\xdf\x66\x6d\x3f\x24\xae\xcf\x37\x01" |
| 24253 | "\xa9\x0d\x89\x8a\xa7\xdc\x81\x58\xae\xb2\x10\x15" |
| 24254 | "\x7e\x18\x44\x6d\x13\xea\xdf\x37\x85\xfe\x81\xfb", |
| 24255 | .entropylen = 48, |
| 24256 | .entpra = (unsigned char *) |
| 24257 | "\x7b\xa1\x91\x5b\x3c\x04\xc4\x1b\x1d\x19\x2f\x1a" |
| 24258 | "\x18\x81\x60\x3c\x6c\x62\x91\xb7\xe9\xf5\xcb\x96" |
| 24259 | "\xbb\x81\x6a\xcc\xb5\xae\x55\xb6", |
| 24260 | .entprb = (unsigned char *) |
| 24261 | "\x99\x2c\xc7\x78\x7e\x3b\x88\x12\xef\xbe\xd3\xd2" |
| 24262 | "\x7d\x2a\xa5\x86\xda\x8d\x58\x73\x4a\x0a\xb2\x2e" |
| 24263 | "\xbb\x4c\x7e\xe3\x9a\xb6\x81\xc1", |
| 24264 | .entprlen = 32, |
| 24265 | .expected = (unsigned char *) |
| 24266 | "\x95\x6f\x95\xfc\x3b\xb7\xfe\x3e\xd0\x4e\x1a\x14" |
| 24267 | "\x6c\x34\x7f\x7b\x1d\x0d\x63\x5e\x48\x9c\x69\xe6" |
| 24268 | "\x46\x07\xd2\x87\xf3\x86\x52\x3d\x98\x27\x5e\xd7" |
| 24269 | "\x54\xe7\x75\x50\x4f\xfb\x4d\xfd\xac\x2f\x4b\x77" |
| 24270 | "\xcf\x9e\x8e\xcc\x16\xa2\x24\xcd\x53\xde\x3e\xc5" |
| 24271 | "\x55\x5d\xd5\x26\x3f\x89\xdf\xca\x8b\x4e\x1e\xb6" |
| 24272 | "\x88\x78\x63\x5c\xa2\x63\x98\x4e\x6f\x25\x59\xb1" |
| 24273 | "\x5f\x2b\x23\xb0\x4b\xa5\x18\x5d\xc2\x15\x74\x40" |
| 24274 | "\x59\x4c\xb4\x1e\xcf\x9a\x36\xfd\x43\xe2\x03\xb8" |
| 24275 | "\x59\x91\x30\x89\x2a\xc8\x5a\x43\x23\x7c\x73\x72" |
| 24276 | "\xda\x3f\xad\x2b\xba\x00\x6b\xd1", |
| 24277 | .expectedlen = 128, |
| 24278 | .addtla = (unsigned char *) |
| 24279 | "\x18\xe8\x17\xff\xef\x39\xc7\x41\x5c\x73\x03\x03" |
| 24280 | "\xf6\x3d\xe8\x5f\xc8\xab\xe4\xab\x0f\xad\xe8\xd6" |
| 24281 | "\x86\x88\x55\x28\xc1\x69\xdd\x76", |
| 24282 | .addtlb = (unsigned char *) |
| 24283 | "\xac\x07\xfc\xbe\x87\x0e\xd3\xea\x1f\x7e\xb8\xe7" |
| 24284 | "\x9d\xec\xe8\xe7\xbc\xf3\x18\x25\x77\x35\x4a\xaa" |
| 24285 | "\x00\x99\x2a\xdd\x0a\x00\x50\x82", |
| 24286 | .addtllen = 32, |
| 24287 | .pers = (unsigned char *) |
| 24288 | "\xbc\x55\xab\x3c\xf6\x52\xb0\x11\x3d\x7b\x90\xb8" |
| 24289 | "\x24\xc9\x26\x4e\x5a\x1e\x77\x0d\x3d\x58\x4a\xda" |
| 24290 | "\xd1\x81\xe9\xf8\xeb\x30\x8f\x6f", |
| 24291 | .perslen = 32, |
| 24292 | }, |
| 24293 | }; |
| 24294 | |
| 24295 | static struct drbg_testvec drbg_pr_ctr_aes128_tv_template[] = { |
| 24296 | { |
| 24297 | .entropy = (unsigned char *) |
| 24298 | "\xd1\x44\xc6\x61\x81\x6d\xca\x9d\x15\x28\x8a\x42" |
| 24299 | "\x94\xd7\x28\x9c\x43\x77\x19\x29\x1a\x6d\xc3\xa2", |
| 24300 | .entropylen = 24, |
| 24301 | .entpra = (unsigned char *) |
| 24302 | "\x96\xd8\x9e\x45\x32\xc9\xd2\x08\x7a\x6d\x97\x15" |
| 24303 | "\xb4\xec\x80\xb1", |
| 24304 | .entprb = (unsigned char *) |
| 24305 | "\x8b\xb6\x72\xb5\x24\x0b\x98\x65\x95\x95\xe9\xc9" |
| 24306 | "\x28\x07\xeb\xc2", |
| 24307 | .entprlen = 16, |
| 24308 | .expected = (unsigned char *) |
| 24309 | "\x70\x19\xd0\x4c\x45\x78\xd6\x68\xa9\x9a\xaa\xfe" |
| 24310 | "\xc1\xdf\x27\x9a\x1c\x0d\x0d\xf7\x24\x75\x46\xcc" |
| 24311 | "\x77\x6b\xdf\x89\xc6\x94\xdc\x74\x50\x10\x70\x18" |
| 24312 | "\x9b\xdc\x96\xb4\x89\x23\x40\x1a\xce\x09\x87\xce" |
| 24313 | "\xd2\xf3\xd5\xe4\x51\x67\x74\x11\x5a\xcc\x8b\x3b" |
| 24314 | "\x8a\xf1\x23\xa8", |
| 24315 | .expectedlen = 64, |
| 24316 | .addtla = NULL, |
| 24317 | .addtlb = NULL, |
| 24318 | .addtllen = 0, |
| 24319 | .pers = NULL, |
| 24320 | .perslen = 0, |
| 24321 | }, { |
| 24322 | .entropy = (unsigned char *) |
| 24323 | "\x8e\x83\xe0\xeb\x37\xea\x3e\x53\x5e\x17\x6e\x77" |
| 24324 | "\xbd\xb1\x53\x90\xfc\xdc\xc1\x3c\x9a\x88\x22\x94", |
| 24325 | .entropylen = 24, |
| 24326 | .entpra = (unsigned char *) |
| 24327 | "\x6a\x85\xe7\x37\xc8\xf1\x04\x31\x98\x4f\xc8\x73" |
| 24328 | "\x67\xd1\x08\xf8", |
| 24329 | .entprb = (unsigned char *) |
| 24330 | "\xd7\xa4\x68\xe2\x12\x74\xc3\xd9\xf1\xb7\x05\xbc" |
| 24331 | "\xd4\xba\x04\x58", |
| 24332 | .entprlen = 16, |
| 24333 | .expected = (unsigned char *) |
| 24334 | "\x78\xd6\xa6\x70\xff\xd1\x82\xf5\xa2\x88\x7f\x6d" |
| 24335 | "\x3d\x8c\x39\xb1\xa8\xcb\x2c\x91\xab\x14\x7e\xbc" |
| 24336 | "\x95\x45\x9f\x24\xb8\x20\xac\x21\x23\xdb\x72\xd7" |
| 24337 | "\x12\x8d\x48\x95\xf3\x19\x0c\x43\xc6\x19\x45\xfc" |
| 24338 | "\x8b\xac\x40\x29\x73\x00\x03\x45\x5e\x12\xff\x0c" |
| 24339 | "\xc1\x02\x41\x82", |
| 24340 | .expectedlen = 64, |
| 24341 | .addtla = (unsigned char *) |
| 24342 | "\xa2\xd9\x38\xcf\x8b\x29\x67\x5b\x65\x62\x6f\xe8" |
| 24343 | "\xeb\xb3\x01\x76", |
| 24344 | .addtlb = (unsigned char *) |
| 24345 | "\x59\x63\x1e\x81\x8a\x14\xa8\xbb\xa1\xb8\x41\x25" |
| 24346 | "\xd0\x7f\xcc\x43", |
| 24347 | .addtllen = 16, |
| 24348 | .pers = NULL, |
| 24349 | .perslen = 0, |
| 24350 | }, { |
| 24351 | .entropy = (unsigned char *) |
| 24352 | "\x04\xd9\x49\xa6\xdc\xe8\x6e\xbb\xf1\x08\x77\x2b" |
| 24353 | "\x9e\x08\xca\x92\x65\x16\xda\x99\xa2\x59\xf3\xe8", |
| 24354 | .entropylen = 24, |
| 24355 | .entpra = (unsigned char *) |
| 24356 | "\x38\x7e\x3f\x6b\x51\x70\x7b\x20\xec\x53\xd0\x66" |
| 24357 | "\xc3\x0f\xe3\xb0", |
| 24358 | .entprb = (unsigned char *) |
| 24359 | "\xe0\x86\xa6\xaa\x5f\x72\x2f\xad\xf7\xef\x06\xb8" |
| 24360 | "\xd6\x9c\x9d\xe8", |
| 24361 | .entprlen = 16, |
| 24362 | .expected = (unsigned char *) |
| 24363 | "\xc9\x0a\xaf\x85\x89\x71\x44\x66\x4f\x25\x0b\x2b" |
| 24364 | "\xde\xd8\xfa\xff\x52\x5a\x1b\x32\x5e\x41\x7a\x10" |
| 24365 | "\x1f\xef\x1e\x62\x23\xe9\x20\x30\xc9\x0d\xad\x69" |
| 24366 | "\xb4\x9c\x5b\xf4\x87\x42\xd5\xae\x5e\x5e\x43\xcc" |
| 24367 | "\xd9\xfd\x0b\x93\x4a\xe3\xd4\x06\x37\x36\x0f\x3f" |
| 24368 | "\x72\x82\x0c\xcf", |
| 24369 | .expectedlen = 64, |
| 24370 | .addtla = NULL, |
| 24371 | .addtlb = NULL, |
| 24372 | .addtllen = 0, |
| 24373 | .pers = (unsigned char *) |
| 24374 | "\xbf\xa4\x9a\x8f\x7b\xd8\xb1\x7a\x9d\xfa\x45\xed" |
| 24375 | "\x21\x52\xb3\xad", |
| 24376 | .perslen = 16, |
| 24377 | }, { |
| 24378 | .entropy = (unsigned char *) |
| 24379 | "\x92\x89\x8f\x31\xfa\x1c\xff\x6d\x18\x2f\x26\x06" |
| 24380 | "\x43\xdf\xf8\x18\xc2\xa4\xd9\x72\xc3\xb9\xb6\x97", |
| 24381 | .entropylen = 24, |
| 24382 | .entpra = (unsigned char *) |
| 24383 | "\x20\x72\x8a\x06\xf8\x6f\x8d\xd4\x41\xe2\x72\xb7" |
| 24384 | "\xc4\x2c\xe8\x10", |
| 24385 | .entprb = (unsigned char *) |
| 24386 | "\x3d\xb0\xf0\x94\xf3\x05\x50\x33\x17\x86\x3e\x22" |
| 24387 | "\x08\xf7\xa5\x01", |
| 24388 | .entprlen = 16, |
| 24389 | .expected = (unsigned char *) |
| 24390 | "\x5a\x35\x39\x87\x0f\x4d\x22\xa4\x09\x24\xee\x71" |
| 24391 | "\xc9\x6f\xac\x72\x0a\xd6\xf0\x88\x82\xd0\x83\x28" |
| 24392 | "\x73\xec\x3f\x93\xd8\xab\x45\x23\xf0\x7e\xac\x45" |
| 24393 | "\x14\x5e\x93\x9f\xb1\xd6\x76\x43\x3d\xb6\xe8\x08" |
| 24394 | "\x88\xf6\xda\x89\x08\x77\x42\xfe\x1a\xf4\x3f\xc4" |
| 24395 | "\x23\xc5\x1f\x68", |
| 24396 | .expectedlen = 64, |
| 24397 | .addtla = (unsigned char *) |
| 24398 | "\x1a\x40\xfa\xe3\xcc\x6c\x7c\xa0\xf8\xda\xba\x59" |
| 24399 | "\x23\x6d\xad\x1d", |
| 24400 | .addtlb = (unsigned char *) |
| 24401 | "\x9f\x72\x76\x6c\xc7\x46\xe5\xed\x2e\x53\x20\x12" |
| 24402 | "\xbc\x59\x31\x8c", |
| 24403 | .addtllen = 16, |
| 24404 | .pers = (unsigned char *) |
| 24405 | "\xea\x65\xee\x60\x26\x4e\x7e\xb6\x0e\x82\x68\xc4" |
| 24406 | "\x37\x3c\x5c\x0b", |
| 24407 | .perslen = 16, |
| 24408 | }, |
| 24409 | }; |
| 24410 | |
| 24411 | /* |
| 24412 | * SP800-90A DRBG Test vectors from |
| 24413 | * http://csrc.nist.gov/groups/STM/cavp/documents/drbg/drbgtestvectors.zip |
| 24414 | * |
| 24415 | * Test vectors for DRBG without prediction resistance. All types of DRBGs |
| 24416 | * (Hash, HMAC, CTR) are tested with all permutations of use cases (w/ and |
| 24417 | * w/o personalization string, w/ and w/o additional input string). |
| 24418 | */ |
| 24419 | static struct drbg_testvec drbg_nopr_sha256_tv_template[] = { |
| 24420 | { |
| 24421 | .entropy = (unsigned char *) |
| 24422 | "\xa6\x5a\xd0\xf3\x45\xdb\x4e\x0e\xff\xe8\x75\xc3" |
| 24423 | "\xa2\xe7\x1f\x42\xc7\x12\x9d\x62\x0f\xf5\xc1\x19" |
| 24424 | "\xa9\xef\x55\xf0\x51\x85\xe0\xfb\x85\x81\xf9\x31" |
| 24425 | "\x75\x17\x27\x6e\x06\xe9\x60\x7d\xdb\xcb\xcc\x2e", |
| 24426 | .entropylen = 48, |
| 24427 | .expected = (unsigned char *) |
| 24428 | "\xd3\xe1\x60\xc3\x5b\x99\xf3\x40\xb2\x62\x82\x64" |
| 24429 | "\xd1\x75\x10\x60\xe0\x04\x5d\xa3\x83\xff\x57\xa5" |
| 24430 | "\x7d\x73\xa6\x73\xd2\xb8\xd8\x0d\xaa\xf6\xa6\xc3" |
| 24431 | "\x5a\x91\xbb\x45\x79\xd7\x3f\xd0\xc8\xfe\xd1\x11" |
| 24432 | "\xb0\x39\x13\x06\x82\x8a\xdf\xed\x52\x8f\x01\x81" |
| 24433 | "\x21\xb3\xfe\xbd\xc3\x43\xe7\x97\xb8\x7d\xbb\x63" |
| 24434 | "\xdb\x13\x33\xde\xd9\xd1\xec\xe1\x77\xcf\xa6\xb7" |
| 24435 | "\x1f\xe8\xab\x1d\xa4\x66\x24\xed\x64\x15\xe5\x1c" |
| 24436 | "\xcd\xe2\xc7\xca\x86\xe2\x83\x99\x0e\xea\xeb\x91" |
| 24437 | "\x12\x04\x15\x52\x8b\x22\x95\x91\x02\x81\xb0\x2d" |
| 24438 | "\xd4\x31\xf4\xc9\xf7\x04\x27\xdf", |
| 24439 | .expectedlen = 128, |
| 24440 | .addtla = NULL, |
| 24441 | .addtlb = NULL, |
| 24442 | .addtllen = 0, |
| 24443 | .pers = NULL, |
| 24444 | .perslen = 0, |
| 24445 | }, { |
| 24446 | .entropy = (unsigned char *) |
| 24447 | "\x73\xd3\xfb\xa3\x94\x5f\x2b\x5f\xb9\x8f\xf6\x9c" |
| 24448 | "\x8a\x93\x17\xae\x19\xc3\x4c\xc3\xd6\xca\xa3\x2d" |
| 24449 | "\x16\xfc\x42\xd2\x2d\xd5\x6f\x56\xcc\x1d\x30\xff" |
| 24450 | "\x9e\x06\x3e\x09\xce\x58\xe6\x9a\x35\xb3\xa6\x56", |
| 24451 | .entropylen = 48, |
| 24452 | .expected = (unsigned char *) |
| 24453 | "\x71\x7b\x93\x46\x1a\x40\xaa\x35\xa4\xaa\xc5\xe7" |
| 24454 | "\x6d\x5b\x5b\x8a\xa0\xdf\x39\x7d\xae\x71\x58\x5b" |
| 24455 | "\x3c\x7c\xb4\xf0\x89\xfa\x4a\x8c\xa9\x5c\x54\xc0" |
| 24456 | "\x40\xdf\xbc\xce\x26\x81\x34\xf8\xba\x7d\x1c\xe8" |
| 24457 | "\xad\x21\xe0\x74\xcf\x48\x84\x30\x1f\xa1\xd5\x4f" |
| 24458 | "\x81\x42\x2f\xf4\xdb\x0b\x23\xf8\x73\x27\xb8\x1d" |
| 24459 | "\x42\xf8\x44\x58\xd8\x5b\x29\x27\x0a\xf8\x69\x59" |
| 24460 | "\xb5\x78\x44\xeb\x9e\xe0\x68\x6f\x42\x9a\xb0\x5b" |
| 24461 | "\xe0\x4e\xcb\x6a\xaa\xe2\xd2\xd5\x33\x25\x3e\xe0" |
| 24462 | "\x6c\xc7\x6a\x07\xa5\x03\x83\x9f\xe2\x8b\xd1\x1c" |
| 24463 | "\x70\xa8\x07\x59\x97\xeb\xf6\xbe", |
| 24464 | .expectedlen = 128, |
| 24465 | .addtla = (unsigned char *) |
| 24466 | "\xf4\xd5\x98\x3d\xa8\xfc\xfa\x37\xb7\x54\x67\x73" |
| 24467 | "\xc7\xc3\xdd\x47\x34\x71\x02\x5d\xc1\xa0\xd3\x10" |
| 24468 | "\xc1\x8b\xbd\xf5\x66\x34\x6f\xdd", |
| 24469 | .addtlb = (unsigned char *) |
| 24470 | "\xf7\x9e\x6a\x56\x0e\x73\xe9\xd9\x7a\xd1\x69\xe0" |
| 24471 | "\x6f\x8c\x55\x1c\x44\xd1\xce\x6f\x28\xcc\xa4\x4d" |
| 24472 | "\xa8\xc0\x85\xd1\x5a\x0c\x59\x40", |
| 24473 | .addtllen = 32, |
| 24474 | .pers = NULL, |
| 24475 | .perslen = 0, |
| 24476 | }, { |
| 24477 | .entropy = (unsigned char *) |
| 24478 | "\x2a\x85\xa9\x8b\xd0\xda\x83\xd6\xad\xab\x9f\xbb" |
| 24479 | "\x54\x31\x15\x95\x1c\x4d\x49\x9f\x6a\x15\xf6\xe4" |
| 24480 | "\x15\x50\x88\x06\x29\x0d\xed\x8d\xb9\x6f\x96\xe1" |
| 24481 | "\x83\x9f\xf7\x88\xda\x84\xbf\x44\x28\xd9\x1d\xaa", |
| 24482 | .entropylen = 48, |
| 24483 | .expected = (unsigned char *) |
| 24484 | "\x2d\x55\xde\xc9\xed\x05\x47\x07\x3d\x04\xfc\x28" |
| 24485 | "\x0f\x92\xf0\x4d\xd8\x00\x32\x47\x0a\x1b\x1c\x4b" |
| 24486 | "\xef\xd9\x97\xa1\x17\x67\xda\x26\x6c\xfe\x76\x46" |
| 24487 | "\x6f\xbc\x6d\x82\x4e\x83\x8a\x98\x66\x6c\x01\xb6" |
| 24488 | "\xe6\x64\xe0\x08\x10\x6f\xd3\x5d\x90\xe7\x0d\x72" |
| 24489 | "\xa6\xa7\xe3\xbb\x98\x11\x12\x56\x23\xc2\x6d\xd1" |
| 24490 | "\xc8\xa8\x7a\x39\xf3\x34\xe3\xb8\xf8\x66\x00\x77" |
| 24491 | "\x7d\xcf\x3c\x3e\xfa\xc9\x0f\xaf\xe0\x24\xfa\xe9" |
| 24492 | "\x84\xf9\x6a\x01\xf6\x35\xdb\x5c\xab\x2a\xef\x4e" |
| 24493 | "\xac\xab\x55\xb8\x9b\xef\x98\x68\xaf\x51\xd8\x16" |
| 24494 | "\xa5\x5e\xae\xf9\x1e\xd2\xdb\xe6", |
| 24495 | .expectedlen = 128, |
| 24496 | .addtla = NULL, |
| 24497 | .addtlb = NULL, |
| 24498 | .addtllen = 0, |
| 24499 | .pers = (unsigned char *) |
| 24500 | "\xa8\x80\xec\x98\x30\x98\x15\xd2\xc6\xc4\x68\xf1" |
| 24501 | "\x3a\x1c\xbf\xce\x6a\x40\x14\xeb\x36\x99\x53\xda" |
| 24502 | "\x57\x6b\xce\xa4\x1c\x66\x3d\xbc", |
| 24503 | .perslen = 32, |
| 24504 | }, { |
| 24505 | .entropy = (unsigned char *) |
| 24506 | "\x69\xed\x82\xa9\xc5\x7b\xbf\xe5\x1d\x2f\xcb\x7a" |
| 24507 | "\xd3\x50\x7d\x96\xb4\xb9\x2b\x50\x77\x51\x27\x74" |
| 24508 | "\x33\x74\xba\xf1\x30\xdf\x8e\xdf\x87\x1d\x87\xbc" |
| 24509 | "\x96\xb2\xc3\xa7\xed\x60\x5e\x61\x4e\x51\x29\x1a", |
| 24510 | .entropylen = 48, |
| 24511 | .expected = (unsigned char *) |
| 24512 | "\xa5\x71\x24\x31\x11\xfe\x13\xe1\xa8\x24\x12\xfb" |
| 24513 | "\x37\xa1\x27\xa5\xab\x77\xa1\x9f\xae\x8f\xaf\x13" |
| 24514 | "\x93\xf7\x53\x85\x91\xb6\x1b\xab\xd4\x6b\xea\xb6" |
| 24515 | "\xef\xda\x4c\x90\x6e\xef\x5f\xde\xe1\xc7\x10\x36" |
| 24516 | "\xd5\x67\xbd\x14\xb6\x89\x21\x0c\xc9\x92\x65\x64" |
| 24517 | "\xd0\xf3\x23\xe0\x7f\xd1\xe8\x75\xc2\x85\x06\xea" |
| 24518 | "\xca\xc0\xcb\x79\x2d\x29\x82\xfc\xaa\x9a\xc6\x95" |
| 24519 | "\x7e\xdc\x88\x65\xba\xec\x0e\x16\x87\xec\xa3\x9e" |
| 24520 | "\xd8\x8c\x80\xab\x3a\x64\xe0\xcb\x0e\x45\x98\xdd" |
| 24521 | "\x7c\x6c\x6c\x26\x11\x13\xc8\xce\xa9\x47\xa6\x06" |
| 24522 | "\x57\xa2\x66\xbb\x2d\x7f\xf3\xc1", |
| 24523 | .expectedlen = 128, |
| 24524 | .addtla = (unsigned char *) |
| 24525 | "\x74\xd3\x6d\xda\xe8\xd6\x86\x5f\x63\x01\xfd\xf2" |
| 24526 | "\x7d\x06\x29\x6d\x94\xd1\x66\xf0\xd2\x72\x67\x4e" |
| 24527 | "\x77\xc5\x3d\x9e\x03\xe3\xa5\x78", |
| 24528 | .addtlb = (unsigned char *) |
| 24529 | "\xf6\xb6\x3d\xf0\x7c\x26\x04\xc5\x8b\xcd\x3e\x6a" |
| 24530 | "\x9f\x9c\x3a\x2e\xdb\x47\x87\xe5\x8e\x00\x5e\x2b" |
| 24531 | "\x74\x7f\xa6\xf6\x80\xcd\x9b\x21", |
| 24532 | .addtllen = 32, |
| 24533 | .pers = (unsigned char *) |
| 24534 | "\x74\xa6\xe0\x08\xf9\x27\xee\x1d\x6e\x3c\x28\x20" |
| 24535 | "\x87\xdd\xd7\x54\x31\x47\x78\x4b\xe5\x6d\xa3\x73" |
| 24536 | "\xa9\x65\xb1\x10\xc1\xdc\x77\x7c", |
| 24537 | .perslen = 32, |
| 24538 | }, |
| 24539 | }; |
| 24540 | |
| 24541 | static struct drbg_testvec drbg_nopr_hmac_sha256_tv_template[] = { |
| 24542 | { |
| 24543 | .entropy = (unsigned char *) |
| 24544 | "\xca\x85\x19\x11\x34\x93\x84\xbf\xfe\x89\xde\x1c" |
| 24545 | "\xbd\xc4\x6e\x68\x31\xe4\x4d\x34\xa4\xfb\x93\x5e" |
| 24546 | "\xe2\x85\xdd\x14\xb7\x1a\x74\x88\x65\x9b\xa9\x6c" |
| 24547 | "\x60\x1d\xc6\x9f\xc9\x02\x94\x08\x05\xec\x0c\xa8", |
| 24548 | .entropylen = 48, |
| 24549 | .expected = (unsigned char *) |
| 24550 | "\xe5\x28\xe9\xab\xf2\xde\xce\x54\xd4\x7c\x7e\x75" |
| 24551 | "\xe5\xfe\x30\x21\x49\xf8\x17\xea\x9f\xb4\xbe\xe6" |
| 24552 | "\xf4\x19\x96\x97\xd0\x4d\x5b\x89\xd5\x4f\xbb\x97" |
| 24553 | "\x8a\x15\xb5\xc4\x43\xc9\xec\x21\x03\x6d\x24\x60" |
| 24554 | "\xb6\xf7\x3e\xba\xd0\xdc\x2a\xba\x6e\x62\x4a\xbf" |
| 24555 | "\x07\x74\x5b\xc1\x07\x69\x4b\xb7\x54\x7b\xb0\x99" |
| 24556 | "\x5f\x70\xde\x25\xd6\xb2\x9e\x2d\x30\x11\xbb\x19" |
| 24557 | "\xd2\x76\x76\xc0\x71\x62\xc8\xb5\xcc\xde\x06\x68" |
| 24558 | "\x96\x1d\xf8\x68\x03\x48\x2c\xb3\x7e\xd6\xd5\xc0" |
| 24559 | "\xbb\x8d\x50\xcf\x1f\x50\xd4\x76\xaa\x04\x58\xbd" |
| 24560 | "\xab\xa8\x06\xf4\x8b\xe9\xdc\xb8", |
| 24561 | .expectedlen = 128, |
| 24562 | .addtla = NULL, |
| 24563 | .addtlb = NULL, |
| 24564 | .addtllen = 0, |
| 24565 | .pers = NULL, |
| 24566 | .perslen = 0, |
| 24567 | }, { |
| 24568 | .entropy = (unsigned char *) |
| 24569 | "\xf9\x7a\x3c\xfd\x91\xfa\xa0\x46\xb9\xe6\x1b\x94" |
| 24570 | "\x93\xd4\x36\xc4\x93\x1f\x60\x4b\x22\xf1\x08\x15" |
| 24571 | "\x21\xb3\x41\x91\x51\xe8\xff\x06\x11\xf3\xa7\xd4" |
| 24572 | "\x35\x95\x35\x7d\x58\x12\x0b\xd1\xe2\xdd\x8a\xed", |
| 24573 | .entropylen = 48, |
| 24574 | .expected = (unsigned char *) |
| 24575 | "\xc6\x87\x1c\xff\x08\x24\xfe\x55\xea\x76\x89\xa5" |
| 24576 | "\x22\x29\x88\x67\x30\x45\x0e\x5d\x36\x2d\xa5\xbf" |
| 24577 | "\x59\x0d\xcf\x9a\xcd\x67\xfe\xd4\xcb\x32\x10\x7d" |
| 24578 | "\xf5\xd0\x39\x69\xa6\x6b\x1f\x64\x94\xfd\xf5\xd6" |
| 24579 | "\x3d\x5b\x4d\x0d\x34\xea\x73\x99\xa0\x7d\x01\x16" |
| 24580 | "\x12\x6d\x0d\x51\x8c\x7c\x55\xba\x46\xe1\x2f\x62" |
| 24581 | "\xef\xc8\xfe\x28\xa5\x1c\x9d\x42\x8e\x6d\x37\x1d" |
| 24582 | "\x73\x97\xab\x31\x9f\xc7\x3d\xed\x47\x22\xe5\xb4" |
| 24583 | "\xf3\x00\x04\x03\x2a\x61\x28\xdf\x5e\x74\x97\xec" |
| 24584 | "\xf8\x2c\xa7\xb0\xa5\x0e\x86\x7e\xf6\x72\x8a\x4f" |
| 24585 | "\x50\x9a\x8c\x85\x90\x87\x03\x9c", |
| 24586 | .expectedlen = 128, |
| 24587 | .addtla = (unsigned char *) |
| 24588 | "\x51\x72\x89\xaf\xe4\x44\xa0\xfe\x5e\xd1\xa4\x1d" |
| 24589 | "\xbb\xb5\xeb\x17\x15\x00\x79\xbd\xd3\x1e\x29\xcf" |
| 24590 | "\x2f\xf3\x00\x34\xd8\x26\x8e\x3b", |
| 24591 | .addtlb = (unsigned char *) |
| 24592 | "\x88\x02\x8d\x29\xef\x80\xb4\xe6\xf0\xfe\x12\xf9" |
| 24593 | "\x1d\x74\x49\xfe\x75\x06\x26\x82\xe8\x9c\x57\x14" |
| 24594 | "\x40\xc0\xc9\xb5\x2c\x42\xa6\xe0", |
| 24595 | .addtllen = 32, |
| 24596 | .pers = NULL, |
| 24597 | .perslen = 0, |
| 24598 | }, { |
| 24599 | .entropy = (unsigned char *) |
| 24600 | "\x8d\xf0\x13\xb4\xd1\x03\x52\x30\x73\x91\x7d\xdf" |
| 24601 | "\x6a\x86\x97\x93\x05\x9e\x99\x43\xfc\x86\x54\x54" |
| 24602 | "\x9e\x7a\xb2\x2f\x7c\x29\xf1\x22\xda\x26\x25\xaf" |
| 24603 | "\x2d\xdd\x4a\xbc\xce\x3c\xf4\xfa\x46\x59\xd8\x4e", |
| 24604 | .entropylen = 48, |
| 24605 | .expected = (unsigned char *) |
| 24606 | "\xb9\x1c\xba\x4c\xc8\x4f\xa2\x5d\xf8\x61\x0b\x81" |
| 24607 | "\xb6\x41\x40\x27\x68\xa2\x09\x72\x34\x93\x2e\x37" |
| 24608 | "\xd5\x90\xb1\x15\x4c\xbd\x23\xf9\x74\x52\xe3\x10" |
| 24609 | "\xe2\x91\xc4\x51\x46\x14\x7f\x0d\xa2\xd8\x17\x61" |
| 24610 | "\xfe\x90\xfb\xa6\x4f\x94\x41\x9c\x0f\x66\x2b\x28" |
| 24611 | "\xc1\xed\x94\xda\x48\x7b\xb7\xe7\x3e\xec\x79\x8f" |
| 24612 | "\xbc\xf9\x81\xb7\x91\xd1\xbe\x4f\x17\x7a\x89\x07" |
| 24613 | "\xaa\x3c\x40\x16\x43\xa5\xb6\x2b\x87\xb8\x9d\x66" |
| 24614 | "\xb3\xa6\x0e\x40\xd4\xa8\xe4\xe9\xd8\x2a\xf6\xd2" |
| 24615 | "\x70\x0e\x6f\x53\x5c\xdb\x51\xf7\x5c\x32\x17\x29" |
| 24616 | "\x10\x37\x41\x03\x0c\xcc\x3a\x56", |
| 24617 | .expectedlen = 128, |
| 24618 | .addtla = NULL, |
| 24619 | .addtlb = NULL, |
| 24620 | .addtllen = 0, |
| 24621 | .pers = (unsigned char *) |
| 24622 | "\xb5\x71\xe6\x6d\x7c\x33\x8b\xc0\x7b\x76\xad\x37" |
| 24623 | "\x57\xbb\x2f\x94\x52\xbf\x7e\x07\x43\x7a\xe8\x58" |
| 24624 | "\x1c\xe7\xbc\x7c\x3a\xc6\x51\xa9", |
| 24625 | .perslen = 32, |
| 24626 | }, { |
| 24627 | .entropy = (unsigned char *) |
| 24628 | "\xc2\xa5\x66\xa9\xa1\x81\x7b\x15\xc5\xc3\xb7\x78" |
| 24629 | "\x17\x7a\xc8\x7c\x24\xe7\x97\xbe\x0a\x84\x5f\x11" |
| 24630 | "\xc2\xfe\x39\x9d\xd3\x77\x32\xf2\xcb\x18\x94\xeb" |
| 24631 | "\x2b\x97\xb3\xc5\x6e\x62\x83\x29\x51\x6f\x86\xec", |
| 24632 | .entropylen = 48, |
| 24633 | .expected = (unsigned char *) |
| 24634 | "\xb3\xa3\x69\x8d\x77\x76\x99\xa0\xdd\x9f\xa3\xf0" |
| 24635 | "\xa9\xfa\x57\x83\x2d\x3c\xef\xac\x5d\xf2\x44\x37" |
| 24636 | "\xc6\xd7\x3a\x0f\xe4\x10\x40\xf1\x72\x90\x38\xae" |
| 24637 | "\xf1\xe9\x26\x35\x2e\xa5\x9d\xe1\x20\xbf\xb7\xb0" |
| 24638 | "\x73\x18\x3a\x34\x10\x6e\xfe\xd6\x27\x8f\xf8\xad" |
| 24639 | "\x84\x4b\xa0\x44\x81\x15\xdf\xdd\xf3\x31\x9a\x82" |
| 24640 | "\xde\x6b\xb1\x1d\x80\xbd\x87\x1a\x9a\xcd\x35\xc7" |
| 24641 | "\x36\x45\xe1\x27\x0f\xb9\xfe\x4f\xa8\x8e\xc0\xe4" |
| 24642 | "\x65\x40\x9e\xa0\xcb\xa8\x09\xfe\x2f\x45\xe0\x49" |
| 24643 | "\x43\xa2\xe3\x96\xbb\xb7\xdd\x2f\x4e\x07\x95\x30" |
| 24644 | "\x35\x24\xcc\x9c\xc5\xea\x54\xa1", |
| 24645 | .expectedlen = 128, |
| 24646 | .addtla = (unsigned char *) |
| 24647 | "\x41\x3d\xd8\x3f\xe5\x68\x35\xab\xd4\x78\xcb\x96" |
| 24648 | "\x93\xd6\x76\x35\x90\x1c\x40\x23\x9a\x26\x64\x62" |
| 24649 | "\xd3\x13\x3b\x83\xe4\x9c\x82\x0b", |
| 24650 | .addtlb = (unsigned char *) |
| 24651 | "\xd5\xc4\xa7\x1f\x9d\x6d\x95\xa1\xbe\xdf\x0b\xd2" |
| 24652 | "\x24\x7c\x27\x7d\x1f\x84\xa4\xe5\x7a\x4a\x88\x25" |
| 24653 | "\xb8\x2a\x2d\x09\x7d\xe6\x3e\xf1", |
| 24654 | .addtllen = 32, |
| 24655 | .pers = (unsigned char *) |
| 24656 | "\x13\xce\x4d\x8d\xd2\xdb\x97\x96\xf9\x41\x56\xc8" |
| 24657 | "\xe8\xf0\x76\x9b\x0a\xa1\xc8\x2c\x13\x23\xb6\x15" |
| 24658 | "\x36\x60\x3b\xca\x37\xc9\xee\x29", |
| 24659 | .perslen = 32, |
| 24660 | }, |
| 24661 | }; |
| 24662 | |
| 24663 | static struct drbg_testvec drbg_nopr_ctr_aes192_tv_template[] = { |
| 24664 | { |
| 24665 | .entropy = (unsigned char *) |
| 24666 | "\xc3\x5c\x2f\xa2\xa8\x9d\x52\xa1\x1f\xa3\x2a\xa9" |
| 24667 | "\x6c\x95\xb8\xf1\xc9\xa8\xf9\xcb\x24\x5a\x8b\x40" |
| 24668 | "\xf3\xa6\xe5\xa7\xfb\xd9\xd3\xc6\x8e\x27\x7b\xa9" |
| 24669 | "\xac\x9b\xbb\x00", |
| 24670 | .entropylen = 40, |
| 24671 | .expected = (unsigned char *) |
| 24672 | "\x8c\x2e\x72\xab\xfd\x9b\xb8\x28\x4d\xb7\x9e\x17" |
| 24673 | "\xa4\x3a\x31\x46\xcd\x76\x94\xe3\x52\x49\xfc\x33" |
| 24674 | "\x83\x91\x4a\x71\x17\xf4\x13\x68\xe6\xd4\xf1\x48" |
| 24675 | "\xff\x49\xbf\x29\x07\x6b\x50\x15\xc5\x9f\x45\x79" |
| 24676 | "\x45\x66\x2e\x3d\x35\x03\x84\x3f\x4a\xa5\xa3\xdf" |
| 24677 | "\x9a\x9d\xf1\x0d", |
| 24678 | .expectedlen = 64, |
| 24679 | .addtla = NULL, |
| 24680 | .addtlb = NULL, |
| 24681 | .addtllen = 0, |
| 24682 | .pers = NULL, |
| 24683 | .perslen = 0, |
| 24684 | }, |
| 24685 | }; |
| 24686 | |
| 24687 | static struct drbg_testvec drbg_nopr_ctr_aes256_tv_template[] = { |
| 24688 | { |
| 24689 | .entropy = (unsigned char *) |
| 24690 | "\x36\x40\x19\x40\xfa\x8b\x1f\xba\x91\xa1\x66\x1f" |
| 24691 | "\x21\x1d\x78\xa0\xb9\x38\x9a\x74\xe5\xbc\xcf\xec" |
| 24692 | "\xe8\xd7\x66\xaf\x1a\x6d\x3b\x14\x49\x6f\x25\xb0" |
| 24693 | "\xf1\x30\x1b\x4f\x50\x1b\xe3\x03\x80\xa1\x37\xeb", |
| 24694 | .entropylen = 48, |
| 24695 | .expected = (unsigned char *) |
| 24696 | "\x58\x62\xeb\x38\xbd\x55\x8d\xd9\x78\xa6\x96\xe6" |
| 24697 | "\xdf\x16\x47\x82\xdd\xd8\x87\xe7\xe9\xa6\xc9\xf3" |
| 24698 | "\xf1\xfb\xaf\xb7\x89\x41\xb5\x35\xa6\x49\x12\xdf" |
| 24699 | "\xd2\x24\xc6\xdc\x74\x54\xe5\x25\x0b\x3d\x97\x16" |
| 24700 | "\x5e\x16\x26\x0c\x2f\xaf\x1c\xc7\x73\x5c\xb7\x5f" |
| 24701 | "\xb4\xf0\x7e\x1d", |
| 24702 | .expectedlen = 64, |
| 24703 | .addtla = NULL, |
| 24704 | .addtlb = NULL, |
| 24705 | .addtllen = 0, |
| 24706 | .pers = NULL, |
| 24707 | .perslen = 0, |
| 24708 | }, |
| 24709 | }; |
| 24710 | |
| 24711 | static struct drbg_testvec drbg_nopr_ctr_aes128_tv_template[] = { |
| 24712 | { |
| 24713 | .entropy = (unsigned char *) |
| 24714 | "\x87\xe1\xc5\x32\x99\x7f\x57\xa3\x5c\x28\x6d\xe8" |
| 24715 | "\x64\xbf\xf2\x64\xa3\x9e\x98\xdb\x6c\x10\x78\x7f", |
| 24716 | .entropylen = 24, |
| 24717 | .expected = (unsigned char *) |
| 24718 | "\x2c\x14\x7e\x24\x11\x9a\xd8\xd4\xb2\xed\x61\xc1" |
| 24719 | "\x53\xd0\x50\xc9\x24\xff\x59\x75\x15\xf1\x17\x3a" |
| 24720 | "\x3d\xf4\x4b\x2c\x84\x28\xef\x89\x0e\xb9\xde\xf3" |
| 24721 | "\xe4\x78\x04\xb2\xfd\x9b\x35\x7f\xe1\x3f\x8a\x3e" |
| 24722 | "\x10\xc8\x67\x0a\xf9\xdf\x2d\x6c\x96\xfb\xb2\xb8" |
| 24723 | "\xcb\x2d\xd6\xb0", |
| 24724 | .expectedlen = 64, |
| 24725 | .addtla = NULL, |
| 24726 | .addtlb = NULL, |
| 24727 | .addtllen = 0, |
| 24728 | .pers = NULL, |
| 24729 | .perslen = 0, |
| 24730 | }, { |
| 24731 | .entropy = (unsigned char *) |
| 24732 | "\x71\xbd\xce\x35\x42\x7d\x20\xbf\x58\xcf\x17\x74" |
| 24733 | "\xce\x72\xd8\x33\x34\x50\x2d\x8f\x5b\x14\xc4\xdd", |
| 24734 | .entropylen = 24, |
| 24735 | .expected = (unsigned char *) |
| 24736 | "\x97\x33\xe8\x20\x12\xe2\x7b\xa1\x46\x8f\xf2\x34" |
| 24737 | "\xb3\xc9\xb6\x6b\x20\xb2\x4f\xee\x27\xd8\x0b\x21" |
| 24738 | "\x8c\xff\x63\x73\x69\x29\xfb\xf3\x85\xcd\x88\x8e" |
| 24739 | "\x43\x2c\x71\x8b\xa2\x55\xd2\x0f\x1d\x7f\xe3\xe1" |
| 24740 | "\x2a\xa3\xe9\x2c\x25\x89\xc7\x14\x52\x99\x56\xcc" |
| 24741 | "\xc3\xdf\xb3\x81", |
| 24742 | .expectedlen = 64, |
| 24743 | .addtla = (unsigned char *) |
| 24744 | "\x66\xef\x42\xd6\x9a\x8c\x3d\x6d\x4a\x9e\x95\xa6" |
| 24745 | "\x91\x4d\x81\x56", |
| 24746 | .addtlb = (unsigned char *) |
| 24747 | "\xe3\x18\x83\xd9\x4b\x5e\xc4\xcc\xaa\x61\x2f\xbb" |
| 24748 | "\x4a\x55\xd1\xc6", |
| 24749 | .addtllen = 16, |
| 24750 | .pers = NULL, |
| 24751 | .perslen = 0, |
| 24752 | }, { |
| 24753 | .entropy = (unsigned char *) |
| 24754 | "\xca\x4b\x1e\xfa\x75\xbd\x69\x36\x38\x73\xb8\xf9" |
| 24755 | "\xdb\x4d\x35\x0e\x47\xbf\x6c\x37\x72\xfd\xf7\xa9", |
| 24756 | .entropylen = 24, |
| 24757 | .expected = (unsigned char *) |
| 24758 | "\x59\xc3\x19\x79\x1b\xb1\xf3\x0e\xe9\x34\xae\x6e" |
| 24759 | "\x8b\x1f\xad\x1f\x74\xca\x25\x45\x68\xb8\x7f\x75" |
| 24760 | "\x12\xf8\xf2\xab\x4c\x23\x01\x03\x05\xe1\x70\xee" |
| 24761 | "\x75\xd8\xcb\xeb\x23\x4c\x7a\x23\x6e\x12\x27\xdb" |
| 24762 | "\x6f\x7a\xac\x3c\x44\xb7\x87\x4b\x65\x56\x74\x45" |
| 24763 | "\x34\x30\x0c\x3d", |
| 24764 | .expectedlen = 64, |
| 24765 | .addtla = NULL, |
| 24766 | .addtlb = NULL, |
| 24767 | .addtllen = 0, |
| 24768 | .pers = (unsigned char *) |
| 24769 | "\xeb\xaa\x60\x2c\x4d\xbe\x33\xff\x1b\xef\xbf\x0a" |
| 24770 | "\x0b\xc6\x97\x54", |
| 24771 | .perslen = 16, |
| 24772 | }, { |
| 24773 | .entropy = (unsigned char *) |
| 24774 | "\xc0\x70\x1f\x92\x50\x75\x8f\xcd\xf2\xbe\x73\x98" |
| 24775 | "\x80\xdb\x66\xeb\x14\x68\xb4\xa5\x87\x9c\x2d\xa6", |
| 24776 | .entropylen = 24, |
| 24777 | .expected = (unsigned char *) |
| 24778 | "\x97\xc0\xc0\xe5\xa0\xcc\xf2\x4f\x33\x63\x48\x8a" |
| 24779 | "\xdb\x13\x0a\x35\x89\xbf\x80\x65\x62\xee\x13\x95" |
| 24780 | "\x7c\x33\xd3\x7d\xf4\x07\x77\x7a\x2b\x65\x0b\x5f" |
| 24781 | "\x45\x5c\x13\xf1\x90\x77\x7f\xc5\x04\x3f\xcc\x1a" |
| 24782 | "\x38\xf8\xcd\x1b\xbb\xd5\x57\xd1\x4a\x4c\x2e\x8a" |
| 24783 | "\x2b\x49\x1e\x5c", |
| 24784 | .expectedlen = 64, |
| 24785 | .addtla = (unsigned char *) |
| 24786 | "\xf9\x01\xf8\x16\x7a\x1d\xff\xde\x8e\x3c\x83\xe2" |
| 24787 | "\x44\x85\xe7\xfe", |
| 24788 | .addtlb = (unsigned char *) |
| 24789 | "\x17\x1c\x09\x38\xc2\x38\x9f\x97\x87\x60\x55\xb4" |
| 24790 | "\x82\x16\x62\x7f", |
| 24791 | .addtllen = 16, |
| 24792 | .pers = (unsigned char *) |
| 24793 | "\x80\x08\xae\xe8\xe9\x69\x40\xc5\x08\x73\xc7\x9f" |
| 24794 | "\x8e\xcf\xe0\x02", |
| 24795 | .perslen = 16, |
| 24796 | }, |
| 24797 | }; |
| 24798 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 24799 | /* Cast5 test vectors from RFC 2144 */ |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 24800 | #define CAST5_ENC_TEST_VECTORS 4 |
| 24801 | #define CAST5_DEC_TEST_VECTORS 4 |
| 24802 | #define CAST5_CBC_ENC_TEST_VECTORS 1 |
| 24803 | #define CAST5_CBC_DEC_TEST_VECTORS 1 |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 24804 | #define CAST5_CTR_ENC_TEST_VECTORS 2 |
| 24805 | #define CAST5_CTR_DEC_TEST_VECTORS 2 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 24806 | |
| 24807 | static struct cipher_testvec cast5_enc_tv_template[] = { |
| 24808 | { |
| 24809 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 24810 | "\x23\x45\x67\x89\x34\x56\x78\x9a", |
| 24811 | .klen = 16, |
| 24812 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 24813 | .ilen = 8, |
| 24814 | .result = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", |
| 24815 | .rlen = 8, |
| 24816 | }, { |
| 24817 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 24818 | "\x23\x45", |
| 24819 | .klen = 10, |
| 24820 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 24821 | .ilen = 8, |
| 24822 | .result = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", |
| 24823 | .rlen = 8, |
| 24824 | }, { |
| 24825 | .key = "\x01\x23\x45\x67\x12", |
| 24826 | .klen = 5, |
| 24827 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 24828 | .ilen = 8, |
| 24829 | .result = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", |
| 24830 | .rlen = 8, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 24831 | }, { /* Generated from TF test vectors */ |
| 24832 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 24833 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 24834 | .klen = 16, |
| 24835 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 24836 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 24837 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 24838 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 24839 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 24840 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 24841 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 24842 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 24843 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 24844 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 24845 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 24846 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 24847 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 24848 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 24849 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 24850 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 24851 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 24852 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 24853 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 24854 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 24855 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 24856 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 24857 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 24858 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 24859 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 24860 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 24861 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 24862 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 24863 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 24864 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 24865 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 24866 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 24867 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 24868 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 24869 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 24870 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 24871 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 24872 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 24873 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 24874 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 24875 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 24876 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 24877 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 24878 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 24879 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 24880 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 24881 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 24882 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 24883 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 24884 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 24885 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 24886 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 24887 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 24888 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 24889 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 24890 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 24891 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 24892 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 24893 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 24894 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 24895 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 24896 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 24897 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 24898 | .ilen = 496, |
| 24899 | .result = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C" |
| 24900 | "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA" |
| 24901 | "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E" |
| 24902 | "\xD1\x39\x34\x92\x8F\xFA\x14\xF1" |
| 24903 | "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2" |
| 24904 | "\x20\xD9\x42\x06\xC9\x0B\x10\x04" |
| 24905 | "\xF8\x79\xCD\x32\x86\x75\x4C\xB6" |
| 24906 | "\x7B\x1C\x52\xB1\x91\x64\x22\x4B" |
| 24907 | "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F" |
| 24908 | "\x3F\xF4\x43\x96\x73\x0D\xA2\x05" |
| 24909 | "\xDB\xFD\x28\x90\x2C\x56\xB9\x37" |
| 24910 | "\x5B\x69\x0C\xAD\x84\x67\xFF\x15" |
| 24911 | "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A" |
| 24912 | "\xED\x34\x35\x78\x6B\x91\xC9\x32" |
| 24913 | "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39" |
| 24914 | "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2" |
| 24915 | "\x1C\xFD\x0E\x05\x07\xF4\x10\xED" |
| 24916 | "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22" |
| 24917 | "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9" |
| 24918 | "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77" |
| 24919 | "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC" |
| 24920 | "\xBA\x5C\x80\xD1\x91\x65\x51\x1B" |
| 24921 | "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6" |
| 24922 | "\x78\x75\x37\x55\xC1\xF5\x90\x40" |
| 24923 | "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E" |
| 24924 | "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E" |
| 24925 | "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD" |
| 24926 | "\xE0\x69\x77\x50\xC7\x0C\x99\xCA" |
| 24927 | "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C" |
| 24928 | "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9" |
| 24929 | "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48" |
| 24930 | "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9" |
| 24931 | "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6" |
| 24932 | "\x55\xF4\x06\xBB\x49\x53\x8B\x1B" |
| 24933 | "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC" |
| 24934 | "\x93\x85\x90\x0F\x0A\x68\x40\x2A" |
| 24935 | "\x95\xED\x2D\x88\xBF\x71\xD0\xBB" |
| 24936 | "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05" |
| 24937 | "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2" |
| 24938 | "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8" |
| 24939 | "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF" |
| 24940 | "\xDD\x70\x37\x63\xAA\xA5\x83\x20" |
| 24941 | "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6" |
| 24942 | "\x79\x03\xA0\xDA\xA3\x79\x21\xBD" |
| 24943 | "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE" |
| 24944 | "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06" |
| 24945 | "\xBB\xE3\xAB\x06\x21\x82\xB8\x32" |
| 24946 | "\x31\x34\x2A\xA7\x1F\x64\x99\xBF" |
| 24947 | "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48" |
| 24948 | "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59" |
| 24949 | "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF" |
| 24950 | "\xF0\x40\x5F\xCF\xE3\x58\x52\x67" |
| 24951 | "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F" |
| 24952 | "\x58\x56\xDD\x94\x1F\x71\x8D\xF4" |
| 24953 | "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF" |
| 24954 | "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57" |
| 24955 | "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84" |
| 24956 | "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37" |
| 24957 | "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33" |
| 24958 | "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE" |
| 24959 | "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57" |
| 24960 | "\xF5\xBC\x25\xD6\x02\x56\x57\x1C", |
| 24961 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 24962 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 24963 | .np = 3, |
| 24964 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 24965 | }, |
| 24966 | }; |
| 24967 | |
| 24968 | static struct cipher_testvec cast5_dec_tv_template[] = { |
| 24969 | { |
| 24970 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 24971 | "\x23\x45\x67\x89\x34\x56\x78\x9a", |
| 24972 | .klen = 16, |
| 24973 | .input = "\x23\x8b\x4f\xe5\x84\x7e\x44\xb2", |
| 24974 | .ilen = 8, |
| 24975 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 24976 | .rlen = 8, |
| 24977 | }, { |
| 24978 | .key = "\x01\x23\x45\x67\x12\x34\x56\x78" |
| 24979 | "\x23\x45", |
| 24980 | .klen = 10, |
| 24981 | .input = "\xeb\x6a\x71\x1a\x2c\x02\x27\x1b", |
| 24982 | .ilen = 8, |
| 24983 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 24984 | .rlen = 8, |
| 24985 | }, { |
| 24986 | .key = "\x01\x23\x45\x67\x12", |
| 24987 | .klen = 5, |
| 24988 | .input = "\x7a\xc8\x16\xd1\x6e\x9b\x30\x2e", |
| 24989 | .ilen = 8, |
| 24990 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 24991 | .rlen = 8, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 24992 | }, { /* Generated from TF test vectors */ |
| 24993 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 24994 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 24995 | .klen = 16, |
| 24996 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 24997 | .input = "\x8D\xFC\x81\x9C\xCB\xAA\x5A\x1C" |
| 24998 | "\x7E\x95\xCF\x40\xAB\x4D\x6F\xEA" |
| 24999 | "\xD3\xD9\xB0\x9A\xB7\xC7\xE0\x2E" |
| 25000 | "\xD1\x39\x34\x92\x8F\xFA\x14\xF1" |
| 25001 | "\xD5\xD2\x7B\x59\x1F\x35\x28\xC2" |
| 25002 | "\x20\xD9\x42\x06\xC9\x0B\x10\x04" |
| 25003 | "\xF8\x79\xCD\x32\x86\x75\x4C\xB6" |
| 25004 | "\x7B\x1C\x52\xB1\x91\x64\x22\x4B" |
| 25005 | "\x13\xC7\xAE\x98\x0E\xB5\xCF\x6F" |
| 25006 | "\x3F\xF4\x43\x96\x73\x0D\xA2\x05" |
| 25007 | "\xDB\xFD\x28\x90\x2C\x56\xB9\x37" |
| 25008 | "\x5B\x69\x0C\xAD\x84\x67\xFF\x15" |
| 25009 | "\x4A\xD4\xA7\xD3\xDD\x99\x47\x3A" |
| 25010 | "\xED\x34\x35\x78\x6B\x91\xC9\x32" |
| 25011 | "\xE1\xBF\xBC\xB4\x04\x85\x6A\x39" |
| 25012 | "\xC0\xBA\x51\xD0\x0F\x4E\xD1\xE2" |
| 25013 | "\x1C\xFD\x0E\x05\x07\xF4\x10\xED" |
| 25014 | "\xA2\x17\xFF\xF5\x64\xC6\x1A\x22" |
| 25015 | "\xAD\x78\xE7\xD7\x11\xE9\x99\xB9" |
| 25016 | "\xAA\xEC\x6F\xF8\x3B\xBF\xCE\x77" |
| 25017 | "\x93\xE8\xAD\x1D\x50\x6C\xAE\xBC" |
| 25018 | "\xBA\x5C\x80\xD1\x91\x65\x51\x1B" |
| 25019 | "\xE8\x0A\xCD\x99\x96\x71\x3D\xB6" |
| 25020 | "\x78\x75\x37\x55\xC1\xF5\x90\x40" |
| 25021 | "\x34\xF4\x7E\xC8\xCC\x3A\x5F\x6E" |
| 25022 | "\x36\xA1\xA1\xC2\x3A\x72\x42\x8E" |
| 25023 | "\x0E\x37\x88\xE8\xCE\x83\xCB\xAD" |
| 25024 | "\xE0\x69\x77\x50\xC7\x0C\x99\xCA" |
| 25025 | "\x19\x5B\x30\x25\x9A\xEF\x9B\x0C" |
| 25026 | "\xEF\x8F\x74\x4C\xCF\x49\x4E\xB9" |
| 25027 | "\xC5\xAE\x9E\x2E\x78\x9A\xB9\x48" |
| 25028 | "\xD5\x81\xE4\x37\x1D\xBF\x27\xD9" |
| 25029 | "\xC5\xD6\x65\x43\x45\x8C\xBB\xB6" |
| 25030 | "\x55\xF4\x06\xBB\x49\x53\x8B\x1B" |
| 25031 | "\x07\xA9\x96\x69\x5B\xCB\x0F\xBC" |
| 25032 | "\x93\x85\x90\x0F\x0A\x68\x40\x2A" |
| 25033 | "\x95\xED\x2D\x88\xBF\x71\xD0\xBB" |
| 25034 | "\xEC\xB0\x77\x6C\x79\xFC\x3C\x05" |
| 25035 | "\x49\x3F\xB8\x24\xEF\x8E\x09\xA2" |
| 25036 | "\x1D\xEF\x92\x02\x96\xD4\x7F\xC8" |
| 25037 | "\x03\xB2\xCA\xDB\x17\x5C\x52\xCF" |
| 25038 | "\xDD\x70\x37\x63\xAA\xA5\x83\x20" |
| 25039 | "\x52\x02\xF6\xB9\xE7\x6E\x0A\xB6" |
| 25040 | "\x79\x03\xA0\xDA\xA3\x79\x21\xBD" |
| 25041 | "\xE3\x37\x3A\xC0\xF7\x2C\x32\xBE" |
| 25042 | "\x8B\xE8\xA6\x00\xC7\x32\xD5\x06" |
| 25043 | "\xBB\xE3\xAB\x06\x21\x82\xB8\x32" |
| 25044 | "\x31\x34\x2A\xA7\x1F\x64\x99\xBF" |
| 25045 | "\xFA\xDA\x3D\x75\xF7\x48\xD5\x48" |
| 25046 | "\x4B\x52\x7E\xF6\x7C\xAB\x67\x59" |
| 25047 | "\xC5\xDC\xA8\xC6\x63\x85\x4A\xDF" |
| 25048 | "\xF0\x40\x5F\xCF\xE3\x58\x52\x67" |
| 25049 | "\x7A\x24\x32\xC5\xEC\x9E\xA9\x6F" |
| 25050 | "\x58\x56\xDD\x94\x1F\x71\x8D\xF4" |
| 25051 | "\x6E\xFF\x2C\xA7\xA5\xD8\xBA\xAF" |
| 25052 | "\x1D\x8B\xA2\x46\xB5\xC4\x9F\x57" |
| 25053 | "\x8D\xD8\xB3\x3C\x02\x0D\xBB\x84" |
| 25054 | "\xC7\xBD\xB4\x9A\x6E\xBB\xB1\x37" |
| 25055 | "\x95\x79\xC4\xA7\xEA\x1D\xDC\x33" |
| 25056 | "\x5D\x0B\x3F\x03\x8F\x30\xF9\xAE" |
| 25057 | "\x4F\xFE\x24\x9C\x9A\x02\xE5\x57" |
| 25058 | "\xF5\xBC\x25\xD6\x02\x56\x57\x1C", |
| 25059 | .ilen = 496, |
| 25060 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 25061 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 25062 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 25063 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 25064 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 25065 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 25066 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 25067 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 25068 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 25069 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 25070 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 25071 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 25072 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 25073 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 25074 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 25075 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 25076 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 25077 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 25078 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 25079 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 25080 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 25081 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 25082 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 25083 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 25084 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 25085 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 25086 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 25087 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 25088 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 25089 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 25090 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 25091 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 25092 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 25093 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 25094 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 25095 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 25096 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 25097 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 25098 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 25099 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 25100 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 25101 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 25102 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 25103 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 25104 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 25105 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 25106 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 25107 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 25108 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 25109 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 25110 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 25111 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 25112 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 25113 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 25114 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 25115 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 25116 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 25117 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 25118 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 25119 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 25120 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 25121 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 25122 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 25123 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 25124 | .np = 3, |
| 25125 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 25126 | }, |
| 25127 | }; |
| 25128 | |
| 25129 | static struct cipher_testvec cast5_cbc_enc_tv_template[] = { |
| 25130 | { /* Generated from TF test vectors */ |
| 25131 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 25132 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 25133 | .klen = 16, |
| 25134 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 25135 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 25136 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 25137 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 25138 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 25139 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 25140 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 25141 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 25142 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 25143 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 25144 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 25145 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 25146 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 25147 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 25148 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 25149 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 25150 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 25151 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 25152 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 25153 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 25154 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 25155 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 25156 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 25157 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 25158 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 25159 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 25160 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 25161 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 25162 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 25163 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 25164 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 25165 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 25166 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 25167 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 25168 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 25169 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 25170 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 25171 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 25172 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 25173 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 25174 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 25175 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 25176 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 25177 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 25178 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 25179 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 25180 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 25181 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 25182 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 25183 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 25184 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 25185 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 25186 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 25187 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 25188 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 25189 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 25190 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 25191 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 25192 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 25193 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 25194 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 25195 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 25196 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 25197 | .ilen = 496, |
| 25198 | .result = "\x05\x28\xCE\x61\x90\x80\xE1\x78" |
| 25199 | "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A" |
| 25200 | "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB" |
| 25201 | "\xDA\xF0\x6E\x77\x14\x47\x82\xBA" |
| 25202 | "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F" |
| 25203 | "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39" |
| 25204 | "\xA7\xFB\x0D\x05\x00\xF3\x58\x67" |
| 25205 | "\x60\xEC\x73\x77\x46\x85\x9B\x6A" |
| 25206 | "\x08\x3E\xBE\x59\xFB\xE4\x96\x34" |
| 25207 | "\xB4\x05\x49\x1A\x97\x43\xAD\xA0" |
| 25208 | "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8" |
| 25209 | "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA" |
| 25210 | "\xA7\xF1\x33\x67\x90\x23\x0D\xEE" |
| 25211 | "\x81\xD5\x78\x4F\xD3\x63\xEA\x46" |
| 25212 | "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10" |
| 25213 | "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D" |
| 25214 | "\x36\x7C\x56\x14\x54\x83\xFA\xA1" |
| 25215 | "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6" |
| 25216 | "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8" |
| 25217 | "\xA7\xD9\x67\x92\x5C\x13\xB4\x71" |
| 25218 | "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C" |
| 25219 | "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37" |
| 25220 | "\xC8\x52\x60\xD9\xE7\xCA\x60\x98" |
| 25221 | "\xED\xCD\xE8\x60\x83\xAD\x34\x4D" |
| 25222 | "\x96\x4A\x99\x2B\xB7\x14\x75\x66" |
| 25223 | "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56" |
| 25224 | "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3" |
| 25225 | "\x18\x38\x09\x9C\x0E\x8B\x86\x07" |
| 25226 | "\x90\x12\x37\x49\x27\x98\x69\x18" |
| 25227 | "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85" |
| 25228 | "\x4B\x22\x97\x07\xB6\x97\xE9\x95" |
| 25229 | "\x0F\x88\x36\xA9\x44\x00\xC6\xE9" |
| 25230 | "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE" |
| 25231 | "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49" |
| 25232 | "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97" |
| 25233 | "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE" |
| 25234 | "\x03\x55\x0E\x02\x41\x4A\x45\x06" |
| 25235 | "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20" |
| 25236 | "\x94\x02\x30\xD2\xFC\x29\xFA\x8E" |
| 25237 | "\x34\xA0\x31\xB8\x34\xBA\xAE\x54" |
| 25238 | "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F" |
| 25239 | "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A" |
| 25240 | "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3" |
| 25241 | "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A" |
| 25242 | "\xB6\x37\x21\x19\x55\xC2\xBD\x99" |
| 25243 | "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2" |
| 25244 | "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2" |
| 25245 | "\x11\xB4\x18\x17\x1A\x65\x92\x56" |
| 25246 | "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1" |
| 25247 | "\x1A\x01\x22\x45\x17\x62\x52\x6C" |
| 25248 | "\x91\x44\xCF\x98\xC7\xC0\x79\x26" |
| 25249 | "\x32\x66\x6F\x23\x7F\x94\x36\x88" |
| 25250 | "\x3C\xC9\xD0\xB7\x45\x30\x31\x86" |
| 25251 | "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B" |
| 25252 | "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86" |
| 25253 | "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA" |
| 25254 | "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9" |
| 25255 | "\x7C\xEF\x53\xB7\x60\x72\x41\xBF" |
| 25256 | "\x29\x00\x87\x02\xAF\x44\x4C\xB7" |
| 25257 | "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7" |
| 25258 | "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6" |
| 25259 | "\x1D\x18\x66\x44\x5B\x8F\x14\xEB", |
| 25260 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 25261 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 25262 | .np = 3, |
| 25263 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 25264 | }, |
| 25265 | }; |
| 25266 | |
| 25267 | static struct cipher_testvec cast5_cbc_dec_tv_template[] = { |
| 25268 | { /* Generated from TF test vectors */ |
| 25269 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 25270 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 25271 | .klen = 16, |
| 25272 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 25273 | .input = "\x05\x28\xCE\x61\x90\x80\xE1\x78" |
| 25274 | "\xB9\x2A\x97\x7C\xB0\x83\xD8\x1A" |
| 25275 | "\xDE\x58\x7F\xD7\xFD\x72\xB8\xFB" |
| 25276 | "\xDA\xF0\x6E\x77\x14\x47\x82\xBA" |
| 25277 | "\x29\x0E\x25\x6E\xB4\x39\xD9\x7F" |
| 25278 | "\x05\xA7\xA7\x3A\xC1\x5D\x9E\x39" |
| 25279 | "\xA7\xFB\x0D\x05\x00\xF3\x58\x67" |
| 25280 | "\x60\xEC\x73\x77\x46\x85\x9B\x6A" |
| 25281 | "\x08\x3E\xBE\x59\xFB\xE4\x96\x34" |
| 25282 | "\xB4\x05\x49\x1A\x97\x43\xAD\xA0" |
| 25283 | "\xA9\x1E\x6E\x74\xF1\x94\xEC\xA8" |
| 25284 | "\xB5\x8A\x20\xEA\x89\x6B\x19\xAA" |
| 25285 | "\xA7\xF1\x33\x67\x90\x23\x0D\xEE" |
| 25286 | "\x81\xD5\x78\x4F\xD3\x63\xEA\x46" |
| 25287 | "\xB5\xB2\x6E\xBB\xCA\x76\x06\x10" |
| 25288 | "\x96\x2A\x0A\xBA\xF9\x41\x5A\x1D" |
| 25289 | "\x36\x7C\x56\x14\x54\x83\xFA\xA1" |
| 25290 | "\x27\xDD\xBA\x8A\x90\x29\xD6\xA6" |
| 25291 | "\xFA\x48\x3E\x1E\x23\x6E\x98\xA8" |
| 25292 | "\xA7\xD9\x67\x92\x5C\x13\xB4\x71" |
| 25293 | "\xA8\xAA\x89\x4A\xA4\xB3\x49\x7C" |
| 25294 | "\x7D\x7F\xCE\x6F\x29\x2E\x7E\x37" |
| 25295 | "\xC8\x52\x60\xD9\xE7\xCA\x60\x98" |
| 25296 | "\xED\xCD\xE8\x60\x83\xAD\x34\x4D" |
| 25297 | "\x96\x4A\x99\x2B\xB7\x14\x75\x66" |
| 25298 | "\x6C\x2C\x1A\xBA\x4B\xBB\x49\x56" |
| 25299 | "\xE1\x86\xA2\x0E\xD0\xF0\x07\xD3" |
| 25300 | "\x18\x38\x09\x9C\x0E\x8B\x86\x07" |
| 25301 | "\x90\x12\x37\x49\x27\x98\x69\x18" |
| 25302 | "\xB0\xCC\xFB\xD3\xBD\x04\xA0\x85" |
| 25303 | "\x4B\x22\x97\x07\xB6\x97\xE9\x95" |
| 25304 | "\x0F\x88\x36\xA9\x44\x00\xC6\xE9" |
| 25305 | "\x27\x53\x5C\x5B\x1F\xD3\xE2\xEE" |
| 25306 | "\xD0\xCD\x63\x30\xA9\xC0\xDD\x49" |
| 25307 | "\xFE\x16\xA4\x07\x0D\xE2\x5D\x97" |
| 25308 | "\xDE\x89\xBA\x2E\xF3\xA9\x5E\xBE" |
| 25309 | "\x03\x55\x0E\x02\x41\x4A\x45\x06" |
| 25310 | "\xBE\xEA\x32\xF2\xDC\x91\x5C\x20" |
| 25311 | "\x94\x02\x30\xD2\xFC\x29\xFA\x8E" |
| 25312 | "\x34\xA0\x31\xB8\x34\xBA\xAE\x54" |
| 25313 | "\xB5\x88\x1F\xDC\x43\xDC\x22\x9F" |
| 25314 | "\xDC\xCE\xD3\xFA\xA4\xA8\xBC\x8A" |
| 25315 | "\xC7\x5A\x43\x21\xA5\xB1\xDB\xC3" |
| 25316 | "\x84\x3B\xB4\x9B\xB5\xA7\xF1\x0A" |
| 25317 | "\xB6\x37\x21\x19\x55\xC2\xBD\x99" |
| 25318 | "\x49\x24\xBB\x7C\xB3\x8E\xEF\xD2" |
| 25319 | "\x3A\xCF\xA0\x31\x28\x0E\x25\xA2" |
| 25320 | "\x11\xB4\x18\x17\x1A\x65\x92\x56" |
| 25321 | "\xE8\xE0\x52\x9C\x61\x18\x2A\xB1" |
| 25322 | "\x1A\x01\x22\x45\x17\x62\x52\x6C" |
| 25323 | "\x91\x44\xCF\x98\xC7\xC0\x79\x26" |
| 25324 | "\x32\x66\x6F\x23\x7F\x94\x36\x88" |
| 25325 | "\x3C\xC9\xD0\xB7\x45\x30\x31\x86" |
| 25326 | "\x3D\xC6\xA3\x98\x62\x84\x1A\x8B" |
| 25327 | "\x16\x88\xC7\xA3\xE9\x4F\xE0\x86" |
| 25328 | "\xA4\x93\xA8\x34\x5A\xCA\xDF\xCA" |
| 25329 | "\x46\x38\xD2\xF4\xE0\x2D\x1E\xC9" |
| 25330 | "\x7C\xEF\x53\xB7\x60\x72\x41\xBF" |
| 25331 | "\x29\x00\x87\x02\xAF\x44\x4C\xB7" |
| 25332 | "\x8C\xF5\x3F\x19\xF4\x80\x45\xA7" |
| 25333 | "\x15\x5F\xDB\xE9\xB1\x83\xD2\xE6" |
| 25334 | "\x1D\x18\x66\x44\x5B\x8F\x14\xEB", |
| 25335 | .ilen = 496, |
| 25336 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 25337 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 25338 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 25339 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 25340 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 25341 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 25342 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 25343 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 25344 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 25345 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 25346 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 25347 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 25348 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 25349 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 25350 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 25351 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 25352 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 25353 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 25354 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 25355 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 25356 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 25357 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 25358 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 25359 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 25360 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 25361 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 25362 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 25363 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 25364 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 25365 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 25366 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 25367 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 25368 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 25369 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 25370 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 25371 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 25372 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 25373 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 25374 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 25375 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 25376 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 25377 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 25378 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 25379 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 25380 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 25381 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 25382 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 25383 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 25384 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 25385 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 25386 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 25387 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 25388 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 25389 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 25390 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 25391 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 25392 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 25393 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 25394 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 25395 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 25396 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 25397 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 25398 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 25399 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 25400 | .np = 3, |
| 25401 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 25402 | }, |
| 25403 | }; |
| 25404 | |
| 25405 | static struct cipher_testvec cast5_ctr_enc_tv_template[] = { |
| 25406 | { /* Generated from TF test vectors */ |
| 25407 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 25408 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 25409 | .klen = 16, |
| 25410 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 25411 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 25412 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 25413 | "\x3A", |
| 25414 | .ilen = 17, |
| 25415 | .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 25416 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
| 25417 | "\x0C", |
| 25418 | .rlen = 17, |
| 25419 | }, { /* Generated from TF test vectors */ |
| 25420 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 25421 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 25422 | .klen = 16, |
| 25423 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 25424 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 25425 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 25426 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 25427 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 25428 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 25429 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 25430 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 25431 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 25432 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 25433 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 25434 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 25435 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 25436 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 25437 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 25438 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 25439 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 25440 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 25441 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 25442 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 25443 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 25444 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 25445 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 25446 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 25447 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 25448 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 25449 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 25450 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 25451 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 25452 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 25453 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 25454 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 25455 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 25456 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 25457 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 25458 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 25459 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 25460 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 25461 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 25462 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 25463 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 25464 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 25465 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 25466 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 25467 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 25468 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 25469 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 25470 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 25471 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 25472 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 25473 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 25474 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 25475 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 25476 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 25477 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 25478 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 25479 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 25480 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 25481 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 25482 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 25483 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 25484 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 25485 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 25486 | .ilen = 496, |
| 25487 | .result = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 25488 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
| 25489 | "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F" |
| 25490 | "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF" |
| 25491 | "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44" |
| 25492 | "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C" |
| 25493 | "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF" |
| 25494 | "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B" |
| 25495 | "\x64\xB0\x7B\x86\x29\x1D\x9F\x17" |
| 25496 | "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3" |
| 25497 | "\x88\x18\x52\x56\x48\x58\xD1\x6B" |
| 25498 | "\xE8\x74\x6E\x48\xB0\x2E\x69\x63" |
| 25499 | "\x32\xAA\xAC\x26\x55\x45\x94\xDE" |
| 25500 | "\x30\x26\x26\xE6\x08\x82\x2F\x5F" |
| 25501 | "\xA7\x15\x94\x07\x75\x2D\xC6\x3A" |
| 25502 | "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56" |
| 25503 | "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B" |
| 25504 | "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7" |
| 25505 | "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5" |
| 25506 | "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F" |
| 25507 | "\x3B\x29\xF9\xB4\x32\x62\x69\xBF" |
| 25508 | "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3" |
| 25509 | "\x44\x67\x90\x20\xAC\x41\xDF\x43" |
| 25510 | "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB" |
| 25511 | "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60" |
| 25512 | "\xC7\xC9\x71\x34\x44\xCE\x05\xFD" |
| 25513 | "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C" |
| 25514 | "\xAE\x59\x0F\x07\x88\x79\x53\x26" |
| 25515 | "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62" |
| 25516 | "\xD0\x82\x65\x66\xE4\x2A\x29\x1C" |
| 25517 | "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9" |
| 25518 | "\xED\xC4\x13\x52\x75\xDC\xE4\xF9" |
| 25519 | "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA" |
| 25520 | "\x49\xA1\x86\x86\x37\x5C\x6B\x3D" |
| 25521 | "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8" |
| 25522 | "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0" |
| 25523 | "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2" |
| 25524 | "\x23\xD3\xC7\x27\x15\x04\x2C\x27" |
| 25525 | "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D" |
| 25526 | "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14" |
| 25527 | "\x4B\x78\xC4\xDE\x07\x6A\x12\x02" |
| 25528 | "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02" |
| 25529 | "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18" |
| 25530 | "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06" |
| 25531 | "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E" |
| 25532 | "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66" |
| 25533 | "\x16\xB5\xC8\x45\x21\x37\xBD\x24" |
| 25534 | "\xA9\xD5\x36\x12\x9F\x6E\x67\x80" |
| 25535 | "\x87\x54\xD5\xAF\x97\xE1\x15\xA7" |
| 25536 | "\x11\xF0\x63\x7B\xE1\x44\x14\x1C" |
| 25537 | "\x06\x32\x05\x8C\x6C\xDB\x9B\x36" |
| 25538 | "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C" |
| 25539 | "\x76\x36\x43\xE8\x16\x60\xB5\xF3" |
| 25540 | "\xDF\x5A\xC6\xA5\x69\x78\x59\x51" |
| 25541 | "\x54\x68\x65\x06\x84\xDE\x3D\xAE" |
| 25542 | "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6" |
| 25543 | "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE" |
| 25544 | "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B" |
| 25545 | "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1" |
| 25546 | "\x91\x01\xD7\x21\x23\x28\x1E\xCC" |
| 25547 | "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA" |
| 25548 | "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13", |
| 25549 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 25550 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 25551 | .np = 3, |
| 25552 | .tap = { 496 - 20, 4, 16 }, |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 25553 | }, |
| 25554 | }; |
| 25555 | |
| 25556 | static struct cipher_testvec cast5_ctr_dec_tv_template[] = { |
| 25557 | { /* Generated from TF test vectors */ |
| 25558 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 25559 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 25560 | .klen = 16, |
| 25561 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 25562 | .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 25563 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
Jussi Kivilinna | 9cac3a2 | 2012-09-19 09:42:54 +0300 | [diff] [blame] | 25564 | "\x0C", |
| 25565 | .ilen = 17, |
| 25566 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 25567 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 25568 | "\x3A", |
| 25569 | .rlen = 17, |
| 25570 | }, { /* Generated from TF test vectors */ |
| 25571 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 25572 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A", |
| 25573 | .klen = 16, |
| 25574 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F", |
| 25575 | .input = "\xFF\xC4\x2E\x82\x3D\xF8\xA8\x39" |
| 25576 | "\x7C\x52\xC4\xD3\xBB\x62\xC6\xA8" |
Johannes Goetzfried | a2c5826 | 2012-07-11 19:37:21 +0200 | [diff] [blame] | 25577 | "\x0C\x63\xA5\x55\xE3\xF8\x1C\x7F" |
| 25578 | "\xDC\x59\xF9\xA0\x52\xAD\x83\xDF" |
| 25579 | "\xD5\x3B\x53\x4A\xAA\x1F\x49\x44" |
| 25580 | "\xE8\x20\xCC\xF8\x97\xE6\xE0\x3C" |
| 25581 | "\x5A\xD2\x83\xEC\xEE\x25\x3F\xCF" |
| 25582 | "\x0D\xC2\x79\x80\x99\x6E\xFF\x7B" |
| 25583 | "\x64\xB0\x7B\x86\x29\x1D\x9F\x17" |
| 25584 | "\x10\xA5\xA5\xEB\x16\x55\x9E\xE3" |
| 25585 | "\x88\x18\x52\x56\x48\x58\xD1\x6B" |
| 25586 | "\xE8\x74\x6E\x48\xB0\x2E\x69\x63" |
| 25587 | "\x32\xAA\xAC\x26\x55\x45\x94\xDE" |
| 25588 | "\x30\x26\x26\xE6\x08\x82\x2F\x5F" |
| 25589 | "\xA7\x15\x94\x07\x75\x2D\xC6\x3A" |
| 25590 | "\x1B\xA0\x39\xFB\xBA\xB9\x06\x56" |
| 25591 | "\xF6\x9F\xF1\x2F\x9B\xF3\x89\x8B" |
| 25592 | "\x08\xC8\x9D\x5E\x6B\x95\x09\xC7" |
| 25593 | "\x98\xB7\x62\xA4\x1D\x25\xFA\xC5" |
| 25594 | "\x62\xC8\x5D\x6B\xB4\x85\x88\x7F" |
| 25595 | "\x3B\x29\xF9\xB4\x32\x62\x69\xBF" |
| 25596 | "\x32\xB8\xEB\xFD\x0E\x26\xAA\xA3" |
| 25597 | "\x44\x67\x90\x20\xAC\x41\xDF\x43" |
| 25598 | "\xC6\xC7\x19\x9F\x2C\x28\x74\xEB" |
| 25599 | "\x3E\x7F\x7A\x80\x5B\xE4\x08\x60" |
| 25600 | "\xC7\xC9\x71\x34\x44\xCE\x05\xFD" |
| 25601 | "\xA8\x91\xA8\x44\x5E\xD3\x89\x2C" |
| 25602 | "\xAE\x59\x0F\x07\x88\x79\x53\x26" |
| 25603 | "\xAF\xAC\xCB\x1D\x6F\x08\x25\x62" |
| 25604 | "\xD0\x82\x65\x66\xE4\x2A\x29\x1C" |
| 25605 | "\x9C\x64\x5F\x49\x9D\xF8\x62\xF9" |
| 25606 | "\xED\xC4\x13\x52\x75\xDC\xE4\xF9" |
| 25607 | "\x68\x0F\x8A\xCD\xA6\x8D\x75\xAA" |
| 25608 | "\x49\xA1\x86\x86\x37\x5C\x6B\x3D" |
| 25609 | "\x56\xE5\x6F\xBE\x27\xC0\x10\xF8" |
| 25610 | "\x3C\x4D\x17\x35\x14\xDC\x1C\xA0" |
| 25611 | "\x6E\xAE\xD1\x10\xDD\x83\x06\xC2" |
| 25612 | "\x23\xD3\xC7\x27\x15\x04\x2C\x27" |
| 25613 | "\xDD\x1F\x2E\x97\x09\x9C\x33\x7D" |
| 25614 | "\xAC\x50\x1B\x2E\xC9\x52\x0C\x14" |
| 25615 | "\x4B\x78\xC4\xDE\x07\x6A\x12\x02" |
| 25616 | "\x6E\xD7\x4B\x91\xB9\x88\x4D\x02" |
| 25617 | "\xC3\xB5\x04\xBC\xE0\x67\xCA\x18" |
| 25618 | "\x22\xA1\xAE\x9A\x21\xEF\xB2\x06" |
| 25619 | "\x35\xCD\xEC\x37\x70\x2D\xFC\x1E" |
| 25620 | "\xA8\x31\xE7\xFC\xE5\x8E\x88\x66" |
| 25621 | "\x16\xB5\xC8\x45\x21\x37\xBD\x24" |
| 25622 | "\xA9\xD5\x36\x12\x9F\x6E\x67\x80" |
| 25623 | "\x87\x54\xD5\xAF\x97\xE1\x15\xA7" |
| 25624 | "\x11\xF0\x63\x7B\xE1\x44\x14\x1C" |
| 25625 | "\x06\x32\x05\x8C\x6C\xDB\x9B\x36" |
| 25626 | "\x6A\x6B\xAD\x3A\x27\x55\x20\x4C" |
| 25627 | "\x76\x36\x43\xE8\x16\x60\xB5\xF3" |
| 25628 | "\xDF\x5A\xC6\xA5\x69\x78\x59\x51" |
| 25629 | "\x54\x68\x65\x06\x84\xDE\x3D\xAE" |
| 25630 | "\x38\x91\xBD\xCC\xA2\x8A\xEC\xE6" |
| 25631 | "\x9E\x83\xAE\x1E\x8E\x34\x5D\xDE" |
| 25632 | "\x91\xCE\x8F\xED\x40\xF7\xC8\x8B" |
| 25633 | "\x9A\x13\x4C\xAD\x89\x97\x9E\xD1" |
| 25634 | "\x91\x01\xD7\x21\x23\x28\x1E\xCC" |
| 25635 | "\x8C\x98\xDB\xDE\xFC\x72\x94\xAA" |
| 25636 | "\xC0\x0D\x96\xAA\x23\xF8\xFE\x13", |
| 25637 | .ilen = 496, |
| 25638 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 25639 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 25640 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 25641 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 25642 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 25643 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 25644 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 25645 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 25646 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 25647 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 25648 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 25649 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 25650 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 25651 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 25652 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 25653 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 25654 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 25655 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 25656 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 25657 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 25658 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 25659 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 25660 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 25661 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 25662 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 25663 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 25664 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 25665 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 25666 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 25667 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 25668 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 25669 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 25670 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 25671 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 25672 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 25673 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 25674 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 25675 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 25676 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 25677 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 25678 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 25679 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 25680 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 25681 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 25682 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 25683 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 25684 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 25685 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 25686 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 25687 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 25688 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 25689 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 25690 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 25691 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 25692 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 25693 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 25694 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 25695 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 25696 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 25697 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 25698 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 25699 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 25700 | .rlen = 496, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 25701 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 25702 | .np = 3, |
| 25703 | .tap = { 496 - 20, 4, 16 }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 25704 | }, |
| 25705 | }; |
| 25706 | |
| 25707 | /* |
| 25708 | * ARC4 test vectors from OpenSSL |
| 25709 | */ |
| 25710 | #define ARC4_ENC_TEST_VECTORS 7 |
| 25711 | #define ARC4_DEC_TEST_VECTORS 7 |
| 25712 | |
| 25713 | static struct cipher_testvec arc4_enc_tv_template[] = { |
| 25714 | { |
| 25715 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 25716 | .klen = 8, |
| 25717 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 25718 | .ilen = 8, |
| 25719 | .result = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", |
| 25720 | .rlen = 8, |
| 25721 | }, { |
| 25722 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 25723 | .klen = 8, |
| 25724 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25725 | .ilen = 8, |
| 25726 | .result = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", |
| 25727 | .rlen = 8, |
| 25728 | }, { |
| 25729 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25730 | .klen = 8, |
| 25731 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25732 | .ilen = 8, |
| 25733 | .result = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", |
| 25734 | .rlen = 8, |
| 25735 | }, { |
| 25736 | .key = "\xef\x01\x23\x45", |
| 25737 | .klen = 4, |
| 25738 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25739 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25740 | "\x00\x00\x00\x00", |
| 25741 | .ilen = 20, |
| 25742 | .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 25743 | "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" |
| 25744 | "\x36\xb6\x78\x58", |
| 25745 | .rlen = 20, |
| 25746 | }, { |
| 25747 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 25748 | .klen = 8, |
| 25749 | .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 25750 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 25751 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 25752 | "\x12\x34\x56\x78", |
| 25753 | .ilen = 28, |
| 25754 | .result = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" |
| 25755 | "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" |
| 25756 | "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" |
| 25757 | "\x40\x01\x1e\xcf", |
| 25758 | .rlen = 28, |
| 25759 | }, { |
| 25760 | .key = "\xef\x01\x23\x45", |
| 25761 | .klen = 4, |
| 25762 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25763 | "\x00\x00", |
| 25764 | .ilen = 10, |
| 25765 | .result = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 25766 | "\xbd\x61", |
| 25767 | .rlen = 10, |
| 25768 | }, { |
| 25769 | .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" |
| 25770 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25771 | .klen = 16, |
| 25772 | .input = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", |
| 25773 | .ilen = 8, |
| 25774 | .result = "\x69\x72\x36\x59\x1B\x52\x42\xB1", |
| 25775 | .rlen = 8, |
| 25776 | }, |
| 25777 | }; |
| 25778 | |
| 25779 | static struct cipher_testvec arc4_dec_tv_template[] = { |
| 25780 | { |
| 25781 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 25782 | .klen = 8, |
| 25783 | .input = "\x75\xb7\x87\x80\x99\xe0\xc5\x96", |
| 25784 | .ilen = 8, |
| 25785 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 25786 | .rlen = 8, |
| 25787 | }, { |
| 25788 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 25789 | .klen = 8, |
| 25790 | .input = "\x74\x94\xc2\xe7\x10\x4b\x08\x79", |
| 25791 | .ilen = 8, |
| 25792 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25793 | .rlen = 8, |
| 25794 | }, { |
| 25795 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25796 | .klen = 8, |
| 25797 | .input = "\xde\x18\x89\x41\xa3\x37\x5d\x3a", |
| 25798 | .ilen = 8, |
| 25799 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25800 | .rlen = 8, |
| 25801 | }, { |
| 25802 | .key = "\xef\x01\x23\x45", |
| 25803 | .klen = 4, |
| 25804 | .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 25805 | "\xbd\x61\x5a\x11\x62\xe1\xc7\xba" |
| 25806 | "\x36\xb6\x78\x58", |
| 25807 | .ilen = 20, |
| 25808 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25809 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25810 | "\x00\x00\x00\x00", |
| 25811 | .rlen = 20, |
| 25812 | }, { |
| 25813 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef", |
| 25814 | .klen = 8, |
| 25815 | .input = "\x66\xa0\x94\x9f\x8a\xf7\xd6\x89" |
| 25816 | "\x1f\x7f\x83\x2b\xa8\x33\xc0\x0c" |
| 25817 | "\x89\x2e\xbe\x30\x14\x3c\xe2\x87" |
| 25818 | "\x40\x01\x1e\xcf", |
| 25819 | .ilen = 28, |
| 25820 | .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 25821 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 25822 | "\x12\x34\x56\x78\x9A\xBC\xDE\xF0" |
| 25823 | "\x12\x34\x56\x78", |
| 25824 | .rlen = 28, |
| 25825 | }, { |
| 25826 | .key = "\xef\x01\x23\x45", |
| 25827 | .klen = 4, |
| 25828 | .input = "\xd6\xa1\x41\xa7\xec\x3c\x38\xdf" |
| 25829 | "\xbd\x61", |
| 25830 | .ilen = 10, |
| 25831 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 25832 | "\x00\x00", |
| 25833 | .rlen = 10, |
| 25834 | }, { |
| 25835 | .key = "\x01\x23\x45\x67\x89\xAB\xCD\xEF" |
| 25836 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 25837 | .klen = 16, |
| 25838 | .input = "\x69\x72\x36\x59\x1B\x52\x42\xB1", |
| 25839 | .ilen = 8, |
| 25840 | .result = "\x01\x23\x45\x67\x89\xAB\xCD\xEF", |
| 25841 | .rlen = 8, |
| 25842 | }, |
| 25843 | }; |
| 25844 | |
| 25845 | /* |
| 25846 | * TEA test vectors |
| 25847 | */ |
| 25848 | #define TEA_ENC_TEST_VECTORS 4 |
| 25849 | #define TEA_DEC_TEST_VECTORS 4 |
| 25850 | |
| 25851 | static struct cipher_testvec tea_enc_tv_template[] = { |
| 25852 | { |
| 25853 | .key = zeroed_string, |
| 25854 | .klen = 16, |
| 25855 | .input = zeroed_string, |
| 25856 | .ilen = 8, |
| 25857 | .result = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", |
| 25858 | .rlen = 8, |
| 25859 | }, { |
| 25860 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 25861 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 25862 | .klen = 16, |
| 25863 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 25864 | .ilen = 8, |
| 25865 | .result = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", |
| 25866 | .rlen = 8, |
| 25867 | }, { |
| 25868 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 25869 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 25870 | .klen = 16, |
| 25871 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 25872 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 25873 | .ilen = 16, |
| 25874 | .result = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" |
| 25875 | "\xdd\x89\xa1\x25\x04\x21\xdf\x95", |
| 25876 | .rlen = 16, |
| 25877 | }, { |
| 25878 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 25879 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 25880 | .klen = 16, |
| 25881 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 25882 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 25883 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 25884 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 25885 | .ilen = 32, |
| 25886 | .result = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" |
| 25887 | "\x94\x18\x95\x91\xa9\xfc\x49\xf8" |
| 25888 | "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" |
| 25889 | "\x07\x89\x73\xc2\x45\x92\xc6\x90", |
| 25890 | .rlen = 32, |
| 25891 | } |
| 25892 | }; |
| 25893 | |
| 25894 | static struct cipher_testvec tea_dec_tv_template[] = { |
| 25895 | { |
| 25896 | .key = zeroed_string, |
| 25897 | .klen = 16, |
| 25898 | .input = "\x0a\x3a\xea\x41\x40\xa9\xba\x94", |
| 25899 | .ilen = 8, |
| 25900 | .result = zeroed_string, |
| 25901 | .rlen = 8, |
| 25902 | }, { |
| 25903 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 25904 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 25905 | .klen = 16, |
| 25906 | .input = "\x77\x5d\x2a\x6a\xf6\xce\x92\x09", |
| 25907 | .ilen = 8, |
| 25908 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 25909 | .rlen = 8, |
| 25910 | }, { |
| 25911 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 25912 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 25913 | .klen = 16, |
| 25914 | .input = "\xbe\x7a\xbb\x81\x95\x2d\x1f\x1e" |
| 25915 | "\xdd\x89\xa1\x25\x04\x21\xdf\x95", |
| 25916 | .ilen = 16, |
| 25917 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 25918 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 25919 | .rlen = 16, |
| 25920 | }, { |
| 25921 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 25922 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 25923 | .klen = 16, |
| 25924 | .input = "\xe0\x4d\x5d\x3c\xb7\x8c\x36\x47" |
| 25925 | "\x94\x18\x95\x91\xa9\xfc\x49\xf8" |
| 25926 | "\x44\xd1\x2d\xc2\x99\xb8\x08\x2a" |
| 25927 | "\x07\x89\x73\xc2\x45\x92\xc6\x90", |
| 25928 | .ilen = 32, |
| 25929 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 25930 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 25931 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 25932 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 25933 | .rlen = 32, |
| 25934 | } |
| 25935 | }; |
| 25936 | |
| 25937 | /* |
| 25938 | * XTEA test vectors |
| 25939 | */ |
| 25940 | #define XTEA_ENC_TEST_VECTORS 4 |
| 25941 | #define XTEA_DEC_TEST_VECTORS 4 |
| 25942 | |
| 25943 | static struct cipher_testvec xtea_enc_tv_template[] = { |
| 25944 | { |
| 25945 | .key = zeroed_string, |
| 25946 | .klen = 16, |
| 25947 | .input = zeroed_string, |
| 25948 | .ilen = 8, |
| 25949 | .result = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", |
| 25950 | .rlen = 8, |
| 25951 | }, { |
| 25952 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 25953 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 25954 | .klen = 16, |
| 25955 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 25956 | .ilen = 8, |
| 25957 | .result = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", |
| 25958 | .rlen = 8, |
| 25959 | }, { |
| 25960 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 25961 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 25962 | .klen = 16, |
| 25963 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 25964 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 25965 | .ilen = 16, |
| 25966 | .result = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" |
| 25967 | "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", |
| 25968 | .rlen = 16, |
| 25969 | }, { |
| 25970 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 25971 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 25972 | .klen = 16, |
| 25973 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 25974 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 25975 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 25976 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 25977 | .ilen = 32, |
| 25978 | .result = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" |
| 25979 | "\x86\xff\x6f\xd0\xe3\x87\x70\x07" |
| 25980 | "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" |
| 25981 | "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", |
| 25982 | .rlen = 32, |
| 25983 | } |
| 25984 | }; |
| 25985 | |
| 25986 | static struct cipher_testvec xtea_dec_tv_template[] = { |
| 25987 | { |
| 25988 | .key = zeroed_string, |
| 25989 | .klen = 16, |
| 25990 | .input = "\xd8\xd4\xe9\xde\xd9\x1e\x13\xf7", |
| 25991 | .ilen = 8, |
| 25992 | .result = zeroed_string, |
| 25993 | .rlen = 8, |
| 25994 | }, { |
| 25995 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 25996 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 25997 | .klen = 16, |
| 25998 | .input = "\x94\xeb\xc8\x96\x84\x6a\x49\xa8", |
| 25999 | .ilen = 8, |
| 26000 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 26001 | .rlen = 8, |
| 26002 | }, { |
| 26003 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 26004 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 26005 | .klen = 16, |
| 26006 | .input = "\x3e\xce\xae\x22\x60\x56\xa8\x9d" |
| 26007 | "\x77\x4d\xd4\xb4\x87\x24\xe3\x9a", |
| 26008 | .ilen = 16, |
| 26009 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 26010 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 26011 | .rlen = 16, |
| 26012 | }, { |
| 26013 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 26014 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 26015 | .klen = 16, |
| 26016 | .input = "\x99\x81\x9f\x5d\x6f\x4b\x31\x3a" |
| 26017 | "\x86\xff\x6f\xd0\xe3\x87\x70\x07" |
| 26018 | "\x4d\xb8\xcf\xf3\x99\x50\xb3\xd4" |
| 26019 | "\x73\xa2\xfa\xc9\x16\x59\x5d\x81", |
| 26020 | .ilen = 32, |
| 26021 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 26022 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 26023 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 26024 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 26025 | .rlen = 32, |
| 26026 | } |
| 26027 | }; |
| 26028 | |
| 26029 | /* |
| 26030 | * KHAZAD test vectors. |
| 26031 | */ |
| 26032 | #define KHAZAD_ENC_TEST_VECTORS 5 |
| 26033 | #define KHAZAD_DEC_TEST_VECTORS 5 |
| 26034 | |
| 26035 | static struct cipher_testvec khazad_enc_tv_template[] = { |
| 26036 | { |
| 26037 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 26038 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26039 | .klen = 16, |
| 26040 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26041 | .ilen = 8, |
| 26042 | .result = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", |
| 26043 | .rlen = 8, |
| 26044 | }, { |
| 26045 | .key = "\x38\x38\x38\x38\x38\x38\x38\x38" |
| 26046 | "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 26047 | .klen = 16, |
| 26048 | .input = "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 26049 | .ilen = 8, |
| 26050 | .result = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", |
| 26051 | .rlen = 8, |
| 26052 | }, { |
| 26053 | .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" |
| 26054 | "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 26055 | .klen = 16, |
| 26056 | .input = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 26057 | .ilen = 8, |
| 26058 | .result = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", |
| 26059 | .rlen = 8, |
| 26060 | }, { |
| 26061 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 26062 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 26063 | .klen = 16, |
| 26064 | .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 26065 | .ilen = 8, |
| 26066 | .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 26067 | .rlen = 8, |
| 26068 | }, { |
| 26069 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 26070 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 26071 | .klen = 16, |
| 26072 | .input = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 26073 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 26074 | .ilen = 16, |
| 26075 | .result = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" |
| 26076 | "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 26077 | .rlen = 16, |
| 26078 | }, |
| 26079 | }; |
| 26080 | |
| 26081 | static struct cipher_testvec khazad_dec_tv_template[] = { |
| 26082 | { |
| 26083 | .key = "\x80\x00\x00\x00\x00\x00\x00\x00" |
| 26084 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26085 | .klen = 16, |
| 26086 | .input = "\x49\xa4\xce\x32\xac\x19\x0e\x3f", |
| 26087 | .ilen = 8, |
| 26088 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26089 | .rlen = 8, |
| 26090 | }, { |
| 26091 | .key = "\x38\x38\x38\x38\x38\x38\x38\x38" |
| 26092 | "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 26093 | .klen = 16, |
| 26094 | .input = "\x7e\x82\x12\xa1\xd9\x5b\xe4\xf9", |
| 26095 | .ilen = 8, |
| 26096 | .result = "\x38\x38\x38\x38\x38\x38\x38\x38", |
| 26097 | .rlen = 8, |
| 26098 | }, { |
| 26099 | .key = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2" |
| 26100 | "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 26101 | .klen = 16, |
| 26102 | .input = "\xaa\xbe\xc1\x95\xc5\x94\x1a\x9c", |
| 26103 | .ilen = 8, |
| 26104 | .result = "\xa2\xa2\xa2\xa2\xa2\xa2\xa2\xa2", |
| 26105 | .rlen = 8, |
| 26106 | }, { |
| 26107 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 26108 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 26109 | .klen = 16, |
| 26110 | .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 26111 | .ilen = 8, |
| 26112 | .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 26113 | .rlen = 8, |
| 26114 | }, { |
| 26115 | .key = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 26116 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 26117 | .klen = 16, |
| 26118 | .input = "\x04\x74\xf5\x70\x50\x16\xd3\xb8" |
| 26119 | "\x04\x74\xf5\x70\x50\x16\xd3\xb8", |
| 26120 | .ilen = 16, |
| 26121 | .result = "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f" |
| 26122 | "\x2f\x2f\x2f\x2f\x2f\x2f\x2f\x2f", |
| 26123 | .rlen = 16, |
| 26124 | }, |
| 26125 | }; |
| 26126 | |
| 26127 | /* |
| 26128 | * Anubis test vectors. |
| 26129 | */ |
| 26130 | |
| 26131 | #define ANUBIS_ENC_TEST_VECTORS 5 |
| 26132 | #define ANUBIS_DEC_TEST_VECTORS 5 |
| 26133 | #define ANUBIS_CBC_ENC_TEST_VECTORS 2 |
| 26134 | #define ANUBIS_CBC_DEC_TEST_VECTORS 2 |
| 26135 | |
| 26136 | static struct cipher_testvec anubis_enc_tv_template[] = { |
| 26137 | { |
| 26138 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26139 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 26140 | .klen = 16, |
| 26141 | .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26142 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 26143 | .ilen = 16, |
| 26144 | .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 26145 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", |
| 26146 | .rlen = 16, |
| 26147 | }, { |
| 26148 | |
| 26149 | .key = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 26150 | "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 26151 | "\x03\x03\x03\x03", |
| 26152 | .klen = 20, |
| 26153 | .input = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 26154 | "\x03\x03\x03\x03\x03\x03\x03\x03", |
| 26155 | .ilen = 16, |
| 26156 | .result = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" |
| 26157 | "\x87\x41\x6f\x82\x0a\x98\x64\xae", |
| 26158 | .rlen = 16, |
| 26159 | }, { |
| 26160 | .key = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 26161 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 26162 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 26163 | "\x24\x24\x24\x24", |
| 26164 | .klen = 28, |
| 26165 | .input = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 26166 | "\x24\x24\x24\x24\x24\x24\x24\x24", |
| 26167 | .ilen = 16, |
| 26168 | .result = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" |
| 26169 | "\x06\xd3\x61\x27\xfd\x13\x9e\xde", |
| 26170 | .rlen = 16, |
| 26171 | }, { |
| 26172 | .key = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 26173 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 26174 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 26175 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 26176 | .klen = 32, |
| 26177 | .input = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 26178 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 26179 | .ilen = 16, |
| 26180 | .result = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" |
| 26181 | "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", |
| 26182 | .rlen = 16, |
| 26183 | }, { |
| 26184 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26185 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26186 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26187 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26188 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 26189 | .klen = 40, |
| 26190 | .input = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26191 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 26192 | .ilen = 16, |
| 26193 | .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 26194 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee", |
| 26195 | .rlen = 16, |
| 26196 | }, |
| 26197 | }; |
| 26198 | |
| 26199 | static struct cipher_testvec anubis_dec_tv_template[] = { |
| 26200 | { |
| 26201 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26202 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 26203 | .klen = 16, |
| 26204 | .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 26205 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90", |
| 26206 | .ilen = 16, |
| 26207 | .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26208 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 26209 | .rlen = 16, |
| 26210 | }, { |
| 26211 | |
| 26212 | .key = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 26213 | "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 26214 | "\x03\x03\x03\x03", |
| 26215 | .klen = 20, |
| 26216 | .input = "\xdb\xf1\x42\xf4\xd1\x8a\xc7\x49" |
| 26217 | "\x87\x41\x6f\x82\x0a\x98\x64\xae", |
| 26218 | .ilen = 16, |
| 26219 | .result = "\x03\x03\x03\x03\x03\x03\x03\x03" |
| 26220 | "\x03\x03\x03\x03\x03\x03\x03\x03", |
| 26221 | .rlen = 16, |
| 26222 | }, { |
| 26223 | .key = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 26224 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 26225 | "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 26226 | "\x24\x24\x24\x24", |
| 26227 | .klen = 28, |
| 26228 | .input = "\xfd\x1b\x4a\xe3\xbf\xf0\xad\x3d" |
| 26229 | "\x06\xd3\x61\x27\xfd\x13\x9e\xde", |
| 26230 | .ilen = 16, |
| 26231 | .result = "\x24\x24\x24\x24\x24\x24\x24\x24" |
| 26232 | "\x24\x24\x24\x24\x24\x24\x24\x24", |
| 26233 | .rlen = 16, |
| 26234 | }, { |
| 26235 | .key = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 26236 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 26237 | "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 26238 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 26239 | .klen = 32, |
| 26240 | .input = "\x1a\x91\xfb\x2b\xb7\x78\x6b\xc4" |
| 26241 | "\x17\xd9\xff\x40\x3b\x0e\xe5\xfe", |
| 26242 | .ilen = 16, |
| 26243 | .result = "\x25\x25\x25\x25\x25\x25\x25\x25" |
| 26244 | "\x25\x25\x25\x25\x25\x25\x25\x25", |
| 26245 | .rlen = 16, |
| 26246 | }, { |
| 26247 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26248 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26249 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26250 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26251 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 26252 | .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 26253 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee", |
| 26254 | .klen = 40, |
| 26255 | .ilen = 16, |
| 26256 | .result = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26257 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 26258 | .rlen = 16, |
| 26259 | }, |
| 26260 | }; |
| 26261 | |
| 26262 | static struct cipher_testvec anubis_cbc_enc_tv_template[] = { |
| 26263 | { |
| 26264 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26265 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 26266 | .klen = 16, |
| 26267 | .input = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26268 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26269 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26270 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 26271 | .ilen = 32, |
| 26272 | .result = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 26273 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" |
| 26274 | "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" |
| 26275 | "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", |
| 26276 | .rlen = 32, |
| 26277 | }, { |
| 26278 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26279 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26280 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26281 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26282 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 26283 | .klen = 40, |
| 26284 | .input = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26285 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26286 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26287 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 26288 | .ilen = 32, |
| 26289 | .result = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 26290 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee" |
| 26291 | "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" |
| 26292 | "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", |
| 26293 | .rlen = 32, |
| 26294 | }, |
| 26295 | }; |
| 26296 | |
| 26297 | static struct cipher_testvec anubis_cbc_dec_tv_template[] = { |
| 26298 | { |
| 26299 | .key = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26300 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 26301 | .klen = 16, |
| 26302 | .input = "\x6d\xc5\xda\xa2\x26\x7d\x62\x6f" |
| 26303 | "\x08\xb7\x52\x8e\x6e\x6e\x86\x90" |
| 26304 | "\x86\xd8\xb5\x6f\x98\x5e\x8a\x66" |
| 26305 | "\x4f\x1f\x78\xa1\xbb\x37\xf1\xbe", |
| 26306 | .ilen = 32, |
| 26307 | .result = "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26308 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26309 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe" |
| 26310 | "\xfe\xfe\xfe\xfe\xfe\xfe\xfe\xfe", |
| 26311 | .rlen = 32, |
| 26312 | }, { |
| 26313 | .key = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26314 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26315 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26316 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26317 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 26318 | .klen = 40, |
| 26319 | .input = "\xa5\x2c\x85\x6f\x9c\xba\xa0\x97" |
| 26320 | "\x9e\xc6\x84\x0f\x17\x21\x07\xee" |
| 26321 | "\xa2\xbc\x06\x98\xc6\x4b\xda\x75" |
| 26322 | "\x2e\xaa\xbe\x58\xce\x01\x5b\xc7", |
| 26323 | .ilen = 32, |
| 26324 | .result = "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26325 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26326 | "\x35\x35\x35\x35\x35\x35\x35\x35" |
| 26327 | "\x35\x35\x35\x35\x35\x35\x35\x35", |
| 26328 | .rlen = 32, |
| 26329 | }, |
| 26330 | }; |
| 26331 | |
| 26332 | /* |
| 26333 | * XETA test vectors |
| 26334 | */ |
| 26335 | #define XETA_ENC_TEST_VECTORS 4 |
| 26336 | #define XETA_DEC_TEST_VECTORS 4 |
| 26337 | |
| 26338 | static struct cipher_testvec xeta_enc_tv_template[] = { |
| 26339 | { |
| 26340 | .key = zeroed_string, |
| 26341 | .klen = 16, |
| 26342 | .input = zeroed_string, |
| 26343 | .ilen = 8, |
| 26344 | .result = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", |
| 26345 | .rlen = 8, |
| 26346 | }, { |
| 26347 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 26348 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 26349 | .klen = 16, |
| 26350 | .input = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 26351 | .ilen = 8, |
| 26352 | .result = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", |
| 26353 | .rlen = 8, |
| 26354 | }, { |
| 26355 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 26356 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 26357 | .klen = 16, |
| 26358 | .input = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 26359 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 26360 | .ilen = 16, |
| 26361 | .result = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" |
| 26362 | "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", |
| 26363 | .rlen = 16, |
| 26364 | }, { |
| 26365 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 26366 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 26367 | .klen = 16, |
| 26368 | .input = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 26369 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 26370 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 26371 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 26372 | .ilen = 32, |
| 26373 | .result = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" |
| 26374 | "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" |
| 26375 | "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" |
| 26376 | "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", |
| 26377 | .rlen = 32, |
| 26378 | } |
| 26379 | }; |
| 26380 | |
| 26381 | static struct cipher_testvec xeta_dec_tv_template[] = { |
| 26382 | { |
| 26383 | .key = zeroed_string, |
| 26384 | .klen = 16, |
| 26385 | .input = "\xaa\x22\x96\xe5\x6c\x61\xf3\x45", |
| 26386 | .ilen = 8, |
| 26387 | .result = zeroed_string, |
| 26388 | .rlen = 8, |
| 26389 | }, { |
| 26390 | .key = "\x2b\x02\x05\x68\x06\x14\x49\x76" |
| 26391 | "\x77\x5d\x0e\x26\x6c\x28\x78\x43", |
| 26392 | .klen = 16, |
| 26393 | .input = "\x82\x3e\xeb\x35\xdc\xdd\xd9\xc3", |
| 26394 | .ilen = 8, |
| 26395 | .result = "\x74\x65\x73\x74\x20\x6d\x65\x2e", |
| 26396 | .rlen = 8, |
| 26397 | }, { |
| 26398 | .key = "\x09\x65\x43\x11\x66\x44\x39\x25" |
| 26399 | "\x51\x3a\x16\x10\x0a\x08\x12\x6e", |
| 26400 | .klen = 16, |
| 26401 | .input = "\xe2\x04\xdb\xf2\x89\x85\x9e\xea" |
| 26402 | "\x61\x35\xaa\xed\xb5\xcb\x71\x2c", |
| 26403 | .ilen = 16, |
| 26404 | .result = "\x6c\x6f\x6e\x67\x65\x72\x5f\x74" |
| 26405 | "\x65\x73\x74\x5f\x76\x65\x63\x74", |
| 26406 | .rlen = 16, |
| 26407 | }, { |
| 26408 | .key = "\x4d\x76\x32\x17\x05\x3f\x75\x2c" |
| 26409 | "\x5d\x04\x16\x36\x15\x72\x63\x2f", |
| 26410 | .klen = 16, |
| 26411 | .input = "\x0b\x03\xcd\x8a\xbe\x95\xfd\xb1" |
| 26412 | "\xc1\x44\x91\x0b\xa5\xc9\x1b\xb4" |
| 26413 | "\xa9\xda\x1e\x9e\xb1\x3e\x2a\x8f" |
| 26414 | "\xea\xa5\x6a\x85\xd1\xf4\xa8\xa5", |
| 26415 | .ilen = 32, |
| 26416 | .result = "\x54\x65\x61\x20\x69\x73\x20\x67" |
| 26417 | "\x6f\x6f\x64\x20\x66\x6f\x72\x20" |
| 26418 | "\x79\x6f\x75\x21\x21\x21\x20\x72" |
| 26419 | "\x65\x61\x6c\x6c\x79\x21\x21\x21", |
| 26420 | .rlen = 32, |
| 26421 | } |
| 26422 | }; |
| 26423 | |
| 26424 | /* |
| 26425 | * FCrypt test vectors |
| 26426 | */ |
| 26427 | #define FCRYPT_ENC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_enc_tv_template) |
| 26428 | #define FCRYPT_DEC_TEST_VECTORS ARRAY_SIZE(fcrypt_pcbc_dec_tv_template) |
| 26429 | |
| 26430 | static struct cipher_testvec fcrypt_pcbc_enc_tv_template[] = { |
| 26431 | { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ |
| 26432 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26433 | .klen = 8, |
| 26434 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26435 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26436 | .ilen = 8, |
| 26437 | .result = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", |
| 26438 | .rlen = 8, |
| 26439 | }, { |
| 26440 | .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", |
| 26441 | .klen = 8, |
| 26442 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26443 | .input = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", |
| 26444 | .ilen = 8, |
| 26445 | .result = "\xD8\xED\x78\x74\x77\xEC\x06\x80", |
| 26446 | .rlen = 8, |
| 26447 | }, { /* From Arla */ |
| 26448 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 26449 | .klen = 8, |
| 26450 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26451 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 26452 | .ilen = 48, |
| 26453 | .result = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" |
| 26454 | "\xee\xac\x98\x62\x44\x51\xe4\x84" |
| 26455 | "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" |
| 26456 | "\xd2\xd9\x13\x79\x72\xa3\x45\x03" |
| 26457 | "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" |
| 26458 | "\xf8\x91\x3c\xac\x44\x22\x92\xef", |
| 26459 | .rlen = 48, |
| 26460 | }, { |
| 26461 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26462 | .klen = 8, |
| 26463 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 26464 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 26465 | .ilen = 48, |
| 26466 | .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 26467 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 26468 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 26469 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 26470 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 26471 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 26472 | .rlen = 48, |
| 26473 | }, { /* split-page version */ |
| 26474 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26475 | .klen = 8, |
| 26476 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 26477 | .input = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 26478 | .ilen = 48, |
| 26479 | .result = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 26480 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 26481 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 26482 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 26483 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 26484 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 26485 | .rlen = 48, |
| 26486 | .np = 2, |
| 26487 | .tap = { 20, 28 }, |
| 26488 | } |
| 26489 | }; |
| 26490 | |
| 26491 | static struct cipher_testvec fcrypt_pcbc_dec_tv_template[] = { |
| 26492 | { /* http://www.openafs.org/pipermail/openafs-devel/2000-December/005320.html */ |
| 26493 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26494 | .klen = 8, |
| 26495 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26496 | .input = "\x0E\x09\x00\xC7\x3E\xF7\xED\x41", |
| 26497 | .ilen = 8, |
| 26498 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26499 | .rlen = 8, |
| 26500 | }, { |
| 26501 | .key = "\x11\x44\x77\xAA\xDD\x00\x33\x66", |
| 26502 | .klen = 8, |
| 26503 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 26504 | .input = "\xD8\xED\x78\x74\x77\xEC\x06\x80", |
| 26505 | .ilen = 8, |
| 26506 | .result = "\x12\x34\x56\x78\x9A\xBC\xDE\xF0", |
| 26507 | .rlen = 8, |
| 26508 | }, { /* From Arla */ |
| 26509 | .key = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 26510 | .klen = 8, |
| 26511 | .iv = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26512 | .input = "\x00\xf0\x0e\x11\x75\xe6\x23\x82" |
| 26513 | "\xee\xac\x98\x62\x44\x51\xe4\x84" |
| 26514 | "\xc3\x59\xd8\xaa\x64\x60\xae\xf7" |
| 26515 | "\xd2\xd9\x13\x79\x72\xa3\x45\x03" |
| 26516 | "\x23\xb5\x62\xd7\x0c\xf5\x27\xd1" |
| 26517 | "\xf8\x91\x3c\xac\x44\x22\x92\xef", |
| 26518 | .ilen = 48, |
| 26519 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 26520 | .rlen = 48, |
| 26521 | }, { |
| 26522 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26523 | .klen = 8, |
| 26524 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 26525 | .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 26526 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 26527 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 26528 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 26529 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 26530 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 26531 | .ilen = 48, |
| 26532 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 26533 | .rlen = 48, |
| 26534 | }, { /* split-page version */ |
| 26535 | .key = "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26536 | .klen = 8, |
| 26537 | .iv = "\xf0\xe1\xd2\xc3\xb4\xa5\x96\x87", |
| 26538 | .input = "\xca\x90\xf5\x9d\xcb\xd4\xd2\x3c" |
| 26539 | "\x01\x88\x7f\x3e\x31\x6e\x62\x9d" |
| 26540 | "\xd8\xe0\x57\xa3\x06\x3a\x42\x58" |
| 26541 | "\x2a\x28\xfe\x72\x52\x2f\xdd\xe0" |
| 26542 | "\x19\x89\x09\x1c\x2a\x8e\x8c\x94" |
| 26543 | "\xfc\xc7\x68\xe4\x88\xaa\xde\x0f", |
| 26544 | .ilen = 48, |
| 26545 | .result = "The quick brown fox jumps over the lazy dogs.\0\0", |
| 26546 | .rlen = 48, |
| 26547 | .np = 2, |
| 26548 | .tap = { 20, 28 }, |
| 26549 | } |
| 26550 | }; |
| 26551 | |
| 26552 | /* |
| 26553 | * CAMELLIA test vectors. |
| 26554 | */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 26555 | #define CAMELLIA_ENC_TEST_VECTORS 4 |
| 26556 | #define CAMELLIA_DEC_TEST_VECTORS 4 |
| 26557 | #define CAMELLIA_CBC_ENC_TEST_VECTORS 3 |
| 26558 | #define CAMELLIA_CBC_DEC_TEST_VECTORS 3 |
| 26559 | #define CAMELLIA_CTR_ENC_TEST_VECTORS 2 |
| 26560 | #define CAMELLIA_CTR_DEC_TEST_VECTORS 2 |
| 26561 | #define CAMELLIA_LRW_ENC_TEST_VECTORS 8 |
| 26562 | #define CAMELLIA_LRW_DEC_TEST_VECTORS 8 |
| 26563 | #define CAMELLIA_XTS_ENC_TEST_VECTORS 5 |
| 26564 | #define CAMELLIA_XTS_DEC_TEST_VECTORS 5 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 26565 | |
| 26566 | static struct cipher_testvec camellia_enc_tv_template[] = { |
| 26567 | { |
| 26568 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26569 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26570 | .klen = 16, |
| 26571 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26572 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26573 | .ilen = 16, |
| 26574 | .result = "\x67\x67\x31\x38\x54\x96\x69\x73" |
| 26575 | "\x08\x57\x06\x56\x48\xea\xbe\x43", |
| 26576 | .rlen = 16, |
| 26577 | }, { |
| 26578 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26579 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 26580 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 26581 | .klen = 24, |
| 26582 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26583 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26584 | .ilen = 16, |
| 26585 | .result = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" |
| 26586 | "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", |
| 26587 | .rlen = 16, |
| 26588 | }, { |
| 26589 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26590 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 26591 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 26592 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 26593 | .klen = 32, |
| 26594 | .input = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26595 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26596 | .ilen = 16, |
| 26597 | .result = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" |
| 26598 | "\x20\xef\x7c\x91\x9e\x3a\x75\x09", |
| 26599 | .rlen = 16, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 26600 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 26601 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 26602 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 26603 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 26604 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 26605 | .klen = 32, |
| 26606 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 26607 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 26608 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 26609 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 26610 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 26611 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 26612 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 26613 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 26614 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 26615 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 26616 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 26617 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 26618 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 26619 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 26620 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 26621 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 26622 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 26623 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 26624 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 26625 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 26626 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 26627 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 26628 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 26629 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 26630 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 26631 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 26632 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 26633 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 26634 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 26635 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 26636 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 26637 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 26638 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 26639 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 26640 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 26641 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 26642 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 26643 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 26644 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 26645 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 26646 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 26647 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 26648 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 26649 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 26650 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 26651 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 26652 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 26653 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 26654 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 26655 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 26656 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 26657 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 26658 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 26659 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 26660 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 26661 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 26662 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 26663 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 26664 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 26665 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 26666 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 26667 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 26668 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 26669 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 26670 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 26671 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 26672 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 26673 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 26674 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 26675 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 26676 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 26677 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 26678 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 26679 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 26680 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 26681 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 26682 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 26683 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 26684 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 26685 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 26686 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 26687 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 26688 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 26689 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 26690 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 26691 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 26692 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 26693 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 26694 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 26695 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 26696 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 26697 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 26698 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 26699 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 26700 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 26701 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 26702 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 26703 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 26704 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 26705 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 26706 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 26707 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 26708 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 26709 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 26710 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 26711 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 26712 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 26713 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 26714 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 26715 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 26716 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 26717 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 26718 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 26719 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 26720 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 26721 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 26722 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 26723 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 26724 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 26725 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 26726 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 26727 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 26728 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 26729 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 26730 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 26731 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 26732 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 26733 | .result = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA" |
| 26734 | "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7" |
| 26735 | "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04" |
| 26736 | "\xB3\xC2\xB9\x03\xAA\x91\x56\x29" |
| 26737 | "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 26738 | "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A" |
| 26739 | "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8" |
| 26740 | "\x01\x9B\x17\x0A\x29\xE7\x61\x28" |
| 26741 | "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B" |
| 26742 | "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B" |
| 26743 | "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E" |
| 26744 | "\x83\x54\xAE\x7C\x82\x46\x10\xC9" |
| 26745 | "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC" |
| 26746 | "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4" |
| 26747 | "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C" |
| 26748 | "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB" |
| 26749 | "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98" |
| 26750 | "\x9F\x32\xBA\xA2\x18\xCF\x55\x43" |
| 26751 | "\xFE\x80\x8F\x60\xCF\x05\x30\x9B" |
| 26752 | "\x70\x50\x1E\x9C\x08\x87\xE6\x20" |
| 26753 | "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2" |
| 26754 | "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6" |
| 26755 | "\xB8\x30\x86\x3B\x0F\x94\x1E\x79" |
| 26756 | "\x13\x94\x35\xA2\xB1\x35\x5B\x05" |
| 26757 | "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE" |
| 26758 | "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A" |
| 26759 | "\xF5\x33\xC8\x19\x45\x14\x44\x5D" |
| 26760 | "\xFE\x94\x7B\xBB\x63\x13\x57\xC3" |
| 26761 | "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A" |
| 26762 | "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF" |
| 26763 | "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8" |
| 26764 | "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C" |
| 26765 | "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB" |
| 26766 | "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74" |
| 26767 | "\x60\x64\x0D\x1C\x80\xD1\x20\x9E" |
| 26768 | "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96" |
| 26769 | "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B" |
| 26770 | "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01" |
| 26771 | "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E" |
| 26772 | "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B" |
| 26773 | "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D" |
| 26774 | "\x5B\x55\x23\xB7\x40\x31\xDE\xEE" |
| 26775 | "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42" |
| 26776 | "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3" |
| 26777 | "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF" |
| 26778 | "\x63\xA9\xF0\x6A\x08\x46\xBD\x48" |
| 26779 | "\x83\x06\xAB\x82\x99\x01\x16\x1A" |
| 26780 | "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F" |
| 26781 | "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC" |
| 26782 | "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B" |
| 26783 | "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0" |
| 26784 | "\xCD\xB6\x45\xB2\x29\x2E\x34\x23" |
| 26785 | "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F" |
| 26786 | "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA" |
| 26787 | "\x74\x83\x29\x05\xE8\xC4\x4D\x01" |
| 26788 | "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99" |
| 26789 | "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30" |
| 26790 | "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C" |
| 26791 | "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3" |
| 26792 | "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44" |
| 26793 | "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 26794 | "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB" |
| 26795 | "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD" |
| 26796 | "\xF7\x90\x68\xCF\xC9\x11\x52\x3E" |
| 26797 | "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A" |
| 26798 | "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E" |
| 26799 | "\xED\x28\x39\xE9\x63\xED\x41\x70" |
| 26800 | "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB" |
| 26801 | "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60" |
| 26802 | "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B" |
| 26803 | "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5" |
| 26804 | "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E" |
| 26805 | "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23" |
| 26806 | "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9" |
| 26807 | "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7" |
| 26808 | "\xCA\xA8\xA2\x9E\x13\x87\x57\x92" |
| 26809 | "\x64\x7C\x85\x0B\xB3\x29\x37\xD8" |
| 26810 | "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF" |
| 26811 | "\x2E\x45\x83\xB6\xD8\x54\x00\x89" |
| 26812 | "\xF6\xBC\x3A\x7A\x88\x58\x51\xED" |
| 26813 | "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42" |
| 26814 | "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC" |
| 26815 | "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1" |
| 26816 | "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91" |
| 26817 | "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E" |
| 26818 | "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15" |
| 26819 | "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86" |
| 26820 | "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4" |
| 26821 | "\x7F\x95\x10\xF7\xAB\x3F\x92\x23" |
| 26822 | "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43" |
| 26823 | "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2" |
| 26824 | "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56" |
| 26825 | "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4" |
| 26826 | "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F" |
| 26827 | "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4" |
| 26828 | "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2" |
| 26829 | "\x39\x25\x55\x20\x5A\xA6\x02\x9F" |
| 26830 | "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B" |
| 26831 | "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF" |
| 26832 | "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E" |
| 26833 | "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78" |
| 26834 | "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA" |
| 26835 | "\xED\x87\x98\xAC\xFE\x48\x97\x6D" |
| 26836 | "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14" |
| 26837 | "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C" |
| 26838 | "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55" |
| 26839 | "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55" |
| 26840 | "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C" |
| 26841 | "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC" |
| 26842 | "\xF0\x33\x52\x29\x70\xF9\x5C\xE9" |
| 26843 | "\xAC\x1F\xB5\x73\x56\x66\x54\xAF" |
| 26844 | "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3" |
| 26845 | "\xAE\x47\xB6\x69\x86\xE9\x01\x31" |
| 26846 | "\x83\x18\x3D\xF4\x74\x7B\xF9\x42" |
| 26847 | "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6" |
| 26848 | "\x2B\x20\x63\xDA\x49\x65\x5E\x8B" |
| 26849 | "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34" |
| 26850 | "\xD3\x52\xFC\x68\x00\x43\x1B\x37" |
| 26851 | "\x31\x93\x51\x1C\x63\x97\x70\xB0" |
| 26852 | "\x99\x78\x83\x13\xFD\xCF\x53\x81" |
| 26853 | "\x36\x46\xB5\x42\x52\x2F\x32\xEB" |
| 26854 | "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC" |
| 26855 | "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A" |
| 26856 | "\xAE\xEF\x3E\x82\x12\x0B\x74\x72" |
| 26857 | "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55" |
| 26858 | "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66", |
| 26859 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 26860 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 26861 | .np = 3, |
| 26862 | .tap = { 1008 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 26863 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 26864 | }; |
| 26865 | |
| 26866 | static struct cipher_testvec camellia_dec_tv_template[] = { |
| 26867 | { |
| 26868 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26869 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26870 | .klen = 16, |
| 26871 | .input = "\x67\x67\x31\x38\x54\x96\x69\x73" |
| 26872 | "\x08\x57\x06\x56\x48\xea\xbe\x43", |
| 26873 | .ilen = 16, |
| 26874 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26875 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26876 | .rlen = 16, |
| 26877 | }, { |
| 26878 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26879 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 26880 | "\x00\x11\x22\x33\x44\x55\x66\x77", |
| 26881 | .klen = 24, |
| 26882 | .input = "\xb4\x99\x34\x01\xb3\xe9\x96\xf8" |
| 26883 | "\x4e\xe5\xce\xe7\xd7\x9b\x09\xb9", |
| 26884 | .ilen = 16, |
| 26885 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26886 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26887 | .rlen = 16, |
| 26888 | }, { |
| 26889 | .key = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26890 | "\xfe\xdc\xba\x98\x76\x54\x32\x10" |
| 26891 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 26892 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff", |
| 26893 | .klen = 32, |
| 26894 | .input = "\x9a\xcc\x23\x7d\xff\x16\xd7\x6c" |
| 26895 | "\x20\xef\x7c\x91\x9e\x3a\x75\x09", |
| 26896 | .ilen = 16, |
| 26897 | .result = "\x01\x23\x45\x67\x89\xab\xcd\xef" |
| 26898 | "\xfe\xdc\xba\x98\x76\x54\x32\x10", |
| 26899 | .rlen = 16, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 26900 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 26901 | .key = "\x3F\x85\x62\x3F\x1C\xF9\xD6\x1C" |
| 26902 | "\xF9\xD6\xB3\x90\x6D\x4A\x90\x6D" |
| 26903 | "\x4A\x27\x04\xE1\x27\x04\xE1\xBE" |
| 26904 | "\x9B\x78\xBE\x9B\x78\x55\x32\x0F", |
| 26905 | .klen = 32, |
| 26906 | .input = "\xED\xCD\xDB\xB8\x68\xCE\xBD\xEA" |
| 26907 | "\x9D\x9D\xCD\x9F\x4F\xFC\x4D\xB7" |
| 26908 | "\xA5\xFF\x6F\x43\x0F\xBA\x32\x04" |
| 26909 | "\xB3\xC2\xB9\x03\xAA\x91\x56\x29" |
| 26910 | "\x0D\xD0\xFD\xC4\x65\xA5\x69\xB9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 26911 | "\xF1\xF6\xB1\xA5\xB2\x75\x4F\x8A" |
| 26912 | "\x8D\x7D\x1B\x9B\xC7\x68\x72\xF8" |
| 26913 | "\x01\x9B\x17\x0A\x29\xE7\x61\x28" |
| 26914 | "\x7F\xA7\x50\xCA\x20\x2C\x96\x3B" |
| 26915 | "\x6E\x5C\x5D\x3F\xB5\x7F\xF3\x2B" |
| 26916 | "\x04\xEF\x9D\xD4\xCE\x41\x28\x8E" |
| 26917 | "\x83\x54\xAE\x7C\x82\x46\x10\xC9" |
| 26918 | "\xC4\x8A\x1E\x1F\x4C\xA9\xFC\xEC" |
| 26919 | "\x3C\x8C\x30\xFC\x59\xD2\x54\xC4" |
| 26920 | "\x6F\x50\xC6\xCA\x8C\x14\x5B\x9C" |
| 26921 | "\x18\x56\x5B\xF8\x33\x0E\x4A\xDB" |
| 26922 | "\xEC\xB5\x6E\x5B\x31\xC4\x0E\x98" |
| 26923 | "\x9F\x32\xBA\xA2\x18\xCF\x55\x43" |
| 26924 | "\xFE\x80\x8F\x60\xCF\x05\x30\x9B" |
| 26925 | "\x70\x50\x1E\x9C\x08\x87\xE6\x20" |
| 26926 | "\xD2\xF3\x27\xF8\x2A\x8D\x12\xB2" |
| 26927 | "\xBC\x5F\xFE\x52\x52\xF6\x7F\xB6" |
| 26928 | "\xB8\x30\x86\x3B\x0F\x94\x1E\x79" |
| 26929 | "\x13\x94\x35\xA2\xB1\x35\x5B\x05" |
| 26930 | "\x2A\x98\x6B\x96\x4C\xB1\x20\xBE" |
| 26931 | "\xB6\x14\xC2\x06\xBF\xFD\x5F\x2A" |
| 26932 | "\xF5\x33\xC8\x19\x45\x14\x44\x5D" |
| 26933 | "\xFE\x94\x7B\xBB\x63\x13\x57\xC3" |
| 26934 | "\x2A\x8F\x6C\x11\x2A\x07\xA7\x6A" |
| 26935 | "\xBF\x20\xD3\x99\xC6\x00\x0B\xBF" |
| 26936 | "\x83\x46\x25\x3A\xB0\xF6\xC5\xC8" |
| 26937 | "\x00\xCA\xE5\x28\x4A\x7C\x95\x9C" |
| 26938 | "\x7B\x43\xAB\xF9\xE4\xF8\x74\xAB" |
| 26939 | "\xA7\xB8\x9C\x0F\x53\x7B\xB6\x74" |
| 26940 | "\x60\x64\x0D\x1C\x80\xD1\x20\x9E" |
| 26941 | "\xDC\x14\x27\x9B\xFC\xBD\x5C\x96" |
| 26942 | "\xD2\x51\xDC\x96\xEE\xE5\xEA\x2B" |
| 26943 | "\x02\x7C\xAA\x3C\xDC\x9D\x7B\x01" |
| 26944 | "\x20\xC3\xE1\x0B\xDD\xAB\xF3\x1E" |
| 26945 | "\x19\xA8\x84\x29\x5F\xCC\xC3\x5B" |
| 26946 | "\xE4\x33\x59\xDC\x12\xEB\x2B\x4D" |
| 26947 | "\x5B\x55\x23\xB7\x40\x31\xDE\xEE" |
| 26948 | "\x18\xC9\x3C\x4D\xBC\xED\xE0\x42" |
| 26949 | "\xAD\xDE\xA0\xA3\xC3\xFE\x44\xD3" |
| 26950 | "\xE1\x9A\xDA\xAB\x32\xFC\x1A\xBF" |
| 26951 | "\x63\xA9\xF0\x6A\x08\x46\xBD\x48" |
| 26952 | "\x83\x06\xAB\x82\x99\x01\x16\x1A" |
| 26953 | "\x03\x36\xC5\x59\x6B\xB8\x8C\x9F" |
| 26954 | "\xC6\x51\x3D\xE5\x7F\xBF\xAB\xBC" |
| 26955 | "\xC9\xA1\x88\x34\x5F\xA9\x7C\x3B" |
| 26956 | "\x9F\x1B\x98\x2B\x4F\xFB\x9B\xF0" |
| 26957 | "\xCD\xB6\x45\xB2\x29\x2E\x34\x23" |
| 26958 | "\xA9\x97\xC0\x22\x8C\x42\x9B\x5F" |
| 26959 | "\x40\xC8\xD7\x3D\x82\x9A\x6F\xAA" |
| 26960 | "\x74\x83\x29\x05\xE8\xC4\x4D\x01" |
| 26961 | "\xB5\xE5\x84\x3F\x7F\xD3\xE0\x99" |
| 26962 | "\xDA\xE7\x6F\x30\xFD\xAA\x92\x30" |
| 26963 | "\xA5\x46\x8B\xA2\xE6\x58\x62\x7C" |
| 26964 | "\x2C\x35\x1B\x38\x85\x7D\xE8\xF3" |
| 26965 | "\x87\x4F\xDA\xD8\x5F\xFC\xB6\x44" |
| 26966 | "\xD0\xE3\x9B\x8B\xBF\xD6\xB8\xC4" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 26967 | "\x73\xAE\x1D\x8B\x5B\x74\x8B\xCB" |
| 26968 | "\xA4\xAD\xCF\x5D\xD4\x58\xC9\xCD" |
| 26969 | "\xF7\x90\x68\xCF\xC9\x11\x52\x3E" |
| 26970 | "\xE8\xA1\xA3\x78\x8B\xD0\xAC\x0A" |
| 26971 | "\xD4\xC9\xA3\xA5\x55\x30\xC8\x3E" |
| 26972 | "\xED\x28\x39\xE9\x63\xED\x41\x70" |
| 26973 | "\x51\xE3\xC4\xA0\xFC\xD5\x43\xCB" |
| 26974 | "\x4D\x65\xC8\xFD\x3A\x91\x8F\x60" |
| 26975 | "\x8A\xA6\x6D\x9D\x3E\x01\x23\x4B" |
| 26976 | "\x50\x47\xC9\xDC\x9B\xDE\x37\xC5" |
| 26977 | "\xBF\x67\xB1\x6B\x78\x38\xD5\x7E" |
| 26978 | "\xB6\xFF\x67\x83\x3B\x6E\xBE\x23" |
| 26979 | "\x45\xFA\x1D\x69\x44\xFD\xC6\xB9" |
| 26980 | "\xD0\x4A\x92\xD1\xBE\xF6\x4A\xB7" |
| 26981 | "\xCA\xA8\xA2\x9E\x13\x87\x57\x92" |
| 26982 | "\x64\x7C\x85\x0B\xB3\x29\x37\xD8" |
| 26983 | "\xE6\xAA\xAF\xC4\x03\x67\xA3\xBF" |
| 26984 | "\x2E\x45\x83\xB6\xD8\x54\x00\x89" |
| 26985 | "\xF6\xBC\x3A\x7A\x88\x58\x51\xED" |
| 26986 | "\xF4\x4E\x01\xA5\xC3\x2E\xD9\x42" |
| 26987 | "\xBD\x6E\x0D\x0B\x21\xB0\x1A\xCC" |
| 26988 | "\xA4\xD3\x3F\xDC\x9B\x81\xD8\xF1" |
| 26989 | "\xEA\x7A\x6A\xB7\x07\xC9\x6D\x91" |
| 26990 | "\x6D\x3A\xF5\x5F\xA6\xFF\x87\x1E" |
| 26991 | "\x3F\xDD\xC0\x72\xEA\xAC\x08\x15" |
| 26992 | "\x21\xE6\xC6\xB6\x0D\xD8\x51\x86" |
| 26993 | "\x2A\x03\x73\xF7\x29\xD4\xC4\xE4" |
| 26994 | "\x7F\x95\x10\xF7\xAB\x3F\x92\x23" |
| 26995 | "\xD3\xCE\x9C\x2E\x46\x3B\x63\x43" |
| 26996 | "\xBB\xC2\x82\x7A\x83\xD5\x55\xE2" |
| 26997 | "\xE7\x9B\x2F\x92\xAF\xFD\x81\x56" |
| 26998 | "\x79\xFD\x3E\xF9\x46\xE0\x25\xD4" |
| 26999 | "\x38\xDE\xBC\x2C\xC4\x7A\x2A\x8F" |
| 27000 | "\x94\x4F\xD0\xAD\x9B\x37\x18\xD4" |
| 27001 | "\x0E\x4D\x0F\x02\x3A\xDC\x5A\xA2" |
| 27002 | "\x39\x25\x55\x20\x5A\xA6\x02\x9F" |
| 27003 | "\xE6\x77\x21\x77\xE5\x4B\x7B\x0B" |
| 27004 | "\x30\xF8\x5F\x33\x0F\x49\xCD\xFF" |
| 27005 | "\xF2\xE4\x35\xF9\xF0\x63\xC3\x7E" |
| 27006 | "\xF1\xA6\x73\xB4\xDF\xE7\xBB\x78" |
| 27007 | "\xFF\x21\xA9\xF3\xF3\xCF\x5D\xBA" |
| 27008 | "\xED\x87\x98\xAC\xFE\x48\x97\x6D" |
| 27009 | "\xA6\x7F\x69\x31\xB1\xC4\xFF\x14" |
| 27010 | "\xC6\x76\xD4\x10\xDD\xF6\x49\x2C" |
| 27011 | "\x9C\xC8\x6D\x76\xC0\x8F\x5F\x55" |
| 27012 | "\x2F\x3C\x8A\x30\xAA\xC3\x16\x55" |
| 27013 | "\xC6\xFC\x8D\x8B\xB9\xE5\x80\x6C" |
| 27014 | "\xC8\x7E\xBD\x65\x58\x36\xD5\xBC" |
| 27015 | "\xF0\x33\x52\x29\x70\xF9\x5C\xE9" |
| 27016 | "\xAC\x1F\xB5\x73\x56\x66\x54\xAF" |
| 27017 | "\x1B\x8F\x7D\xED\xAB\x03\xCE\xE3" |
| 27018 | "\xAE\x47\xB6\x69\x86\xE9\x01\x31" |
| 27019 | "\x83\x18\x3D\xF4\x74\x7B\xF9\x42" |
| 27020 | "\x4C\xFD\x75\x4A\x6D\xF0\x03\xA6" |
| 27021 | "\x2B\x20\x63\xDA\x49\x65\x5E\x8B" |
| 27022 | "\xC0\x19\xE3\x8D\xD9\xF3\xB0\x34" |
| 27023 | "\xD3\x52\xFC\x68\x00\x43\x1B\x37" |
| 27024 | "\x31\x93\x51\x1C\x63\x97\x70\xB0" |
| 27025 | "\x99\x78\x83\x13\xFD\xCF\x53\x81" |
| 27026 | "\x36\x46\xB5\x42\x52\x2F\x32\xEB" |
| 27027 | "\x4A\x3D\xF1\x8F\x1C\x54\x2E\xFC" |
| 27028 | "\x41\x75\x5A\x8C\x8E\x6F\xE7\x1A" |
| 27029 | "\xAE\xEF\x3E\x82\x12\x0B\x74\x72" |
| 27030 | "\xF8\xB2\xAA\x7A\xD6\xFF\xFA\x55" |
| 27031 | "\x33\x1A\xBB\xD3\xA2\x7E\x97\x66", |
| 27032 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27033 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27034 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 27035 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27036 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27037 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27038 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 27039 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27040 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27041 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27042 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27043 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27044 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27045 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27046 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27047 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27048 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27049 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27050 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27051 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27052 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27053 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27054 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27055 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27056 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27057 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27058 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27059 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27060 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27061 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27062 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27063 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27064 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27065 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27066 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27067 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27068 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27069 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27070 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27071 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27072 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27073 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27074 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27075 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27076 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27077 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27078 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27079 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27080 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27081 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27082 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27083 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27084 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27085 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27086 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27087 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 27088 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 27089 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 27090 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 27091 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 27092 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 27093 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 27094 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 27095 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 27096 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 27097 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 27098 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 27099 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 27100 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 27101 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 27102 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 27103 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 27104 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 27105 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 27106 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 27107 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 27108 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 27109 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 27110 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 27111 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 27112 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 27113 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 27114 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 27115 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 27116 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 27117 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 27118 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 27119 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 27120 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 27121 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 27122 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 27123 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 27124 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 27125 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 27126 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 27127 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 27128 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 27129 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 27130 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 27131 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 27132 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 27133 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 27134 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 27135 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 27136 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 27137 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 27138 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 27139 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 27140 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 27141 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 27142 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 27143 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 27144 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 27145 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 27146 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 27147 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 27148 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 27149 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 27150 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 27151 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 27152 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 27153 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 27154 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 27155 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 27156 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 27157 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 27158 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 27159 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 27160 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 27161 | .np = 3, |
| 27162 | .tap = { 1008 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27163 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27164 | }; |
| 27165 | |
| 27166 | static struct cipher_testvec camellia_cbc_enc_tv_template[] = { |
| 27167 | { |
| 27168 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 27169 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 27170 | .klen = 16, |
| 27171 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 27172 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 27173 | .input = "Single block msg", |
| 27174 | .ilen = 16, |
| 27175 | .result = "\xea\x32\x12\x76\x3b\x50\x10\xe7" |
| 27176 | "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", |
| 27177 | .rlen = 16, |
| 27178 | }, { |
| 27179 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 27180 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 27181 | .klen = 16, |
| 27182 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 27183 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 27184 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 27185 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 27186 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 27187 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 27188 | .ilen = 32, |
| 27189 | .result = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" |
| 27190 | "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" |
| 27191 | "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" |
| 27192 | "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", |
| 27193 | .rlen = 32, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27194 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27195 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27196 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 27197 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 27198 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 27199 | .klen = 32, |
| 27200 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 27201 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 27202 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27203 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 27204 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27205 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27206 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27207 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 27208 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27209 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27210 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27211 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27212 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27213 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27214 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27215 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27216 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27217 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27218 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27219 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27220 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27221 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27222 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27223 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27224 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27225 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27226 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27227 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27228 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27229 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27230 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27231 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27232 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27233 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27234 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27235 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27236 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27237 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27238 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27239 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27240 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27241 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27242 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27243 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27244 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27245 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27246 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27247 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27248 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27249 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27250 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27251 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27252 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27253 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27254 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27255 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27256 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 27257 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 27258 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 27259 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 27260 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 27261 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 27262 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 27263 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 27264 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 27265 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 27266 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 27267 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 27268 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 27269 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 27270 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 27271 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 27272 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 27273 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 27274 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 27275 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 27276 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 27277 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 27278 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 27279 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 27280 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 27281 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 27282 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 27283 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 27284 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 27285 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 27286 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 27287 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 27288 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 27289 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 27290 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 27291 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 27292 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 27293 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 27294 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 27295 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 27296 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 27297 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 27298 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 27299 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 27300 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 27301 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 27302 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 27303 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 27304 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 27305 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 27306 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 27307 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 27308 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 27309 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 27310 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 27311 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 27312 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 27313 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 27314 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 27315 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 27316 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 27317 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 27318 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 27319 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 27320 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 27321 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 27322 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 27323 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 27324 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 27325 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 27326 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 27327 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 27328 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27329 | .result = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77" |
| 27330 | "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40" |
| 27331 | "\x88\x39\xE3\xFD\x94\x4B\x25\x58" |
| 27332 | "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B" |
| 27333 | "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27334 | "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01" |
| 27335 | "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83" |
| 27336 | "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E" |
| 27337 | "\x56\xC8\x18\x3D\x79\x86\x97\xEF" |
| 27338 | "\x57\x0E\x63\xA1\xC1\x41\x48\xB8" |
| 27339 | "\x98\xB7\x51\x6D\x18\xF6\x19\x82" |
| 27340 | "\x37\x49\x88\xA4\xEF\x91\x21\x47" |
| 27341 | "\x03\x28\xEA\x42\xF4\xFB\x7A\x58" |
| 27342 | "\x28\x90\x77\x46\xD8\xD2\x35\x16" |
| 27343 | "\x44\xA9\x9E\x49\x52\x2A\xE4\x16" |
| 27344 | "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6" |
| 27345 | "\xCF\x76\x91\x89\x8A\x94\x39\xFA" |
| 27346 | "\x6B\x5F\x63\x53\x74\x43\x91\xF5" |
| 27347 | "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F" |
| 27348 | "\x9D\x32\x84\xEB\x56\x28\xD6\x06" |
| 27349 | "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62" |
| 27350 | "\x32\xCC\x86\xC8\x36\x67\x5E\x7E" |
| 27351 | "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF" |
| 27352 | "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A" |
| 27353 | "\x9B\x78\x62\x3B\x02\x28\x60\xB3" |
| 27354 | "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47" |
| 27355 | "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28" |
| 27356 | "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70" |
| 27357 | "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94" |
| 27358 | "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C" |
| 27359 | "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0" |
| 27360 | "\x5D\x51\x54\x9A\x53\xA0\xF9\x32" |
| 27361 | "\xBD\x31\x54\x14\x7B\x33\xEE\x17" |
| 27362 | "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2" |
| 27363 | "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2" |
| 27364 | "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E" |
| 27365 | "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4" |
| 27366 | "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE" |
| 27367 | "\x40\x78\x91\x95\xC4\x2F\xA3\xE8" |
| 27368 | "\x18\xC7\x07\xA6\xC8\xC0\x66\x33" |
| 27369 | "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3" |
| 27370 | "\x40\xF5\x40\x54\xF1\x84\x8C\xEA" |
| 27371 | "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8" |
| 27372 | "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4" |
| 27373 | "\xF8\x17\x99\x8D\x58\x2D\x72\x44" |
| 27374 | "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82" |
| 27375 | "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7" |
| 27376 | "\x68\xA3\xB8\xA5\x93\x74\x2E\x85" |
| 27377 | "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF" |
| 27378 | "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B" |
| 27379 | "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18" |
| 27380 | "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B" |
| 27381 | "\x38\xB8\x48\x36\x66\x4E\x20\x43" |
| 27382 | "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52" |
| 27383 | "\xD7\xDC\xB2\x67\x63\x14\x25\xCD" |
| 27384 | "\xB1\x13\x4B\xDE\x8C\x59\x21\x84" |
| 27385 | "\x81\x8D\x97\x23\x45\x33\x7C\xF3" |
| 27386 | "\xC5\xBC\x79\x95\xAA\x84\x68\x31" |
| 27387 | "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA" |
| 27388 | "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97" |
| 27389 | "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 27390 | "\x5F\x74\x8C\x86\x5B\x71\xD0\x20" |
| 27391 | "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5" |
| 27392 | "\x21\x41\x56\x72\x13\xE1\x86\x07" |
| 27393 | "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18" |
| 27394 | "\xFE\x94\x2D\x9F\xE0\x72\x18\x65" |
| 27395 | "\xB2\xA5\x63\x48\xB4\x13\x22\xF7" |
| 27396 | "\x25\xF1\x80\xA8\x7F\x54\x86\x7B" |
| 27397 | "\x39\xAE\x95\x0C\x09\x32\x22\x2D" |
| 27398 | "\x4D\x73\x39\x0C\x09\x2C\x7C\x10" |
| 27399 | "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F" |
| 27400 | "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14" |
| 27401 | "\x65\xEE\x93\x54\xD0\x66\x15\x3C" |
| 27402 | "\x4C\x68\xFD\x64\x0F\xF9\x10\x39" |
| 27403 | "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2" |
| 27404 | "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F" |
| 27405 | "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97" |
| 27406 | "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9" |
| 27407 | "\xBE\x31\x31\x96\x8B\x40\x18\x75" |
| 27408 | "\x11\x75\x14\x32\xA5\x2D\x1B\x6B" |
| 27409 | "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4" |
| 27410 | "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6" |
| 27411 | "\x71\xB0\x12\x57\x89\x0D\xC0\x2B" |
| 27412 | "\x9F\x12\x6A\x04\x67\xF1\x95\x31" |
| 27413 | "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC" |
| 27414 | "\x09\xB0\x43\x96\x4A\x64\x80\x40" |
| 27415 | "\xB9\x72\x19\xDD\x70\x42\xFA\xB1" |
| 27416 | "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C" |
| 27417 | "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB" |
| 27418 | "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6" |
| 27419 | "\x33\x0B\xF3\xD5\x01\x38\x74\xA4" |
| 27420 | "\x67\x1E\x75\x68\xC3\xAD\x76\xE9" |
| 27421 | "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A" |
| 27422 | "\x5F\xC9\x18\x94\x4B\x86\x66\xFC" |
| 27423 | "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9" |
| 27424 | "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8" |
| 27425 | "\x43\xBC\x76\x75\xBF\x6C\x05\xB3" |
| 27426 | "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61" |
| 27427 | "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0" |
| 27428 | "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12" |
| 27429 | "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E" |
| 27430 | "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3" |
| 27431 | "\x7B\xDC\xCE\x15\x97\x27\xB2\x65" |
| 27432 | "\xBC\x0E\x47\xAB\x55\x13\x53\xAB" |
| 27433 | "\x0E\x34\x55\x02\x5F\x27\xC5\x89" |
| 27434 | "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE" |
| 27435 | "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C" |
| 27436 | "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8" |
| 27437 | "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2" |
| 27438 | "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6" |
| 27439 | "\x8D\x4D\x83\x9A\xED\x29\x4E\x14" |
| 27440 | "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A" |
| 27441 | "\x72\x22\xD5\x92\x38\xF1\xA1\x86" |
| 27442 | "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3" |
| 27443 | "\x80\x56\xC3\xD7\x65\xE1\xB3\x86" |
| 27444 | "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06" |
| 27445 | "\x01\xED\xF8\x29\x91\x19\x5C\x9A" |
| 27446 | "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F" |
| 27447 | "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72" |
| 27448 | "\x80\xE7\x29\xDC\x23\x55\x98\x54" |
| 27449 | "\xB1\xFF\x3E\x95\x56\xA8\x78\x78" |
| 27450 | "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93" |
| 27451 | "\x30\x6E\x7E\x51\xBB\x42\x5F\x03" |
| 27452 | "\x43\x94\x23\x7E\xEE\xF0\xA5\x79" |
| 27453 | "\x55\x01\xD4\x58\xB2\xF2\x85\x49" |
| 27454 | "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C", |
| 27455 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 27456 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 27457 | .np = 3, |
| 27458 | .tap = { 1008 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27459 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 27460 | }; |
| 27461 | |
| 27462 | static struct cipher_testvec camellia_cbc_dec_tv_template[] = { |
| 27463 | { |
| 27464 | .key = "\x06\xa9\x21\x40\x36\xb8\xa1\x5b" |
| 27465 | "\x51\x2e\x03\xd5\x34\x12\x00\x06", |
| 27466 | .klen = 16, |
| 27467 | .iv = "\x3d\xaf\xba\x42\x9d\x9e\xb4\x30" |
| 27468 | "\xb4\x22\xda\x80\x2c\x9f\xac\x41", |
| 27469 | .input = "\xea\x32\x12\x76\x3b\x50\x10\xe7" |
| 27470 | "\x18\xf6\xfd\x5d\xf6\x8f\x13\x51", |
| 27471 | .ilen = 16, |
| 27472 | .result = "Single block msg", |
| 27473 | .rlen = 16, |
| 27474 | }, { |
| 27475 | .key = "\xc2\x86\x69\x6d\x88\x7c\x9a\xa0" |
| 27476 | "\x61\x1b\xbb\x3e\x20\x25\xa4\x5a", |
| 27477 | .klen = 16, |
| 27478 | .iv = "\x56\x2e\x17\x99\x6d\x09\x3d\x28" |
| 27479 | "\xdd\xb3\xba\x69\x5a\x2e\x6f\x58", |
| 27480 | .input = "\xa5\xdf\x6e\x50\xda\x70\x6c\x01" |
| 27481 | "\x4a\xab\xf3\xf2\xd6\xfc\x6c\xfd" |
| 27482 | "\x19\xb4\x3e\x57\x1c\x02\x5e\xa0" |
| 27483 | "\x15\x78\xe0\x5e\xf2\xcb\x87\x16", |
| 27484 | .ilen = 32, |
| 27485 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 27486 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 27487 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 27488 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 27489 | .rlen = 32, |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27490 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27491 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27492 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 27493 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 27494 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 27495 | .klen = 32, |
| 27496 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 27497 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 27498 | .input = "\xCD\x3E\x2A\x3B\x3E\x94\xC5\x77" |
| 27499 | "\xBA\xBB\x5B\xB1\xDE\x7B\xA4\x40" |
| 27500 | "\x88\x39\xE3\xFD\x94\x4B\x25\x58" |
| 27501 | "\xE1\x4B\xC4\x18\x7A\xFD\x17\x2B" |
| 27502 | "\xB9\xF9\xC2\x27\x6A\xB6\x31\x27" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27503 | "\xA6\xAD\xEF\xE5\x5D\xE4\x02\x01" |
| 27504 | "\x56\x2E\x10\xC2\x2C\xFF\xC6\x83" |
| 27505 | "\xB5\xDC\x4F\x63\xAD\x0E\x63\x5E" |
| 27506 | "\x56\xC8\x18\x3D\x79\x86\x97\xEF" |
| 27507 | "\x57\x0E\x63\xA1\xC1\x41\x48\xB8" |
| 27508 | "\x98\xB7\x51\x6D\x18\xF6\x19\x82" |
| 27509 | "\x37\x49\x88\xA4\xEF\x91\x21\x47" |
| 27510 | "\x03\x28\xEA\x42\xF4\xFB\x7A\x58" |
| 27511 | "\x28\x90\x77\x46\xD8\xD2\x35\x16" |
| 27512 | "\x44\xA9\x9E\x49\x52\x2A\xE4\x16" |
| 27513 | "\x5D\xF7\x65\xEB\x0F\xC9\x29\xE6" |
| 27514 | "\xCF\x76\x91\x89\x8A\x94\x39\xFA" |
| 27515 | "\x6B\x5F\x63\x53\x74\x43\x91\xF5" |
| 27516 | "\x3F\xBC\x88\x53\xB2\x1A\x02\x3F" |
| 27517 | "\x9D\x32\x84\xEB\x56\x28\xD6\x06" |
| 27518 | "\xD5\xB2\x20\xA9\xFC\xC3\x76\x62" |
| 27519 | "\x32\xCC\x86\xC8\x36\x67\x5E\x7E" |
| 27520 | "\xA4\xAA\x15\x63\x6B\xA9\x86\xAF" |
| 27521 | "\x1A\x52\x82\x36\x5F\xF4\x3F\x7A" |
| 27522 | "\x9B\x78\x62\x3B\x02\x28\x60\xB3" |
| 27523 | "\xBA\x82\xB1\xDD\xC9\x60\x8F\x47" |
| 27524 | "\xF1\x6B\xFE\xE5\x39\x34\xA0\x28" |
| 27525 | "\xA4\xB3\xC9\x7E\xED\x28\x8D\x70" |
| 27526 | "\xB2\x1D\xFD\xC6\x00\xCF\x1A\x94" |
| 27527 | "\x28\xF8\xC1\x34\xB7\x58\xA5\x6C" |
| 27528 | "\x1A\x9D\xE4\xE4\xF6\xB9\xB4\xB0" |
| 27529 | "\x5D\x51\x54\x9A\x53\xA0\xF9\x32" |
| 27530 | "\xBD\x31\x54\x14\x7B\x33\xEE\x17" |
| 27531 | "\xD3\xC7\x1F\x48\xBF\x0B\x22\xA2" |
| 27532 | "\x7D\x0C\xDF\xD0\x2E\x98\xFA\xD2" |
| 27533 | "\xFA\xCF\x24\x1D\x99\x9B\xD0\x7E" |
| 27534 | "\xF4\x4F\x88\xFF\x45\x99\x4A\xF4" |
| 27535 | "\xF2\x0A\x5B\x3B\x21\xAB\x92\xAE" |
| 27536 | "\x40\x78\x91\x95\xC4\x2F\xA3\xE8" |
| 27537 | "\x18\xC7\x07\xA6\xC8\xC0\x66\x33" |
| 27538 | "\x35\xC0\xB4\xA0\xF8\xEE\x1E\xF3" |
| 27539 | "\x40\xF5\x40\x54\xF1\x84\x8C\xEA" |
| 27540 | "\x27\x38\x1F\xF8\x77\xC7\xDF\xD8" |
| 27541 | "\x1D\xE2\xD9\x59\x40\x4F\x59\xD4" |
| 27542 | "\xF8\x17\x99\x8D\x58\x2D\x72\x44" |
| 27543 | "\x9D\x1D\x91\x64\xD6\x3F\x0A\x82" |
| 27544 | "\xC7\x57\x3D\xEF\xD3\x41\xFA\xA7" |
| 27545 | "\x68\xA3\xB8\xA5\x93\x74\x2E\x85" |
| 27546 | "\x4C\x9D\x69\x59\xCE\x15\xAE\xBF" |
| 27547 | "\x9C\x8F\x14\x64\x5D\x7F\xCF\x0B" |
| 27548 | "\xCE\x43\x5D\x28\xC0\x2F\xFB\x18" |
| 27549 | "\x79\x9A\xFC\x43\x16\x7C\x6B\x7B" |
| 27550 | "\x38\xB8\x48\x36\x66\x4E\x20\x43" |
| 27551 | "\xBA\x76\x13\x9A\xC3\xF2\xEB\x52" |
| 27552 | "\xD7\xDC\xB2\x67\x63\x14\x25\xCD" |
| 27553 | "\xB1\x13\x4B\xDE\x8C\x59\x21\x84" |
| 27554 | "\x81\x8D\x97\x23\x45\x33\x7C\xF3" |
| 27555 | "\xC5\xBC\x79\x95\xAA\x84\x68\x31" |
| 27556 | "\x2D\x1A\x68\xFE\xEC\x92\x94\xDA" |
| 27557 | "\x94\x2A\x6F\xD6\xFE\xE5\x76\x97" |
| 27558 | "\xF4\x6E\xEE\xCB\x2B\x95\x4E\x36" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 27559 | "\x5F\x74\x8C\x86\x5B\x71\xD0\x20" |
| 27560 | "\x78\x1A\x7F\x18\x8C\xD9\xCD\xF5" |
| 27561 | "\x21\x41\x56\x72\x13\xE1\x86\x07" |
| 27562 | "\x07\x26\xF3\x4F\x7B\xEA\xB5\x18" |
| 27563 | "\xFE\x94\x2D\x9F\xE0\x72\x18\x65" |
| 27564 | "\xB2\xA5\x63\x48\xB4\x13\x22\xF7" |
| 27565 | "\x25\xF1\x80\xA8\x7F\x54\x86\x7B" |
| 27566 | "\x39\xAE\x95\x0C\x09\x32\x22\x2D" |
| 27567 | "\x4D\x73\x39\x0C\x09\x2C\x7C\x10" |
| 27568 | "\xD0\x4B\x53\xF6\x90\xC5\x99\x2F" |
| 27569 | "\x15\xE1\x7F\xC6\xC5\x7A\x52\x14" |
| 27570 | "\x65\xEE\x93\x54\xD0\x66\x15\x3C" |
| 27571 | "\x4C\x68\xFD\x64\x0F\xF9\x10\x39" |
| 27572 | "\x46\x7A\xDD\x97\x20\xEE\xC7\xD2" |
| 27573 | "\x98\x4A\xB6\xE6\xF5\xA8\x1F\x4F" |
| 27574 | "\xDB\xAB\x6D\xD5\x9B\x34\x16\x97" |
| 27575 | "\x2F\x64\xE5\x37\xEF\x0E\xA1\xE9" |
| 27576 | "\xBE\x31\x31\x96\x8B\x40\x18\x75" |
| 27577 | "\x11\x75\x14\x32\xA5\x2D\x1B\x6B" |
| 27578 | "\xDB\x59\xEB\xFA\x3D\x8E\x7C\xC4" |
| 27579 | "\xDE\x68\xC8\x9F\xC9\x99\xE3\xC6" |
| 27580 | "\x71\xB0\x12\x57\x89\x0D\xC0\x2B" |
| 27581 | "\x9F\x12\x6A\x04\x67\xF1\x95\x31" |
| 27582 | "\x59\xFD\x84\x95\x2C\x9C\x5B\xEC" |
| 27583 | "\x09\xB0\x43\x96\x4A\x64\x80\x40" |
| 27584 | "\xB9\x72\x19\xDD\x70\x42\xFA\xB1" |
| 27585 | "\x4A\x2C\x0C\x0A\x60\x6E\xE3\x7C" |
| 27586 | "\x37\x5A\xBE\xA4\x62\xCF\x29\xAB" |
| 27587 | "\x7F\x4D\xA6\xB3\xE2\xB6\x64\xC6" |
| 27588 | "\x33\x0B\xF3\xD5\x01\x38\x74\xA4" |
| 27589 | "\x67\x1E\x75\x68\xC3\xAD\x76\xE9" |
| 27590 | "\xE9\xBC\xF0\xEB\xD8\xFD\x31\x8A" |
| 27591 | "\x5F\xC9\x18\x94\x4B\x86\x66\xFC" |
| 27592 | "\xBD\x0B\x3D\xB3\x9F\xFA\x1F\xD9" |
| 27593 | "\x78\xC4\xE3\x24\x1C\x67\xA2\xF8" |
| 27594 | "\x43\xBC\x76\x75\xBF\x6C\x05\xB3" |
| 27595 | "\x32\xE8\x7C\x80\xDB\xC7\xB6\x61" |
| 27596 | "\x1A\x3E\x2B\xA7\x25\xED\x8F\xA0" |
| 27597 | "\x00\x4B\xF8\x90\xCA\xD8\xFB\x12" |
| 27598 | "\xAC\x1F\x18\xE9\xD2\x5E\xA2\x8E" |
| 27599 | "\xE4\x84\x6B\x9D\xEB\x1E\x6B\xA3" |
| 27600 | "\x7B\xDC\xCE\x15\x97\x27\xB2\x65" |
| 27601 | "\xBC\x0E\x47\xAB\x55\x13\x53\xAB" |
| 27602 | "\x0E\x34\x55\x02\x5F\x27\xC5\x89" |
| 27603 | "\xDF\xC5\x70\xC4\xDD\x76\x82\xEE" |
| 27604 | "\x68\xA6\x09\xB0\xE5\x5E\xF1\x0C" |
| 27605 | "\xE3\xF3\x09\x9B\xFE\x65\x4B\xB8" |
| 27606 | "\x30\xEC\xD5\x7C\x6A\xEC\x1D\xD2" |
| 27607 | "\x93\xB7\xA1\x1A\x02\xD4\xC0\xD6" |
| 27608 | "\x8D\x4D\x83\x9A\xED\x29\x4E\x14" |
| 27609 | "\x86\xD5\x3C\x1A\xD5\xB9\x0A\x6A" |
| 27610 | "\x72\x22\xD5\x92\x38\xF1\xA1\x86" |
| 27611 | "\xB2\x41\x51\xCA\x4E\xAB\x8F\xD3" |
| 27612 | "\x80\x56\xC3\xD7\x65\xE1\xB3\x86" |
| 27613 | "\xCB\xCE\x98\xA1\xD4\x59\x1C\x06" |
| 27614 | "\x01\xED\xF8\x29\x91\x19\x5C\x9A" |
| 27615 | "\xEE\x28\x1B\x48\xD7\x32\xEF\x9F" |
| 27616 | "\x6C\x2B\x66\x4E\x78\xD5\x8B\x72" |
| 27617 | "\x80\xE7\x29\xDC\x23\x55\x98\x54" |
| 27618 | "\xB1\xFF\x3E\x95\x56\xA8\x78\x78" |
| 27619 | "\xEF\xC4\xA5\x11\x2D\x2B\xD8\x93" |
| 27620 | "\x30\x6E\x7E\x51\xBB\x42\x5F\x03" |
| 27621 | "\x43\x94\x23\x7E\xEE\xF0\xA5\x79" |
| 27622 | "\x55\x01\xD4\x58\xB2\xF2\x85\x49" |
| 27623 | "\x70\xC5\xB9\x0B\x3B\x7A\x6E\x6C", |
| 27624 | .ilen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27625 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27626 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 27627 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27628 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27629 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27630 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 27631 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27632 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27633 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27634 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27635 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27636 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27637 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27638 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27639 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27640 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27641 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27642 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27643 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27644 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27645 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27646 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27647 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27648 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27649 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27650 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27651 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27652 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27653 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27654 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27655 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27656 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27657 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27658 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27659 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27660 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27661 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27662 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27663 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27664 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27665 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27666 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27667 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27668 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27669 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27670 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27671 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27672 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27673 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27674 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27675 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27676 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27677 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27678 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27679 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 27680 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 27681 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 27682 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 27683 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 27684 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 27685 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 27686 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 27687 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 27688 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 27689 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 27690 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 27691 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 27692 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 27693 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 27694 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 27695 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 27696 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 27697 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 27698 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 27699 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 27700 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 27701 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 27702 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 27703 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 27704 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 27705 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 27706 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 27707 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 27708 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 27709 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 27710 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 27711 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 27712 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 27713 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 27714 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 27715 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 27716 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 27717 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 27718 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 27719 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 27720 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 27721 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 27722 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 27723 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 27724 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 27725 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 27726 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 27727 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 27728 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 27729 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 27730 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 27731 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 27732 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 27733 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 27734 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 27735 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 27736 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 27737 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 27738 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 27739 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 27740 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 27741 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 27742 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 27743 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 27744 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 27745 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 27746 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 27747 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 27748 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 27749 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 27750 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 27751 | .rlen = 1008, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 27752 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 27753 | .np = 3, |
| 27754 | .tap = { 1008 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27755 | }, |
| 27756 | }; |
| 27757 | |
| 27758 | static struct cipher_testvec camellia_ctr_enc_tv_template[] = { |
| 27759 | { /* Generated with Crypto++ */ |
| 27760 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27761 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 27762 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 27763 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 27764 | .klen = 32, |
| 27765 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 27766 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 27767 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27768 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 27769 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27770 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27771 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27772 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 27773 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27774 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27775 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27776 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27777 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27778 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27779 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27780 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27781 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27782 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27783 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27784 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27785 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27786 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27787 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27788 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27789 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27790 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27791 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27792 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27793 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27794 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27795 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27796 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27797 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27798 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27799 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27800 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27801 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27802 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27803 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27804 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27805 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27806 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27807 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27808 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27809 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27810 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27811 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27812 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27813 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27814 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27815 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27816 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27817 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27818 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27819 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27820 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27821 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 27822 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 27823 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 27824 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 27825 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 27826 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 27827 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 27828 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 27829 | .ilen = 496, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27830 | .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 27831 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 27832 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 27833 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 27834 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27835 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
| 27836 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 27837 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 27838 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 27839 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 27840 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 27841 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 27842 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 27843 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 27844 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 27845 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 27846 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 27847 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 27848 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 27849 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 27850 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 27851 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 27852 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 27853 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 27854 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 27855 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 27856 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 27857 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 27858 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 27859 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 27860 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 27861 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 27862 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 27863 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 27864 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 27865 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 27866 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 27867 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 27868 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 27869 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 27870 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 27871 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 27872 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 27873 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 27874 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 27875 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 27876 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 27877 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 27878 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 27879 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 27880 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 27881 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 27882 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 27883 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 27884 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 27885 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 27886 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 27887 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 27888 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 27889 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 27890 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 27891 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D", |
| 27892 | .rlen = 496, |
| 27893 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 27894 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 27895 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 27896 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 27897 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 27898 | .klen = 32, |
| 27899 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 27900 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 27901 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 27902 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 27903 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 27904 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 27905 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 27906 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 27907 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 27908 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 27909 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 27910 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 27911 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 27912 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 27913 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 27914 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 27915 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 27916 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 27917 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 27918 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 27919 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 27920 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 27921 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 27922 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 27923 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 27924 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 27925 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 27926 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 27927 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 27928 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 27929 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 27930 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 27931 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 27932 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 27933 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 27934 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 27935 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 27936 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 27937 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 27938 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 27939 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 27940 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 27941 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 27942 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 27943 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 27944 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 27945 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 27946 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 27947 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 27948 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 27949 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 27950 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 27951 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 27952 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 27953 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 27954 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 27955 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 27956 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 27957 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 27958 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 27959 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 27960 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 27961 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 27962 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 27963 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 27964 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 27965 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 27966 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 27967 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 27968 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 27969 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 27970 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 27971 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 27972 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 27973 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 27974 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 27975 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 27976 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 27977 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 27978 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 27979 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 27980 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 27981 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 27982 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 27983 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 27984 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 27985 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 27986 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 27987 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 27988 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 27989 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 27990 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 27991 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 27992 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 27993 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 27994 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 27995 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 27996 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 27997 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 27998 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 27999 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 28000 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 28001 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 28002 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 28003 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 28004 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 28005 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 28006 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 28007 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 28008 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 28009 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 28010 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 28011 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 28012 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 28013 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 28014 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 28015 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 28016 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 28017 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 28018 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 28019 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 28020 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 28021 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 28022 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 28023 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 28024 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 28025 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 28026 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D" |
| 28027 | "\xE4\x7B\x12", |
| 28028 | .ilen = 1011, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 28029 | .result = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 28030 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 28031 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 28032 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 28033 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 28034 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 28035 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 28036 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 28037 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 28038 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 28039 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 28040 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 28041 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 28042 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 28043 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 28044 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 28045 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 28046 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 28047 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 28048 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 28049 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 28050 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 28051 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 28052 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 28053 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 28054 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 28055 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 28056 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 28057 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 28058 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 28059 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 28060 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 28061 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 28062 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 28063 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 28064 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 28065 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 28066 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 28067 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 28068 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 28069 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 28070 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 28071 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 28072 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 28073 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 28074 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 28075 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 28076 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 28077 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 28078 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 28079 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 28080 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 28081 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 28082 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 28083 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 28084 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 28085 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 28086 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 28087 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 28088 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 28089 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 28090 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 28091 | "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90" |
| 28092 | "\xE5\x41\x4A\xE2\x3C\x45\x29\x35" |
| 28093 | "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32" |
| 28094 | "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7" |
| 28095 | "\x1D\x8C\x02\x72\x68\x09\xE9\xB6" |
| 28096 | "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4" |
| 28097 | "\x93\x74\xA4\xCE\x20\x23\xBF\x48" |
| 28098 | "\xA5\xDE\x1B\xFA\x40\x69\x31\x98" |
| 28099 | "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5" |
| 28100 | "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA" |
| 28101 | "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4" |
| 28102 | "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F" |
| 28103 | "\xBA\x83\x34\x3C\x42\xCC\x7D\x28" |
| 28104 | "\x29\x63\x4F\xD8\x02\x17\xC5\x07" |
| 28105 | "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09" |
| 28106 | "\x81\x45\x18\xED\xE4\xCB\x42\x3B" |
| 28107 | "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD" |
| 28108 | "\x92\xE5\x02\x97\x96\xCE\xAD\xEC" |
| 28109 | "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC" |
| 28110 | "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E" |
| 28111 | "\xCC\xF8\x5F\xDD\x65\x50\x99\x69" |
| 28112 | "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F" |
| 28113 | "\x05\x93\xB2\xE6\x59\xC8\x28\xFE" |
| 28114 | "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F" |
| 28115 | "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09" |
| 28116 | "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C" |
| 28117 | "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74" |
| 28118 | "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8" |
| 28119 | "\x81\xF5\xD5\x8A\x04\x23\x51\xAC" |
| 28120 | "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B" |
| 28121 | "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA" |
| 28122 | "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB" |
| 28123 | "\x41\x1A\x67\xA6\x40\x82\x70\x8C" |
| 28124 | "\x19\x79\x08\xA4\x51\x20\x7D\xC9" |
| 28125 | "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D" |
| 28126 | "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08" |
| 28127 | "\x00\x70\x12\x56\x56\x50\xAD\x14" |
| 28128 | "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48" |
| 28129 | "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E" |
| 28130 | "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D" |
| 28131 | "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85" |
| 28132 | "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64" |
| 28133 | "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F" |
| 28134 | "\x91\x76\xE8\x15\x66\x34\x9F\xF6" |
| 28135 | "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1" |
| 28136 | "\x38\x46\x47\xC7\x9B\xCA\xE9\x42" |
| 28137 | "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3" |
| 28138 | "\x16\xA0\xED\x42\xBE\xB5\x06\x19" |
| 28139 | "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E" |
| 28140 | "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31" |
| 28141 | "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC" |
| 28142 | "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8" |
| 28143 | "\x94\x5C\x5E\x37\x18\xAD\xED\x8B" |
| 28144 | "\x44\x86\xCA\x5E\x07\xB7\x70\x8D" |
| 28145 | "\x40\x48\x19\x73\x7C\x78\x64\x0B" |
| 28146 | "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1" |
| 28147 | "\x6B\x2C\x84\x10\x45\x42\x2E\xC3" |
| 28148 | "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46" |
| 28149 | "\x74\x28\x9D\x05\x30\x20\x62\x41" |
| 28150 | "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26" |
| 28151 | "\xDF\x58\x51\xED\xFA\xDC\x87\x79" |
| 28152 | "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA" |
| 28153 | "\x45\xE3\x35\x0D\x69\x91\x54\x1C" |
| 28154 | "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C" |
| 28155 | "\xF1\x6B\xD9", |
| 28156 | .rlen = 1011, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 28157 | .also_non_np = 1, |
| 28158 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 28159 | .tap = { 1011 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 28160 | }, { /* Generated with Crypto++ */ |
| 28161 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 28162 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 28163 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 28164 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 28165 | .klen = 32, |
| 28166 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 28167 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 28168 | .input = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 28169 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 28170 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 28171 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 28172 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 28173 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 28174 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 28175 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 28176 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 28177 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 28178 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 28179 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 28180 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 28181 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 28182 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 28183 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 28184 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 28185 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 28186 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 28187 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 28188 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 28189 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 28190 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 28191 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 28192 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 28193 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 28194 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 28195 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 28196 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 28197 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 28198 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 28199 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 28200 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 28201 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 28202 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 28203 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 28204 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 28205 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 28206 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 28207 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 28208 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 28209 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 28210 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 28211 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 28212 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 28213 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 28214 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 28215 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 28216 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 28217 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 28218 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 28219 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 28220 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 28221 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 28222 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 28223 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 28224 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 28225 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 28226 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 28227 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 28228 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 28229 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 28230 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 28231 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 28232 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 28233 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 28234 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 28235 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 28236 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 28237 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 28238 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 28239 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 28240 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 28241 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 28242 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 28243 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 28244 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 28245 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 28246 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 28247 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 28248 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 28249 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 28250 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 28251 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 28252 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 28253 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 28254 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 28255 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 28256 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 28257 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 28258 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 28259 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 28260 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 28261 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 28262 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 28263 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 28264 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 28265 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 28266 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 28267 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 28268 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 28269 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 28270 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 28271 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 28272 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 28273 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 28274 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 28275 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 28276 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 28277 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 28278 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 28279 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 28280 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 28281 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 28282 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 28283 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 28284 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 28285 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 28286 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 28287 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 28288 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 28289 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 28290 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 28291 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 28292 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 28293 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 28294 | .ilen = 1008, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 28295 | .result = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9" |
| 28296 | "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E" |
| 28297 | "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB" |
| 28298 | "\xF7\xC4\x27\x04\x51\x87\xD7\x6F" |
| 28299 | "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4" |
| 28300 | "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48" |
| 28301 | "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A" |
| 28302 | "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B" |
| 28303 | "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07" |
| 28304 | "\x2C\x56\x07\x5E\x37\x30\x60\xA9" |
| 28305 | "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64" |
| 28306 | "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43" |
| 28307 | "\x23\x35\x95\x91\x80\x8A\xC7\xCF" |
| 28308 | "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B" |
| 28309 | "\x05\x19\x48\xE2\x62\xBA\x4F\xF2" |
| 28310 | "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10" |
| 28311 | "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD" |
| 28312 | "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96" |
| 28313 | "\xD9\x0F\x90\x5A\x78\x76\x4D\x77" |
| 28314 | "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD" |
| 28315 | "\xE4\xE8\x20\x2D\x15\x0A\x63\x49" |
| 28316 | "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78" |
| 28317 | "\x28\x07\x09\x1B\x03\x94\x1D\x4B" |
| 28318 | "\x82\x28\x1E\x1D\x95\xBA\xAC\x85" |
| 28319 | "\x71\x6E\x3C\x18\x4B\x77\x74\x79" |
| 28320 | "\xBF\x67\x0A\x53\x3C\x94\xD9\x60" |
| 28321 | "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D" |
| 28322 | "\x27\xD5\x47\xF9\xC3\x4B\x27\x29" |
| 28323 | "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC" |
| 28324 | "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B" |
| 28325 | "\x70\x1C\x84\x81\x72\x4D\xB4\x98" |
| 28326 | "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2" |
| 28327 | "\xFF\xF5\x71\x07\xCD\x90\x23\x13" |
| 28328 | "\x19\xD7\x79\x36\x6C\x9D\x55\x8B" |
| 28329 | "\x93\x78\x86\x05\x69\x46\xD0\xC5" |
| 28330 | "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE" |
| 28331 | "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C" |
| 28332 | "\x83\x4B\xD8\x75\x9C\x18\x04\x7B" |
| 28333 | "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B" |
| 28334 | "\xCC\x01\x45\x90\xA6\x43\x05\x0C" |
| 28335 | "\x6C\x4F\x62\x77\x57\x97\x9F\xEE" |
| 28336 | "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E" |
| 28337 | "\x2C\x43\x98\xFB\x13\x65\x73\xE4" |
| 28338 | "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99" |
| 28339 | "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32" |
| 28340 | "\x17\xC2\xCC\x20\xA1\x19\x26\xAA" |
| 28341 | "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF" |
| 28342 | "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56" |
| 28343 | "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24" |
| 28344 | "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54" |
| 28345 | "\x10\x7F\x50\xDE\x69\x77\xD5\x37" |
| 28346 | "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53" |
| 28347 | "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57" |
| 28348 | "\x3A\xE6\x75\xFE\x89\x00\x6E\x48" |
| 28349 | "\xFB\x99\x17\x2C\xF6\x64\x40\x95" |
| 28350 | "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD" |
| 28351 | "\x52\x05\x24\x34\xF9\x0E\xC8\x64" |
| 28352 | "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE" |
| 28353 | "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22" |
| 28354 | "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E" |
| 28355 | "\x12\xA8\x01\x64\x16\x0B\x26\x5A" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 28356 | "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C" |
| 28357 | "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6" |
| 28358 | "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3" |
| 28359 | "\x3F\x23\x69\x63\x56\x96\x45\xD6" |
| 28360 | "\x74\x23\x1D\x5C\x63\xCC\xD8\x78" |
| 28361 | "\x16\xE2\x9C\xD2\x80\x02\xF2\x28" |
| 28362 | "\x69\x2F\xC4\xA8\x15\x15\x24\x3B" |
| 28363 | "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1" |
| 28364 | "\x03\x58\x1B\x33\x77\x74\x1F\xB4" |
| 28365 | "\x07\x86\xF2\x21\xB7\x41\xAE\xBF" |
| 28366 | "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4" |
| 28367 | "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D" |
| 28368 | "\xF8\x04\xBB\x6D\x62\x33\x87\x26" |
| 28369 | "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09" |
| 28370 | "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E" |
| 28371 | "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A" |
| 28372 | "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF" |
| 28373 | "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C" |
| 28374 | "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11" |
| 28375 | "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD" |
| 28376 | "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB" |
| 28377 | "\xC3\x14\x84\x72\xFD\x41\xDC\xBD" |
| 28378 | "\x75\xBE\xA8\xE5\x16\x48\x64\x39" |
| 28379 | "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D" |
| 28380 | "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D" |
| 28381 | "\x0B\x29\x10\x15\x0E\x13\x3B\xAC" |
| 28382 | "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02" |
| 28383 | "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21" |
| 28384 | "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0" |
| 28385 | "\xF8\x09\xAF\xE4\x31\x26\x92\x2F" |
| 28386 | "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34" |
| 28387 | "\xBE\x50\xB1\x02\x22\x96\xE3\x40" |
| 28388 | "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0" |
| 28389 | "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B" |
| 28390 | "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36" |
| 28391 | "\xD2\x0A\x32\x06\x97\x34\xB9\xF4" |
| 28392 | "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A" |
| 28393 | "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D" |
| 28394 | "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E" |
| 28395 | "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7" |
| 28396 | "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E" |
| 28397 | "\x2C\x07\xD2\x43\x5F\x57\x93\xCA" |
| 28398 | "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1" |
| 28399 | "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E" |
| 28400 | "\x68\xC6\x47\xB9\x76\xCC\x65\x5F" |
| 28401 | "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37" |
| 28402 | "\x5F\x41\xED\x64\x6C\xAD\x5F\xED" |
| 28403 | "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F" |
| 28404 | "\xC2\xC7\xED\x18\x43\xE1\x20\x86" |
| 28405 | "\x5D\xBC\x30\x70\x22\xA1\xDC\x53" |
| 28406 | "\x10\x3A\x8D\x47\x82\xCD\x7F\x59" |
| 28407 | "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07" |
| 28408 | "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5" |
| 28409 | "\xED\x47\x83\xBC\x5F\x62\x84\xDA" |
| 28410 | "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8" |
| 28411 | "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A" |
| 28412 | "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6" |
| 28413 | "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE" |
| 28414 | "\x37\x9E\x29\xF9\x2A\x18\x73\x0D" |
| 28415 | "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA" |
| 28416 | "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56" |
| 28417 | "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C" |
| 28418 | "\xC5\x9B\x03\x70\x29\x2A\x49\x09" |
| 28419 | "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71" |
| 28420 | "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36", |
| 28421 | .rlen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 28422 | }, |
| 28423 | }; |
| 28424 | |
| 28425 | static struct cipher_testvec camellia_ctr_dec_tv_template[] = { |
| 28426 | { /* Generated with Crypto++ */ |
| 28427 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 28428 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 28429 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 28430 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 28431 | .klen = 32, |
| 28432 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 28433 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 28434 | .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 28435 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 28436 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 28437 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 28438 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 28439 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
| 28440 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 28441 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 28442 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 28443 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 28444 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 28445 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 28446 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 28447 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 28448 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 28449 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 28450 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 28451 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 28452 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 28453 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 28454 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 28455 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 28456 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 28457 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 28458 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 28459 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 28460 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 28461 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 28462 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 28463 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 28464 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 28465 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 28466 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 28467 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 28468 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 28469 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 28470 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 28471 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 28472 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 28473 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 28474 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 28475 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 28476 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 28477 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 28478 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 28479 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 28480 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 28481 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 28482 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 28483 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 28484 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 28485 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 28486 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 28487 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 28488 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 28489 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 28490 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 28491 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 28492 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 28493 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 28494 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 28495 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D", |
| 28496 | .ilen = 496, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 28497 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 28498 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 28499 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 28500 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 28501 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 28502 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 28503 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 28504 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 28505 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 28506 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 28507 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 28508 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 28509 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 28510 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 28511 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 28512 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 28513 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 28514 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 28515 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 28516 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 28517 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 28518 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 28519 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 28520 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 28521 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 28522 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 28523 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 28524 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 28525 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 28526 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 28527 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 28528 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 28529 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 28530 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 28531 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 28532 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 28533 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 28534 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 28535 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 28536 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 28537 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 28538 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 28539 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 28540 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 28541 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 28542 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 28543 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 28544 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 28545 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 28546 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 28547 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 28548 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 28549 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 28550 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 28551 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 28552 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 28553 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 28554 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 28555 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 28556 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 28557 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 28558 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7", |
| 28559 | .rlen = 496, |
| 28560 | }, { /* Generated with Crypto++ */ |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 28561 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 28562 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 28563 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 28564 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 28565 | .klen = 32, |
| 28566 | .iv = "\xE2\x24\x89\xEE\x53\xB8\x1D\x5F" |
| 28567 | "\xC4\x29\x8E\xF3\x35\x9A\xFF\x64", |
| 28568 | .input = "\xF3\x06\x3A\x84\xCD\xBA\x8E\x11" |
| 28569 | "\xB7\x74\x6F\x5C\x97\xFB\x36\xFE" |
| 28570 | "\xDE\x71\x58\xD4\x15\xD1\xC1\xA4" |
| 28571 | "\xC9\x28\x74\xA6\x6B\xC7\x95\xA6" |
| 28572 | "\x6C\x77\xF7\x2F\xDF\xC7\xBB\x85" |
| 28573 | "\x60\xFC\xE8\x94\xE8\xB5\x09\x2C" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 28574 | "\x1E\x43\xEF\x6C\xE9\x98\xC5\xA0" |
| 28575 | "\x7B\x13\xE5\x7F\xF8\x49\x9A\x8C" |
| 28576 | "\xE6\x7B\x08\xC3\x32\x66\x55\x4E" |
| 28577 | "\xA5\x44\x1D\x2C\x18\xC7\x29\x1F" |
| 28578 | "\x61\x28\x4A\xE3\xCD\xE5\x47\xB2" |
| 28579 | "\x82\x2F\x66\x83\x91\x51\xAE\xD7" |
| 28580 | "\x1C\x91\x3C\x57\xE3\x1D\x5A\xC9" |
| 28581 | "\xFD\xC5\x58\x58\xEF\xCC\x33\xC9" |
| 28582 | "\x0F\xEA\x26\x32\xD1\x15\x19\x2D" |
| 28583 | "\x25\xB4\x7F\xB0\xDF\xFB\x88\x60" |
| 28584 | "\x4E\x4D\x06\x7D\xCC\x1F\xED\x3B" |
| 28585 | "\x68\x84\xD5\xB3\x1B\xE7\xB9\xA1" |
| 28586 | "\x68\x8B\x2C\x1A\x44\xDA\x63\xD3" |
| 28587 | "\x29\xE9\x59\x32\x1F\x30\x1C\x43" |
| 28588 | "\xEA\x3A\xA3\x6B\x54\x3C\xAA\x11" |
| 28589 | "\xAD\x38\x20\xC9\xB9\x8A\x64\x66" |
| 28590 | "\x5A\x07\x49\xDF\xA1\x9C\xF9\x76" |
| 28591 | "\x36\x65\xB6\x81\x8F\x76\x09\xE5" |
| 28592 | "\xEB\xD1\x29\xA4\xE4\xF4\x4C\xCD" |
| 28593 | "\xAF\xFC\xB9\x16\xD9\xC3\x73\x6A" |
| 28594 | "\x33\x12\xF8\x7E\xBC\xCC\x7D\x80" |
| 28595 | "\xBF\x3C\x25\x06\x13\x84\xFA\x35" |
| 28596 | "\xF7\x40\xFA\xA1\x44\x13\x70\xD8" |
| 28597 | "\x01\xF9\x85\x15\x63\xEC\x7D\xB9" |
| 28598 | "\x02\xD8\xBA\x41\x6C\x92\x68\x66" |
| 28599 | "\x95\xDD\xD6\x42\xE7\xBB\xE1\xFD" |
| 28600 | "\x28\x3E\x94\xB6\xBD\xA7\xBF\x47" |
| 28601 | "\x58\x8D\xFF\x19\x30\x75\x0D\x48" |
| 28602 | "\x94\xE9\xA6\xCD\xB3\x8E\x1E\xCD" |
| 28603 | "\x59\xBC\x1A\xAC\x3C\x4F\xA9\xEB" |
| 28604 | "\xF4\xA7\xE4\x75\x4A\x18\x40\xC9" |
| 28605 | "\x1E\xEC\x06\x9C\x28\x4B\xF7\x2B" |
| 28606 | "\xE2\xEF\xD6\x42\x2E\xBB\xFC\x0A" |
| 28607 | "\x79\xA2\x99\x28\x93\x1B\x00\x57" |
| 28608 | "\x35\x1E\x1A\x93\x90\xA4\x68\x95" |
| 28609 | "\x5E\x57\x40\xD5\xA9\xAA\x19\x48" |
| 28610 | "\xEC\xFF\x76\x77\xDC\x78\x89\x76" |
| 28611 | "\xE5\x3B\x00\xEC\x58\x4D\xD1\xE3" |
| 28612 | "\xC8\x6C\x2C\x45\x5E\x5F\xD9\x4E" |
| 28613 | "\x71\xA5\x36\x6D\x03\xF1\xC7\xD5" |
| 28614 | "\xF3\x63\xC0\xD8\xCB\x2B\xF1\xA8" |
| 28615 | "\xB9\x2B\xE6\x0B\xB9\x65\x78\xA0" |
| 28616 | "\xC4\x46\xE6\x9B\x8B\x43\x2D\xAB" |
| 28617 | "\x70\xA6\xE0\x59\x1E\xAC\x9D\xE0" |
| 28618 | "\x76\x44\x45\xF3\x24\x11\x57\x98" |
| 28619 | "\x9A\x86\xB4\x12\x80\x28\x86\x20" |
| 28620 | "\x23\x9D\x2D\xE9\x38\x32\xB1\xE1" |
| 28621 | "\xCF\x0A\x23\x73\x7D\xC5\x80\x3D" |
| 28622 | "\x9F\x6D\xA0\xD0\xEE\x93\x8A\x79" |
| 28623 | "\x3A\xDD\x1D\xBB\x9E\x26\x5D\x01" |
| 28624 | "\x44\xD0\xD4\x4E\xC3\xF1\xE4\x38" |
| 28625 | "\x09\x62\x0A\x1A\x4E\xD2\x63\x0F" |
| 28626 | "\x6E\x3E\xD2\xA4\x3A\xF4\xF3\xFF" |
| 28627 | "\x7E\x42\xEC\xB6\x6F\x4D\x6B\x48" |
| 28628 | "\xE6\xA6\x50\x80\x78\x9E\xF1\xB0" |
| 28629 | "\x4D\xB2\x0D\x3D\xFC\x40\x25\x4D" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 28630 | "\x93\x11\x1C\xE9\xD2\x9F\x6E\x90" |
| 28631 | "\xE5\x41\x4A\xE2\x3C\x45\x29\x35" |
| 28632 | "\xEC\xD6\x47\x50\xCB\x7B\xA2\x32" |
| 28633 | "\xF7\x8B\x62\xF1\xE3\x9A\xFE\xC7" |
| 28634 | "\x1D\x8C\x02\x72\x68\x09\xE9\xB6" |
| 28635 | "\x4A\x80\xE6\xB1\x56\xDF\x90\xD4" |
| 28636 | "\x93\x74\xA4\xCE\x20\x23\xBF\x48" |
| 28637 | "\xA5\xDE\x1B\xFA\x40\x69\x31\x98" |
| 28638 | "\x62\x6E\xA5\xC7\xBF\x0C\x62\xE5" |
| 28639 | "\x6D\xE1\x93\xF1\x83\x10\x1C\xCA" |
| 28640 | "\xF6\x5C\x19\xF8\x90\x78\xCB\xE4" |
| 28641 | "\x0B\x3A\xB5\xF8\x43\x86\xD3\x3F" |
| 28642 | "\xBA\x83\x34\x3C\x42\xCC\x7D\x28" |
| 28643 | "\x29\x63\x4F\xD8\x02\x17\xC5\x07" |
| 28644 | "\x2C\xA4\xAC\x79\xCB\xC3\xA9\x09" |
| 28645 | "\x81\x45\x18\xED\xE4\xCB\x42\x3B" |
| 28646 | "\x87\x2D\x23\xDC\xC5\xBA\x45\xBD" |
| 28647 | "\x92\xE5\x02\x97\x96\xCE\xAD\xEC" |
| 28648 | "\xBA\xD8\x76\xF8\xCA\xC1\x31\xEC" |
| 28649 | "\x1E\x4F\x3F\x83\xF8\x33\xE8\x6E" |
| 28650 | "\xCC\xF8\x5F\xDD\x65\x50\x99\x69" |
| 28651 | "\xAF\x48\xCE\xA5\xBA\xB6\x14\x9F" |
| 28652 | "\x05\x93\xB2\xE6\x59\xC8\x28\xFE" |
| 28653 | "\x8F\x37\xF9\x64\xB9\xA5\x56\x8F" |
| 28654 | "\xF1\x1B\x90\xEF\xAE\xEB\xFC\x09" |
| 28655 | "\x11\x7A\xF2\x19\x0A\x0A\x9A\x3C" |
| 28656 | "\xE2\x5E\x29\xFA\x31\x9B\xC1\x74" |
| 28657 | "\x1E\x10\x3E\x07\xA9\x31\x6D\xF8" |
| 28658 | "\x81\xF5\xD5\x8A\x04\x23\x51\xAC" |
| 28659 | "\xA2\xE2\x63\xFD\x27\x1F\x79\x5B" |
| 28660 | "\x1F\xE8\xDA\x11\x49\x4D\x1C\xBA" |
| 28661 | "\x54\xCC\x0F\xBA\x92\x69\xE5\xCB" |
| 28662 | "\x41\x1A\x67\xA6\x40\x82\x70\x8C" |
| 28663 | "\x19\x79\x08\xA4\x51\x20\x7D\xC9" |
| 28664 | "\x12\x27\xAE\x20\x0D\x2C\xA1\x6D" |
| 28665 | "\xF4\x55\xD4\xE7\xE6\xD4\x28\x08" |
| 28666 | "\x00\x70\x12\x56\x56\x50\xAD\x14" |
| 28667 | "\x5C\x3E\xA2\xD1\x36\x3F\x36\x48" |
| 28668 | "\xED\xB1\x57\x3E\x5D\x15\xF6\x1E" |
| 28669 | "\x53\xE9\xA4\x3E\xED\x7D\xCF\x7D" |
| 28670 | "\x29\xAF\xF3\x1E\x51\xA8\x9F\x85" |
| 28671 | "\x8B\xF0\xBB\xCE\xCC\x39\xC3\x64" |
| 28672 | "\x4B\xF2\xAD\x70\x19\xD4\x44\x8F" |
| 28673 | "\x91\x76\xE8\x15\x66\x34\x9F\xF6" |
| 28674 | "\x0F\x15\xA4\xA8\x24\xF8\x58\xB1" |
| 28675 | "\x38\x46\x47\xC7\x9B\xCA\xE9\x42" |
| 28676 | "\x44\xAA\xE6\xB5\x9C\x91\xA4\xD3" |
| 28677 | "\x16\xA0\xED\x42\xBE\xB5\x06\x19" |
| 28678 | "\xBE\x67\xE8\xBC\x22\x32\xA4\x1E" |
| 28679 | "\x93\xEB\xBE\xE9\xE1\x93\xE5\x31" |
| 28680 | "\x3A\xA2\x75\xDF\xE3\x6B\xE7\xCC" |
| 28681 | "\xB4\x70\x20\xE0\x6D\x82\x7C\xC8" |
| 28682 | "\x94\x5C\x5E\x37\x18\xAD\xED\x8B" |
| 28683 | "\x44\x86\xCA\x5E\x07\xB7\x70\x8D" |
| 28684 | "\x40\x48\x19\x73\x7C\x78\x64\x0B" |
| 28685 | "\xDB\x01\xCA\xAE\x63\x19\xE9\xD1" |
| 28686 | "\x6B\x2C\x84\x10\x45\x42\x2E\xC3" |
| 28687 | "\xDF\x7F\xAA\xE8\x87\x1B\x63\x46" |
| 28688 | "\x74\x28\x9D\x05\x30\x20\x62\x41" |
| 28689 | "\xC0\x9F\x2C\x36\x2B\x78\xD7\x26" |
| 28690 | "\xDF\x58\x51\xED\xFA\xDC\x87\x79" |
| 28691 | "\xBF\x8C\xBF\xC4\x0F\xE5\x05\xDA" |
| 28692 | "\x45\xE3\x35\x0D\x69\x91\x54\x1C" |
| 28693 | "\xE7\x2C\x49\x08\x8B\x72\xFA\x5C" |
| 28694 | "\xF1\x6B\xD9", |
| 28695 | .ilen = 1011, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 28696 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 28697 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 28698 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 28699 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 28700 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 28701 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
Jussi Kivilinna | be6314b | 2012-10-20 14:52:46 +0300 | [diff] [blame] | 28702 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 28703 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 28704 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 28705 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 28706 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 28707 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 28708 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 28709 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 28710 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 28711 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 28712 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 28713 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 28714 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 28715 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 28716 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 28717 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 28718 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 28719 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 28720 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 28721 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 28722 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 28723 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 28724 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 28725 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 28726 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 28727 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 28728 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 28729 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 28730 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 28731 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 28732 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 28733 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 28734 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 28735 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 28736 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 28737 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 28738 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 28739 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 28740 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 28741 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 28742 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 28743 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 28744 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 28745 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 28746 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 28747 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 28748 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 28749 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 28750 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 28751 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 28752 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 28753 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 28754 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 28755 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 28756 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
| 28757 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 28758 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 28759 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 28760 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 28761 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 28762 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 28763 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 28764 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 28765 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 28766 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 28767 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 28768 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 28769 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 28770 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 28771 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 28772 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 28773 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 28774 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 28775 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 28776 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 28777 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 28778 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 28779 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 28780 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 28781 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 28782 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 28783 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 28784 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 28785 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 28786 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 28787 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 28788 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 28789 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 28790 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 28791 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 28792 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 28793 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 28794 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 28795 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 28796 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 28797 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 28798 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 28799 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 28800 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 28801 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 28802 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 28803 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 28804 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 28805 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 28806 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 28807 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 28808 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 28809 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 28810 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 28811 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 28812 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 28813 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 28814 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 28815 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 28816 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 28817 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 28818 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 28819 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 28820 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 28821 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D" |
| 28822 | "\xE4\x7B\x12", |
| 28823 | .rlen = 1011, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 28824 | .also_non_np = 1, |
| 28825 | .np = 2, |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 28826 | .tap = { 1011 - 16, 16 }, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 28827 | }, { /* Generated with Crypto++ */ |
| 28828 | .key = "\x85\x62\x3F\x1C\xF9\xD6\x1C\xF9" |
| 28829 | "\xD6\xB3\x90\x6D\x4A\x90\x6D\x4A" |
| 28830 | "\x27\x04\xE1\x27\x04\xE1\xBE\x9B" |
| 28831 | "\x78\xBE\x9B\x78\x55\x32\x0F\x55", |
| 28832 | .klen = 32, |
| 28833 | .iv = "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" |
| 28834 | "\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFD", |
| 28835 | .input = "\x85\x79\x6C\x8B\x2B\x6D\x14\xF9" |
| 28836 | "\xA6\x83\xB6\x80\x5B\x3A\xF3\x7E" |
| 28837 | "\x30\x29\xEB\x1F\xDC\x19\x5F\xEB" |
| 28838 | "\xF7\xC4\x27\x04\x51\x87\xD7\x6F" |
| 28839 | "\xB8\x4E\x07\xFB\xAC\x3B\x08\xB4" |
| 28840 | "\x4D\xCB\xE8\xE1\x71\x7D\x4F\x48" |
| 28841 | "\xCD\x81\x64\xA5\xC4\x07\x1A\x9A" |
| 28842 | "\x4B\x62\x90\x0E\xC8\xB3\x2B\x6B" |
| 28843 | "\x8F\x9C\x6E\x72\x4B\xBA\xEF\x07" |
| 28844 | "\x2C\x56\x07\x5E\x37\x30\x60\xA9" |
| 28845 | "\xE3\xEF\xD6\x69\xE1\xA1\x77\x64" |
| 28846 | "\x93\x75\x7A\xB7\x7A\x3B\xE9\x43" |
| 28847 | "\x23\x35\x95\x91\x80\x8A\xC7\xCF" |
| 28848 | "\xC3\xD5\xBF\xE7\xFE\x4C\x06\x6B" |
| 28849 | "\x05\x19\x48\xE2\x62\xBA\x4F\xF2" |
| 28850 | "\xFB\xEE\xE4\xCB\x79\x9D\xA3\x10" |
| 28851 | "\x1D\x29\x8C\x1D\x7A\x88\x5A\xDD" |
| 28852 | "\x4E\xB6\x18\xAA\xCD\xE6\x33\x96" |
| 28853 | "\xD9\x0F\x90\x5A\x78\x76\x4D\x77" |
| 28854 | "\x3C\x20\x89\x3B\xA3\xF9\x07\xFD" |
| 28855 | "\xE4\xE8\x20\x2D\x15\x0A\x63\x49" |
| 28856 | "\xF5\x4F\x89\xD8\xDE\xA1\x28\x78" |
| 28857 | "\x28\x07\x09\x1B\x03\x94\x1D\x4B" |
| 28858 | "\x82\x28\x1E\x1D\x95\xBA\xAC\x85" |
| 28859 | "\x71\x6E\x3C\x18\x4B\x77\x74\x79" |
| 28860 | "\xBF\x67\x0A\x53\x3C\x94\xD9\x60" |
| 28861 | "\xE9\x6D\x40\x34\xA0\x2A\x53\x5D" |
| 28862 | "\x27\xD5\x47\xF9\xC3\x4B\x27\x29" |
| 28863 | "\xE4\x76\x9C\x3F\xA7\x1C\x87\xFC" |
| 28864 | "\x6E\x0F\xCF\x9B\x60\xF0\xF0\x8B" |
| 28865 | "\x70\x1C\x84\x81\x72\x4D\xB4\x98" |
| 28866 | "\x23\x62\xE7\x6A\x2B\xFC\xA5\xB2" |
| 28867 | "\xFF\xF5\x71\x07\xCD\x90\x23\x13" |
| 28868 | "\x19\xD7\x79\x36\x6C\x9D\x55\x8B" |
| 28869 | "\x93\x78\x86\x05\x69\x46\xD0\xC5" |
| 28870 | "\x39\x09\xEB\x79\xEF\xFA\x9F\xAE" |
| 28871 | "\xF3\xD5\x44\xC3\xFD\x86\xD2\x7C" |
| 28872 | "\x83\x4B\xD8\x75\x9C\x18\x04\x7B" |
| 28873 | "\x73\xAD\x72\xA4\xF6\xAB\xCF\x4B" |
| 28874 | "\xCC\x01\x45\x90\xA6\x43\x05\x0C" |
| 28875 | "\x6C\x4F\x62\x77\x57\x97\x9F\xEE" |
| 28876 | "\x75\xA7\x3C\x38\xD1\x0F\x3D\x0E" |
| 28877 | "\x2C\x43\x98\xFB\x13\x65\x73\xE4" |
| 28878 | "\x3C\x1E\xD6\x90\x08\xF7\xE0\x99" |
| 28879 | "\x3B\xF1\x9D\x6C\x48\xA9\x0E\x32" |
| 28880 | "\x17\xC2\xCC\x20\xA1\x19\x26\xAA" |
| 28881 | "\xE0\x75\x2F\xFB\x54\x66\x0A\xDF" |
| 28882 | "\xB5\xF2\x1F\xC1\x34\x3C\x30\x56" |
| 28883 | "\xE8\xDC\xF7\x92\x6B\xBF\x17\x24" |
| 28884 | "\xEC\x94\xB5\x3B\xD6\xCE\xA2\x54" |
| 28885 | "\x10\x7F\x50\xDE\x69\x77\xD5\x37" |
| 28886 | "\xFE\x9C\x10\x83\xC5\xEB\xC9\x53" |
| 28887 | "\xB7\xF3\xC4\x20\xAF\x0A\x7E\x57" |
| 28888 | "\x3A\xE6\x75\xFE\x89\x00\x6E\x48" |
| 28889 | "\xFB\x99\x17\x2C\xF6\x64\x40\x95" |
| 28890 | "\x5E\xDC\x7A\xA6\x70\xC7\xF4\xDD" |
| 28891 | "\x52\x05\x24\x34\xF9\x0E\xC8\x64" |
| 28892 | "\x6D\xE2\xD8\x80\x53\x31\x4C\xFE" |
| 28893 | "\xB4\x3A\x5F\x19\xCF\x42\x1B\x22" |
| 28894 | "\x0B\x2D\x7B\xF1\xC5\x43\xF7\x5E" |
| 28895 | "\x12\xA8\x01\x64\x16\x0B\x26\x5A" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 28896 | "\x0C\x95\x0F\x40\xC5\x5A\x06\x7C" |
| 28897 | "\xCF\xF5\xD5\xB7\x7A\x34\x23\xB6" |
| 28898 | "\xAA\x9E\xA8\x98\xA2\xF8\x3D\xD3" |
| 28899 | "\x3F\x23\x69\x63\x56\x96\x45\xD6" |
| 28900 | "\x74\x23\x1D\x5C\x63\xCC\xD8\x78" |
| 28901 | "\x16\xE2\x9C\xD2\x80\x02\xF2\x28" |
| 28902 | "\x69\x2F\xC4\xA8\x15\x15\x24\x3B" |
| 28903 | "\xCB\xF0\x14\xE4\x62\xC8\xF3\xD1" |
| 28904 | "\x03\x58\x1B\x33\x77\x74\x1F\xB4" |
| 28905 | "\x07\x86\xF2\x21\xB7\x41\xAE\xBF" |
| 28906 | "\x25\xC2\xFF\x51\xEF\xEA\xCE\xC4" |
| 28907 | "\x5F\xD9\xB8\x18\x6A\xF0\x0F\x0D" |
| 28908 | "\xF8\x04\xBB\x6D\x62\x33\x87\x26" |
| 28909 | "\x4F\x2F\x14\x6E\xDC\xDB\x66\x09" |
| 28910 | "\x2A\xEF\x7D\x84\x10\xAC\x82\x5E" |
| 28911 | "\xD2\xE4\xAD\x74\x7A\x6D\xCC\x3A" |
| 28912 | "\x7B\x62\xD8\xD6\x07\x2D\xF7\xDF" |
| 28913 | "\x9B\xB3\x82\xCF\x9C\x1D\x76\x5C" |
| 28914 | "\xAC\x7B\xD4\x9B\x45\xA1\x64\x11" |
| 28915 | "\x66\xF1\xA7\x0B\xF9\xDD\x00\xDD" |
| 28916 | "\xA4\x45\x3D\x3E\x03\xC9\x2E\xCB" |
| 28917 | "\xC3\x14\x84\x72\xFD\x41\xDC\xBD" |
| 28918 | "\x75\xBE\xA8\xE5\x16\x48\x64\x39" |
| 28919 | "\xCA\xF3\xE6\xDC\x25\x24\xF1\x6D" |
| 28920 | "\xB2\x8D\xC5\x38\x54\xD3\x5D\x6D" |
| 28921 | "\x0B\x29\x10\x15\x0E\x13\x3B\xAC" |
| 28922 | "\x7E\xCC\x9E\x3E\x18\x48\xA6\x02" |
| 28923 | "\xEF\x03\xB2\x2E\xE3\xD2\x70\x21" |
| 28924 | "\xB4\x19\x26\xBE\x3A\x3D\x05\xE0" |
| 28925 | "\xF8\x09\xAF\xE4\x31\x26\x92\x2F" |
| 28926 | "\x8F\x55\xAC\xED\x0B\xB2\xA5\x34" |
| 28927 | "\xBE\x50\xB1\x02\x22\x96\xE3\x40" |
| 28928 | "\x7B\x70\x50\x6E\x3B\xD5\xE5\xA0" |
| 28929 | "\x8E\xA2\xAD\x14\x60\x5C\x7A\x2B" |
| 28930 | "\x3D\x1B\x7F\xC1\xC0\x2C\x56\x36" |
| 28931 | "\xD2\x0A\x32\x06\x97\x34\xB9\xF4" |
| 28932 | "\x6F\x9F\x7E\x80\xD0\x9D\xF7\x6A" |
| 28933 | "\x21\xC1\xA2\x6A\xB1\x96\x5B\x4D" |
| 28934 | "\x7A\x15\x6C\xC4\x4E\xB8\xE0\x9E" |
| 28935 | "\x6C\x50\xF3\x9C\xC9\xB5\x23\xB7" |
| 28936 | "\xF1\xD4\x29\x4A\x23\xC4\xAD\x1E" |
| 28937 | "\x2C\x07\xD2\x43\x5F\x57\x93\xCA" |
| 28938 | "\x85\xF9\x9F\xAD\x4C\xF1\xE4\xB1" |
| 28939 | "\x1A\x8E\x28\xA4\xB6\x52\x77\x7E" |
| 28940 | "\x68\xC6\x47\xB9\x76\xCC\x65\x5F" |
| 28941 | "\x0B\xF9\x67\x93\xD8\x0E\x9A\x37" |
| 28942 | "\x5F\x41\xED\x64\x6C\xAD\x5F\xED" |
| 28943 | "\x3F\x8D\xFB\x8E\x1E\xA0\xE4\x1F" |
| 28944 | "\xC2\xC7\xED\x18\x43\xE1\x20\x86" |
| 28945 | "\x5D\xBC\x30\x70\x22\xA1\xDC\x53" |
| 28946 | "\x10\x3A\x8D\x47\x82\xCD\x7F\x59" |
| 28947 | "\x03\x2D\x6D\xF5\xE7\x79\xD4\x07" |
| 28948 | "\x68\x2A\xA5\x42\x19\x4D\xAF\xF5" |
| 28949 | "\xED\x47\x83\xBC\x5F\x62\x84\xDA" |
| 28950 | "\xDA\x41\xFF\xB0\x1D\x64\xA3\xC8" |
| 28951 | "\xBD\x4E\xE0\xB8\x7F\xEE\x55\x0A" |
| 28952 | "\x4E\x61\xB2\x51\xF6\x9C\x95\xF6" |
| 28953 | "\x92\xBB\xF6\xC5\xF0\x09\x86\xDE" |
| 28954 | "\x37\x9E\x29\xF9\x2A\x18\x73\x0D" |
| 28955 | "\xDC\x7E\x6B\x7B\x1B\x43\x8C\xEA" |
| 28956 | "\x13\xC8\x1A\x47\x0A\x2D\x6D\x56" |
| 28957 | "\xCD\xD2\xE7\x53\x1A\xAB\x1C\x3C" |
| 28958 | "\xC5\x9B\x03\x70\x29\x2A\x49\x09" |
| 28959 | "\x67\xA1\xEA\xD6\x3A\x5B\xBF\x71" |
| 28960 | "\x1D\x48\x64\x6C\xFB\xC0\x9E\x36", |
| 28961 | .ilen = 1008, |
Jussi Kivilinna | 549595a | 2012-09-19 09:42:59 +0300 | [diff] [blame] | 28962 | .result = "\x56\xED\x84\x1B\x8F\x26\xBD\x31" |
| 28963 | "\xC8\x5F\xF6\x6A\x01\x98\x0C\xA3" |
| 28964 | "\x3A\xD1\x45\xDC\x73\x0A\x7E\x15" |
| 28965 | "\xAC\x20\xB7\x4E\xE5\x59\xF0\x87" |
| 28966 | "\x1E\x92\x29\xC0\x34\xCB\x62\xF9" |
| 28967 | "\x6D\x04\x9B\x0F\xA6\x3D\xD4\x48" |
| 28968 | "\xDF\x76\x0D\x81\x18\xAF\x23\xBA" |
| 28969 | "\x51\xE8\x5C\xF3\x8A\x21\x95\x2C" |
| 28970 | "\xC3\x37\xCE\x65\xFC\x70\x07\x9E" |
| 28971 | "\x12\xA9\x40\xD7\x4B\xE2\x79\x10" |
| 28972 | "\x84\x1B\xB2\x26\xBD\x54\xEB\x5F" |
| 28973 | "\xF6\x8D\x01\x98\x2F\xC6\x3A\xD1" |
| 28974 | "\x68\xFF\x73\x0A\xA1\x15\xAC\x43" |
| 28975 | "\xDA\x4E\xE5\x7C\x13\x87\x1E\xB5" |
| 28976 | "\x29\xC0\x57\xEE\x62\xF9\x90\x04" |
| 28977 | "\x9B\x32\xC9\x3D\xD4\x6B\x02\x76" |
| 28978 | "\x0D\xA4\x18\xAF\x46\xDD\x51\xE8" |
| 28979 | "\x7F\x16\x8A\x21\xB8\x2C\xC3\x5A" |
| 28980 | "\xF1\x65\xFC\x93\x07\x9E\x35\xCC" |
| 28981 | "\x40\xD7\x6E\x05\x79\x10\xA7\x1B" |
| 28982 | "\xB2\x49\xE0\x54\xEB\x82\x19\x8D" |
| 28983 | "\x24\xBB\x2F\xC6\x5D\xF4\x68\xFF" |
| 28984 | "\x96\x0A\xA1\x38\xCF\x43\xDA\x71" |
| 28985 | "\x08\x7C\x13\xAA\x1E\xB5\x4C\xE3" |
| 28986 | "\x57\xEE\x85\x1C\x90\x27\xBE\x32" |
| 28987 | "\xC9\x60\xF7\x6B\x02\x99\x0D\xA4" |
| 28988 | "\x3B\xD2\x46\xDD\x74\x0B\x7F\x16" |
| 28989 | "\xAD\x21\xB8\x4F\xE6\x5A\xF1\x88" |
| 28990 | "\x1F\x93\x2A\xC1\x35\xCC\x63\xFA" |
| 28991 | "\x6E\x05\x9C\x10\xA7\x3E\xD5\x49" |
| 28992 | "\xE0\x77\x0E\x82\x19\xB0\x24\xBB" |
| 28993 | "\x52\xE9\x5D\xF4\x8B\x22\x96\x2D" |
| 28994 | "\xC4\x38\xCF\x66\xFD\x71\x08\x9F" |
| 28995 | "\x13\xAA\x41\xD8\x4C\xE3\x7A\x11" |
| 28996 | "\x85\x1C\xB3\x27\xBE\x55\xEC\x60" |
| 28997 | "\xF7\x8E\x02\x99\x30\xC7\x3B\xD2" |
| 28998 | "\x69\x00\x74\x0B\xA2\x16\xAD\x44" |
| 28999 | "\xDB\x4F\xE6\x7D\x14\x88\x1F\xB6" |
| 29000 | "\x2A\xC1\x58\xEF\x63\xFA\x91\x05" |
| 29001 | "\x9C\x33\xCA\x3E\xD5\x6C\x03\x77" |
| 29002 | "\x0E\xA5\x19\xB0\x47\xDE\x52\xE9" |
| 29003 | "\x80\x17\x8B\x22\xB9\x2D\xC4\x5B" |
| 29004 | "\xF2\x66\xFD\x94\x08\x9F\x36\xCD" |
| 29005 | "\x41\xD8\x6F\x06\x7A\x11\xA8\x1C" |
| 29006 | "\xB3\x4A\xE1\x55\xEC\x83\x1A\x8E" |
| 29007 | "\x25\xBC\x30\xC7\x5E\xF5\x69\x00" |
| 29008 | "\x97\x0B\xA2\x39\xD0\x44\xDB\x72" |
| 29009 | "\x09\x7D\x14\xAB\x1F\xB6\x4D\xE4" |
| 29010 | "\x58\xEF\x86\x1D\x91\x28\xBF\x33" |
| 29011 | "\xCA\x61\xF8\x6C\x03\x9A\x0E\xA5" |
| 29012 | "\x3C\xD3\x47\xDE\x75\x0C\x80\x17" |
| 29013 | "\xAE\x22\xB9\x50\xE7\x5B\xF2\x89" |
| 29014 | "\x20\x94\x2B\xC2\x36\xCD\x64\xFB" |
| 29015 | "\x6F\x06\x9D\x11\xA8\x3F\xD6\x4A" |
| 29016 | "\xE1\x78\x0F\x83\x1A\xB1\x25\xBC" |
| 29017 | "\x53\xEA\x5E\xF5\x8C\x00\x97\x2E" |
| 29018 | "\xC5\x39\xD0\x67\xFE\x72\x09\xA0" |
| 29019 | "\x14\xAB\x42\xD9\x4D\xE4\x7B\x12" |
| 29020 | "\x86\x1D\xB4\x28\xBF\x56\xED\x61" |
| 29021 | "\xF8\x8F\x03\x9A\x31\xC8\x3C\xD3" |
| 29022 | "\x6A\x01\x75\x0C\xA3\x17\xAE\x45" |
Jussi Kivilinna | 23a836e | 2013-04-13 13:46:35 +0300 | [diff] [blame] | 29023 | "\xDC\x50\xE7\x7E\x15\x89\x20\xB7" |
| 29024 | "\x2B\xC2\x59\xF0\x64\xFB\x92\x06" |
| 29025 | "\x9D\x34\xCB\x3F\xD6\x6D\x04\x78" |
| 29026 | "\x0F\xA6\x1A\xB1\x48\xDF\x53\xEA" |
| 29027 | "\x81\x18\x8C\x23\xBA\x2E\xC5\x5C" |
| 29028 | "\xF3\x67\xFE\x95\x09\xA0\x37\xCE" |
| 29029 | "\x42\xD9\x70\x07\x7B\x12\xA9\x1D" |
| 29030 | "\xB4\x4B\xE2\x56\xED\x84\x1B\x8F" |
| 29031 | "\x26\xBD\x31\xC8\x5F\xF6\x6A\x01" |
| 29032 | "\x98\x0C\xA3\x3A\xD1\x45\xDC\x73" |
| 29033 | "\x0A\x7E\x15\xAC\x20\xB7\x4E\xE5" |
| 29034 | "\x59\xF0\x87\x1E\x92\x29\xC0\x34" |
| 29035 | "\xCB\x62\xF9\x6D\x04\x9B\x0F\xA6" |
| 29036 | "\x3D\xD4\x48\xDF\x76\x0D\x81\x18" |
| 29037 | "\xAF\x23\xBA\x51\xE8\x5C\xF3\x8A" |
| 29038 | "\x21\x95\x2C\xC3\x37\xCE\x65\xFC" |
| 29039 | "\x70\x07\x9E\x12\xA9\x40\xD7\x4B" |
| 29040 | "\xE2\x79\x10\x84\x1B\xB2\x26\xBD" |
| 29041 | "\x54\xEB\x5F\xF6\x8D\x01\x98\x2F" |
| 29042 | "\xC6\x3A\xD1\x68\xFF\x73\x0A\xA1" |
| 29043 | "\x15\xAC\x43\xDA\x4E\xE5\x7C\x13" |
| 29044 | "\x87\x1E\xB5\x29\xC0\x57\xEE\x62" |
| 29045 | "\xF9\x90\x04\x9B\x32\xC9\x3D\xD4" |
| 29046 | "\x6B\x02\x76\x0D\xA4\x18\xAF\x46" |
| 29047 | "\xDD\x51\xE8\x7F\x16\x8A\x21\xB8" |
| 29048 | "\x2C\xC3\x5A\xF1\x65\xFC\x93\x07" |
| 29049 | "\x9E\x35\xCC\x40\xD7\x6E\x05\x79" |
| 29050 | "\x10\xA7\x1B\xB2\x49\xE0\x54\xEB" |
| 29051 | "\x82\x19\x8D\x24\xBB\x2F\xC6\x5D" |
| 29052 | "\xF4\x68\xFF\x96\x0A\xA1\x38\xCF" |
| 29053 | "\x43\xDA\x71\x08\x7C\x13\xAA\x1E" |
| 29054 | "\xB5\x4C\xE3\x57\xEE\x85\x1C\x90" |
| 29055 | "\x27\xBE\x32\xC9\x60\xF7\x6B\x02" |
| 29056 | "\x99\x0D\xA4\x3B\xD2\x46\xDD\x74" |
| 29057 | "\x0B\x7F\x16\xAD\x21\xB8\x4F\xE6" |
| 29058 | "\x5A\xF1\x88\x1F\x93\x2A\xC1\x35" |
| 29059 | "\xCC\x63\xFA\x6E\x05\x9C\x10\xA7" |
| 29060 | "\x3E\xD5\x49\xE0\x77\x0E\x82\x19" |
| 29061 | "\xB0\x24\xBB\x52\xE9\x5D\xF4\x8B" |
| 29062 | "\x22\x96\x2D\xC4\x38\xCF\x66\xFD" |
| 29063 | "\x71\x08\x9F\x13\xAA\x41\xD8\x4C" |
| 29064 | "\xE3\x7A\x11\x85\x1C\xB3\x27\xBE" |
| 29065 | "\x55\xEC\x60\xF7\x8E\x02\x99\x30" |
| 29066 | "\xC7\x3B\xD2\x69\x00\x74\x0B\xA2" |
| 29067 | "\x16\xAD\x44\xDB\x4F\xE6\x7D\x14" |
| 29068 | "\x88\x1F\xB6\x2A\xC1\x58\xEF\x63" |
| 29069 | "\xFA\x91\x05\x9C\x33\xCA\x3E\xD5" |
| 29070 | "\x6C\x03\x77\x0E\xA5\x19\xB0\x47" |
| 29071 | "\xDE\x52\xE9\x80\x17\x8B\x22\xB9" |
| 29072 | "\x2D\xC4\x5B\xF2\x66\xFD\x94\x08" |
| 29073 | "\x9F\x36\xCD\x41\xD8\x6F\x06\x7A" |
| 29074 | "\x11\xA8\x1C\xB3\x4A\xE1\x55\xEC" |
| 29075 | "\x83\x1A\x8E\x25\xBC\x30\xC7\x5E" |
| 29076 | "\xF5\x69\x00\x97\x0B\xA2\x39\xD0" |
| 29077 | "\x44\xDB\x72\x09\x7D\x14\xAB\x1F" |
| 29078 | "\xB6\x4D\xE4\x58\xEF\x86\x1D\x91" |
| 29079 | "\x28\xBF\x33\xCA\x61\xF8\x6C\x03" |
| 29080 | "\x9A\x0E\xA5\x3C\xD3\x47\xDE\x75" |
| 29081 | "\x0C\x80\x17\xAE\x22\xB9\x50\xE7" |
| 29082 | "\x5B\xF2\x89\x20\x94\x2B\xC2\x36" |
| 29083 | "\xCD\x64\xFB\x6F\x06\x9D\x11\xA8" |
| 29084 | "\x3F\xD6\x4A\xE1\x78\x0F\x83\x1A" |
| 29085 | "\xB1\x25\xBC\x53\xEA\x5E\xF5\x8C" |
| 29086 | "\x00\x97\x2E\xC5\x39\xD0\x67\xFE" |
| 29087 | "\x72\x09\xA0\x14\xAB\x42\xD9\x4D", |
| 29088 | .rlen = 1008, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29089 | }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29090 | }; |
| 29091 | |
| 29092 | static struct cipher_testvec camellia_lrw_enc_tv_template[] = { |
| 29093 | /* Generated from AES-LRW test vectors */ |
| 29094 | { |
| 29095 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 29096 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 29097 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 29098 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 29099 | .klen = 32, |
| 29100 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29101 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 29102 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29103 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29104 | .ilen = 16, |
| 29105 | .result = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31" |
| 29106 | "\x97\xcc\x72\xbe\x99\x17\xeb\x3e", |
| 29107 | .rlen = 16, |
| 29108 | }, { |
| 29109 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 29110 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 29111 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 29112 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 29113 | .klen = 32, |
| 29114 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29115 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 29116 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29117 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29118 | .ilen = 16, |
| 29119 | .result = "\x73\x09\xb7\x50\xb6\x77\x30\x50" |
| 29120 | "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a", |
| 29121 | .rlen = 16, |
| 29122 | }, { |
| 29123 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 29124 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 29125 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 29126 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 29127 | .klen = 32, |
| 29128 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29129 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 29130 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29131 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29132 | .ilen = 16, |
| 29133 | .result = "\x90\xae\x83\xe0\x22\xb9\x60\x91" |
| 29134 | "\xfa\xa9\xb7\x98\xe3\xed\x87\x01", |
| 29135 | .rlen = 16, |
| 29136 | }, { |
| 29137 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 29138 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 29139 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 29140 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 29141 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 29142 | .klen = 40, |
| 29143 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29144 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 29145 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29146 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29147 | .ilen = 16, |
| 29148 | .result = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0" |
| 29149 | "\xd8\x83\xef\xd9\x07\x16\x5f\x35", |
| 29150 | .rlen = 16, |
| 29151 | }, { |
| 29152 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 29153 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 29154 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 29155 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 29156 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 29157 | .klen = 40, |
| 29158 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29159 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 29160 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29161 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29162 | .ilen = 16, |
| 29163 | .result = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e" |
| 29164 | "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15", |
| 29165 | .rlen = 16, |
| 29166 | }, { |
| 29167 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 29168 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 29169 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 29170 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 29171 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 29172 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 29173 | .klen = 48, |
| 29174 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29175 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 29176 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29177 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29178 | .ilen = 16, |
| 29179 | .result = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9" |
| 29180 | "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d", |
| 29181 | .rlen = 16, |
| 29182 | }, { |
| 29183 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 29184 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 29185 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 29186 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 29187 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 29188 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 29189 | .klen = 48, |
| 29190 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29191 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 29192 | .input = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29193 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29194 | .ilen = 16, |
| 29195 | .result = "\x04\xab\x28\x37\x31\x7a\x26\xab" |
| 29196 | "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff", |
| 29197 | .rlen = 16, |
| 29198 | }, { |
| 29199 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 29200 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 29201 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 29202 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 29203 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 29204 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 29205 | .klen = 48, |
| 29206 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29207 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 29208 | .input = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 29209 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 29210 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 29211 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 29212 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 29213 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 29214 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 29215 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 29216 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 29217 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 29218 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 29219 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 29220 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 29221 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 29222 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 29223 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 29224 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 29225 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 29226 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 29227 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 29228 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 29229 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 29230 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 29231 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 29232 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 29233 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 29234 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 29235 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 29236 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 29237 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 29238 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 29239 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 29240 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 29241 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 29242 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 29243 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 29244 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 29245 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 29246 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 29247 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 29248 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 29249 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 29250 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 29251 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 29252 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 29253 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 29254 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 29255 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 29256 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 29257 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 29258 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 29259 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 29260 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 29261 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 29262 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 29263 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 29264 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 29265 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 29266 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 29267 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 29268 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 29269 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 29270 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 29271 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 29272 | .ilen = 512, |
| 29273 | .result = "\x90\x69\x8e\xf2\x14\x86\x59\xf9" |
| 29274 | "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96" |
| 29275 | "\x67\x76\xac\x2c\xd2\x63\x18\x93" |
| 29276 | "\x13\xf8\xf1\xf6\x71\x77\xb3\xee" |
| 29277 | "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f" |
| 29278 | "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06" |
| 29279 | "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1" |
| 29280 | "\x62\xdd\x78\x81\xea\x1d\xef\x04" |
| 29281 | "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1" |
| 29282 | "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2" |
| 29283 | "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0" |
| 29284 | "\x40\x41\x69\xaa\x71\xc0\x37\xec" |
| 29285 | "\x39\xf3\xf2\xec\x82\xc3\x88\x79" |
| 29286 | "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80" |
| 29287 | "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c" |
| 29288 | "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1" |
| 29289 | "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12" |
| 29290 | "\x6f\x75\xc7\x80\x99\x50\x84\xcf" |
| 29291 | "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e" |
| 29292 | "\xb9\xb3\xde\x7a\x93\x14\x12\xa2" |
| 29293 | "\xf7\x43\xb3\x9d\x1a\x87\x65\x91" |
| 29294 | "\x42\x08\x40\x82\x06\x1c\x2d\x55" |
| 29295 | "\x6e\x48\xd5\x74\x07\x6e\x9d\x80" |
| 29296 | "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74" |
| 29297 | "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c" |
| 29298 | "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9" |
| 29299 | "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83" |
| 29300 | "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b" |
| 29301 | "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0" |
| 29302 | "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1" |
| 29303 | "\xed\x14\xa9\x57\x19\x63\x40\x04" |
| 29304 | "\x24\xeb\x6e\x19\xd1\x3d\x70\x78" |
| 29305 | "\xeb\xda\x55\x70\x2c\x4f\x41\x5b" |
| 29306 | "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3" |
| 29307 | "\x21\xec\xd7\xd2\x55\x32\x7c\x2e" |
| 29308 | "\x3c\x48\x8e\xb4\x85\x35\x47\xfe" |
| 29309 | "\xe2\x88\x79\x98\x6a\xc9\x8d\xff" |
| 29310 | "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd" |
| 29311 | "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99" |
| 29312 | "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75" |
| 29313 | "\x23\x52\x76\xc3\x50\x6e\x66\xf8" |
| 29314 | "\xa2\xe2\xce\xba\x40\x21\x3f\xc9" |
| 29315 | "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf" |
| 29316 | "\xd3\xdf\x57\x59\x83\xb8\xe1\x85" |
| 29317 | "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f" |
| 29318 | "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a" |
| 29319 | "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76" |
| 29320 | "\x2f\x1c\x1a\x30\xed\x95\x2a\x44" |
| 29321 | "\x35\xa5\x83\x04\x84\x01\x99\x56" |
| 29322 | "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd" |
| 29323 | "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c" |
| 29324 | "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d" |
| 29325 | "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77" |
| 29326 | "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b" |
| 29327 | "\x30\xed\x1a\x50\x19\xef\xc4\x2c" |
| 29328 | "\x02\xd9\xc5\xd3\x11\x33\x37\xe5" |
| 29329 | "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d" |
| 29330 | "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96" |
| 29331 | "\x91\xc3\x94\x24\xa5\x12\xa2\x37" |
| 29332 | "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe" |
| 29333 | "\x79\x92\x3e\xe6\x1b\x49\x57\x5d" |
| 29334 | "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1" |
| 29335 | "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9" |
| 29336 | "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95", |
| 29337 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 29338 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 29339 | .np = 3, |
| 29340 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29341 | }, |
| 29342 | }; |
| 29343 | |
| 29344 | static struct cipher_testvec camellia_lrw_dec_tv_template[] = { |
| 29345 | /* Generated from AES-LRW test vectors */ |
| 29346 | /* same as enc vectors with input and result reversed */ |
| 29347 | { |
| 29348 | .key = "\x45\x62\xac\x25\xf8\x28\x17\x6d" |
| 29349 | "\x4c\x26\x84\x14\xb5\x68\x01\x85" |
| 29350 | "\x25\x8e\x2a\x05\xe7\x3e\x9d\x03" |
| 29351 | "\xee\x5a\x83\x0c\xcc\x09\x4c\x87", |
| 29352 | .klen = 32, |
| 29353 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29354 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 29355 | .input = "\x92\x68\x19\xd7\xb7\x5b\x0a\x31" |
| 29356 | "\x97\xcc\x72\xbe\x99\x17\xeb\x3e", |
| 29357 | .ilen = 16, |
| 29358 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29359 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29360 | .rlen = 16, |
| 29361 | }, { |
| 29362 | .key = "\x59\x70\x47\x14\xf5\x57\x47\x8c" |
| 29363 | "\xd7\x79\xe8\x0f\x54\x88\x79\x44" |
| 29364 | "\x0d\x48\xf0\xb7\xb1\x5a\x53\xea" |
| 29365 | "\x1c\xaa\x6b\x29\xc2\xca\xfb\xaf", |
| 29366 | .klen = 32, |
| 29367 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29368 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 29369 | .input = "\x73\x09\xb7\x50\xb6\x77\x30\x50" |
| 29370 | "\x5c\x8a\x9c\x26\x77\x9d\xfc\x4a", |
| 29371 | .ilen = 16, |
| 29372 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29373 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29374 | .rlen = 16, |
| 29375 | }, { |
| 29376 | .key = "\xd8\x2a\x91\x34\xb2\x6a\x56\x50" |
| 29377 | "\x30\xfe\x69\xe2\x37\x7f\x98\x47" |
| 29378 | "\xcd\xf9\x0b\x16\x0c\x64\x8f\xb6" |
| 29379 | "\xb0\x0d\x0d\x1b\xae\x85\x87\x1f", |
| 29380 | .klen = 32, |
| 29381 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29382 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 29383 | .input = "\x90\xae\x83\xe0\x22\xb9\x60\x91" |
| 29384 | "\xfa\xa9\xb7\x98\xe3\xed\x87\x01", |
| 29385 | .ilen = 16, |
| 29386 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29387 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29388 | .rlen = 16, |
| 29389 | }, { |
| 29390 | .key = "\x0f\x6a\xef\xf8\xd3\xd2\xbb\x15" |
| 29391 | "\x25\x83\xf7\x3c\x1f\x01\x28\x74" |
| 29392 | "\xca\xc6\xbc\x35\x4d\x4a\x65\x54" |
| 29393 | "\x90\xae\x61\xcf\x7b\xae\xbd\xcc" |
| 29394 | "\xad\xe4\x94\xc5\x4a\x29\xae\x70", |
| 29395 | .klen = 40, |
| 29396 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29397 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 29398 | .input = "\x99\xe9\x6e\xd4\xc9\x21\xa5\xf0" |
| 29399 | "\xd8\x83\xef\xd9\x07\x16\x5f\x35", |
| 29400 | .ilen = 16, |
| 29401 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29402 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29403 | .rlen = 16, |
| 29404 | }, { |
| 29405 | .key = "\x8a\xd4\xee\x10\x2f\xbd\x81\xff" |
| 29406 | "\xf8\x86\xce\xac\x93\xc5\xad\xc6" |
| 29407 | "\xa0\x19\x07\xc0\x9d\xf7\xbb\xdd" |
| 29408 | "\x52\x13\xb2\xb7\xf0\xff\x11\xd8" |
| 29409 | "\xd6\x08\xd0\xcd\x2e\xb1\x17\x6f", |
| 29410 | .klen = 40, |
| 29411 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29412 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 29413 | .input = "\x42\x88\xf4\xcb\x21\x11\x6d\x8e" |
| 29414 | "\xde\x1a\xf2\x29\xf1\x4a\xe0\x15", |
| 29415 | .ilen = 16, |
| 29416 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29417 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29418 | .rlen = 16, |
| 29419 | }, { |
| 29420 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 29421 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 29422 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 29423 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 29424 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 29425 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 29426 | .klen = 48, |
| 29427 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29428 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 29429 | .input = "\x40\xaa\x34\x86\x4a\x8f\x78\xb9" |
| 29430 | "\xdb\xdb\x0f\x3d\x48\x70\xbe\x8d", |
| 29431 | .ilen = 16, |
| 29432 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29433 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29434 | .rlen = 16, |
| 29435 | }, { |
| 29436 | .key = "\xfb\x76\x15\xb2\x3d\x80\x89\x1d" |
| 29437 | "\xd4\x70\x98\x0b\xc7\x95\x84\xc8" |
| 29438 | "\xb2\xfb\x64\xce\x60\x97\x87\x8d" |
| 29439 | "\x17\xfc\xe4\x5a\x49\xe8\x30\xb7" |
| 29440 | "\x6e\x78\x17\xe7\x2d\x5e\x12\xd4" |
| 29441 | "\x60\x64\x04\x7a\xf1\x2f\x9e\x0c", |
| 29442 | .klen = 48, |
| 29443 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29444 | "\x00\x00\x00\x02\x00\x00\x00\x00", |
| 29445 | .input = "\x04\xab\x28\x37\x31\x7a\x26\xab" |
| 29446 | "\xa1\x70\x1b\x9c\xe7\xdd\x83\xff", |
| 29447 | .ilen = 16, |
| 29448 | .result = "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29449 | "\x38\x39\x41\x42\x43\x44\x45\x46", |
| 29450 | .rlen = 16, |
| 29451 | }, { |
| 29452 | .key = "\xf8\xd4\x76\xff\xd6\x46\xee\x6c" |
| 29453 | "\x23\x84\xcb\x1c\x77\xd6\x19\x5d" |
| 29454 | "\xfe\xf1\xa9\xf3\x7b\xbc\x8d\x21" |
| 29455 | "\xa7\x9c\x21\xf8\xcb\x90\x02\x89" |
| 29456 | "\xa8\x45\x34\x8e\xc8\xc5\xb5\xf1" |
| 29457 | "\x26\xf5\x0e\x76\xfe\xfd\x1b\x1e", |
| 29458 | .klen = 48, |
| 29459 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29460 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 29461 | .input = "\x90\x69\x8e\xf2\x14\x86\x59\xf9" |
| 29462 | "\xec\xe7\xfa\x3f\x48\x9d\x7f\x96" |
| 29463 | "\x67\x76\xac\x2c\xd2\x63\x18\x93" |
| 29464 | "\x13\xf8\xf1\xf6\x71\x77\xb3\xee" |
| 29465 | "\x93\xb2\xcc\xf3\x26\xc1\x16\x4f" |
| 29466 | "\xd4\xe8\x43\xc1\x68\xa3\x3e\x06" |
| 29467 | "\x38\x51\xff\xa8\xb9\xa4\xeb\xb1" |
| 29468 | "\x62\xdd\x78\x81\xea\x1d\xef\x04" |
| 29469 | "\x1d\x07\xc1\x67\xc8\xd6\x77\xa1" |
| 29470 | "\x84\x95\xf4\x9a\xd9\xbc\x2d\xe2" |
| 29471 | "\xf6\x80\xfc\x91\x2a\xbc\x42\xa0" |
| 29472 | "\x40\x41\x69\xaa\x71\xc0\x37\xec" |
| 29473 | "\x39\xf3\xf2\xec\x82\xc3\x88\x79" |
| 29474 | "\xbc\xc3\xaa\xb7\xcf\x6a\x72\x80" |
| 29475 | "\x4c\xf4\x84\x8f\x13\x9e\x94\x5c" |
| 29476 | "\xe5\xb2\x91\xbb\x92\x51\x4d\xf1" |
| 29477 | "\xd6\x0d\x71\x6b\x7a\xc2\x2f\x12" |
| 29478 | "\x6f\x75\xc7\x80\x99\x50\x84\xcf" |
| 29479 | "\xa8\xeb\xd6\xe1\x1c\x59\x81\x7e" |
| 29480 | "\xb9\xb3\xde\x7a\x93\x14\x12\xa2" |
| 29481 | "\xf7\x43\xb3\x9d\x1a\x87\x65\x91" |
| 29482 | "\x42\x08\x40\x82\x06\x1c\x2d\x55" |
| 29483 | "\x6e\x48\xd5\x74\x07\x6e\x9d\x80" |
| 29484 | "\xeb\xb4\x97\xa1\x36\xdf\xfa\x74" |
| 29485 | "\x79\x7f\x5a\x75\xe7\x71\xc8\x8c" |
| 29486 | "\x7e\xf8\x3a\x77\xcd\x32\x05\xf9" |
| 29487 | "\x3d\xd4\xe9\xa2\xbb\xc4\x8b\x83" |
| 29488 | "\x42\x5c\x82\xfa\xe9\x4b\x96\x3b" |
| 29489 | "\x7f\x89\x8b\xf9\xf1\x87\xda\xf0" |
| 29490 | "\x87\xef\x13\x5d\xf0\xe2\xc5\xc1" |
| 29491 | "\xed\x14\xa9\x57\x19\x63\x40\x04" |
| 29492 | "\x24\xeb\x6e\x19\xd1\x3d\x70\x78" |
| 29493 | "\xeb\xda\x55\x70\x2c\x4f\x41\x5b" |
| 29494 | "\x56\x9f\x1a\xd3\xac\xf1\xc0\xc3" |
| 29495 | "\x21\xec\xd7\xd2\x55\x32\x7c\x2e" |
| 29496 | "\x3c\x48\x8e\xb4\x85\x35\x47\xfe" |
| 29497 | "\xe2\x88\x79\x98\x6a\xc9\x8d\xff" |
| 29498 | "\xe9\x89\x6e\xb8\xe2\x97\x00\xbd" |
| 29499 | "\xa4\x8f\xba\xd0\x8c\xcb\x79\x99" |
| 29500 | "\xb3\xb2\xb2\x7a\xc3\xb7\xef\x75" |
| 29501 | "\x23\x52\x76\xc3\x50\x6e\x66\xf8" |
| 29502 | "\xa2\xe2\xce\xba\x40\x21\x3f\xc9" |
| 29503 | "\x0a\x32\x7f\xf7\x08\x8c\x66\xcf" |
| 29504 | "\xd3\xdf\x57\x59\x83\xb8\xe1\x85" |
| 29505 | "\xd6\x8f\xfb\x48\x1f\x3a\xc4\x2f" |
| 29506 | "\xb4\x2d\x58\xab\xd8\x7f\x5e\x3a" |
| 29507 | "\xbc\x62\x3e\xe2\x6a\x52\x0d\x76" |
| 29508 | "\x2f\x1c\x1a\x30\xed\x95\x2a\x44" |
| 29509 | "\x35\xa5\x83\x04\x84\x01\x99\x56" |
| 29510 | "\xb7\xe3\x10\x96\xfa\xdc\x19\xdd" |
| 29511 | "\xe2\x7f\xcb\xa0\x49\x1b\xff\x4c" |
| 29512 | "\x73\xf6\xbb\x94\x00\xe8\xa9\x3d" |
| 29513 | "\xe2\x20\xe9\x3f\xfa\x07\x5d\x77" |
| 29514 | "\x06\xd5\x4f\x4d\x02\xb8\x40\x1b" |
| 29515 | "\x30\xed\x1a\x50\x19\xef\xc4\x2c" |
| 29516 | "\x02\xd9\xc5\xd3\x11\x33\x37\xe5" |
| 29517 | "\x2b\xa3\x95\xa6\xee\xd8\x74\x1d" |
| 29518 | "\x68\xa0\xeb\xbf\xdd\x5e\x99\x96" |
| 29519 | "\x91\xc3\x94\x24\xa5\x12\xa2\x37" |
| 29520 | "\xb3\xac\xcf\x2a\xfd\x55\x34\xfe" |
| 29521 | "\x79\x92\x3e\xe6\x1b\x49\x57\x5d" |
| 29522 | "\x93\x6c\x01\xf7\xcc\x4e\x20\xd1" |
| 29523 | "\xb2\x1a\xd8\x4c\xbd\x1d\x10\xe9" |
| 29524 | "\x5a\xa8\x92\x7f\xba\xe6\x0c\x95", |
| 29525 | .ilen = 512, |
| 29526 | .result = "\x05\x11\xb7\x18\xab\xc6\x2d\xac" |
| 29527 | "\x70\x5d\xf6\x22\x94\xcd\xe5\x6c" |
| 29528 | "\x17\x6b\xf6\x1c\xf0\xf3\x6e\xf8" |
| 29529 | "\x50\x38\x1f\x71\x49\xb6\x57\xd6" |
| 29530 | "\x8f\xcb\x8d\x6b\xe3\xa6\x29\x90" |
| 29531 | "\xfe\x2a\x62\x82\xae\x6d\x8b\xf6" |
| 29532 | "\xad\x1e\x9e\x20\x5f\x38\xbe\x04" |
| 29533 | "\xda\x10\x8e\xed\xa2\xa4\x87\xab" |
| 29534 | "\xda\x6b\xb4\x0c\x75\xba\xd3\x7c" |
| 29535 | "\xc9\xac\x42\x31\x95\x7c\xc9\x04" |
| 29536 | "\xeb\xd5\x6e\x32\x69\x8a\xdb\xa6" |
| 29537 | "\x15\xd7\x3f\x4f\x2f\x66\x69\x03" |
| 29538 | "\x9c\x1f\x54\x0f\xde\x1f\xf3\x65" |
| 29539 | "\x4c\x96\x12\xed\x7c\x92\x03\x01" |
| 29540 | "\x6f\xbc\x35\x93\xac\xf1\x27\xf1" |
| 29541 | "\xb4\x96\x82\x5a\x5f\xb0\xa0\x50" |
| 29542 | "\x89\xa4\x8e\x66\x44\x85\xcc\xfd" |
| 29543 | "\x33\x14\x70\xe3\x96\xb2\xc3\xd3" |
| 29544 | "\xbb\x54\x5a\x1a\xf9\x74\xa2\xc5" |
| 29545 | "\x2d\x64\x75\xdd\xb4\x54\xe6\x74" |
| 29546 | "\x8c\xd3\x9d\x9e\x86\xab\x51\x53" |
| 29547 | "\xb7\x93\x3e\x6f\xd0\x4e\x2c\x40" |
| 29548 | "\xf6\xa8\x2e\x3e\x9d\xf4\x66\xa5" |
| 29549 | "\x76\x12\x73\x44\x1a\x56\xd7\x72" |
| 29550 | "\x88\xcd\x21\x8c\x4c\x0f\xfe\xda" |
| 29551 | "\x95\xe0\x3a\xa6\xa5\x84\x46\xcd" |
| 29552 | "\xd5\x3e\x9d\x3a\xe2\x67\xe6\x60" |
| 29553 | "\x1a\xe2\x70\x85\x58\xc2\x1b\x09" |
| 29554 | "\xe1\xd7\x2c\xca\xad\xa8\x8f\xf9" |
| 29555 | "\xac\xb3\x0e\xdb\xca\x2e\xe2\xb8" |
| 29556 | "\x51\x71\xd9\x3c\x6c\xf1\x56\xf8" |
| 29557 | "\xea\x9c\xf1\xfb\x0c\xe6\xb7\x10" |
| 29558 | "\x1c\xf8\xa9\x7c\xe8\x53\x35\xc1" |
| 29559 | "\x90\x3e\x76\x4a\x74\xa4\x21\x2c" |
| 29560 | "\xf6\x2c\x4e\x0f\x94\x3a\x88\x2e" |
| 29561 | "\x41\x09\x6a\x33\x7d\xf6\xdd\x3f" |
| 29562 | "\x8d\x23\x31\x74\x84\xeb\x88\x6e" |
| 29563 | "\xcc\xb9\xbc\x22\x83\x19\x07\x22" |
| 29564 | "\xa5\x2d\xdf\xa5\xf3\x80\x85\x78" |
| 29565 | "\x84\x39\x6a\x6d\x6a\x99\x4f\xa5" |
| 29566 | "\x15\xfe\x46\xb0\xe4\x6c\xa5\x41" |
| 29567 | "\x3c\xce\x8f\x42\x60\x71\xa7\x75" |
| 29568 | "\x08\x40\x65\x8a\x82\xbf\xf5\x43" |
| 29569 | "\x71\x96\xa9\x4d\x44\x8a\x20\xbe" |
| 29570 | "\xfa\x4d\xbb\xc0\x7d\x31\x96\x65" |
| 29571 | "\xe7\x75\xe5\x3e\xfd\x92\x3b\xc9" |
| 29572 | "\x55\xbb\x16\x7e\xf7\xc2\x8c\xa4" |
| 29573 | "\x40\x1d\xe5\xef\x0e\xdf\xe4\x9a" |
| 29574 | "\x62\x73\x65\xfd\x46\x63\x25\x3d" |
| 29575 | "\x2b\xaf\xe5\x64\xfe\xa5\x5c\xcf" |
| 29576 | "\x24\xf3\xb4\xac\x64\xba\xdf\x4b" |
| 29577 | "\xc6\x96\x7d\x81\x2d\x8d\x97\xf7" |
| 29578 | "\xc5\x68\x77\x84\x32\x2b\xcc\x85" |
| 29579 | "\x74\x96\xf0\x12\x77\x61\xb9\xeb" |
| 29580 | "\x71\xaa\x82\xcb\x1c\xdb\x89\xc8" |
| 29581 | "\xc6\xb5\xe3\x5c\x7d\x39\x07\x24" |
| 29582 | "\xda\x39\x87\x45\xc0\x2b\xbb\x01" |
| 29583 | "\xac\xbc\x2a\x5c\x7f\xfc\xe8\xce" |
| 29584 | "\x6d\x9c\x6f\xed\xd3\xc1\xa1\xd6" |
| 29585 | "\xc5\x55\xa9\x66\x2f\xe1\xc8\x32" |
| 29586 | "\xa6\x5d\xa4\x3a\x98\x73\xe8\x45" |
| 29587 | "\xa4\xc7\xa8\xb4\xf6\x13\x03\xf6" |
| 29588 | "\xe9\x2e\xc4\x29\x0f\x84\xdb\xc4" |
| 29589 | "\x21\xc4\xc2\x75\x67\x89\x37\x0a", |
| 29590 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 29591 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 29592 | .np = 3, |
| 29593 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29594 | }, |
| 29595 | }; |
| 29596 | |
| 29597 | static struct cipher_testvec camellia_xts_enc_tv_template[] = { |
| 29598 | /* Generated from AES-XTS test vectors */ |
| 29599 | { |
| 29600 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29601 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29602 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29603 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29604 | .klen = 32, |
| 29605 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29606 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29607 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29608 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29609 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29610 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29611 | .ilen = 32, |
| 29612 | .result = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41" |
| 29613 | "\xdc\xca\xfa\x09\xba\x74\xb9\x05" |
| 29614 | "\x78\xba\xa4\xf8\x67\x4d\x7e\xad" |
| 29615 | "\x20\x18\xf5\x0c\x41\x16\x2a\x61", |
| 29616 | .rlen = 32, |
| 29617 | }, { |
| 29618 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 29619 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 29620 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 29621 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 29622 | .klen = 32, |
| 29623 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 29624 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29625 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29626 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29627 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29628 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 29629 | .ilen = 32, |
| 29630 | .result = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86" |
| 29631 | "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f" |
| 29632 | "\xb5\x37\x06\xff\xbd\xd4\x91\x70" |
| 29633 | "\x80\x1f\xb2\x39\x10\x89\x44\xf5", |
| 29634 | .rlen = 32, |
| 29635 | }, { |
| 29636 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 29637 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 29638 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 29639 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 29640 | .klen = 32, |
| 29641 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 29642 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29643 | .input = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29644 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29645 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29646 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 29647 | .ilen = 32, |
| 29648 | .result = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e" |
| 29649 | "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7" |
| 29650 | "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a" |
| 29651 | "\x35\x3c\x6b\xb5\x61\x1c\x79\x38", |
| 29652 | .rlen = 32, |
| 29653 | }, { |
| 29654 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 29655 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 29656 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 29657 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 29658 | .klen = 32, |
| 29659 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29660 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29661 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 29662 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 29663 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 29664 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 29665 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 29666 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 29667 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29668 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 29669 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 29670 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 29671 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 29672 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 29673 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 29674 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 29675 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 29676 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 29677 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 29678 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 29679 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 29680 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 29681 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 29682 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 29683 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 29684 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 29685 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 29686 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 29687 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 29688 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 29689 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 29690 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 29691 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 29692 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 29693 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 29694 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 29695 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 29696 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 29697 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 29698 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 29699 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29700 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 29701 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 29702 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 29703 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 29704 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 29705 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 29706 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 29707 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 29708 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 29709 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 29710 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 29711 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 29712 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 29713 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 29714 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 29715 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 29716 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 29717 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 29718 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 29719 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 29720 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 29721 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 29722 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 29723 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 29724 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 29725 | .ilen = 512, |
| 29726 | .result = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33" |
| 29727 | "\x60\xc3\xe9\x47\x90\xb7\x50\x57" |
| 29728 | "\xa3\xad\x81\x2f\xf5\x22\x96\x02" |
| 29729 | "\xaa\x7f\xea\xac\x29\x78\xca\x2a" |
| 29730 | "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73" |
| 29731 | "\x09\x66\xad\x72\x0e\x4d\x5d\x77" |
| 29732 | "\xbc\xb8\x76\x80\x37\x59\xa9\x01" |
| 29733 | "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d" |
| 29734 | "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01" |
| 29735 | "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8" |
| 29736 | "\x08\xda\x76\x00\x65\xcf\x7b\x31" |
| 29737 | "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e" |
| 29738 | "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5" |
| 29739 | "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04" |
| 29740 | "\xfb\x54\xdd\x29\x27\xc2\x65\x17" |
| 29741 | "\x36\x88\xb0\x85\x8d\x73\x7e\x4b" |
| 29742 | "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4" |
| 29743 | "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f" |
| 29744 | "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3" |
| 29745 | "\x6c\xee\xac\xdc\x45\x58\xca\x5b" |
| 29746 | "\x70\x0e\x6a\x12\x86\x82\x79\x9f" |
| 29747 | "\x16\xd4\x9d\x67\xcd\x70\x65\x26" |
| 29748 | "\x21\x72\x1e\xa1\x94\x8a\x83\x0c" |
| 29749 | "\x92\x42\x58\x5e\xa2\xc5\x31\xf3" |
| 29750 | "\x7b\xd1\x31\xd4\x15\x80\x31\x61" |
| 29751 | "\x5c\x53\x10\xdd\xea\xc8\x83\x5c" |
| 29752 | "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05" |
| 29753 | "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5" |
| 29754 | "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9" |
| 29755 | "\x16\x31\xb2\x47\x91\x67\xaa\x28" |
| 29756 | "\x2c\x29\x85\xa3\xf7\xf2\x24\x93" |
| 29757 | "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc" |
| 29758 | "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec" |
| 29759 | "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e" |
| 29760 | "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66" |
| 29761 | "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7" |
| 29762 | "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d" |
| 29763 | "\xf8\x89\xcd\x20\x27\x84\x5d\x5c" |
| 29764 | "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3" |
| 29765 | "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7" |
| 29766 | "\x3f\x43\xcc\x86\x71\x34\x6a\xd9" |
| 29767 | "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe" |
| 29768 | "\x18\x41\xdc\x9e\x2e\x75\x20\x3e" |
| 29769 | "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c" |
| 29770 | "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71" |
| 29771 | "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e" |
| 29772 | "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9" |
| 29773 | "\x34\xb8\x27\x74\x08\xda\xf2\x4a" |
| 29774 | "\x23\x5b\x9f\x55\x3a\x57\x82\x52" |
| 29775 | "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc" |
| 29776 | "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49" |
| 29777 | "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2" |
| 29778 | "\x96\x0b\x35\x84\x05\x0d\xd6\x2a" |
| 29779 | "\xea\x5a\xbf\x69\xde\xee\x4f\x8f" |
| 29780 | "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8" |
| 29781 | "\x96\xef\x0f\x0e\xec\xc7\xa6\x74" |
| 29782 | "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15" |
| 29783 | "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1" |
| 29784 | "\x5b\xb6\x71\xda\xb0\x0c\xba\x26" |
| 29785 | "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d" |
| 29786 | "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33" |
| 29787 | "\xcc\x06\xdb\xe7\x82\x29\x63\xd1" |
| 29788 | "\x52\x84\x4f\xee\x27\xe8\x02\xd4" |
| 29789 | "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a", |
| 29790 | .rlen = 512, |
| 29791 | }, { |
| 29792 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 29793 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 29794 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 29795 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 29796 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 29797 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 29798 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 29799 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 29800 | .klen = 64, |
| 29801 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 29802 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29803 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 29804 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 29805 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 29806 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 29807 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 29808 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 29809 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29810 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 29811 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 29812 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 29813 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 29814 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 29815 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 29816 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 29817 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 29818 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 29819 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 29820 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 29821 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 29822 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 29823 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 29824 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 29825 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 29826 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 29827 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 29828 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 29829 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 29830 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 29831 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 29832 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 29833 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 29834 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 29835 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 29836 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 29837 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 29838 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 29839 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 29840 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 29841 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 29842 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 29843 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 29844 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 29845 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 29846 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 29847 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 29848 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 29849 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 29850 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 29851 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 29852 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 29853 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 29854 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 29855 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 29856 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 29857 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 29858 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 29859 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 29860 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 29861 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 29862 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 29863 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 29864 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 29865 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 29866 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 29867 | .ilen = 512, |
| 29868 | .result = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28" |
| 29869 | "\x9a\x7f\x6e\x57\x55\xb8\x07\x88" |
| 29870 | "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b" |
| 29871 | "\xf1\x74\xac\x96\x05\x7b\x32\xca" |
| 29872 | "\xd1\x4e\xf1\x58\x29\x16\x24\x6c" |
| 29873 | "\xf2\xb3\xe4\x88\x84\xac\x4d\xee" |
| 29874 | "\x97\x07\x82\xf0\x07\x12\x38\x0a" |
| 29875 | "\x67\x62\xaf\xfd\x85\x9f\x0a\x55" |
| 29876 | "\xa5\x20\xc5\x60\xe4\x68\x53\xa4" |
| 29877 | "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c" |
| 29878 | "\x1c\x01\x4f\x55\xa9\x13\xeb\x25" |
| 29879 | "\x21\x87\xbc\xd3\xe7\x67\x4f\x38" |
| 29880 | "\xa8\x14\x25\x71\xe9\x2e\x4c\x21" |
| 29881 | "\x41\x82\x0c\x45\x39\x35\xa8\x75" |
| 29882 | "\x03\x29\x01\x84\x8c\xab\x48\xbe" |
| 29883 | "\x11\x56\x22\x67\xb7\x67\x1a\x09" |
| 29884 | "\xa1\x72\x25\x41\x3c\x39\x65\x80" |
| 29885 | "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d" |
| 29886 | "\xdd\x16\x8b\x63\x70\x4e\xc5\x17" |
| 29887 | "\x21\xe0\x84\x51\x4b\x6f\x05\x52" |
| 29888 | "\xe3\x63\x34\xfa\xa4\xaf\x33\x20" |
| 29889 | "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76" |
| 29890 | "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b" |
| 29891 | "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0" |
| 29892 | "\xb8\x8a\x13\x88\x71\xf4\x11\xa5" |
| 29893 | "\xe9\xa9\x10\x33\xe0\xbe\x49\x89" |
| 29894 | "\x41\x22\xf5\x9d\x80\x3e\x3b\x76" |
| 29895 | "\x01\x16\x50\x6e\x7c\x6a\x81\xe9" |
| 29896 | "\x13\x2c\xde\xb2\x5f\x79\xba\xb2" |
| 29897 | "\xb1\x75\xae\xd2\x07\x98\x4b\x69" |
| 29898 | "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98" |
| 29899 | "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a" |
| 29900 | "\x0d\x23\xb1\x79\x25\x13\x4b\xe5" |
| 29901 | "\xaf\x93\x20\x5c\x7f\x06\x7a\x34" |
| 29902 | "\x0b\x78\xe3\x67\x26\xe0\xad\x95" |
| 29903 | "\xc5\x4e\x26\x22\xcf\x73\x77\x62" |
| 29904 | "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9" |
| 29905 | "\xef\x38\x52\x18\x0e\x29\x7e\xef" |
| 29906 | "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2" |
| 29907 | "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d" |
| 29908 | "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe" |
| 29909 | "\x96\xcd\x41\x10\x78\x4e\x0c\xc9" |
| 29910 | "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab" |
| 29911 | "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa" |
| 29912 | "\x9d\x70\xbe\x4c\xa8\x98\x89\x01" |
| 29913 | "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa" |
| 29914 | "\x89\xf5\x14\x79\x18\x8f\x3b\x0d" |
| 29915 | "\x21\x17\xf8\x59\x15\x24\x64\x22" |
| 29916 | "\x57\x48\x80\xd5\x3d\x92\x30\x07" |
| 29917 | "\xd9\xa1\x4a\x23\x16\x43\x48\x0e" |
| 29918 | "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa" |
| 29919 | "\x49\xbc\x7e\x68\x6e\xa8\x46\x95" |
| 29920 | "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d" |
| 29921 | "\x6b\x84\xf3\x00\xba\x52\x05\x02" |
| 29922 | "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3" |
| 29923 | "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d" |
| 29924 | "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0" |
| 29925 | "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66" |
| 29926 | "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89" |
| 29927 | "\xf5\x21\x0f\x02\x48\x83\x74\xbf" |
| 29928 | "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b" |
| 29929 | "\xb1\x02\x0a\x5c\x79\x19\x3b\x75" |
| 29930 | "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e" |
| 29931 | "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95", |
| 29932 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 29933 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 29934 | .np = 3, |
| 29935 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 29936 | }, |
| 29937 | }; |
| 29938 | |
| 29939 | static struct cipher_testvec camellia_xts_dec_tv_template[] = { |
| 29940 | /* Generated from AES-XTS test vectors */ |
| 29941 | /* same as enc vectors with input and result reversed */ |
| 29942 | { |
| 29943 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29944 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29945 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29946 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29947 | .klen = 32, |
| 29948 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29949 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29950 | .input = "\x06\xcb\xa5\xf1\x04\x63\xb2\x41" |
| 29951 | "\xdc\xca\xfa\x09\xba\x74\xb9\x05" |
| 29952 | "\x78\xba\xa4\xf8\x67\x4d\x7e\xad" |
| 29953 | "\x20\x18\xf5\x0c\x41\x16\x2a\x61", |
| 29954 | .ilen = 32, |
| 29955 | .result = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29956 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29957 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 29958 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29959 | .rlen = 32, |
| 29960 | }, { |
| 29961 | .key = "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 29962 | "\x11\x11\x11\x11\x11\x11\x11\x11" |
| 29963 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 29964 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 29965 | .klen = 32, |
| 29966 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 29967 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29968 | .input = "\xc2\xb9\xdc\x44\x1d\xdf\xf2\x86" |
| 29969 | "\x8d\x35\x42\x0a\xa5\x5e\x3d\x4f" |
| 29970 | "\xb5\x37\x06\xff\xbd\xd4\x91\x70" |
| 29971 | "\x80\x1f\xb2\x39\x10\x89\x44\xf5", |
| 29972 | .ilen = 32, |
| 29973 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29974 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29975 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29976 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 29977 | .rlen = 32, |
| 29978 | }, { |
| 29979 | .key = "\xff\xfe\xfd\xfc\xfb\xfa\xf9\xf8" |
| 29980 | "\xf7\xf6\xf5\xf4\xf3\xf2\xf1\xf0" |
| 29981 | "\x22\x22\x22\x22\x22\x22\x22\x22" |
| 29982 | "\x22\x22\x22\x22\x22\x22\x22\x22", |
| 29983 | .klen = 32, |
| 29984 | .iv = "\x33\x33\x33\x33\x33\x00\x00\x00" |
| 29985 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 29986 | .input = "\x52\x1f\x9d\xf5\x5a\x58\x5a\x7e" |
| 29987 | "\x9f\xd0\x8e\x02\x9c\x9a\x6a\xa7" |
| 29988 | "\xb4\x3b\xce\xe7\x17\xaa\x89\x6a" |
| 29989 | "\x35\x3c\x6b\xb5\x61\x1c\x79\x38", |
| 29990 | .ilen = 32, |
| 29991 | .result = "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29992 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29993 | "\x44\x44\x44\x44\x44\x44\x44\x44" |
| 29994 | "\x44\x44\x44\x44\x44\x44\x44\x44", |
| 29995 | .rlen = 32, |
| 29996 | }, { |
| 29997 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 29998 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 29999 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 30000 | "\x23\x84\x62\x64\x33\x83\x27\x95", |
| 30001 | .klen = 32, |
| 30002 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30003 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 30004 | .input = "\xc7\xf9\x0a\xaa\xcb\xb5\x8f\x33" |
| 30005 | "\x60\xc3\xe9\x47\x90\xb7\x50\x57" |
| 30006 | "\xa3\xad\x81\x2f\xf5\x22\x96\x02" |
| 30007 | "\xaa\x7f\xea\xac\x29\x78\xca\x2a" |
| 30008 | "\x7c\xcd\x31\x1a\x3c\x40\x0a\x73" |
| 30009 | "\x09\x66\xad\x72\x0e\x4d\x5d\x77" |
| 30010 | "\xbc\xb8\x76\x80\x37\x59\xa9\x01" |
| 30011 | "\x9e\xfb\xdb\x6c\x93\xef\xb6\x8d" |
| 30012 | "\x1e\xc1\x94\xa8\xd4\xb5\xb0\x01" |
| 30013 | "\xd5\x01\x97\x28\xcd\x7a\x1f\xe8" |
| 30014 | "\x08\xda\x76\x00\x65\xcf\x7b\x31" |
| 30015 | "\xc6\xfa\xf2\x3b\x00\xa7\x6a\x9e" |
| 30016 | "\x6c\x43\x80\x87\xe0\xbb\x4e\xe5" |
| 30017 | "\xdc\x8a\xdf\xc3\x1d\x1b\x41\x04" |
| 30018 | "\xfb\x54\xdd\x29\x27\xc2\x65\x17" |
| 30019 | "\x36\x88\xb0\x85\x8d\x73\x7e\x4b" |
| 30020 | "\x1d\x16\x8a\x52\xbc\xa6\xbc\xa4" |
| 30021 | "\x8c\xd1\x04\x16\xbf\x8c\x01\x0f" |
| 30022 | "\x7e\x6b\x59\x15\x29\xd1\x9b\xd3" |
| 30023 | "\x6c\xee\xac\xdc\x45\x58\xca\x5b" |
| 30024 | "\x70\x0e\x6a\x12\x86\x82\x79\x9f" |
| 30025 | "\x16\xd4\x9d\x67\xcd\x70\x65\x26" |
| 30026 | "\x21\x72\x1e\xa1\x94\x8a\x83\x0c" |
| 30027 | "\x92\x42\x58\x5e\xa2\xc5\x31\xf3" |
| 30028 | "\x7b\xd1\x31\xd4\x15\x80\x31\x61" |
| 30029 | "\x5c\x53\x10\xdd\xea\xc8\x83\x5c" |
| 30030 | "\x7d\xa7\x05\x66\xcc\x1e\xbb\x05" |
| 30031 | "\x47\xae\xb4\x0f\x84\xd8\xf6\xb5" |
| 30032 | "\xa1\xc6\x52\x00\x52\xe8\xdc\xd9" |
| 30033 | "\x16\x31\xb2\x47\x91\x67\xaa\x28" |
| 30034 | "\x2c\x29\x85\xa3\xf7\xf2\x24\x93" |
| 30035 | "\x23\x80\x1f\xa8\x1b\x82\x8d\xdc" |
| 30036 | "\x9f\x0b\xcd\xb4\x3c\x20\xbc\xec" |
| 30037 | "\x4f\xc7\xee\xf8\xfd\xd9\xfb\x7e" |
| 30038 | "\x3f\x0d\x23\xfa\x3f\xa7\xcc\x66" |
| 30039 | "\x1c\xfe\xa6\x86\xf6\xf7\x85\xc7" |
| 30040 | "\x43\xc1\xd4\xfc\xe4\x79\xc9\x1d" |
| 30041 | "\xf8\x89\xcd\x20\x27\x84\x5d\x5c" |
| 30042 | "\x8e\x4f\x1f\xeb\x08\x21\x4f\xa3" |
| 30043 | "\xe0\x7e\x0b\x9c\xe7\x42\xcf\xb7" |
| 30044 | "\x3f\x43\xcc\x86\x71\x34\x6a\xd9" |
| 30045 | "\x5e\xec\x8f\x36\xc9\x0a\x03\xfe" |
| 30046 | "\x18\x41\xdc\x9e\x2e\x75\x20\x3e" |
| 30047 | "\xcc\x77\xe0\x8f\xe8\x43\x37\x4c" |
| 30048 | "\xed\x1a\x5a\xb3\xfa\x43\xc9\x71" |
| 30049 | "\x9f\xc5\xce\xcf\xff\xe7\x77\x1e" |
| 30050 | "\x35\x93\xde\x6b\xc0\x6a\x7e\xa9" |
| 30051 | "\x34\xb8\x27\x74\x08\xda\xf2\x4a" |
| 30052 | "\x23\x5b\x9f\x55\x3a\x57\x82\x52" |
| 30053 | "\xea\x6d\xc3\xc7\xf2\xc8\xb5\xdc" |
| 30054 | "\xc5\xb9\xbb\xaa\xf2\x29\x9f\x49" |
| 30055 | "\x7a\xef\xfe\xdc\x9f\xc9\x28\xe2" |
| 30056 | "\x96\x0b\x35\x84\x05\x0d\xd6\x2a" |
| 30057 | "\xea\x5a\xbf\x69\xde\xee\x4f\x8f" |
| 30058 | "\x84\xb9\xcf\xa7\x57\xea\xe0\xe8" |
| 30059 | "\x96\xef\x0f\x0e\xec\xc7\xa6\x74" |
| 30060 | "\xb1\xfe\x7a\x6d\x11\xdd\x0e\x15" |
| 30061 | "\x4a\x1e\x73\x7f\x55\xea\xf6\xe1" |
| 30062 | "\x5b\xb6\x71\xda\xb0\x0c\xba\x26" |
| 30063 | "\x5c\x48\x38\x6d\x1c\x32\xb2\x7d" |
| 30064 | "\x05\x87\xc2\x1e\x7e\x2d\xd4\x33" |
| 30065 | "\xcc\x06\xdb\xe7\x82\x29\x63\xd1" |
| 30066 | "\x52\x84\x4f\xee\x27\xe8\x02\xd4" |
| 30067 | "\x34\x3c\x69\xc2\xbd\x20\xe6\x7a", |
| 30068 | .ilen = 512, |
| 30069 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30070 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 30071 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 30072 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 30073 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 30074 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 30075 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 30076 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 30077 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 30078 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 30079 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 30080 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 30081 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 30082 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 30083 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 30084 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 30085 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 30086 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 30087 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 30088 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 30089 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 30090 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 30091 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 30092 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 30093 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 30094 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 30095 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 30096 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 30097 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 30098 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 30099 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 30100 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 30101 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30102 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 30103 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 30104 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 30105 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 30106 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 30107 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 30108 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 30109 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 30110 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 30111 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 30112 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 30113 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 30114 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 30115 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 30116 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 30117 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 30118 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 30119 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 30120 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 30121 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 30122 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 30123 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 30124 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 30125 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 30126 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 30127 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 30128 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 30129 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 30130 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 30131 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 30132 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 30133 | .rlen = 512, |
| 30134 | }, { |
| 30135 | .key = "\x27\x18\x28\x18\x28\x45\x90\x45" |
| 30136 | "\x23\x53\x60\x28\x74\x71\x35\x26" |
| 30137 | "\x62\x49\x77\x57\x24\x70\x93\x69" |
| 30138 | "\x99\x59\x57\x49\x66\x96\x76\x27" |
| 30139 | "\x31\x41\x59\x26\x53\x58\x97\x93" |
| 30140 | "\x23\x84\x62\x64\x33\x83\x27\x95" |
| 30141 | "\x02\x88\x41\x97\x16\x93\x99\x37" |
| 30142 | "\x51\x05\x82\x09\x74\x94\x45\x92", |
| 30143 | .klen = 64, |
| 30144 | .iv = "\xff\x00\x00\x00\x00\x00\x00\x00" |
| 30145 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 30146 | .input = "\x49\xcd\xb8\xbf\x2f\x73\x37\x28" |
| 30147 | "\x9a\x7f\x6e\x57\x55\xb8\x07\x88" |
| 30148 | "\x4a\x0d\x8b\x55\x60\xed\xb6\x7b" |
| 30149 | "\xf1\x74\xac\x96\x05\x7b\x32\xca" |
| 30150 | "\xd1\x4e\xf1\x58\x29\x16\x24\x6c" |
| 30151 | "\xf2\xb3\xe4\x88\x84\xac\x4d\xee" |
| 30152 | "\x97\x07\x82\xf0\x07\x12\x38\x0a" |
| 30153 | "\x67\x62\xaf\xfd\x85\x9f\x0a\x55" |
| 30154 | "\xa5\x20\xc5\x60\xe4\x68\x53\xa4" |
| 30155 | "\x0e\x2e\x65\xe3\xe4\x0c\x30\x7c" |
| 30156 | "\x1c\x01\x4f\x55\xa9\x13\xeb\x25" |
| 30157 | "\x21\x87\xbc\xd3\xe7\x67\x4f\x38" |
| 30158 | "\xa8\x14\x25\x71\xe9\x2e\x4c\x21" |
| 30159 | "\x41\x82\x0c\x45\x39\x35\xa8\x75" |
| 30160 | "\x03\x29\x01\x84\x8c\xab\x48\xbe" |
| 30161 | "\x11\x56\x22\x67\xb7\x67\x1a\x09" |
| 30162 | "\xa1\x72\x25\x41\x3c\x39\x65\x80" |
| 30163 | "\x7d\x2f\xf8\x2c\x73\x04\x58\x9d" |
| 30164 | "\xdd\x16\x8b\x63\x70\x4e\xc5\x17" |
| 30165 | "\x21\xe0\x84\x51\x4b\x6f\x05\x52" |
| 30166 | "\xe3\x63\x34\xfa\xa4\xaf\x33\x20" |
| 30167 | "\xc1\xae\x32\xc4\xb8\x2b\xdb\x76" |
| 30168 | "\xd9\x02\x31\x2f\xa3\xc6\xd0\x7b" |
| 30169 | "\xaf\x1b\x84\xe3\x9b\xbf\xa6\xe0" |
| 30170 | "\xb8\x8a\x13\x88\x71\xf4\x11\xa5" |
| 30171 | "\xe9\xa9\x10\x33\xe0\xbe\x49\x89" |
| 30172 | "\x41\x22\xf5\x9d\x80\x3e\x3b\x76" |
| 30173 | "\x01\x16\x50\x6e\x7c\x6a\x81\xe9" |
| 30174 | "\x13\x2c\xde\xb2\x5f\x79\xba\xb2" |
| 30175 | "\xb1\x75\xae\xd2\x07\x98\x4b\x69" |
| 30176 | "\xae\x7d\x5b\x90\xc2\x6c\xe6\x98" |
| 30177 | "\xd3\x4c\xa1\xa3\x9c\xc9\x33\x6a" |
| 30178 | "\x0d\x23\xb1\x79\x25\x13\x4b\xe5" |
| 30179 | "\xaf\x93\x20\x5c\x7f\x06\x7a\x34" |
| 30180 | "\x0b\x78\xe3\x67\x26\xe0\xad\x95" |
| 30181 | "\xc5\x4e\x26\x22\xcf\x73\x77\x62" |
| 30182 | "\x3e\x10\xd7\x90\x4b\x52\x1c\xc9" |
| 30183 | "\xef\x38\x52\x18\x0e\x29\x7e\xef" |
| 30184 | "\x34\xfe\x31\x95\xc5\xbc\xa8\xe2" |
| 30185 | "\xa8\x4e\x9f\xea\xa6\xf0\xfe\x5d" |
| 30186 | "\xc5\x39\x86\xed\x2f\x6d\xa0\xfe" |
| 30187 | "\x96\xcd\x41\x10\x78\x4e\x0c\xc9" |
| 30188 | "\xc3\x6d\x0f\xb7\xe8\xe0\x62\xab" |
| 30189 | "\x8b\xf1\x21\x89\xa1\x12\xaa\xfa" |
| 30190 | "\x9d\x70\xbe\x4c\xa8\x98\x89\x01" |
| 30191 | "\xb9\xe2\x61\xde\x0c\x4a\x0b\xaa" |
| 30192 | "\x89\xf5\x14\x79\x18\x8f\x3b\x0d" |
| 30193 | "\x21\x17\xf8\x59\x15\x24\x64\x22" |
| 30194 | "\x57\x48\x80\xd5\x3d\x92\x30\x07" |
| 30195 | "\xd9\xa1\x4a\x23\x16\x43\x48\x0e" |
| 30196 | "\x2b\x2d\x1b\x87\xef\x7e\xbd\xfa" |
| 30197 | "\x49\xbc\x7e\x68\x6e\xa8\x46\x95" |
| 30198 | "\xad\x5e\xfe\x0a\xa8\xd3\x1a\x5d" |
| 30199 | "\x6b\x84\xf3\x00\xba\x52\x05\x02" |
| 30200 | "\xe3\x96\x4e\xb6\x79\x3f\x43\xd3" |
| 30201 | "\x4d\x3f\xd6\xab\x0a\xc4\x75\x2d" |
| 30202 | "\xd1\x08\xc3\x6a\xc8\x37\x29\xa0" |
| 30203 | "\xcc\x9a\x05\xdd\x5c\xe1\xff\x66" |
| 30204 | "\xf2\x7a\x1d\xf2\xaf\xa9\x48\x89" |
| 30205 | "\xf5\x21\x0f\x02\x48\x83\x74\xbf" |
| 30206 | "\x2e\xe6\x93\x7b\xa0\xf4\xb1\x2b" |
| 30207 | "\xb1\x02\x0a\x5c\x79\x19\x3b\x75" |
| 30208 | "\xb7\x16\xd8\x12\x5c\xcd\x7d\x4e" |
| 30209 | "\xd5\xc6\x99\xcc\x4e\x6c\x94\x95", |
| 30210 | .ilen = 512, |
| 30211 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30212 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 30213 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 30214 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 30215 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 30216 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 30217 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 30218 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 30219 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 30220 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 30221 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 30222 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 30223 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 30224 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 30225 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 30226 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 30227 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 30228 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 30229 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 30230 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 30231 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 30232 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 30233 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 30234 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 30235 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 30236 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 30237 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 30238 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 30239 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 30240 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 30241 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 30242 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 30243 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30244 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 30245 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 30246 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 30247 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 30248 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 30249 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 30250 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 30251 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 30252 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 30253 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 30254 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 30255 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 30256 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 30257 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 30258 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 30259 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 30260 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 30261 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 30262 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 30263 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 30264 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 30265 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 30266 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 30267 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 30268 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 30269 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 30270 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 30271 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 30272 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 30273 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 30274 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff", |
| 30275 | .rlen = 512, |
Jussi Kivilinna | f44d83d | 2012-09-19 09:42:49 +0300 | [diff] [blame] | 30276 | .also_non_np = 1, |
Ard Biesheuvel | 3b9b8fe | 2014-07-27 19:18:50 +0200 | [diff] [blame] | 30277 | .np = 3, |
| 30278 | .tap = { 512 - 20, 4, 16 }, |
Jussi Kivilinna | 0840605 | 2012-03-05 20:26:21 +0200 | [diff] [blame] | 30279 | }, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 30280 | }; |
| 30281 | |
| 30282 | /* |
| 30283 | * SEED test vectors |
| 30284 | */ |
| 30285 | #define SEED_ENC_TEST_VECTORS 4 |
| 30286 | #define SEED_DEC_TEST_VECTORS 4 |
| 30287 | |
| 30288 | static struct cipher_testvec seed_enc_tv_template[] = { |
| 30289 | { |
| 30290 | .key = zeroed_string, |
| 30291 | .klen = 16, |
| 30292 | .input = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30293 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 30294 | .ilen = 16, |
| 30295 | .result = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" |
| 30296 | "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", |
| 30297 | .rlen = 16, |
| 30298 | }, { |
| 30299 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30300 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 30301 | .klen = 16, |
| 30302 | .input = zeroed_string, |
| 30303 | .ilen = 16, |
| 30304 | .result = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" |
| 30305 | "\x84\x48\x35\x97\xe4\x37\x0f\x43", |
| 30306 | .rlen = 16, |
| 30307 | }, { |
| 30308 | .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" |
| 30309 | "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", |
| 30310 | .klen = 16, |
| 30311 | .input = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" |
| 30312 | "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", |
| 30313 | .ilen = 16, |
| 30314 | .result = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" |
| 30315 | "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", |
| 30316 | .rlen = 16, |
| 30317 | }, { |
| 30318 | .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" |
| 30319 | "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", |
| 30320 | .klen = 16, |
| 30321 | .input = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" |
| 30322 | "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", |
| 30323 | .ilen = 16, |
| 30324 | .result = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" |
| 30325 | "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", |
| 30326 | .rlen = 16, |
| 30327 | } |
| 30328 | }; |
| 30329 | |
| 30330 | static struct cipher_testvec seed_dec_tv_template[] = { |
| 30331 | { |
| 30332 | .key = zeroed_string, |
| 30333 | .klen = 16, |
| 30334 | .input = "\x5e\xba\xc6\xe0\x05\x4e\x16\x68" |
| 30335 | "\x19\xaf\xf1\xcc\x6d\x34\x6c\xdb", |
| 30336 | .ilen = 16, |
| 30337 | .result = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30338 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 30339 | .rlen = 16, |
| 30340 | }, { |
| 30341 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30342 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f", |
| 30343 | .klen = 16, |
| 30344 | .input = "\xc1\x1f\x22\xf2\x01\x40\x50\x50" |
| 30345 | "\x84\x48\x35\x97\xe4\x37\x0f\x43", |
| 30346 | .ilen = 16, |
| 30347 | .result = zeroed_string, |
| 30348 | .rlen = 16, |
| 30349 | }, { |
| 30350 | .key = "\x47\x06\x48\x08\x51\xe6\x1b\xe8" |
| 30351 | "\x5d\x74\xbf\xb3\xfd\x95\x61\x85", |
| 30352 | .klen = 16, |
| 30353 | .input = "\xee\x54\xd1\x3e\xbc\xae\x70\x6d" |
| 30354 | "\x22\x6b\xc3\x14\x2c\xd4\x0d\x4a", |
| 30355 | .ilen = 16, |
| 30356 | .result = "\x83\xa2\xf8\xa2\x88\x64\x1f\xb9" |
| 30357 | "\xa4\xe9\xa5\xcc\x2f\x13\x1c\x7d", |
| 30358 | .rlen = 16, |
| 30359 | }, { |
| 30360 | .key = "\x28\xdb\xc3\xbc\x49\xff\xd8\x7d" |
| 30361 | "\xcf\xa5\x09\xb1\x1d\x42\x2b\xe7", |
| 30362 | .klen = 16, |
| 30363 | .input = "\x9b\x9b\x7b\xfc\xd1\x81\x3c\xb9" |
| 30364 | "\x5d\x0b\x36\x18\xf4\x0f\x51\x22", |
| 30365 | .ilen = 16, |
| 30366 | .result = "\xb4\x1e\x6b\xe2\xeb\xa8\x4a\x14" |
| 30367 | "\x8e\x2e\xed\x84\x59\x3c\x5e\xc7", |
| 30368 | .rlen = 16, |
| 30369 | } |
| 30370 | }; |
| 30371 | |
| 30372 | #define SALSA20_STREAM_ENC_TEST_VECTORS 5 |
| 30373 | static struct cipher_testvec salsa20_stream_enc_tv_template[] = { |
| 30374 | /* |
| 30375 | * Testvectors from verified.test-vectors submitted to ECRYPT. |
| 30376 | * They are truncated to size 39, 64, 111, 129 to test a variety |
| 30377 | * of input length. |
| 30378 | */ |
| 30379 | { /* Set 3, vector 0 */ |
| 30380 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30381 | "\x08\x09\x0A\x0B\x0C\x0D\x0E\x0F", |
| 30382 | .klen = 16, |
| 30383 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 30384 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30385 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30386 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30387 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30388 | "\x00\x00\x00\x00\x00\x00\x00", |
| 30389 | .ilen = 39, |
| 30390 | .result = "\x2D\xD5\xC3\xF7\xBA\x2B\x20\xF7" |
| 30391 | "\x68\x02\x41\x0C\x68\x86\x88\x89" |
| 30392 | "\x5A\xD8\xC1\xBD\x4E\xA6\xC9\xB1" |
| 30393 | "\x40\xFB\x9B\x90\xE2\x10\x49\xBF" |
| 30394 | "\x58\x3F\x52\x79\x70\xEB\xC1", |
| 30395 | .rlen = 39, |
| 30396 | }, { /* Set 5, vector 0 */ |
| 30397 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30398 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 30399 | .klen = 16, |
| 30400 | .iv = "\x80\x00\x00\x00\x00\x00\x00\x00", |
| 30401 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30402 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30403 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30404 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30405 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30406 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30407 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30408 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 30409 | .ilen = 64, |
| 30410 | .result = "\xB6\x6C\x1E\x44\x46\xDD\x95\x57" |
| 30411 | "\xE5\x78\xE2\x23\xB0\xB7\x68\x01" |
| 30412 | "\x7B\x23\xB2\x67\xBB\x02\x34\xAE" |
| 30413 | "\x46\x26\xBF\x44\x3F\x21\x97\x76" |
| 30414 | "\x43\x6F\xB1\x9F\xD0\xE8\x86\x6F" |
| 30415 | "\xCD\x0D\xE9\xA9\x53\x8F\x4A\x09" |
| 30416 | "\xCA\x9A\xC0\x73\x2E\x30\xBC\xF9" |
| 30417 | "\x8E\x4F\x13\xE4\xB9\xE2\x01\xD9", |
| 30418 | .rlen = 64, |
| 30419 | }, { /* Set 3, vector 27 */ |
| 30420 | .key = "\x1B\x1C\x1D\x1E\x1F\x20\x21\x22" |
| 30421 | "\x23\x24\x25\x26\x27\x28\x29\x2A" |
| 30422 | "\x2B\x2C\x2D\x2E\x2F\x30\x31\x32" |
| 30423 | "\x33\x34\x35\x36\x37\x38\x39\x3A", |
| 30424 | .klen = 32, |
| 30425 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 30426 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30427 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30428 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30429 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30430 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30431 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30432 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30433 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30434 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30435 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30436 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30437 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30438 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30439 | "\x00\x00\x00\x00\x00\x00\x00", |
| 30440 | .ilen = 111, |
| 30441 | .result = "\xAE\x39\x50\x8E\xAC\x9A\xEC\xE7" |
| 30442 | "\xBF\x97\xBB\x20\xB9\xDE\xE4\x1F" |
| 30443 | "\x87\xD9\x47\xF8\x28\x91\x35\x98" |
| 30444 | "\xDB\x72\xCC\x23\x29\x48\x56\x5E" |
| 30445 | "\x83\x7E\x0B\xF3\x7D\x5D\x38\x7B" |
| 30446 | "\x2D\x71\x02\xB4\x3B\xB5\xD8\x23" |
| 30447 | "\xB0\x4A\xDF\x3C\xEC\xB6\xD9\x3B" |
| 30448 | "\x9B\xA7\x52\xBE\xC5\xD4\x50\x59" |
| 30449 | "\x15\x14\xB4\x0E\x40\xE6\x53\xD1" |
| 30450 | "\x83\x9C\x5B\xA0\x92\x29\x6B\x5E" |
| 30451 | "\x96\x5B\x1E\x2F\xD3\xAC\xC1\x92" |
| 30452 | "\xB1\x41\x3F\x19\x2F\xC4\x3B\xC6" |
| 30453 | "\x95\x46\x45\x54\xE9\x75\x03\x08" |
| 30454 | "\x44\xAF\xE5\x8A\x81\x12\x09", |
| 30455 | .rlen = 111, |
| 30456 | }, { /* Set 5, vector 27 */ |
| 30457 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30458 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30459 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30460 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 30461 | .klen = 32, |
| 30462 | .iv = "\x00\x00\x00\x10\x00\x00\x00\x00", |
| 30463 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30464 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30465 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30466 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30467 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30468 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30469 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30470 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30471 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30472 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30473 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30474 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30475 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30476 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30477 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30478 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30479 | "\x00", |
| 30480 | .ilen = 129, |
| 30481 | .result = "\xD2\xDB\x1A\x5C\xF1\xC1\xAC\xDB" |
| 30482 | "\xE8\x1A\x7A\x43\x40\xEF\x53\x43" |
| 30483 | "\x5E\x7F\x4B\x1A\x50\x52\x3F\x8D" |
| 30484 | "\x28\x3D\xCF\x85\x1D\x69\x6E\x60" |
| 30485 | "\xF2\xDE\x74\x56\x18\x1B\x84\x10" |
| 30486 | "\xD4\x62\xBA\x60\x50\xF0\x61\xF2" |
| 30487 | "\x1C\x78\x7F\xC1\x24\x34\xAF\x58" |
| 30488 | "\xBF\x2C\x59\xCA\x90\x77\xF3\xB0" |
| 30489 | "\x5B\x4A\xDF\x89\xCE\x2C\x2F\xFC" |
| 30490 | "\x67\xF0\xE3\x45\xE8\xB3\xB3\x75" |
| 30491 | "\xA0\x95\x71\xA1\x29\x39\x94\xCA" |
| 30492 | "\x45\x2F\xBD\xCB\x10\xB6\xBE\x9F" |
| 30493 | "\x8E\xF9\xB2\x01\x0A\x5A\x0A\xB7" |
| 30494 | "\x6B\x9D\x70\x8E\x4B\xD6\x2F\xCD" |
| 30495 | "\x2E\x40\x48\x75\xE9\xE2\x21\x45" |
| 30496 | "\x0B\xC9\xB6\xB5\x66\xBC\x9A\x59" |
| 30497 | "\x5A", |
| 30498 | .rlen = 129, |
| 30499 | }, { /* large test vector generated using Crypto++ */ |
| 30500 | .key = "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30501 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 30502 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 30503 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f", |
| 30504 | .klen = 32, |
| 30505 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 30506 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 30507 | .input = |
| 30508 | "\x00\x01\x02\x03\x04\x05\x06\x07" |
| 30509 | "\x08\x09\x0a\x0b\x0c\x0d\x0e\x0f" |
| 30510 | "\x10\x11\x12\x13\x14\x15\x16\x17" |
| 30511 | "\x18\x19\x1a\x1b\x1c\x1d\x1e\x1f" |
| 30512 | "\x20\x21\x22\x23\x24\x25\x26\x27" |
| 30513 | "\x28\x29\x2a\x2b\x2c\x2d\x2e\x2f" |
| 30514 | "\x30\x31\x32\x33\x34\x35\x36\x37" |
| 30515 | "\x38\x39\x3a\x3b\x3c\x3d\x3e\x3f" |
| 30516 | "\x40\x41\x42\x43\x44\x45\x46\x47" |
| 30517 | "\x48\x49\x4a\x4b\x4c\x4d\x4e\x4f" |
| 30518 | "\x50\x51\x52\x53\x54\x55\x56\x57" |
| 30519 | "\x58\x59\x5a\x5b\x5c\x5d\x5e\x5f" |
| 30520 | "\x60\x61\x62\x63\x64\x65\x66\x67" |
| 30521 | "\x68\x69\x6a\x6b\x6c\x6d\x6e\x6f" |
| 30522 | "\x70\x71\x72\x73\x74\x75\x76\x77" |
| 30523 | "\x78\x79\x7a\x7b\x7c\x7d\x7e\x7f" |
| 30524 | "\x80\x81\x82\x83\x84\x85\x86\x87" |
| 30525 | "\x88\x89\x8a\x8b\x8c\x8d\x8e\x8f" |
| 30526 | "\x90\x91\x92\x93\x94\x95\x96\x97" |
| 30527 | "\x98\x99\x9a\x9b\x9c\x9d\x9e\x9f" |
| 30528 | "\xa0\xa1\xa2\xa3\xa4\xa5\xa6\xa7" |
| 30529 | "\xa8\xa9\xaa\xab\xac\xad\xae\xaf" |
| 30530 | "\xb0\xb1\xb2\xb3\xb4\xb5\xb6\xb7" |
| 30531 | "\xb8\xb9\xba\xbb\xbc\xbd\xbe\xbf" |
| 30532 | "\xc0\xc1\xc2\xc3\xc4\xc5\xc6\xc7" |
| 30533 | "\xc8\xc9\xca\xcb\xcc\xcd\xce\xcf" |
| 30534 | "\xd0\xd1\xd2\xd3\xd4\xd5\xd6\xd7" |
| 30535 | "\xd8\xd9\xda\xdb\xdc\xdd\xde\xdf" |
| 30536 | "\xe0\xe1\xe2\xe3\xe4\xe5\xe6\xe7" |
| 30537 | "\xe8\xe9\xea\xeb\xec\xed\xee\xef" |
| 30538 | "\xf0\xf1\xf2\xf3\xf4\xf5\xf6\xf7" |
| 30539 | "\xf8\xf9\xfa\xfb\xfc\xfd\xfe\xff" |
| 30540 | "\x00\x03\x06\x09\x0c\x0f\x12\x15" |
| 30541 | "\x18\x1b\x1e\x21\x24\x27\x2a\x2d" |
| 30542 | "\x30\x33\x36\x39\x3c\x3f\x42\x45" |
| 30543 | "\x48\x4b\x4e\x51\x54\x57\x5a\x5d" |
| 30544 | "\x60\x63\x66\x69\x6c\x6f\x72\x75" |
| 30545 | "\x78\x7b\x7e\x81\x84\x87\x8a\x8d" |
| 30546 | "\x90\x93\x96\x99\x9c\x9f\xa2\xa5" |
| 30547 | "\xa8\xab\xae\xb1\xb4\xb7\xba\xbd" |
| 30548 | "\xc0\xc3\xc6\xc9\xcc\xcf\xd2\xd5" |
| 30549 | "\xd8\xdb\xde\xe1\xe4\xe7\xea\xed" |
| 30550 | "\xf0\xf3\xf6\xf9\xfc\xff\x02\x05" |
| 30551 | "\x08\x0b\x0e\x11\x14\x17\x1a\x1d" |
| 30552 | "\x20\x23\x26\x29\x2c\x2f\x32\x35" |
| 30553 | "\x38\x3b\x3e\x41\x44\x47\x4a\x4d" |
| 30554 | "\x50\x53\x56\x59\x5c\x5f\x62\x65" |
| 30555 | "\x68\x6b\x6e\x71\x74\x77\x7a\x7d" |
| 30556 | "\x80\x83\x86\x89\x8c\x8f\x92\x95" |
| 30557 | "\x98\x9b\x9e\xa1\xa4\xa7\xaa\xad" |
| 30558 | "\xb0\xb3\xb6\xb9\xbc\xbf\xc2\xc5" |
| 30559 | "\xc8\xcb\xce\xd1\xd4\xd7\xda\xdd" |
| 30560 | "\xe0\xe3\xe6\xe9\xec\xef\xf2\xf5" |
| 30561 | "\xf8\xfb\xfe\x01\x04\x07\x0a\x0d" |
| 30562 | "\x10\x13\x16\x19\x1c\x1f\x22\x25" |
| 30563 | "\x28\x2b\x2e\x31\x34\x37\x3a\x3d" |
| 30564 | "\x40\x43\x46\x49\x4c\x4f\x52\x55" |
| 30565 | "\x58\x5b\x5e\x61\x64\x67\x6a\x6d" |
| 30566 | "\x70\x73\x76\x79\x7c\x7f\x82\x85" |
| 30567 | "\x88\x8b\x8e\x91\x94\x97\x9a\x9d" |
| 30568 | "\xa0\xa3\xa6\xa9\xac\xaf\xb2\xb5" |
| 30569 | "\xb8\xbb\xbe\xc1\xc4\xc7\xca\xcd" |
| 30570 | "\xd0\xd3\xd6\xd9\xdc\xdf\xe2\xe5" |
| 30571 | "\xe8\xeb\xee\xf1\xf4\xf7\xfa\xfd" |
| 30572 | "\x00\x05\x0a\x0f\x14\x19\x1e\x23" |
| 30573 | "\x28\x2d\x32\x37\x3c\x41\x46\x4b" |
| 30574 | "\x50\x55\x5a\x5f\x64\x69\x6e\x73" |
| 30575 | "\x78\x7d\x82\x87\x8c\x91\x96\x9b" |
| 30576 | "\xa0\xa5\xaa\xaf\xb4\xb9\xbe\xc3" |
| 30577 | "\xc8\xcd\xd2\xd7\xdc\xe1\xe6\xeb" |
| 30578 | "\xf0\xf5\xfa\xff\x04\x09\x0e\x13" |
| 30579 | "\x18\x1d\x22\x27\x2c\x31\x36\x3b" |
| 30580 | "\x40\x45\x4a\x4f\x54\x59\x5e\x63" |
| 30581 | "\x68\x6d\x72\x77\x7c\x81\x86\x8b" |
| 30582 | "\x90\x95\x9a\x9f\xa4\xa9\xae\xb3" |
| 30583 | "\xb8\xbd\xc2\xc7\xcc\xd1\xd6\xdb" |
| 30584 | "\xe0\xe5\xea\xef\xf4\xf9\xfe\x03" |
| 30585 | "\x08\x0d\x12\x17\x1c\x21\x26\x2b" |
| 30586 | "\x30\x35\x3a\x3f\x44\x49\x4e\x53" |
| 30587 | "\x58\x5d\x62\x67\x6c\x71\x76\x7b" |
| 30588 | "\x80\x85\x8a\x8f\x94\x99\x9e\xa3" |
| 30589 | "\xa8\xad\xb2\xb7\xbc\xc1\xc6\xcb" |
| 30590 | "\xd0\xd5\xda\xdf\xe4\xe9\xee\xf3" |
| 30591 | "\xf8\xfd\x02\x07\x0c\x11\x16\x1b" |
| 30592 | "\x20\x25\x2a\x2f\x34\x39\x3e\x43" |
| 30593 | "\x48\x4d\x52\x57\x5c\x61\x66\x6b" |
| 30594 | "\x70\x75\x7a\x7f\x84\x89\x8e\x93" |
| 30595 | "\x98\x9d\xa2\xa7\xac\xb1\xb6\xbb" |
| 30596 | "\xc0\xc5\xca\xcf\xd4\xd9\xde\xe3" |
| 30597 | "\xe8\xed\xf2\xf7\xfc\x01\x06\x0b" |
| 30598 | "\x10\x15\x1a\x1f\x24\x29\x2e\x33" |
| 30599 | "\x38\x3d\x42\x47\x4c\x51\x56\x5b" |
| 30600 | "\x60\x65\x6a\x6f\x74\x79\x7e\x83" |
| 30601 | "\x88\x8d\x92\x97\x9c\xa1\xa6\xab" |
| 30602 | "\xb0\xb5\xba\xbf\xc4\xc9\xce\xd3" |
| 30603 | "\xd8\xdd\xe2\xe7\xec\xf1\xf6\xfb" |
| 30604 | "\x00\x07\x0e\x15\x1c\x23\x2a\x31" |
| 30605 | "\x38\x3f\x46\x4d\x54\x5b\x62\x69" |
| 30606 | "\x70\x77\x7e\x85\x8c\x93\x9a\xa1" |
| 30607 | "\xa8\xaf\xb6\xbd\xc4\xcb\xd2\xd9" |
| 30608 | "\xe0\xe7\xee\xf5\xfc\x03\x0a\x11" |
| 30609 | "\x18\x1f\x26\x2d\x34\x3b\x42\x49" |
| 30610 | "\x50\x57\x5e\x65\x6c\x73\x7a\x81" |
| 30611 | "\x88\x8f\x96\x9d\xa4\xab\xb2\xb9" |
| 30612 | "\xc0\xc7\xce\xd5\xdc\xe3\xea\xf1" |
| 30613 | "\xf8\xff\x06\x0d\x14\x1b\x22\x29" |
| 30614 | "\x30\x37\x3e\x45\x4c\x53\x5a\x61" |
| 30615 | "\x68\x6f\x76\x7d\x84\x8b\x92\x99" |
| 30616 | "\xa0\xa7\xae\xb5\xbc\xc3\xca\xd1" |
| 30617 | "\xd8\xdf\xe6\xed\xf4\xfb\x02\x09" |
| 30618 | "\x10\x17\x1e\x25\x2c\x33\x3a\x41" |
| 30619 | "\x48\x4f\x56\x5d\x64\x6b\x72\x79" |
| 30620 | "\x80\x87\x8e\x95\x9c\xa3\xaa\xb1" |
| 30621 | "\xb8\xbf\xc6\xcd\xd4\xdb\xe2\xe9" |
| 30622 | "\xf0\xf7\xfe\x05\x0c\x13\x1a\x21" |
| 30623 | "\x28\x2f\x36\x3d\x44\x4b\x52\x59" |
| 30624 | "\x60\x67\x6e\x75\x7c\x83\x8a\x91" |
| 30625 | "\x98\x9f\xa6\xad\xb4\xbb\xc2\xc9" |
| 30626 | "\xd0\xd7\xde\xe5\xec\xf3\xfa\x01" |
| 30627 | "\x08\x0f\x16\x1d\x24\x2b\x32\x39" |
| 30628 | "\x40\x47\x4e\x55\x5c\x63\x6a\x71" |
| 30629 | "\x78\x7f\x86\x8d\x94\x9b\xa2\xa9" |
| 30630 | "\xb0\xb7\xbe\xc5\xcc\xd3\xda\xe1" |
| 30631 | "\xe8\xef\xf6\xfd\x04\x0b\x12\x19" |
| 30632 | "\x20\x27\x2e\x35\x3c\x43\x4a\x51" |
| 30633 | "\x58\x5f\x66\x6d\x74\x7b\x82\x89" |
| 30634 | "\x90\x97\x9e\xa5\xac\xb3\xba\xc1" |
| 30635 | "\xc8\xcf\xd6\xdd\xe4\xeb\xf2\xf9" |
| 30636 | "\x00\x09\x12\x1b\x24\x2d\x36\x3f" |
| 30637 | "\x48\x51\x5a\x63\x6c\x75\x7e\x87" |
| 30638 | "\x90\x99\xa2\xab\xb4\xbd\xc6\xcf" |
| 30639 | "\xd8\xe1\xea\xf3\xfc\x05\x0e\x17" |
| 30640 | "\x20\x29\x32\x3b\x44\x4d\x56\x5f" |
| 30641 | "\x68\x71\x7a\x83\x8c\x95\x9e\xa7" |
| 30642 | "\xb0\xb9\xc2\xcb\xd4\xdd\xe6\xef" |
| 30643 | "\xf8\x01\x0a\x13\x1c\x25\x2e\x37" |
| 30644 | "\x40\x49\x52\x5b\x64\x6d\x76\x7f" |
| 30645 | "\x88\x91\x9a\xa3\xac\xb5\xbe\xc7" |
| 30646 | "\xd0\xd9\xe2\xeb\xf4\xfd\x06\x0f" |
| 30647 | "\x18\x21\x2a\x33\x3c\x45\x4e\x57" |
| 30648 | "\x60\x69\x72\x7b\x84\x8d\x96\x9f" |
| 30649 | "\xa8\xb1\xba\xc3\xcc\xd5\xde\xe7" |
| 30650 | "\xf0\xf9\x02\x0b\x14\x1d\x26\x2f" |
| 30651 | "\x38\x41\x4a\x53\x5c\x65\x6e\x77" |
| 30652 | "\x80\x89\x92\x9b\xa4\xad\xb6\xbf" |
| 30653 | "\xc8\xd1\xda\xe3\xec\xf5\xfe\x07" |
| 30654 | "\x10\x19\x22\x2b\x34\x3d\x46\x4f" |
| 30655 | "\x58\x61\x6a\x73\x7c\x85\x8e\x97" |
| 30656 | "\xa0\xa9\xb2\xbb\xc4\xcd\xd6\xdf" |
| 30657 | "\xe8\xf1\xfa\x03\x0c\x15\x1e\x27" |
| 30658 | "\x30\x39\x42\x4b\x54\x5d\x66\x6f" |
| 30659 | "\x78\x81\x8a\x93\x9c\xa5\xae\xb7" |
| 30660 | "\xc0\xc9\xd2\xdb\xe4\xed\xf6\xff" |
| 30661 | "\x08\x11\x1a\x23\x2c\x35\x3e\x47" |
| 30662 | "\x50\x59\x62\x6b\x74\x7d\x86\x8f" |
| 30663 | "\x98\xa1\xaa\xb3\xbc\xc5\xce\xd7" |
| 30664 | "\xe0\xe9\xf2\xfb\x04\x0d\x16\x1f" |
| 30665 | "\x28\x31\x3a\x43\x4c\x55\x5e\x67" |
| 30666 | "\x70\x79\x82\x8b\x94\x9d\xa6\xaf" |
| 30667 | "\xb8\xc1\xca\xd3\xdc\xe5\xee\xf7" |
| 30668 | "\x00\x0b\x16\x21\x2c\x37\x42\x4d" |
| 30669 | "\x58\x63\x6e\x79\x84\x8f\x9a\xa5" |
| 30670 | "\xb0\xbb\xc6\xd1\xdc\xe7\xf2\xfd" |
| 30671 | "\x08\x13\x1e\x29\x34\x3f\x4a\x55" |
| 30672 | "\x60\x6b\x76\x81\x8c\x97\xa2\xad" |
| 30673 | "\xb8\xc3\xce\xd9\xe4\xef\xfa\x05" |
| 30674 | "\x10\x1b\x26\x31\x3c\x47\x52\x5d" |
| 30675 | "\x68\x73\x7e\x89\x94\x9f\xaa\xb5" |
| 30676 | "\xc0\xcb\xd6\xe1\xec\xf7\x02\x0d" |
| 30677 | "\x18\x23\x2e\x39\x44\x4f\x5a\x65" |
| 30678 | "\x70\x7b\x86\x91\x9c\xa7\xb2\xbd" |
| 30679 | "\xc8\xd3\xde\xe9\xf4\xff\x0a\x15" |
| 30680 | "\x20\x2b\x36\x41\x4c\x57\x62\x6d" |
| 30681 | "\x78\x83\x8e\x99\xa4\xaf\xba\xc5" |
| 30682 | "\xd0\xdb\xe6\xf1\xfc\x07\x12\x1d" |
| 30683 | "\x28\x33\x3e\x49\x54\x5f\x6a\x75" |
| 30684 | "\x80\x8b\x96\xa1\xac\xb7\xc2\xcd" |
| 30685 | "\xd8\xe3\xee\xf9\x04\x0f\x1a\x25" |
| 30686 | "\x30\x3b\x46\x51\x5c\x67\x72\x7d" |
| 30687 | "\x88\x93\x9e\xa9\xb4\xbf\xca\xd5" |
| 30688 | "\xe0\xeb\xf6\x01\x0c\x17\x22\x2d" |
| 30689 | "\x38\x43\x4e\x59\x64\x6f\x7a\x85" |
| 30690 | "\x90\x9b\xa6\xb1\xbc\xc7\xd2\xdd" |
| 30691 | "\xe8\xf3\xfe\x09\x14\x1f\x2a\x35" |
| 30692 | "\x40\x4b\x56\x61\x6c\x77\x82\x8d" |
| 30693 | "\x98\xa3\xae\xb9\xc4\xcf\xda\xe5" |
| 30694 | "\xf0\xfb\x06\x11\x1c\x27\x32\x3d" |
| 30695 | "\x48\x53\x5e\x69\x74\x7f\x8a\x95" |
| 30696 | "\xa0\xab\xb6\xc1\xcc\xd7\xe2\xed" |
| 30697 | "\xf8\x03\x0e\x19\x24\x2f\x3a\x45" |
| 30698 | "\x50\x5b\x66\x71\x7c\x87\x92\x9d" |
| 30699 | "\xa8\xb3\xbe\xc9\xd4\xdf\xea\xf5" |
| 30700 | "\x00\x0d\x1a\x27\x34\x41\x4e\x5b" |
| 30701 | "\x68\x75\x82\x8f\x9c\xa9\xb6\xc3" |
| 30702 | "\xd0\xdd\xea\xf7\x04\x11\x1e\x2b" |
| 30703 | "\x38\x45\x52\x5f\x6c\x79\x86\x93" |
| 30704 | "\xa0\xad\xba\xc7\xd4\xe1\xee\xfb" |
| 30705 | "\x08\x15\x22\x2f\x3c\x49\x56\x63" |
| 30706 | "\x70\x7d\x8a\x97\xa4\xb1\xbe\xcb" |
| 30707 | "\xd8\xe5\xf2\xff\x0c\x19\x26\x33" |
| 30708 | "\x40\x4d\x5a\x67\x74\x81\x8e\x9b" |
| 30709 | "\xa8\xb5\xc2\xcf\xdc\xe9\xf6\x03" |
| 30710 | "\x10\x1d\x2a\x37\x44\x51\x5e\x6b" |
| 30711 | "\x78\x85\x92\x9f\xac\xb9\xc6\xd3" |
| 30712 | "\xe0\xed\xfa\x07\x14\x21\x2e\x3b" |
| 30713 | "\x48\x55\x62\x6f\x7c\x89\x96\xa3" |
| 30714 | "\xb0\xbd\xca\xd7\xe4\xf1\xfe\x0b" |
| 30715 | "\x18\x25\x32\x3f\x4c\x59\x66\x73" |
| 30716 | "\x80\x8d\x9a\xa7\xb4\xc1\xce\xdb" |
| 30717 | "\xe8\xf5\x02\x0f\x1c\x29\x36\x43" |
| 30718 | "\x50\x5d\x6a\x77\x84\x91\x9e\xab" |
| 30719 | "\xb8\xc5\xd2\xdf\xec\xf9\x06\x13" |
| 30720 | "\x20\x2d\x3a\x47\x54\x61\x6e\x7b" |
| 30721 | "\x88\x95\xa2\xaf\xbc\xc9\xd6\xe3" |
| 30722 | "\xf0\xfd\x0a\x17\x24\x31\x3e\x4b" |
| 30723 | "\x58\x65\x72\x7f\x8c\x99\xa6\xb3" |
| 30724 | "\xc0\xcd\xda\xe7\xf4\x01\x0e\x1b" |
| 30725 | "\x28\x35\x42\x4f\x5c\x69\x76\x83" |
| 30726 | "\x90\x9d\xaa\xb7\xc4\xd1\xde\xeb" |
| 30727 | "\xf8\x05\x12\x1f\x2c\x39\x46\x53" |
| 30728 | "\x60\x6d\x7a\x87\x94\xa1\xae\xbb" |
| 30729 | "\xc8\xd5\xe2\xef\xfc\x09\x16\x23" |
| 30730 | "\x30\x3d\x4a\x57\x64\x71\x7e\x8b" |
| 30731 | "\x98\xa5\xb2\xbf\xcc\xd9\xe6\xf3" |
| 30732 | "\x00\x0f\x1e\x2d\x3c\x4b\x5a\x69" |
| 30733 | "\x78\x87\x96\xa5\xb4\xc3\xd2\xe1" |
| 30734 | "\xf0\xff\x0e\x1d\x2c\x3b\x4a\x59" |
| 30735 | "\x68\x77\x86\x95\xa4\xb3\xc2\xd1" |
| 30736 | "\xe0\xef\xfe\x0d\x1c\x2b\x3a\x49" |
| 30737 | "\x58\x67\x76\x85\x94\xa3\xb2\xc1" |
| 30738 | "\xd0\xdf\xee\xfd\x0c\x1b\x2a\x39" |
| 30739 | "\x48\x57\x66\x75\x84\x93\xa2\xb1" |
| 30740 | "\xc0\xcf\xde\xed\xfc\x0b\x1a\x29" |
| 30741 | "\x38\x47\x56\x65\x74\x83\x92\xa1" |
| 30742 | "\xb0\xbf\xce\xdd\xec\xfb\x0a\x19" |
| 30743 | "\x28\x37\x46\x55\x64\x73\x82\x91" |
| 30744 | "\xa0\xaf\xbe\xcd\xdc\xeb\xfa\x09" |
| 30745 | "\x18\x27\x36\x45\x54\x63\x72\x81" |
| 30746 | "\x90\x9f\xae\xbd\xcc\xdb\xea\xf9" |
| 30747 | "\x08\x17\x26\x35\x44\x53\x62\x71" |
| 30748 | "\x80\x8f\x9e\xad\xbc\xcb\xda\xe9" |
| 30749 | "\xf8\x07\x16\x25\x34\x43\x52\x61" |
| 30750 | "\x70\x7f\x8e\x9d\xac\xbb\xca\xd9" |
| 30751 | "\xe8\xf7\x06\x15\x24\x33\x42\x51" |
| 30752 | "\x60\x6f\x7e\x8d\x9c\xab\xba\xc9" |
| 30753 | "\xd8\xe7\xf6\x05\x14\x23\x32\x41" |
| 30754 | "\x50\x5f\x6e\x7d\x8c\x9b\xaa\xb9" |
| 30755 | "\xc8\xd7\xe6\xf5\x04\x13\x22\x31" |
| 30756 | "\x40\x4f\x5e\x6d\x7c\x8b\x9a\xa9" |
| 30757 | "\xb8\xc7\xd6\xe5\xf4\x03\x12\x21" |
| 30758 | "\x30\x3f\x4e\x5d\x6c\x7b\x8a\x99" |
| 30759 | "\xa8\xb7\xc6\xd5\xe4\xf3\x02\x11" |
| 30760 | "\x20\x2f\x3e\x4d\x5c\x6b\x7a\x89" |
| 30761 | "\x98\xa7\xb6\xc5\xd4\xe3\xf2\x01" |
| 30762 | "\x10\x1f\x2e\x3d\x4c\x5b\x6a\x79" |
| 30763 | "\x88\x97\xa6\xb5\xc4\xd3\xe2\xf1" |
| 30764 | "\x00\x11\x22\x33\x44\x55\x66\x77" |
| 30765 | "\x88\x99\xaa\xbb\xcc\xdd\xee\xff" |
| 30766 | "\x10\x21\x32\x43\x54\x65\x76\x87" |
| 30767 | "\x98\xa9\xba\xcb\xdc\xed\xfe\x0f" |
| 30768 | "\x20\x31\x42\x53\x64\x75\x86\x97" |
| 30769 | "\xa8\xb9\xca\xdb\xec\xfd\x0e\x1f" |
| 30770 | "\x30\x41\x52\x63\x74\x85\x96\xa7" |
| 30771 | "\xb8\xc9\xda\xeb\xfc\x0d\x1e\x2f" |
| 30772 | "\x40\x51\x62\x73\x84\x95\xa6\xb7" |
| 30773 | "\xc8\xd9\xea\xfb\x0c\x1d\x2e\x3f" |
| 30774 | "\x50\x61\x72\x83\x94\xa5\xb6\xc7" |
| 30775 | "\xd8\xe9\xfa\x0b\x1c\x2d\x3e\x4f" |
| 30776 | "\x60\x71\x82\x93\xa4\xb5\xc6\xd7" |
| 30777 | "\xe8\xf9\x0a\x1b\x2c\x3d\x4e\x5f" |
| 30778 | "\x70\x81\x92\xa3\xb4\xc5\xd6\xe7" |
| 30779 | "\xf8\x09\x1a\x2b\x3c\x4d\x5e\x6f" |
| 30780 | "\x80\x91\xa2\xb3\xc4\xd5\xe6\xf7" |
| 30781 | "\x08\x19\x2a\x3b\x4c\x5d\x6e\x7f" |
| 30782 | "\x90\xa1\xb2\xc3\xd4\xe5\xf6\x07" |
| 30783 | "\x18\x29\x3a\x4b\x5c\x6d\x7e\x8f" |
| 30784 | "\xa0\xb1\xc2\xd3\xe4\xf5\x06\x17" |
| 30785 | "\x28\x39\x4a\x5b\x6c\x7d\x8e\x9f" |
| 30786 | "\xb0\xc1\xd2\xe3\xf4\x05\x16\x27" |
| 30787 | "\x38\x49\x5a\x6b\x7c\x8d\x9e\xaf" |
| 30788 | "\xc0\xd1\xe2\xf3\x04\x15\x26\x37" |
| 30789 | "\x48\x59\x6a\x7b\x8c\x9d\xae\xbf" |
| 30790 | "\xd0\xe1\xf2\x03\x14\x25\x36\x47" |
| 30791 | "\x58\x69\x7a\x8b\x9c\xad\xbe\xcf" |
| 30792 | "\xe0\xf1\x02\x13\x24\x35\x46\x57" |
| 30793 | "\x68\x79\x8a\x9b\xac\xbd\xce\xdf" |
| 30794 | "\xf0\x01\x12\x23\x34\x45\x56\x67" |
| 30795 | "\x78\x89\x9a\xab\xbc\xcd\xde\xef" |
| 30796 | "\x00\x13\x26\x39\x4c\x5f\x72\x85" |
| 30797 | "\x98\xab\xbe\xd1\xe4\xf7\x0a\x1d" |
| 30798 | "\x30\x43\x56\x69\x7c\x8f\xa2\xb5" |
| 30799 | "\xc8\xdb\xee\x01\x14\x27\x3a\x4d" |
| 30800 | "\x60\x73\x86\x99\xac\xbf\xd2\xe5" |
| 30801 | "\xf8\x0b\x1e\x31\x44\x57\x6a\x7d" |
| 30802 | "\x90\xa3\xb6\xc9\xdc\xef\x02\x15" |
| 30803 | "\x28\x3b\x4e\x61\x74\x87\x9a\xad" |
| 30804 | "\xc0\xd3\xe6\xf9\x0c\x1f\x32\x45" |
| 30805 | "\x58\x6b\x7e\x91\xa4\xb7\xca\xdd" |
| 30806 | "\xf0\x03\x16\x29\x3c\x4f\x62\x75" |
| 30807 | "\x88\x9b\xae\xc1\xd4\xe7\xfa\x0d" |
| 30808 | "\x20\x33\x46\x59\x6c\x7f\x92\xa5" |
| 30809 | "\xb8\xcb\xde\xf1\x04\x17\x2a\x3d" |
| 30810 | "\x50\x63\x76\x89\x9c\xaf\xc2\xd5" |
| 30811 | "\xe8\xfb\x0e\x21\x34\x47\x5a\x6d" |
| 30812 | "\x80\x93\xa6\xb9\xcc\xdf\xf2\x05" |
| 30813 | "\x18\x2b\x3e\x51\x64\x77\x8a\x9d" |
| 30814 | "\xb0\xc3\xd6\xe9\xfc\x0f\x22\x35" |
| 30815 | "\x48\x5b\x6e\x81\x94\xa7\xba\xcd" |
| 30816 | "\xe0\xf3\x06\x19\x2c\x3f\x52\x65" |
| 30817 | "\x78\x8b\x9e\xb1\xc4\xd7\xea\xfd" |
| 30818 | "\x10\x23\x36\x49\x5c\x6f\x82\x95" |
| 30819 | "\xa8\xbb\xce\xe1\xf4\x07\x1a\x2d" |
| 30820 | "\x40\x53\x66\x79\x8c\x9f\xb2\xc5" |
| 30821 | "\xd8\xeb\xfe\x11\x24\x37\x4a\x5d" |
| 30822 | "\x70\x83\x96\xa9\xbc\xcf\xe2\xf5" |
| 30823 | "\x08\x1b\x2e\x41\x54\x67\x7a\x8d" |
| 30824 | "\xa0\xb3\xc6\xd9\xec\xff\x12\x25" |
| 30825 | "\x38\x4b\x5e\x71\x84\x97\xaa\xbd" |
| 30826 | "\xd0\xe3\xf6\x09\x1c\x2f\x42\x55" |
| 30827 | "\x68\x7b\x8e\xa1\xb4\xc7\xda\xed" |
| 30828 | "\x00\x15\x2a\x3f\x54\x69\x7e\x93" |
| 30829 | "\xa8\xbd\xd2\xe7\xfc\x11\x26\x3b" |
| 30830 | "\x50\x65\x7a\x8f\xa4\xb9\xce\xe3" |
| 30831 | "\xf8\x0d\x22\x37\x4c\x61\x76\x8b" |
| 30832 | "\xa0\xb5\xca\xdf\xf4\x09\x1e\x33" |
| 30833 | "\x48\x5d\x72\x87\x9c\xb1\xc6\xdb" |
| 30834 | "\xf0\x05\x1a\x2f\x44\x59\x6e\x83" |
| 30835 | "\x98\xad\xc2\xd7\xec\x01\x16\x2b" |
| 30836 | "\x40\x55\x6a\x7f\x94\xa9\xbe\xd3" |
| 30837 | "\xe8\xfd\x12\x27\x3c\x51\x66\x7b" |
| 30838 | "\x90\xa5\xba\xcf\xe4\xf9\x0e\x23" |
| 30839 | "\x38\x4d\x62\x77\x8c\xa1\xb6\xcb" |
| 30840 | "\xe0\xf5\x0a\x1f\x34\x49\x5e\x73" |
| 30841 | "\x88\x9d\xb2\xc7\xdc\xf1\x06\x1b" |
| 30842 | "\x30\x45\x5a\x6f\x84\x99\xae\xc3" |
| 30843 | "\xd8\xed\x02\x17\x2c\x41\x56\x6b" |
| 30844 | "\x80\x95\xaa\xbf\xd4\xe9\xfe\x13" |
| 30845 | "\x28\x3d\x52\x67\x7c\x91\xa6\xbb" |
| 30846 | "\xd0\xe5\xfa\x0f\x24\x39\x4e\x63" |
| 30847 | "\x78\x8d\xa2\xb7\xcc\xe1\xf6\x0b" |
| 30848 | "\x20\x35\x4a\x5f\x74\x89\x9e\xb3" |
| 30849 | "\xc8\xdd\xf2\x07\x1c\x31\x46\x5b" |
| 30850 | "\x70\x85\x9a\xaf\xc4\xd9\xee\x03" |
| 30851 | "\x18\x2d\x42\x57\x6c\x81\x96\xab" |
| 30852 | "\xc0\xd5\xea\xff\x14\x29\x3e\x53" |
| 30853 | "\x68\x7d\x92\xa7\xbc\xd1\xe6\xfb" |
| 30854 | "\x10\x25\x3a\x4f\x64\x79\x8e\xa3" |
| 30855 | "\xb8\xcd\xe2\xf7\x0c\x21\x36\x4b" |
| 30856 | "\x60\x75\x8a\x9f\xb4\xc9\xde\xf3" |
| 30857 | "\x08\x1d\x32\x47\x5c\x71\x86\x9b" |
| 30858 | "\xb0\xc5\xda\xef\x04\x19\x2e\x43" |
| 30859 | "\x58\x6d\x82\x97\xac\xc1\xd6\xeb" |
| 30860 | "\x00\x17\x2e\x45\x5c\x73\x8a\xa1" |
| 30861 | "\xb8\xcf\xe6\xfd\x14\x2b\x42\x59" |
| 30862 | "\x70\x87\x9e\xb5\xcc\xe3\xfa\x11" |
| 30863 | "\x28\x3f\x56\x6d\x84\x9b\xb2\xc9" |
| 30864 | "\xe0\xf7\x0e\x25\x3c\x53\x6a\x81" |
| 30865 | "\x98\xaf\xc6\xdd\xf4\x0b\x22\x39" |
| 30866 | "\x50\x67\x7e\x95\xac\xc3\xda\xf1" |
| 30867 | "\x08\x1f\x36\x4d\x64\x7b\x92\xa9" |
| 30868 | "\xc0\xd7\xee\x05\x1c\x33\x4a\x61" |
| 30869 | "\x78\x8f\xa6\xbd\xd4\xeb\x02\x19" |
| 30870 | "\x30\x47\x5e\x75\x8c\xa3\xba\xd1" |
| 30871 | "\xe8\xff\x16\x2d\x44\x5b\x72\x89" |
| 30872 | "\xa0\xb7\xce\xe5\xfc\x13\x2a\x41" |
| 30873 | "\x58\x6f\x86\x9d\xb4\xcb\xe2\xf9" |
| 30874 | "\x10\x27\x3e\x55\x6c\x83\x9a\xb1" |
| 30875 | "\xc8\xdf\xf6\x0d\x24\x3b\x52\x69" |
| 30876 | "\x80\x97\xae\xc5\xdc\xf3\x0a\x21" |
| 30877 | "\x38\x4f\x66\x7d\x94\xab\xc2\xd9" |
| 30878 | "\xf0\x07\x1e\x35\x4c\x63\x7a\x91" |
| 30879 | "\xa8\xbf\xd6\xed\x04\x1b\x32\x49" |
| 30880 | "\x60\x77\x8e\xa5\xbc\xd3\xea\x01" |
| 30881 | "\x18\x2f\x46\x5d\x74\x8b\xa2\xb9" |
| 30882 | "\xd0\xe7\xfe\x15\x2c\x43\x5a\x71" |
| 30883 | "\x88\x9f\xb6\xcd\xe4\xfb\x12\x29" |
| 30884 | "\x40\x57\x6e\x85\x9c\xb3\xca\xe1" |
| 30885 | "\xf8\x0f\x26\x3d\x54\x6b\x82\x99" |
| 30886 | "\xb0\xc7\xde\xf5\x0c\x23\x3a\x51" |
| 30887 | "\x68\x7f\x96\xad\xc4\xdb\xf2\x09" |
| 30888 | "\x20\x37\x4e\x65\x7c\x93\xaa\xc1" |
| 30889 | "\xd8\xef\x06\x1d\x34\x4b\x62\x79" |
| 30890 | "\x90\xa7\xbe\xd5\xec\x03\x1a\x31" |
| 30891 | "\x48\x5f\x76\x8d\xa4\xbb\xd2\xe9" |
| 30892 | "\x00\x19\x32\x4b\x64\x7d\x96\xaf" |
| 30893 | "\xc8\xe1\xfa\x13\x2c\x45\x5e\x77" |
| 30894 | "\x90\xa9\xc2\xdb\xf4\x0d\x26\x3f" |
| 30895 | "\x58\x71\x8a\xa3\xbc\xd5\xee\x07" |
| 30896 | "\x20\x39\x52\x6b\x84\x9d\xb6\xcf" |
| 30897 | "\xe8\x01\x1a\x33\x4c\x65\x7e\x97" |
| 30898 | "\xb0\xc9\xe2\xfb\x14\x2d\x46\x5f" |
| 30899 | "\x78\x91\xaa\xc3\xdc\xf5\x0e\x27" |
| 30900 | "\x40\x59\x72\x8b\xa4\xbd\xd6\xef" |
| 30901 | "\x08\x21\x3a\x53\x6c\x85\x9e\xb7" |
| 30902 | "\xd0\xe9\x02\x1b\x34\x4d\x66\x7f" |
| 30903 | "\x98\xb1\xca\xe3\xfc\x15\x2e\x47" |
| 30904 | "\x60\x79\x92\xab\xc4\xdd\xf6\x0f" |
| 30905 | "\x28\x41\x5a\x73\x8c\xa5\xbe\xd7" |
| 30906 | "\xf0\x09\x22\x3b\x54\x6d\x86\x9f" |
| 30907 | "\xb8\xd1\xea\x03\x1c\x35\x4e\x67" |
| 30908 | "\x80\x99\xb2\xcb\xe4\xfd\x16\x2f" |
| 30909 | "\x48\x61\x7a\x93\xac\xc5\xde\xf7" |
| 30910 | "\x10\x29\x42\x5b\x74\x8d\xa6\xbf" |
| 30911 | "\xd8\xf1\x0a\x23\x3c\x55\x6e\x87" |
| 30912 | "\xa0\xb9\xd2\xeb\x04\x1d\x36\x4f" |
| 30913 | "\x68\x81\x9a\xb3\xcc\xe5\xfe\x17" |
| 30914 | "\x30\x49\x62\x7b\x94\xad\xc6\xdf" |
| 30915 | "\xf8\x11\x2a\x43\x5c\x75\x8e\xa7" |
| 30916 | "\xc0\xd9\xf2\x0b\x24\x3d\x56\x6f" |
| 30917 | "\x88\xa1\xba\xd3\xec\x05\x1e\x37" |
| 30918 | "\x50\x69\x82\x9b\xb4\xcd\xe6\xff" |
| 30919 | "\x18\x31\x4a\x63\x7c\x95\xae\xc7" |
| 30920 | "\xe0\xf9\x12\x2b\x44\x5d\x76\x8f" |
| 30921 | "\xa8\xc1\xda\xf3\x0c\x25\x3e\x57" |
| 30922 | "\x70\x89\xa2\xbb\xd4\xed\x06\x1f" |
| 30923 | "\x38\x51\x6a\x83\x9c\xb5\xce\xe7" |
| 30924 | "\x00\x1b\x36\x51\x6c\x87\xa2\xbd" |
| 30925 | "\xd8\xf3\x0e\x29\x44\x5f\x7a\x95" |
| 30926 | "\xb0\xcb\xe6\x01\x1c\x37\x52\x6d" |
| 30927 | "\x88\xa3\xbe\xd9\xf4\x0f\x2a\x45" |
| 30928 | "\x60\x7b\x96\xb1\xcc\xe7\x02\x1d" |
| 30929 | "\x38\x53\x6e\x89\xa4\xbf\xda\xf5" |
| 30930 | "\x10\x2b\x46\x61\x7c\x97\xb2\xcd" |
| 30931 | "\xe8\x03\x1e\x39\x54\x6f\x8a\xa5" |
| 30932 | "\xc0\xdb\xf6\x11\x2c\x47\x62\x7d" |
| 30933 | "\x98\xb3\xce\xe9\x04\x1f\x3a\x55" |
| 30934 | "\x70\x8b\xa6\xc1\xdc\xf7\x12\x2d" |
| 30935 | "\x48\x63\x7e\x99\xb4\xcf\xea\x05" |
| 30936 | "\x20\x3b\x56\x71\x8c\xa7\xc2\xdd" |
| 30937 | "\xf8\x13\x2e\x49\x64\x7f\x9a\xb5" |
| 30938 | "\xd0\xeb\x06\x21\x3c\x57\x72\x8d" |
| 30939 | "\xa8\xc3\xde\xf9\x14\x2f\x4a\x65" |
| 30940 | "\x80\x9b\xb6\xd1\xec\x07\x22\x3d" |
| 30941 | "\x58\x73\x8e\xa9\xc4\xdf\xfa\x15" |
| 30942 | "\x30\x4b\x66\x81\x9c\xb7\xd2\xed" |
| 30943 | "\x08\x23\x3e\x59\x74\x8f\xaa\xc5" |
| 30944 | "\xe0\xfb\x16\x31\x4c\x67\x82\x9d" |
| 30945 | "\xb8\xd3\xee\x09\x24\x3f\x5a\x75" |
| 30946 | "\x90\xab\xc6\xe1\xfc\x17\x32\x4d" |
| 30947 | "\x68\x83\x9e\xb9\xd4\xef\x0a\x25" |
| 30948 | "\x40\x5b\x76\x91\xac\xc7\xe2\xfd" |
| 30949 | "\x18\x33\x4e\x69\x84\x9f\xba\xd5" |
| 30950 | "\xf0\x0b\x26\x41\x5c\x77\x92\xad" |
| 30951 | "\xc8\xe3\xfe\x19\x34\x4f\x6a\x85" |
| 30952 | "\xa0\xbb\xd6\xf1\x0c\x27\x42\x5d" |
| 30953 | "\x78\x93\xae\xc9\xe4\xff\x1a\x35" |
| 30954 | "\x50\x6b\x86\xa1\xbc\xd7\xf2\x0d" |
| 30955 | "\x28\x43\x5e\x79\x94\xaf\xca\xe5" |
| 30956 | "\x00\x1d\x3a\x57\x74\x91\xae\xcb" |
| 30957 | "\xe8\x05\x22\x3f\x5c\x79\x96\xb3" |
| 30958 | "\xd0\xed\x0a\x27\x44\x61\x7e\x9b" |
| 30959 | "\xb8\xd5\xf2\x0f\x2c\x49\x66\x83" |
| 30960 | "\xa0\xbd\xda\xf7\x14\x31\x4e\x6b" |
| 30961 | "\x88\xa5\xc2\xdf\xfc\x19\x36\x53" |
| 30962 | "\x70\x8d\xaa\xc7\xe4\x01\x1e\x3b" |
| 30963 | "\x58\x75\x92\xaf\xcc\xe9\x06\x23" |
| 30964 | "\x40\x5d\x7a\x97\xb4\xd1\xee\x0b" |
| 30965 | "\x28\x45\x62\x7f\x9c\xb9\xd6\xf3" |
| 30966 | "\x10\x2d\x4a\x67\x84\xa1\xbe\xdb" |
| 30967 | "\xf8\x15\x32\x4f\x6c\x89\xa6\xc3" |
| 30968 | "\xe0\xfd\x1a\x37\x54\x71\x8e\xab" |
| 30969 | "\xc8\xe5\x02\x1f\x3c\x59\x76\x93" |
| 30970 | "\xb0\xcd\xea\x07\x24\x41\x5e\x7b" |
| 30971 | "\x98\xb5\xd2\xef\x0c\x29\x46\x63" |
| 30972 | "\x80\x9d\xba\xd7\xf4\x11\x2e\x4b" |
| 30973 | "\x68\x85\xa2\xbf\xdc\xf9\x16\x33" |
| 30974 | "\x50\x6d\x8a\xa7\xc4\xe1\xfe\x1b" |
| 30975 | "\x38\x55\x72\x8f\xac\xc9\xe6\x03" |
| 30976 | "\x20\x3d\x5a\x77\x94\xb1\xce\xeb" |
| 30977 | "\x08\x25\x42\x5f\x7c\x99\xb6\xd3" |
| 30978 | "\xf0\x0d\x2a\x47\x64\x81\x9e\xbb" |
| 30979 | "\xd8\xf5\x12\x2f\x4c\x69\x86\xa3" |
| 30980 | "\xc0\xdd\xfa\x17\x34\x51\x6e\x8b" |
| 30981 | "\xa8\xc5\xe2\xff\x1c\x39\x56\x73" |
| 30982 | "\x90\xad\xca\xe7\x04\x21\x3e\x5b" |
| 30983 | "\x78\x95\xb2\xcf\xec\x09\x26\x43" |
| 30984 | "\x60\x7d\x9a\xb7\xd4\xf1\x0e\x2b" |
| 30985 | "\x48\x65\x82\x9f\xbc\xd9\xf6\x13" |
| 30986 | "\x30\x4d\x6a\x87\xa4\xc1\xde\xfb" |
| 30987 | "\x18\x35\x52\x6f\x8c\xa9\xc6\xe3" |
| 30988 | "\x00\x1f\x3e\x5d\x7c\x9b\xba\xd9" |
| 30989 | "\xf8\x17\x36\x55\x74\x93\xb2\xd1" |
| 30990 | "\xf0\x0f\x2e\x4d\x6c\x8b\xaa\xc9" |
| 30991 | "\xe8\x07\x26\x45\x64\x83\xa2\xc1" |
| 30992 | "\xe0\xff\x1e\x3d\x5c\x7b\x9a\xb9" |
| 30993 | "\xd8\xf7\x16\x35\x54\x73\x92\xb1" |
| 30994 | "\xd0\xef\x0e\x2d\x4c\x6b\x8a\xa9" |
| 30995 | "\xc8\xe7\x06\x25\x44\x63\x82\xa1" |
| 30996 | "\xc0\xdf\xfe\x1d\x3c\x5b\x7a\x99" |
| 30997 | "\xb8\xd7\xf6\x15\x34\x53\x72\x91" |
| 30998 | "\xb0\xcf\xee\x0d\x2c\x4b\x6a\x89" |
| 30999 | "\xa8\xc7\xe6\x05\x24\x43\x62\x81" |
| 31000 | "\xa0\xbf\xde\xfd\x1c\x3b\x5a\x79" |
| 31001 | "\x98\xb7\xd6\xf5\x14\x33\x52\x71" |
| 31002 | "\x90\xaf\xce\xed\x0c\x2b\x4a\x69" |
| 31003 | "\x88\xa7\xc6\xe5\x04\x23\x42\x61" |
| 31004 | "\x80\x9f\xbe\xdd\xfc\x1b\x3a\x59" |
| 31005 | "\x78\x97\xb6\xd5\xf4\x13\x32\x51" |
| 31006 | "\x70\x8f\xae\xcd\xec\x0b\x2a\x49" |
| 31007 | "\x68\x87\xa6\xc5\xe4\x03\x22\x41" |
| 31008 | "\x60\x7f\x9e\xbd\xdc\xfb\x1a\x39" |
| 31009 | "\x58\x77\x96\xb5\xd4\xf3\x12\x31" |
| 31010 | "\x50\x6f\x8e\xad\xcc\xeb\x0a\x29" |
| 31011 | "\x48\x67\x86\xa5\xc4\xe3\x02\x21" |
| 31012 | "\x40\x5f\x7e\x9d\xbc\xdb\xfa\x19" |
| 31013 | "\x38\x57\x76\x95\xb4\xd3\xf2\x11" |
| 31014 | "\x30\x4f\x6e\x8d\xac\xcb\xea\x09" |
| 31015 | "\x28\x47\x66\x85\xa4\xc3\xe2\x01" |
| 31016 | "\x20\x3f\x5e\x7d\x9c\xbb\xda\xf9" |
| 31017 | "\x18\x37\x56\x75\x94\xb3\xd2\xf1" |
| 31018 | "\x10\x2f\x4e\x6d\x8c\xab\xca\xe9" |
| 31019 | "\x08\x27\x46\x65\x84\xa3\xc2\xe1" |
| 31020 | "\x00\x21\x42\x63", |
| 31021 | .ilen = 4100, |
| 31022 | .result = |
| 31023 | "\xb5\x81\xf5\x64\x18\x73\xe3\xf0" |
| 31024 | "\x4c\x13\xf2\x77\x18\x60\x65\x5e" |
| 31025 | "\x29\x01\xce\x98\x55\x53\xf9\x0c" |
| 31026 | "\x2a\x08\xd5\x09\xb3\x57\x55\x56" |
| 31027 | "\xc5\xe9\x56\x90\xcb\x6a\xa3\xc0" |
| 31028 | "\xff\xc4\x79\xb4\xd2\x97\x5d\xc4" |
| 31029 | "\x43\xd1\xfe\x94\x7b\x88\x06\x5a" |
| 31030 | "\xb2\x9e\x2c\xfc\x44\x03\xb7\x90" |
| 31031 | "\xa0\xc1\xba\x6a\x33\xb8\xc7\xb2" |
| 31032 | "\x9d\xe1\x12\x4f\xc0\x64\xd4\x01" |
| 31033 | "\xfe\x8c\x7a\x66\xf7\xe6\x5a\x91" |
| 31034 | "\xbb\xde\x56\x86\xab\x65\x21\x30" |
| 31035 | "\x00\x84\x65\x24\xa5\x7d\x85\xb4" |
| 31036 | "\xe3\x17\xed\x3a\xb7\x6f\xb4\x0b" |
| 31037 | "\x0b\xaf\x15\xae\x5a\x8f\xf2\x0c" |
| 31038 | "\x2f\x27\xf4\x09\xd8\xd2\x96\xb7" |
| 31039 | "\x71\xf2\xc5\x99\x4d\x7e\x7f\x75" |
| 31040 | "\x77\x89\x30\x8b\x59\xdb\xa2\xb2" |
| 31041 | "\xa0\xf3\x19\x39\x2b\xc5\x7e\x3f" |
| 31042 | "\x4f\xd9\xd3\x56\x28\x97\x44\xdc" |
| 31043 | "\xc0\x8b\x77\x24\xd9\x52\xe7\xc5" |
| 31044 | "\xaf\xf6\x7d\x59\xb2\x44\x05\x1d" |
| 31045 | "\xb1\xb0\x11\xa5\x0f\xec\x33\xe1" |
| 31046 | "\x6d\x1b\x4e\x1f\xff\x57\x91\xb4" |
| 31047 | "\x5b\x9a\x96\xc5\x53\xbc\xae\x20" |
| 31048 | "\x3c\xbb\x14\xe2\xe8\x22\x33\xc1" |
| 31049 | "\x5e\x76\x9e\x46\x99\xf6\x2a\x15" |
| 31050 | "\xc6\x97\x02\xa0\x66\x43\xd1\xa6" |
| 31051 | "\x31\xa6\x9f\xfb\xf4\xd3\x69\xe5" |
| 31052 | "\xcd\x76\x95\xb8\x7a\x82\x7f\x21" |
| 31053 | "\x45\xff\x3f\xce\x55\xf6\x95\x10" |
| 31054 | "\x08\x77\x10\x43\xc6\xf3\x09\xe5" |
| 31055 | "\x68\xe7\x3c\xad\x00\x52\x45\x0d" |
| 31056 | "\xfe\x2d\xc6\xc2\x94\x8c\x12\x1d" |
| 31057 | "\xe6\x25\xae\x98\x12\x8e\x19\x9c" |
| 31058 | "\x81\x68\xb1\x11\xf6\x69\xda\xe3" |
| 31059 | "\x62\x08\x18\x7a\x25\x49\x28\xac" |
| 31060 | "\xba\x71\x12\x0b\xe4\xa2\xe5\xc7" |
| 31061 | "\x5d\x8e\xec\x49\x40\x21\xbf\x5a" |
| 31062 | "\x98\xf3\x02\x68\x55\x03\x7f\x8a" |
| 31063 | "\xe5\x94\x0c\x32\x5c\x07\x82\x63" |
| 31064 | "\xaf\x6f\x91\x40\x84\x8e\x52\x25" |
| 31065 | "\xd0\xb0\x29\x53\x05\xe2\x50\x7a" |
| 31066 | "\x34\xeb\xc9\x46\x20\xa8\x3d\xde" |
| 31067 | "\x7f\x16\x5f\x36\xc5\x2e\xdc\xd1" |
| 31068 | "\x15\x47\xc7\x50\x40\x6d\x91\xc5" |
| 31069 | "\xe7\x93\x95\x1a\xd3\x57\xbc\x52" |
| 31070 | "\x33\xee\x14\x19\x22\x52\x89\xa7" |
| 31071 | "\x4a\x25\x56\x77\x4b\xca\xcf\x0a" |
| 31072 | "\xe1\xf5\x35\x85\x30\x7e\x59\x4a" |
| 31073 | "\xbd\x14\x5b\xdf\xe3\x46\xcb\xac" |
| 31074 | "\x1f\x6c\x96\x0e\xf4\x81\xd1\x99" |
| 31075 | "\xca\x88\x63\x3d\x02\x58\x6b\xa9" |
| 31076 | "\xe5\x9f\xb3\x00\xb2\x54\xc6\x74" |
| 31077 | "\x1c\xbf\x46\xab\x97\xcc\xf8\x54" |
| 31078 | "\x04\x07\x08\x52\xe6\xc0\xda\x93" |
| 31079 | "\x74\x7d\x93\x99\x5d\x78\x68\xa6" |
| 31080 | "\x2e\x6b\xd3\x6a\x69\xcc\x12\x6b" |
| 31081 | "\xd4\xc7\xa5\xc6\xe7\xf6\x03\x04" |
| 31082 | "\x5d\xcd\x61\x5e\x17\x40\xdc\xd1" |
| 31083 | "\x5c\xf5\x08\xdf\x5c\x90\x85\xa4" |
| 31084 | "\xaf\xf6\x78\xbb\x0d\xf1\xf4\xa4" |
| 31085 | "\x54\x26\x72\x9e\x61\xfa\x86\xcf" |
| 31086 | "\xe8\x9e\xa1\xe0\xc7\x48\x23\xae" |
| 31087 | "\x5a\x90\xae\x75\x0a\x74\x18\x89" |
| 31088 | "\x05\xb1\x92\xb2\x7f\xd0\x1b\xa6" |
| 31089 | "\x62\x07\x25\x01\xc7\xc2\x4f\xf9" |
| 31090 | "\xe8\xfe\x63\x95\x80\x07\xb4\x26" |
| 31091 | "\xcc\xd1\x26\xb6\xc4\x3f\x9e\xcb" |
| 31092 | "\x8e\x3b\x2e\x44\x16\xd3\x10\x9a" |
| 31093 | "\x95\x08\xeb\xc8\xcb\xeb\xbf\x6f" |
| 31094 | "\x0b\xcd\x1f\xc8\xca\x86\xaa\xec" |
| 31095 | "\x33\xe6\x69\xf4\x45\x25\x86\x3a" |
| 31096 | "\x22\x94\x4f\x00\x23\x6a\x44\xc2" |
| 31097 | "\x49\x97\x33\xab\x36\x14\x0a\x70" |
| 31098 | "\x24\xc3\xbe\x04\x3b\x79\xa0\xf9" |
| 31099 | "\xb8\xe7\x76\x29\x22\x83\xd7\xf2" |
| 31100 | "\x94\xf4\x41\x49\xba\x5f\x7b\x07" |
| 31101 | "\xb5\xfb\xdb\x03\x1a\x9f\xb6\x4c" |
| 31102 | "\xc2\x2e\x37\x40\x49\xc3\x38\x16" |
| 31103 | "\xe2\x4f\x77\x82\xb0\x68\x4c\x71" |
| 31104 | "\x1d\x57\x61\x9c\xd9\x4e\x54\x99" |
| 31105 | "\x47\x13\x28\x73\x3c\xbb\x00\x90" |
| 31106 | "\xf3\x4d\xc9\x0e\xfd\xe7\xb1\x71" |
| 31107 | "\xd3\x15\x79\xbf\xcc\x26\x2f\xbd" |
| 31108 | "\xad\x6c\x50\x69\x6c\x3e\x6d\x80" |
| 31109 | "\x9a\xea\x78\xaf\x19\xb2\x0d\x4d" |
| 31110 | "\xad\x04\x07\xae\x22\x90\x4a\x93" |
| 31111 | "\x32\x0e\x36\x9b\x1b\x46\xba\x3b" |
| 31112 | "\xb4\xac\xc6\xd1\xa2\x31\x53\x3b" |
| 31113 | "\x2a\x3d\x45\xfe\x03\x61\x10\x85" |
| 31114 | "\x17\x69\xa6\x78\xcc\x6c\x87\x49" |
| 31115 | "\x53\xf9\x80\x10\xde\x80\xa2\x41" |
| 31116 | "\x6a\xc3\x32\x02\xad\x6d\x3c\x56" |
| 31117 | "\x00\x71\x51\x06\xa7\xbd\xfb\xef" |
| 31118 | "\x3c\xb5\x9f\xfc\x48\x7d\x53\x7c" |
| 31119 | "\x66\xb0\x49\x23\xc4\x47\x10\x0e" |
| 31120 | "\xe5\x6c\x74\x13\xe6\xc5\x3f\xaa" |
| 31121 | "\xde\xff\x07\x44\xdd\x56\x1b\xad" |
| 31122 | "\x09\x77\xfb\x5b\x12\xb8\x0d\x38" |
| 31123 | "\x17\x37\x35\x7b\x9b\xbc\xfe\xd4" |
| 31124 | "\x7e\x8b\xda\x7e\x5b\x04\xa7\x22" |
| 31125 | "\xa7\x31\xa1\x20\x86\xc7\x1b\x99" |
| 31126 | "\xdb\xd1\x89\xf4\x94\xa3\x53\x69" |
| 31127 | "\x8d\xe7\xe8\x74\x11\x8d\x74\xd6" |
| 31128 | "\x07\x37\x91\x9f\xfd\x67\x50\x3a" |
| 31129 | "\xc9\xe1\xf4\x36\xd5\xa0\x47\xd1" |
| 31130 | "\xf9\xe5\x39\xa3\x31\xac\x07\x36" |
| 31131 | "\x23\xf8\x66\x18\x14\x28\x34\x0f" |
| 31132 | "\xb8\xd0\xe7\x29\xb3\x04\x4b\x55" |
| 31133 | "\x01\x41\xb2\x75\x8d\xcb\x96\x85" |
| 31134 | "\x3a\xfb\xab\x2b\x9e\xfa\x58\x20" |
| 31135 | "\x44\x1f\xc0\x14\x22\x75\x61\xe8" |
| 31136 | "\xaa\x19\xcf\xf1\x82\x56\xf4\xd7" |
| 31137 | "\x78\x7b\x3d\x5f\xb3\x9e\x0b\x8a" |
| 31138 | "\x57\x50\xdb\x17\x41\x65\x4d\xa3" |
| 31139 | "\x02\xc9\x9c\x9c\x53\xfb\x39\x39" |
| 31140 | "\x9b\x1d\x72\x24\xda\xb7\x39\xbe" |
| 31141 | "\x13\x3b\xfa\x29\xda\x9e\x54\x64" |
| 31142 | "\x6e\xba\xd8\xa1\xcb\xb3\x36\xfa" |
| 31143 | "\xcb\x47\x85\xe9\x61\x38\xbc\xbe" |
| 31144 | "\xc5\x00\x38\x2a\x54\xf7\xc4\xb9" |
| 31145 | "\xb3\xd3\x7b\xa0\xa0\xf8\x72\x7f" |
| 31146 | "\x8c\x8e\x82\x0e\xc6\x1c\x75\x9d" |
| 31147 | "\xca\x8e\x61\x87\xde\xad\x80\xd2" |
| 31148 | "\xf5\xf9\x80\xef\x15\x75\xaf\xf5" |
| 31149 | "\x80\xfb\xff\x6d\x1e\x25\xb7\x40" |
| 31150 | "\x61\x6a\x39\x5a\x6a\xb5\x31\xab" |
| 31151 | "\x97\x8a\x19\x89\x44\x40\xc0\xa6" |
| 31152 | "\xb4\x4e\x30\x32\x7b\x13\xe7\x67" |
| 31153 | "\xa9\x8b\x57\x04\xc2\x01\xa6\xf4" |
| 31154 | "\x28\x99\xad\x2c\x76\xa3\x78\xc2" |
| 31155 | "\x4a\xe6\xca\x5c\x50\x6a\xc1\xb0" |
| 31156 | "\x62\x4b\x10\x8e\x7c\x17\x43\xb3" |
| 31157 | "\x17\x66\x1c\x3e\x8d\x69\xf0\x5a" |
| 31158 | "\x71\xf5\x97\xdc\xd1\x45\xdd\x28" |
| 31159 | "\xf3\x5d\xdf\x53\x7b\x11\xe5\xbc" |
| 31160 | "\x4c\xdb\x1b\x51\x6b\xe9\xfb\x3d" |
| 31161 | "\xc1\xc3\x2c\xb9\x71\xf5\xb6\xb2" |
| 31162 | "\x13\x36\x79\x80\x53\xe8\xd3\xa6" |
| 31163 | "\x0a\xaf\xfd\x56\x97\xf7\x40\x8e" |
| 31164 | "\x45\xce\xf8\xb0\x9e\x5c\x33\x82" |
| 31165 | "\xb0\x44\x56\xfc\x05\x09\xe9\x2a" |
| 31166 | "\xac\x26\x80\x14\x1d\xc8\x3a\x35" |
| 31167 | "\x4c\x82\x97\xfd\x76\xb7\xa9\x0a" |
| 31168 | "\x35\x58\x79\x8e\x0f\x66\xea\xaf" |
| 31169 | "\x51\x6c\x09\xa9\x6e\x9b\xcb\x9a" |
| 31170 | "\x31\x47\xa0\x2f\x7c\x71\xb4\x4a" |
| 31171 | "\x11\xaa\x8c\x66\xc5\x64\xe6\x3a" |
| 31172 | "\x54\xda\x24\x6a\xc4\x41\x65\x46" |
| 31173 | "\x82\xa0\x0a\x0f\x5f\xfb\x25\xd0" |
| 31174 | "\x2c\x91\xa7\xee\xc4\x81\x07\x86" |
| 31175 | "\x75\x5e\x33\x69\x97\xe4\x2c\xa8" |
| 31176 | "\x9d\x9f\x0b\x6a\xbe\xad\x98\xda" |
| 31177 | "\x6d\x94\x41\xda\x2c\x1e\x89\xc4" |
| 31178 | "\xc2\xaf\x1e\x00\x05\x0b\x83\x60" |
| 31179 | "\xbd\x43\xea\x15\x23\x7f\xb9\xac" |
| 31180 | "\xee\x4f\x2c\xaf\x2a\xf3\xdf\xd0" |
| 31181 | "\xf3\x19\x31\xbb\x4a\x74\x84\x17" |
| 31182 | "\x52\x32\x2c\x7d\x61\xe4\xcb\xeb" |
| 31183 | "\x80\x38\x15\x52\xcb\x6f\xea\xe5" |
| 31184 | "\x73\x9c\xd9\x24\x69\xc6\x95\x32" |
| 31185 | "\x21\xc8\x11\xe4\xdc\x36\xd7\x93" |
| 31186 | "\x38\x66\xfb\xb2\x7f\x3a\xb9\xaf" |
| 31187 | "\x31\xdd\x93\x75\x78\x8a\x2c\x94" |
| 31188 | "\x87\x1a\x58\xec\x9e\x7d\x4d\xba" |
| 31189 | "\xe1\xe5\x4d\xfc\xbc\xa4\x2a\x14" |
| 31190 | "\xef\xcc\xa7\xec\xab\x43\x09\x18" |
| 31191 | "\xd3\xab\x68\xd1\x07\x99\x44\x47" |
| 31192 | "\xd6\x83\x85\x3b\x30\xea\xa9\x6b" |
| 31193 | "\x63\xea\xc4\x07\xfb\x43\x2f\xa4" |
| 31194 | "\xaa\xb0\xab\x03\x89\xce\x3f\x8c" |
| 31195 | "\x02\x7c\x86\x54\xbc\x88\xaf\x75" |
| 31196 | "\xd2\xdc\x63\x17\xd3\x26\xf6\x96" |
| 31197 | "\xa9\x3c\xf1\x61\x8c\x11\x18\xcc" |
| 31198 | "\xd6\xea\x5b\xe2\xcd\xf0\xf1\xb2" |
| 31199 | "\xe5\x35\x90\x1f\x85\x4c\x76\x5b" |
| 31200 | "\x66\xce\x44\xa4\x32\x9f\xe6\x7b" |
| 31201 | "\x71\x6e\x9f\x58\x15\x67\x72\x87" |
| 31202 | "\x64\x8e\x3a\x44\x45\xd4\x76\xfa" |
| 31203 | "\xc2\xf6\xef\x85\x05\x18\x7a\x9b" |
| 31204 | "\xba\x41\x54\xac\xf0\xfc\x59\x12" |
| 31205 | "\x3f\xdf\xa0\xe5\x8a\x65\xfd\x3a" |
| 31206 | "\x62\x8d\x83\x2c\x03\xbe\x05\x76" |
| 31207 | "\x2e\x53\x49\x97\x94\x33\xae\x40" |
| 31208 | "\x81\x15\xdb\x6e\xad\xaa\xf5\x4b" |
| 31209 | "\xe3\x98\x70\xdf\xe0\x7c\xcd\xdb" |
| 31210 | "\x02\xd4\x7d\x2f\xc1\xe6\xb4\xf3" |
| 31211 | "\xd7\x0d\x7a\xd9\x23\x9e\x87\x2d" |
| 31212 | "\xce\x87\xad\xcc\x72\x05\x00\x29" |
| 31213 | "\xdc\x73\x7f\x64\xc1\x15\x0e\xc2" |
| 31214 | "\xdf\xa7\x5f\xeb\x41\xa1\xcd\xef" |
| 31215 | "\x5c\x50\x79\x2a\x56\x56\x71\x8c" |
| 31216 | "\xac\xc0\x79\x50\x69\xca\x59\x32" |
| 31217 | "\x65\xf2\x54\xe4\x52\x38\x76\xd1" |
| 31218 | "\x5e\xde\x26\x9e\xfb\x75\x2e\x11" |
| 31219 | "\xb5\x10\xf4\x17\x73\xf5\x89\xc7" |
| 31220 | "\x4f\x43\x5c\x8e\x7c\xb9\x05\x52" |
| 31221 | "\x24\x40\x99\xfe\x9b\x85\x0b\x6c" |
| 31222 | "\x22\x3e\x8b\xae\x86\xa1\xd2\x79" |
| 31223 | "\x05\x68\x6b\xab\xe3\x41\x49\xed" |
| 31224 | "\x15\xa1\x8d\x40\x2d\x61\xdf\x1a" |
| 31225 | "\x59\xc9\x26\x8b\xef\x30\x4c\x88" |
| 31226 | "\x4b\x10\xf8\x8d\xa6\x92\x9f\x4b" |
| 31227 | "\xf3\xc4\x53\x0b\x89\x5d\x28\x92" |
| 31228 | "\xcf\x78\xb2\xc0\x5d\xed\x7e\xfc" |
| 31229 | "\xc0\x12\x23\x5f\x5a\x78\x86\x43" |
| 31230 | "\x6e\x27\xf7\x5a\xa7\x6a\xed\x19" |
| 31231 | "\x04\xf0\xb3\x12\xd1\xbd\x0e\x89" |
| 31232 | "\x6e\xbc\x96\xa8\xd8\x49\x39\x9f" |
| 31233 | "\x7e\x67\xf0\x2e\x3e\x01\xa9\xba" |
| 31234 | "\xec\x8b\x62\x8e\xcb\x4a\x70\x43" |
| 31235 | "\xc7\xc2\xc4\xca\x82\x03\x73\xe9" |
| 31236 | "\x11\xdf\xcf\x54\xea\xc9\xb0\x95" |
| 31237 | "\x51\xc0\x13\x3d\x92\x05\xfa\xf4" |
| 31238 | "\xa9\x34\xc8\xce\x6c\x3d\x54\xcc" |
| 31239 | "\xc4\xaf\xf1\xdc\x11\x44\x26\xa2" |
| 31240 | "\xaf\xf1\x85\x75\x7d\x03\x61\x68" |
| 31241 | "\x4e\x78\xc6\x92\x7d\x86\x7d\x77" |
| 31242 | "\xdc\x71\x72\xdb\xc6\xae\xa1\xcb" |
| 31243 | "\x70\x9a\x0b\x19\xbe\x4a\x6c\x2a" |
| 31244 | "\xe2\xba\x6c\x64\x9a\x13\x28\xdf" |
| 31245 | "\x85\x75\xe6\x43\xf6\x87\x08\x68" |
| 31246 | "\x6e\xba\x6e\x79\x9f\x04\xbc\x23" |
| 31247 | "\x50\xf6\x33\x5c\x1f\x24\x25\xbe" |
| 31248 | "\x33\x47\x80\x45\x56\xa3\xa7\xd7" |
| 31249 | "\x7a\xb1\x34\x0b\x90\x3c\x9c\xad" |
| 31250 | "\x44\x5f\x9e\x0e\x9d\xd4\xbd\x93" |
| 31251 | "\x5e\xfa\x3c\xe0\xb0\xd9\xed\xf3" |
| 31252 | "\xd6\x2e\xff\x24\xd8\x71\x6c\xed" |
| 31253 | "\xaf\x55\xeb\x22\xac\x93\x68\x32" |
| 31254 | "\x05\x5b\x47\xdd\xc6\x4a\xcb\xc7" |
| 31255 | "\x10\xe1\x3c\x92\x1a\xf3\x23\x78" |
| 31256 | "\x2b\xa1\xd2\x80\xf4\x12\xb1\x20" |
| 31257 | "\x8f\xff\x26\x35\xdd\xfb\xc7\x4e" |
| 31258 | "\x78\xf1\x2d\x50\x12\x77\xa8\x60" |
| 31259 | "\x7c\x0f\xf5\x16\x2f\x63\x70\x2a" |
| 31260 | "\xc0\x96\x80\x4e\x0a\xb4\x93\x35" |
| 31261 | "\x5d\x1d\x3f\x56\xf7\x2f\xbb\x90" |
| 31262 | "\x11\x16\x8f\xa2\xec\x47\xbe\xac" |
| 31263 | "\x56\x01\x26\x56\xb1\x8c\xb2\x10" |
| 31264 | "\xf9\x1a\xca\xf5\xd1\xb7\x39\x20" |
| 31265 | "\x63\xf1\x69\x20\x4f\x13\x12\x1f" |
| 31266 | "\x5b\x65\xfc\x98\xf7\xc4\x7a\xbe" |
| 31267 | "\xf7\x26\x4d\x2b\x84\x7b\x42\xad" |
| 31268 | "\xd8\x7a\x0a\xb4\xd8\x74\xbf\xc1" |
| 31269 | "\xf0\x6e\xb4\x29\xa3\xbb\xca\x46" |
| 31270 | "\x67\x70\x6a\x2d\xce\x0e\xa2\x8a" |
| 31271 | "\xa9\x87\xbf\x05\xc4\xc1\x04\xa3" |
| 31272 | "\xab\xd4\x45\x43\x8c\xb6\x02\xb0" |
| 31273 | "\x41\xc8\xfc\x44\x3d\x59\xaa\x2e" |
| 31274 | "\x44\x21\x2a\x8d\x88\x9d\x57\xf4" |
| 31275 | "\xa0\x02\x77\xb8\xa6\xa0\xe6\x75" |
| 31276 | "\x5c\x82\x65\x3e\x03\x5c\x29\x8f" |
| 31277 | "\x38\x55\xab\x33\x26\xef\x9f\x43" |
| 31278 | "\x52\xfd\x68\xaf\x36\xb4\xbb\x9a" |
| 31279 | "\x58\x09\x09\x1b\xc3\x65\x46\x46" |
| 31280 | "\x1d\xa7\x94\x18\x23\x50\x2c\xca" |
| 31281 | "\x2c\x55\x19\x97\x01\x9d\x93\x3b" |
| 31282 | "\x63\x86\xf2\x03\x67\x45\xd2\x72" |
| 31283 | "\x28\x52\x6c\xf4\xe3\x1c\xb5\x11" |
| 31284 | "\x13\xf1\xeb\x21\xc7\xd9\x56\x82" |
| 31285 | "\x2b\x82\x39\xbd\x69\x54\xed\x62" |
| 31286 | "\xc3\xe2\xde\x73\xd4\x6a\x12\xae" |
| 31287 | "\x13\x21\x7f\x4b\x5b\xfc\xbf\xe8" |
| 31288 | "\x2b\xbe\x56\xba\x68\x8b\x9a\xb1" |
| 31289 | "\x6e\xfa\xbf\x7e\x5a\x4b\xf1\xac" |
| 31290 | "\x98\x65\x85\xd1\x93\x53\xd3\x7b" |
| 31291 | "\x09\xdd\x4b\x10\x6d\x84\xb0\x13" |
| 31292 | "\x65\xbd\xcf\x52\x09\xc4\x85\xe2" |
| 31293 | "\x84\x74\x15\x65\xb7\xf7\x51\xaf" |
| 31294 | "\x55\xad\xa4\xd1\x22\x54\x70\x94" |
| 31295 | "\xa0\x1c\x90\x41\xfd\x99\xd7\x5a" |
| 31296 | "\x31\xef\xaa\x25\xd0\x7f\x4f\xea" |
| 31297 | "\x1d\x55\x42\xe5\x49\xb0\xd0\x46" |
| 31298 | "\x62\x36\x43\xb2\x82\x15\x75\x50" |
| 31299 | "\xa4\x72\xeb\x54\x27\x1f\x8a\xe4" |
| 31300 | "\x7d\xe9\x66\xc5\xf1\x53\xa4\xd1" |
| 31301 | "\x0c\xeb\xb8\xf8\xbc\xd4\xe2\xe7" |
| 31302 | "\xe1\xf8\x4b\xcb\xa9\xa1\xaf\x15" |
| 31303 | "\x83\xcb\x72\xd0\x33\x79\x00\x2d" |
| 31304 | "\x9f\xd7\xf1\x2e\x1e\x10\xe4\x45" |
| 31305 | "\xc0\x75\x3a\x39\xea\x68\xf7\x5d" |
| 31306 | "\x1b\x73\x8f\xe9\x8e\x0f\x72\x47" |
| 31307 | "\xae\x35\x0a\x31\x7a\x14\x4d\x4a" |
| 31308 | "\x6f\x47\xf7\x7e\x91\x6e\x74\x8b" |
| 31309 | "\x26\x47\xf9\xc3\xf9\xde\x70\xf5" |
| 31310 | "\x61\xab\xa9\x27\x9f\x82\xe4\x9c" |
| 31311 | "\x89\x91\x3f\x2e\x6a\xfd\xb5\x49" |
| 31312 | "\xe9\xfd\x59\x14\x36\x49\x40\x6d" |
| 31313 | "\x32\xd8\x85\x42\xf3\xa5\xdf\x0c" |
| 31314 | "\xa8\x27\xd7\x54\xe2\x63\x2f\xf2" |
| 31315 | "\x7e\x8b\x8b\xe7\xf1\x9a\x95\x35" |
| 31316 | "\x43\xdc\x3a\xe4\xb6\xf4\xd0\xdf" |
| 31317 | "\x9c\xcb\x94\xf3\x21\xa0\x77\x50" |
| 31318 | "\xe2\xc6\xc4\xc6\x5f\x09\x64\x5b" |
| 31319 | "\x92\x90\xd8\xe1\xd1\xed\x4b\x42" |
| 31320 | "\xd7\x37\xaf\x65\x3d\x11\x39\xb6" |
| 31321 | "\x24\x8a\x60\xae\xd6\x1e\xbf\x0e" |
| 31322 | "\x0d\xd7\xdc\x96\x0e\x65\x75\x4e" |
| 31323 | "\x29\x06\x9d\xa4\x51\x3a\x10\x63" |
| 31324 | "\x8f\x17\x07\xd5\x8e\x3c\xf4\x28" |
| 31325 | "\x00\x5a\x5b\x05\x19\xd8\xc0\x6c" |
| 31326 | "\xe5\x15\xe4\x9c\x9d\x71\x9d\x5e" |
| 31327 | "\x94\x29\x1a\xa7\x80\xfa\x0e\x33" |
| 31328 | "\x03\xdd\xb7\x3e\x9a\xa9\x26\x18" |
| 31329 | "\x37\xa9\x64\x08\x4d\x94\x5a\x88" |
| 31330 | "\xca\x35\xce\x81\x02\xe3\x1f\x1b" |
| 31331 | "\x89\x1a\x77\x85\xe3\x41\x6d\x32" |
| 31332 | "\x42\x19\x23\x7d\xc8\x73\xee\x25" |
| 31333 | "\x85\x0d\xf8\x31\x25\x79\x1b\x6f" |
| 31334 | "\x79\x25\xd2\xd8\xd4\x23\xfd\xf7" |
| 31335 | "\x82\x36\x6a\x0c\x46\x22\x15\xe9" |
| 31336 | "\xff\x72\x41\x91\x91\x7d\x3a\xb7" |
| 31337 | "\xdd\x65\x99\x70\xf6\x8d\x84\xf8" |
| 31338 | "\x67\x15\x20\x11\xd6\xb2\x55\x7b" |
| 31339 | "\xdb\x87\xee\xef\x55\x89\x2a\x59" |
| 31340 | "\x2b\x07\x8f\x43\x8a\x59\x3c\x01" |
| 31341 | "\x8b\x65\x54\xa1\x66\xd5\x38\xbd" |
| 31342 | "\xc6\x30\xa9\xcc\x49\xb6\xa8\x1b" |
| 31343 | "\xb8\xc0\x0e\xe3\x45\x28\xe2\xff" |
| 31344 | "\x41\x9f\x7e\x7c\xd1\xae\x9e\x25" |
| 31345 | "\x3f\x4c\x7c\x7c\xf4\xa8\x26\x4d" |
| 31346 | "\x5c\xfd\x4b\x27\x18\xf9\x61\x76" |
| 31347 | "\x48\xba\x0c\x6b\xa9\x4d\xfc\xf5" |
| 31348 | "\x3b\x35\x7e\x2f\x4a\xa9\xc2\x9a" |
| 31349 | "\xae\xab\x86\x09\x89\xc9\xc2\x40" |
| 31350 | "\x39\x2c\x81\xb3\xb8\x17\x67\xc2" |
| 31351 | "\x0d\x32\x4a\x3a\x67\x81\xd7\x1a" |
| 31352 | "\x34\x52\xc5\xdb\x0a\xf5\x63\x39" |
| 31353 | "\xea\x1f\xe1\x7c\xa1\x9e\xc1\x35" |
| 31354 | "\xe3\xb1\x18\x45\x67\xf9\x22\x38" |
| 31355 | "\x95\xd9\x34\x34\x86\xc6\x41\x94" |
| 31356 | "\x15\xf9\x5b\x41\xa6\x87\x8b\xf8" |
| 31357 | "\xd5\xe1\x1b\xe2\x5b\xf3\x86\x10" |
| 31358 | "\xff\xe6\xae\x69\x76\xbc\x0d\xb4" |
| 31359 | "\x09\x90\x0c\xa2\x65\x0c\xad\x74" |
| 31360 | "\xf5\xd7\xff\xda\xc1\xce\x85\xbe" |
| 31361 | "\x00\xa7\xff\x4d\x2f\x65\xd3\x8c" |
| 31362 | "\x86\x2d\x05\xe8\xed\x3e\x6b\x8b" |
| 31363 | "\x0f\x3d\x83\x8c\xf1\x1d\x5b\x96" |
| 31364 | "\x2e\xb1\x9c\xc2\x98\xe1\x70\xb9" |
| 31365 | "\xba\x5c\x8a\x43\xd6\x34\xa7\x2d" |
| 31366 | "\xc9\x92\xae\xf2\xa5\x7b\x05\x49" |
| 31367 | "\xa7\x33\x34\x86\xca\xe4\x96\x23" |
| 31368 | "\x76\x5b\xf2\xc6\xf1\x51\x28\x42" |
| 31369 | "\x7b\xcc\x76\x8f\xfa\xa2\xad\x31" |
| 31370 | "\xd4\xd6\x7a\x6d\x25\x25\x54\xe4" |
| 31371 | "\x3f\x50\x59\xe1\x5c\x05\xb7\x27" |
| 31372 | "\x48\xbf\x07\xec\x1b\x13\xbe\x2b" |
| 31373 | "\xa1\x57\x2b\xd5\xab\xd7\xd0\x4c" |
| 31374 | "\x1e\xcb\x71\x9b\xc5\x90\x85\xd3" |
| 31375 | "\xde\x59\xec\x71\xeb\x89\xbb\xd0" |
| 31376 | "\x09\x50\xe1\x16\x3f\xfd\x1c\x34" |
| 31377 | "\xc3\x1c\xa1\x10\x77\x53\x98\xef" |
| 31378 | "\xf2\xfd\xa5\x01\x59\xc2\x9b\x26" |
| 31379 | "\xc7\x42\xd9\x49\xda\x58\x2b\x6e" |
| 31380 | "\x9f\x53\x19\x76\x7e\xd9\xc9\x0e" |
| 31381 | "\x68\xc8\x7f\x51\x22\x42\xef\x49" |
| 31382 | "\xa4\x55\xb6\x36\xac\x09\xc7\x31" |
| 31383 | "\x88\x15\x4b\x2e\x8f\x3a\x08\xf7" |
| 31384 | "\xd8\xf7\xa8\xc5\xa9\x33\xa6\x45" |
| 31385 | "\xe4\xc4\x94\x76\xf3\x0d\x8f\x7e" |
| 31386 | "\xc8\xf6\xbc\x23\x0a\xb6\x4c\xd3" |
| 31387 | "\x6a\xcd\x36\xc2\x90\x5c\x5c\x3c" |
| 31388 | "\x65\x7b\xc2\xd6\xcc\xe6\x0d\x87" |
| 31389 | "\x73\x2e\x71\x79\x16\x06\x63\x28" |
| 31390 | "\x09\x15\xd8\x89\x38\x38\x3d\xb5" |
| 31391 | "\x42\x1c\x08\x24\xf7\x2a\xd2\x9d" |
| 31392 | "\xc8\xca\xef\xf9\x27\xd8\x07\x86" |
| 31393 | "\xf7\x43\x0b\x55\x15\x3f\x9f\x83" |
| 31394 | "\xef\xdc\x49\x9d\x2a\xc1\x54\x62" |
| 31395 | "\xbd\x9b\x66\x55\x9f\xb7\x12\xf3" |
| 31396 | "\x1b\x4d\x9d\x2a\x5c\xed\x87\x75" |
| 31397 | "\x87\x26\xec\x61\x2c\xb4\x0f\x89" |
| 31398 | "\xb0\xfb\x2e\x68\x5d\x15\xc7\x8d" |
| 31399 | "\x2e\xc0\xd9\xec\xaf\x4f\xd2\x25" |
| 31400 | "\x29\xe8\xd2\x26\x2b\x67\xe9\xfc" |
| 31401 | "\x2b\xa8\x67\x96\x12\x1f\x5b\x96" |
| 31402 | "\xc6\x14\x53\xaf\x44\xea\xd6\xe2" |
| 31403 | "\x94\x98\xe4\x12\x93\x4c\x92\xe0" |
| 31404 | "\x18\xa5\x8d\x2d\xe4\x71\x3c\x47" |
| 31405 | "\x4c\xf7\xe6\x47\x9e\xc0\x68\xdf" |
| 31406 | "\xd4\xf5\x5a\x74\xb1\x2b\x29\x03" |
| 31407 | "\x19\x07\xaf\x90\x62\x5c\x68\x98" |
| 31408 | "\x48\x16\x11\x02\x9d\xee\xb4\x9b" |
| 31409 | "\xe5\x42\x7f\x08\xfd\x16\x32\x0b" |
| 31410 | "\xd0\xb3\xfa\x2b\xb7\x99\xf9\x29" |
| 31411 | "\xcd\x20\x45\x9f\xb3\x1a\x5d\xa2" |
| 31412 | "\xaf\x4d\xe0\xbd\x42\x0d\xbc\x74" |
| 31413 | "\x99\x9c\x8e\x53\x1a\xb4\x3e\xbd" |
| 31414 | "\xa2\x9a\x2d\xf7\xf8\x39\x0f\x67" |
| 31415 | "\x63\xfc\x6b\xc0\xaf\xb3\x4b\x4f" |
| 31416 | "\x55\xc4\xcf\xa7\xc8\x04\x11\x3e" |
| 31417 | "\x14\x32\xbb\x1b\x38\x77\xd6\x7f" |
| 31418 | "\x54\x4c\xdf\x75\xf3\x07\x2d\x33" |
| 31419 | "\x9b\xa8\x20\xe1\x7b\x12\xb5\xf3" |
| 31420 | "\xef\x2f\xce\x72\xe5\x24\x60\xc1" |
| 31421 | "\x30\xe2\xab\xa1\x8e\x11\x09\xa8" |
| 31422 | "\x21\x33\x44\xfe\x7f\x35\x32\x93" |
| 31423 | "\x39\xa7\xad\x8b\x79\x06\xb2\xcb" |
| 31424 | "\x4e\xa9\x5f\xc7\xba\x74\x29\xec" |
| 31425 | "\x93\xa0\x4e\x54\x93\xc0\xbc\x55" |
| 31426 | "\x64\xf0\x48\xe5\x57\x99\xee\x75" |
| 31427 | "\xd6\x79\x0f\x66\xb7\xc6\x57\x76" |
| 31428 | "\xf7\xb7\xf3\x9c\xc5\x60\xe8\x7f" |
| 31429 | "\x83\x76\xd6\x0e\xaa\xe6\x90\x39" |
| 31430 | "\x1d\xa6\x32\x6a\x34\xe3\x55\xf8" |
| 31431 | "\x58\xa0\x58\x7d\x33\xe0\x22\x39" |
| 31432 | "\x44\x64\x87\x86\x5a\x2f\xa7\x7e" |
| 31433 | "\x0f\x38\xea\xb0\x30\xcc\x61\xa5" |
| 31434 | "\x6a\x32\xae\x1e\xf7\xe9\xd0\xa9" |
| 31435 | "\x0c\x32\x4b\xb5\x49\x28\xab\x85" |
| 31436 | "\x2f\x8e\x01\x36\x38\x52\xd0\xba" |
| 31437 | "\xd6\x02\x78\xf8\x0e\x3e\x9c\x8b" |
| 31438 | "\x6b\x45\x99\x3f\x5c\xfe\x58\xf1" |
| 31439 | "\x5c\x94\x04\xe1\xf5\x18\x6d\x51" |
| 31440 | "\xb2\x5d\x18\x20\xb6\xc2\x9a\x42" |
| 31441 | "\x1d\xb3\xab\x3c\xb6\x3a\x13\x03" |
| 31442 | "\xb2\x46\x82\x4f\xfc\x64\xbc\x4f" |
| 31443 | "\xca\xfa\x9c\xc0\xd5\xa7\xbd\x11" |
| 31444 | "\xb7\xe4\x5a\xf6\x6f\x4d\x4d\x54" |
| 31445 | "\xea\xa4\x98\x66\xd4\x22\x3b\xd3" |
| 31446 | "\x8f\x34\x47\xd9\x7c\xf4\x72\x3b" |
| 31447 | "\x4d\x02\x77\xf6\xd6\xdd\x08\x0a" |
| 31448 | "\x81\xe1\x86\x89\x3e\x56\x10\x3c" |
| 31449 | "\xba\xd7\x81\x8c\x08\xbc\x8b\xe2" |
| 31450 | "\x53\xec\xa7\x89\xee\xc8\x56\xb5" |
| 31451 | "\x36\x2c\xb2\x03\xba\x99\xdd\x7c" |
| 31452 | "\x48\xa0\xb0\xbc\x91\x33\xe9\xa8" |
| 31453 | "\xcb\xcd\xcf\x59\x5f\x1f\x15\xe2" |
| 31454 | "\x56\xf5\x4e\x01\x35\x27\x45\x77" |
| 31455 | "\x47\xc8\xbc\xcb\x7e\x39\xc1\x97" |
| 31456 | "\x28\xd3\x84\xfc\x2c\x3e\xc8\xad" |
| 31457 | "\x9c\xf8\x8a\x61\x9c\x28\xaa\xc5" |
| 31458 | "\x99\x20\x43\x85\x9d\xa5\xe2\x8b" |
| 31459 | "\xb8\xae\xeb\xd0\x32\x0d\x52\x78" |
| 31460 | "\x09\x56\x3f\xc7\xd8\x7e\x26\xfc" |
| 31461 | "\x37\xfb\x6f\x04\xfc\xfa\x92\x10" |
| 31462 | "\xac\xf8\x3e\x21\xdc\x8c\x21\x16" |
| 31463 | "\x7d\x67\x6e\xf6\xcd\xda\xb6\x98" |
| 31464 | "\x23\xab\x23\x3c\xb2\x10\xa0\x53" |
| 31465 | "\x5a\x56\x9f\xc5\xd0\xff\xbb\xe4" |
| 31466 | "\x98\x3c\x69\x1e\xdb\x38\x8f\x7e" |
| 31467 | "\x0f\xd2\x98\x88\x81\x8b\x45\x67" |
| 31468 | "\xea\x33\xf1\xeb\xe9\x97\x55\x2e" |
| 31469 | "\xd9\xaa\xeb\x5a\xec\xda\xe1\x68" |
| 31470 | "\xa8\x9d\x3c\x84\x7c\x05\x3d\x62" |
| 31471 | "\x87\x8f\x03\x21\x28\x95\x0c\x89" |
| 31472 | "\x25\x22\x4a\xb0\x93\xa9\x50\xa2" |
| 31473 | "\x2f\x57\x6e\x18\x42\x19\x54\x0c" |
| 31474 | "\x55\x67\xc6\x11\x49\xf4\x5c\xd2" |
| 31475 | "\xe9\x3d\xdd\x8b\x48\x71\x21\x00" |
| 31476 | "\xc3\x9a\x6c\x85\x74\x28\x83\x4a" |
| 31477 | "\x1b\x31\x05\xe1\x06\x92\xe7\xda" |
| 31478 | "\x85\x73\x78\x45\x20\x7f\xae\x13" |
| 31479 | "\x7c\x33\x06\x22\xf4\x83\xf9\x35" |
| 31480 | "\x3f\x6c\x71\xa8\x4e\x48\xbe\x9b" |
| 31481 | "\xce\x8a\xba\xda\xbe\x28\x08\xf7" |
| 31482 | "\xe2\x14\x8c\x71\xea\x72\xf9\x33" |
| 31483 | "\xf2\x88\x3f\xd7\xbb\x69\x6c\x29" |
| 31484 | "\x19\xdc\x84\xce\x1f\x12\x4f\xc8" |
| 31485 | "\xaf\xa5\x04\xba\x5a\xab\xb0\xd9" |
| 31486 | "\x14\x1f\x6c\x68\x98\x39\x89\x7a" |
| 31487 | "\xd9\xd8\x2f\xdf\xa8\x47\x4a\x25" |
| 31488 | "\xe2\xfb\x33\xf4\x59\x78\xe1\x68" |
| 31489 | "\x85\xcf\xfe\x59\x20\xd4\x05\x1d" |
| 31490 | "\x80\x99\xae\xbc\xca\xae\x0f\x2f" |
| 31491 | "\x65\x43\x34\x8e\x7e\xac\xd3\x93" |
| 31492 | "\x2f\xac\x6d\x14\x3d\x02\x07\x70" |
| 31493 | "\x9d\xa4\xf3\x1b\x5c\x36\xfc\x01" |
| 31494 | "\x73\x34\x85\x0c\x6c\xd6\xf1\xbd" |
| 31495 | "\x3f\xdf\xee\xf5\xd9\xba\x56\xef" |
| 31496 | "\xf4\x9b\x6b\xee\x9f\x5a\x78\x6d" |
| 31497 | "\x32\x19\xf4\xf7\xf8\x4c\x69\x0b" |
| 31498 | "\x4b\xbc\xbb\xb7\xf2\x85\xaf\x70" |
| 31499 | "\x75\x24\x6c\x54\xa7\x0e\x4d\x1d" |
| 31500 | "\x01\xbf\x08\xac\xcf\x7f\x2c\xe3" |
| 31501 | "\x14\x89\x5e\x70\x5a\x99\x92\xcd" |
| 31502 | "\x01\x84\xc8\xd2\xab\xe5\x4f\x58" |
| 31503 | "\xe7\x0f\x2f\x0e\xff\x68\xea\xfd" |
| 31504 | "\x15\xb3\x17\xe6\xb0\xe7\x85\xd8" |
| 31505 | "\x23\x2e\x05\xc7\xc9\xc4\x46\x1f" |
| 31506 | "\xe1\x9e\x49\x20\x23\x24\x4d\x7e" |
| 31507 | "\x29\x65\xff\xf4\xb6\xfd\x1a\x85" |
| 31508 | "\xc4\x16\xec\xfc\xea\x7b\xd6\x2c" |
| 31509 | "\x43\xf8\xb7\xbf\x79\xc0\x85\xcd" |
| 31510 | "\xef\xe1\x98\xd3\xa5\xf7\x90\x8c" |
| 31511 | "\xe9\x7f\x80\x6b\xd2\xac\x4c\x30" |
| 31512 | "\xa7\xc6\x61\x6c\xd2\xf9\x2c\xff" |
| 31513 | "\x30\xbc\x22\x81\x7d\x93\x12\xe4" |
| 31514 | "\x0a\xcd\xaf\xdd\xe8\xab\x0a\x1e" |
| 31515 | "\x13\xa4\x27\xc3\x5f\xf7\x4b\xbb" |
| 31516 | "\x37\x09\x4b\x91\x6f\x92\x4f\xaf" |
| 31517 | "\x52\xee\xdf\xef\x09\x6f\xf7\x5c" |
| 31518 | "\x6e\x12\x17\x72\x63\x57\xc7\xba" |
| 31519 | "\x3b\x6b\x38\x32\x73\x1b\x9c\x80" |
| 31520 | "\xc1\x7a\xc6\xcf\xcd\x35\xc0\x6b" |
| 31521 | "\x31\x1a\x6b\xe9\xd8\x2c\x29\x3f" |
| 31522 | "\x96\xfb\xb6\xcd\x13\x91\x3b\xc2" |
| 31523 | "\xd2\xa3\x31\x8d\xa4\xcd\x57\xcd" |
| 31524 | "\x13\x3d\x64\xfd\x06\xce\xe6\xdc" |
| 31525 | "\x0c\x24\x43\x31\x40\x57\xf1\x72" |
| 31526 | "\x17\xe3\x3a\x63\x6d\x35\xcf\x5d" |
| 31527 | "\x97\x40\x59\xdd\xf7\x3c\x02\xf7" |
| 31528 | "\x1c\x7e\x05\xbb\xa9\x0d\x01\xb1" |
| 31529 | "\x8e\xc0\x30\xa9\x53\x24\xc9\x89" |
| 31530 | "\x84\x6d\xaa\xd0\xcd\x91\xc2\x4d" |
| 31531 | "\x91\xb0\x89\xe2\xbf\x83\x44\xaa" |
| 31532 | "\x28\x72\x23\xa0\xc2\xad\xad\x1c" |
| 31533 | "\xfc\x3f\x09\x7a\x0b\xdc\xc5\x1b" |
| 31534 | "\x87\x13\xc6\x5b\x59\x8d\xf2\xc8" |
| 31535 | "\xaf\xdf\x11\x95", |
| 31536 | .rlen = 4100, |
| 31537 | .np = 2, |
| 31538 | .tap = { 4064, 36 }, |
| 31539 | }, |
| 31540 | }; |
| 31541 | |
Martin Willi | 6692cbc | 2015-07-16 19:14:04 +0200 | [diff] [blame] | 31542 | #define CHACHA20_ENC_TEST_VECTORS 4 |
Martin Willi | 3590ebf | 2015-06-01 13:43:57 +0200 | [diff] [blame] | 31543 | static struct cipher_testvec chacha20_enc_tv_template[] = { |
| 31544 | { /* RFC7539 A.2. Test Vector #1 */ |
| 31545 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31546 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31547 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31548 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 31549 | .klen = 32, |
| 31550 | .iv = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31551 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 31552 | .input = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31553 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31554 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31555 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31556 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31557 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31558 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31559 | "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 31560 | .ilen = 64, |
| 31561 | .result = "\x76\xb8\xe0\xad\xa0\xf1\x3d\x90" |
| 31562 | "\x40\x5d\x6a\xe5\x53\x86\xbd\x28" |
| 31563 | "\xbd\xd2\x19\xb8\xa0\x8d\xed\x1a" |
| 31564 | "\xa8\x36\xef\xcc\x8b\x77\x0d\xc7" |
| 31565 | "\xda\x41\x59\x7c\x51\x57\x48\x8d" |
| 31566 | "\x77\x24\xe0\x3f\xb8\xd8\x4a\x37" |
| 31567 | "\x6a\x43\xb8\xf4\x15\x18\xa1\x1c" |
| 31568 | "\xc3\x87\xb6\x69\xb2\xee\x65\x86", |
| 31569 | .rlen = 64, |
| 31570 | }, { /* RFC7539 A.2. Test Vector #2 */ |
| 31571 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31572 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31573 | "\x00\x00\x00\x00\x00\x00\x00\x00" |
| 31574 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31575 | .klen = 32, |
| 31576 | .iv = "\x01\x00\x00\x00\x00\x00\x00\x00" |
| 31577 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 31578 | .input = "\x41\x6e\x79\x20\x73\x75\x62\x6d" |
| 31579 | "\x69\x73\x73\x69\x6f\x6e\x20\x74" |
| 31580 | "\x6f\x20\x74\x68\x65\x20\x49\x45" |
| 31581 | "\x54\x46\x20\x69\x6e\x74\x65\x6e" |
| 31582 | "\x64\x65\x64\x20\x62\x79\x20\x74" |
| 31583 | "\x68\x65\x20\x43\x6f\x6e\x74\x72" |
| 31584 | "\x69\x62\x75\x74\x6f\x72\x20\x66" |
| 31585 | "\x6f\x72\x20\x70\x75\x62\x6c\x69" |
| 31586 | "\x63\x61\x74\x69\x6f\x6e\x20\x61" |
| 31587 | "\x73\x20\x61\x6c\x6c\x20\x6f\x72" |
| 31588 | "\x20\x70\x61\x72\x74\x20\x6f\x66" |
| 31589 | "\x20\x61\x6e\x20\x49\x45\x54\x46" |
| 31590 | "\x20\x49\x6e\x74\x65\x72\x6e\x65" |
| 31591 | "\x74\x2d\x44\x72\x61\x66\x74\x20" |
| 31592 | "\x6f\x72\x20\x52\x46\x43\x20\x61" |
| 31593 | "\x6e\x64\x20\x61\x6e\x79\x20\x73" |
| 31594 | "\x74\x61\x74\x65\x6d\x65\x6e\x74" |
| 31595 | "\x20\x6d\x61\x64\x65\x20\x77\x69" |
| 31596 | "\x74\x68\x69\x6e\x20\x74\x68\x65" |
| 31597 | "\x20\x63\x6f\x6e\x74\x65\x78\x74" |
| 31598 | "\x20\x6f\x66\x20\x61\x6e\x20\x49" |
| 31599 | "\x45\x54\x46\x20\x61\x63\x74\x69" |
| 31600 | "\x76\x69\x74\x79\x20\x69\x73\x20" |
| 31601 | "\x63\x6f\x6e\x73\x69\x64\x65\x72" |
| 31602 | "\x65\x64\x20\x61\x6e\x20\x22\x49" |
| 31603 | "\x45\x54\x46\x20\x43\x6f\x6e\x74" |
| 31604 | "\x72\x69\x62\x75\x74\x69\x6f\x6e" |
| 31605 | "\x22\x2e\x20\x53\x75\x63\x68\x20" |
| 31606 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 31607 | "\x74\x73\x20\x69\x6e\x63\x6c\x75" |
| 31608 | "\x64\x65\x20\x6f\x72\x61\x6c\x20" |
| 31609 | "\x73\x74\x61\x74\x65\x6d\x65\x6e" |
| 31610 | "\x74\x73\x20\x69\x6e\x20\x49\x45" |
| 31611 | "\x54\x46\x20\x73\x65\x73\x73\x69" |
| 31612 | "\x6f\x6e\x73\x2c\x20\x61\x73\x20" |
| 31613 | "\x77\x65\x6c\x6c\x20\x61\x73\x20" |
| 31614 | "\x77\x72\x69\x74\x74\x65\x6e\x20" |
| 31615 | "\x61\x6e\x64\x20\x65\x6c\x65\x63" |
| 31616 | "\x74\x72\x6f\x6e\x69\x63\x20\x63" |
| 31617 | "\x6f\x6d\x6d\x75\x6e\x69\x63\x61" |
| 31618 | "\x74\x69\x6f\x6e\x73\x20\x6d\x61" |
| 31619 | "\x64\x65\x20\x61\x74\x20\x61\x6e" |
| 31620 | "\x79\x20\x74\x69\x6d\x65\x20\x6f" |
| 31621 | "\x72\x20\x70\x6c\x61\x63\x65\x2c" |
| 31622 | "\x20\x77\x68\x69\x63\x68\x20\x61" |
| 31623 | "\x72\x65\x20\x61\x64\x64\x72\x65" |
| 31624 | "\x73\x73\x65\x64\x20\x74\x6f", |
| 31625 | .ilen = 375, |
| 31626 | .result = "\xa3\xfb\xf0\x7d\xf3\xfa\x2f\xde" |
| 31627 | "\x4f\x37\x6c\xa2\x3e\x82\x73\x70" |
| 31628 | "\x41\x60\x5d\x9f\x4f\x4f\x57\xbd" |
| 31629 | "\x8c\xff\x2c\x1d\x4b\x79\x55\xec" |
| 31630 | "\x2a\x97\x94\x8b\xd3\x72\x29\x15" |
| 31631 | "\xc8\xf3\xd3\x37\xf7\xd3\x70\x05" |
| 31632 | "\x0e\x9e\x96\xd6\x47\xb7\xc3\x9f" |
| 31633 | "\x56\xe0\x31\xca\x5e\xb6\x25\x0d" |
| 31634 | "\x40\x42\xe0\x27\x85\xec\xec\xfa" |
| 31635 | "\x4b\x4b\xb5\xe8\xea\xd0\x44\x0e" |
| 31636 | "\x20\xb6\xe8\xdb\x09\xd8\x81\xa7" |
| 31637 | "\xc6\x13\x2f\x42\x0e\x52\x79\x50" |
| 31638 | "\x42\xbd\xfa\x77\x73\xd8\xa9\x05" |
| 31639 | "\x14\x47\xb3\x29\x1c\xe1\x41\x1c" |
| 31640 | "\x68\x04\x65\x55\x2a\xa6\xc4\x05" |
| 31641 | "\xb7\x76\x4d\x5e\x87\xbe\xa8\x5a" |
| 31642 | "\xd0\x0f\x84\x49\xed\x8f\x72\xd0" |
| 31643 | "\xd6\x62\xab\x05\x26\x91\xca\x66" |
| 31644 | "\x42\x4b\xc8\x6d\x2d\xf8\x0e\xa4" |
| 31645 | "\x1f\x43\xab\xf9\x37\xd3\x25\x9d" |
| 31646 | "\xc4\xb2\xd0\xdf\xb4\x8a\x6c\x91" |
| 31647 | "\x39\xdd\xd7\xf7\x69\x66\xe9\x28" |
| 31648 | "\xe6\x35\x55\x3b\xa7\x6c\x5c\x87" |
| 31649 | "\x9d\x7b\x35\xd4\x9e\xb2\xe6\x2b" |
| 31650 | "\x08\x71\xcd\xac\x63\x89\x39\xe2" |
| 31651 | "\x5e\x8a\x1e\x0e\xf9\xd5\x28\x0f" |
| 31652 | "\xa8\xca\x32\x8b\x35\x1c\x3c\x76" |
| 31653 | "\x59\x89\xcb\xcf\x3d\xaa\x8b\x6c" |
| 31654 | "\xcc\x3a\xaf\x9f\x39\x79\xc9\x2b" |
| 31655 | "\x37\x20\xfc\x88\xdc\x95\xed\x84" |
| 31656 | "\xa1\xbe\x05\x9c\x64\x99\xb9\xfd" |
| 31657 | "\xa2\x36\xe7\xe8\x18\xb0\x4b\x0b" |
| 31658 | "\xc3\x9c\x1e\x87\x6b\x19\x3b\xfe" |
| 31659 | "\x55\x69\x75\x3f\x88\x12\x8c\xc0" |
| 31660 | "\x8a\xaa\x9b\x63\xd1\xa1\x6f\x80" |
| 31661 | "\xef\x25\x54\xd7\x18\x9c\x41\x1f" |
| 31662 | "\x58\x69\xca\x52\xc5\xb8\x3f\xa3" |
| 31663 | "\x6f\xf2\x16\xb9\xc1\xd3\x00\x62" |
| 31664 | "\xbe\xbc\xfd\x2d\xc5\xbc\xe0\x91" |
| 31665 | "\x19\x34\xfd\xa7\x9a\x86\xf6\xe6" |
| 31666 | "\x98\xce\xd7\x59\xc3\xff\x9b\x64" |
| 31667 | "\x77\x33\x8f\x3d\xa4\xf9\xcd\x85" |
| 31668 | "\x14\xea\x99\x82\xcc\xaf\xb3\x41" |
| 31669 | "\xb2\x38\x4d\xd9\x02\xf3\xd1\xab" |
| 31670 | "\x7a\xc6\x1d\xd2\x9c\x6f\x21\xba" |
| 31671 | "\x5b\x86\x2f\x37\x30\xe3\x7c\xfd" |
| 31672 | "\xc4\xfd\x80\x6c\x22\xf2\x21", |
| 31673 | .rlen = 375, |
| 31674 | }, { /* RFC7539 A.2. Test Vector #3 */ |
| 31675 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 31676 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 31677 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 31678 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0", |
| 31679 | .klen = 32, |
| 31680 | .iv = "\x2a\x00\x00\x00\x00\x00\x00\x00" |
| 31681 | "\x00\x00\x00\x00\x00\x00\x00\x02", |
| 31682 | .input = "\x27\x54\x77\x61\x73\x20\x62\x72" |
| 31683 | "\x69\x6c\x6c\x69\x67\x2c\x20\x61" |
| 31684 | "\x6e\x64\x20\x74\x68\x65\x20\x73" |
| 31685 | "\x6c\x69\x74\x68\x79\x20\x74\x6f" |
| 31686 | "\x76\x65\x73\x0a\x44\x69\x64\x20" |
| 31687 | "\x67\x79\x72\x65\x20\x61\x6e\x64" |
| 31688 | "\x20\x67\x69\x6d\x62\x6c\x65\x20" |
| 31689 | "\x69\x6e\x20\x74\x68\x65\x20\x77" |
| 31690 | "\x61\x62\x65\x3a\x0a\x41\x6c\x6c" |
| 31691 | "\x20\x6d\x69\x6d\x73\x79\x20\x77" |
| 31692 | "\x65\x72\x65\x20\x74\x68\x65\x20" |
| 31693 | "\x62\x6f\x72\x6f\x67\x6f\x76\x65" |
| 31694 | "\x73\x2c\x0a\x41\x6e\x64\x20\x74" |
| 31695 | "\x68\x65\x20\x6d\x6f\x6d\x65\x20" |
| 31696 | "\x72\x61\x74\x68\x73\x20\x6f\x75" |
| 31697 | "\x74\x67\x72\x61\x62\x65\x2e", |
| 31698 | .ilen = 127, |
| 31699 | .result = "\x62\xe6\x34\x7f\x95\xed\x87\xa4" |
| 31700 | "\x5f\xfa\xe7\x42\x6f\x27\xa1\xdf" |
| 31701 | "\x5f\xb6\x91\x10\x04\x4c\x0d\x73" |
| 31702 | "\x11\x8e\xff\xa9\x5b\x01\xe5\xcf" |
| 31703 | "\x16\x6d\x3d\xf2\xd7\x21\xca\xf9" |
| 31704 | "\xb2\x1e\x5f\xb1\x4c\x61\x68\x71" |
| 31705 | "\xfd\x84\xc5\x4f\x9d\x65\xb2\x83" |
| 31706 | "\x19\x6c\x7f\xe4\xf6\x05\x53\xeb" |
| 31707 | "\xf3\x9c\x64\x02\xc4\x22\x34\xe3" |
| 31708 | "\x2a\x35\x6b\x3e\x76\x43\x12\xa6" |
| 31709 | "\x1a\x55\x32\x05\x57\x16\xea\xd6" |
| 31710 | "\x96\x25\x68\xf8\x7d\x3f\x3f\x77" |
| 31711 | "\x04\xc6\xa8\xd1\xbc\xd1\xbf\x4d" |
| 31712 | "\x50\xd6\x15\x4b\x6d\xa7\x31\xb1" |
| 31713 | "\x87\xb5\x8d\xfd\x72\x8a\xfa\x36" |
| 31714 | "\x75\x7a\x79\x7a\xc1\x88\xd1", |
| 31715 | .rlen = 127, |
Martin Willi | 6692cbc | 2015-07-16 19:14:04 +0200 | [diff] [blame] | 31716 | }, { /* Self-made test vector for long data */ |
| 31717 | .key = "\x1c\x92\x40\xa5\xeb\x55\xd3\x8a" |
| 31718 | "\xf3\x33\x88\x86\x04\xf6\xb5\xf0" |
| 31719 | "\x47\x39\x17\xc1\x40\x2b\x80\x09" |
| 31720 | "\x9d\xca\x5c\xbc\x20\x70\x75\xc0", |
| 31721 | .klen = 32, |
| 31722 | .iv = "\x1c\x00\x00\x00\x00\x00\x00\x00" |
| 31723 | "\x00\x00\x00\x00\x00\x00\x00\x01", |
| 31724 | .input = "\x49\xee\xe0\xdc\x24\x90\x40\xcd" |
| 31725 | "\xc5\x40\x8f\x47\x05\xbc\xdd\x81" |
| 31726 | "\x47\xc6\x8d\xe6\xb1\x8f\xd7\xcb" |
| 31727 | "\x09\x0e\x6e\x22\x48\x1f\xbf\xb8" |
| 31728 | "\x5c\xf7\x1e\x8a\xc1\x23\xf2\xd4" |
| 31729 | "\x19\x4b\x01\x0f\x4e\xa4\x43\xce" |
| 31730 | "\x01\xc6\x67\xda\x03\x91\x18\x90" |
| 31731 | "\xa5\xa4\x8e\x45\x03\xb3\x2d\xac" |
| 31732 | "\x74\x92\xd3\x53\x47\xc8\xdd\x25" |
| 31733 | "\x53\x6c\x02\x03\x87\x0d\x11\x0c" |
| 31734 | "\x58\xe3\x12\x18\xfd\x2a\x5b\x40" |
| 31735 | "\x0c\x30\xf0\xb8\x3f\x43\xce\xae" |
| 31736 | "\x65\x3a\x7d\x7c\xf4\x54\xaa\xcc" |
| 31737 | "\x33\x97\xc3\x77\xba\xc5\x70\xde" |
| 31738 | "\xd7\xd5\x13\xa5\x65\xc4\x5f\x0f" |
| 31739 | "\x46\x1a\x0d\x97\xb5\xf3\xbb\x3c" |
| 31740 | "\x84\x0f\x2b\xc5\xaa\xea\xf2\x6c" |
| 31741 | "\xc9\xb5\x0c\xee\x15\xf3\x7d\xbe" |
| 31742 | "\x9f\x7b\x5a\xa6\xae\x4f\x83\xb6" |
| 31743 | "\x79\x49\x41\xf4\x58\x18\xcb\x86" |
| 31744 | "\x7f\x30\x0e\xf8\x7d\x44\x36\xea" |
| 31745 | "\x75\xeb\x88\x84\x40\x3c\xad\x4f" |
| 31746 | "\x6f\x31\x6b\xaa\x5d\xe5\xa5\xc5" |
| 31747 | "\x21\x66\xe9\xa7\xe3\xb2\x15\x88" |
| 31748 | "\x78\xf6\x79\xa1\x59\x47\x12\x4e" |
| 31749 | "\x9f\x9f\x64\x1a\xa0\x22\x5b\x08" |
| 31750 | "\xbe\x7c\x36\xc2\x2b\x66\x33\x1b" |
| 31751 | "\xdd\x60\x71\xf7\x47\x8c\x61\xc3" |
| 31752 | "\xda\x8a\x78\x1e\x16\xfa\x1e\x86" |
| 31753 | "\x81\xa6\x17\x2a\xa7\xb5\xc2\xe7" |
| 31754 | "\xa4\xc7\x42\xf1\xcf\x6a\xca\xb4" |
| 31755 | "\x45\xcf\xf3\x93\xf0\xe7\xea\xf6" |
| 31756 | "\xf4\xe6\x33\x43\x84\x93\xa5\x67" |
| 31757 | "\x9b\x16\x58\x58\x80\x0f\x2b\x5c" |
| 31758 | "\x24\x74\x75\x7f\x95\x81\xb7\x30" |
| 31759 | "\x7a\x33\xa7\xf7\x94\x87\x32\x27" |
| 31760 | "\x10\x5d\x14\x4c\x43\x29\xdd\x26" |
| 31761 | "\xbd\x3e\x3c\x0e\xfe\x0e\xa5\x10" |
| 31762 | "\xea\x6b\x64\xfd\x73\xc6\xed\xec" |
| 31763 | "\xa8\xc9\xbf\xb3\xba\x0b\x4d\x07" |
| 31764 | "\x70\xfc\x16\xfd\x79\x1e\xd7\xc5" |
| 31765 | "\x49\x4e\x1c\x8b\x8d\x79\x1b\xb1" |
| 31766 | "\xec\xca\x60\x09\x4c\x6a\xd5\x09" |
| 31767 | "\x49\x46\x00\x88\x22\x8d\xce\xea" |
| 31768 | "\xb1\x17\x11\xde\x42\xd2\x23\xc1" |
| 31769 | "\x72\x11\xf5\x50\x73\x04\x40\x47" |
| 31770 | "\xf9\x5d\xe7\xa7\x26\xb1\x7e\xb0" |
| 31771 | "\x3f\x58\xc1\x52\xab\x12\x67\x9d" |
| 31772 | "\x3f\x43\x4b\x68\xd4\x9c\x68\x38" |
| 31773 | "\x07\x8a\x2d\x3e\xf3\xaf\x6a\x4b" |
| 31774 | "\xf9\xe5\x31\x69\x22\xf9\xa6\x69" |
| 31775 | "\xc6\x9c\x96\x9a\x12\x35\x95\x1d" |
| 31776 | "\x95\xd5\xdd\xbe\xbf\x93\x53\x24" |
| 31777 | "\xfd\xeb\xc2\x0a\x64\xb0\x77\x00" |
| 31778 | "\x6f\x88\xc4\x37\x18\x69\x7c\xd7" |
| 31779 | "\x41\x92\x55\x4c\x03\xa1\x9a\x4b" |
| 31780 | "\x15\xe5\xdf\x7f\x37\x33\x72\xc1" |
| 31781 | "\x8b\x10\x67\xa3\x01\x57\x94\x25" |
| 31782 | "\x7b\x38\x71\x7e\xdd\x1e\xcc\x73" |
| 31783 | "\x55\xd2\x8e\xeb\x07\xdd\xf1\xda" |
| 31784 | "\x58\xb1\x47\x90\xfe\x42\x21\x72" |
| 31785 | "\xa3\x54\x7a\xa0\x40\xec\x9f\xdd" |
| 31786 | "\xc6\x84\x6e\xca\xae\xe3\x68\xb4" |
| 31787 | "\x9d\xe4\x78\xff\x57\xf2\xf8\x1b" |
| 31788 | "\x03\xa1\x31\xd9\xde\x8d\xf5\x22" |
| 31789 | "\x9c\xdd\x20\xa4\x1e\x27\xb1\x76" |
| 31790 | "\x4f\x44\x55\xe2\x9b\xa1\x9c\xfe" |
| 31791 | "\x54\xf7\x27\x1b\xf4\xde\x02\xf5" |
| 31792 | "\x1b\x55\x48\x5c\xdc\x21\x4b\x9e" |
| 31793 | "\x4b\x6e\xed\x46\x23\xdc\x65\xb2" |
| 31794 | "\xcf\x79\x5f\x28\xe0\x9e\x8b\xe7" |
| 31795 | "\x4c\x9d\x8a\xff\xc1\xa6\x28\xb8" |
| 31796 | "\x65\x69\x8a\x45\x29\xef\x74\x85" |
| 31797 | "\xde\x79\xc7\x08\xae\x30\xb0\xf4" |
| 31798 | "\xa3\x1d\x51\x41\xab\xce\xcb\xf6" |
| 31799 | "\xb5\xd8\x6d\xe0\x85\xe1\x98\xb3" |
| 31800 | "\x43\xbb\x86\x83\x0a\xa0\xf5\xb7" |
| 31801 | "\x04\x0b\xfa\x71\x1f\xb0\xf6\xd9" |
| 31802 | "\x13\x00\x15\xf0\xc7\xeb\x0d\x5a" |
| 31803 | "\x9f\xd7\xb9\x6c\x65\x14\x22\x45" |
| 31804 | "\x6e\x45\x32\x3e\x7e\x60\x1a\x12" |
| 31805 | "\x97\x82\x14\xfb\xaa\x04\x22\xfa" |
| 31806 | "\xa0\xe5\x7e\x8c\x78\x02\x48\x5d" |
| 31807 | "\x78\x33\x5a\x7c\xad\xdb\x29\xce" |
| 31808 | "\xbb\x8b\x61\xa4\xb7\x42\xe2\xac" |
| 31809 | "\x8b\x1a\xd9\x2f\x0b\x8b\x62\x21" |
| 31810 | "\x83\x35\x7e\xad\x73\xc2\xb5\x6c" |
| 31811 | "\x10\x26\x38\x07\xe5\xc7\x36\x80" |
| 31812 | "\xe2\x23\x12\x61\xf5\x48\x4b\x2b" |
| 31813 | "\xc5\xdf\x15\xd9\x87\x01\xaa\xac" |
| 31814 | "\x1e\x7c\xad\x73\x78\x18\x63\xe0" |
| 31815 | "\x8b\x9f\x81\xd8\x12\x6a\x28\x10" |
| 31816 | "\xbe\x04\x68\x8a\x09\x7c\x1b\x1c" |
| 31817 | "\x83\x66\x80\x47\x80\xe8\xfd\x35" |
| 31818 | "\x1c\x97\x6f\xae\x49\x10\x66\xcc" |
| 31819 | "\xc6\xd8\xcc\x3a\x84\x91\x20\x77" |
| 31820 | "\x72\xe4\x24\xd2\x37\x9f\xc5\xc9" |
| 31821 | "\x25\x94\x10\x5f\x40\x00\x64\x99" |
| 31822 | "\xdc\xae\xd7\x21\x09\x78\x50\x15" |
| 31823 | "\xac\x5f\xc6\x2c\xa2\x0b\xa9\x39" |
| 31824 | "\x87\x6e\x6d\xab\xde\x08\x51\x16" |
| 31825 | "\xc7\x13\xe9\xea\xed\x06\x8e\x2c" |
| 31826 | "\xf8\x37\x8c\xf0\xa6\x96\x8d\x43" |
| 31827 | "\xb6\x98\x37\xb2\x43\xed\xde\xdf" |
| 31828 | "\x89\x1a\xe7\xeb\x9d\xa1\x7b\x0b" |
| 31829 | "\x77\xb0\xe2\x75\xc0\xf1\x98\xd9" |
| 31830 | "\x80\x55\xc9\x34\x91\xd1\x59\xe8" |
| 31831 | "\x4b\x0f\xc1\xa9\x4b\x7a\x84\x06" |
| 31832 | "\x20\xa8\x5d\xfa\xd1\xde\x70\x56" |
| 31833 | "\x2f\x9e\x91\x9c\x20\xb3\x24\xd8" |
| 31834 | "\x84\x3d\xe1\x8c\x7e\x62\x52\xe5" |
| 31835 | "\x44\x4b\x9f\xc2\x93\x03\xea\x2b" |
| 31836 | "\x59\xc5\xfa\x3f\x91\x2b\xbb\x23" |
| 31837 | "\xf5\xb2\x7b\xf5\x38\xaf\xb3\xee" |
| 31838 | "\x63\xdc\x7b\xd1\xff\xaa\x8b\xab" |
| 31839 | "\x82\x6b\x37\x04\xeb\x74\xbe\x79" |
| 31840 | "\xb9\x83\x90\xef\x20\x59\x46\xff" |
| 31841 | "\xe9\x97\x3e\x2f\xee\xb6\x64\x18" |
| 31842 | "\x38\x4c\x7a\x4a\xf9\x61\xe8\x9a" |
| 31843 | "\xa1\xb5\x01\xa6\x47\xd3\x11\xd4" |
| 31844 | "\xce\xd3\x91\x49\x88\xc7\xb8\x4d" |
| 31845 | "\xb1\xb9\x07\x6d\x16\x72\xae\x46" |
| 31846 | "\x5e\x03\xa1\x4b\xb6\x02\x30\xa8" |
| 31847 | "\x3d\xa9\x07\x2a\x7c\x19\xe7\x62" |
| 31848 | "\x87\xe3\x82\x2f\x6f\xe1\x09\xd9" |
| 31849 | "\x94\x97\xea\xdd\x58\x9e\xae\x76" |
| 31850 | "\x7e\x35\xe5\xb4\xda\x7e\xf4\xde" |
| 31851 | "\xf7\x32\x87\xcd\x93\xbf\x11\x56" |
| 31852 | "\x11\xbe\x08\x74\xe1\x69\xad\xe2" |
| 31853 | "\xd7\xf8\x86\x75\x8a\x3c\xa4\xbe" |
| 31854 | "\x70\xa7\x1b\xfc\x0b\x44\x2a\x76" |
| 31855 | "\x35\xea\x5d\x85\x81\xaf\x85\xeb" |
| 31856 | "\xa0\x1c\x61\xc2\xf7\x4f\xa5\xdc" |
| 31857 | "\x02\x7f\xf6\x95\x40\x6e\x8a\x9a" |
| 31858 | "\xf3\x5d\x25\x6e\x14\x3a\x22\xc9" |
| 31859 | "\x37\x1c\xeb\x46\x54\x3f\xa5\x91" |
| 31860 | "\xc2\xb5\x8c\xfe\x53\x08\x97\x32" |
| 31861 | "\x1b\xb2\x30\x27\xfe\x25\x5d\xdc" |
| 31862 | "\x08\x87\xd0\xe5\x94\x1a\xd4\xf1" |
| 31863 | "\xfe\xd6\xb4\xa3\xe6\x74\x81\x3c" |
| 31864 | "\x1b\xb7\x31\xa7\x22\xfd\xd4\xdd" |
| 31865 | "\x20\x4e\x7c\x51\xb0\x60\x73\xb8" |
| 31866 | "\x9c\xac\x91\x90\x7e\x01\xb0\xe1" |
| 31867 | "\x8a\x2f\x75\x1c\x53\x2a\x98\x2a" |
| 31868 | "\x06\x52\x95\x52\xb2\xe9\x25\x2e" |
| 31869 | "\x4c\xe2\x5a\x00\xb2\x13\x81\x03" |
| 31870 | "\x77\x66\x0d\xa5\x99\xda\x4e\x8c" |
| 31871 | "\xac\xf3\x13\x53\x27\x45\xaf\x64" |
| 31872 | "\x46\xdc\xea\x23\xda\x97\xd1\xab" |
| 31873 | "\x7d\x6c\x30\x96\x1f\xbc\x06\x34" |
| 31874 | "\x18\x0b\x5e\x21\x35\x11\x8d\x4c" |
| 31875 | "\xe0\x2d\xe9\x50\x16\x74\x81\xa8" |
| 31876 | "\xb4\x34\xb9\x72\x42\xa6\xcc\xbc" |
| 31877 | "\xca\x34\x83\x27\x10\x5b\x68\x45" |
| 31878 | "\x8f\x52\x22\x0c\x55\x3d\x29\x7c" |
| 31879 | "\xe3\xc0\x66\x05\x42\x91\x5f\x58" |
| 31880 | "\xfe\x4a\x62\xd9\x8c\xa9\x04\x19" |
| 31881 | "\x04\xa9\x08\x4b\x57\xfc\x67\x53" |
| 31882 | "\x08\x7c\xbc\x66\x8a\xb0\xb6\x9f" |
| 31883 | "\x92\xd6\x41\x7c\x5b\x2a\x00\x79" |
| 31884 | "\x72", |
| 31885 | .ilen = 1281, |
| 31886 | .result = "\x45\xe8\xe0\xb6\x9c\xca\xfd\x87" |
| 31887 | "\xe8\x1d\x37\x96\x8a\xe3\x40\x35" |
| 31888 | "\xcf\x5e\x3a\x46\x3d\xfb\xd0\x69" |
| 31889 | "\xde\xaf\x7a\xd5\x0d\xe9\x52\xec" |
| 31890 | "\xc2\x82\xe5\x3e\x7d\xb2\x4a\xd9" |
| 31891 | "\xbb\xc3\x9f\xc0\x5d\xac\x93\x8d" |
| 31892 | "\x0e\x6f\xd3\xd7\xfb\x6a\x0d\xce" |
| 31893 | "\x92\x2c\xf7\xbb\x93\x57\xcc\xee" |
| 31894 | "\x42\x72\x6f\xc8\x4b\xd2\x76\xbf" |
| 31895 | "\xa0\xe3\x7a\x39\xf9\x5c\x8e\xfd" |
| 31896 | "\xa1\x1d\x41\xe5\x08\xc1\x1c\x11" |
| 31897 | "\x92\xfd\x39\x5c\x51\xd0\x2f\x66" |
| 31898 | "\x33\x4a\x71\x15\xfe\xee\x12\x54" |
| 31899 | "\x8c\x8f\x34\xd8\x50\x3c\x18\xa6" |
| 31900 | "\xc5\xe1\x46\x8a\xfb\x5f\x7e\x25" |
| 31901 | "\x9b\xe2\xc3\x66\x41\x2b\xb3\xa5" |
| 31902 | "\x57\x0e\x94\x17\x26\x39\xbb\x54" |
| 31903 | "\xae\x2e\x6f\x42\xfb\x4d\x89\x6f" |
| 31904 | "\x9d\xf1\x16\x2e\xe3\xe7\xfc\xe3" |
| 31905 | "\xb2\x4b\x2b\xa6\x7c\x04\x69\x3a" |
| 31906 | "\x70\x5a\xa7\xf1\x31\x64\x19\xca" |
| 31907 | "\x45\x79\xd8\x58\x23\x61\xaf\xc2" |
| 31908 | "\x52\x05\xc3\x0b\xc1\x64\x7c\x81" |
| 31909 | "\xd9\x11\xcf\xff\x02\x3d\x51\x84" |
| 31910 | "\x01\xac\xc6\x2e\x34\x2b\x09\x3a" |
| 31911 | "\xa8\x5d\x98\x0e\x89\xd9\xef\x8f" |
| 31912 | "\xd9\xd7\x7d\xdd\x63\x47\x46\x7d" |
| 31913 | "\xa1\xda\x0b\x53\x7d\x79\xcd\xc9" |
| 31914 | "\x86\xdd\x6b\x13\xa1\x9a\x70\xdd" |
| 31915 | "\x5c\xa1\x69\x3c\xe4\x5d\xe3\x8c" |
| 31916 | "\xe5\xf4\x87\x9c\x10\xcf\x0f\x0b" |
| 31917 | "\xc8\x43\xdc\xf8\x1d\x62\x5e\x5b" |
| 31918 | "\xe2\x03\x06\xc5\x71\xb6\x48\xa5" |
| 31919 | "\xf0\x0f\x2d\xd5\xa2\x73\x55\x8f" |
| 31920 | "\x01\xa7\x59\x80\x5f\x11\x6c\x40" |
| 31921 | "\xff\xb1\xf2\xc6\x7e\x01\xbb\x1c" |
| 31922 | "\x69\x9c\xc9\x3f\x71\x5f\x07\x7e" |
| 31923 | "\xdf\x6f\x99\xca\x9c\xfd\xf9\xb9" |
| 31924 | "\x49\xe7\xcc\x91\xd5\x9b\x8f\x03" |
| 31925 | "\xae\xe7\x61\x32\xef\x41\x6c\x75" |
| 31926 | "\x84\x9b\x8c\xce\x1d\x6b\x93\x21" |
| 31927 | "\x41\xec\xc6\xad\x8e\x0c\x48\xa8" |
| 31928 | "\xe2\xf5\x57\xde\xf7\x38\xfd\x4a" |
| 31929 | "\x6f\xa7\x4a\xf9\xac\x7d\xb1\x85" |
| 31930 | "\x7d\x6c\x95\x0a\x5a\xcf\x68\xd2" |
| 31931 | "\xe0\x7a\x26\xd9\xc1\x6d\x3e\xc6" |
| 31932 | "\x37\xbd\xbe\x24\x36\x77\x9f\x1b" |
| 31933 | "\xc1\x22\xf3\x79\xae\x95\x78\x66" |
| 31934 | "\x97\x11\xc0\x1a\xf1\xe8\x0d\x38" |
| 31935 | "\x09\xc2\xee\xb7\xd3\x46\x7b\x59" |
| 31936 | "\x77\x23\xe8\xb4\x92\x3d\x78\xbe" |
| 31937 | "\xe2\x25\x63\xa5\x2a\x06\x70\x92" |
| 31938 | "\x32\x63\xf9\x19\x21\x68\xe1\x0b" |
| 31939 | "\x9a\xd0\xee\x21\xdb\x1f\xe0\xde" |
| 31940 | "\x3e\x64\x02\x4d\x0e\xe0\x0a\xa9" |
| 31941 | "\xed\x19\x8c\xa8\xbf\xe3\x2e\x75" |
| 31942 | "\x24\x2b\xb0\xe5\x82\x6a\x1e\x6f" |
| 31943 | "\x71\x2a\x3a\x60\xed\x06\x0d\x17" |
| 31944 | "\xa2\xdb\x29\x1d\xae\xb2\xc4\xfb" |
| 31945 | "\x94\x04\xd8\x58\xfc\xc4\x04\x4e" |
| 31946 | "\xee\xc7\xc1\x0f\xe9\x9b\x63\x2d" |
| 31947 | "\x02\x3e\x02\x67\xe5\xd8\xbb\x79" |
| 31948 | "\xdf\xd2\xeb\x50\xe9\x0a\x02\x46" |
| 31949 | "\xdf\x68\xcf\xe7\x2b\x0a\x56\xd6" |
| 31950 | "\xf7\xbc\x44\xad\xb8\xb5\x5f\xeb" |
| 31951 | "\xbc\x74\x6b\xe8\x7e\xb0\x60\xc6" |
| 31952 | "\x0d\x96\x09\xbb\x19\xba\xe0\x3c" |
| 31953 | "\xc4\x6c\xbf\x0f\x58\xc0\x55\x62" |
| 31954 | "\x23\xa0\xff\xb5\x1c\xfd\x18\xe1" |
| 31955 | "\xcf\x6d\xd3\x52\xb4\xce\xa6\xfa" |
| 31956 | "\xaa\xfb\x1b\x0b\x42\x6d\x79\x42" |
| 31957 | "\x48\x70\x5b\x0e\xdd\x3a\xc9\x69" |
| 31958 | "\x8b\x73\x67\xf6\x95\xdb\x8c\xfb" |
| 31959 | "\xfd\xb5\x08\x47\x42\x84\x9a\xfa" |
| 31960 | "\xcc\x67\xb2\x3c\xb6\xfd\xd8\x32" |
| 31961 | "\xd6\x04\xb6\x4a\xea\x53\x4b\xf5" |
| 31962 | "\x94\x16\xad\xf0\x10\x2e\x2d\xb4" |
| 31963 | "\x8b\xab\xe5\x89\xc7\x39\x12\xf3" |
| 31964 | "\x8d\xb5\x96\x0b\x87\x5d\xa7\x7c" |
| 31965 | "\xb0\xc2\xf6\x2e\x57\x97\x2c\xdc" |
| 31966 | "\x54\x1c\x34\x72\xde\x0c\x68\x39" |
| 31967 | "\x9d\x32\xa5\x75\x92\x13\x32\xea" |
| 31968 | "\x90\x27\xbd\x5b\x1d\xb9\x21\x02" |
| 31969 | "\x1c\xcc\xba\x97\x5e\x49\x58\xe8" |
| 31970 | "\xac\x8b\xf3\xce\x3c\xf0\x00\xe9" |
| 31971 | "\x6c\xae\xe9\x77\xdf\xf4\x02\xcd" |
| 31972 | "\x55\x25\x89\x9e\x90\xf3\x6b\x8f" |
| 31973 | "\xb7\xd6\x47\x98\x26\x2f\x31\x2f" |
| 31974 | "\x8d\xbf\x54\xcd\x99\xeb\x80\xd7" |
| 31975 | "\xac\xc3\x08\xc2\xa6\x32\xf1\x24" |
| 31976 | "\x76\x7c\x4f\x78\x53\x55\xfb\x00" |
| 31977 | "\x8a\xd6\x52\x53\x25\x45\xfb\x0a" |
| 31978 | "\x6b\xb9\xbe\x3c\x5e\x11\xcc\x6a" |
| 31979 | "\xdd\xfc\xa7\xc4\x79\x4d\xbd\xfb" |
| 31980 | "\xce\x3a\xf1\x7a\xda\xeb\xfe\x64" |
| 31981 | "\x28\x3d\x0f\xee\x80\xba\x0c\xf8" |
| 31982 | "\xe9\x5b\x3a\xd4\xae\xc9\xf3\x0e" |
| 31983 | "\xe8\x5d\xc5\x5c\x0b\x20\x20\xee" |
| 31984 | "\x40\x0d\xde\x07\xa7\x14\xb4\x90" |
| 31985 | "\xb6\xbd\x3b\xae\x7d\x2b\xa7\xc7" |
| 31986 | "\xdc\x0b\x4c\x5d\x65\xb0\xd2\xc5" |
| 31987 | "\x79\x61\x23\xe0\xa2\x99\x73\x55" |
| 31988 | "\xad\xc6\xfb\xc7\x54\xb5\x98\x1f" |
| 31989 | "\x8c\x86\xc2\x3f\xbe\x5e\xea\x64" |
| 31990 | "\xa3\x60\x18\x9f\x80\xaf\x52\x74" |
| 31991 | "\x1a\xfe\x22\xc2\x92\x67\x40\x02" |
| 31992 | "\x08\xee\x67\x5b\x67\xe0\x3d\xde" |
| 31993 | "\x7a\xaf\x8e\x28\xf3\x5e\x0e\xf4" |
| 31994 | "\x48\x56\xaa\x85\x22\xd8\x36\xed" |
| 31995 | "\x3b\x3d\x68\x69\x30\xbc\x71\x23" |
| 31996 | "\xb1\x6e\x61\x03\x89\x44\x03\xf4" |
| 31997 | "\x32\xaa\x4c\x40\x9f\x69\xfb\x70" |
| 31998 | "\x91\xcc\x1f\x11\xbd\x76\x67\xe6" |
| 31999 | "\x10\x8b\x29\x39\x68\xea\x4e\x6d" |
| 32000 | "\xae\xfb\x40\xcf\xe2\xd0\x0d\x8d" |
| 32001 | "\x6f\xed\x9b\x8d\x64\x7a\x94\x8e" |
| 32002 | "\x32\x38\x78\xeb\x7d\x5f\xf9\x4d" |
| 32003 | "\x13\xbe\x21\xea\x16\xe7\x5c\xee" |
| 32004 | "\xcd\xf6\x5f\xc6\x45\xb2\x8f\x2b" |
| 32005 | "\xb5\x93\x3e\x45\xdb\xfd\xa2\x6a" |
| 32006 | "\xec\x83\x92\x99\x87\x47\xe0\x7c" |
| 32007 | "\xa2\x7b\xc4\x2a\xcd\xc0\x81\x03" |
| 32008 | "\x98\xb0\x87\xb6\x86\x13\x64\x33" |
| 32009 | "\x4c\xd7\x99\xbf\xdb\x7b\x6e\xaa" |
| 32010 | "\x76\xcc\xa0\x74\x1b\xa3\x6e\x83" |
| 32011 | "\xd4\xba\x7a\x84\x9d\x91\x71\xcd" |
| 32012 | "\x60\x2d\x56\xfd\x26\x35\xcb\xeb" |
| 32013 | "\xac\xe9\xee\xa4\xfc\x18\x5b\x91" |
| 32014 | "\xd5\xfe\x84\x45\xe0\xc7\xfd\x11" |
| 32015 | "\xe9\x00\xb6\x54\xdf\xe1\x94\xde" |
| 32016 | "\x2b\x70\x9f\x94\x7f\x15\x0e\x83" |
| 32017 | "\x63\x10\xb3\xf5\xea\xd3\xe8\xd1" |
| 32018 | "\xa5\xfc\x17\x19\x68\x9a\xbc\x17" |
| 32019 | "\x30\x43\x0a\x1a\x33\x92\xd4\x2a" |
| 32020 | "\x2e\x68\x99\xbc\x49\xf0\x68\xe3" |
| 32021 | "\xf0\x1f\xcb\xcc\xfa\xbb\x05\x56" |
| 32022 | "\x46\x84\x8b\x69\x83\x64\xc5\xe0" |
| 32023 | "\xc5\x52\x99\x07\x3c\xa6\x5c\xaf" |
| 32024 | "\xa3\xde\xd7\xdb\x43\xe6\xb7\x76" |
| 32025 | "\x4e\x4d\xd6\x71\x60\x63\x4a\x0c" |
| 32026 | "\x5f\xae\x25\x84\x22\x90\x5f\x26" |
| 32027 | "\x61\x4d\x8f\xaf\xc9\x22\xf2\x05" |
| 32028 | "\xcf\xc1\xdc\x68\xe5\x57\x8e\x24" |
| 32029 | "\x1b\x30\x59\xca\xd7\x0d\xc3\xd3" |
| 32030 | "\x52\x9e\x09\x3e\x0e\xaf\xdb\x5f" |
| 32031 | "\xc7\x2b\xde\x3a\xfd\xad\x93\x04" |
| 32032 | "\x74\x06\x89\x0e\x90\xeb\x85\xff" |
| 32033 | "\xe6\x3c\x12\x42\xf4\xfa\x80\x75" |
| 32034 | "\x5e\x4e\xd7\x2f\x93\x0b\x34\x41" |
| 32035 | "\x02\x85\x68\xd0\x03\x12\xde\x92" |
| 32036 | "\x54\x7a\x7e\xfb\x55\xe7\x88\xfb" |
| 32037 | "\xa4\xa9\xf2\xd1\xc6\x70\x06\x37" |
| 32038 | "\x25\xee\xa7\x6e\xd9\x89\x86\x50" |
| 32039 | "\x2e\x07\xdb\xfb\x2a\x86\x45\x0e" |
| 32040 | "\x91\xf4\x7c\xbb\x12\x60\xe8\x3f" |
| 32041 | "\x71\xbe\x8f\x9d\x26\xef\xd9\x89" |
| 32042 | "\xc4\x8f\xd8\xc5\x73\xd8\x84\xaa" |
| 32043 | "\x2f\xad\x22\x1e\x7e\xcf\xa2\x08" |
| 32044 | "\x23\x45\x89\x42\xa0\x30\xeb\xbf" |
| 32045 | "\xa1\xed\xad\xd5\x76\xfa\x24\x8f" |
| 32046 | "\x98", |
| 32047 | .rlen = 1281, |
Martin Willi | 3590ebf | 2015-06-01 13:43:57 +0200 | [diff] [blame] | 32048 | }, |
| 32049 | }; |
| 32050 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32051 | /* |
| 32052 | * CTS (Cipher Text Stealing) mode tests |
| 32053 | */ |
| 32054 | #define CTS_MODE_ENC_TEST_VECTORS 6 |
| 32055 | #define CTS_MODE_DEC_TEST_VECTORS 6 |
| 32056 | static struct cipher_testvec cts_mode_enc_tv_template[] = { |
| 32057 | { /* from rfc3962 */ |
| 32058 | .klen = 16, |
| 32059 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32060 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32061 | .ilen = 17, |
| 32062 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32063 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32064 | "\x20", |
| 32065 | .rlen = 17, |
| 32066 | .result = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" |
| 32067 | "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" |
| 32068 | "\x97", |
| 32069 | }, { |
| 32070 | .klen = 16, |
| 32071 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32072 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32073 | .ilen = 31, |
| 32074 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32075 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32076 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32077 | "\x20\x47\x61\x75\x27\x73\x20", |
| 32078 | .rlen = 31, |
| 32079 | .result = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" |
| 32080 | "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" |
| 32081 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32082 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5", |
| 32083 | }, { |
| 32084 | .klen = 16, |
| 32085 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32086 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32087 | .ilen = 32, |
| 32088 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32089 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32090 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32091 | "\x20\x47\x61\x75\x27\x73\x20\x43", |
| 32092 | .rlen = 32, |
| 32093 | .result = "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 32094 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 32095 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32096 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", |
| 32097 | }, { |
| 32098 | .klen = 16, |
| 32099 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32100 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32101 | .ilen = 47, |
| 32102 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32103 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32104 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32105 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 32106 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 32107 | "\x70\x6c\x65\x61\x73\x65\x2c", |
| 32108 | .rlen = 47, |
| 32109 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32110 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 32111 | "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" |
| 32112 | "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" |
| 32113 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 32114 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5", |
| 32115 | }, { |
| 32116 | .klen = 16, |
| 32117 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32118 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32119 | .ilen = 48, |
| 32120 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32121 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32122 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32123 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 32124 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 32125 | "\x70\x6c\x65\x61\x73\x65\x2c\x20", |
| 32126 | .rlen = 48, |
| 32127 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32128 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 32129 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 32130 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" |
| 32131 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 32132 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", |
| 32133 | }, { |
| 32134 | .klen = 16, |
| 32135 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32136 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32137 | .ilen = 64, |
| 32138 | .input = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32139 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32140 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32141 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 32142 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 32143 | "\x70\x6c\x65\x61\x73\x65\x2c\x20" |
| 32144 | "\x61\x6e\x64\x20\x77\x6f\x6e\x74" |
| 32145 | "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", |
| 32146 | .rlen = 64, |
| 32147 | .result = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32148 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 32149 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 32150 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 32151 | "\x48\x07\xef\xe8\x36\xee\x89\xa5" |
| 32152 | "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" |
| 32153 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 32154 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", |
| 32155 | } |
| 32156 | }; |
| 32157 | |
| 32158 | static struct cipher_testvec cts_mode_dec_tv_template[] = { |
| 32159 | { /* from rfc3962 */ |
| 32160 | .klen = 16, |
| 32161 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32162 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32163 | .rlen = 17, |
| 32164 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32165 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32166 | "\x20", |
| 32167 | .ilen = 17, |
| 32168 | .input = "\xc6\x35\x35\x68\xf2\xbf\x8c\xb4" |
| 32169 | "\xd8\xa5\x80\x36\x2d\xa7\xff\x7f" |
| 32170 | "\x97", |
| 32171 | }, { |
| 32172 | .klen = 16, |
| 32173 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32174 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32175 | .rlen = 31, |
| 32176 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32177 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32178 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32179 | "\x20\x47\x61\x75\x27\x73\x20", |
| 32180 | .ilen = 31, |
| 32181 | .input = "\xfc\x00\x78\x3e\x0e\xfd\xb2\xc1" |
| 32182 | "\xd4\x45\xd4\xc8\xef\xf7\xed\x22" |
| 32183 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32184 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5", |
| 32185 | }, { |
| 32186 | .klen = 16, |
| 32187 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32188 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32189 | .rlen = 32, |
| 32190 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32191 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32192 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32193 | "\x20\x47\x61\x75\x27\x73\x20\x43", |
| 32194 | .ilen = 32, |
| 32195 | .input = "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 32196 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 32197 | "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32198 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84", |
| 32199 | }, { |
| 32200 | .klen = 16, |
| 32201 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32202 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32203 | .rlen = 47, |
| 32204 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32205 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32206 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32207 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 32208 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 32209 | "\x70\x6c\x65\x61\x73\x65\x2c", |
| 32210 | .ilen = 47, |
| 32211 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32212 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 32213 | "\xb3\xff\xfd\x94\x0c\x16\xa1\x8c" |
| 32214 | "\x1b\x55\x49\xd2\xf8\x38\x02\x9e" |
| 32215 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 32216 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5", |
| 32217 | }, { |
| 32218 | .klen = 16, |
| 32219 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32220 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32221 | .rlen = 48, |
| 32222 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32223 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32224 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32225 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 32226 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 32227 | "\x70\x6c\x65\x61\x73\x65\x2c\x20", |
| 32228 | .ilen = 48, |
| 32229 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32230 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 32231 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 32232 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8" |
| 32233 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 32234 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8", |
| 32235 | }, { |
| 32236 | .klen = 16, |
| 32237 | .key = "\x63\x68\x69\x63\x6b\x65\x6e\x20" |
| 32238 | "\x74\x65\x72\x69\x79\x61\x6b\x69", |
| 32239 | .rlen = 64, |
| 32240 | .result = "\x49\x20\x77\x6f\x75\x6c\x64\x20" |
| 32241 | "\x6c\x69\x6b\x65\x20\x74\x68\x65" |
| 32242 | "\x20\x47\x65\x6e\x65\x72\x61\x6c" |
| 32243 | "\x20\x47\x61\x75\x27\x73\x20\x43" |
| 32244 | "\x68\x69\x63\x6b\x65\x6e\x2c\x20" |
| 32245 | "\x70\x6c\x65\x61\x73\x65\x2c\x20" |
| 32246 | "\x61\x6e\x64\x20\x77\x6f\x6e\x74" |
| 32247 | "\x6f\x6e\x20\x73\x6f\x75\x70\x2e", |
| 32248 | .ilen = 64, |
| 32249 | .input = "\x97\x68\x72\x68\xd6\xec\xcc\xc0" |
| 32250 | "\xc0\x7b\x25\xe2\x5e\xcf\xe5\x84" |
| 32251 | "\x39\x31\x25\x23\xa7\x86\x62\xd5" |
| 32252 | "\xbe\x7f\xcb\xcc\x98\xeb\xf5\xa8" |
| 32253 | "\x48\x07\xef\xe8\x36\xee\x89\xa5" |
| 32254 | "\x26\x73\x0d\xbc\x2f\x7b\xc8\x40" |
| 32255 | "\x9d\xad\x8b\xbb\x96\xc4\xcd\xc0" |
| 32256 | "\x3b\xc1\x03\xe1\xa1\x94\xbb\xd8", |
| 32257 | } |
| 32258 | }; |
| 32259 | |
| 32260 | /* |
| 32261 | * Compression stuff. |
| 32262 | */ |
| 32263 | #define COMP_BUF_SIZE 512 |
| 32264 | |
| 32265 | struct comp_testvec { |
| 32266 | int inlen, outlen; |
| 32267 | char input[COMP_BUF_SIZE]; |
| 32268 | char output[COMP_BUF_SIZE]; |
| 32269 | }; |
| 32270 | |
Geert Uytterhoeven | 8064efb | 2009-03-04 15:08:03 +0800 | [diff] [blame] | 32271 | struct pcomp_testvec { |
David Howells | f94a359 | 2015-04-28 15:36:30 +0100 | [diff] [blame] | 32272 | const void *params; |
Geert Uytterhoeven | 8064efb | 2009-03-04 15:08:03 +0800 | [diff] [blame] | 32273 | unsigned int paramsize; |
| 32274 | int inlen, outlen; |
| 32275 | char input[COMP_BUF_SIZE]; |
| 32276 | char output[COMP_BUF_SIZE]; |
| 32277 | }; |
| 32278 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32279 | /* |
| 32280 | * Deflate test vectors (null-terminated strings). |
Geert Uytterhoeven | bcf84a3 | 2008-12-18 17:17:46 +1100 | [diff] [blame] | 32281 | * Params: winbits=-11, Z_DEFAULT_COMPRESSION, MAX_MEM_LEVEL. |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32282 | */ |
Geert Uytterhoeven | 0c01aed | 2009-03-04 15:42:15 +0800 | [diff] [blame] | 32283 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32284 | #define DEFLATE_COMP_TEST_VECTORS 2 |
| 32285 | #define DEFLATE_DECOMP_TEST_VECTORS 2 |
| 32286 | |
| 32287 | static struct comp_testvec deflate_comp_tv_template[] = { |
| 32288 | { |
| 32289 | .inlen = 70, |
| 32290 | .outlen = 38, |
| 32291 | .input = "Join us now and share the software " |
| 32292 | "Join us now and share the software ", |
| 32293 | .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 32294 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 32295 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 32296 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 32297 | "\x71\xbc\x08\x2b\x01\x00", |
| 32298 | }, { |
| 32299 | .inlen = 191, |
| 32300 | .outlen = 122, |
| 32301 | .input = "This document describes a compression method based on the DEFLATE" |
| 32302 | "compression algorithm. This document defines the application of " |
| 32303 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 32304 | .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 32305 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 32306 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 32307 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 32308 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 32309 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 32310 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 32311 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 32312 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 32313 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 32314 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 32315 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 32316 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 32317 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 32318 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 32319 | "\xfa\x02", |
| 32320 | }, |
| 32321 | }; |
| 32322 | |
| 32323 | static struct comp_testvec deflate_decomp_tv_template[] = { |
| 32324 | { |
| 32325 | .inlen = 122, |
| 32326 | .outlen = 191, |
| 32327 | .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 32328 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 32329 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 32330 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 32331 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 32332 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 32333 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 32334 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 32335 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 32336 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 32337 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 32338 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 32339 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 32340 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 32341 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 32342 | "\xfa\x02", |
| 32343 | .output = "This document describes a compression method based on the DEFLATE" |
| 32344 | "compression algorithm. This document defines the application of " |
| 32345 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 32346 | }, { |
| 32347 | .inlen = 38, |
| 32348 | .outlen = 70, |
| 32349 | .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 32350 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 32351 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 32352 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 32353 | "\x71\xbc\x08\x2b\x01\x00", |
| 32354 | .output = "Join us now and share the software " |
| 32355 | "Join us now and share the software ", |
| 32356 | }, |
| 32357 | }; |
| 32358 | |
Geert Uytterhoeven | 0c01aed | 2009-03-04 15:42:15 +0800 | [diff] [blame] | 32359 | #define ZLIB_COMP_TEST_VECTORS 2 |
| 32360 | #define ZLIB_DECOMP_TEST_VECTORS 2 |
| 32361 | |
| 32362 | static const struct { |
| 32363 | struct nlattr nla; |
| 32364 | int val; |
| 32365 | } deflate_comp_params[] = { |
| 32366 | { |
| 32367 | .nla = { |
| 32368 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 32369 | .nla_type = ZLIB_COMP_LEVEL, |
| 32370 | }, |
| 32371 | .val = Z_DEFAULT_COMPRESSION, |
| 32372 | }, { |
| 32373 | .nla = { |
| 32374 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 32375 | .nla_type = ZLIB_COMP_METHOD, |
| 32376 | }, |
| 32377 | .val = Z_DEFLATED, |
| 32378 | }, { |
| 32379 | .nla = { |
| 32380 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 32381 | .nla_type = ZLIB_COMP_WINDOWBITS, |
| 32382 | }, |
| 32383 | .val = -11, |
| 32384 | }, { |
| 32385 | .nla = { |
| 32386 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 32387 | .nla_type = ZLIB_COMP_MEMLEVEL, |
| 32388 | }, |
| 32389 | .val = MAX_MEM_LEVEL, |
| 32390 | }, { |
| 32391 | .nla = { |
| 32392 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 32393 | .nla_type = ZLIB_COMP_STRATEGY, |
| 32394 | }, |
| 32395 | .val = Z_DEFAULT_STRATEGY, |
| 32396 | } |
| 32397 | }; |
| 32398 | |
| 32399 | static const struct { |
| 32400 | struct nlattr nla; |
| 32401 | int val; |
| 32402 | } deflate_decomp_params[] = { |
| 32403 | { |
| 32404 | .nla = { |
| 32405 | .nla_len = NLA_HDRLEN + sizeof(int), |
| 32406 | .nla_type = ZLIB_DECOMP_WINDOWBITS, |
| 32407 | }, |
| 32408 | .val = -11, |
| 32409 | } |
| 32410 | }; |
| 32411 | |
| 32412 | static struct pcomp_testvec zlib_comp_tv_template[] = { |
| 32413 | { |
| 32414 | .params = &deflate_comp_params, |
| 32415 | .paramsize = sizeof(deflate_comp_params), |
| 32416 | .inlen = 70, |
| 32417 | .outlen = 38, |
| 32418 | .input = "Join us now and share the software " |
| 32419 | "Join us now and share the software ", |
| 32420 | .output = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 32421 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 32422 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 32423 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 32424 | "\x71\xbc\x08\x2b\x01\x00", |
| 32425 | }, { |
| 32426 | .params = &deflate_comp_params, |
| 32427 | .paramsize = sizeof(deflate_comp_params), |
| 32428 | .inlen = 191, |
| 32429 | .outlen = 122, |
| 32430 | .input = "This document describes a compression method based on the DEFLATE" |
| 32431 | "compression algorithm. This document defines the application of " |
| 32432 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 32433 | .output = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 32434 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 32435 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 32436 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 32437 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 32438 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 32439 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 32440 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 32441 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 32442 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 32443 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 32444 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 32445 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 32446 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 32447 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 32448 | "\xfa\x02", |
| 32449 | }, |
| 32450 | }; |
| 32451 | |
| 32452 | static struct pcomp_testvec zlib_decomp_tv_template[] = { |
| 32453 | { |
| 32454 | .params = &deflate_decomp_params, |
| 32455 | .paramsize = sizeof(deflate_decomp_params), |
| 32456 | .inlen = 122, |
| 32457 | .outlen = 191, |
| 32458 | .input = "\x5d\x8d\x31\x0e\xc2\x30\x10\x04" |
| 32459 | "\xbf\xb2\x2f\xc8\x1f\x10\x04\x09" |
| 32460 | "\x89\xc2\x85\x3f\x70\xb1\x2f\xf8" |
| 32461 | "\x24\xdb\x67\xd9\x47\xc1\xef\x49" |
| 32462 | "\x68\x12\x51\xae\x76\x67\xd6\x27" |
| 32463 | "\x19\x88\x1a\xde\x85\xab\x21\xf2" |
| 32464 | "\x08\x5d\x16\x1e\x20\x04\x2d\xad" |
| 32465 | "\xf3\x18\xa2\x15\x85\x2d\x69\xc4" |
| 32466 | "\x42\x83\x23\xb6\x6c\x89\x71\x9b" |
| 32467 | "\xef\xcf\x8b\x9f\xcf\x33\xca\x2f" |
| 32468 | "\xed\x62\xa9\x4c\x80\xff\x13\xaf" |
| 32469 | "\x52\x37\xed\x0e\x52\x6b\x59\x02" |
| 32470 | "\xd9\x4e\xe8\x7a\x76\x1d\x02\x98" |
| 32471 | "\xfe\x8a\x87\x83\xa3\x4f\x56\x8a" |
| 32472 | "\xb8\x9e\x8e\x5c\x57\xd3\xa0\x79" |
| 32473 | "\xfa\x02", |
| 32474 | .output = "This document describes a compression method based on the DEFLATE" |
| 32475 | "compression algorithm. This document defines the application of " |
| 32476 | "the DEFLATE algorithm to the IP Payload Compression Protocol.", |
| 32477 | }, { |
| 32478 | .params = &deflate_decomp_params, |
| 32479 | .paramsize = sizeof(deflate_decomp_params), |
| 32480 | .inlen = 38, |
| 32481 | .outlen = 70, |
| 32482 | .input = "\xf3\xca\xcf\xcc\x53\x28\x2d\x56" |
| 32483 | "\xc8\xcb\x2f\x57\x48\xcc\x4b\x51" |
| 32484 | "\x28\xce\x48\x2c\x4a\x55\x28\xc9" |
| 32485 | "\x48\x55\x28\xce\x4f\x2b\x29\x07" |
| 32486 | "\x71\xbc\x08\x2b\x01\x00", |
| 32487 | .output = "Join us now and share the software " |
| 32488 | "Join us now and share the software ", |
| 32489 | }, |
| 32490 | }; |
| 32491 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32492 | /* |
| 32493 | * LZO test vectors (null-terminated strings). |
| 32494 | */ |
| 32495 | #define LZO_COMP_TEST_VECTORS 2 |
| 32496 | #define LZO_DECOMP_TEST_VECTORS 2 |
| 32497 | |
| 32498 | static struct comp_testvec lzo_comp_tv_template[] = { |
| 32499 | { |
| 32500 | .inlen = 70, |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 32501 | .outlen = 57, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32502 | .input = "Join us now and share the software " |
| 32503 | "Join us now and share the software ", |
| 32504 | .output = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 32505 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 32506 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 32507 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 32508 | "\x77\x70\x01\x32\x88\x00\x0c\x65" |
| 32509 | "\x20\x74\x68\x65\x20\x73\x6f\x66" |
| 32510 | "\x74\x77\x61\x72\x65\x20\x11\x00" |
| 32511 | "\x00", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32512 | }, { |
| 32513 | .inlen = 159, |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 32514 | .outlen = 131, |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32515 | .input = "This document describes a compression method based on the LZO " |
| 32516 | "compression algorithm. This document defines the application of " |
| 32517 | "the LZO algorithm used in UBIFS.", |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 32518 | .output = "\x00\x2c\x54\x68\x69\x73\x20\x64" |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32519 | "\x6f\x63\x75\x6d\x65\x6e\x74\x20" |
| 32520 | "\x64\x65\x73\x63\x72\x69\x62\x65" |
| 32521 | "\x73\x20\x61\x20\x63\x6f\x6d\x70" |
| 32522 | "\x72\x65\x73\x73\x69\x6f\x6e\x20" |
| 32523 | "\x6d\x65\x74\x68\x6f\x64\x20\x62" |
| 32524 | "\x61\x73\x65\x64\x20\x6f\x6e\x20" |
Markus F.X.J. Oberhumer | 0ec7382 | 2012-10-14 15:39:04 +0200 | [diff] [blame] | 32525 | "\x74\x68\x65\x20\x4c\x5a\x4f\x20" |
| 32526 | "\x2a\x8c\x00\x09\x61\x6c\x67\x6f" |
| 32527 | "\x72\x69\x74\x68\x6d\x2e\x20\x20" |
| 32528 | "\x2e\x54\x01\x03\x66\x69\x6e\x65" |
| 32529 | "\x73\x20\x74\x06\x05\x61\x70\x70" |
| 32530 | "\x6c\x69\x63\x61\x74\x76\x0a\x6f" |
| 32531 | "\x66\x88\x02\x60\x09\x27\xf0\x00" |
| 32532 | "\x0c\x20\x75\x73\x65\x64\x20\x69" |
| 32533 | "\x6e\x20\x55\x42\x49\x46\x53\x2e" |
| 32534 | "\x11\x00\x00", |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 32535 | }, |
| 32536 | }; |
| 32537 | |
| 32538 | static struct comp_testvec lzo_decomp_tv_template[] = { |
| 32539 | { |
| 32540 | .inlen = 133, |
| 32541 | .outlen = 159, |
| 32542 | .input = "\x00\x2b\x54\x68\x69\x73\x20\x64" |
| 32543 | "\x6f\x63\x75\x6d\x65\x6e\x74\x20" |
| 32544 | "\x64\x65\x73\x63\x72\x69\x62\x65" |
| 32545 | "\x73\x20\x61\x20\x63\x6f\x6d\x70" |
| 32546 | "\x72\x65\x73\x73\x69\x6f\x6e\x20" |
| 32547 | "\x6d\x65\x74\x68\x6f\x64\x20\x62" |
| 32548 | "\x61\x73\x65\x64\x20\x6f\x6e\x20" |
| 32549 | "\x74\x68\x65\x20\x4c\x5a\x4f\x2b" |
| 32550 | "\x8c\x00\x0d\x61\x6c\x67\x6f\x72" |
| 32551 | "\x69\x74\x68\x6d\x2e\x20\x20\x54" |
| 32552 | "\x68\x69\x73\x2a\x54\x01\x02\x66" |
| 32553 | "\x69\x6e\x65\x73\x94\x06\x05\x61" |
| 32554 | "\x70\x70\x6c\x69\x63\x61\x74\x76" |
| 32555 | "\x0a\x6f\x66\x88\x02\x60\x09\x27" |
| 32556 | "\xf0\x00\x0c\x20\x75\x73\x65\x64" |
| 32557 | "\x20\x69\x6e\x20\x55\x42\x49\x46" |
| 32558 | "\x53\x2e\x11\x00\x00", |
| 32559 | .output = "This document describes a compression method based on the LZO " |
| 32560 | "compression algorithm. This document defines the application of " |
| 32561 | "the LZO algorithm used in UBIFS.", |
| 32562 | }, { |
| 32563 | .inlen = 46, |
| 32564 | .outlen = 70, |
| 32565 | .input = "\x00\x0d\x4a\x6f\x69\x6e\x20\x75" |
| 32566 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 32567 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 32568 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 32569 | "\x77\x70\x01\x01\x4a\x6f\x69\x6e" |
| 32570 | "\x3d\x88\x00\x11\x00\x00", |
| 32571 | .output = "Join us now and share the software " |
| 32572 | "Join us now and share the software ", |
| 32573 | }, |
| 32574 | }; |
| 32575 | |
| 32576 | /* |
| 32577 | * Michael MIC test vectors from IEEE 802.11i |
| 32578 | */ |
| 32579 | #define MICHAEL_MIC_TEST_VECTORS 6 |
| 32580 | |
| 32581 | static struct hash_testvec michael_mic_tv_template[] = { |
| 32582 | { |
| 32583 | .key = "\x00\x00\x00\x00\x00\x00\x00\x00", |
| 32584 | .ksize = 8, |
| 32585 | .plaintext = zeroed_string, |
| 32586 | .psize = 0, |
| 32587 | .digest = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", |
| 32588 | }, |
| 32589 | { |
| 32590 | .key = "\x82\x92\x5c\x1c\xa1\xd1\x30\xb8", |
| 32591 | .ksize = 8, |
| 32592 | .plaintext = "M", |
| 32593 | .psize = 1, |
| 32594 | .digest = "\x43\x47\x21\xca\x40\x63\x9b\x3f", |
| 32595 | }, |
| 32596 | { |
| 32597 | .key = "\x43\x47\x21\xca\x40\x63\x9b\x3f", |
| 32598 | .ksize = 8, |
| 32599 | .plaintext = "Mi", |
| 32600 | .psize = 2, |
| 32601 | .digest = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", |
| 32602 | }, |
| 32603 | { |
| 32604 | .key = "\xe8\xf9\xbe\xca\xe9\x7e\x5d\x29", |
| 32605 | .ksize = 8, |
| 32606 | .plaintext = "Mic", |
| 32607 | .psize = 3, |
| 32608 | .digest = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", |
| 32609 | }, |
| 32610 | { |
| 32611 | .key = "\x90\x03\x8f\xc6\xcf\x13\xc1\xdb", |
| 32612 | .ksize = 8, |
| 32613 | .plaintext = "Mich", |
| 32614 | .psize = 4, |
| 32615 | .digest = "\xd5\x5e\x10\x05\x10\x12\x89\x86", |
| 32616 | }, |
| 32617 | { |
| 32618 | .key = "\xd5\x5e\x10\x05\x10\x12\x89\x86", |
| 32619 | .ksize = 8, |
| 32620 | .plaintext = "Michael", |
| 32621 | .psize = 7, |
| 32622 | .digest = "\x0a\x94\x2b\x12\x4e\xca\xa5\x46", |
| 32623 | } |
| 32624 | }; |
| 32625 | |
| 32626 | /* |
Ard Biesheuvel | ebb3472 | 2015-05-04 11:00:17 +0200 | [diff] [blame] | 32627 | * CRC32 test vectors |
| 32628 | */ |
| 32629 | #define CRC32_TEST_VECTORS 14 |
| 32630 | |
| 32631 | static struct hash_testvec crc32_tv_template[] = { |
| 32632 | { |
| 32633 | .key = "\x87\xa9\xcb\xed", |
| 32634 | .ksize = 4, |
| 32635 | .psize = 0, |
| 32636 | .digest = "\x87\xa9\xcb\xed", |
| 32637 | }, |
| 32638 | { |
| 32639 | .key = "\xff\xff\xff\xff", |
| 32640 | .ksize = 4, |
| 32641 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 32642 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 32643 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 32644 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 32645 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 32646 | .psize = 40, |
| 32647 | .digest = "\x3a\xdf\x4b\xb0", |
| 32648 | }, |
| 32649 | { |
| 32650 | .key = "\xff\xff\xff\xff", |
| 32651 | .ksize = 4, |
| 32652 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 32653 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 32654 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 32655 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 32656 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 32657 | .psize = 40, |
| 32658 | .digest = "\xa9\x7a\x7f\x7b", |
| 32659 | }, |
| 32660 | { |
| 32661 | .key = "\xff\xff\xff\xff", |
| 32662 | .ksize = 4, |
| 32663 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 32664 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 32665 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 32666 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 32667 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 32668 | .psize = 40, |
| 32669 | .digest = "\xba\xd3\xf8\x1c", |
| 32670 | }, |
| 32671 | { |
| 32672 | .key = "\xff\xff\xff\xff", |
| 32673 | .ksize = 4, |
| 32674 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 32675 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 32676 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 32677 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 32678 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 32679 | .psize = 40, |
| 32680 | .digest = "\xa8\xa9\xc2\x02", |
| 32681 | }, |
| 32682 | { |
| 32683 | .key = "\xff\xff\xff\xff", |
| 32684 | .ksize = 4, |
| 32685 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 32686 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 32687 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 32688 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 32689 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 32690 | .psize = 40, |
| 32691 | .digest = "\x27\xf0\x57\xe2", |
| 32692 | }, |
| 32693 | { |
| 32694 | .key = "\xff\xff\xff\xff", |
| 32695 | .ksize = 4, |
| 32696 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 32697 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 32698 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 32699 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 32700 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 32701 | .psize = 40, |
| 32702 | .digest = "\x49\x78\x10\x08", |
| 32703 | }, |
| 32704 | { |
| 32705 | .key = "\x80\xea\xd3\xf1", |
| 32706 | .ksize = 4, |
| 32707 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 32708 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 32709 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 32710 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 32711 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 32712 | .psize = 40, |
| 32713 | .digest = "\x9a\xb1\xdc\xf0", |
| 32714 | }, |
| 32715 | { |
| 32716 | .key = "\xf3\x4a\x1d\x5d", |
| 32717 | .ksize = 4, |
| 32718 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 32719 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 32720 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 32721 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 32722 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 32723 | .psize = 40, |
| 32724 | .digest = "\xb4\x97\xcc\xd4", |
| 32725 | }, |
| 32726 | { |
| 32727 | .key = "\x2e\x80\x04\x59", |
| 32728 | .ksize = 4, |
| 32729 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 32730 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 32731 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 32732 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 32733 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 32734 | .psize = 40, |
| 32735 | .digest = "\x67\x9b\xfa\x79", |
| 32736 | }, |
| 32737 | { |
| 32738 | .key = "\xa6\xcc\x19\x85", |
| 32739 | .ksize = 4, |
| 32740 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 32741 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 32742 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 32743 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 32744 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 32745 | .psize = 40, |
| 32746 | .digest = "\x24\xb5\x16\xef", |
| 32747 | }, |
| 32748 | { |
| 32749 | .key = "\x41\xfc\xfe\x2d", |
| 32750 | .ksize = 4, |
| 32751 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 32752 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 32753 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 32754 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 32755 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 32756 | .psize = 40, |
| 32757 | .digest = "\x15\x94\x80\x39", |
| 32758 | }, |
| 32759 | { |
| 32760 | .key = "\xff\xff\xff\xff", |
| 32761 | .ksize = 4, |
| 32762 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 32763 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 32764 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 32765 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 32766 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 32767 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 32768 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 32769 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 32770 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 32771 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 32772 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 32773 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 32774 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 32775 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 32776 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 32777 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 32778 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 32779 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 32780 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 32781 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 32782 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 32783 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 32784 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 32785 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 32786 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 32787 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 32788 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 32789 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 32790 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 32791 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 32792 | .psize = 240, |
| 32793 | .digest = "\x6c\xc6\x56\xde", |
| 32794 | .np = 2, |
| 32795 | .tap = { 31, 209 } |
| 32796 | }, { |
| 32797 | .key = "\xff\xff\xff\xff", |
| 32798 | .ksize = 4, |
| 32799 | .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49" |
| 32800 | "\xe0\x54\xeb\x82\x19\x8d\x24\xbb" |
| 32801 | "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a" |
| 32802 | "\xa1\x38\xcf\x43\xda\x71\x08\x7c" |
| 32803 | "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee" |
| 32804 | "\x85\x1c\x90\x27\xbe\x32\xc9\x60" |
| 32805 | "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2" |
| 32806 | "\x46\xdd\x74\x0b\x7f\x16\xad\x21" |
| 32807 | "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93" |
| 32808 | "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05" |
| 32809 | "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77" |
| 32810 | "\x0e\x82\x19\xb0\x24\xbb\x52\xe9" |
| 32811 | "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38" |
| 32812 | "\xcf\x66\xfd\x71\x08\x9f\x13\xaa" |
| 32813 | "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c" |
| 32814 | "\xb3\x27\xbe\x55\xec\x60\xf7\x8e" |
| 32815 | "\x02\x99\x30\xc7\x3b\xd2\x69\x00" |
| 32816 | "\x74\x0b\xa2\x16\xad\x44\xdb\x4f" |
| 32817 | "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1" |
| 32818 | "\x58\xef\x63\xfa\x91\x05\x9c\x33" |
| 32819 | "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5" |
| 32820 | "\x19\xb0\x47\xde\x52\xe9\x80\x17" |
| 32821 | "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66" |
| 32822 | "\xfd\x94\x08\x9f\x36\xcd\x41\xd8" |
| 32823 | "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a" |
| 32824 | "\xe1\x55\xec\x83\x1a\x8e\x25\xbc" |
| 32825 | "\x30\xc7\x5e\xf5\x69\x00\x97\x0b" |
| 32826 | "\xa2\x39\xd0\x44\xdb\x72\x09\x7d" |
| 32827 | "\x14\xab\x1f\xb6\x4d\xe4\x58\xef" |
| 32828 | "\x86\x1d\x91\x28\xbf\x33\xca\x61" |
| 32829 | "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3" |
| 32830 | "\x47\xde\x75\x0c\x80\x17\xae\x22" |
| 32831 | "\xb9\x50\xe7\x5b\xf2\x89\x20\x94" |
| 32832 | "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06" |
| 32833 | "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78" |
| 32834 | "\x0f\x83\x1a\xb1\x25\xbc\x53\xea" |
| 32835 | "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39" |
| 32836 | "\xd0\x67\xfe\x72\x09\xa0\x14\xab" |
| 32837 | "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d" |
| 32838 | "\xb4\x28\xbf\x56\xed\x61\xf8\x8f" |
| 32839 | "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01" |
| 32840 | "\x75\x0c\xa3\x17\xae\x45\xdc\x50" |
| 32841 | "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2" |
| 32842 | "\x59\xf0\x64\xfb\x92\x06\x9d\x34" |
| 32843 | "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6" |
| 32844 | "\x1a\xb1\x48\xdf\x53\xea\x81\x18" |
| 32845 | "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67" |
| 32846 | "\xfe\x95\x09\xa0\x37\xce\x42\xd9" |
| 32847 | "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b" |
| 32848 | "\xe2\x56\xed\x84\x1b\x8f\x26\xbd" |
| 32849 | "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c" |
| 32850 | "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e" |
| 32851 | "\x15\xac\x20\xb7\x4e\xe5\x59\xf0" |
| 32852 | "\x87\x1e\x92\x29\xc0\x34\xcb\x62" |
| 32853 | "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4" |
| 32854 | "\x48\xdf\x76\x0d\x81\x18\xaf\x23" |
| 32855 | "\xba\x51\xe8\x5c\xf3\x8a\x21\x95" |
| 32856 | "\x2c\xc3\x37\xce\x65\xfc\x70\x07" |
| 32857 | "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79" |
| 32858 | "\x10\x84\x1b\xb2\x26\xbd\x54\xeb" |
| 32859 | "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a" |
| 32860 | "\xd1\x68\xff\x73\x0a\xa1\x15\xac" |
| 32861 | "\x43\xda\x4e\xe5\x7c\x13\x87\x1e" |
| 32862 | "\xb5\x29\xc0\x57\xee\x62\xf9\x90" |
| 32863 | "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02" |
| 32864 | "\x76\x0d\xa4\x18\xaf\x46\xdd\x51" |
| 32865 | "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3" |
| 32866 | "\x5a\xf1\x65\xfc\x93\x07\x9e\x35" |
| 32867 | "\xcc\x40\xd7\x6e\x05\x79\x10\xa7" |
| 32868 | "\x1b\xb2\x49\xe0\x54\xeb\x82\x19" |
| 32869 | "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68" |
| 32870 | "\xff\x96\x0a\xa1\x38\xcf\x43\xda" |
| 32871 | "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c" |
| 32872 | "\xe3\x57\xee\x85\x1c\x90\x27\xbe" |
| 32873 | "\x32\xc9\x60\xf7\x6b\x02\x99\x0d" |
| 32874 | "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f" |
| 32875 | "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1" |
| 32876 | "\x88\x1f\x93\x2a\xc1\x35\xcc\x63" |
| 32877 | "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5" |
| 32878 | "\x49\xe0\x77\x0e\x82\x19\xb0\x24" |
| 32879 | "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96" |
| 32880 | "\x2d\xc4\x38\xcf\x66\xfd\x71\x08" |
| 32881 | "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a" |
| 32882 | "\x11\x85\x1c\xb3\x27\xbe\x55\xec" |
| 32883 | "\x60\xf7\x8e\x02\x99\x30\xc7\x3b" |
| 32884 | "\xd2\x69\x00\x74\x0b\xa2\x16\xad" |
| 32885 | "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f" |
| 32886 | "\xb6\x2a\xc1\x58\xef\x63\xfa\x91" |
| 32887 | "\x05\x9c\x33\xca\x3e\xd5\x6c\x03" |
| 32888 | "\x77\x0e\xa5\x19\xb0\x47\xde\x52" |
| 32889 | "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4" |
| 32890 | "\x5b\xf2\x66\xfd\x94\x08\x9f\x36" |
| 32891 | "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8" |
| 32892 | "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a" |
| 32893 | "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69" |
| 32894 | "\x00\x97\x0b\xa2\x39\xd0\x44\xdb" |
| 32895 | "\x72\x09\x7d\x14\xab\x1f\xb6\x4d" |
| 32896 | "\xe4\x58\xef\x86\x1d\x91\x28\xbf" |
| 32897 | "\x33\xca\x61\xf8\x6c\x03\x9a\x0e" |
| 32898 | "\xa5\x3c\xd3\x47\xde\x75\x0c\x80" |
| 32899 | "\x17\xae\x22\xb9\x50\xe7\x5b\xf2" |
| 32900 | "\x89\x20\x94\x2b\xc2\x36\xcd\x64" |
| 32901 | "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6" |
| 32902 | "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25" |
| 32903 | "\xbc\x53\xea\x5e\xf5\x8c\x00\x97" |
| 32904 | "\x2e\xc5\x39\xd0\x67\xfe\x72\x09" |
| 32905 | "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b" |
| 32906 | "\x12\x86\x1d\xb4\x28\xbf\x56\xed" |
| 32907 | "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c" |
| 32908 | "\xd3\x6a\x01\x75\x0c\xa3\x17\xae" |
| 32909 | "\x45\xdc\x50\xe7\x7e\x15\x89\x20" |
| 32910 | "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92" |
| 32911 | "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04" |
| 32912 | "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53" |
| 32913 | "\xea\x81\x18\x8c\x23\xba\x2e\xc5" |
| 32914 | "\x5c\xf3\x67\xfe\x95\x09\xa0\x37" |
| 32915 | "\xce\x42\xd9\x70\x07\x7b\x12\xa9" |
| 32916 | "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b" |
| 32917 | "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a" |
| 32918 | "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc" |
| 32919 | "\x73\x0a\x7e\x15\xac\x20\xb7\x4e" |
| 32920 | "\xe5\x59\xf0\x87\x1e\x92\x29\xc0" |
| 32921 | "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f" |
| 32922 | "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81" |
| 32923 | "\x18\xaf\x23\xba\x51\xe8\x5c\xf3" |
| 32924 | "\x8a\x21\x95\x2c\xc3\x37\xce\x65" |
| 32925 | "\xfc\x70\x07\x9e\x12\xa9\x40\xd7" |
| 32926 | "\x4b\xe2\x79\x10\x84\x1b\xb2\x26" |
| 32927 | "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98" |
| 32928 | "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a" |
| 32929 | "\xa1\x15\xac\x43\xda\x4e\xe5\x7c" |
| 32930 | "\x13\x87\x1e\xb5\x29\xc0\x57\xee" |
| 32931 | "\x62\xf9\x90\x04\x9b\x32\xc9\x3d" |
| 32932 | "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf" |
| 32933 | "\x46\xdd\x51\xe8\x7f\x16\x8a\x21" |
| 32934 | "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93" |
| 32935 | "\x07\x9e\x35\xcc\x40\xd7\x6e\x05" |
| 32936 | "\x79\x10\xa7\x1b\xb2\x49\xe0\x54" |
| 32937 | "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6" |
| 32938 | "\x5d\xf4\x68\xff\x96\x0a\xa1\x38" |
| 32939 | "\xcf\x43\xda\x71\x08\x7c\x13\xaa" |
| 32940 | "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c" |
| 32941 | "\x90\x27\xbe\x32\xc9\x60\xf7\x6b" |
| 32942 | "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd" |
| 32943 | "\x74\x0b\x7f\x16\xad\x21\xb8\x4f" |
| 32944 | "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1" |
| 32945 | "\x35\xcc\x63\xfa\x6e\x05\x9c\x10" |
| 32946 | "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82" |
| 32947 | "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4" |
| 32948 | "\x8b\x22\x96\x2d\xc4\x38\xcf\x66" |
| 32949 | "\xfd\x71\x08\x9f\x13\xaa\x41\xd8" |
| 32950 | "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27" |
| 32951 | "\xbe\x55\xec\x60\xf7\x8e\x02\x99" |
| 32952 | "\x30\xc7\x3b\xd2\x69\x00\x74\x0b" |
| 32953 | "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d" |
| 32954 | "\x14\x88\x1f\xb6\x2a\xc1\x58\xef" |
| 32955 | "\x63\xfa\x91\x05\x9c\x33\xca\x3e" |
| 32956 | "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0" |
| 32957 | "\x47\xde\x52\xe9\x80\x17\x8b\x22" |
| 32958 | "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94" |
| 32959 | "\x08\x9f\x36\xcd\x41\xd8\x6f\x06" |
| 32960 | "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55" |
| 32961 | "\xec\x83\x1a\x8e\x25\xbc\x30\xc7" |
| 32962 | "\x5e\xf5\x69\x00\x97\x0b\xa2\x39" |
| 32963 | "\xd0\x44\xdb\x72\x09\x7d\x14\xab" |
| 32964 | "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d" |
| 32965 | "\x91\x28\xbf\x33\xca\x61\xf8\x6c" |
| 32966 | "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde" |
| 32967 | "\x75\x0c\x80\x17\xae\x22\xb9\x50" |
| 32968 | "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2" |
| 32969 | "\x36\xcd\x64\xfb\x6f\x06\x9d\x11" |
| 32970 | "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83" |
| 32971 | "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5" |
| 32972 | "\x8c\x00\x97\x2e\xc5\x39\xd0\x67" |
| 32973 | "\xfe\x72\x09\xa0\x14\xab\x42\xd9" |
| 32974 | "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28" |
| 32975 | "\xbf\x56\xed\x61\xf8\x8f\x03\x9a" |
| 32976 | "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c" |
| 32977 | "\xa3\x17\xae\x45\xdc\x50\xe7\x7e" |
| 32978 | "\x15\x89\x20\xb7\x2b\xc2\x59\xf0" |
| 32979 | "\x64\xfb\x92\x06\x9d\x34\xcb\x3f" |
| 32980 | "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1" |
| 32981 | "\x48\xdf\x53\xea\x81\x18\x8c\x23" |
| 32982 | "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95" |
| 32983 | "\x09\xa0\x37\xce\x42\xd9\x70\x07" |
| 32984 | "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56" |
| 32985 | "\xed\x84\x1b\x8f\x26\xbd\x31\xc8" |
| 32986 | "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a" |
| 32987 | "\xd1\x45\xdc\x73\x0a\x7e\x15\xac" |
| 32988 | "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e" |
| 32989 | "\x92\x29\xc0\x34\xcb\x62\xf9\x6d" |
| 32990 | "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf" |
| 32991 | "\x76\x0d\x81\x18\xaf\x23\xba\x51" |
| 32992 | "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3" |
| 32993 | "\x37\xce\x65\xfc\x70\x07\x9e\x12" |
| 32994 | "\xa9\x40\xd7\x4b\xe2\x79\x10\x84" |
| 32995 | "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6" |
| 32996 | "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68" |
| 32997 | "\xff\x73\x0a\xa1\x15\xac\x43\xda" |
| 32998 | "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29" |
| 32999 | "\xc0\x57\xee\x62\xf9\x90\x04\x9b" |
| 33000 | "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d" |
| 33001 | "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f" |
| 33002 | "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1" |
| 33003 | "\x65\xfc\x93\x07\x9e\x35\xcc\x40" |
| 33004 | "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2" |
| 33005 | "\x49\xe0\x54\xeb\x82\x19\x8d\x24" |
| 33006 | "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96" |
| 33007 | "\x0a\xa1\x38\xcf\x43\xda\x71\x08" |
| 33008 | "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57" |
| 33009 | "\xee\x85\x1c\x90\x27\xbe\x32\xc9" |
| 33010 | "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b" |
| 33011 | "\xd2\x46\xdd\x74\x0b\x7f\x16\xad" |
| 33012 | "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f" |
| 33013 | "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e" |
| 33014 | "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0" |
| 33015 | "\x77\x0e\x82\x19\xb0\x24\xbb\x52" |
| 33016 | "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4" |
| 33017 | "\x38\xcf\x66\xfd\x71\x08\x9f\x13" |
| 33018 | "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85" |
| 33019 | "\x1c\xb3\x27\xbe\x55\xec\x60\xf7" |
| 33020 | "\x8e\x02\x99\x30\xc7\x3b\xd2\x69" |
| 33021 | "\x00\x74\x0b\xa2\x16\xad\x44\xdb" |
| 33022 | "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a" |
| 33023 | "\xc1\x58\xef\x63\xfa\x91\x05\x9c" |
| 33024 | "\x33\xca\x3e\xd5\x6c\x03\x77\x0e" |
| 33025 | "\xa5\x19\xb0\x47\xde\x52\xe9\x80" |
| 33026 | "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2" |
| 33027 | "\x66\xfd\x94\x08\x9f\x36\xcd\x41" |
| 33028 | "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3" |
| 33029 | "\x4a\xe1\x55\xec\x83\x1a\x8e\x25" |
| 33030 | "\xbc\x30\xc7\x5e\xf5\x69\x00\x97" |
| 33031 | "\x0b\xa2\x39\xd0\x44\xdb\x72\x09" |
| 33032 | "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58" |
| 33033 | "\xef\x86\x1d\x91\x28\xbf\x33\xca" |
| 33034 | "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c" |
| 33035 | "\xd3\x47\xde\x75\x0c\x80\x17\xae" |
| 33036 | "\x22\xb9\x50\xe7\x5b\xf2\x89\x20" |
| 33037 | "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f" |
| 33038 | "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1" |
| 33039 | "\x78\x0f\x83\x1a\xb1\x25\xbc\x53" |
| 33040 | "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5" |
| 33041 | "\x39\xd0\x67\xfe\x72\x09\xa0\x14" |
| 33042 | "\xab\x42\xd9\x4d\xe4\x7b\x12\x86" |
| 33043 | "\x1d\xb4\x28\xbf\x56\xed\x61\xf8" |
| 33044 | "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a" |
| 33045 | "\x01\x75\x0c\xa3\x17\xae\x45\xdc" |
| 33046 | "\x50\xe7\x7e\x15\x89\x20\xb7\x2b" |
| 33047 | "\xc2\x59\xf0\x64\xfb\x92\x06\x9d" |
| 33048 | "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f" |
| 33049 | "\xa6\x1a\xb1\x48\xdf\x53\xea\x81" |
| 33050 | "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3" |
| 33051 | "\x67\xfe\x95\x09\xa0\x37\xce\x42" |
| 33052 | "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4" |
| 33053 | "\x4b\xe2\x56\xed\x84\x1b\x8f\x26" |
| 33054 | "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98", |
| 33055 | .psize = 2048, |
| 33056 | .digest = "\xfb\x3a\x7a\xda", |
| 33057 | } |
| 33058 | }; |
| 33059 | |
| 33060 | /* |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 33061 | * CRC32C test vectors |
| 33062 | */ |
Jussi Kivilinna | 6726ec4 | 2012-11-13 12:02:30 +0200 | [diff] [blame] | 33063 | #define CRC32C_TEST_VECTORS 15 |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 33064 | |
| 33065 | static struct hash_testvec crc32c_tv_template[] = { |
| 33066 | { |
| 33067 | .psize = 0, |
| 33068 | .digest = "\x00\x00\x00\x00", |
| 33069 | }, |
| 33070 | { |
| 33071 | .key = "\x87\xa9\xcb\xed", |
| 33072 | .ksize = 4, |
| 33073 | .psize = 0, |
| 33074 | .digest = "\x78\x56\x34\x12", |
| 33075 | }, |
| 33076 | { |
| 33077 | .key = "\xff\xff\xff\xff", |
| 33078 | .ksize = 4, |
| 33079 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 33080 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 33081 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 33082 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 33083 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 33084 | .psize = 40, |
| 33085 | .digest = "\x7f\x15\x2c\x0e", |
| 33086 | }, |
| 33087 | { |
| 33088 | .key = "\xff\xff\xff\xff", |
| 33089 | .ksize = 4, |
| 33090 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 33091 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 33092 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 33093 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 33094 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 33095 | .psize = 40, |
| 33096 | .digest = "\xf6\xeb\x80\xe9", |
| 33097 | }, |
| 33098 | { |
| 33099 | .key = "\xff\xff\xff\xff", |
| 33100 | .ksize = 4, |
| 33101 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 33102 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 33103 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 33104 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 33105 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 33106 | .psize = 40, |
| 33107 | .digest = "\xed\xbd\x74\xde", |
| 33108 | }, |
| 33109 | { |
| 33110 | .key = "\xff\xff\xff\xff", |
| 33111 | .ksize = 4, |
| 33112 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 33113 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 33114 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 33115 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 33116 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 33117 | .psize = 40, |
| 33118 | .digest = "\x62\xc8\x79\xd5", |
| 33119 | }, |
| 33120 | { |
| 33121 | .key = "\xff\xff\xff\xff", |
| 33122 | .ksize = 4, |
| 33123 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 33124 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 33125 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 33126 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 33127 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 33128 | .psize = 40, |
| 33129 | .digest = "\xd0\x9a\x97\xba", |
| 33130 | }, |
| 33131 | { |
| 33132 | .key = "\xff\xff\xff\xff", |
| 33133 | .ksize = 4, |
| 33134 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 33135 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 33136 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 33137 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 33138 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 33139 | .psize = 40, |
| 33140 | .digest = "\x13\xd9\x29\x2b", |
| 33141 | }, |
| 33142 | { |
| 33143 | .key = "\x80\xea\xd3\xf1", |
| 33144 | .ksize = 4, |
| 33145 | .plaintext = "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 33146 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 33147 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 33148 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 33149 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50", |
| 33150 | .psize = 40, |
| 33151 | .digest = "\x0c\xb5\xe2\xa2", |
| 33152 | }, |
| 33153 | { |
| 33154 | .key = "\xf3\x4a\x1d\x5d", |
| 33155 | .ksize = 4, |
| 33156 | .plaintext = "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 33157 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 33158 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 33159 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 33160 | "\x71\x72\x73\x74\x75\x76\x77\x78", |
| 33161 | .psize = 40, |
| 33162 | .digest = "\xd1\x7f\xfb\xa6", |
| 33163 | }, |
| 33164 | { |
| 33165 | .key = "\x2e\x80\x04\x59", |
| 33166 | .ksize = 4, |
| 33167 | .plaintext = "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 33168 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 33169 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 33170 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 33171 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0", |
| 33172 | .psize = 40, |
| 33173 | .digest = "\x59\x33\xe6\x7a", |
| 33174 | }, |
| 33175 | { |
| 33176 | .key = "\xa6\xcc\x19\x85", |
| 33177 | .ksize = 4, |
| 33178 | .plaintext = "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 33179 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 33180 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 33181 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 33182 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8", |
| 33183 | .psize = 40, |
| 33184 | .digest = "\xbe\x03\x01\xd2", |
| 33185 | }, |
| 33186 | { |
| 33187 | .key = "\x41\xfc\xfe\x2d", |
| 33188 | .ksize = 4, |
| 33189 | .plaintext = "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 33190 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 33191 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 33192 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 33193 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 33194 | .psize = 40, |
| 33195 | .digest = "\x75\xd3\xc5\x24", |
| 33196 | }, |
| 33197 | { |
| 33198 | .key = "\xff\xff\xff\xff", |
| 33199 | .ksize = 4, |
| 33200 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 33201 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 33202 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 33203 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 33204 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 33205 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 33206 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 33207 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 33208 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 33209 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 33210 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 33211 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 33212 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 33213 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 33214 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 33215 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 33216 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 33217 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 33218 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 33219 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 33220 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 33221 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 33222 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 33223 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 33224 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 33225 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 33226 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 33227 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 33228 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 33229 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 33230 | .psize = 240, |
| 33231 | .digest = "\x75\xd3\xc5\x24", |
| 33232 | .np = 2, |
| 33233 | .tap = { 31, 209 } |
Jussi Kivilinna | 6726ec4 | 2012-11-13 12:02:30 +0200 | [diff] [blame] | 33234 | }, { |
| 33235 | .key = "\xff\xff\xff\xff", |
| 33236 | .ksize = 4, |
| 33237 | .plaintext = "\x6e\x05\x79\x10\xa7\x1b\xb2\x49" |
| 33238 | "\xe0\x54\xeb\x82\x19\x8d\x24\xbb" |
| 33239 | "\x2f\xc6\x5d\xf4\x68\xff\x96\x0a" |
| 33240 | "\xa1\x38\xcf\x43\xda\x71\x08\x7c" |
| 33241 | "\x13\xaa\x1e\xb5\x4c\xe3\x57\xee" |
| 33242 | "\x85\x1c\x90\x27\xbe\x32\xc9\x60" |
| 33243 | "\xf7\x6b\x02\x99\x0d\xa4\x3b\xd2" |
| 33244 | "\x46\xdd\x74\x0b\x7f\x16\xad\x21" |
| 33245 | "\xb8\x4f\xe6\x5a\xf1\x88\x1f\x93" |
| 33246 | "\x2a\xc1\x35\xcc\x63\xfa\x6e\x05" |
| 33247 | "\x9c\x10\xa7\x3e\xd5\x49\xe0\x77" |
| 33248 | "\x0e\x82\x19\xb0\x24\xbb\x52\xe9" |
| 33249 | "\x5d\xf4\x8b\x22\x96\x2d\xc4\x38" |
| 33250 | "\xcf\x66\xfd\x71\x08\x9f\x13\xaa" |
| 33251 | "\x41\xd8\x4c\xe3\x7a\x11\x85\x1c" |
| 33252 | "\xb3\x27\xbe\x55\xec\x60\xf7\x8e" |
| 33253 | "\x02\x99\x30\xc7\x3b\xd2\x69\x00" |
| 33254 | "\x74\x0b\xa2\x16\xad\x44\xdb\x4f" |
| 33255 | "\xe6\x7d\x14\x88\x1f\xb6\x2a\xc1" |
| 33256 | "\x58\xef\x63\xfa\x91\x05\x9c\x33" |
| 33257 | "\xca\x3e\xd5\x6c\x03\x77\x0e\xa5" |
| 33258 | "\x19\xb0\x47\xde\x52\xe9\x80\x17" |
| 33259 | "\x8b\x22\xb9\x2d\xc4\x5b\xf2\x66" |
| 33260 | "\xfd\x94\x08\x9f\x36\xcd\x41\xd8" |
| 33261 | "\x6f\x06\x7a\x11\xa8\x1c\xb3\x4a" |
| 33262 | "\xe1\x55\xec\x83\x1a\x8e\x25\xbc" |
| 33263 | "\x30\xc7\x5e\xf5\x69\x00\x97\x0b" |
| 33264 | "\xa2\x39\xd0\x44\xdb\x72\x09\x7d" |
| 33265 | "\x14\xab\x1f\xb6\x4d\xe4\x58\xef" |
| 33266 | "\x86\x1d\x91\x28\xbf\x33\xca\x61" |
| 33267 | "\xf8\x6c\x03\x9a\x0e\xa5\x3c\xd3" |
| 33268 | "\x47\xde\x75\x0c\x80\x17\xae\x22" |
| 33269 | "\xb9\x50\xe7\x5b\xf2\x89\x20\x94" |
| 33270 | "\x2b\xc2\x36\xcd\x64\xfb\x6f\x06" |
| 33271 | "\x9d\x11\xa8\x3f\xd6\x4a\xe1\x78" |
| 33272 | "\x0f\x83\x1a\xb1\x25\xbc\x53\xea" |
| 33273 | "\x5e\xf5\x8c\x00\x97\x2e\xc5\x39" |
| 33274 | "\xd0\x67\xfe\x72\x09\xa0\x14\xab" |
| 33275 | "\x42\xd9\x4d\xe4\x7b\x12\x86\x1d" |
| 33276 | "\xb4\x28\xbf\x56\xed\x61\xf8\x8f" |
| 33277 | "\x03\x9a\x31\xc8\x3c\xd3\x6a\x01" |
| 33278 | "\x75\x0c\xa3\x17\xae\x45\xdc\x50" |
| 33279 | "\xe7\x7e\x15\x89\x20\xb7\x2b\xc2" |
| 33280 | "\x59\xf0\x64\xfb\x92\x06\x9d\x34" |
| 33281 | "\xcb\x3f\xd6\x6d\x04\x78\x0f\xa6" |
| 33282 | "\x1a\xb1\x48\xdf\x53\xea\x81\x18" |
| 33283 | "\x8c\x23\xba\x2e\xc5\x5c\xf3\x67" |
| 33284 | "\xfe\x95\x09\xa0\x37\xce\x42\xd9" |
| 33285 | "\x70\x07\x7b\x12\xa9\x1d\xb4\x4b" |
| 33286 | "\xe2\x56\xed\x84\x1b\x8f\x26\xbd" |
| 33287 | "\x31\xc8\x5f\xf6\x6a\x01\x98\x0c" |
| 33288 | "\xa3\x3a\xd1\x45\xdc\x73\x0a\x7e" |
| 33289 | "\x15\xac\x20\xb7\x4e\xe5\x59\xf0" |
| 33290 | "\x87\x1e\x92\x29\xc0\x34\xcb\x62" |
| 33291 | "\xf9\x6d\x04\x9b\x0f\xa6\x3d\xd4" |
| 33292 | "\x48\xdf\x76\x0d\x81\x18\xaf\x23" |
| 33293 | "\xba\x51\xe8\x5c\xf3\x8a\x21\x95" |
| 33294 | "\x2c\xc3\x37\xce\x65\xfc\x70\x07" |
| 33295 | "\x9e\x12\xa9\x40\xd7\x4b\xe2\x79" |
| 33296 | "\x10\x84\x1b\xb2\x26\xbd\x54\xeb" |
| 33297 | "\x5f\xf6\x8d\x01\x98\x2f\xc6\x3a" |
| 33298 | "\xd1\x68\xff\x73\x0a\xa1\x15\xac" |
| 33299 | "\x43\xda\x4e\xe5\x7c\x13\x87\x1e" |
| 33300 | "\xb5\x29\xc0\x57\xee\x62\xf9\x90" |
| 33301 | "\x04\x9b\x32\xc9\x3d\xd4\x6b\x02" |
| 33302 | "\x76\x0d\xa4\x18\xaf\x46\xdd\x51" |
| 33303 | "\xe8\x7f\x16\x8a\x21\xb8\x2c\xc3" |
| 33304 | "\x5a\xf1\x65\xfc\x93\x07\x9e\x35" |
| 33305 | "\xcc\x40\xd7\x6e\x05\x79\x10\xa7" |
| 33306 | "\x1b\xb2\x49\xe0\x54\xeb\x82\x19" |
| 33307 | "\x8d\x24\xbb\x2f\xc6\x5d\xf4\x68" |
| 33308 | "\xff\x96\x0a\xa1\x38\xcf\x43\xda" |
| 33309 | "\x71\x08\x7c\x13\xaa\x1e\xb5\x4c" |
| 33310 | "\xe3\x57\xee\x85\x1c\x90\x27\xbe" |
| 33311 | "\x32\xc9\x60\xf7\x6b\x02\x99\x0d" |
| 33312 | "\xa4\x3b\xd2\x46\xdd\x74\x0b\x7f" |
| 33313 | "\x16\xad\x21\xb8\x4f\xe6\x5a\xf1" |
| 33314 | "\x88\x1f\x93\x2a\xc1\x35\xcc\x63" |
| 33315 | "\xfa\x6e\x05\x9c\x10\xa7\x3e\xd5" |
| 33316 | "\x49\xe0\x77\x0e\x82\x19\xb0\x24" |
| 33317 | "\xbb\x52\xe9\x5d\xf4\x8b\x22\x96" |
| 33318 | "\x2d\xc4\x38\xcf\x66\xfd\x71\x08" |
| 33319 | "\x9f\x13\xaa\x41\xd8\x4c\xe3\x7a" |
| 33320 | "\x11\x85\x1c\xb3\x27\xbe\x55\xec" |
| 33321 | "\x60\xf7\x8e\x02\x99\x30\xc7\x3b" |
| 33322 | "\xd2\x69\x00\x74\x0b\xa2\x16\xad" |
| 33323 | "\x44\xdb\x4f\xe6\x7d\x14\x88\x1f" |
| 33324 | "\xb6\x2a\xc1\x58\xef\x63\xfa\x91" |
| 33325 | "\x05\x9c\x33\xca\x3e\xd5\x6c\x03" |
| 33326 | "\x77\x0e\xa5\x19\xb0\x47\xde\x52" |
| 33327 | "\xe9\x80\x17\x8b\x22\xb9\x2d\xc4" |
| 33328 | "\x5b\xf2\x66\xfd\x94\x08\x9f\x36" |
| 33329 | "\xcd\x41\xd8\x6f\x06\x7a\x11\xa8" |
| 33330 | "\x1c\xb3\x4a\xe1\x55\xec\x83\x1a" |
| 33331 | "\x8e\x25\xbc\x30\xc7\x5e\xf5\x69" |
| 33332 | "\x00\x97\x0b\xa2\x39\xd0\x44\xdb" |
| 33333 | "\x72\x09\x7d\x14\xab\x1f\xb6\x4d" |
| 33334 | "\xe4\x58\xef\x86\x1d\x91\x28\xbf" |
| 33335 | "\x33\xca\x61\xf8\x6c\x03\x9a\x0e" |
| 33336 | "\xa5\x3c\xd3\x47\xde\x75\x0c\x80" |
| 33337 | "\x17\xae\x22\xb9\x50\xe7\x5b\xf2" |
| 33338 | "\x89\x20\x94\x2b\xc2\x36\xcd\x64" |
| 33339 | "\xfb\x6f\x06\x9d\x11\xa8\x3f\xd6" |
| 33340 | "\x4a\xe1\x78\x0f\x83\x1a\xb1\x25" |
| 33341 | "\xbc\x53\xea\x5e\xf5\x8c\x00\x97" |
| 33342 | "\x2e\xc5\x39\xd0\x67\xfe\x72\x09" |
| 33343 | "\xa0\x14\xab\x42\xd9\x4d\xe4\x7b" |
| 33344 | "\x12\x86\x1d\xb4\x28\xbf\x56\xed" |
| 33345 | "\x61\xf8\x8f\x03\x9a\x31\xc8\x3c" |
| 33346 | "\xd3\x6a\x01\x75\x0c\xa3\x17\xae" |
| 33347 | "\x45\xdc\x50\xe7\x7e\x15\x89\x20" |
| 33348 | "\xb7\x2b\xc2\x59\xf0\x64\xfb\x92" |
| 33349 | "\x06\x9d\x34\xcb\x3f\xd6\x6d\x04" |
| 33350 | "\x78\x0f\xa6\x1a\xb1\x48\xdf\x53" |
| 33351 | "\xea\x81\x18\x8c\x23\xba\x2e\xc5" |
| 33352 | "\x5c\xf3\x67\xfe\x95\x09\xa0\x37" |
| 33353 | "\xce\x42\xd9\x70\x07\x7b\x12\xa9" |
| 33354 | "\x1d\xb4\x4b\xe2\x56\xed\x84\x1b" |
| 33355 | "\x8f\x26\xbd\x31\xc8\x5f\xf6\x6a" |
| 33356 | "\x01\x98\x0c\xa3\x3a\xd1\x45\xdc" |
| 33357 | "\x73\x0a\x7e\x15\xac\x20\xb7\x4e" |
| 33358 | "\xe5\x59\xf0\x87\x1e\x92\x29\xc0" |
| 33359 | "\x34\xcb\x62\xf9\x6d\x04\x9b\x0f" |
| 33360 | "\xa6\x3d\xd4\x48\xdf\x76\x0d\x81" |
| 33361 | "\x18\xaf\x23\xba\x51\xe8\x5c\xf3" |
| 33362 | "\x8a\x21\x95\x2c\xc3\x37\xce\x65" |
| 33363 | "\xfc\x70\x07\x9e\x12\xa9\x40\xd7" |
| 33364 | "\x4b\xe2\x79\x10\x84\x1b\xb2\x26" |
| 33365 | "\xbd\x54\xeb\x5f\xf6\x8d\x01\x98" |
| 33366 | "\x2f\xc6\x3a\xd1\x68\xff\x73\x0a" |
| 33367 | "\xa1\x15\xac\x43\xda\x4e\xe5\x7c" |
| 33368 | "\x13\x87\x1e\xb5\x29\xc0\x57\xee" |
| 33369 | "\x62\xf9\x90\x04\x9b\x32\xc9\x3d" |
| 33370 | "\xd4\x6b\x02\x76\x0d\xa4\x18\xaf" |
| 33371 | "\x46\xdd\x51\xe8\x7f\x16\x8a\x21" |
| 33372 | "\xb8\x2c\xc3\x5a\xf1\x65\xfc\x93" |
| 33373 | "\x07\x9e\x35\xcc\x40\xd7\x6e\x05" |
| 33374 | "\x79\x10\xa7\x1b\xb2\x49\xe0\x54" |
| 33375 | "\xeb\x82\x19\x8d\x24\xbb\x2f\xc6" |
| 33376 | "\x5d\xf4\x68\xff\x96\x0a\xa1\x38" |
| 33377 | "\xcf\x43\xda\x71\x08\x7c\x13\xaa" |
| 33378 | "\x1e\xb5\x4c\xe3\x57\xee\x85\x1c" |
| 33379 | "\x90\x27\xbe\x32\xc9\x60\xf7\x6b" |
| 33380 | "\x02\x99\x0d\xa4\x3b\xd2\x46\xdd" |
| 33381 | "\x74\x0b\x7f\x16\xad\x21\xb8\x4f" |
| 33382 | "\xe6\x5a\xf1\x88\x1f\x93\x2a\xc1" |
| 33383 | "\x35\xcc\x63\xfa\x6e\x05\x9c\x10" |
| 33384 | "\xa7\x3e\xd5\x49\xe0\x77\x0e\x82" |
| 33385 | "\x19\xb0\x24\xbb\x52\xe9\x5d\xf4" |
| 33386 | "\x8b\x22\x96\x2d\xc4\x38\xcf\x66" |
| 33387 | "\xfd\x71\x08\x9f\x13\xaa\x41\xd8" |
| 33388 | "\x4c\xe3\x7a\x11\x85\x1c\xb3\x27" |
| 33389 | "\xbe\x55\xec\x60\xf7\x8e\x02\x99" |
| 33390 | "\x30\xc7\x3b\xd2\x69\x00\x74\x0b" |
| 33391 | "\xa2\x16\xad\x44\xdb\x4f\xe6\x7d" |
| 33392 | "\x14\x88\x1f\xb6\x2a\xc1\x58\xef" |
| 33393 | "\x63\xfa\x91\x05\x9c\x33\xca\x3e" |
| 33394 | "\xd5\x6c\x03\x77\x0e\xa5\x19\xb0" |
| 33395 | "\x47\xde\x52\xe9\x80\x17\x8b\x22" |
| 33396 | "\xb9\x2d\xc4\x5b\xf2\x66\xfd\x94" |
| 33397 | "\x08\x9f\x36\xcd\x41\xd8\x6f\x06" |
| 33398 | "\x7a\x11\xa8\x1c\xb3\x4a\xe1\x55" |
| 33399 | "\xec\x83\x1a\x8e\x25\xbc\x30\xc7" |
| 33400 | "\x5e\xf5\x69\x00\x97\x0b\xa2\x39" |
| 33401 | "\xd0\x44\xdb\x72\x09\x7d\x14\xab" |
| 33402 | "\x1f\xb6\x4d\xe4\x58\xef\x86\x1d" |
| 33403 | "\x91\x28\xbf\x33\xca\x61\xf8\x6c" |
| 33404 | "\x03\x9a\x0e\xa5\x3c\xd3\x47\xde" |
| 33405 | "\x75\x0c\x80\x17\xae\x22\xb9\x50" |
| 33406 | "\xe7\x5b\xf2\x89\x20\x94\x2b\xc2" |
| 33407 | "\x36\xcd\x64\xfb\x6f\x06\x9d\x11" |
| 33408 | "\xa8\x3f\xd6\x4a\xe1\x78\x0f\x83" |
| 33409 | "\x1a\xb1\x25\xbc\x53\xea\x5e\xf5" |
| 33410 | "\x8c\x00\x97\x2e\xc5\x39\xd0\x67" |
| 33411 | "\xfe\x72\x09\xa0\x14\xab\x42\xd9" |
| 33412 | "\x4d\xe4\x7b\x12\x86\x1d\xb4\x28" |
| 33413 | "\xbf\x56\xed\x61\xf8\x8f\x03\x9a" |
| 33414 | "\x31\xc8\x3c\xd3\x6a\x01\x75\x0c" |
| 33415 | "\xa3\x17\xae\x45\xdc\x50\xe7\x7e" |
| 33416 | "\x15\x89\x20\xb7\x2b\xc2\x59\xf0" |
| 33417 | "\x64\xfb\x92\x06\x9d\x34\xcb\x3f" |
| 33418 | "\xd6\x6d\x04\x78\x0f\xa6\x1a\xb1" |
| 33419 | "\x48\xdf\x53\xea\x81\x18\x8c\x23" |
| 33420 | "\xba\x2e\xc5\x5c\xf3\x67\xfe\x95" |
| 33421 | "\x09\xa0\x37\xce\x42\xd9\x70\x07" |
| 33422 | "\x7b\x12\xa9\x1d\xb4\x4b\xe2\x56" |
| 33423 | "\xed\x84\x1b\x8f\x26\xbd\x31\xc8" |
| 33424 | "\x5f\xf6\x6a\x01\x98\x0c\xa3\x3a" |
| 33425 | "\xd1\x45\xdc\x73\x0a\x7e\x15\xac" |
| 33426 | "\x20\xb7\x4e\xe5\x59\xf0\x87\x1e" |
| 33427 | "\x92\x29\xc0\x34\xcb\x62\xf9\x6d" |
| 33428 | "\x04\x9b\x0f\xa6\x3d\xd4\x48\xdf" |
| 33429 | "\x76\x0d\x81\x18\xaf\x23\xba\x51" |
| 33430 | "\xe8\x5c\xf3\x8a\x21\x95\x2c\xc3" |
| 33431 | "\x37\xce\x65\xfc\x70\x07\x9e\x12" |
| 33432 | "\xa9\x40\xd7\x4b\xe2\x79\x10\x84" |
| 33433 | "\x1b\xb2\x26\xbd\x54\xeb\x5f\xf6" |
| 33434 | "\x8d\x01\x98\x2f\xc6\x3a\xd1\x68" |
| 33435 | "\xff\x73\x0a\xa1\x15\xac\x43\xda" |
| 33436 | "\x4e\xe5\x7c\x13\x87\x1e\xb5\x29" |
| 33437 | "\xc0\x57\xee\x62\xf9\x90\x04\x9b" |
| 33438 | "\x32\xc9\x3d\xd4\x6b\x02\x76\x0d" |
| 33439 | "\xa4\x18\xaf\x46\xdd\x51\xe8\x7f" |
| 33440 | "\x16\x8a\x21\xb8\x2c\xc3\x5a\xf1" |
| 33441 | "\x65\xfc\x93\x07\x9e\x35\xcc\x40" |
| 33442 | "\xd7\x6e\x05\x79\x10\xa7\x1b\xb2" |
| 33443 | "\x49\xe0\x54\xeb\x82\x19\x8d\x24" |
| 33444 | "\xbb\x2f\xc6\x5d\xf4\x68\xff\x96" |
| 33445 | "\x0a\xa1\x38\xcf\x43\xda\x71\x08" |
| 33446 | "\x7c\x13\xaa\x1e\xb5\x4c\xe3\x57" |
| 33447 | "\xee\x85\x1c\x90\x27\xbe\x32\xc9" |
| 33448 | "\x60\xf7\x6b\x02\x99\x0d\xa4\x3b" |
| 33449 | "\xd2\x46\xdd\x74\x0b\x7f\x16\xad" |
| 33450 | "\x21\xb8\x4f\xe6\x5a\xf1\x88\x1f" |
| 33451 | "\x93\x2a\xc1\x35\xcc\x63\xfa\x6e" |
| 33452 | "\x05\x9c\x10\xa7\x3e\xd5\x49\xe0" |
| 33453 | "\x77\x0e\x82\x19\xb0\x24\xbb\x52" |
| 33454 | "\xe9\x5d\xf4\x8b\x22\x96\x2d\xc4" |
| 33455 | "\x38\xcf\x66\xfd\x71\x08\x9f\x13" |
| 33456 | "\xaa\x41\xd8\x4c\xe3\x7a\x11\x85" |
| 33457 | "\x1c\xb3\x27\xbe\x55\xec\x60\xf7" |
| 33458 | "\x8e\x02\x99\x30\xc7\x3b\xd2\x69" |
| 33459 | "\x00\x74\x0b\xa2\x16\xad\x44\xdb" |
| 33460 | "\x4f\xe6\x7d\x14\x88\x1f\xb6\x2a" |
| 33461 | "\xc1\x58\xef\x63\xfa\x91\x05\x9c" |
| 33462 | "\x33\xca\x3e\xd5\x6c\x03\x77\x0e" |
| 33463 | "\xa5\x19\xb0\x47\xde\x52\xe9\x80" |
| 33464 | "\x17\x8b\x22\xb9\x2d\xc4\x5b\xf2" |
| 33465 | "\x66\xfd\x94\x08\x9f\x36\xcd\x41" |
| 33466 | "\xd8\x6f\x06\x7a\x11\xa8\x1c\xb3" |
| 33467 | "\x4a\xe1\x55\xec\x83\x1a\x8e\x25" |
| 33468 | "\xbc\x30\xc7\x5e\xf5\x69\x00\x97" |
| 33469 | "\x0b\xa2\x39\xd0\x44\xdb\x72\x09" |
| 33470 | "\x7d\x14\xab\x1f\xb6\x4d\xe4\x58" |
| 33471 | "\xef\x86\x1d\x91\x28\xbf\x33\xca" |
| 33472 | "\x61\xf8\x6c\x03\x9a\x0e\xa5\x3c" |
| 33473 | "\xd3\x47\xde\x75\x0c\x80\x17\xae" |
| 33474 | "\x22\xb9\x50\xe7\x5b\xf2\x89\x20" |
| 33475 | "\x94\x2b\xc2\x36\xcd\x64\xfb\x6f" |
| 33476 | "\x06\x9d\x11\xa8\x3f\xd6\x4a\xe1" |
| 33477 | "\x78\x0f\x83\x1a\xb1\x25\xbc\x53" |
| 33478 | "\xea\x5e\xf5\x8c\x00\x97\x2e\xc5" |
| 33479 | "\x39\xd0\x67\xfe\x72\x09\xa0\x14" |
| 33480 | "\xab\x42\xd9\x4d\xe4\x7b\x12\x86" |
| 33481 | "\x1d\xb4\x28\xbf\x56\xed\x61\xf8" |
| 33482 | "\x8f\x03\x9a\x31\xc8\x3c\xd3\x6a" |
| 33483 | "\x01\x75\x0c\xa3\x17\xae\x45\xdc" |
| 33484 | "\x50\xe7\x7e\x15\x89\x20\xb7\x2b" |
| 33485 | "\xc2\x59\xf0\x64\xfb\x92\x06\x9d" |
| 33486 | "\x34\xcb\x3f\xd6\x6d\x04\x78\x0f" |
| 33487 | "\xa6\x1a\xb1\x48\xdf\x53\xea\x81" |
| 33488 | "\x18\x8c\x23\xba\x2e\xc5\x5c\xf3" |
| 33489 | "\x67\xfe\x95\x09\xa0\x37\xce\x42" |
| 33490 | "\xd9\x70\x07\x7b\x12\xa9\x1d\xb4" |
| 33491 | "\x4b\xe2\x56\xed\x84\x1b\x8f\x26" |
| 33492 | "\xbd\x31\xc8\x5f\xf6\x6a\x01\x98", |
| 33493 | .psize = 2048, |
| 33494 | .digest = "\xec\x26\x4d\x95", |
| 33495 | } |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 33496 | }; |
| 33497 | |
Sonic Zhang | a482b08 | 2012-05-25 17:54:13 +0800 | [diff] [blame] | 33498 | /* |
| 33499 | * Blakcifn CRC test vectors |
| 33500 | */ |
| 33501 | #define BFIN_CRC_TEST_VECTORS 6 |
| 33502 | |
| 33503 | static struct hash_testvec bfin_crc_tv_template[] = { |
| 33504 | { |
| 33505 | .psize = 0, |
| 33506 | .digest = "\x00\x00\x00\x00", |
| 33507 | }, |
| 33508 | { |
| 33509 | .key = "\x87\xa9\xcb\xed", |
| 33510 | .ksize = 4, |
| 33511 | .psize = 0, |
| 33512 | .digest = "\x87\xa9\xcb\xed", |
| 33513 | }, |
| 33514 | { |
| 33515 | .key = "\xff\xff\xff\xff", |
| 33516 | .ksize = 4, |
| 33517 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 33518 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 33519 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 33520 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 33521 | "\x21\x22\x23\x24\x25\x26\x27\x28", |
| 33522 | .psize = 40, |
| 33523 | .digest = "\x84\x0c\x8d\xa2", |
| 33524 | }, |
| 33525 | { |
| 33526 | .key = "\xff\xff\xff\xff", |
| 33527 | .ksize = 4, |
| 33528 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 33529 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 33530 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 33531 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 33532 | "\x21\x22\x23\x24\x25\x26", |
| 33533 | .psize = 38, |
| 33534 | .digest = "\x8c\x58\xec\xb7", |
| 33535 | }, |
| 33536 | { |
| 33537 | .key = "\xff\xff\xff\xff", |
| 33538 | .ksize = 4, |
| 33539 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 33540 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 33541 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 33542 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 33543 | "\x21\x22\x23\x24\x25\x26\x27", |
| 33544 | .psize = 39, |
| 33545 | .digest = "\xdc\x50\x28\x7b", |
| 33546 | }, |
| 33547 | { |
| 33548 | .key = "\xff\xff\xff\xff", |
| 33549 | .ksize = 4, |
| 33550 | .plaintext = "\x01\x02\x03\x04\x05\x06\x07\x08" |
| 33551 | "\x09\x0a\x0b\x0c\x0d\x0e\x0f\x10" |
| 33552 | "\x11\x12\x13\x14\x15\x16\x17\x18" |
| 33553 | "\x19\x1a\x1b\x1c\x1d\x1e\x1f\x20" |
| 33554 | "\x21\x22\x23\x24\x25\x26\x27\x28" |
| 33555 | "\x29\x2a\x2b\x2c\x2d\x2e\x2f\x30" |
| 33556 | "\x31\x32\x33\x34\x35\x36\x37\x38" |
| 33557 | "\x39\x3a\x3b\x3c\x3d\x3e\x3f\x40" |
| 33558 | "\x41\x42\x43\x44\x45\x46\x47\x48" |
| 33559 | "\x49\x4a\x4b\x4c\x4d\x4e\x4f\x50" |
| 33560 | "\x51\x52\x53\x54\x55\x56\x57\x58" |
| 33561 | "\x59\x5a\x5b\x5c\x5d\x5e\x5f\x60" |
| 33562 | "\x61\x62\x63\x64\x65\x66\x67\x68" |
| 33563 | "\x69\x6a\x6b\x6c\x6d\x6e\x6f\x70" |
| 33564 | "\x71\x72\x73\x74\x75\x76\x77\x78" |
| 33565 | "\x79\x7a\x7b\x7c\x7d\x7e\x7f\x80" |
| 33566 | "\x81\x82\x83\x84\x85\x86\x87\x88" |
| 33567 | "\x89\x8a\x8b\x8c\x8d\x8e\x8f\x90" |
| 33568 | "\x91\x92\x93\x94\x95\x96\x97\x98" |
| 33569 | "\x99\x9a\x9b\x9c\x9d\x9e\x9f\xa0" |
| 33570 | "\xa1\xa2\xa3\xa4\xa5\xa6\xa7\xa8" |
| 33571 | "\xa9\xaa\xab\xac\xad\xae\xaf\xb0" |
| 33572 | "\xb1\xb2\xb3\xb4\xb5\xb6\xb7\xb8" |
| 33573 | "\xb9\xba\xbb\xbc\xbd\xbe\xbf\xc0" |
| 33574 | "\xc1\xc2\xc3\xc4\xc5\xc6\xc7\xc8" |
| 33575 | "\xc9\xca\xcb\xcc\xcd\xce\xcf\xd0" |
| 33576 | "\xd1\xd2\xd3\xd4\xd5\xd6\xd7\xd8" |
| 33577 | "\xd9\xda\xdb\xdc\xdd\xde\xdf\xe0" |
| 33578 | "\xe1\xe2\xe3\xe4\xe5\xe6\xe7\xe8" |
| 33579 | "\xe9\xea\xeb\xec\xed\xee\xef\xf0", |
| 33580 | .psize = 240, |
| 33581 | .digest = "\x10\x19\x4a\x5c", |
| 33582 | .np = 2, |
| 33583 | .tap = { 31, 209 } |
| 33584 | }, |
| 33585 | |
| 33586 | }; |
| 33587 | |
KOVACS Krisztian | 1443cc9 | 2014-08-22 10:44:36 +0200 | [diff] [blame] | 33588 | #define LZ4_COMP_TEST_VECTORS 1 |
| 33589 | #define LZ4_DECOMP_TEST_VECTORS 1 |
| 33590 | |
| 33591 | static struct comp_testvec lz4_comp_tv_template[] = { |
| 33592 | { |
| 33593 | .inlen = 70, |
| 33594 | .outlen = 45, |
| 33595 | .input = "Join us now and share the software " |
| 33596 | "Join us now and share the software ", |
| 33597 | .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75" |
| 33598 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 33599 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 33600 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 33601 | "\x77\x0d\x00\x0f\x23\x00\x0b\x50" |
| 33602 | "\x77\x61\x72\x65\x20", |
| 33603 | }, |
| 33604 | }; |
| 33605 | |
| 33606 | static struct comp_testvec lz4_decomp_tv_template[] = { |
| 33607 | { |
| 33608 | .inlen = 45, |
| 33609 | .outlen = 70, |
| 33610 | .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75" |
| 33611 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 33612 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 33613 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 33614 | "\x77\x0d\x00\x0f\x23\x00\x0b\x50" |
| 33615 | "\x77\x61\x72\x65\x20", |
| 33616 | .output = "Join us now and share the software " |
| 33617 | "Join us now and share the software ", |
| 33618 | }, |
| 33619 | }; |
| 33620 | |
| 33621 | #define LZ4HC_COMP_TEST_VECTORS 1 |
| 33622 | #define LZ4HC_DECOMP_TEST_VECTORS 1 |
| 33623 | |
| 33624 | static struct comp_testvec lz4hc_comp_tv_template[] = { |
| 33625 | { |
| 33626 | .inlen = 70, |
| 33627 | .outlen = 45, |
| 33628 | .input = "Join us now and share the software " |
| 33629 | "Join us now and share the software ", |
| 33630 | .output = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75" |
| 33631 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 33632 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 33633 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 33634 | "\x77\x0d\x00\x0f\x23\x00\x0b\x50" |
| 33635 | "\x77\x61\x72\x65\x20", |
| 33636 | }, |
| 33637 | }; |
| 33638 | |
| 33639 | static struct comp_testvec lz4hc_decomp_tv_template[] = { |
| 33640 | { |
| 33641 | .inlen = 45, |
| 33642 | .outlen = 70, |
| 33643 | .input = "\xf0\x10\x4a\x6f\x69\x6e\x20\x75" |
| 33644 | "\x73\x20\x6e\x6f\x77\x20\x61\x6e" |
| 33645 | "\x64\x20\x73\x68\x61\x72\x65\x20" |
| 33646 | "\x74\x68\x65\x20\x73\x6f\x66\x74" |
| 33647 | "\x77\x0d\x00\x0f\x23\x00\x0b\x50" |
| 33648 | "\x77\x61\x72\x65\x20", |
| 33649 | .output = "Join us now and share the software " |
| 33650 | "Join us now and share the software ", |
| 33651 | }, |
| 33652 | }; |
| 33653 | |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 33654 | #endif /* _CRYPTO_TESTMGR_H */ |